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 # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-0
SELECT DISTINCT + + SUM( + + CAST( col2 AS SIGNED ) ) + + COUNT( ALL - col0 ) AS col0 FROM tab1 cor0 WHERE - 63 NOT BETWEEN col0 * ( col1 ) AND + + CAST( NULL AS SIGNED )
----
226

skipif mysql # not compatible
query I rowsort label-0
SELECT DISTINCT + + SUM ( + + CAST ( col2 AS INTEGER ) ) + + COUNT ( ALL - col0 ) AS col0 FROM tab1 cor0 WHERE - 63 NOT BETWEEN col0 * ( col1 ) AND + + CAST ( NULL AS INTEGER )
----
226

query I rowsort
SELECT + + 60 * 14 AS col2 FROM tab0 AS cor0
----
840
840
840

onlyif mysql # DIV for integer division: 
query I rowsort label-2
SELECT DISTINCT ( + col1 ) DIV + 70 AS col0 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-2
SELECT DISTINCT ( + col1 ) / + 70 AS col0 FROM tab2
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3
SELECT 95, COUNT( * ) * + ( + - CAST( NULL AS SIGNED ) ) * + MAX( 21 ) + 4 * 97 AS col2 FROM tab0
----
95
NULL

skipif mysql # not compatible
query II rowsort label-3
SELECT 95, COUNT ( * ) * + ( + - CAST ( NULL AS INTEGER ) ) * + MAX ( 21 ) + 4 * 97 AS col2 FROM tab0
----
95
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5
SELECT + ( - 50 ) + - 12 * + 2 + + COUNT( * ) AS col1 FROM tab2
----
-71

skipif mysql # not compatible
query I rowsort label-5
SELECT + ( - 50 ) + - 12 * + 2 + + COUNT ( * ) AS col1 FROM tab2
----
-71

query I rowsort
SELECT - col1 + ( + 87 ) FROM tab1
----
40
73
82

onlyif mysql # aggregate syntax: 
query II rowsort label-7
SELECT DISTINCT SUM( ( + 31 ) ), 26 col2 FROM tab2
----
93
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7
SELECT DISTINCT SUM ( ( + 31 ) ), 26 col2 FROM tab2
----
93
26

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 / - col1 NOT BETWEEN NULL AND NULL
----

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

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

query I rowsort
SELECT DISTINCT + + col2 + 59 FROM tab2 cor0
----
117
82
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-12
SELECT ALL + + MIN( - - col0 ) + - COUNT( * ) FROM tab1 cor0
----
48

skipif mysql # not compatible
query I rowsort label-12
SELECT ALL + + MIN ( - - col0 ) + - COUNT ( * ) FROM tab1 cor0
----
48

query I rowsort
SELECT ( 82 ) AS col0 FROM tab1 WHERE ( - col0 ) NOT IN ( ( - 3 ) / + col1 )
----
82
82
82

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

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT NULL BETWEEN NULL AND - 44
----

onlyif mysql # DIV for integer division: 
query I rowsort label-16
SELECT ALL - 94 DIV - col1 + col1 col0 FROM tab2
----
52
68
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-16
SELECT ALL - 94 / - col1 + col1 col0 FROM tab2
----
52
68
78

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-18
SELECT ALL + col2 * - CAST( 0 AS SIGNED ) + col0 AS col1 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-18
SELECT ALL + col2 * - CAST ( 0 AS INTEGER ) + col0 AS col1 FROM tab0
----
15
87
97

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-20
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab1 WHERE - col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-20
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab1 WHERE - col0 IS NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-22
SELECT col1 * - CAST ( NULL AS REAL ) - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE ( NULL ) BETWEEN NULL AND - col2
----

query III rowsort
SELECT * FROM tab0 WHERE - col0 > + col1 * col0
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 88 ) col0 FROM tab1
----
88
88
88

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN + ( col2 ) + 70 AND ( - 27 + - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-31
SELECT + 64 DIV - col0 + + col0 col2 FROM tab2
----
45
63
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-31
SELECT + 64 / - col0 + + col0 col2 FROM tab2
----
45
63
75

query I rowsort
SELECT DISTINCT - col2 FROM tab1 cor0 WHERE ( + col1 ) <> NULL
----

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

skipif mysql # not compatible
query I rowsort label-33
SELECT ALL COUNT ( * ) + 11 * + SUM ( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
2038

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 < ( col0 )
----
51
14
96

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-36
SELECT - 71 DIV ( + col1 * - col2 ) AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-36
SELECT - 71 / ( + col1 * - col2 ) AS col0 FROM tab2
----
0
0
0

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

query I rowsort
SELECT + col1 + ( + col1 ) AS col0 FROM tab2 AS cor0
----
102
134
154

onlyif mysql # aggregate syntax: 
query I rowsort label-39
SELECT ALL - 75 * 84 + COUNT( * ) FROM tab0 cor0
----
-6297

skipif mysql # not compatible
query I rowsort label-39
SELECT ALL - 75 * 84 + COUNT ( * ) FROM tab0 cor0
----
-6297

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 cor0 WHERE ( col0 ) > 73
----
75

query I rowsort
SELECT - - ( col1 ) + 64 AS col1 FROM tab2 AS cor0
----
115
131
141

query I rowsort
SELECT DISTINCT - + 8 + col2 FROM tab2 cor0
----
15
32
50

query I rowsort
SELECT DISTINCT - ( 97 ) FROM tab1 AS cor0
----
-97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 10 ) BETWEEN 34 AND - 0 + col1
----

query I rowsort
SELECT ALL col0 * + col0 + ( + 76 ) FROM tab1
----
2677
7301
8357

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

query I rowsort
SELECT 12 + - - col0 FROM tab2
----
58
76
87

onlyif mysql # DIV for integer division: 
query I rowsort label-48
SELECT col2 DIV - col0 + col0 DIV 39 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-48
SELECT col2 / - col0 + col0 / 39 FROM tab2
----
1
1
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-51
SELECT MIN( - + 93 ) col1 FROM tab0
----
-93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-51
SELECT MIN ( - + 93 ) col1 FROM tab0
----
-93

query I rowsort
SELECT - col1 AS col2 FROM tab0 WHERE ( + col2 ) < ( + 63 - + col0 * - col0 )
----
-1
-21
-81

query I rowsort
SELECT ALL col1 - + + 43 AS col0 FROM tab1
----
-29
-38
4

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

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

query I rowsort
SELECT + 25 - - col0 AS col1 FROM tab1 AS cor0
----
110
116
76

query I rowsort
SELECT + col2 FROM tab0 cor0 WHERE col0 / col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col2 + + 34 FROM tab0 AS cor0
----
133
44
81

query I rowsort
SELECT 25 - 21 FROM tab1 cor0
----
4
4
4

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 64 * + 85 * 53 - - ( 9 ) * + col1 >= NULL
----

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col0, col0 + col1 FROM tab2 AS cor0
----
51
97
67
142
77
141

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

onlyif mysql # aggregate syntax: 
query I rowsort label-65
SELECT + COUNT( * ) * + 40 * ( + 58 ) * COUNT( * ) AS col0 FROM tab1 AS cor0
----
20880

skipif mysql # not compatible
query I rowsort label-65
SELECT + COUNT ( * ) * + 40 * ( + 58 ) * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
20880

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-67
SELECT 84 DIV + - SUM( DISTINCT - col1 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-67
SELECT 84 / + - SUM ( DISTINCT - col1 ) FROM tab2 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-68
SELECT ALL - + 68 DIV + + ( + + 71 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-68
SELECT ALL - + 68 / + + ( + + 71 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 40 * + col2 FROM tab1 WHERE NOT NULL NOT IN ( + 36 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-70
SELECT + col0 DIV + 12 AS col0 FROM tab2
----
3
5
6

skipif mysql # not compatible
query I rowsort label-70
SELECT + col0 / + 12 AS col0 FROM tab2
----
3
5
6

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

onlyif mysql # aggregate syntax: 
query I rowsort label-72
SELECT DISTINCT MIN( + 19 ) AS col1 FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-72
SELECT DISTINCT MIN ( + 19 ) AS col1 FROM tab0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-73
SELECT ALL - 23 * + COUNT( DISTINCT + - col0 ) FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-73
SELECT ALL - 23 * + COUNT ( DISTINCT + - col0 ) FROM tab2 AS cor0
----
-69

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 NOT BETWEEN - col1 * + 1 + col2 + col2 AND ( ( + col2 ) * - 20 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 85 + + 77 col1, col0 col2 FROM tab1 cor0
----
162
51
162
85
162
91

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-78
SELECT ALL 89 * + SUM( 84 ) col0 FROM tab2 WHERE NOT ( col1 ) <= - col2 / col1
----
22428

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-78
SELECT ALL 89 * + SUM ( 84 ) col0 FROM tab2 WHERE NOT ( col1 ) <= - col2 / col1
----
22428

query I rowsort
SELECT ALL + 19 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 AND + + col2 - - - col2 / + 31 * - col2 + + 97
----

onlyif mysql # aggregate syntax: 
query I rowsort label-80
SELECT DISTINCT + 46 * - ( + MAX( ALL - 37 ) ) col1 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
1702

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-80
SELECT DISTINCT + 46 * - ( + MAX ( ALL - 37 ) ) col1 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
1702

query II rowsort
SELECT DISTINCT col0 + + col0 * col2 AS col0, col0 FROM tab2 AS cor0
----
1104
46
2624
64
4425
75

query II rowsort
SELECT DISTINCT col2 * col1 + - col1, + col1 + + - col1 + col1 * 0 AS col0 FROM tab0 AS cor0
----
189
0
3726
0
98
0

query I rowsort
SELECT col1 * 7 + - col0 FROM tab2 AS cor0 WHERE ( + col1 + - col2 + 71 / + col1 + + 21 ) IN ( 76 )
----

query I rowsort
SELECT ALL - - 68 + + - col2 + + col0 + + col2 * + col2 AS col1 FROM tab1 AS cor0
----
3575
4715
9239

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col1 ) NOT BETWEEN NULL AND - ( 43 )
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-88
SELECT - - col0 DIV + + 41 FROM tab0 AS cor0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-88
SELECT - - col0 / + + 41 FROM tab0 AS cor0
----
0
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-89
SELECT DISTINCT - MIN( - 3 ) * - 2 FROM tab0 AS cor0 WHERE + 43 * + col0 + col0 + + col1 + + col0 * - col2 IN ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-89
SELECT DISTINCT - MIN ( - 3 ) * - 2 FROM tab0 AS cor0 WHERE + 43 * + col0 + col0 + + col1 + + col0 * - col2 IN ( col2 )
----
NULL

query I rowsort
SELECT - + 43 AS col0 FROM tab2 AS cor0
----
-43
-43
-43

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

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 IN ( - 10 + + - col0 + + col0 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-93
SELECT COUNT( * ) FROM tab2 WHERE - 6 + - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-93
SELECT COUNT ( * ) FROM tab2 WHERE - 6 + - col0 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( - + col0, - 36 )
----

query I rowsort
SELECT ALL col0 * + col2 - + 27 + + 88 AS col1 FROM tab0
----
766
931
9664

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE ( NULL ) < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - + col2 col1 FROM tab2
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-98
SELECT + + MIN( DISTINCT + + col2 ) / + 62 FROM tab0 WHERE NULL >= 86
----
NULL

skipif mysql # not compatible
query I rowsort label-98
SELECT + + MIN ( DISTINCT + + col2 ) / + 62 FROM tab0 WHERE NULL >= 86
----
NULL

query I rowsort
SELECT DISTINCT + col2 * + 66 AS col2 FROM tab1 AS cor0
----
3894
4488
6336

query I rowsort
SELECT 49 + - 57 + - ( 70 ) * + col0 AS col2 FROM tab1 AS cor0
----
-3578
-5958
-6378

query I rowsort
SELECT DISTINCT 2 * - + 93 AS col0 FROM tab2 AS cor0
----
-186

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-103
SELECT ALL + 79 AS col1, COUNT( * ) DIV + 66 - + - 43 col0 FROM tab0 cor0
----
79
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-103
SELECT ALL + 79 AS col1, COUNT ( * ) / + 66 - + - 43 col0 FROM tab0 cor0
----
79
43

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

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

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

skipif mysql # not compatible
query I rowsort label-105
SELECT - - MAX ( + col2 ) * - SUM ( DISTINCT + col1 ) FROM tab0 AS cor0
----
-10197

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

onlyif mysql # DIV for integer division: 
query I rowsort label-107
SELECT ALL 30 DIV - + col2 + + col2 AS col2 FROM tab2 cor0
----
22
40
58

skipif mysql # not compatible
query I rowsort label-107
SELECT ALL 30 / - + col2 + + col2 AS col2 FROM tab2 cor0
----
22
40
58

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

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

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

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

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

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

query I rowsort
SELECT - - 33 FROM tab1 WHERE NOT 97 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-113
SELECT - ( + 38 ) + + COUNT( * ) DIV - + CAST( + + COUNT( * ) AS SIGNED ) AS col2 FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-113
SELECT - ( + 38 ) + + COUNT ( * ) / - + CAST ( + + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-114
SELECT - - ( 29 ) FROM tab0 WHERE NOT 53 + - col2 * + CAST( NULL AS SIGNED ) < + ( 25 )
----

skipif mysql # not compatible
query I rowsort label-114
SELECT - - ( 29 ) FROM tab0 WHERE NOT 53 + - col2 * + CAST ( NULL AS INTEGER ) < + ( 25 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-115
SELECT ALL - col2 DIV - - 79 AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-115
SELECT ALL - col2 / - - 79 AS col0 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT 75 * + + 73 AS col2 FROM tab0 AS cor0
----
5475
5475
5475

query I rowsort
SELECT - ( + 16 ) AS col0 FROM tab0 AS cor0
----
-16
-16
-16

query I rowsort
SELECT ALL + 83 + - col0 * col1 - + - 41 + + col2 FROM tab0
----
-1044
-1693
126

onlyif mysql # aggregate syntax: 
query I rowsort label-119
SELECT DISTINCT COUNT( * ) * 2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-119
SELECT DISTINCT COUNT ( * ) * 2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18

query I rowsort
SELECT + col0 + + + 91 FROM tab2
----
137
155
166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-121
SELECT + col0 AS col1 FROM tab1 cor0 WHERE CAST( + 84 AS SIGNED ) + col1 + + col0 IS NOT NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-121
SELECT + col0 AS col1 FROM tab1 cor0 WHERE CAST ( + 84 AS INTEGER ) + col1 + + col0 IS NOT NULL
----
51
85
91

query I rowsort
SELECT - - 62 + 30 FROM tab2 cor0
----
92
92
92

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

onlyif mysql # DIV for integer division: 
query I rowsort label-124
SELECT DISTINCT + col0 + - col1 - - 88 + + 36 * - ( + 93 ) * + + ( col0 ) DIV col0 AS col2 FROM tab0 AS cor0
----
-3164
-3194
-3326

skipif mysql # not compatible
query I rowsort label-124
SELECT DISTINCT + col0 + - col1 - - 88 + + 36 * - ( + 93 ) * + + ( col0 ) / col0 AS col2 FROM tab0 AS cor0
----
-3164
-3194
-3326

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

query II rowsort
SELECT DISTINCT 45 + + - col2 AS col1, col2 FROM tab2 AS cor0
----
-13
58
22
23
5
40

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

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

query I rowsort
SELECT + col0 * - col0 + - 40 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-265
-7609
-9449

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-129
SELECT ALL - 79 + + CAST( col0 AS SIGNED ) DIV + + 14 AS col1 FROM tab0
----
-73
-73
-78

skipif mysql # not compatible
query I rowsort label-129
SELECT ALL - 79 + + CAST ( col0 AS INTEGER ) / + + 14 AS col1 FROM tab0
----
-73
-73
-78

query II rowsort
SELECT DISTINCT - 32 * - - 36 + + 39, 9 AS col0 FROM tab0
----
-1113
9

query I rowsort
SELECT DISTINCT + 41 * + col2 AS col1 FROM tab2
----
1640
2378
943

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - - col2 col1 FROM tab2
----
116
46
80

query I rowsort
SELECT DISTINCT - ( + col1 ) - 54 FROM tab1
----
-101
-59
-68

query I rowsort
SELECT DISTINCT + 5 - ( - + 91 ) AS col0 FROM tab1
----
96

query I rowsort
SELECT DISTINCT col1 - - 38 * + - col1 AS col2 FROM tab2
----
-1887
-2479
-2849

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-138
SELECT CAST( - + 22 AS SIGNED ) - col2 + + - col1 AS col1 FROM tab2
----
-139
-147
-96

skipif mysql # not compatible
query I rowsort label-138
SELECT CAST ( - + 22 AS INTEGER ) - col2 + + - col1 AS col1 FROM tab2
----
-139
-147
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-139
SELECT MIN( ALL + - col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-139
SELECT MIN ( ALL + - col2 ) FROM tab0
----
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-140
SELECT - CAST( + + CAST( NULL AS DECIMAL ) AS DECIMAL ) - - - col2 AS col0 FROM tab2 WHERE NOT col2 * - - CAST( + col0 AS DECIMAL ) / col0 + - - col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-140
SELECT - CAST ( + + CAST ( NULL AS REAL ) AS REAL ) - - - col2 AS col0 FROM tab2 WHERE NOT col2 * - - CAST ( + col0 AS REAL ) / col0 + - - col0 IS NULL
----
NULL
NULL
NULL

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 73 IS NULL
----

query I rowsort
SELECT - + 16 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col1 AS col0, - col2 * + col2 + + - 67 col0 FROM tab2 AS cor0
----
51
-596
67
-3431
77
-1667

onlyif mysql # aggregate syntax: 
query I rowsort label-146
SELECT ALL - ( - - SUM( DISTINCT col2 ) ) FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
-121

skipif mysql # not compatible
query I rowsort label-146
SELECT ALL - ( - - SUM ( DISTINCT col2 ) ) FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
-121

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

query I rowsort
SELECT - 40 * - + col0 FROM tab2 AS cor0
----
1840
2560
3000

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

onlyif mysql # aggregate syntax: 
query I rowsort label-150
SELECT - + SUM( + 71 ) AS col2 FROM tab0 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-150
SELECT - + SUM ( + 71 ) AS col2 FROM tab0 AS cor0
----
-213

query I rowsort
SELECT DISTINCT + - col0 * + - ( + col2 ) + ( - 18 ) * + 88 * col1 FROM tab1 AS cor0
----
-17280
-2905
-68260

query II rowsort
SELECT - 96, col0 FROM tab1 cor0
----
-96
51
-96
85
-96
91

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

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

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

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

query I rowsort
SELECT + - 1 * + col0 * + col1 - - 2 AS col2 FROM tab2 AS cor0
----
-2344
-4926
-5023

onlyif mysql # DIV for integer division: 
query I rowsort label-157
SELECT 85 DIV + col1 AS col1 FROM tab1
----
1
17
6

skipif mysql # not compatible
query I rowsort label-157
SELECT 85 / + col1 AS col1 FROM tab1
----
1
17
6

query I rowsort
SELECT ALL - 45 * - ( + 63 ) FROM tab1
----
2835
2835
2835

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

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

query I rowsort
SELECT - 53 + - col2 AS col2 FROM tab0 cor0
----
-100
-152
-63

query I rowsort
SELECT DISTINCT - col0 + - 66 AS col2 FROM tab1 AS cor0
----
-117
-151
-157

query I rowsort
SELECT ALL + col1 AS col2 FROM tab0 cor0 WHERE NOT ( ( - col0 ) + col2 + - col1 * 49 * col0 + - + col2 + - + col1 ) IN ( col1, 49 )
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-163
SELECT ALL col1 DIV + - col1 AS col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-163
SELECT ALL col1 / + - col1 AS col1 FROM tab0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( col0 + - 96 IS NOT NULL ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-165
SELECT col2 DIV + + col1 * + - 99 AS col0, - 17 * + + col0 AS col0 FROM tab2 AS cor0
----
0
-1088
0
-1275
0
-782

skipif mysql # not compatible
query II rowsort label-165
SELECT col2 / + + col1 * + - 99 AS col0, - 17 * + + col0 AS col0 FROM tab2 AS cor0
----
0
-1088
0
-1275
0
-782

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

onlyif mysql # aggregate syntax: 
query I rowsort label-167
SELECT - - ( + + MIN( DISTINCT + - col1 ) ) * - COUNT( * ) - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-167
SELECT - - ( + + MIN ( DISTINCT + - col1 ) ) * - COUNT ( * ) - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
234

onlyif mysql # DIV for integer division: 
query I rowsort label-168
SELECT - 22 DIV - col1 - + col0 DIV + 89 AS col2 FROM tab0 AS cor0
----
0
1
21

skipif mysql # not compatible
query I rowsort label-168
SELECT - 22 / - col1 - + col0 / + 89 AS col2 FROM tab0 AS cor0
----
0
1
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-169
SELECT DISTINCT - CAST( + col1 AS SIGNED ) + + col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-169
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) + + col1 FROM tab1
----
0

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

skipif mysql # not compatible
query I rowsort label-170
SELECT DISTINCT CAST ( - + col0 AS INTEGER ) / - col0 FROM tab0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-171
SELECT DISTINCT - col1 DIV - ( - - 43 ) FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-171
SELECT DISTINCT - col1 / - ( - - 43 ) FROM tab0
----
0
1

query II rowsort
SELECT + col2 * col1 AS col0, ( + - col0 ) AS col0 FROM tab2
----
1173
-46
3080
-64
3886
-75

query I rowsort
SELECT ( - col2 ) * 53 AS col2 FROM tab2
----
-1219
-2120
-3074

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-174
SELECT DISTINCT AVG ( ALL CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-174
SELECT DISTINCT AVG ( ALL CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 46 * - 5 AS col0 FROM tab1
----
-230

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

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

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

query I rowsort
SELECT DISTINCT 43 FROM tab2 WHERE + 11 * - col0 + - ( col0 ) NOT IN ( - 30, - col0 )
----
43

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

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

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

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

query I rowsort
SELECT 10 * + + col0 AS col1 FROM tab2 AS cor0
----
460
640
750

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

query I rowsort
SELECT ALL + - col0 + - ( 11 ) FROM tab0 AS cor0
----
-108
-26
-98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-185
SELECT DISTINCT * FROM tab0 cor0 WHERE + col0 * - 88 * - CAST( NULL AS SIGNED ) - + + col1 * - col2 >= NULL
----

skipif mysql # not compatible
query III rowsort label-185
SELECT DISTINCT * FROM tab0 cor0 WHERE + col0 * - 88 * - CAST ( NULL AS INTEGER ) - + + col1 * - col2 >= NULL
----

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

skipif mysql # not compatible
query I rowsort label-186
SELECT ALL - ( + COUNT ( * ) ) + + 17 + + + 9 FROM tab0 AS cor0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-187
SELECT DISTINCT 68 - - CAST( COUNT( - - CAST( 69 AS SIGNED ) ) AS SIGNED ) col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-187
SELECT DISTINCT 68 - - CAST ( COUNT ( - - CAST ( 69 AS INTEGER ) ) AS INTEGER ) col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-188
SELECT DISTINCT + CAST( - + 6 AS SIGNED ) * col1 FROM tab1 cor0
----
-282
-30
-84

skipif mysql # not compatible
query I rowsort label-188
SELECT DISTINCT + CAST ( - + 6 AS INTEGER ) * col1 FROM tab1 cor0
----
-282
-30
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-189
SELECT ALL + 64 DIV COUNT( * ) DIV + SUM( DISTINCT + + col1 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-189
SELECT ALL + 64 / COUNT ( * ) / + SUM ( DISTINCT + + col1 ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-190
SELECT col2 + - CAST( + 78 AS SIGNED ) FROM tab1
----
-10
-19
18

skipif mysql # not compatible
query I rowsort label-190
SELECT col2 + - CAST ( + 78 AS INTEGER ) FROM tab1
----
-10
-19
18

onlyif mysql # DIV for integer division: 
query II rowsort label-191
SELECT DISTINCT 99 AS col1, col0 DIV col2 col0 FROM tab2
----
99
1
99
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-191
SELECT DISTINCT 99 AS col1, col0 / col2 col0 FROM tab2
----
99
1
99
2

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

query I rowsort
SELECT + col0 * - 70 FROM tab1
----
-3570
-5950
-6370

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-194
SELECT * FROM tab1 AS cor0 WHERE ( + col0 <= + 25 + + - 47 + + - ( CAST( + 25 AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-194
SELECT * FROM tab1 AS cor0 WHERE ( + col0 <= + 25 + + - 47 + + - ( CAST ( + 25 AS INTEGER ) ) )
----

query I rowsort
SELECT - ( + col1 ) AS col2 FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN NULL AND - 33
----
-51

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

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

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

query I rowsort
SELECT col0 + - 16 * + 49 FROM tab1
----
-693
-699
-733

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-199
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + col2 IN ( + + CAST( + col2 AS SIGNED ), + col0, + + col1 + col2 )
----
64
77
40
75
67
58

skipif mysql # not compatible
query III rowsort label-199
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + col2 IN ( + + CAST ( + col2 AS INTEGER ), + col0, + + col1 + col2 )
----
64
77
40
75
67
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-200
SELECT ( + CAST( - - COUNT( * ) AS SIGNED ) ) DIV + 72 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-200
SELECT ( + CAST ( - - COUNT ( * ) AS INTEGER ) ) / + 72 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN + - col1 AND ( col1 )
----
75
67
58

query I rowsort
SELECT + 52 AS col2 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
52
52
52

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-205
SELECT - COUNT( * ) * - COUNT( * ) - - ( COUNT( DISTINCT col1 ) ) + + 10 AS col1 FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-205
SELECT - COUNT ( * ) * - COUNT ( * ) - - ( COUNT ( DISTINCT col1 ) ) + + 10 AS col1 FROM tab2 AS cor0
----
22

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - + col0 ) col2 FROM tab0 cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-208
SELECT ALL + MAX( col0 ), + COUNT( * ) * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
75
9

skipif mysql # not compatible
query II rowsort label-208
SELECT ALL + MAX ( col0 ), + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
75
9

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE col1 NOT IN ( 34 )
----
-51
-85
-91

query I rowsort
SELECT ALL - + col2 * col0 * + 96 + + col0 * 10 + 68 FROM tab0 AS cor0
----
-67462
-82582
-920850

query I rowsort
SELECT DISTINCT - col1 + 53 FROM tab2
----
-14
-24
2

query II rowsort
SELECT ALL col2 AS col1, + 43 * + + col0 * col1 * col1 AS col0 FROM tab1
----
59
91375
68
8643817
96
429828

onlyif mysql # aggregate syntax: 
query I rowsort label-213
SELECT MAX( + - col0 ) AS col2 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-213
SELECT MAX ( + - col0 ) AS col2 FROM tab1
----
-51

query I rowsort
SELECT DISTINCT col2 * + col0 FROM tab1 WHERE col2 <> + - 2
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-215
SELECT + COUNT( * ) + + 54 FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-215
SELECT + COUNT ( * ) + + 54 FROM tab1
----
57

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-218
SELECT DISTINCT - - ( - + col1 ) AS col2 FROM tab0 AS cor0 WHERE - 45 <> + - col2 - - - col1 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-218
SELECT DISTINCT - - ( - + col1 ) AS col2 FROM tab0 AS cor0 WHERE - 45 <> + - col2 - - - col1 * - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - col2 * + col1 - 74 FROM tab2
----
-1247
-3154
-3960

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

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

skipif mysql # not compatible
query III rowsort label-221
SELECT ALL + + col0 / CAST ( - 99 AS INTEGER ) + + col1 AS col2, col0 AS col1, - ( + col2 ) + col2 AS col1 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-222
SELECT ALL - COUNT( * ) * + MAX( ALL + + 34 ) AS col1 FROM tab1 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-222
SELECT ALL - COUNT ( * ) * + MAX ( ALL + + 34 ) AS col1 FROM tab1 AS cor0
----
-102

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

query I rowsort
SELECT - 72 * - + col2 AS col2 FROM tab0 cor0
----
3384
7128
720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + + 51 + - col0 + - - col1 col0 FROM tab0 AS cor0
----
-45
1005
4197

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-226
SELECT - col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col1 + col0 AND + CAST( NULL AS DECIMAL ) + - + 21
----

skipif mysql # not compatible
query I rowsort label-226
SELECT - col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col1 + col0 AND + CAST ( NULL AS REAL ) + - + 21
----

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

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

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

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

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

query I rowsort
SELECT ALL - - 80 * 64 FROM tab2 AS cor0
----
5120
5120
5120

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-232
SELECT ALL + col0, - CAST( - - 89 AS SIGNED ) + + + CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab0 cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-232
SELECT ALL + col0, - CAST ( - - 89 AS INTEGER ) + + + CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab0 cor0
----
15
NULL
87
NULL
97
NULL

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE + 3 + + + 50 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-237
SELECT COUNT( - + 25 ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-237
SELECT COUNT ( - + 25 ) col1 FROM tab1
----
3

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-240
SELECT DISTINCT - ( + - COUNT( * ) ) * 38 DIV - - 69 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-240
SELECT DISTINCT - ( + - COUNT ( * ) ) * 38 / - - 69 FROM tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-241
SELECT DISTINCT + 87 DIV - col0 + + + col0 + + col0 AS col0 FROM tab1 AS cor0
----
101
169
182

skipif mysql # not compatible
query I rowsort label-241
SELECT DISTINCT + 87 / - col0 + + + col0 + + col0 AS col0 FROM tab1 AS cor0
----
101
169
182

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-242
SELECT + MIN( col1 ) DIV - + ( 52 ) * - MIN( ALL - ( + col0 ) ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-242
SELECT + MIN ( col1 ) / - + ( 52 ) * - MIN ( ALL - ( + col0 ) ) AS col1 FROM tab2 AS cor0
----
0

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

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

query I rowsort
SELECT - ( + 85 ) AS col1 FROM tab1 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-245
SELECT MAX( ALL + ( + + col1 ) ) * - COUNT( * ) + + 20 FROM tab1
----
-121

skipif mysql # not compatible
query I rowsort label-245
SELECT MAX ( ALL + ( + + col1 ) ) * - COUNT ( * ) + + 20 FROM tab1
----
-121

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-247
SELECT DISTINCT + col2 * + CAST( col0 AS SIGNED ) FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-247
SELECT DISTINCT + col2 * + CAST ( col0 AS INTEGER ) FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
705
870
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1 + + - col1 + 39, - col0 * + col0 col2 FROM tab2 AS cor0
----
-115
-4096
-63
-2116
-95
-5625

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-249
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( CAST( - col2 AS SIGNED ), col1 * + col0 )
----

skipif mysql # not compatible
query III rowsort label-249
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( CAST ( - col2 AS INTEGER ), col1 * + col0 )
----

query I rowsort
SELECT DISTINCT + col1 + - + col0 FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-251
SELECT DISTINCT - + 96 DIV COUNT( * ) + - - ( - 95 ) col2 FROM tab1 cor0
----
-127

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-251
SELECT DISTINCT - + 96 / COUNT ( * ) + - - ( - 95 ) col2 FROM tab1 cor0
----
-127

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

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

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

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

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

query I rowsort
SELECT ALL + col2 * - col2 - + - 81 FROM tab1
----
-3400
-4543
-9135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-256
SELECT 26 * - 52 * + - CAST( MIN( col1 ) AS SIGNED ) AS col0 FROM tab1
----
6760

skipif mysql # not compatible
query I rowsort label-256
SELECT 26 * - 52 * + - CAST ( MIN ( col1 ) AS INTEGER ) AS col0 FROM tab1
----
6760

query I rowsort
SELECT ALL + 4 + + 19 FROM tab0 cor0
----
23
23
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col1 + + - col1 col2 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT ALL + COUNT( * ) - + MIN( - 77 ) AS col2 FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-259
SELECT ALL + COUNT ( * ) - + MIN ( - 77 ) AS col2 FROM tab2
----
80

query I rowsort
SELECT ALL col1 * - col0 * - - ( 8 ) FROM tab0
----
-14616
-776
-9720

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

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

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

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

query I rowsort
SELECT + 12 * col0 - - col0 * + col1 * + - col1 + + col0 FROM tab1 cor0
----
-1020
-199836
-9333

query I rowsort
SELECT DISTINCT + 85 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
85

query I rowsort
SELECT + + col0 * + + ( + - 31 ) AS col2 FROM tab1 AS cor0
----
-1581
-2635
-2821

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

query I rowsort
SELECT - - 51 * col2 FROM tab1 AS cor0
----
3009
3468
4896

query I rowsort
SELECT - col0 * - 17 FROM tab2
----
1088
1275
782

query I rowsort
SELECT 9 * + 33 FROM tab0
----
297
297
297

onlyif mysql # DIV for integer division: 
query I rowsort label-270
SELECT ALL + col2 DIV - col1 col1 FROM tab0
----
-99
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-270
SELECT ALL + col2 / - col1 col1 FROM tab0
----
-99
0
0

query I rowsort
SELECT ALL - 1 * - 4 * - + col0 FROM tab2
----
-184
-256
-300

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

query I rowsort
SELECT ALL - ( col1 ) * 36 AS col2 FROM tab2
----
-1836
-2412
-2772

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 <= - col2
----

query I rowsort
SELECT ALL - 66 FROM tab2 WHERE NULL BETWEEN - col1 - - 32 AND + col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-277
SELECT DISTINCT + 31 * - COUNT( * ) + - 94 + + + 67 AS col0 FROM tab1 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-277
SELECT DISTINCT + 31 * - COUNT ( * ) + - 94 + + + 67 AS col0 FROM tab1 AS cor0
----
-120

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE 25 * + col0 IS NOT NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-279
SELECT DISTINCT - 65 + - 27, COUNT( * ) AS col1 FROM tab1 AS cor0
----
-92
3

skipif mysql # not compatible
query II rowsort label-279
SELECT DISTINCT - 65 + - 27, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-92
3

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + ( + + col1 ) col2 FROM tab0
----
-11
-34
98

query I rowsort
SELECT DISTINCT + col2 - + 61 AS col1 FROM tab1
----
-2
35
7

query I rowsort
SELECT + col0 * - + col2 + + 99 - - + col1 * - col2 FROM tab1 AS cor0
----
-5211
-6141
-9285

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

query II rowsort
SELECT + 71 AS col0, - col2 AS col1 FROM tab1 WHERE NOT + col0 = - 98 / + + col2 + ( - - col2 ) * - 75
----
71
-59
71
-68
71
-96

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

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

query I rowsort
SELECT ALL 61 - - + col1 FROM tab1 WHERE + + col0 <= col1 + + + col2 + + col0
----
108
66
75

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

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

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

skipif mysql # not compatible
query I rowsort label-290
SELECT + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) + - 13 AS col2 FROM tab2 AS cor0
----
NULL

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 95 > - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab0 WHERE NOT ( 3 * + ( + col1 ) IS NOT NULL )
----

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

query I rowsort
SELECT DISTINCT - col2 * col1 * + 77 * + col1 * + - 7 FROM tab1
----
10141824
795025
80964268

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

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

query II rowsort
SELECT ALL col2 AS col1, 39 FROM tab2
----
23
39
40
39
58
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-299
SELECT - col2 + - CAST( + - 94 AS SIGNED ) + - col0 FROM tab1
----
-50
-53
-65

skipif mysql # not compatible
query I rowsort label-299
SELECT - col2 + - CAST ( + - 94 AS INTEGER ) + - col0 FROM tab1
----
-50
-53
-65

query I rowsort
SELECT ALL - + col2 * - ( col1 ) - - 20 + 70 + - ( - 8 ) FROM tab1 AS cor0
----
1442
3294
393

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 73 / + 81 * - - 9 NOT BETWEEN col2 AND + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ( + col2 ) AS col0, ( ( + - col2 ) ) AS col0 FROM tab0 WHERE ( + col2 ) <> col2
----

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

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

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

query I rowsort
SELECT + - ( 27 ) + - 40 FROM tab0 AS cor0
----
-67
-67
-67

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-307
SELECT CAST( + + 93 AS SIGNED ) DIV 18 + + MAX( - 93 ) AS col2 FROM tab2 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-307
SELECT CAST ( + + 93 AS INTEGER ) / 18 + + MAX ( - 93 ) AS col2 FROM tab2 AS cor0
----
-88

query II rowsort
SELECT DISTINCT col0, 17 FROM tab2 AS cor0 WHERE NULL IS NULL
----
46
17
64
17
75
17

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

query I rowsort
SELECT ALL col2 + ( - + ( 32 ) ) + col0 * col1 AS col0 FROM tab1
----
4313
452
778

onlyif mysql # aggregate syntax: 
query I rowsort label-311
SELECT DISTINCT + COUNT( + col2 ) FROM tab1 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-311
SELECT DISTINCT + COUNT ( + col2 ) FROM tab1 WHERE col1 IS NULL
----
0

query I rowsort
SELECT DISTINCT - col1 - - + col1 AS col2 FROM tab0
----
0

query II rowsort
SELECT ALL + col0 - col1 AS col0, ( col0 ) AS col0 FROM tab0
----
-66
15
66
87
96
97

query I rowsort
SELECT 26 - - 98 FROM tab0
----
124
124
124

query I rowsort
SELECT - 51 * + 55 AS col2 FROM tab0 AS cor0
----
-2805
-2805
-2805

query I rowsort
SELECT ALL + - col2 FROM tab0 AS cor0 WHERE col1 >= NULL
----

query III rowsort
SELECT - 8 * + col0, + col2, + 95 AS col1 FROM tab2 AS cor0
----
9 values hashing to 2c2d820f1fc0f95eacc0d4f376a07383

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-323
SELECT + CAST( + 53 AS SIGNED ) * + + col1 + 23 AS col0 FROM tab2 AS cor0
----
2726
3574
4104

skipif mysql # not compatible
query I rowsort label-323
SELECT + CAST ( + 53 AS INTEGER ) * + + col1 + 23 AS col0 FROM tab2 AS cor0
----
2726
3574
4104

onlyif mysql # DIV for integer division: 
query I rowsort label-324
SELECT + 62 DIV + + col1 + + ( - 26 ) AS col1 FROM tab1 AS cor0
----
-14
-22
-25

skipif mysql # not compatible
query I rowsort label-324
SELECT + 62 / + + col1 + + ( - 26 ) AS col1 FROM tab1 AS cor0
----
-14
-22
-25

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 25 * - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-326
SELECT DISTINCT MIN( - + 91 ) AS col0, 20 FROM tab2
----
-91
20

skipif mysql # not compatible
query II rowsort label-326
SELECT DISTINCT MIN ( - + 91 ) AS col0, 20 FROM tab2
----
-91
20

onlyif mysql # aggregate syntax: 
query I rowsort label-327
SELECT ALL COUNT( DISTINCT col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-327
SELECT ALL COUNT ( DISTINCT col0 ) FROM tab1
----
3

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-328
SELECT ALL + + CAST ( NULL AS INTEGER ) col1 FROM tab0 WHERE col0 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-329
SELECT + + col1 DIV + 63 + - ( - col2 ) + col2 AS col0 FROM tab0 AS cor0
----
198
20
95

skipif mysql # not compatible
query I rowsort label-329
SELECT + + col1 / + 63 + - ( - col2 ) + col2 AS col0 FROM tab0 AS cor0
----
198
20
95

query I rowsort
SELECT - 11 - ( - 31 ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-334
SELECT 21 - COUNT( * ) + + 93 AS col1 FROM tab1 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-334
SELECT 21 - COUNT ( * ) + + 93 AS col1 FROM tab1 AS cor0
----
111

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - col2 * col2 * 41 col1 FROM tab0 AS cor0
----
401842
4121
90650

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-336
SELECT DISTINCT + - col2 * + + CAST( NULL AS SIGNED ) - - - col1 AS col0, + 30 FROM tab2 AS cor0
----
NULL
30

skipif mysql # not compatible
query II rowsort label-336
SELECT DISTINCT + - col2 * + + CAST ( NULL AS INTEGER ) - - - col1 AS col0, + 30 FROM tab2 AS cor0
----
NULL
30

query I rowsort
SELECT DISTINCT 74 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 49 - + - 16 - - col0 FROM tab1
----
116
150
156

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-339
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col2, ( + + col1 ) FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-339
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col2, ( + + col1 ) FROM tab1
----
NULL
14
NULL
47
NULL
5

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

query I rowsort
SELECT - - col1 + + col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + - 28 * - col1 FROM tab2 AS cor0
----
1428
1876
2156

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-343
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL >= CAST( 44 AS SIGNED ) * - 39 + + 26 + 77 + ( - - col1 ) * - col0 * col2
----

skipif mysql # not compatible
query III rowsort label-343
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL >= CAST ( 44 AS INTEGER ) * - 39 + + 26 + 77 + ( - - col1 ) * - col0 * col2
----

query I rowsort
SELECT ALL - col2 * 9 * - 46 * col1 FROM tab1
----
122130
1323144
556416

query I rowsort
SELECT - 87 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

onlyif mysql # aggregate syntax: 
query II rowsort label-346
SELECT DISTINCT - MAX( - 32 ) AS col2, + 15 FROM tab0 AS cor0
----
32
15

skipif mysql # not compatible
query II rowsort label-346
SELECT DISTINCT - MAX ( - 32 ) AS col2, + 15 FROM tab0 AS cor0
----
32
15

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col0 * + col2 * + col2 * - col0 col0 FROM tab0
----
497072
756910
92217708

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-349
SELECT + 70 DIV 81 + COUNT( * ), - 44 col1 FROM tab2
----
3
-44

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 > + 66
----
85
5
59
91
47
68

query II rowsort
SELECT + ( - col1 ) * + col2 - - + col2, - col0 AS col1 FROM tab2
----
-1150
-46
-3040
-64
-3828
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-353
SELECT 92 * + + CAST( NULL AS SIGNED ) + ( 15 ) - col2 + 46 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-353
SELECT 92 * + + CAST ( NULL AS INTEGER ) + ( 15 ) - col2 + 46 AS col2 FROM tab2
----
NULL
NULL
NULL

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - + 90 + - - 69 col1 FROM tab1 AS cor0
----
-26
-35
-68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-358
SELECT ALL - 52 + + MAX( 60 ) + COUNT( * ) AS col1 FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-358
SELECT ALL - 52 + + MAX ( 60 ) + COUNT ( * ) AS col1 FROM tab2
----
11

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + + col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT ( - - ( - 23 ) ) FROM tab0
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 40 * - 45 col0 FROM tab2
----
-1800
-1800
-1800

query I rowsort
SELECT DISTINCT col1 * - 55 FROM tab2
----
-2805
-3685
-4235

query I rowsort
SELECT DISTINCT ( + 6 ) AS col1 FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT SUM( 90 ) * 65 FROM tab1 cor0
----
17550

skipif mysql # not compatible
query I rowsort label-364
SELECT SUM ( 90 ) * 65 FROM tab1 cor0
----
17550

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + ( col2 ) ) col1 FROM tab0 AS cor0
----
-10
-47
-99

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

query I rowsort
SELECT - ( - 75 ) AS col0 FROM tab1 AS cor0
----
75
75
75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 36 / - col0 + + 22 - - 90 IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-370
SELECT ALL CAST( 35 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
35
35
35

skipif mysql # not compatible
query I rowsort label-370
SELECT ALL CAST ( 35 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
35
35
35

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

query I rowsort
SELECT + + col2 * - 65 FROM tab0 AS cor0
----
-3055
-6435
-650

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

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

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

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

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

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

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

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

query I rowsort
SELECT + col2 * + + col2 + - + col0 + - col2 FROM tab1 AS cor0
----
3337
4465
9069

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

query I rowsort
SELECT ALL + + 93 + col0 FROM tab2 AS cor0
----
139
157
168

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

query I rowsort
SELECT col1 * - col1 - col1 AS col2 FROM tab2 AS cor0
----
-2652
-4556
-6006

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

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

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

query I rowsort
SELECT - 80 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-80
-80
-80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-385
SELECT * FROM tab0 WHERE NOT 31 - - + col2 * + 37 + CAST( + 34 AS SIGNED ) + - 39 > - col0
----

skipif mysql # not compatible
query III rowsort label-385
SELECT * FROM tab0 WHERE NOT 31 - - + col2 * + 37 + CAST ( + 34 AS INTEGER ) + - 39 > - col0
----

query I rowsort
SELECT 44 + + col0 * - col0 FROM tab0 WHERE NOT - - col0 + col2 <= - - ( - + ( - col0 ) )
----
-181
-7525
-9365

query I rowsort
SELECT DISTINCT 69 * + + col2 FROM tab0
----
3243
6831
690

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 41 * - 59 col2 FROM tab2
----
-2419
-2419
-2419

onlyif mysql # aggregate syntax: 
query I rowsort label-389
SELECT ( + MIN( col1 ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-389
SELECT ( + MIN ( col1 ) ) FROM tab0
----
1

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 / + 71 - col1 <> + col0
----

query I rowsort
SELECT ALL - 81 * - - col2 AS col1 FROM tab2
----
-1863
-3240
-4698

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 54 * + - col1 col2 FROM tab1
----
2538
270
756

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

onlyif mysql # aggregate syntax: 
query II rowsort label-398
SELECT 90, + ( - - MAX( DISTINCT - 26 ) ) col2 FROM tab0 AS cor0
----
90
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-398
SELECT 90, + ( - - MAX ( DISTINCT - 26 ) ) col2 FROM tab0 AS cor0
----
90
-26

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

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

query I rowsort
SELECT + + col1 + - 5 + - col0 FROM tab1 AS cor0
----
-42
-49
-85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-401
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 60 * + - CAST( + 84 AS SIGNED ) * ( ( + ( - + 37 ) ) ) BETWEEN NULL AND col0 * col2 + + + col0
----

skipif mysql # not compatible
query III rowsort label-401
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 60 * + - CAST ( + 84 AS INTEGER ) * ( ( + ( - + 37 ) ) ) BETWEEN NULL AND col0 * col2 + + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-402
SELECT ALL + 76 + - 7 + + COUNT( DISTINCT + col1 ) AS col1 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-402
SELECT ALL + 76 + - 7 + + COUNT ( DISTINCT + col1 ) AS col1 FROM tab1
----
72

query I rowsort
SELECT ALL 75 * - col0 FROM tab0
----
-1125
-6525
-7275

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 BETWEEN NULL AND - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
query I rowsort label-406
SELECT DISTINCT 60 / 36 / + + COUNT ( * ) FROM tab2
----
0

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

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

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

query II rowsort
SELECT + 95, col0 AS col2 FROM tab2 cor0
----
95
46
95
64
95
75

query II rowsort
SELECT ALL 37 AS col1, col0 AS col0 FROM tab1 AS cor0
----
37
51
37
85
37
91

query I rowsort
SELECT ALL + 25 + ( + - col1 ) AS col2 FROM tab1 cor0
----
-22
11
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-413
SELECT DISTINCT col2 - + - 0 + + ( + col0 ) + - - col0 * + + CAST( NULL AS SIGNED ), + col0 AS col2 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-413
SELECT DISTINCT col2 - + - 0 + + ( + col0 ) + - - col0 * + + CAST ( NULL AS INTEGER ), + col0 AS col2 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

query III rowsort
SELECT * FROM tab0 WHERE + - col0 + - ( 89 ) * + - 46 * + 20 * + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 40 < NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-419
SELECT ALL - col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

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

query II rowsort
SELECT 90 AS col2, - col0 AS col0 FROM tab0 AS cor0
----
90
-15
90
-87
90
-97

query I rowsort
SELECT ALL + 83 * - col0 AS col1 FROM tab2 AS cor0
----
-3818
-5312
-6225

query I rowsort
SELECT ALL ( col2 ) * 68 - col2 FROM tab1
----
3953
4556
6432

query I rowsort
SELECT DISTINCT col1 * col2 + col2 * col2 AS col0 FROM tab0 WHERE col2 NOT BETWEEN + 50 / + 45 + 71 * - 33 AND - col0 * ( - 96 / 11 )
----

query I rowsort
SELECT ALL 13 + + 16 * + col1 FROM tab2
----
1085
1245
829

onlyif mysql # DIV for integer division: 
query I rowsort label-425
SELECT DISTINCT col2 DIV + col2 - + col2 FROM tab2
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-425
SELECT DISTINCT col2 / + col2 - + col2 FROM tab2
----
-22
-39
-57

query I rowsort
SELECT DISTINCT + 23 * - 6 FROM tab2 WHERE ( NULL ) IS NULL
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-427
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 WHERE col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-427
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 WHERE col0 IS NOT NULL
----
3

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

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

query I rowsort
SELECT DISTINCT - 50 * - col2 FROM tab2
----
1150
2000
2900

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 WHERE NOT ( 52 * col2 ) IN ( - col0 )
----
51
85
91

query III rowsort
SELECT * FROM tab2 WHERE NOT 84 NOT IN ( - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 55 IS NOT NULL
----

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

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

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

skipif mysql # not compatible
query III rowsort label-435
SELECT * FROM tab1 WHERE NOT col0 NOT IN ( + CAST ( col0 AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + 19 ) col1 FROM tab1
----
-19
-19
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-437
SELECT CAST( - col0 AS SIGNED ) + + 54 FROM tab2
----
-10
-21
8

skipif mysql # not compatible
query I rowsort label-437
SELECT CAST ( - col0 AS INTEGER ) + + 54 FROM tab2
----
-10
-21
8

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 NOT BETWEEN NULL AND 30
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 85 * ( - col0 ) AS col0 FROM tab0
----
-1275
-7395
-8245

query I rowsort
SELECT DISTINCT col0 * - col1 + + ( - ( + col1 ) ) AS col1 FROM tab0 WHERE NULL IN ( col2 * 46 )
----

query I rowsort
SELECT DISTINCT - 81 + 54 AS col0 FROM tab1
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-442
SELECT - col1 DIV col2 + - col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-442
SELECT - col1 / col2 + - col0 FROM tab1
----
-51
-85
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-443
SELECT + SUM( CAST( - col1 AS SIGNED ) ) * + 57 FROM tab2
----
-11115

skipif mysql # not compatible
query I rowsort label-443
SELECT + SUM ( CAST ( - col1 AS INTEGER ) ) * + 57 FROM tab2
----
-11115

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 + col2 * 93 col2 FROM tab0 cor0
----
4418
9254
977

query I rowsort
SELECT DISTINCT col1 * col1 + col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( + 36 * + 69 + 54 * ( + col1 ) )
----

query I rowsort
SELECT + col1 * 28 + col2 AS col1 FROM tab2 AS cor0
----
1451
1934
2196

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

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

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

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

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

query I rowsort
SELECT 14 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT 35 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 87 col0 FROM tab2
----
4437
5829
6699

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-454
SELECT CAST( + col0 AS SIGNED ) * - 85 AS col0 FROM tab2 AS cor0
----
-3910
-5440
-6375

skipif mysql # not compatible
query I rowsort label-454
SELECT CAST ( + col0 AS INTEGER ) * - 85 AS col0 FROM tab2 AS cor0
----
-3910
-5440
-6375

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL >= col2
----

query I rowsort
SELECT - - col1 * - 33 FROM tab1 AS cor0
----
-1551
-165
-462

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

query I rowsort
SELECT + 33 AS col2 FROM tab1 cor0 WHERE NOT NULL BETWEEN + col0 AND ( NULL )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-460
SELECT DISTINCT + col1 DIV 74 col1 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-460
SELECT DISTINCT + col1 / 74 col1 FROM tab0 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-461
SELECT DISTINCT COUNT( + col1 ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 49 AND - col0
----
0

skipif mysql # not compatible
query I rowsort label-461
SELECT DISTINCT COUNT ( + col1 ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 49 AND - col0
----
0

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

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT ( + 57 - - col2 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
10
47
99

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 + col2 * col2 ) IN ( - 15 - ( - 64 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-466
SELECT - COUNT( - col1 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-466
SELECT - COUNT ( - col1 ) AS col2 FROM tab0
----
-3

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

query I rowsort
SELECT - col1 * + 91 AS col1 FROM tab1
----
-1274
-4277
-455

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-471
SELECT - ( CAST( - MIN( - col2 ) AS SIGNED ) ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-471
SELECT - ( CAST ( - MIN ( - col2 ) AS INTEGER ) ) FROM tab2
----
-58

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

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

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

query I rowsort
SELECT DISTINCT - 65 + - col1 FROM tab1 AS cor0
----
-112
-70
-79

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT NULL <> NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-477
SELECT + CAST( - col2 AS SIGNED ) col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-477
SELECT + CAST ( - col2 AS INTEGER ) col1 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-478
SELECT - COUNT( * ) AS col1, COUNT( * ) AS col0 FROM tab1
----
-3
3

skipif mysql # not compatible
query II rowsort label-478
SELECT - COUNT ( * ) AS col1, COUNT ( * ) AS col0 FROM tab1
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-479
SELECT COUNT( * ) - 50 FROM tab2 WHERE NULL <> + col0
----
-50

skipif mysql # not compatible
query I rowsort label-479
SELECT COUNT ( * ) - 50 FROM tab2 WHERE NULL <> + col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-480
SELECT DISTINCT + - SUM( ALL + 99 ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-891

skipif mysql # not compatible
query I rowsort label-480
SELECT DISTINCT + - SUM ( ALL + 99 ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-891

query I rowsort
SELECT ALL 36 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
36
36
36

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col0 FROM tab1 AS cor0 WHERE col1 * + + 33 - + col2 <> NULL
----

query I rowsort
SELECT ALL col1 + - 49 FROM tab1 AS cor0
----
-2
-35
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-485
SELECT DISTINCT + COUNT( * ) + + - MIN( + col0 ) FROM tab0 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-485
SELECT DISTINCT + COUNT ( * ) + + - MIN ( + col0 ) FROM tab0 cor0
----
-12

query I rowsort
SELECT ALL + + col0 * + 28 + + ( 86 ) + col2 FROM tab0 AS cor0
----
2532
2901
553

query I rowsort
SELECT ALL - ( - 90 ) + 15 AS col0 FROM tab2 AS cor0
----
105
105
105

query I rowsort
SELECT + col2 + + col2 * 38 AS col2 FROM tab0 AS cor0
----
1833
3861
390

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-490
SELECT DISTINCT 37 + CAST( NULL AS SIGNED ) / col1 FROM tab0 WHERE NOT ( + col2 * + - CAST( - 53 AS SIGNED ) * col0 + - col1 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-490
SELECT DISTINCT 37 + CAST ( NULL AS INTEGER ) / col1 FROM tab0 WHERE NOT ( + col2 * + - CAST ( - 53 AS INTEGER ) * col0 + - col1 ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-491
SELECT - 67 * + + COUNT( * ) FROM tab0
----
-201

skipif mysql # not compatible
query I rowsort label-491
SELECT - 67 * + + COUNT ( * ) FROM tab0
----
-201

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

onlyif mysql # DIV for integer division: 
query I rowsort label-493
SELECT DISTINCT + col0 DIV col0 - + - col2 + + col2 FROM tab2
----
117
47
81

skipif mysql # not compatible
query I rowsort label-493
SELECT DISTINCT + col0 / col0 - + - col2 + + col2 FROM tab2
----
117
47
81

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 86 col2 FROM tab0
----
1290
7482
8342

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 96 * + + 0 + 26 NOT IN ( - 14 - - 80 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-498
SELECT DISTINCT - 10 DIV + 84 * + - 89 * - col0 + + col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-498
SELECT DISTINCT - 10 / + 84 * + - 89 * - col0 + + col1 FROM tab2
----
51
67
77

query I rowsort
SELECT DISTINCT 50 FROM tab0 WHERE NOT - col0 BETWEEN + - 43 AND NULL
----
50

query III rowsort
SELECT * FROM tab0 WHERE NULL > + col0 * + ( + col0 )
----

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

query I rowsort
SELECT ALL col1 + + col1 * - col0 + col1 FROM tab0 AS cor0
----
-1053
-1785
-95

query I rowsort
SELECT DISTINCT + 22 * col1 FROM tab0 AS cor0 WHERE NOT ( + + col0 * 58 IS NULL )
----
1782
22
462

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT col1 + + col1 >= ( col1 - col1 ) )
----

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-507
SELECT ALL MAX( DISTINCT + CAST( ( - col0 ) AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-507
SELECT ALL MAX ( DISTINCT + CAST ( ( - col0 ) AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
-51

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

onlyif mysql # aggregate syntax: 
query I rowsort label-509
SELECT DISTINCT - COUNT( * ) + + MAX( col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-509
SELECT DISTINCT - COUNT ( * ) + + MAX ( col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> - 62
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-511
SELECT - - 57 DIV 70 + col2 FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-511
SELECT - - 57 / 70 + col2 FROM tab2 cor0
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-512
SELECT + 55 DIV col0 * + + col2 FROM tab0 AS cor0
----
0
0
141

skipif mysql # not compatible
query I rowsort label-512
SELECT + 55 / col0 * + + col2 FROM tab0 AS cor0
----
0
0
141

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 * - - 83 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-515
SELECT DISTINCT + MAX( DISTINCT + 25 ) FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-515
SELECT DISTINCT + MAX ( DISTINCT + 25 ) FROM tab2
----
25

query I rowsort
SELECT - ( + + col1 ) AS col2 FROM tab1 WHERE NOT 95 IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-517
SELECT ALL MAX( DISTINCT - 95 ) AS col2 FROM tab2
----
-95

skipif mysql # not compatible
query I rowsort label-517
SELECT ALL MAX ( DISTINCT - 95 ) AS col2 FROM tab2
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-518
SELECT + 38 DIV - col1 AS col0 FROM tab1
----
-2
-7
0

skipif mysql # not compatible
query I rowsort label-518
SELECT + 38 / - col1 AS col0 FROM tab1
----
-2
-7
0

query II rowsort
SELECT ALL 35 AS col0, + col0 * + col2 * - col2 AS col0 FROM tab2
----
35
-102400
35
-24334
35
-252300

query I rowsort
SELECT - col0 + - 77 AS col1 FROM tab2 AS cor0 WHERE col2 >= - col2
----
-123
-141
-152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-521
SELECT - col2 + CAST( col1 AS SIGNED ) * - col2 FROM tab0 AS cor0
----
-198
-220
-3854

skipif mysql # not compatible
query I rowsort label-521
SELECT - col2 + CAST ( col1 AS INTEGER ) * - col2 FROM tab0 AS cor0
----
-198
-220
-3854

query I rowsort
SELECT - ( + col0 ) + 54 AS col2 FROM tab2 AS cor0
----
-10
-21
8

onlyif mysql # DIV for integer division: 
query I rowsort label-523
SELECT ALL + 97 DIV + 70 + - + col2 FROM tab2
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-523
SELECT ALL + 97 / + 70 + - + col2 FROM tab2
----
-22
-39
-57

query I rowsort
SELECT DISTINCT ( + - col1 ) * + - 91 + + col0 + + ( - col2 ) * col0 AS col0 FROM tab2 AS cor0 WHERE ( NOT NULL IS NULL )
----

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-526
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + COUNT( * ) AS col0, 86 DIV MAX( ALL - + col0 ) FROM tab1 AS cor0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-526
SELECT DISTINCT + CAST ( NULL AS REAL ) + COUNT ( * ) AS col0, 86 / MAX ( ALL - + col0 ) FROM tab1 AS cor0
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-527
SELECT DISTINCT - MIN( col1 ) AS col2 FROM tab1 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-527
SELECT DISTINCT - MIN ( col1 ) AS col2 FROM tab1 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----
NULL

query I rowsort
SELECT DISTINCT - 33 - 12 AS col1 FROM tab2 AS cor0
----
-45

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

onlyif mysql # aggregate syntax: 
query I rowsort label-530
SELECT DISTINCT + COUNT( * ) + 49 AS col0 FROM tab1 WHERE col1 - - col2 IS NULL
----
49

skipif mysql # not compatible
query I rowsort label-530
SELECT DISTINCT + COUNT ( * ) + 49 AS col0 FROM tab1 WHERE col1 - - col2 IS NULL
----
49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IS NOT NULL OR + col0 NOT BETWEEN col2 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + ( - + col2 ) - col1 + col0 + + col2 * col2 FROM tab1
----
3502
4600
9157

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col0 / + 57 < - col2 * - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE + 96 * + - 93 - ( - 98 ) >= ( NULL )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-536
SELECT + 83 + + COUNT( * ) * - + 57 FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-536
SELECT + 83 + + COUNT ( * ) * - + 57 FROM tab1
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-537
SELECT - col1 + 10 - - 87 DIV - col0 + - col2 - + ( col0 ) + - - col2 AS col2 FROM tab2
----
-132
-133
-88

skipif mysql # not compatible
query I rowsort label-537
SELECT - col1 + 10 - - 87 / - col0 + - col2 - + ( col0 ) + - - col2 AS col2 FROM tab2
----
-132
-133
-88

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-540
SELECT - col2 / col0 FROM tab2 WHERE NOT + ( + col2 ) <> ( - CAST( NULL AS SIGNED ) * col0 )
----

skipif mysql # not compatible
query I rowsort label-540
SELECT - col2 / col0 FROM tab2 WHERE NOT + ( + col2 ) <> ( - CAST ( NULL AS INTEGER ) * col0 )
----

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

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

query II rowsort
SELECT - col0 * - col0 AS col2, col2 FROM tab2 cor0
----
2116
23
4096
40
5625
58

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

query I rowsort
SELECT ALL col1 * + - col0 AS col2 FROM tab1 AS cor0
----
-425
-4277
-714

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

onlyif mysql # DIV for integer division: 
query I rowsort label-546
SELECT DISTINCT col0 DIV col2 FROM tab0 WHERE NOT - 63 >= + - col0
----
0

skipif mysql # not compatible
query I rowsort label-546
SELECT DISTINCT col0 / col2 FROM tab0 WHERE NOT - 63 >= + - col0
----
0

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

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT 32 >= - col1 * - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-551
SELECT ALL COUNT( * ) * - 52 FROM tab1
----
-156

skipif mysql # not compatible
query I rowsort label-551
SELECT ALL COUNT ( * ) * - 52 FROM tab1
----
-156

query I rowsort
SELECT DISTINCT col2 * 58 FROM tab1
----
3422
3944
5568

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

query I rowsort
SELECT ALL - 85 * col0 + col2 AS col1 FROM tab0 WHERE ( - 84 * - + ( + col2 ) ) NOT BETWEEN + col0 * + - 30 AND + col1 + + ( + col2 )
----
-1228
-7385
-8146

query I rowsort
SELECT ALL + col2 * 45 * + col2 FROM tab1
----
156645
208080
414720

onlyif mysql # aggregate syntax: 
query II rowsort label-556
SELECT 17 AS col2, + COUNT( DISTINCT - col0 ) col0 FROM tab2
----
17
3

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT ( - - col0 ) + col0 AS col2 FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT ALL - 69 AS col2 FROM tab2 AS cor0 WHERE NOT + 72 IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-565
SELECT + MAX( + CAST( col0 AS SIGNED ) ) col2 FROM tab2
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-565
SELECT + MAX ( + CAST ( col0 AS INTEGER ) ) col2 FROM tab2
----
75

query I rowsort
SELECT DISTINCT + 36 + - 49 AS col1 FROM tab2
----
-13

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col1 NOT IN ( - col0, - col2 / - 82, col0 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-569
SELECT ALL MIN( ALL + 75 ) col0 FROM tab0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-569
SELECT ALL MIN ( ALL + 75 ) col0 FROM tab0
----
75

query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE NOT + col1 + - 86 NOT IN ( - + col2 )
----

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

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

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

skipif mysql # not compatible
query I rowsort label-572
SELECT - + MIN ( col1 ) AS col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + col0 / + col1 * col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

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

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

query I rowsort
SELECT DISTINCT - ( 41 ) * - + col0 + - + col1 + + - col0 FROM tab0 AS cor0
----
3459
3879
519

query I rowsort
SELECT DISTINCT - 63 * + 45 AS col1 FROM tab2 AS cor0
----
-2835

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

query I rowsort
SELECT DISTINCT + col0 * + col2 * + col1 - - col2 + - 18 AS col1 FROM tab1 WHERE NOT + 20 <> NULL
----

query II rowsort
SELECT ALL + 3 * - 16, + col1 FROM tab1
----
-48
14
-48
47
-48
5

query III rowsort
SELECT * FROM tab1 WHERE + - 2 > - - 55
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - 9 col2 FROM tab0
----
-135
-783
-873

onlyif mysql # DIV for integer division: 
query I rowsort label-582
SELECT ALL 32 DIV + - col2 AS col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-582
SELECT ALL 32 / + - col2 AS col0 FROM tab2
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-583
SELECT DISTINCT + ( + col1 ) * col2 + - CAST( + 49 AS SIGNED ) + + - ( col1 ) + - col1 AS col0 FROM tab0 AS cor0
----
119
3596
48

skipif mysql # not compatible
query I rowsort label-583
SELECT DISTINCT + ( + col1 ) * col2 + - CAST ( + 49 AS INTEGER ) + + - ( col1 ) + - col1 AS col0 FROM tab0 AS cor0
----
119
3596
48

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

query I rowsort
SELECT DISTINCT col2 + + + 21 FROM tab0 AS cor0
----
120
31
68

query I rowsort
SELECT + + 18 + + - col0 FROM tab1 AS cor0
----
-33
-67
-73

query II rowsort
SELECT col0 + - col1, 91 AS col2 FROM tab0 AS cor0
----
-66
91
66
91
96
91

query I rowsort
SELECT - col2 + + - 4 AS col2 FROM tab0 cor0
----
-103
-14
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-589
SELECT MAX( + ( + 89 ) ) + - 25 FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-589
SELECT MAX ( + ( + 89 ) ) + - 25 FROM tab2
----
64

query I rowsort
SELECT + - 91 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

query I rowsort
SELECT + col0 AS col1 FROM tab2 WHERE + + 88 BETWEEN - ( - col2 ) AND - ( + 81 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-592
SELECT DISTINCT - 97 DIV - ( - COUNT( * ) ) FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-592
SELECT DISTINCT - 97 / - ( - COUNT ( * ) ) FROM tab0
----
-32

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

onlyif mysql # aggregate syntax: 
query I rowsort label-594
SELECT - - COUNT( * ) * 79 + 25 - + + 96 col0 FROM tab1 cor0
----
166

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-594
SELECT - - COUNT ( * ) * 79 + 25 - + + 96 col0 FROM tab1 cor0
----
166

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

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

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

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

query I rowsort
SELECT + - col0 - - 38 AS col1 FROM tab2 AS cor0
----
-26
-37
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-598
SELECT ALL + - COUNT( * ) + MIN( ALL - col2 ), 77 AS col1 FROM tab2 AS cor0
----
-61
77

skipif mysql # not compatible
query II rowsort label-598
SELECT ALL + - COUNT ( * ) + MIN ( ALL - col2 ), 77 AS col1 FROM tab2 AS cor0
----
-61
77

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

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

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

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

query II rowsort
SELECT ALL - col0 AS col1, - col0 AS col2 FROM tab2
----
-46
-46
-64
-64
-75
-75

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

query II rowsort
SELECT ALL 3, 37 + col0 * - col0 AS col0 FROM tab1
----
3
-2564
3
-7188
3
-8244

query I rowsort
SELECT + 58 * - - 97 FROM tab0
----
5626
5626
5626

query II rowsort
SELECT col1 AS col1, 15 AS col1 FROM tab1
----
14
15
47
15
5
15

query II rowsort
SELECT DISTINCT 93, col2 AS col0 FROM tab0
----
93
10
93
47
93
99

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-609
SELECT DISTINCT MIN( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, 19 * col0 AS col2 FROM tab0 AS cor0
----
15
285
87
1653
97
1843

onlyif mysql # DIV for integer division: 
query II rowsort label-611
SELECT 68 DIV + + col2, + 24 + col0 col0 FROM tab2 AS cor0
----
1
88
1
99
2
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-611
SELECT 68 / + + col2, + 24 + col0 col0 FROM tab2 AS cor0
----
1
88
1
99
2
70

onlyif mysql # aggregate syntax: 
query I rowsort label-612
SELECT ALL + SUM( + 57 ) AS col0 FROM tab0 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-612
SELECT ALL + SUM ( + 57 ) AS col0 FROM tab0 AS cor0
----
171

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

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

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

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

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

query II rowsort
SELECT DISTINCT + col1 * + col2 * - col2, col1 FROM tab2
----
-123200
77
-225388
67
-26979
51

query I rowsort
SELECT DISTINCT + ( col1 ) * - col0 AS col1 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT ALL + + 32 AS col0 FROM tab2 WHERE NOT ( - col0 ) BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ( 43 ) * + col1 * - col1 FROM tab2
----
-111843
-193027
-254947

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-621
SELECT 43 DIV ( - ( - COUNT( * ) ) ) FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-621
SELECT 43 / ( - ( - COUNT ( * ) ) ) FROM tab2
----
14

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

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

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

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

query I rowsort
SELECT + col2 + + + col2 * - col1 FROM tab0
----
-200
-3760
0

onlyif mysql # aggregate syntax: 
query II rowsort label-626
SELECT - ( + COUNT( * ) ) * + - COUNT( * ) + + 22, + 79 AS col1 FROM tab0
----
31
79

skipif mysql # not compatible
query II rowsort label-626
SELECT - ( + COUNT ( * ) ) * + - COUNT ( * ) + + 22, + 79 AS col1 FROM tab0
----
31
79

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

query I rowsort
SELECT DISTINCT 48 * + 75 FROM tab0
----
3600

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( ( NULL IN ( - 98 + + + 61, col1 * + - col2 * + - 38 ) ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-632
SELECT DISTINCT + 67 DIV 39 col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-632
SELECT DISTINCT + 67 / 39 col1 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-633
SELECT MIN( col1 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-633
SELECT MIN ( col1 ) AS col1 FROM tab0
----
1

query I rowsort
SELECT ALL ( + + col0 ) AS col1 FROM tab1
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, col2 col2 FROM tab2
----
46
23
64
40
75
58

query III rowsort
SELECT ALL * FROM tab1 WHERE 95 NOT BETWEEN - 88 * - col0 - + 89 + col2 + col2 AND - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-637
SELECT - 12, - COUNT( * ) AS col0 FROM tab0
----
-12
-3

skipif mysql # not compatible
query II rowsort label-637
SELECT - 12, - COUNT ( * ) AS col0 FROM tab0
----
-12
-3

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

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

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

query I rowsort
SELECT - 26 * + 65 + + col1 FROM tab2
----
-1613
-1623
-1639

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

skipif mysql # not compatible
query I rowsort label-641
SELECT ALL COUNT ( * ) - - 71 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
80

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT - SUM( + + 68 ) AS col1 FROM tab2 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-643
SELECT - SUM ( + + 68 ) AS col1 FROM tab2 AS cor0
----
-204

query I rowsort
SELECT - + 32 FROM tab1 AS cor0 WHERE NULL < 44
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-645
SELECT ALL + 43 * + 21 * - CAST( NULL AS SIGNED ) + + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-645
SELECT ALL + 43 * + 21 * - CAST ( NULL AS INTEGER ) + + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col2 + - ( + col2 ) FROM tab1 AS cor0
----
-118
-136
-192

onlyif mysql # aggregate syntax: 
query II rowsort label-647
SELECT - - 43 AS col2, + COUNT( * ) FROM tab2 AS cor0
----
43
3

skipif mysql # not compatible
query II rowsort label-647
SELECT - - 43 AS col2, + COUNT ( * ) FROM tab2 AS cor0
----
43
3

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT - 44 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-648
SELECT - 44 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-132

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

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

query I rowsort
SELECT DISTINCT + col0 * - - col2 + 4 FROM tab2 AS cor0
----
1062
2564
4354

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-651
SELECT - col2 * CAST( col1 AS SIGNED ) FROM tab1
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-651
SELECT - col2 * CAST ( col1 AS INTEGER ) FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT DISTINCT col1 * + col2 * - col1 FROM tab1
----
-1475
-150212
-18816

query I rowsort
SELECT DISTINCT col1 * + col0 + + 90 FROM tab1
----
4367
515
804

query I rowsort
SELECT col1 * + col0 AS col1 FROM tab1 WHERE ( NULL ) = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-655
SELECT DISTINCT - SUM( + + 99 ) AS col1, COUNT( * ) FROM tab0 AS cor0
----
-297
3

skipif mysql # not compatible
query II rowsort label-655
SELECT DISTINCT - SUM ( + + 99 ) AS col1, COUNT ( * ) FROM tab0 AS cor0
----
-297
3

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

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

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

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

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

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

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

query I rowsort
SELECT - col0 + + + 94 AS col2 FROM tab2 AS cor0
----
19
30
48

query I rowsort
SELECT DISTINCT - col0 * - - 30 + 41 + - col1 FROM tab0 AS cor0
----
-2590
-2870
-490

query I rowsort
SELECT - 81 AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN + col1 * - 51 * col0 AND - 55
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-663
SELECT ALL COUNT( * ) DIV 11 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-663
SELECT ALL COUNT ( * ) / 11 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

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

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

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

query I rowsort
SELECT ALL - col1 * - 18 * - + 29 + - + col0 * + 27 AS col0 FROM tab2 AS cor0
----
-27864
-36999
-41922

onlyif mysql # DIV for integer division: 
query I rowsort label-667
SELECT DISTINCT + - col1 DIV 6 * + + col1 FROM tab1 AS cor0
----
-28
-329
0

skipif mysql # not compatible
query I rowsort label-667
SELECT DISTINCT + - col1 / 6 * + + col1 FROM tab1 AS cor0
----
-28
-329
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-670
SELECT - - COUNT( * ) FROM tab0 WHERE NOT col0 + col2 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-670
SELECT - - COUNT ( * ) FROM tab0 WHERE NOT col0 + col2 <> NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-671
SELECT + - CAST( NULL AS SIGNED ) / - + col2 * - 7 * + ( + col0 ) AS col0 FROM tab2 WHERE NOT col1 = + 2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-671
SELECT + - CAST ( NULL AS INTEGER ) / - + col2 * - 7 * + ( + col0 ) AS col0 FROM tab2 WHERE NOT col1 = + 2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 49 * col2 AS col2 FROM tab2 AS cor0
----
-1127
-1960
-2842

query I rowsort
SELECT + 81 * + 40 - - 66 FROM tab1 cor0
----
3306
3306
3306

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

query I rowsort
SELECT ALL 29 AS col1 FROM tab2 cor0
----
29
29
29

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

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

query I rowsort
SELECT + col0 * + - col2 - + col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1109
-2637
-4417

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-678
SELECT DISTINCT + + COUNT( * ) + - COUNT( * ) AS col2, - CAST( NULL AS SIGNED ) * - - 9 FROM tab0 WHERE NOT + + col2 IS NOT NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-678
SELECT DISTINCT + + COUNT ( * ) + - COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER ) * - - 9 FROM tab0 WHERE NOT + + col2 IS NOT NULL
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-679
SELECT COUNT( * ) * + + 35 AS col1 FROM tab2
----
105

skipif mysql # not compatible
query I rowsort label-679
SELECT COUNT ( * ) * + + 35 AS col1 FROM tab2
----
105

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

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT DISTINCT COUNT( DISTINCT 14 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-681
SELECT DISTINCT COUNT ( DISTINCT 14 ) FROM tab0 AS cor0
----
1

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

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

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

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

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

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

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

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE - col2 IN ( + col1, 51, - - 30 * - col1 )
----

query I rowsort
SELECT ALL - 7 + - col2 AS col0 FROM tab0 cor0
----
-106
-17
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-688
SELECT ALL SUM( ALL - col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-688
SELECT ALL SUM ( ALL - col1 ) FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-689
SELECT - SUM( - - 75 ) + + - SUM( - 4 ) AS col1 FROM tab2 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-689
SELECT - SUM ( - - 75 ) + + - SUM ( - 4 ) AS col1 FROM tab2 AS cor0
----
-213

query I rowsort
SELECT col0 * + 52 + + - 63 - - col0 FROM tab2
----
2375
3329
3912

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

skipif mysql # not compatible
query II rowsort label-691
SELECT - MAX ( DISTINCT - 59 ) AS col1, COUNT ( * ) FROM tab0
----
59
3

query II rowsort
SELECT DISTINCT + col0 AS col2, col2 * + 34 AS col1 FROM tab2
----
46
782
64
1360
75
1972

query III rowsort
SELECT * FROM tab2 WHERE - ( + 62 ) + + + col0 NOT BETWEEN + 66 AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-694
SELECT col2 DIV - - 88 col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-694
SELECT col2 / - - 88 col2 FROM tab1
----
0
0
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-696
SELECT + - COUNT( * ) * + 8 + + + 43 AS col0 FROM tab1 cor0
----
19

skipif mysql # not compatible
query I rowsort label-696
SELECT + - COUNT ( * ) * + 8 + + + 43 AS col0 FROM tab1 cor0
----
19

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 61 * + col1 col0 FROM tab1 AS cor0
----
-2867
-305
-854

query I rowsort
SELECT - - col2 * + + 21 + + col1 AS col2 FROM tab0 AS cor0
----
1068
2080
231

onlyif mysql # aggregate syntax: 
query I rowsort label-701
SELECT ALL + COUNT( * ) * - - SUM( ALL - - col0 ) AS col1 FROM tab1 AS cor0
----
681

skipif mysql # not compatible
query I rowsort label-701
SELECT ALL + COUNT ( * ) * - - SUM ( ALL - - col0 ) AS col1 FROM tab1 AS cor0
----
681

onlyif mysql # DIV for integer division: 
query I rowsort label-702
SELECT + 22 DIV - col2 + - col1 * - - col2 - - ( + - ( + + col0 ) ) col0 FROM tab2 AS cor0
----
-1219
-3144
-3961

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-702
SELECT + 22 / - col2 + - col1 * - - col2 - - ( + - ( + + col0 ) ) col0 FROM tab2 AS cor0
----
-1219
-3144
-3961

onlyif mysql # aggregate syntax: 
query II rowsort label-703
SELECT - COUNT( DISTINCT + col0 ), 54 * + - 63 AS col2 FROM tab2 AS cor0
----
-3
-3402

skipif mysql # not compatible
query II rowsort label-703
SELECT - COUNT ( DISTINCT + col0 ), 54 * + - 63 AS col2 FROM tab2 AS cor0
----
-3
-3402

query I rowsort
SELECT ( + 89 ) FROM tab2
----
89
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-705
SELECT DISTINCT - - COUNT( * ) FROM tab0 WHERE col2 <= + - 94
----
0

skipif mysql # not compatible
query I rowsort label-705
SELECT DISTINCT - - COUNT ( * ) FROM tab0 WHERE col2 <= + - 94
----
0

query I rowsort
SELECT col2 * + + 70 * - + ( - + col2 ) * - - 66 FROM tab0
----
10205580
45280620
462000

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT MAX( - + col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-707
SELECT MAX ( - + col0 ) FROM tab2
----
-46

query I rowsort
SELECT DISTINCT col1 * col0 * - col1 AS col2 FROM tab2
----
-119646
-336675
-379456

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

onlyif mysql # DIV for integer division: 
query I rowsort label-710
SELECT DISTINCT - + col1 DIV 27 + + 87 FROM tab0 cor0
----
84
87

skipif mysql # not compatible
query I rowsort label-710
SELECT DISTINCT - + col1 / 27 + + 87 FROM tab0 cor0
----
84
87

query I rowsort
SELECT DISTINCT - col1 + - col1 * + col0 AS col0 FROM tab2 AS cor0
----
-2397
-5005
-5092

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 57 * + col0 * - col1 AS col1, + col2 col1 FROM tab2 cor0
----
-133722
23
-280896
40
-286425
58

query I rowsort
SELECT - col1 + 16 AS col0 FROM tab1 cor0
----
-31
11
2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= + - col1 / - + col2 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-715
SELECT ALL + SUM( + 54 ) FROM tab0 WHERE NULL IS NULL
----
162

skipif mysql # not compatible
query I rowsort label-715
SELECT ALL + SUM ( + 54 ) FROM tab0 WHERE NULL IS NULL
----
162

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

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

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

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

skipif mysql # not compatible
query I rowsort label-718
SELECT SUM ( col1 ) FROM tab0 AS cor0
----
103

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

query I rowsort
SELECT ALL 99 + - + col2 * + col0 FROM tab1 AS cor0
----
-4797
-4916
-6089

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-721
SELECT + + COUNT( * ) AS col1 FROM tab1 WHERE - - ( CAST( NULL AS SIGNED ) ) + - + col1 >= + - col2 * col1 + - + 12 + + col0 * + - col2 * - 48 * + - 77
----
0

skipif mysql # not compatible
query I rowsort label-721
SELECT + + COUNT ( * ) AS col1 FROM tab1 WHERE - - ( CAST ( NULL AS INTEGER ) ) + - + col1 >= + - col2 * col1 + - + 12 + + col0 * + - col2 * - 48 * + - 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT 51 * COUNT( * ) + 48 AS col2 FROM tab2
----
201

skipif mysql # not compatible
query I rowsort label-722
SELECT 51 * COUNT ( * ) + 48 AS col2 FROM tab2
----
201

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

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

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

skipif mysql # not compatible
query I rowsort label-724
SELECT + 99 + + 37 + + - COUNT ( * ) FROM tab0
----
133

query I rowsort
SELECT ALL - col1 * + + col2 FROM tab0
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-726
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab2 AS cor0 WHERE - 97 IS NULL
----

skipif mysql # not compatible
query I rowsort label-726
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab2 AS cor0 WHERE - 97 IS NULL
----

query I rowsort
SELECT DISTINCT - + col0 * + 79 * + - col2 AS col0 FROM tab2 AS cor0
----
202240
343650
83582

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

query I rowsort
SELECT + + col0 * col2 * + + col0 AS col2 FROM tab1 cor0
----
249696
426275
563108

query I rowsort
SELECT DISTINCT - - ( 31 ) AS col2 FROM tab2 AS cor0
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-731
SELECT DISTINCT - CAST( - col1 AS SIGNED ) * - col2 + + col1 col0 FROM tab1 AS cor0
----
-1330
-290
-3149

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-731
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) * - col2 + + col1 col0 FROM tab1 AS cor0
----
-1330
-290
-3149

query I rowsort
SELECT ALL + - ( col2 ) * - - col2 FROM tab1 cor0
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-733
SELECT DISTINCT - + COUNT( DISTINCT - + 14 ) AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-733
SELECT DISTINCT - + COUNT ( DISTINCT - + 14 ) AS col0 FROM tab2 AS cor0
----
-1

query II rowsort
SELECT - 56 AS col1, + 32 AS col0 FROM tab1 AS cor0
----
-56
32
-56
32
-56
32

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - col2 ) col1 FROM tab0 AS cor0
----
10
47
99

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 67 AS col0, col0 col1 FROM tab1 AS cor0
----
-67
51
-67
85
-67
91

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

skipif mysql # not compatible
query I rowsort label-740
SELECT ALL + COUNT ( ALL 88 ) FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + - col0 col2 FROM tab0
----
-1215
-1827
-97

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col2 - + 16 IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-744
SELECT ALL - col1 + + + 14 * + col2 + - col1 DIV CAST( + col2 AS SIGNED ) + col2 col0 FROM tab1
----
1426
880
973

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-744
SELECT ALL - col1 + + + 14 * + col2 + - col1 / CAST ( + col2 AS INTEGER ) + col2 col0 FROM tab1
----
1426
880
973

query I rowsort
SELECT DISTINCT + col2 + + - col2 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-746
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NULL BETWEEN - col1 AND + col2 * - col0 + - col0 + + 4 / col0
----
0

skipif mysql # not compatible
query I rowsort label-746
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NULL BETWEEN - col1 AND + col2 * - col0 + - col0 + + 4 / col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-747
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2, + 81 AS col2 FROM tab2
----
NULL
81

skipif mysql # not compatible
query II rowsort label-747
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2, + 81 AS col2 FROM tab2
----
NULL
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, - col2 col1 FROM tab0
----
15
-47
87
-10
97
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-749
SELECT ALL ( COUNT( - col2 ) ) * - + 24 col0 FROM tab2
----
-72

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-750
SELECT + - COUNT( * ) AS col2, 52 * - + COUNT( * ) * + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-750
SELECT + - COUNT ( * ) AS col2, 52 * - + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
NULL

query I rowsort
SELECT 72 + + col0 FROM tab0
----
159
169
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab1 WHERE ( NOT col2 BETWEEN 72 AND - col0 )
----
14
47
5

query I rowsort
SELECT ALL - ( - + col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT + col1 + - col0 * - - col1 + col2 / col1 / - col2 IS NULL OR NOT + + 70 * - col2 * col1 * + - 3 IS NOT NULL
----
51
67
77

query I rowsort
SELECT + col0 + + + 67 * col1 FROM tab1 AS cor0
----
3240
420
989

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

query I rowsort
SELECT ALL - col0 + - - 27 FROM tab0 AS cor0
----
-60
-70
12

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

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

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

query I rowsort
SELECT ALL + col1 - 33 AS col2 FROM tab2 cor0
----
18
34
44

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

skipif mysql # not compatible
query I rowsort label-760
SELECT MIN ( DISTINCT - ( ( col0 ) ) ) FROM tab1
----
-91

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

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

query I rowsort
SELECT DISTINCT + col0 * - col2 * - - 14 AS col1 FROM tab0 WHERE + col1 * col1 + 41 IS NOT NULL
----
-12180
-134442
-9870

onlyif mysql # aggregate syntax: 
query I rowsort label-763
SELECT ALL COUNT( * ) - - + 7 FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-763
SELECT ALL COUNT ( * ) - - + 7 FROM tab2
----
10

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

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

query II rowsort
SELECT DISTINCT - col1, col0 FROM tab1 AS cor0 WHERE 1 * + 58 IS NOT NULL
----
-14
51
-47
91
-5
85

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

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT - MAX( ALL + 50 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-50

skipif mysql # not compatible
query I rowsort label-767
SELECT - MAX ( ALL + 50 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-50

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT DISTINCT - SUM( - 18 ) FROM tab2 cor0
----
54

skipif mysql # not compatible
query I rowsort label-769
SELECT DISTINCT - SUM ( - 18 ) FROM tab2 cor0
----
54

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

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

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

query I rowsort
SELECT + - col0 * - 73 AS col0 FROM tab2 AS cor0
----
3358
4672
5475

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-775
SELECT ALL + - 72 + ( - - 46 ) + - COUNT( 17 ) + - - COUNT( * ) * + 36 FROM tab2 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-775
SELECT ALL + - 72 + ( - - 46 ) + - COUNT ( 17 ) + - - COUNT ( * ) * + 36 FROM tab2 AS cor0
----
79

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

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

query I rowsort
SELECT DISTINCT - 85 + - 9 AS col1 FROM tab0 WHERE NOT ( + 7 / - col2 + 18 IS NOT NULL )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-778
SELECT + COUNT ( * ) * + - COUNT ( * ) * COUNT ( * ) col1 FROM tab0
----
-27

query I rowsort
SELECT DISTINCT + col2 * + - 78 FROM tab0
----
-3666
-7722
-780

onlyif mysql # aggregate syntax: 
query I rowsort label-780
SELECT COUNT( * ) AS col0 FROM tab0 WHERE NOT col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-780
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE NOT col0 IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col1 FROM tab1 WHERE ( + col2 ) IS NOT NULL
----
14
47
5

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-785
SELECT DISTINCT - 53 + - 83 * - - COUNT( DISTINCT 76 ) col2 FROM tab1 AS cor0
----
-136

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-785
SELECT DISTINCT - 53 + - 83 * - - COUNT ( DISTINCT 76 ) col2 FROM tab1 AS cor0
----
-136

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

query I rowsort
SELECT + - ( - col2 ) AS col2 FROM tab1 WHERE col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-789
SELECT + + CAST( + 74 AS SIGNED ) FROM tab0 WHERE NULL IS NULL
----
74
74
74

skipif mysql # not compatible
query I rowsort label-789
SELECT + + CAST ( + 74 AS INTEGER ) FROM tab0 WHERE NULL IS NULL
----
74
74
74

query I rowsort
SELECT + col0 - ( - - 27 ) + - + col0 + - col2 + ( - + ( + col0 ) ) AS col2 FROM tab1 AS cor0
----
-171
-174
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT ALL + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT 51 / col2 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-791
SELECT ALL + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 51 / col2 >= NULL
----
0

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

skipif mysql # not compatible
query I rowsort label-792
SELECT DISTINCT + - COUNT ( * ) - + SUM ( ALL + col1 ) FROM tab0 AS cor0
----
-106

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

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

query I rowsort
SELECT - 62 + + col2 + + + col1 + + col0 FROM tab1 AS cor0
----
144
87
99

query I rowsort
SELECT + col1 + - - 43 * - col2 FROM tab1
----
-2532
-2877
-4114

query I rowsort
SELECT 38 + - - col0 AS col0 FROM tab2
----
102
113
84

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

skipif mysql # not compatible
query I rowsort label-797
SELECT ALL CAST ( NULL AS REAL ) - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-799
SELECT - + AVG ( - ( + + col1 ) ) * - 53, COUNT( + col1 ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-799
SELECT - + AVG ( - ( + + col1 ) ) * - 53, COUNT ( + col1 ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
NULL
0

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 80 >= NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-803
SELECT ALL + col2 DIV + 56 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-803
SELECT ALL + col2 / + 56 FROM tab1
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-804
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-804
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

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

query I rowsort
SELECT ALL + col1 * + 16 + - col2 + - col0 FROM tab1 AS cor0
----
-64
593
77

onlyif mysql # aggregate syntax: 
query I rowsort label-807
SELECT DISTINCT COUNT( * ) + SUM( ALL - 32 ) * COUNT( * ) FROM tab0 WHERE NOT - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-807
SELECT DISTINCT COUNT ( * ) + SUM ( ALL - 32 ) * COUNT ( * ) FROM tab0 WHERE NOT - col0 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - 61 * col2 AS col0 FROM tab1
----
-3599
-4148
-5856

query I rowsort
SELECT 85 + - col2 AS col0 FROM tab2
----
27
45
62

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

onlyif mysql # aggregate syntax: 
query I rowsort label-811
SELECT COUNT( * ) + 80 + - COUNT( * ) AS col1 FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-811
SELECT COUNT ( * ) + 80 + - COUNT ( * ) AS col1 FROM tab2
----
80

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

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

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

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

query I rowsort
SELECT ALL - ( col0 ) + - - 84 FROM tab2 AS cor0
----
20
38
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-816
SELECT ALL + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE - col1 NOT BETWEEN + + 75 AND - - ( col2 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-816
SELECT ALL + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE - col1 NOT BETWEEN + + 75 AND - - ( col2 )
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-818
SELECT - col2 - + 15 AS col0 FROM tab0 AS cor0 WHERE col1 NOT IN ( + 22, CAST( NULL AS SIGNED ), - col2, - + 19, col1, + + col2 * + col1 + col1 + col2, 2, - - col0 * - 67 - + - 36, + 34, + col1 )
----

skipif mysql # not compatible
query I rowsort label-818
SELECT - col2 - + 15 AS col0 FROM tab0 AS cor0 WHERE col1 NOT IN ( + 22, CAST ( NULL AS INTEGER ), - col2, - + 19, col1, + + col2 * + col1 + col1 + col2, 2, - - col0 * - 67 - + - 36, + 34, + col1 )
----

query II rowsort
SELECT DISTINCT col0 AS col0, 6 - + col0 AS col2 FROM tab0
----
15
-9
87
-81
97
-91

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL col2 + + - 74 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-27
-64
25

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

query I rowsort
SELECT - + col1 FROM tab0 AS cor0 WHERE col1 * + col1 * - + 6 IS NOT NULL
----
-1
-21
-81

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

skipif mysql # not compatible
query I rowsort label-828
SELECT + 31 / + - col1 FROM tab2 AS cor0
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query II rowsort label-830
SELECT ALL MIN( 9 ) AS col0, + COUNT( * ) AS col0 FROM tab2 AS cor0
----
9
3

skipif mysql # not compatible
query II rowsort label-830
SELECT ALL MIN ( 9 ) AS col0, + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
9
3

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-833
SELECT + ( + col1 ) DIV + CAST( - + col0 AS SIGNED ) + - col2 + - ( - col1 ) AS col1 FROM tab2
----
27
36
9

skipif mysql # not compatible
query I rowsort label-833
SELECT + ( + col1 ) / + CAST ( - + col0 AS INTEGER ) + - col2 + - ( - col1 ) AS col1 FROM tab2
----
27
36
9

onlyif mysql # aggregate syntax: 
query I rowsort label-834
SELECT DISTINCT ( - 22 ) * + + MIN( ALL col0 ) AS col0 FROM tab0 AS cor0
----
-330

skipif mysql # not compatible
query I rowsort label-834
SELECT DISTINCT ( - 22 ) * + + MIN ( ALL col0 ) AS col0 FROM tab0 AS cor0
----
-330

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

query I rowsort
SELECT DISTINCT 14 + + col2 - - col2 AS col2 FROM tab2 AS cor0
----
130
60
94

query I rowsort
SELECT DISTINCT + col1 * col2 * + col2 + + + col1 AS col0 FROM tab1 AS cor0
----
129038
17410
217375

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, ( 97 ) * + ( 34 ) + + col1 col1 FROM tab0 AS cor0
----
-15
3379
-87
3319
-97
3299

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

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

query II rowsort
SELECT DISTINCT - - col0 AS col0, - 22 + + + 61 FROM tab2 AS cor0
----
46
39
64
39
75
39

onlyif mysql # DIV for integer division: 
query I rowsort label-841
SELECT col2 + + ( 93 ) + + ( + 3 ) * - - col0 * col2 DIV - col0 col1 FROM tab1
----
-25
-43
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-841
SELECT col2 + + ( 93 ) + + ( + 3 ) * - - col0 * col2 / - col0 col1 FROM tab1
----
-25
-43
-99

query I rowsort
SELECT col0 FROM tab2 WHERE + - ( col2 ) NOT BETWEEN col0 AND NULL
----
46
64
75

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-844
SELECT DISTINCT col2 * + + 62 + 5 + + 41 AS col1, CAST( - col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3704
-5
4262
-47
5998
-14

skipif mysql # not compatible
query II rowsort label-844
SELECT DISTINCT col2 * + + 62 + 5 + + 41 AS col1, CAST ( - col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3704
-5
4262
-47
5998
-14

query I rowsort
SELECT 55 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 60 + col0 AS col0 FROM tab1
----
111
145
151

query I rowsort
SELECT ALL + 4 * + + 48 AS col2 FROM tab2 cor0
----
192
192
192

onlyif mysql # aggregate syntax: 
query I rowsort label-848
SELECT DISTINCT + + MIN( - - 43 ) * - 30 AS col2 FROM tab2 AS cor0
----
-1290

skipif mysql # not compatible
query I rowsort label-848
SELECT DISTINCT + + MIN ( - - 43 ) * - 30 AS col2 FROM tab2 AS cor0
----
-1290

query I rowsort
SELECT - 9 FROM tab2 cor0 WHERE NOT + 21 + - + 81 IS NULL
----
-9
-9
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-850
SELECT ALL - 86 AS col2, 65 * MAX( + 20 ) * + 87 AS col0 FROM tab2
----
-86
113100

skipif mysql # not compatible
query II rowsort label-850
SELECT ALL - 86 AS col2, 65 * MAX ( + 20 ) * + 87 AS col0 FROM tab2
----
-86
113100

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

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

query I rowsort
SELECT - 45 * + col2 FROM tab0
----
-2115
-4455
-450

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-853
SELECT DISTINCT CAST( NULL AS SIGNED ) / col1 AS col0, 19 AS col0 FROM tab1
----
NULL
19

skipif mysql # not compatible
query II rowsort label-853
SELECT DISTINCT CAST ( NULL AS INTEGER ) / col1 AS col0, 19 AS col0 FROM tab1
----
NULL
19

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

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

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

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

skipif mysql # not compatible
query I rowsort label-857
SELECT DISTINCT - 70 * - + COUNT ( * ) FROM tab1
----
210

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 52 * - col1 col0, - col2 col1 FROM tab0
----
-1092
-10
-4212
-47
-52
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-859
SELECT DISTINCT + 21 DIV - col1 + - col0 * + - 33 FROM tab2 AS cor0
----
1518
2112
2475

skipif mysql # not compatible
query I rowsort label-859
SELECT DISTINCT + 21 / - col1 + - col0 * + - 33 FROM tab2 AS cor0
----
1518
2112
2475

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

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

query I rowsort
SELECT col1 + + - col1 FROM tab0 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-862
SELECT DISTINCT + MAX( + 93 ) FROM tab0 cor0 WHERE - 8 IS NOT NULL
----
93

skipif mysql # not compatible
query I rowsort label-862
SELECT DISTINCT + MAX ( + 93 ) FROM tab0 cor0 WHERE - 8 IS NOT NULL
----
93

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

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

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

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

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

query I rowsort
SELECT DISTINCT - - col0 AS col1 FROM tab2 WHERE NOT ( + col0 <> + col0 )
----
46
64
75

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

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

query I rowsort
SELECT col1 * + 73 AS col1 FROM tab2
----
3723
4891
5621

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

query II rowsort
SELECT col2, ( - col2 ) FROM tab0
----
10
-10
47
-47
99
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-871
SELECT col0 DIV - + 59 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-871
SELECT col0 / - + 59 FROM tab2
----
-1
-1
0

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

query I rowsort
SELECT - 63 FROM tab0 WHERE NULL NOT IN ( col1 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT - COUNT( * ) + + COUNT( ALL + col1 ) * - 42 FROM tab1
----
-129

skipif mysql # not compatible
query I rowsort label-875
SELECT - COUNT ( * ) + + COUNT ( ALL + col1 ) * - 42 FROM tab1
----
-129

onlyif mysql # DIV for integer division: 
query I rowsort label-876
SELECT DISTINCT - 72 DIV 22 AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-876
SELECT DISTINCT - 72 / 22 AS col0 FROM tab1
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 NOT BETWEEN - col2 * + 97 AND 8
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * + col1 + - ( col1 ) BETWEEN - col2 AND ( 16 ) + + col0
----
15
81
47
87
21
10

query I rowsort
SELECT + 55 * 64 FROM tab1
----
3520
3520
3520

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( 18 / col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-881
SELECT ALL SUM( DISTINCT - col2 ) AS col1 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-881
SELECT ALL SUM ( DISTINCT - col2 ) AS col1 FROM tab2
----
-121

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

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

query I rowsort
SELECT + 55 * + 28 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1540
1540
1540

onlyif mysql # aggregate syntax: 
query I rowsort label-884
SELECT DISTINCT COUNT( * ) - - 2 * COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-884
SELECT DISTINCT COUNT ( * ) - - 2 * COUNT ( * ) FROM tab2
----
9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-886
SELECT ALL 14 + MIN( col1 ) AS col2 FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-886
SELECT ALL 14 + MIN ( col1 ) AS col2 FROM tab1
----
19

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN col0 * 18 + col0 * 2 AND col1
----

query I rowsort
SELECT DISTINCT 31 + - col1 AS col0 FROM tab0
----
-50
10
30

query I rowsort
SELECT 90 + col2 AS col0 FROM tab0
----
100
137
189

query I rowsort
SELECT ALL col1 FROM tab1 WHERE ( NULL ) = col0
----

query I rowsort
SELECT ALL - 50 * col0 + col1 * - 14 AS col2 FROM tab1
----
-2746
-4320
-5208

query III rowsort
SELECT * FROM tab2 WHERE col2 <= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE - 46 * 43 = ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE 31 = 91
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-896
SELECT SUM( ALL + 32 ) * 32 col2 FROM tab0 AS cor0
----
3072

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

onlyif mysql # DIV for integer division: 
query I rowsort label-897
SELECT - ( col2 ) DIV - col2 + 21 AS col2 FROM tab2 AS cor0
----
22
22
22

skipif mysql # not compatible
query I rowsort label-897
SELECT - ( col2 ) / - col2 + 21 AS col2 FROM tab2 AS cor0
----
22
22
22

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

query I rowsort
SELECT - 29 - + 67 FROM tab1 AS cor0 WHERE NOT ( - ( 45 ) ) = - 79
----
-96
-96
-96

query I rowsort
SELECT ALL 42 * - col1 AS col1 FROM tab1 AS cor0
----
-1974
-210
-588

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-904
SELECT - 70 / + col1 col1 FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT + 75 AS col0 FROM tab2 cor0
----
75
75
75

query I rowsort
SELECT ( 14 ) AS col0 FROM tab1 AS cor0
----
14
14
14

query I rowsort
SELECT DISTINCT 59 + 93 FROM tab0 AS cor0
----
152

query I rowsort
SELECT ALL col0 * 78 AS col0 FROM tab2 AS cor0
----
3588
4992
5850

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

query I rowsort
SELECT + ( 44 ) * - col2 AS col2 FROM tab0 AS cor0
----
-2068
-4356
-440

query I rowsort
SELECT + 28 - col0 AS col2 FROM tab2
----
-18
-36
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-912
SELECT - CAST( - COUNT( * ) AS SIGNED ) - + 43 AS col1 FROM tab0
----
-40

skipif mysql # not compatible
query I rowsort label-912
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) - + 43 AS col1 FROM tab0
----
-40

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

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

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

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

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

query I rowsort
SELECT 31 FROM tab1 WHERE + col2 IS NULL
----

query I rowsort
SELECT + 66 + ( 55 ) FROM tab1
----
121
121
121

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-920
SELECT - - COUNT( * ) * - 66 AS col1 FROM tab0 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-920
SELECT - - COUNT ( * ) * - 66 AS col1 FROM tab0 AS cor0
----
-198

query I rowsort
SELECT 25 * - - col1 * + 45 FROM tab2 AS cor0
----
57375
75375
86625

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, - 88 AS col1 FROM tab1 AS cor0
----
51
-88
85
-88
91
-88

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

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

query I rowsort
SELECT 36 * 73 AS col1 FROM tab1 AS cor0
----
2628
2628
2628

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 49 * + 72 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-929
SELECT + 45 AS col2, COUNT( * ) DIV + 37 FROM tab2 AS cor0
----
45
0

skipif mysql # not compatible
query II rowsort label-929
SELECT + 45 AS col2, COUNT ( * ) / + 37 FROM tab2 AS cor0
----
45
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-931
SELECT ALL + CAST( + 58 AS SIGNED ) FROM tab1
----
58
58
58

skipif mysql # not compatible
query I rowsort label-931
SELECT ALL + CAST ( + 58 AS INTEGER ) FROM tab1
----
58
58
58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-933
SELECT ALL MAX( ALL col2 ) * - - 28 FROM tab1 AS cor0
----
2688

skipif mysql # not compatible
query I rowsort label-933
SELECT ALL MAX ( ALL col2 ) * - - 28 FROM tab1 AS cor0
----
2688

query I rowsort
SELECT DISTINCT + col1 * + + ( + col1 ) AS col2 FROM tab0 AS cor0
----
1
441
6561

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 * - ( + - col0 ) NOT IN ( - col2 ) OR NOT ( - 94 + + col2 * + col0 ) IS NOT NULL
----

query I rowsort
SELECT + - 86 + + - col2 + - col1 FROM tab2 AS cor0
----
-160
-203
-211

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-940
SELECT DISTINCT SUM( DISTINCT 88 ) FROM tab2 cor0 WHERE + ( - col2 ) >= col1
----
NULL

skipif mysql # not compatible
query I rowsort label-940
SELECT DISTINCT SUM ( DISTINCT 88 ) FROM tab2 cor0 WHERE + ( - col2 ) >= col1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 85 + 94 + + + col2 ) IN ( col0 )
----

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

query I rowsort
SELECT + col2 * 6 * - col0 FROM tab0
----
-4230
-5220
-57618

onlyif mysql # aggregate syntax: 
query I rowsort label-944
SELECT + MAX( DISTINCT + - col0 ) + - + MIN( DISTINCT col0 ) AS col2 FROM tab2 WHERE - - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-944
SELECT + MAX ( DISTINCT + - col0 ) + - + MIN ( DISTINCT col0 ) AS col2 FROM tab2 WHERE - - col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-945
SELECT ALL 26 - - - 86 * - COUNT( * ) col1 FROM tab2
----
284

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-945
SELECT ALL 26 - - - 86 * - COUNT ( * ) col1 FROM tab2
----
284

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-946
SELECT - MAX( DISTINCT + ( + CAST( NULL AS SIGNED ) ) ) + 78 FROM tab1 WHERE + 35 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-946
SELECT - MAX ( DISTINCT + ( + CAST ( NULL AS INTEGER ) ) ) + 78 FROM tab1 WHERE + 35 IS NULL
----
NULL

query I rowsort
SELECT + 11 * 56 FROM tab1
----
616
616
616

onlyif mysql # aggregate syntax: 
query I rowsort label-948
SELECT + MAX( DISTINCT + 72 ) FROM tab0 cor0 WHERE NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-948
SELECT + MAX ( DISTINCT + 72 ) FROM tab0 cor0 WHERE NULL >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-949
SELECT DISTINCT + COUNT( * ), COUNT( * ) FROM tab0 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-949
SELECT DISTINCT + COUNT ( * ), COUNT ( * ) FROM tab0 cor0
----
3
3

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

skipif mysql # not compatible
query I rowsort label-950
SELECT + 77 * - - CAST ( NULL AS REAL ) + + col2 + - + 49 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 37 FROM tab1 WHERE NOT col0 IS NULL
----
-37
-37
-37

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

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

query I rowsort
SELECT DISTINCT - 88 * + - ( - 52 ) AS col2 FROM tab2 cor0
----
-4576

query I rowsort
SELECT ALL - 38 * + + 29 FROM tab2 cor0
----
-1102
-1102
-1102

query I rowsort
SELECT DISTINCT + ( - 99 ) FROM tab1 AS cor0
----
-99

query I rowsort
SELECT + col1 * + 24 AS col2 FROM tab0 cor0
----
1944
24
504

onlyif mysql # aggregate syntax: 
query II rowsort label-957
SELECT + - MAX( col1 ) AS col1, ( + SUM( + col1 ) ) FROM tab2 AS cor0
----
-77
195

skipif mysql # not compatible
query II rowsort label-957
SELECT + - MAX ( col1 ) AS col1, ( + SUM ( + col1 ) ) FROM tab2 AS cor0
----
-77
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-958
SELECT CAST( + col2 AS SIGNED ) * - 69 AS col1 FROM tab0
----
-3243
-6831
-690

skipif mysql # not compatible
query I rowsort label-958
SELECT CAST ( + col2 AS INTEGER ) * - 69 AS col1 FROM tab0
----
-3243
-6831
-690

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-961
SELECT CAST( NULL AS DECIMAL ) / - + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

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

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

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

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

query II rowsort
SELECT ALL - + col1 AS col1, - col2 * + col0 FROM tab2 WHERE + col0 IS NOT NULL
----
-51
-1058
-67
-4350
-77
-2560

onlyif mysql # aggregate syntax: 
query I rowsort label-965
SELECT DISTINCT + MIN( + + 19 ) AS col0 FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-965
SELECT DISTINCT + MIN ( + + 19 ) AS col0 FROM tab2
----
19

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

query I rowsort
SELECT - col1 * - 36 * - - 39 + - col0 * - + 14 FROM tab1 AS cor0
----
20370
67262
8210

query I rowsort
SELECT DISTINCT + col0 + + col1 * - ( - 41 ) AS col2 FROM tab1 AS cor0
----
2018
290
625

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

onlyif mysql # DIV for integer division: 
query I rowsort label-970
SELECT - ( ( + + col0 ) ) DIV col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-970
SELECT - ( ( + + col0 ) ) / col1 FROM tab2 AS cor0
----
-1
0
0

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

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

query I rowsort
SELECT AVG ( DISTINCT - ( - + col0 ) ) FROM tab0 AS cor0 WHERE - 78 < NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-973
SELECT + MIN( ALL 21 ) - + + COUNT( * ) FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-973
SELECT + MIN ( ALL 21 ) - + + COUNT ( * ) FROM tab0 AS cor0
----
18

query I rowsort
SELECT DISTINCT ( - col2 ) + - 8 AS col1 FROM tab0 AS cor0
----
-107
-18
-55

query I rowsort
SELECT ALL col2 + - 76 AS col2 FROM tab0 AS cor0
----
-29
-66
23

query I rowsort
SELECT DISTINCT + col1 - + 26 FROM tab2
----
25
41
51

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-979
SELECT col1 DIV - col1 + + 25 * 91 AS col0 FROM tab2 AS cor0
----
2274
2274
2274

skipif mysql # not compatible
query I rowsort label-979
SELECT col1 / - col1 + + 25 * 91 AS col0 FROM tab2 AS cor0
----
2274
2274
2274

onlyif mysql # aggregate syntax: 
query I rowsort label-980
SELECT DISTINCT COUNT( * ) col2 FROM tab1 AS cor0 WHERE col1 * - + ( - col1 ) * + 10 * - col0 <> + + 77
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-980
SELECT DISTINCT COUNT ( * ) col2 FROM tab1 AS cor0 WHERE col1 * - + ( - col1 ) * + 10 * - col0 <> + + 77
----
3

query I rowsort
SELECT - 30 * - + 15 AS col1 FROM tab0 cor0
----
450
450
450

query I rowsort
SELECT ALL + - col0 AS col0 FROM tab0 AS cor0 WHERE NOT col0 + col1 * - col1 NOT IN ( ( + col0 ), + col0, + 66 * 45 + col1 )
----

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

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

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

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

query III rowsort
SELECT - col0, col1 + col2 + - col1 AS col1, + col2 FROM tab0 AS cor0
----
9 values hashing to 709140e88e3ccd5e710aedd1ff38690d

query I rowsort
SELECT + col1 * + 12 FROM tab1 AS cor0
----
168
564
60

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 47 + col0 AS col0 FROM tab2
----
111
122
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-993
SELECT MIN( - col1 ) DIV + 49 col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-993
SELECT MIN ( - col1 ) / + 49 col2 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-994
SELECT ALL - 88 DIV - + CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
1
17
6

skipif mysql # not compatible
query I rowsort label-994
SELECT ALL - 88 / - + CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
1
17
6

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT ALL MIN( col0 ) - - 89 FROM tab0 AS cor0 WHERE + 93 + - 59 IS NOT NULL
----
104

skipif mysql # not compatible
query I rowsort label-995
SELECT ALL MIN ( col0 ) - - 89 FROM tab0 AS cor0 WHERE + 93 + - 59 IS NOT NULL
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-996
SELECT + col0 - + - col1 * + ( + + col0 ) AS col1, col1 + - - 14 * CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab2
----
2392
NULL
4992
NULL
5100
NULL

skipif mysql # not compatible
query II rowsort label-996
SELECT + col0 - + - col1 * + ( + + col0 ) AS col1, col1 + - - 14 * CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab2
----
2392
NULL
4992
NULL
5100
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-997
SELECT 87 * + 12 + + MAX( + - col0 ) AS col1 FROM tab0
----
1029

skipif mysql # not compatible
query I rowsort label-997
SELECT 87 * + 12 + + MAX ( + - col0 ) AS col1 FROM tab0
----
1029

query I rowsort
SELECT - col1 + + 97 AS col1 FROM tab1
----
50
83
92

onlyif mysql # aggregate syntax: 
query I rowsort label-999
SELECT DISTINCT - + SUM( DISTINCT + - 6 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
6

skipif mysql # not compatible
query I rowsort label-999
SELECT DISTINCT - + SUM ( DISTINCT + - 6 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
6

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1003
SELECT ALL * FROM tab2 WHERE - - CAST( - col1 AS DECIMAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1003
SELECT ALL * FROM tab2 WHERE - - CAST ( - col1 AS REAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 18 - col2 AS col0 FROM tab1
----
-41
-50
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1005
SELECT - MAX( 42 ) FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-1005
SELECT - MAX ( 42 ) FROM tab2
----
-42

query I rowsort
SELECT DISTINCT - col1 * - col1 * - col2 FROM tab0
----
-308367
-4410
-99

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

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

query I rowsort
SELECT ALL - ( col1 ) * + + col2 + + 66 AS col0 FROM tab2
----
-1107
-3014
-3820

query I rowsort
SELECT ALL 27 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query II rowsort
SELECT DISTINCT 50 * + col2 * 51 AS col2, + 38 AS col1 FROM tab2
----
102000
38
147900
38
58650
38

query I rowsort
SELECT DISTINCT + 56 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE ( NOT - 79 BETWEEN NULL AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1012
SELECT ALL - AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) * 89 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1012
SELECT ALL - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) * 89 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1013
SELECT ALL 26 DIV COUNT( * ) - 92 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NOT ( NULL IS NULL ) )
----
-90

skipif mysql # not compatible
query I rowsort label-1013
SELECT ALL 26 / COUNT ( * ) - 92 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NOT ( NULL IS NULL ) )
----
-90

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

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

query I rowsort
SELECT DISTINCT - ( + col0 ) + - - col2 AS col1 FROM tab0 AS cor0
----
-77
2
32

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

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

query II rowsort
SELECT + + col2 AS col1, ( col2 ) - - col0 AS col1 FROM tab0 cor0
----
10
97
47
62
99
196

query I rowsort
SELECT DISTINCT 92 * col2 * - col2 AS col1 FROM tab2 AS cor0
----
-147200
-309488
-48668

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

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

query I rowsort
SELECT DISTINCT - 61 * col2 AS col1 FROM tab1
----
-3599
-4148
-5856

query I rowsort
SELECT DISTINCT 57 * - col2 FROM tab0
----
-2679
-5643
-570

onlyif mysql # DIV for integer division: 
query I rowsort label-1023
SELECT + 36 DIV + 61 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1023
SELECT + 36 / + 61 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1024
SELECT ALL - ( + col2 ) DIV + 90 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1024
SELECT ALL - ( + col2 ) / + 90 FROM tab2
----
0
0
0

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

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

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

query I rowsort
SELECT ALL - col0 + - - col2 + - 5 * - 76 FROM tab1
----
354
357
425

query I rowsort
SELECT ALL - 66 * - - col2 * + + col0 * ( - col1 ) AS col2 FROM tab1
----
1654950
19195176
4523904

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1029
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE + CAST( + + col1 AS SIGNED ) IS NOT NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-1029
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE + CAST ( + + col1 AS INTEGER ) IS NOT NULL
----
15
87
97

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

skipif mysql # not compatible
query I rowsort label-1030
SELECT ALL - COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
1

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

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

query I rowsort
SELECT DISTINCT - 80 + - + 11 FROM tab2 AS cor0
----
-91

query I rowsort
SELECT DISTINCT col0 * - + 48 + + col1 AS col1 FROM tab1 AS cor0
----
-2434
-4075
-4321

query I rowsort
SELECT DISTINCT + + 10 - - - 53 AS col2 FROM tab0 AS cor0
----
-43

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

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

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

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

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE - col0 NOT IN ( col0, 26, col2 )
----
51
67
77

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

query I rowsort
SELECT col2 * 78 - - - 95 AS col1 FROM tab2 AS cor0
----
1699
3025
4429

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1040
SELECT ALL CAST( - + col0 AS SIGNED ) + - ( - + col2 ) FROM tab2 AS cor0
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-1040
SELECT ALL CAST ( - + col0 AS INTEGER ) + - ( - + col2 ) FROM tab2 AS cor0
----
-17
-23
-24

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

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

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

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

query II rowsort
SELECT ALL + col2 AS col0, 54 - - col2 AS col1 FROM tab0
----
10
64
47
101
99
153

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 BETWEEN + col0 + 3 + + col1 AND + 7
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
51
85
91

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1048
SELECT + col0 * + ( - col0 ) * + - 34 / - - CAST( NULL AS DECIMAL ) + - - col0 * 25 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1048
SELECT + col0 * + ( - col0 ) * + - 34 / - - CAST ( NULL AS REAL ) + - - col0 * 25 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1049
SELECT ALL MIN( - - 88 ) FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-1049
SELECT ALL MIN ( - - 88 ) FROM tab0
----
88

query I rowsort
SELECT ALL + col1 * 2 AS col0 FROM tab0
----
162
2
42

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1051
SELECT - SUM( ALL - CAST( NULL AS DECIMAL ) ) * - 69 + - - SUM( DISTINCT + col2 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1051
SELECT - SUM ( ALL - CAST ( NULL AS REAL ) ) * - 69 + - - SUM ( DISTINCT + col2 ) FROM tab1 AS cor0
----
NULL

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

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

query I rowsort
SELECT ALL ( - ( - col2 ) ) + - 58 FROM tab1 AS cor0
----
1
10
38

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1057
SELECT - ( - 72 ) DIV - col2 FROM tab0
----
-1
-7
0

skipif mysql # not compatible
query I rowsort label-1057
SELECT - ( - 72 ) / - col2 FROM tab0
----
-1
-7
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1058
SELECT * FROM tab1 WHERE - CAST( + ( + 74 ) AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1058
SELECT * FROM tab1 WHERE - CAST ( + ( + 74 ) AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1059
SELECT DISTINCT 54 * COUNT( * ) AS col0 FROM tab1
----
162

skipif mysql # not compatible
query I rowsort label-1059
SELECT DISTINCT 54 * COUNT ( * ) AS col0 FROM tab1
----
162

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

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

query I rowsort
SELECT ALL ( + col1 ) + - col2 + + + col1 AS col0 FROM tab2
----
114
76
79

query I rowsort
SELECT col2 * + - 55 FROM tab2
----
-1265
-2200
-3190

query I rowsort
SELECT + 0 * - col1 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1064
SELECT + - 52 DIV col0 + - col0, - col0 * - col0 - col2 AS col2 FROM tab1 AS cor0
----
-52
2505
-85
7166
-91
8213

skipif mysql # not compatible
query II rowsort label-1064
SELECT + - 52 / col0 + - col0, - col0 * - col0 - col2 AS col2 FROM tab1 AS cor0
----
-52
2505
-85
7166
-91
8213

onlyif mysql # DIV for integer division: 
query I rowsort label-1065
SELECT DISTINCT 85 - + col0 + - + 59 + - 13 * + - col1 DIV - col1 col2 FROM tab0
----
-2
-74
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1065
SELECT DISTINCT 85 - + col0 + - + 59 + - 13 * + - col1 / - col1 col2 FROM tab0
----
-2
-74
-84

query I rowsort
SELECT 44 * + col2 + - col2 * 98 FROM tab0
----
-2538
-5346
-540

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL <= 32
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1068
SELECT DISTINCT + + col1 FROM tab0 WHERE NOT NULL IN ( col0 + + 85, ( - - CAST( + - 68 AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-1068
SELECT DISTINCT + + col1 FROM tab0 WHERE NOT NULL IN ( col0 + + 85, ( - - CAST ( + - 68 AS INTEGER ) ) )
----

query II rowsort
SELECT ALL + + col2, - col2 FROM tab2 AS cor0 WHERE NOT - 36 * - col2 = NULL
----

query I rowsort
SELECT DISTINCT + col2 * + col2 * - col1 AS col2 FROM tab1 AS cor0
----
-129024
-17405
-217328

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

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

query I rowsort
SELECT - ( col0 ) * - - 70 FROM tab2 cor0
----
-3220
-4480
-5250

query I rowsort
SELECT + - 25 * + col2 FROM tab2 AS cor0
----
-1000
-1450
-575

query I rowsort
SELECT ( 18 ) AS col0 FROM tab1 AS cor0
----
18
18
18

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1076
SELECT ALL col1 DIV + col1, col1 FROM tab0
----
1
1
1
21
1
81

skipif mysql # not compatible
query II rowsort label-1076
SELECT ALL col1 / + col1, col1 FROM tab0
----
1
1
1
21
1
81

query II rowsort
SELECT DISTINCT ( 22 ), col2 + + col2 AS col2 FROM tab1
----
22
118
22
136
22
192

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < col2 / - 65
----

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1081
SELECT ALL - ( MIN( + + 94 ) ) * - CAST( - - 37 AS SIGNED ) + - MAX( + - 11 ) AS col1, 68 AS col0 FROM tab1 AS cor0
----
3489
68

skipif mysql # not compatible
query II rowsort label-1081
SELECT ALL - ( MIN ( + + 94 ) ) * - CAST ( - - 37 AS INTEGER ) + - MAX ( + - 11 ) AS col1, 68 AS col0 FROM tab1 AS cor0
----
3489
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1082
SELECT ALL MAX( + + col0 ) col1 FROM tab0
----
97

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

query I rowsort
SELECT - + col0 AS col2 FROM tab0 WHERE + ( - - col0 ) + + + 12 + + 59 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 AS cor0 WHERE - 8 NOT BETWEEN 67 + - + col0 AND ( NULL )
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, col1 + + + col0 AS col0 FROM tab1 AS cor0
----
14
65
47
138
5
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1086
SELECT + MIN( - 91 ) col1 FROM tab2 AS cor0
----
-91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1087
SELECT ALL ( 42 ) * COUNT( * ) AS col2 FROM tab2 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-1087
SELECT ALL ( 42 ) * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
126

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, - col1 + 75 col0 FROM tab0 AS cor0
----
10
54
47
-6
99
74

query I rowsort
SELECT DISTINCT - col0 + + - 30 * - col0 * + - ( + 18 ) AS col0 FROM tab1
----
-27591
-45985
-49231

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

query III rowsort
SELECT * FROM tab1 WHERE - ( + 15 ) IS NULL
----

query I rowsort
SELECT + + 76 + + + col2 + - + col1 FROM tab2 AS cor0
----
39
48
67

query I rowsort
SELECT + ( - 61 ) + col1 * - 64 * + col2 FROM tab1 AS cor0
----
-18941
-204605
-86077

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

skipif mysql # not compatible
query I rowsort label-1095
SELECT + + MIN ( ALL + 85 ) FROM tab0 AS cor0
----
85

query I rowsort
SELECT DISTINCT ( + + col1 ) - - - col2 AS col0 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT ALL - col2 - + 31 AS col2 FROM tab1
----
-127
-90
-99

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

query I rowsort
SELECT DISTINCT col1 - + col0 * + col2 FROM tab0
----
-624
-849
-9602

query I rowsort
SELECT + col0 * - - 21 AS col1 FROM tab2
----
1344
1575
966

query I rowsort
SELECT ALL + - col2 * - 84 FROM tab0 AS cor0
----
3948
8316
840

query II rowsort
SELECT + col0, 50 FROM tab1 cor0
----
51
50
85
50
91
50

onlyif mysql # DIV for integer division: 
query I rowsort label-1103
SELECT + + col0 DIV + ( 75 ) AS col0 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1103
SELECT + + col0 / + ( 75 ) AS col0 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1104
SELECT * FROM tab2 AS cor0 WHERE NOT ( 68 * col1 * CAST( NULL AS SIGNED ) ) IN ( col2 + col1 + 60, col1 )
----

skipif mysql # not compatible
query III rowsort label-1104
SELECT * FROM tab2 AS cor0 WHERE NOT ( 68 * col1 * CAST ( NULL AS INTEGER ) ) IN ( col2 + col1 + 60, col1 )
----

query II rowsort
SELECT - - 62 * ( - 91 ) AS col0, col2 AS col2 FROM tab0 AS cor0
----
-5642
10
-5642
47
-5642
99

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + 28 * col0 IS NOT NULL
----

query I rowsort
SELECT 38 * - col1 - - 5 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-3073
-33
-793

query I rowsort
SELECT ALL - - 31 FROM tab1 WHERE NULL IS NULL
----
31
31
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1110
SELECT DISTINCT ( - MIN( col0 ) ) AS col2 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-1110
SELECT DISTINCT ( - MIN ( col0 ) ) AS col2 FROM tab2
----
-46

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col0 * col0 / + col2 * + ( + col2 ) IS NULL
----

query II rowsort
SELECT + col1, + col1 * + col1 AS col0 FROM tab2
----
51
2601
67
4489
77
5929

onlyif mysql # aggregate syntax: 
query II rowsort label-1113
SELECT 12, COUNT( * ) col0 FROM tab1
----
12
3

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

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

query II rowsort
SELECT col2 AS col1, col1 * 47 AS col2 FROM tab0 AS cor0
----
10
987
47
3807
99
47

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 89 + - ( + 64 ) col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1120
SELECT COUNT( * ) DIV - - COUNT( * ), SUM( - CAST( + col1 AS SIGNED ) ) AS col1 FROM tab0
----
1
-103

skipif mysql # not compatible
query II rowsort label-1120
SELECT COUNT ( * ) / - - COUNT ( * ), SUM ( - CAST ( + col1 AS INTEGER ) ) AS col1 FROM tab0
----
1
-103

query I rowsort
SELECT 4 + col0 * col1 AS col1 FROM tab0
----
101
1219
1831

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

query I rowsort
SELECT - col1 + - - 9 - - col2 AS col1 FROM tab2 AS cor0
----
-19
-28
0

query I rowsort
SELECT DISTINCT 32 + + + col1 FROM tab2 AS cor0
----
109
83
99

query I rowsort
SELECT + - col1 + 70 * + col0 AS col2 FROM tab0 AS cor0
----
6069
6789
969

query I rowsort
SELECT - + col0 + + 51 FROM tab1 AS cor0
----
-34
-40
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1127
SELECT + CAST( + + col1 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE + 28 * 92 IS NOT NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-1127
SELECT + CAST ( + + col1 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE + 28 * 92 IS NOT NULL
----
1
21
81

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

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

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 AS cor0 WHERE + 2 >= col0 * - 30
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1130
SELECT DISTINCT 50 * 34 + + COUNT( * ) * COUNT( * ) AS col1 FROM tab2
----
1709

skipif mysql # not compatible
query I rowsort label-1130
SELECT DISTINCT 50 * 34 + + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2
----
1709

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

query I rowsort
SELECT - 72 * + col0 FROM tab1
----
-3672
-6120
-6552

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1133
SELECT col0 DIV - CAST( + col2 AS SIGNED ) AS col0 FROM tab0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-1133
SELECT col0 / - CAST ( + col2 AS INTEGER ) AS col0 FROM tab0
----
-8
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1134
SELECT - COUNT( * ) AS col2, 94 + 43 * - 55 AS col2 FROM tab2
----
-3
-2271

skipif mysql # not compatible
query II rowsort label-1134
SELECT - COUNT ( * ) AS col2, 94 + 43 * - 55 AS col2 FROM tab2
----
-3
-2271

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 96 = - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 * + 36 FROM tab1
----
1836
3060
3276

query I rowsort
SELECT ALL - col0 + + ( + 85 ) + 60 AS col0 FROM tab0
----
130
48
58

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 - - col2 col2 FROM tab2 AS cor0
----
110
75
92

query I rowsort
SELECT ALL + col2 FROM tab0 cor0 WHERE NOT + 74 IS NOT NULL
----

query I rowsort
SELECT ALL - + 28 + - + 12 FROM tab1 AS cor0
----
-40
-40
-40

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

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

query I rowsort
SELECT - col1 * + col2 + + ( + col1 ) AS col1 FROM tab1 AS cor0
----
-1330
-290
-3149

onlyif mysql # DIV for integer division: 
query I rowsort label-1145
SELECT - + col0 + + col0 DIV 46 FROM tab0 AS cor0
----
-15
-86
-95

skipif mysql # not compatible
query I rowsort label-1145
SELECT - + col0 + + col0 / 46 FROM tab0 AS cor0
----
-15
-86
-95

query I rowsort
SELECT col0 * + + col1 - - + col0 + - 51 FROM tab2 AS cor0
----
2341
4941
5049

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 43 * col1 IS NULL
----

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1149
SELECT DISTINCT + col1 * + col1 col0, 83 DIV col2 + ( + col0 ) FROM tab1
----
196
51
2209
92
25
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1149
SELECT DISTINCT + col1 * + col1 col0, 83 / col2 + ( + col0 ) FROM tab1
----
196
51
2209
92
25
86

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1151
SELECT - CAST( + CAST( - COUNT( * ) AS SIGNED ) AS SIGNED ) + - 68 FROM tab2 AS cor0 WHERE NOT NULL <= ( NULL )
----
-68

skipif mysql # not compatible
query I rowsort label-1151
SELECT - CAST ( + CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) + - 68 FROM tab2 AS cor0 WHERE NOT NULL <= ( NULL )
----
-68

query I rowsort
SELECT ALL col2 * - - ( - col0 ) * + 75 * 61 FROM tab1 AS cor0
----
-22399200
-22943625
-28310100

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 7 * + 96 NOT BETWEEN - col1 / 95 * + col1 * col1 AND + + col2
----

query I rowsort
SELECT ALL + + 25 * + col1 AS col1 FROM tab2 cor0
----
1275
1675
1925

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT 70 = + 8
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1156
SELECT ALL + col2, CAST( NULL AS SIGNED ) + + 51 FROM tab0 AS cor0 WHERE NOT 25 + col0 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query II rowsort label-1156
SELECT ALL + col2, CAST ( NULL AS INTEGER ) + + 51 FROM tab0 AS cor0 WHERE NOT 25 + col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1157
SELECT ALL - - SUM( + 21 ) FROM tab2 cor0
----
63

skipif mysql # not compatible
query I rowsort label-1157
SELECT ALL - - SUM ( + 21 ) FROM tab2 cor0
----
63

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - ( col2 ) * - 29 FROM tab2 AS cor0
----
1160
1682
667

query I rowsort
SELECT - col0 * + - col2 AS col2 FROM tab2 cor0
----
1058
2560
4350

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT - + 96 * 93 * - - 24 IS NOT NULL
----

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

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

query I rowsort
SELECT ALL 65 * - col0 FROM tab2
----
-2990
-4160
-4875

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

query I rowsort
SELECT ALL + 81 + col0 AS col1 FROM tab1 AS cor0
----
132
166
172

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 71 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1171
SELECT DISTINCT + MAX( - - 2 ) * + + MAX( ALL 83 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
166

skipif mysql # not compatible
query I rowsort label-1171
SELECT DISTINCT + MAX ( - - 2 ) * + + MAX ( ALL 83 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
166

query I rowsort
SELECT DISTINCT - + 93 * + - 15 FROM tab0 AS cor0 WHERE + col2 + - + col2 IS NOT NULL
----
1395

query II rowsort
SELECT DISTINCT + + 98 AS col1, - ( - col2 ) FROM tab1 AS cor0
----
98
59
98
68
98
96

query II rowsort
SELECT col0, col2 * col0 FROM tab1 AS cor0
----
51
4896
85
5015
91
6188

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

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 cor0 WHERE - 15 * - col1 >= NULL
----

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

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

query I rowsort
SELECT ( - + col1 ) + + col2 * + col1 + - + col1 + - 36 FROM tab0
----
132
3609
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1179
SELECT ALL - 96 * - col2 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL + + 82 AS col1 FROM tab2 WHERE NOT - 61 IS NULL
----
82
82
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 89 + col0 col2, col0 FROM tab0
----
104
15
176
87
186
97

query I rowsort
SELECT DISTINCT - 39 AS col2 FROM tab1 WHERE NOT + ( - 86 ) + + - 84 + + col1 * + ( + col1 ) IS NOT NULL
----

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

query I rowsort
SELECT ALL - - 93 + - - col1 - + + col2 + + - 86 AS col0 FROM tab0 WHERE - + col0 <> NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 + + + col2 * - col1 + - col1 * col0 + + - ( col0 ) + 57 <> - 73 * - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 99 * + col2 FROM tab0 AS cor0
----
-4653
-9801
-990

onlyif mysql # DIV for integer division: 
query I rowsort label-1187
SELECT ALL - col2 DIV + col1 + col2 AS col0 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-1187
SELECT ALL - col2 / + col1 + col2 AS col0 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1188
SELECT ALL MIN( ALL 19 ) FROM tab1 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-1188
SELECT ALL MIN ( ALL 19 ) FROM tab1 AS cor0
----
19

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1189
SELECT CAST ( NULL AS INTEGER ) * - - 42 col1 FROM tab0 cor0
----
NULL
NULL
NULL

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

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

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

query I rowsort
SELECT col1 * col0 + + 4 AS col1 FROM tab0
----
101
1219
1831

query II rowsort
SELECT col2 * + col0, col0 FROM tab1
----
4896
51
5015
85
6188
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1195
SELECT + - MAX( + 41 ) FROM tab1 AS cor0 WHERE 69 < - col2 + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1195
SELECT + - MAX ( + 41 ) FROM tab1 AS cor0 WHERE 69 < - col2 + col2
----
NULL

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col1 * - ( + ( col0 ) ) <= - - 64 + - - col1 * + + 86
----
91
47
68

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

skipif mysql # not compatible
query I rowsort label-1198
SELECT COUNT ( * ) + - 94 FROM tab1
----
-91

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1201
SELECT ALL + CAST( NULL AS SIGNED ) * 41 AS col1 FROM tab1 AS cor0 WHERE NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-1201
SELECT ALL + CAST ( NULL AS INTEGER ) * 41 AS col1 FROM tab1 AS cor0 WHERE NULL >= NULL
----

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

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

query I rowsort
SELECT ALL col0 + 30 FROM tab2 cor0
----
105
76
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1205
SELECT DISTINCT + CAST( ( - col2 ) AS SIGNED ) * + col0 + - 66 * + 57 AS col0 FROM tab2 AS cor0
----
-4820
-6322
-8112

skipif mysql # not compatible
query I rowsort label-1205
SELECT DISTINCT + CAST ( ( - col2 ) AS INTEGER ) * + col0 + - 66 * + 57 AS col0 FROM tab2 AS cor0
----
-4820
-6322
-8112

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 84 BETWEEN - col1 AND - - col2
----
97
1
99

query I rowsort
SELECT DISTINCT 20 - - col0 AS col0 FROM tab0
----
107
117
35

query I rowsort
SELECT DISTINCT + col1 - col2 + + 44 FROM tab0
----
-54
55
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1210
SELECT 32 - - - CAST( - 0 AS SIGNED ) FROM tab1
----
32
32
32

skipif mysql # not compatible
query I rowsort label-1210
SELECT 32 - - - CAST ( - 0 AS INTEGER ) FROM tab1
----
32
32
32

query I rowsort
SELECT DISTINCT - col0 - - col1 * - col0 FROM tab1
----
-4368
-510
-765

query II rowsort
SELECT ALL col1, 41 * + col0 AS col0 FROM tab0
----
1
3977
21
3567
81
615

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

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

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

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

query I rowsort
SELECT + ( + - 4 ) * - - col2 + - - 24 * 12 - col1 FROM tab1
----
-110
-31
47

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

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

query I rowsort
SELECT 84 * - col0 FROM tab0 AS cor0
----
-1260
-7308
-8148

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1220
SELECT DISTINCT + + 74 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1220
SELECT DISTINCT + + 74 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL 18 * + + col0 + col0 * - 81 FROM tab0
----
-5481
-6111
-945

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - 35 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IS NULL AND 8 NOT BETWEEN - - col1 AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 18 + col2 FROM tab1 AS cor0
----
114
77
86

query I rowsort
SELECT + col1 + + + ( + 2 ) AS col0 FROM tab0 cor0
----
23
3
83

query I rowsort
SELECT DISTINCT + 26 + + - col1 AS col0 FROM tab0 cor0
----
-55
25
5

query I rowsort
SELECT ALL 72 AS col1 FROM tab2 AS cor0 WHERE - col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col0 AND - + 22 - col1 * - 73
----

query I rowsort
SELECT ALL - ( - ( - + 79 ) ) * + 84 FROM tab1 AS cor0
----
-6636
-6636
-6636

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT - COUNT( * ) + - - 81 * + MAX( + + 73 ) AS col1 FROM tab1, tab1 AS cor0
----
5904

skipif mysql # not compatible
query I rowsort label-1231
SELECT - COUNT ( * ) + - - 81 * + MAX ( + + 73 ) AS col1 FROM tab1, tab1 AS cor0
----
5904

query I rowsort
SELECT + - col2 - - col2 FROM tab0 WHERE + col1 + + + 4 IS NOT NULL
----
0
0
0

query I rowsort
SELECT + col2 - - - 75 FROM tab0 AS cor0
----
-28
-65
24

onlyif mysql # DIV for integer division: 
query I rowsort label-1234
SELECT - - 12 - + col1 DIV + + col2 AS col0 FROM tab2 AS cor0
----
10
11
11

skipif mysql # not compatible
query I rowsort label-1234
SELECT - - 12 - + col1 / + + col2 AS col0 FROM tab2 AS cor0
----
10
11
11

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

query I rowsort
SELECT ALL - - col2 * + - col0 + + col1 + col2 - + ( + col2 ) AS col2 FROM tab0 AS cor0
----
-624
-849
-9602

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1237
SELECT 45 + CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
112
122
96

skipif mysql # not compatible
query I rowsort label-1237
SELECT 45 + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
112
122
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1239
SELECT + 25 + + - MAX( DISTINCT - col1 ) AS col2 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-1239
SELECT + 25 + + - MAX ( DISTINCT - col1 ) AS col2 FROM tab1
----
30

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1241
SELECT ALL + 28 DIV - col1 FROM tab1
----
-2
-5
0

skipif mysql # not compatible
query I rowsort label-1241
SELECT ALL + 28 / - col1 FROM tab1
----
-2
-5
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 7 + + 28 IS NOT NULL
----

query II rowsort
SELECT ALL + col2, col2 + + col2 AS col0 FROM tab1 AS cor0
----
59
118
68
136
96
192

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1245
SELECT - 95 * COUNT( + col2 ) AS col1 FROM tab0 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-1245
SELECT - 95 * COUNT ( + col2 ) AS col1 FROM tab0 AS cor0
----
-285

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1248
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE + ( - + ( - 81 ) ) BETWEEN - col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1248
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE + ( - + ( - 81 ) ) BETWEEN - col0 AND NULL
----
0

query I rowsort
SELECT DISTINCT + col0 * 20 AS col2 FROM tab0
----
1740
1940
300

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

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

query II rowsort
SELECT ALL - ( col1 ) AS col1, + col0 * 75 + 88 * + col1 * + col1 * - 21 - + col2 AS col2 FROM tab2 AS cor0
----
-51
-4803221
-67
-8290105
-77
-10952032

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - + 36 col0 FROM tab1 AS cor0
----
15
49
55

query I rowsort
SELECT DISTINCT 61 * - 71 + - col1 AS col2 FROM tab0 AS cor0
----
-4332
-4352
-4412

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

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

query I rowsort
SELECT - 54 * 61 AS col2 FROM tab1
----
-3294
-3294
-3294

onlyif mysql # aggregate syntax: 
query II rowsort label-1258
SELECT DISTINCT - MAX( ALL + col1 ) AS col2, 85 FROM tab1
----
-47
85

skipif mysql # not compatible
query II rowsort label-1258
SELECT DISTINCT - MAX ( ALL + col1 ) AS col2, 85 FROM tab1
----
-47
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1259
SELECT ALL - CAST( NULL AS SIGNED ) * - 24 * - col2 * - - 90 + - - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1259
SELECT ALL - CAST ( NULL AS INTEGER ) * - 24 * - col2 * - - 90 + - - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1260
SELECT - SUM( ALL + 20 ) AS col2 FROM tab2 AS cor0 WHERE + col0 * + + col1 * - 41 / - + 55 BETWEEN NULL AND col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1260
SELECT - SUM ( ALL + 20 ) AS col2 FROM tab2 AS cor0 WHERE + col0 * + + col1 * - 41 / - + 55 BETWEEN NULL AND col0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( 32 ) * 44 - + 8 NOT BETWEEN col1 AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-1262
SELECT ALL - 94 * + - 57 + + - 78 * 13 DIV + - 5 FROM tab1 AS cor0
----
5560
5560
5560

skipif mysql # not compatible
query I rowsort label-1262
SELECT ALL - 94 * + - 57 + + - 78 * 13 / + - 5 FROM tab1 AS cor0
----
5560
5560
5560

query I rowsort
SELECT DISTINCT col1 * + 41 - - + col1 FROM tab0 AS cor0 WHERE col1 >= - + col1
----
3402
42
882

onlyif mysql # aggregate syntax: 
query I rowsort label-1264
SELECT - 35 * - COUNT( * ) + - - 53 * + 41 + - 1 col2 FROM tab0
----
2277

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1264
SELECT - 35 * - COUNT ( * ) + - - 53 * + 41 + - 1 col2 FROM tab0
----
2277

query I rowsort
SELECT col1 + + ( - + col2 ) + - - col1 + + 11 + + col0 * + col1 FROM tab1
----
387
4314
657

query I rowsort
SELECT + 32 * col0 AS col2 FROM tab2 AS cor0
----
1472
2048
2400

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1 * col2 * + + col0 + col0 - - col1, col2, - - col1 * - + col0 + + + ( 82 ), - col2 + - + col2 )
----

query I rowsort
SELECT ALL - col0 * ( - col2 ) * - 44 FROM tab0 cor0
----
-31020
-38280
-422532

onlyif mysql # aggregate syntax: 
query II rowsort label-1269
SELECT - 85 AS col0, ( + ( MIN( + col0 ) ) ) FROM tab2 AS cor0
----
-85
46

skipif mysql # not compatible
query II rowsort label-1269
SELECT - 85 AS col0, ( + ( MIN ( + col0 ) ) ) FROM tab2 AS cor0
----
-85
46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1271
SELECT ALL - MIN( + ( - 13 ) ) col0 FROM tab2
----
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1271
SELECT ALL - MIN ( + ( - 13 ) ) col0 FROM tab2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT - ( MAX( + col1 ) ) AS col2 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-1272
SELECT - ( MAX ( + col1 ) ) AS col2 FROM tab1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1273
SELECT + SUM( - 27 ) AS col0 FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-1273
SELECT + SUM ( - 27 ) AS col0 FROM tab1
----
-81

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

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

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

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

query I rowsort
SELECT - col2 * + + 82 * - col1 * + + col1 * + + 80 FROM tab0 cor0
----
2022887520
28929600
649440

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

query I rowsort
SELECT + 69 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

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

onlyif mysql # aggregate syntax: 
query III rowsort label-1280
SELECT - COUNT( * ) AS col1, COUNT( * ) + + - COUNT( * ), + COUNT( + col2 ) AS col2 FROM tab2 AS cor0
----
-3
0
3

skipif mysql # not compatible
query III rowsort label-1280
SELECT - COUNT ( * ) AS col1, COUNT ( * ) + + - COUNT ( * ), + COUNT ( + col2 ) AS col2 FROM tab2 AS cor0
----
-3
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT ALL + + 89 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-1281
SELECT ALL + + 89 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
92

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col0 + + col2 <> NULL
----

query I rowsort
SELECT + 11 * + - col2 * col2 * - + col2 AS col2 FROM tab2
----
133837
2146232
704000

query I rowsort
SELECT + - 18 AS col1 FROM tab0 WHERE - col1 + + 20 IS NOT NULL
----
-18
-18
-18

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

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

skipif mysql # not compatible
query II rowsort label-1287
SELECT DISTINCT + 97 AS col0, + COUNT ( * ) AS col1 FROM tab1
----
97
3

query I rowsort
SELECT ALL 33 * + - col1 FROM tab2
----
-1683
-2211
-2541

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NULL BETWEEN NULL AND col1
----

query I rowsort
SELECT + col1 FROM tab0 WHERE NULL <> - - col1 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1291
SELECT ALL SUM( DISTINCT - col2 ) AS col0 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-1291
SELECT ALL SUM ( DISTINCT - col2 ) AS col0 FROM tab2
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-1292
SELECT + ( + + 19 ) + + 47 + + MIN( ALL + 52 ) AS col0 FROM tab1 AS cor0
----
118

skipif mysql # not compatible
query I rowsort label-1292
SELECT + ( + + 19 ) + + 47 + + MIN ( ALL + 52 ) AS col0 FROM tab1 AS cor0
----
118

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

query II rowsort
SELECT + 78 AS col1, col2 AS col1 FROM tab0 cor0
----
78
10
78
47
78
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1295
SELECT DISTINCT + + ( + + col1 ) * + col1 AS col2 FROM tab2 AS cor0 WHERE NOT 4 BETWEEN + col0 AND - col1 * - - col1 - - CAST( NULL AS SIGNED )
----
2601
4489
5929

skipif mysql # not compatible
query I rowsort label-1295
SELECT DISTINCT + + ( + + col1 ) * + col1 AS col2 FROM tab2 AS cor0 WHERE NOT 4 BETWEEN + col0 AND - col1 * - - col1 - - CAST ( NULL AS INTEGER )
----
2601
4489
5929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * col0 + - 40 col0 FROM tab0 AS cor0
----
1175
1787
57

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

skipif mysql # not compatible
query I rowsort label-1297
SELECT CAST ( NULL AS REAL ) * COUNT ( * ) AS col1 FROM tab1 cor0
----
NULL

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

query II rowsort
SELECT ALL 76 * - 34, - col0 AS col2 FROM tab1 AS cor0
----
-2584
-51
-2584
-85
-2584
-91

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1301
SELECT col0 DIV 82 * + col1 + + 28 - - + col1 FROM tab2 AS cor0
----
105
79
95

skipif mysql # not compatible
query I rowsort label-1301
SELECT col0 / 82 * + col1 + + 28 - - + col1 FROM tab2 AS cor0
----
105
79
95

query I rowsort
SELECT - - col2 * - + 7 FROM tab0 AS cor0
----
-329
-693
-70

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL < 51
----

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

query I rowsort
SELECT + 98 + - col2 FROM tab1 cor0 WHERE NOT NULL < col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1306
SELECT DISTINCT MIN( - + col0 ) AS col2 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-1306
SELECT DISTINCT MIN ( - + col0 ) AS col2 FROM tab1
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 70 * - col0 col0 FROM tab0
----
-1050
-6090
-6790

onlyif mysql # aggregate syntax: 
query I rowsort label-1308
SELECT ALL + COUNT( * ) * - + 97 FROM tab2
----
-291

skipif mysql # not compatible
query I rowsort label-1308
SELECT ALL + COUNT ( * ) * - + 97 FROM tab2
----
-291

onlyif mysql # DIV for integer division: 
query I rowsort label-1309
SELECT ALL 24 DIV + + 99 * - col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1309
SELECT ALL 24 / + + 99 * - col1 FROM tab1
----
0
0
0

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

query I rowsort
SELECT DISTINCT - 56 * + col0 FROM tab1
----
-2856
-4760
-5096

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 col1 FROM tab2 cor0
----
1058
2560
4350

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

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

query I rowsort
SELECT DISTINCT - col2 * + col1 + + + col1 AS col1 FROM tab0 cor0
----
-189
-3726
-98

query I rowsort
SELECT 90 * - col0 - + 74 FROM tab0
----
-1424
-7904
-8804

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1317
SELECT ALL CAST( ( 35 ) AS SIGNED ) FROM tab1 WHERE NOT ( - ( - 74 ) - col1 / col2 ) IS NULL
----
35
35
35

skipif mysql # not compatible
query I rowsort label-1317
SELECT ALL CAST ( ( 35 ) AS INTEGER ) FROM tab1 WHERE NOT ( - ( - 74 ) - col1 / col2 ) IS NULL
----
35
35
35

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

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

query III rowsort
SELECT * FROM tab0 WHERE col0 / - 92 <> + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND + 81
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1321
SELECT * FROM tab2 WHERE NOT NULL > ( + CAST( NULL AS SIGNED ) * 64 )
----

skipif mysql # not compatible
query III rowsort label-1321
SELECT * FROM tab2 WHERE NOT NULL > ( + CAST ( NULL AS INTEGER ) * 64 )
----

query I rowsort
SELECT ALL + 72 * col2 AS col2 FROM tab2
----
1656
2880
4176

onlyif mysql # aggregate syntax: 
query I rowsort label-1323
SELECT MIN( - 89 ) AS col2 FROM tab0
----
-89

skipif mysql # not compatible
query I rowsort label-1323
SELECT MIN ( - 89 ) AS col2 FROM tab0
----
-89

query I rowsort
SELECT ( col0 ) - - 58 AS col0 FROM tab2
----
104
122
133

query I rowsort
SELECT 10 * + 46 FROM tab2
----
460
460
460

query I rowsort
SELECT 47 * 30 FROM tab0
----
1410
1410
1410

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 13 + 96 col2 FROM tab1
----
109

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1328
SELECT ALL COUNT( * ) + 76 col0 FROM tab1 WHERE - CAST( NULL AS DECIMAL ) IS NULL
----
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1328
SELECT ALL COUNT ( * ) + 76 col0 FROM tab1 WHERE - CAST ( NULL AS REAL ) IS NULL
----
79

query III rowsort
SELECT * FROM tab2 WHERE + col1 + + col0 <= + col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 82 / + col1 + + col0 >= col0 * - 64
----

query I rowsort
SELECT ALL + 20 + + col1 AS col2 FROM tab0
----
101
21
41

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

skipif mysql # not compatible
query I rowsort label-1332
SELECT - 56 * - COUNT ( * ) AS col1 FROM tab1
----
168

query I rowsort
SELECT + col2 * - 30 AS col1 FROM tab2
----
-1200
-1740
-690

query I rowsort
SELECT ALL + col0 * 73 AS col1 FROM tab2
----
3358
4672
5475

query I rowsort
SELECT DISTINCT - ( 14 ) + + col1 AS col1 FROM tab1
----
-9
0
33

query I rowsort
SELECT DISTINCT - 68 * 60 + col1 AS col1 FROM tab1
----
-4033
-4066
-4075

query I rowsort
SELECT - col1 * - 30 FROM tab0
----
2430
30
630

onlyif mysql # aggregate syntax: 
query I rowsort label-1338
SELECT ALL + COUNT( - 7 ) * 99 AS col2 FROM tab1
----
297

skipif mysql # not compatible
query I rowsort label-1338
SELECT ALL + COUNT ( - 7 ) * 99 AS col2 FROM tab1
----
297

query I rowsort
SELECT DISTINCT - col1 * + col0 FROM tab0 WHERE NOT - col2 <= ( + col0 )
----

query I rowsort
SELECT DISTINCT 28 * - 91 + col2 AS col0 FROM tab0 WHERE NOT + col2 > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT IN ( + 96 )
----

query I rowsort
SELECT col0 * ( + col1 ) + col2 AS col2 FROM tab0
----
1262
1837
196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1343
SELECT ALL col1 - col1 AS col0 FROM tab2 WHERE NOT + CAST( + 1 AS SIGNED ) / + col1 NOT BETWEEN 28 * ( col0 ) AND col0 * - 99
----

skipif mysql # not compatible
query I rowsort label-1343
SELECT ALL col1 - col1 AS col0 FROM tab2 WHERE NOT + CAST ( + 1 AS INTEGER ) / + col1 NOT BETWEEN 28 * ( col0 ) AND col0 * - 99
----

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 55 + + col1 * 70 = + col1 * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 13 + - 87 FROM tab0 AS cor0
----
-74
-74
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1348
SELECT ALL ( + MAX( DISTINCT 84 ) ) + + 53 FROM tab2 cor0
----
137

skipif mysql # not compatible
query I rowsort label-1348
SELECT ALL ( + MAX ( DISTINCT 84 ) ) + + 53 FROM tab2 cor0
----
137

query I rowsort
SELECT ALL col0 - + 31 AS col0 FROM tab1
----
20
54
60

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col2 ) = col1
----

query I rowsort
SELECT - - col1 * - 20 FROM tab2 AS cor0
----
-1020
-1340
-1540

onlyif mysql # aggregate syntax: 
query I rowsort label-1353
SELECT ALL + 90 * + COUNT( * ) FROM tab0 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-1353
SELECT ALL + 90 * + COUNT ( * ) FROM tab0 AS cor0
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT ALL COUNT( * ) * 22 FROM tab2 AS cor0 WHERE NOT col2 BETWEEN NULL AND ( - ( col2 ) )
----
66

skipif mysql # not compatible
query I rowsort label-1354
SELECT ALL COUNT ( * ) * 22 FROM tab2 AS cor0 WHERE NOT col2 BETWEEN NULL AND ( - ( col2 ) )
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1355
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col2 / CAST( col2 AS SIGNED ) ) <> ( + 39 + col1 )
----

skipif mysql # not compatible
query III rowsort label-1355
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col2 / CAST ( col2 AS INTEGER ) ) <> ( + 39 + col1 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT + 95 * COUNT( * ) AS col0 FROM tab2
----
285

skipif mysql # not compatible
query I rowsort label-1357
SELECT + 95 * COUNT ( * ) AS col0 FROM tab2
----
285

query I rowsort
SELECT DISTINCT 34 * - col0 AS col2 FROM tab2
----
-1564
-2176
-2550

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 84 col1 FROM tab0
----
1260
7308
8148

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1360
SELECT CAST( - 52 AS SIGNED ) DIV col1 FROM tab1
----
-1
-10
-3

skipif mysql # not compatible
query I rowsort label-1360
SELECT CAST ( - 52 AS INTEGER ) / col1 FROM tab1
----
-1
-10
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + col2 - - 8 AND + 11 * + 68
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 46 IS NULL
----

query I rowsort
SELECT ALL - - 27 + + col1 - - col1 FROM tab0 AS cor0
----
189
29
69

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 55 BETWEEN - col1 + + 35 * 16 AND col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

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

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

query II rowsort
SELECT DISTINCT col2, - 81 AS col2 FROM tab0
----
10
-81
47
-81
99
-81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1371
SELECT ALL - MIN( - col0 ) FROM tab2 AS cor0 WHERE NOT - col0 * - ( - col1 ) <= + col1 - + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1371
SELECT ALL - MIN ( - col0 ) FROM tab2 AS cor0 WHERE NOT - col0 * - ( - col1 ) <= + col1 - + col2
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1373
SELECT ALL CAST( - col2 AS SIGNED ) FROM tab0 AS cor0 WHERE ( col0 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1373
SELECT ALL CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0 WHERE ( col0 ) IS NULL
----

query I rowsort
SELECT + 54 * + + col2 * - 36 AS col1 FROM tab1 AS cor0
----
-114696
-132192
-186624

onlyif mysql # DIV for integer division: 
query I rowsort label-1375
SELECT ALL - - col2 + - - 13 + + ( - 81 ) DIV col2 AS col1 FROM tab0 AS cor0
----
112
15
59

skipif mysql # not compatible
query I rowsort label-1375
SELECT ALL - - col2 + - - 13 + + ( - 81 ) / col2 AS col1 FROM tab0 AS cor0
----
112
15
59

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

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

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NULL < + col1 - + - col1 + 43
----

query I rowsort
SELECT col1 + + col1 + + 94 AS col1 FROM tab1 AS cor0
----
104
122
188

query I rowsort
SELECT DISTINCT 76 * + ( - 64 ) AS col0 FROM tab0 WHERE - 97 * - col0 IS NULL AND ( + col1 + col1 ) >= NULL
----

query I rowsort
SELECT col1 + - + 54 + + 27 FROM tab0
----
-26
-6
54

onlyif mysql # DIV for integer division: 
query I rowsort label-1381
SELECT ALL - 62 DIV + 72 * - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1381
SELECT ALL - 62 / + 72 * - col1 FROM tab2
----
0
0
0

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

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

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

query I rowsort
SELECT ALL - - 90 FROM tab0 cor0
----
90
90
90

query I rowsort
SELECT col2 * - + col1 AS col0 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-1386
SELECT DISTINCT + MIN( DISTINCT - col2 ), 36 AS col2 FROM tab0 AS cor0
----
-99
36

skipif mysql # not compatible
query II rowsort label-1386
SELECT DISTINCT + MIN ( DISTINCT - col2 ), 36 AS col2 FROM tab0 AS cor0
----
-99
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1387
SELECT - COUNT( * ) DIV + 27 + + 94 * - 3 + 30 * COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-12

skipif mysql # not compatible
query I rowsort label-1387
SELECT - COUNT ( * ) / + 27 + + 94 * - 3 + 30 * COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1388
SELECT + 62 + COUNT( col2 ) AS col1 FROM tab1 WHERE NOT - col2 NOT IN ( ( - col0 ) / - 2 )
----
62

skipif mysql # not compatible
query I rowsort label-1388
SELECT + 62 + COUNT ( col2 ) AS col1 FROM tab1 WHERE NOT - col2 NOT IN ( ( - col0 ) / - 2 )
----
62

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1391
SELECT DISTINCT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( 64 ) >= ( col0 * - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-1391
SELECT DISTINCT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( 64 ) >= ( col0 * - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1392
SELECT ALL - SUM( ALL - 66 ) FROM tab0 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-1392
SELECT ALL - SUM ( ALL - 66 ) FROM tab0 AS cor0
----
198

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 85 / col1 + - 53 * + 37 * 64 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT 61 * - 57 FROM tab0 AS cor0
----
-3477
-3477
-3477

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col1 ) BETWEEN ( 12 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

skipif mysql # not compatible
query I rowsort label-1399
SELECT 32 / - col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1400
SELECT ALL 74, - 26 + COUNT( * ) AS col2 FROM tab0
----
74
-23

skipif mysql # not compatible
query II rowsort label-1400
SELECT ALL 74, - 26 + COUNT ( * ) AS col2 FROM tab0
----
74
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab2 WHERE NOT ( NOT NULL NOT BETWEEN + 94 + - + 25 AND NULL )
----

query II rowsort
SELECT DISTINCT - col1 AS col2, - col1 FROM tab1
----
-14
-14
-47
-47
-5
-5

query I rowsort
SELECT - col1 * col0 * 93 AS col2 FROM tab1
----
-39525
-397761
-66402

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

query I rowsort
SELECT DISTINCT - col1 * + 91 AS col2 FROM tab1 AS cor0
----
-1274
-4277
-455

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

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

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

query I rowsort
SELECT - col1 * + col1 * 54 FROM tab0
----
-23814
-354294
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 + + + col1 col0 FROM tab2
----
108
82
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1410
SELECT + COUNT( * ) + - 50 FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-1410
SELECT + COUNT ( * ) + - 50 FROM tab0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1411
SELECT ALL + MAX( ALL 44 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
44

skipif mysql # not compatible
query I rowsort label-1411
SELECT ALL + MAX ( ALL 44 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
44

query I rowsort
SELECT col0 + 34 FROM tab2
----
109
80
98

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1414
SELECT DISTINCT - + 59 - - col2 + - - col1 FROM tab0 AS cor0 WHERE NOT CAST( - + col2 AS SIGNED ) <= col1
----

skipif mysql # not compatible
query I rowsort label-1414
SELECT DISTINCT - + 59 - - col2 + - - col1 FROM tab0 AS cor0 WHERE NOT CAST ( - + col2 AS INTEGER ) <= col1
----

query I rowsort
SELECT col1 + - + col0 AS col2 FROM tab0 AS cor0
----
-66
-96
66

query II rowsort
SELECT ALL - + 97 + + + 66 AS col1, ( - 4 ) + - + 2 AS col1 FROM tab0 AS cor0
----
-31
-6
-31
-6
-31
-6

query I rowsort
SELECT + col2 * col0 + ( 41 ) + + ( + col0 ) FROM tab1 AS cor0
----
4988
5141
6320

query I rowsort
SELECT DISTINCT 70 FROM tab0 AS cor0 WHERE + 2 BETWEEN col0 AND ( - 75 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1419
SELECT COUNT( * ) + - 53 DIV 43 AS col2 FROM tab2 cor0 WHERE NULL NOT BETWEEN - col0 * - col1 * - + col0 + 6 AND ( NULL )
----
-1

skipif mysql # not compatible
query I rowsort label-1419
SELECT COUNT ( * ) + - 53 / 43 AS col2 FROM tab2 cor0 WHERE NULL NOT BETWEEN - col0 * - col1 * - + col0 + 6 AND ( NULL )
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - 41 * 52 col1 FROM tab2
----
-2057
-2068
-2086

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT DISTINCT 36 - + MIN( ALL 22 ) * + + 23 FROM tab2
----
-470

skipif mysql # not compatible
query I rowsort label-1421
SELECT DISTINCT 36 - + MIN ( ALL 22 ) * + + 23 FROM tab2
----
-470

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1422
SELECT - CAST( col2 AS SIGNED ) AS col0 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-1422
SELECT - CAST ( col2 AS INTEGER ) AS col0 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT ( + - col2 ) * - 8 FROM tab2
----
184
320
464

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

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

query I rowsort
SELECT col2 / + col0 + 73 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1426
SELECT DISTINCT ( + + SUM( ALL + 96 ) ) AS col0, 72 AS col2 FROM tab2
----
288
72

skipif mysql # not compatible
query II rowsort label-1426
SELECT DISTINCT ( + + SUM ( ALL + 96 ) ) AS col0, 72 AS col2 FROM tab2
----
288
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1427
SELECT - 82 - COUNT( * ) FROM tab1
----
-85

skipif mysql # not compatible
query I rowsort label-1427
SELECT - 82 - COUNT ( * ) FROM tab1
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1428
SELECT DISTINCT * FROM tab2 WHERE NOT ( + + col1 - CAST( NULL AS SIGNED ) ) = - ( + col2 )
----

skipif mysql # not compatible
query III rowsort label-1428
SELECT DISTINCT * FROM tab2 WHERE NOT ( + + col1 - CAST ( NULL AS INTEGER ) ) = - ( + col2 )
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1430
SELECT + - COUNT( * ) DIV - 52 AS col2 FROM tab0 AS cor0
----
0

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

query I rowsort
SELECT ALL + 64 AS col1 FROM tab2 cor0
----
64
64
64

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( col0, + 53 )
----

query II rowsort
SELECT ALL - col0, 79 * - ( + + 59 ) FROM tab0 AS cor0 WHERE + 8 <= + - 64
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1435
SELECT COUNT( * ) * ( - - SUM( - ( 48 ) ) ) FROM tab2
----
-432

skipif mysql # not compatible
query I rowsort label-1435
SELECT COUNT ( * ) * ( - - SUM ( - ( 48 ) ) ) FROM tab2
----
-432

query I rowsort
SELECT ALL + col0 * + + col2 FROM tab1 WHERE NOT - col2 / + col0 NOT BETWEEN - - 32 AND NULL
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1438
SELECT ALL SUM( - CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1438
SELECT ALL SUM ( - CAST ( NULL AS REAL ) ) FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( 5, 17 + 7, + col1 )
----

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

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

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

query I rowsort
SELECT + + 97 + - 6 FROM tab2 AS cor0
----
91
91
91

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

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

query I rowsort
SELECT col0 + - - 69 + + col1 FROM tab1 AS cor0
----
134
159
207

onlyif mysql # aggregate syntax: 
query I rowsort label-1445
SELECT ALL - MIN( ALL - col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-1445
SELECT ALL - MIN ( ALL - col2 ) FROM tab1
----
96

query II rowsort
SELECT 73, - 97 + + 26 AS col0 FROM tab0
----
73
-71
73
-71
73
-71

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 24 * 79 >= ( NULL )
----

query II rowsort
SELECT ALL 93, + col1 * - - col2 AS col1 FROM tab2 AS cor0
----
93
1173
93
3080
93
3886

query I rowsort
SELECT + col1 - col2 AS col2 FROM tab1 cor0
----
-21
-54
-82

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

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

query I rowsort
SELECT + 87 + - ( - 9 ) + - ( col2 ) AS col1 FROM tab1 AS cor0
----
0
28
37

query I rowsort
SELECT DISTINCT col0 * - - col0 - + col0 FROM tab0
----
210
7482
9312

query I rowsort
SELECT + ( - col0 ) * - + 59 * + col0 FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 11 col1 FROM tab1
----
-48
-57
-85

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

query I rowsort
SELECT ALL + col2 - - + col2 FROM tab2
----
116
46
80

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1459
SELECT - MIN( - - col1 ) col0 FROM tab1 AS cor0 WHERE NOT 48 - - col0 NOT IN ( + col2 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1459
SELECT - MIN ( - - col1 ) col0 FROM tab1 AS cor0 WHERE NOT 48 - - col0 NOT IN ( + col2 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1461
SELECT + MAX( + 52 ) FROM tab1 cor0 WHERE NOT NULL NOT IN ( col1 * + 18, + col1 * + + ( - ( + - col2 ) ) - + + 63 + - + 5 - - col1 * col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1461
SELECT + MAX ( + 52 ) FROM tab1 cor0 WHERE NOT NULL NOT IN ( col1 * + 18, + col1 * + + ( - ( + - col2 ) ) - + + 63 + - + 5 - - col1 * col1 )
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 84 * + 22 IS NOT NULL
----

query II rowsort
SELECT col0 AS col0, + col1 * - + col1 * - 93 FROM tab0
----
15
610173
87
41013
97
93

query I rowsort
SELECT ALL 18 * 35 FROM tab2
----
630
630
630

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + 20 col1 FROM tab1
----
-1020
-1700
-1820

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1468
SELECT DISTINCT - col2 / - + CAST( NULL AS SIGNED ) * - + col1 AS col0, - col1 * + 37 + - col0 FROM tab0 AS cor0
----
NULL
-134
NULL
-3012
NULL
-864

skipif mysql # not compatible
query II rowsort label-1468
SELECT DISTINCT - col2 / - + CAST ( NULL AS INTEGER ) * - + col1 AS col0, - col1 * + 37 + - col0 FROM tab0 AS cor0
----
NULL
-134
NULL
-3012
NULL
-864

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

query I rowsort
SELECT - + col2 * + 73 + + + 43 * 9 * col2 + + 5 FROM tab1 AS cor0
----
18531
21357
30149

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - 58 >= - col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 IS NULL OR NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 * + 56 FROM tab2
----
1288
2240
3248

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

skipif mysql # not compatible
query I rowsort label-1475
SELECT DISTINCT + COUNT ( ALL CAST ( NULL AS INTEGER ) ) FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1476
SELECT + 70 DIV - ( + 34 ) AS col1 FROM tab2
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-1476
SELECT + 70 / - ( + 34 ) AS col1 FROM tab2
----
-2
-2
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1477
SELECT - - col2 + 59, - 79 FROM tab0 AS cor0 WHERE 36 NOT IN ( - - 12 * - ( col2 ), 14 + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query II rowsort label-1477
SELECT - - col2 + 59, - 79 FROM tab0 AS cor0 WHERE 36 NOT IN ( - - 12 * - ( col2 ), 14 + + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1478
SELECT - MIN( + - col0 ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-1478
SELECT - MIN ( + - col0 ) AS col2 FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1479
SELECT DISTINCT SUM( ALL + - col0 ) FROM tab0 cor0 WHERE + col0 * + 74 > col2 - - - col2
----
-199

skipif mysql # not compatible
query I rowsort label-1479
SELECT DISTINCT SUM ( ALL + - col0 ) FROM tab0 cor0 WHERE + col0 * + 74 > col2 - - - col2
----
-199

query I rowsort
SELECT DISTINCT + col0 + + - col2 * - col1 * - 47 - 65 AS col2 FROM tab2 AS cor0
----
-144761
-182632
-55150

query I rowsort
SELECT 13 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1482
SELECT + COUNT ( * ) + + + COUNT ( * ) col1 FROM tab0
----
6

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

query I rowsort
SELECT ALL - + col0 + col0 + + col1 AS col0 FROM tab0 cor0
----
1
21
81

query I rowsort
SELECT + - 63 AS col1 FROM tab0 AS cor0
----
-63
-63
-63

query II rowsort
SELECT - col2 AS col0, 74 + + col0 * + + col1 FROM tab2
----
-23
2420
-40
5002
-58
5099

query II rowsort
SELECT DISTINCT 32 AS col0, 54 FROM tab0
----
32
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1488
SELECT + CAST( - ( 80 ) AS DECIMAL ) * + 64 * CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1488
SELECT + CAST ( - ( 80 ) AS REAL ) * + 64 * CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT + 8 * 33 FROM tab0
----
264
264
264

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1491
SELECT 27, - ( + - COUNT( ALL col2 ) ) - + COUNT( * ) AS col1 FROM tab1
----
27
0

skipif mysql # not compatible
query II rowsort label-1491
SELECT 27, - ( + - COUNT ( ALL col2 ) ) - + COUNT ( * ) AS col1 FROM tab1
----
27
0

query I rowsort
SELECT DISTINCT - 56 * - 63 FROM tab1 cor0
----
3528

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 16 = NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1494
SELECT ALL col1 * + 69 AS col0, + col2 DIV col2 + col1 FROM tab1
----
3243
48
345
6
966
15

skipif mysql # not compatible
query II rowsort label-1494
SELECT ALL col1 * + 69 AS col0, + col2 / col2 + col1 FROM tab1
----
3243
48
345
6
966
15

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1497
SELECT + COUNT( * ) * + SUM( ALL + col0 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
681

skipif mysql # not compatible
query I rowsort label-1497
SELECT + COUNT ( * ) * + SUM ( ALL + col0 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
681

query II rowsort
SELECT DISTINCT 75 * + + col2 AS col1, col2 + - col1 AS col1 FROM tab1 AS cor0
----
4425
54
5100
21
7200
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1499
SELECT + - CAST( - AVG ( ALL - + 2 ) AS SIGNED ) FROM tab1 cor0
----
-2

skipif mysql # not compatible
query I rowsort label-1499
SELECT + - CAST ( - AVG ( ALL - + 2 ) AS INTEGER ) FROM tab1 cor0
----
-2

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

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

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

skipif mysql # not compatible
query I rowsort label-1502
SELECT - COUNT ( * ) / + 8 FROM tab0 AS cor0
----
0

query II rowsort
SELECT ALL col2 * + - col0, col1 * + col0 AS col1 FROM tab1 AS cor0
----
-4896
714
-5015
425
-6188
4277

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1504
SELECT + CAST( + CAST( 64 AS DECIMAL ) AS SIGNED ) * + 85 * + 90 + - 72 FROM tab1 AS cor0
----
489528
489528
489528

skipif mysql # not compatible
query I rowsort label-1504
SELECT + CAST ( + CAST ( 64 AS REAL ) AS INTEGER ) * + 85 * + 90 + - 72 FROM tab1 AS cor0
----
489528
489528
489528

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1505
SELECT CAST( NULL AS SIGNED ), - 71 + 61 col1 FROM tab0
----
NULL
-10
NULL
-10
NULL
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1505
SELECT CAST ( NULL AS INTEGER ), - 71 + 61 col1 FROM tab0
----
NULL
-10
NULL
-10
NULL
-10

query I rowsort
SELECT ALL - 23 FROM tab0 WHERE ( NULL > + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1507
SELECT ALL col1 DIV - - 12 AS col2 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-1507
SELECT ALL col1 / - - 12 AS col2 FROM tab0
----
0
1
6

query I rowsort
SELECT ALL + - 65 + + col0 AS col1 FROM tab2 AS cor0
----
-1
-19
10

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

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

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

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

query I rowsort
SELECT ALL col2 + - col2 + + - 81 * ( - - col2 ) AS col2 FROM tab0 cor0
----
-3807
-8019
-810

query I rowsort
SELECT - ( - 50 ) * + col2 * - + col2 * + - 18 - - + col2 * 13 FROM tab1 AS cor0
----
3133667
4162484
8295648

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT col0 BETWEEN + col0 AND - - 5 * + col2 + - - 57
----

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

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

query I rowsort
SELECT + col0 * 72 + + 93 FROM tab0 AS cor0
----
1173
6357
7077

query I rowsort
SELECT - - col2 * + 20 + - + col2 FROM tab2 AS cor0
----
1102
437
760

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1522
SELECT ALL SUM( DISTINCT CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1522
SELECT ALL SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 <= - 58 + col1
----

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

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

query I rowsort
SELECT 9 * - 39 FROM tab2 cor0
----
-351
-351
-351

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1528
SELECT + COUNT( 50 ) FROM tab1, tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-1528
SELECT + COUNT ( 50 ) FROM tab1, tab1 cor0
----
9

query I rowsort
SELECT + 94 * 18 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1692
1692
1692

onlyif mysql # aggregate syntax: 
query I rowsort label-1530
SELECT DISTINCT + + SUM( ALL + 77 ) FROM tab0 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-1530
SELECT DISTINCT + + SUM ( ALL + 77 ) FROM tab0 AS cor0
----
231

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1531
SELECT + - COUNT( * ) + 79 DIV COUNT( * ) AS col2 FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-1531
SELECT + - COUNT ( * ) + 79 / COUNT ( * ) AS col2 FROM tab2 cor0
----
23

query I rowsort
SELECT ALL - 66 + + + 49 - - col0 FROM tab1 cor0
----
34
68
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 2 + - col0 col1 FROM tab0 cor0
----
-13
-85
-95

query I rowsort
SELECT DISTINCT + 7 * 35 AS col0 FROM tab2 AS cor0
----
245

onlyif mysql # DIV for integer division: 
query I rowsort label-1535
SELECT 8 DIV col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1535
SELECT 8 / col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col1 + 69 * col0 * + 49 FROM tab2
----
155577
216461
253642

query I rowsort
SELECT ALL - ( + col1 ) * + col2 AS col2 FROM tab1
----
-1344
-295
-3196

onlyif mysql # DIV for integer division: 
query I rowsort label-1538
SELECT col1 DIV - ( + + 82 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1538
SELECT col1 / - ( + + 82 ) FROM tab2
----
0
0
0

query I rowsort
SELECT - col2 - col0 FROM tab1 WHERE - - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1540
SELECT DISTINCT 58 + COUNT( - col2 ) * - + 64 col2 FROM tab1
----
-134

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1540
SELECT DISTINCT 58 + COUNT ( - col2 ) * - + 64 col2 FROM tab1
----
-134

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

skipif mysql # not compatible
query I rowsort label-1541
SELECT 98 / COUNT ( * ) AS col0 FROM tab2
----
32

query II rowsort
SELECT - col1 + - col2 + + 36, - col2 - + col0 AS col1 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL - + 99 + 7 FROM tab0 AS cor0
----
-92
-92
-92

query I rowsort
SELECT - + 45 FROM tab2 AS cor0 WHERE col1 <= - - col2
----

query I rowsort
SELECT - col0 * 14 AS col1 FROM tab2 cor0 WHERE NULL < - 5
----

query I rowsort
SELECT ALL - ( + + col0 ) FROM tab0 WHERE NULL IS NULL
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-1547
SELECT DISTINCT - col1 DIV + 36 AS col1 FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-1547
SELECT DISTINCT - col1 / + 36 AS col1 FROM tab2
----
-1
-2

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

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

query II rowsort
SELECT - + col1 * + 13 + - 19, - col2 FROM tab2 AS cor0 WHERE NOT - ( - + col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1550
SELECT 21 * col2 * col2 FROM tab2 cor0 WHERE NOT - CAST( - col2 AS SIGNED ) * - col0 + 24 - + + col2 / 62 - - col0 <> ( NULL )
----

skipif mysql # not compatible
query I rowsort label-1550
SELECT 21 * col2 * col2 FROM tab2 cor0 WHERE NOT - CAST ( - col2 AS INTEGER ) * - col0 + 24 - + + col2 / 62 - - col0 <> ( NULL )
----

query I rowsort
SELECT DISTINCT col2 * + 29 FROM tab1 cor0
----
1711
1972
2784

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

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

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

query II rowsort
SELECT DISTINCT - - 20, col0 AS col2 FROM tab0 AS cor0
----
20
15
20
87
20
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1556
SELECT 76 * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-1556
SELECT 76 * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-228

query II rowsort
SELECT ALL - col0, - col1 + - col0 AS col2 FROM tab1 cor0
----
-51
-65
-85
-90
-91
-138

query II rowsort
SELECT ALL + - col2, - col1 * - 42 AS col0 FROM tab2 AS cor0
----
-23
2142
-40
3234
-58
2814

query I rowsort
SELECT ALL col0 * - + col0 FROM tab1 AS cor0 WHERE + col1 - + 76 IS NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1561
SELECT col0 * CAST( + + col1 AS SIGNED ) FROM tab1
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-1561
SELECT col0 * CAST ( + + col1 AS INTEGER ) FROM tab1
----
425
4277
714

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

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

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

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

query I rowsort
SELECT + ( + - col1 ) FROM tab2 WHERE NOT - col0 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-1565
SELECT DISTINCT MIN ( col1 ) AS col1 FROM tab0 AS cor0
----
1

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 col2 FROM tab2 WHERE NULL IS NULL
----
67
67
67

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 AS col1, - col0 col0 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

query I rowsort
SELECT DISTINCT - 98 + + 82 AS col2 FROM tab0 AS cor0
----
-16

query I rowsort
SELECT DISTINCT - 68 + col1 + - col1 FROM tab2 cor0
----
-68

query I rowsort
SELECT ( 71 ) FROM tab2 AS cor0
----
71
71
71

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

query I rowsort
SELECT ALL + col2 + + 8 AS col2 FROM tab1 AS cor0
----
104
67
76

query II rowsort
SELECT ALL + 37 AS col1, 47 FROM tab0 AS cor0
----
37
47
37
47
37
47

query I rowsort
SELECT - col1 + - 12 AS col1 FROM tab0 AS cor0
----
-13
-33
-93

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT - + 39 <> col2 )
----

query I rowsort
SELECT - col2 + + + 90 AS col0 FROM tab2 AS cor0
----
32
50
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1580
SELECT 57 + - + MIN( - - col1 ) FROM tab0
----
56

skipif mysql # not compatible
query I rowsort label-1580
SELECT 57 + - + MIN ( - - col1 ) FROM tab0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1581
SELECT col1 * + - CAST( + CAST( - 85 AS SIGNED ) AS SIGNED ) + + - col1 AS col1 FROM tab1
----
1176
3948
420

skipif mysql # not compatible
query I rowsort label-1581
SELECT col1 * + - CAST ( + CAST ( - 85 AS INTEGER ) AS INTEGER ) + + - col1 AS col1 FROM tab1
----
1176
3948
420

query I rowsort
SELECT ALL 41 * + - col0 AS col0 FROM tab0
----
-3567
-3977
-615

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1584
SELECT DISTINCT + CAST( - 16 AS SIGNED ) + 2 + col2 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-1584
SELECT DISTINCT + CAST ( - 16 AS INTEGER ) + 2 + col2 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT ALL - SUM( DISTINCT + col1 ) AS col1 FROM tab2 WHERE NOT - 57 NOT BETWEEN - col2 + col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1585
SELECT ALL - SUM ( DISTINCT + col1 ) AS col1 FROM tab2 WHERE NOT - 57 NOT BETWEEN - col2 + col0 AND NULL
----
NULL

query I rowsort
SELECT + 95 FROM tab1 WHERE col0 IS NOT NULL
----
95
95
95

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 = 61
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 + col2 * - + col0 col1 FROM tab2 AS cor0
----
-2479
-4269
-977

query I rowsort
SELECT - - col0 + + 9 FROM tab0 AS cor0
----
106
24
96

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

query I rowsort
SELECT DISTINCT - 47 + 29 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-18

query I rowsort
SELECT ( col2 ) * + + col0 FROM tab2 AS cor0
----
1058
2560
4350

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

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

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

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

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

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

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

query I rowsort
SELECT ( + + col2 ) * + col0 AS col2 FROM tab0
----
705
870
9603

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

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

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

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

query I rowsort
SELECT DISTINCT - col1 * col1 * - - col0 FROM tab1 AS cor0
----
-201019
-2125
-9996

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1605
SELECT + 4 AS col2, - MIN( DISTINCT 5 ) AS col1 FROM tab0 AS cor0
----
4
-5

skipif mysql # not compatible
query II rowsort label-1605
SELECT + 4 AS col2, - MIN ( DISTINCT 5 ) AS col1 FROM tab0 AS cor0
----
4
-5

query I rowsort
SELECT col0 + + - 88 FROM tab1
----
-3
-37
3

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

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

query I rowsort
SELECT + 27 + + - col2 FROM tab2 AS cor0
----
-13
-31
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1609
SELECT + + COUNT( DISTINCT ( + 91 ) ) + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-1609
SELECT + + COUNT ( DISTINCT ( + 91 ) ) + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1610
SELECT + MIN( col1 ) + - 45 AS col0 FROM tab0 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-1610
SELECT + MIN ( col1 ) + - 45 AS col0 FROM tab0 AS cor0
----
-44

query I rowsort
SELECT col1 + - + col0 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT DISTINCT - + col2 + + ( + + col1 ) FROM tab0 cor0
----
-98
11
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1613
SELECT + MIN( - 23 ) AS col0 FROM tab0
----
-23

skipif mysql # not compatible
query I rowsort label-1613
SELECT + MIN ( - 23 ) AS col0 FROM tab0
----
-23

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1616
SELECT ( + + 30 ) * 61 col0, col0 * col0 DIV col2 AS col1 FROM tab0
----
1830
4
1830
756
1830
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1616
SELECT ( + + 30 ) * 61 col0, col0 * col0 / col2 AS col1 FROM tab0
----
1830
4
1830
756
1830
95

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

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

query I rowsort
SELECT DISTINCT col1 - - col0 AS col1 FROM tab2 WHERE NOT + ( - 50 ) IS NULL
----
141
142
97

query I rowsort
SELECT + 32 * + 63 AS col2 FROM tab0
----
2016
2016
2016

query I rowsort
SELECT - col1 - + 43 AS col2 FROM tab2
----
-110
-120
-94

query I rowsort
SELECT 49 - col0 * - col2 * + - 84 FROM tab1
----
-411215
-421211
-519743

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT - col2 IS NULL )
----

query I rowsort
SELECT - col1 * ( + ( + col0 ) ) FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT - ( 91 ) FROM tab1
----
-91
-91
-91

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1625
SELECT DISTINCT + 8 * - COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-72

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE 8 <> - + 26 + 50
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

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

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

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

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

query I rowsort
SELECT DISTINCT - 52 AS col1 FROM tab2 AS cor0 WHERE NOT 1 - col1 <= + 47
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1630
SELECT ALL 76, - ( MAX( ALL + col1 ) ) AS col1 FROM tab1 AS cor0
----
76
-47

skipif mysql # not compatible
query II rowsort label-1630
SELECT ALL 76, - ( MAX ( ALL + col1 ) ) AS col1 FROM tab1 AS cor0
----
76
-47

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( - 85 ), 50 col0 FROM tab0
----
-85
50

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1636
SELECT ALL 42 + MAX( - col0 ) AS col0 FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-1636
SELECT ALL 42 + MAX ( - col0 ) AS col0 FROM tab2
----
-4

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

query I rowsort
SELECT DISTINCT - 4 + col0 - col0 * + col1 FROM tab1 AS cor0
----
-344
-4190
-667

query I rowsort
SELECT col0 + + + 85 * + + 93 AS col1 FROM tab2 AS cor0
----
7951
7969
7980

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 71 * + col1 < - col1 AND col1 * + - col0 IS NULL
----

query I rowsort
SELECT ALL - 70 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1642
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1642
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + 42 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

onlyif mysql # aggregate syntax: 
query I rowsort label-1644
SELECT + MIN( 34 ) AS col1 FROM tab2 cor0
----
34

skipif mysql # not compatible
query I rowsort label-1644
SELECT + MIN ( 34 ) AS col1 FROM tab2 cor0
----
34

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

query I rowsort
SELECT col2 * 59 * 12 + + 38 AS col0 FROM tab1 AS cor0
----
41810
48182
68006

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

query I rowsort
SELECT ALL + 29 + col1 AS col2 FROM tab1 AS cor0
----
34
43
76

query I rowsort
SELECT 42 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT ALL - - 32 * + - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1650
SELECT ALL - - 32 * + - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL <> ( NULL )
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT ALL - 20 - - - MIN( DISTINCT + 11 ) + - COUNT( * ) * 4 FROM tab0 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-1652
SELECT ALL - 20 - - - MIN ( DISTINCT + 11 ) + - COUNT ( * ) * 4 FROM tab0 AS cor0
----
-43

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 66 col1, col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1655
SELECT DISTINCT COUNT( * ) * - + 70 * - - COUNT( * ) + 43 + 11 AS col2 FROM tab0 AS cor0
----
-576

skipif mysql # not compatible
query I rowsort label-1655
SELECT DISTINCT COUNT ( * ) * - + 70 * - - COUNT ( * ) + 43 + 11 AS col2 FROM tab0 AS cor0
----
-576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - col2 col1 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT + 42 + + 8 FROM tab0
----
50
50
50

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> + col2 * 74 + + col2
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1660
SELECT - ( - col2 ) DIV 20 FROM tab0
----
0
2
4

skipif mysql # not compatible
query I rowsort label-1660
SELECT - ( - col2 ) / 20 FROM tab0
----
0
2
4

query I rowsort
SELECT - 71 FROM tab2 WHERE + - col1 + 84 + + 81 NOT BETWEEN - 97 AND - 12
----
-71
-71
-71

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

query I rowsort
SELECT - 21 * col2 AS col1 FROM tab2 AS cor0
----
-1218
-483
-840

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

query II rowsort
SELECT + 5 AS col1, + 28 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 0e36a4216afbe28253e895a6f05ea067

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1666
SELECT DISTINCT 62 * - ( - - AVG ( - - CAST( NULL AS SIGNED ) ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1666
SELECT DISTINCT 62 * - ( - - AVG ( - - CAST ( NULL AS INTEGER ) ) ) FROM tab0 AS cor0
----
NULL

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1668
SELECT + - CAST( NULL AS DECIMAL ) + - 60 FROM tab0 AS cor0 WHERE NOT - 42 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1668
SELECT + - CAST ( NULL AS REAL ) + - 60 FROM tab0 AS cor0 WHERE NOT - 42 IS NULL
----
NULL
NULL
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1669
SELECT DISTINCT + SUM ( + CAST ( NULL AS INTEGER ) ) col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( col1 ) * - - 19 * - 4 col1, + 86 - - - 68 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1064
18
-3572
18
-380
18

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1672
SELECT DISTINCT - + COUNT( * ), - MIN( ALL + col2 ) + 59 AS col0 FROM tab2 AS cor0
----
-3
36

skipif mysql # not compatible
query II rowsort label-1672
SELECT DISTINCT - + COUNT ( * ), - MIN ( ALL + col2 ) + 59 AS col0 FROM tab2 AS cor0
----
-3
36

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

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

query I rowsort
SELECT ALL + 27 * + - 47 FROM tab1
----
-1269
-1269
-1269

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

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

query I rowsort
SELECT DISTINCT + ( col2 ) * + - col2 FROM tab2
----
-1600
-3364
-529

query I rowsort
SELECT ALL + col0 * - + 99 * col1 FROM tab2
----
-232254
-487872
-497475

query I rowsort
SELECT ALL + col0 + ( - col0 ) * 12 FROM tab1
----
-1001
-561
-935

onlyif mysql # DIV for integer division: 
query I rowsort label-1680
SELECT ALL - col1 DIV + 14 FROM tab0 AS cor0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-1680
SELECT ALL - col1 / + 14 FROM tab0 AS cor0
----
-1
-5
0

query II rowsort
SELECT col0 AS col1, + col2 * col0 FROM tab2 AS cor0
----
46
1058
64
2560
75
4350

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

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

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

skipif mysql # not compatible
query I rowsort label-1683
SELECT + COUNT ( * ) + + COUNT ( * ) + + CAST ( - - ( COUNT ( ALL - col2 ) ) AS INTEGER ) AS col0 FROM tab0
----
9

query II rowsort
SELECT 73 + col0, col0 AS col1 FROM tab2
----
119
46
137
64
148
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 * + + col2 * 99 col1, - col2 + 7 * - col2 col2 FROM tab2 WHERE NULL IS NULL
----
-104742
-184
-253440
-320
-430650
-464

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1686
SELECT + ( - - col1 ) + CAST( - 70 AS SIGNED ) col2 FROM tab2 AS cor0
----
-19
-3
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1686
SELECT + ( - - col1 ) + CAST ( - 70 AS INTEGER ) col2 FROM tab2 AS cor0
----
-19
-3
7

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1688
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col2 * - + col2 + col2 + + CAST( + - 93 AS SIGNED ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1688
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col2 * - + col2 + col2 + + CAST ( + - 93 AS INTEGER ) >= NULL
----
0

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1690
SELECT DISTINCT + col2 AS col1 FROM tab2 AS cor0 WHERE 44 / + CAST( NULL AS DECIMAL ) + - ( ( - - ( - col0 ) ) ) IS NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-1690
SELECT DISTINCT + col2 AS col1 FROM tab2 AS cor0 WHERE 44 / + CAST ( NULL AS REAL ) + - ( ( - - ( - col0 ) ) ) IS NULL
----
23
40
58

query I rowsort
SELECT ALL + 98 * - col0 - + 63 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
-5061
-8393
-8981

query I rowsort
SELECT DISTINCT + col0 * - col0 + + 0 FROM tab1
----
-2601
-7225
-8281

query III rowsort
SELECT * FROM tab2 WHERE + + col1 >= 33
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 5 * + col0 AS col2 FROM tab2
----
-230
-320
-375

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1695
SELECT ALL - CAST( NULL AS DECIMAL ) - - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1695
SELECT ALL - CAST ( NULL AS REAL ) - - COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + col2 - - 1 FROM tab2
----
24
41
59

query I rowsort
SELECT ( col2 ) - - + col0 AS col2 FROM tab2
----
104
133
69

query II rowsort
SELECT ALL 43 AS col0, - 53 FROM tab0
----
43
-53
43
-53
43
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1699
SELECT ALL COUNT( DISTINCT + 29 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1699
SELECT ALL COUNT ( DISTINCT + 29 ) FROM tab1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1700
SELECT col2 * + col2 DIV - col2 AS col0 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-1700
SELECT col2 * + col2 / - col2 AS col0 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1701
SELECT ALL - MAX( + 42 ) col2 FROM tab0
----
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1701
SELECT ALL - MAX ( + 42 ) col2 FROM tab0
----
-42

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

skipif mysql # not compatible
query I rowsort label-1702
SELECT DISTINCT MIN ( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( + 90 ) IS NOT NULL
----
NULL

query II rowsort
SELECT ALL col2 AS col0, + col0 AS col2 FROM tab2 cor0
----
23
46
40
64
58
75

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 4 = col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1706
SELECT ALL + + 8 * + COUNT( * ) FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-1706
SELECT ALL + + 8 * + COUNT ( * ) FROM tab1 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1707
SELECT 63 * 12 * + - COUNT( col2 ) AS col2 FROM tab0
----
-2268

skipif mysql # not compatible
query I rowsort label-1707
SELECT 63 * 12 * + - COUNT ( col2 ) AS col2 FROM tab0
----
-2268

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1708
SELECT + col2 / + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1708
SELECT + col2 / + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col2 IS NOT NULL
----

query I rowsort
SELECT col0 * - 20 FROM tab1
----
-1020
-1700
-1820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1711
SELECT ALL 49 * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1711
SELECT ALL 49 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1712
SELECT DISTINCT - MAX( - + col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1712
SELECT DISTINCT - MAX ( - + col1 ) FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 92 * - + col2 col0 FROM tab1
----
-5428
-6256
-8832

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT + COUNT( * ) AS col1 FROM tab0 WHERE + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1714
SELECT + COUNT ( * ) AS col1 FROM tab0 WHERE + col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT COUNT( * ) FROM tab2 WHERE - 92 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1715
SELECT COUNT ( * ) FROM tab2 WHERE - 92 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1716
SELECT DISTINCT + - col2 * + CAST( NULL AS SIGNED ) - ( + + col1 ) + - col0 + ( + + 63 ) - + col0 / + col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1716
SELECT DISTINCT + - col2 * + CAST ( NULL AS INTEGER ) - ( + + col1 ) + - col0 + ( + + 63 ) - + col0 / + col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 34 + col2 FROM tab2 cor0
----
57
74
92

query I rowsort
SELECT ALL + col1 AS col2 FROM tab2 cor0 WHERE col0 * + col0 / + col0 * - col1 + - 99 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1719
SELECT DISTINCT COUNT( + 74 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1719
SELECT DISTINCT COUNT ( + 74 ) FROM tab2
----
3

query I rowsort
SELECT ALL - + 84 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

query I rowsort
SELECT + col2 - - ( + 21 ) FROM tab1
----
117
80
89

query I rowsort
SELECT DISTINCT + ( 20 ) FROM tab2 AS cor0
----
20

query I rowsort
SELECT DISTINCT - 4 + 4 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT COUNT( * ) - MIN( ALL + col1 ) col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1724
SELECT COUNT ( * ) - MIN ( ALL + col1 ) col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1725
SELECT ALL + - COUNT( * ) AS col1, SUM( 55 ) FROM tab2 AS cor0
----
-3
165

skipif mysql # not compatible
query II rowsort label-1725
SELECT ALL + - COUNT ( * ) AS col1, SUM ( 55 ) FROM tab2 AS cor0
----
-3
165

onlyif mysql # aggregate syntax: 
query I rowsort label-1726
SELECT COUNT( * ) - - + 21 - 48 * - COUNT( col2 ) AS col1 FROM tab2 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-1726
SELECT COUNT ( * ) - - + 21 - 48 * - COUNT ( col2 ) AS col1 FROM tab2 AS cor0
----
168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1727
SELECT ALL 16 + - CAST( + 93 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-77
-77
-77

skipif mysql # not compatible
query I rowsort label-1727
SELECT ALL 16 + - CAST ( + 93 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-77
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1728
SELECT DISTINCT + + ( - COUNT( + + ( - col0 ) ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1728
SELECT DISTINCT + + ( - COUNT ( + + ( - col0 ) ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1729
SELECT - AVG ( DISTINCT - - CAST( NULL AS SIGNED ) ) + + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1729
SELECT - AVG ( DISTINCT - - CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + 73 - + - 82 + - 46 * + + col0 AS col1 FROM tab2 AS cor0
----
-1961
-2789
-3295

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1731
SELECT - + 11 * col0 * + col2 * - col0 - CAST( + + col1 AS SIGNED ) + + 50 AS col2 FROM tab1 AS cor0
----
2746692
4689070
6194191

skipif mysql # not compatible
query I rowsort label-1731
SELECT - + 11 * col0 * + col2 * - col0 - CAST ( + + col1 AS INTEGER ) + + 50 AS col2 FROM tab1 AS cor0
----
2746692
4689070
6194191

query I rowsort
SELECT ALL - col2 - - col2 + col0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-1733
SELECT ALL 22 DIV col1 FROM tab1
----
0
1
4

skipif mysql # not compatible
query I rowsort label-1733
SELECT ALL 22 / col1 FROM tab1
----
0
1
4

query I rowsort
SELECT ALL - 9 * - col1 FROM tab0 WHERE NULL >= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 65 - col1 * + 28 * col0 * + + 90 * - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1736
SELECT + COUNT( * ) * + 27 AS col0 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-1736
SELECT + COUNT ( * ) * + 27 AS col0 FROM tab1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-1737
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT DISTINCT COUNT( * ) + + COUNT( * ) AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-1738
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1739
SELECT + + MAX( + - col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-1739
SELECT + + MAX ( + - col2 ) FROM tab1 AS cor0
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-1740
SELECT DISTINCT - + col0 + + 73 DIV - 8 FROM tab1 AS cor0
----
-100
-60
-94

skipif mysql # not compatible
query I rowsort label-1740
SELECT DISTINCT - + col0 + + 73 / - 8 FROM tab1 AS cor0
----
-100
-60
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-1741
SELECT DISTINCT + + COUNT( * ) AS col1, + 45 - + COUNT( * ) FROM tab1 AS cor0
----
3
42

skipif mysql # not compatible
query II rowsort label-1741
SELECT DISTINCT + + COUNT ( * ) AS col1, + 45 - + COUNT ( * ) FROM tab1 AS cor0
----
3
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col0 col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1743
SELECT DISTINCT - 84, CAST( + - COUNT( * ) AS SIGNED ) col0 FROM tab0 AS cor0
----
-84
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1743
SELECT DISTINCT - 84, CAST ( + - COUNT ( * ) AS INTEGER ) col0 FROM tab0 AS cor0
----
-84
-3

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT 71 / - + 46 + col2 + + + col2 > - 17
----

query I rowsort
SELECT + - 1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1746
SELECT + 40 DIV - col2 AS col1 FROM tab0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-1746
SELECT + 40 / - col2 AS col1 FROM tab0
----
-4
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1747
SELECT DISTINCT + SUM( + col0 ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
230

skipif mysql # not compatible
query I rowsort label-1747
SELECT DISTINCT + SUM ( + col0 ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
230

query I rowsort
SELECT ALL col1 + ( - col2 ) * + + 50 FROM tab1 cor0
----
-2945
-3353
-4786

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1749
SELECT DISTINCT + CAST( - - col1 AS SIGNED ) * + col0 + - + col1 + + col2 + - col0 * - - col2 AS col1, + col1 AS col2 FROM tab2 cor0
----
1260
51
2331
77
666
67

skipif mysql # not compatible
query II rowsort label-1749
SELECT DISTINCT + CAST ( - - col1 AS INTEGER ) * + col0 + - + col1 + + col2 + - col0 * - - col2 AS col1, + col1 AS col2 FROM tab2 cor0
----
1260
51
2331
77
666
67

onlyif mysql # DIV for integer division: 
query I rowsort label-1750
SELECT ALL 26 DIV - - col1 * - 30 + + 3 FROM tab2
----
3
3
3

skipif mysql # not compatible
query I rowsort label-1750
SELECT ALL 26 / - - col1 * - 30 + + 3 FROM tab2
----
3
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 61 col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query II rowsort
SELECT + 73, + col1 AS col0 FROM tab1 cor0
----
73
14
73
47
73
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN + col0 * col0 AND NULL
----

query I rowsort
SELECT ALL ( + 51 ) FROM tab2 cor0
----
51
51
51

query I rowsort
SELECT DISTINCT - col2 * - 15 AS col2 FROM tab1 AS cor0
----
1020
1440
885

query II rowsort
SELECT 66 AS col2, 74 * + col2 AS col2 FROM tab1 AS cor0 WHERE NOT 50 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * + 2 AS col2 FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 WHERE ( - col0 * + - ( - - col1 ) - - + 30 ) IS NOT NULL
----
46
64
75

query II rowsort
SELECT DISTINCT + col2 AS col0, - 41 FROM tab2
----
23
-41
40
-41
58
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT ALL MAX( ALL + - col0 ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-1760
SELECT ALL MAX ( ALL + - col0 ) AS col1 FROM tab1
----
-51

query II rowsort
SELECT + col0, - 33 + - col0 AS col2 FROM tab1
----
51
-84
85
-118
91
-124

query I rowsort
SELECT - + col2 * + col1 * 38 FROM tab2 AS cor0
----
-117040
-147668
-44574

query II rowsort
SELECT DISTINCT + 64, col1 FROM tab2 AS cor0
----
64
51
64
67
64
77

query I rowsort
SELECT ALL + - col2 * - 46 AS col2 FROM tab0 AS cor0 WHERE 86 * - - col2 IS NULL
----

query I rowsort
SELECT + ( + + 67 ) AS col0 FROM tab0 AS cor0
----
67
67
67

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 61 + 61 IS NULL
----

query I rowsort
SELECT + ( - col0 ) * - 63 FROM tab2 AS cor0
----
2898
4032
4725

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT DISTINCT - ( + - COUNT( * ) ) + 63 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-1768
SELECT DISTINCT - ( + - COUNT ( * ) ) + 63 FROM tab1 AS cor0
----
66

query I rowsort
SELECT ( + + col2 ) AS col2 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1770
SELECT - + CAST( + + COUNT( * ) AS SIGNED ), MIN( DISTINCT col1 ) AS col0 FROM tab1 AS cor0
----
-3
5

skipif mysql # not compatible
query II rowsort label-1770
SELECT - + CAST ( + + COUNT ( * ) AS INTEGER ), MIN ( DISTINCT col1 ) AS col0 FROM tab1 AS cor0
----
-3
5

query I rowsort
SELECT + ( + + ( + col0 ) ) AS col1 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1772
SELECT DISTINCT col1 + - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1772
SELECT DISTINCT col1 + - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1773
SELECT + col0 DIV - + col1 + + CAST( - 56 AS SIGNED ) DIV col1 FROM tab1
----
-2
-28
-7

skipif mysql # not compatible
query I rowsort label-1773
SELECT + col0 / - + col1 + + CAST ( - 56 AS INTEGER ) / col1 FROM tab1
----
-2
-28
-7

query I rowsort
SELECT DISTINCT 3 AS col0 FROM tab1 WHERE NULL IS NULL
----
3

query II rowsort
SELECT col2 AS col1, + col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1776
SELECT DISTINCT + ( + 79 ) - - CAST( NULL AS SIGNED ) AS col0, col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-1776
SELECT DISTINCT + ( + 79 ) - - CAST ( NULL AS INTEGER ) AS col0, col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1777
SELECT ALL * FROM tab2 WHERE NOT ( CAST( NULL AS DECIMAL ) ) NOT BETWEEN + col0 + + 12 AND - col2
----

skipif mysql # not compatible
query III rowsort label-1777
SELECT ALL * FROM tab2 WHERE NOT ( CAST ( NULL AS REAL ) ) NOT BETWEEN + col0 + + 12 AND - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1778
SELECT DISTINCT COUNT( * ) DIV 87 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1778
SELECT DISTINCT COUNT ( * ) / 87 FROM tab0
----
0

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) < ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT + COUNT( * ) FROM tab1 WHERE + 27 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1780
SELECT + COUNT ( * ) FROM tab1 WHERE + 27 <= NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1781
SELECT - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1781
SELECT - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1782
SELECT - col1 DIV - 86 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1782
SELECT - col1 / - 86 FROM tab0
----
0
0
0

query I rowsort
SELECT 98 * 29 + 87 AS col1 FROM tab2
----
2929
2929
2929

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1784
SELECT + 84 DIV SUM( col0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1784
SELECT + 84 / SUM ( col0 ) FROM tab2
----
0

query I rowsort
SELECT - 74 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1786
SELECT ALL COUNT( * ) DIV - 50 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1786
SELECT ALL COUNT ( * ) / - 50 AS col2 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1787
SELECT ALL + ( + col0 ) DIV + col1 FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-1787
SELECT ALL + ( + col0 ) / + col1 FROM tab1
----
1
17
3

query III rowsort
SELECT * FROM tab0 WHERE col2 - 25 * + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1789
SELECT COUNT( * ) - SUM( 8 ) FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-1789
SELECT COUNT ( * ) - SUM ( 8 ) FROM tab2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1790
SELECT DISTINCT + 77 * - COUNT( * ) + - COUNT( * ) FROM tab1
----
-234

skipif mysql # not compatible
query I rowsort label-1790
SELECT DISTINCT + 77 * - COUNT ( * ) + - COUNT ( * ) FROM tab1
----
-234

onlyif mysql # aggregate syntax: 
query I rowsort label-1791
SELECT 34 - MIN( ALL - 50 + 56 ) * COUNT( 57 + + col0 ) FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-1791
SELECT 34 - MIN ( ALL - 50 + 56 ) * COUNT ( 57 + + col0 ) FROM tab1
----
16

query I rowsort
SELECT DISTINCT col0 + + 96 * + 79 FROM tab1 WHERE ( NULL ) BETWEEN col0 AND ( NULL )
----

query I rowsort
SELECT DISTINCT + ( - col1 ) * - ( col2 ) + col0 * + col0 AS col0 FROM tab1
----
11477
3945
7520

query I rowsort
SELECT DISTINCT + AVG ( DISTINCT col0 ) FROM tab0 WHERE NOT col0 NOT IN ( + col2 * 21 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1795
SELECT DISTINCT col1 * + col2 AS col0 FROM tab0 WHERE NOT ( 63 / CAST( col1 * col0 AS SIGNED ) + + col1 ) <= col0 * 92
----

skipif mysql # not compatible
query I rowsort label-1795
SELECT DISTINCT col1 * + col2 AS col0 FROM tab0 WHERE NOT ( 63 / CAST ( col1 * col0 AS INTEGER ) + + col1 ) <= col0 * 92
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) <= ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE + col1 <> 2 - + 33
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NULL <> ( + 81 - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT DISTINCT ( - MIN( col2 ) ) + 2 FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-1799
SELECT DISTINCT ( - MIN ( col2 ) ) + 2 FROM tab0
----
-8

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + 96 ) >= ( - col2 * 92 + col1 * - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-1801
SELECT * FROM tab1 WHERE col0 DIV - 73 IN ( ( - 1 ) * CAST( col2 AS SIGNED ) + col2 )
----
51
14
96

skipif mysql # not compatible
query III rowsort label-1801
SELECT * FROM tab1 WHERE col0 / - 73 IN ( ( - 1 ) * CAST ( col2 AS INTEGER ) + col2 )
----
51
14
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 BETWEEN + 42 AND col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 + 99 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
150
166
176

query I rowsort
SELECT - 47 * col2 AS col1 FROM tab0 cor0
----
-2209
-4653
-470

query I rowsort
SELECT DISTINCT - ( - ( 19 ) ) AS col0 FROM tab2 WHERE NULL BETWEEN - col0 + 3 * + col0 AND ( - col2 * - 4 )
----

query I rowsort
SELECT DISTINCT + 76 * col1 AS col0 FROM tab0
----
1596
6156
76

query I rowsort
SELECT col0 + + 45 AS col1 FROM tab0
----
132
142
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1808
SELECT - COUNT( * ) + + MIN( DISTINCT - col0 + 96 ) AS col1 FROM tab1 cor0
----
2

skipif mysql # not compatible
query I rowsort label-1808
SELECT - COUNT ( * ) + + MIN ( DISTINCT - col0 + 96 ) AS col1 FROM tab1 cor0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1809
SELECT col1 DIV 99 col0 FROM tab2 AS cor0 WHERE 17 NOT IN ( 33 )
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1809
SELECT col1 / 99 col0 FROM tab2 AS cor0 WHERE 17 NOT IN ( 33 )
----
0
0
0

query I rowsort
SELECT ALL + col0 * - col2 + 42 FROM tab0 AS cor0
----
-663
-828
-9561

onlyif mysql # aggregate syntax: 
query I rowsort label-1811
SELECT DISTINCT - COUNT( * ) + 69 AS col1 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-1811
SELECT DISTINCT - COUNT ( * ) + 69 AS col1 FROM tab2 AS cor0
----
66

query I rowsort
SELECT - col2 + 19 AS col0 FROM tab1 AS cor0
----
-40
-49
-77

query I rowsort
SELECT ALL - 67 + - col2 * col1 FROM tab1 AS cor0 WHERE + 65 IS NULL
----

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE ( + col0 + - col2 * - 5 ) <> + col1
----
46
64
75

query I rowsort
SELECT ALL col1 * - 22 * col0 + + 92 FROM tab0
----
-2042
-26638
-40102

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - - ( + col2 ) col0 FROM tab2
----
104
133
69

query I rowsort
SELECT 95 FROM tab1 WHERE + col2 < col0
----
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT COUNT( * ) AS col2 FROM tab0 WHERE ( + col0 + 73 * 53 ) NOT IN ( - ( - col0 ) + - col2 * - 34 )
----
3

skipif mysql # not compatible
query I rowsort label-1818
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE ( + col0 + 73 * 53 ) NOT IN ( - ( - col0 ) + - col2 * - 34 )
----
3

query I rowsort
SELECT DISTINCT 50 + + 43 * col2 FROM tab0 WHERE NOT NULL IN ( + ( + col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1820
SELECT + COUNT( ALL + ( + col0 ) ) - - 44 * 27 FROM tab0
----
1191

skipif mysql # not compatible
query I rowsort label-1820
SELECT + COUNT ( ALL + ( + col0 ) ) - - 44 * 27 FROM tab0
----
1191

query I rowsort
SELECT - 68 FROM tab1 WHERE NULL NOT IN ( + col2 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT IN ( col1 ) AND 58 >= NULL
----

query I rowsort
SELECT DISTINCT 99 + - 20 AS col1 FROM tab2 AS cor0
----
79

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 <> 4
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 67 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-67

query I rowsort
SELECT col2 * - + 98 FROM tab2
----
-2254
-3920
-5684

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col0 BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 BETWEEN 19 AND + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 3 ) col0 FROM tab0
----
-3

query I rowsort
SELECT - - 25 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT - ( - - col0 ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + ( + + 97 ) FROM tab0 AS cor0
----
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1834
SELECT ALL + SUM( ALL + col1 ) col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1834
SELECT ALL + SUM ( ALL + col1 ) col0 FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT DISTINCT + + COUNT( * ) + COUNT( * ) FROM tab0 AS cor0 WHERE NOT + 96 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1835
SELECT DISTINCT + + COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + 96 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1836
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE ( - + CAST( - col1 AS SIGNED ) ) + + 46 * - col0 IN ( col1 )
----

skipif mysql # not compatible
query I rowsort label-1836
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE ( - + CAST ( - col1 AS INTEGER ) ) + + 46 * - col0 IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1837
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE - 41 - col1 * + ( col1 ) <> - col0
----
3

skipif mysql # not compatible
query I rowsort label-1837
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE - 41 - col1 * + ( col1 ) <> - col0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= col2 * col2 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT SUM( ALL + - col0 ) col1 FROM tab1
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1839
SELECT SUM ( ALL + - col0 ) col1 FROM tab1
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT DISTINCT MAX( DISTINCT + - 71 ) FROM tab0
----
-71

skipif mysql # not compatible
query I rowsort label-1840
SELECT DISTINCT MAX ( DISTINCT + - 71 ) FROM tab0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT ( - + MIN( ALL 82 ) ) FROM tab0
----
-82

skipif mysql # not compatible
query I rowsort label-1841
SELECT ( - + MIN ( ALL 82 ) ) FROM tab0
----
-82

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( - col0 )
----

query I rowsort
SELECT + + col1 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
21
81

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 30 ) <= ( NULL )
----

query I rowsort
SELECT - 71 + + col2 - - 13 FROM tab1 AS cor0
----
1
10
38

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1846
SELECT DISTINCT col1 FROM tab2 cor0 WHERE NULL IN ( - col0 + + - CAST( NULL AS DECIMAL ) * - - col1 / col1 )
----

skipif mysql # not compatible
query I rowsort label-1846
SELECT DISTINCT col1 FROM tab2 cor0 WHERE NULL IN ( - col0 + + - CAST ( NULL AS REAL ) * - - col1 / col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 col0 FROM tab2 WHERE NULL > - col0 * 2
----

query I rowsort
SELECT ALL - 4 + - 12 FROM tab1 AS cor0
----
-16
-16
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT DISTINCT + - COUNT( * ) + - COUNT( * ) AS col2 FROM tab1 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-1849
SELECT DISTINCT + - COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1 cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT ALL + - COUNT( * ) + - SUM( DISTINCT - col1 ) FROM tab0 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-1850
SELECT ALL + - COUNT ( * ) + - SUM ( DISTINCT - col1 ) FROM tab0 AS cor0
----
100

query I rowsort
SELECT ALL + 28 * - ( + col1 ) + col2 - col2 * col0 FROM tab1 AS cor0
----
-5096
-5192
-7436

onlyif mysql # DIV for integer division: 
query I rowsort label-1852
SELECT - 42 DIV - - col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1852
SELECT - 42 / - - col0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE - ( + col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col0 - - + col1 AS col1 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
-66
-96
66

query I rowsort
SELECT ALL + 66 - 15 FROM tab1 AS cor0
----
51
51
51

query I rowsort
SELECT col0 * - col1 * + - 25 + - 76 * col0 * col2 FROM tab2 AS cor0
----
-204975
-21758
-71360

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT + COUNT( * ) + + - MAX( + 95 ) AS col2 FROM tab0
----
-92

skipif mysql # not compatible
query I rowsort label-1857
SELECT + COUNT ( * ) + + - MAX ( + 95 ) AS col2 FROM tab0
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-1858
SELECT DISTINCT + col0 - - 97 DIV + - ( + - 90 ) AS col1 FROM tab0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-1858
SELECT DISTINCT + col0 - - 97 / + - ( + - 90 ) AS col1 FROM tab0
----
16
88
98

query III rowsort
SELECT * FROM tab1 WHERE ( NOT ( NULL ) <> NULL )
----

query I rowsort
SELECT - 76 + - col2 AS col1 FROM tab1
----
-135
-144
-172

onlyif mysql # DIV for integer division: 
query I rowsort label-1861
SELECT DISTINCT col1 DIV 4 AS col0 FROM tab2
----
12
16
19

skipif mysql # not compatible
query I rowsort label-1861
SELECT DISTINCT col1 / 4 AS col0 FROM tab2
----
12
16
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT DISTINCT MIN( col1 ) AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-1862
SELECT DISTINCT MIN ( col1 ) AS col1 FROM tab2
----
51

query III rowsort
SELECT * FROM tab1 WHERE ( col0 + - col0 ) = NULL
----

query I rowsort
SELECT DISTINCT + 86 * 77 FROM tab0 WHERE NOT col0 / + col2 NOT IN ( - + 64 )
----

query III rowsort
SELECT * FROM tab1 WHERE - col1 NOT IN ( - - 89 + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col0 + + 36 + - 47 AS col0 FROM tab2 AS cor0
----
-57
-75
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-1867
SELECT + + 38, + MIN( ALL + col1 ) AS col1 FROM tab1 cor0
----
38
5

skipif mysql # not compatible
query II rowsort label-1867
SELECT + + 38, + MIN ( ALL + col1 ) AS col1 FROM tab1 cor0
----
38
5

query I rowsort
SELECT ALL col0 + col1 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1869
SELECT 19 * - + CAST( NULL AS SIGNED ) * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1869
SELECT 19 * - + CAST ( NULL AS INTEGER ) * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE - 51 NOT IN ( + 92 )
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1871
SELECT - col1 * + CAST( NULL AS SIGNED ) AS col2, col2 AS col0 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-1871
SELECT - col1 * + CAST ( NULL AS INTEGER ) AS col2, col2 AS col0 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT SUM( DISTINCT + col1 ) * + COUNT( * ) AS col0 FROM tab0 cor0
----
309

skipif mysql # not compatible
query I rowsort label-1872
SELECT SUM ( DISTINCT + col1 ) * + COUNT ( * ) AS col0 FROM tab0 cor0
----
309

onlyif mysql # DIV for integer division: 
query I rowsort label-1873
SELECT - col2 DIV + ( - 17 ) FROM tab2 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-1873
SELECT - col2 / + ( - 17 ) FROM tab2 AS cor0
----
1
2
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1874
SELECT + ( - col1 ) DIV - col0 AS col1 FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-1874
SELECT + ( - col1 ) / - col0 AS col1 FROM tab0 AS cor0
----
0
0
5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( col2 ) AND col2
----

query II rowsort
SELECT - col0 * - col2 AS col1, - 37 * + 37 * ( - 26 ) * col0 * - col2 + + col2 AS col1 FROM tab1 AS cor0
----
4896
-174268128
5015
-178503851
6188
-220255604

onlyif mysql # aggregate syntax: 
query II rowsort label-1877
SELECT DISTINCT + 53 * 69 AS col0, SUM( ALL + + col0 ) FROM tab0 AS cor0
----
3657
199

skipif mysql # not compatible
query II rowsort label-1877
SELECT DISTINCT + 53 * 69 AS col0, SUM ( ALL + + col0 ) FROM tab0 AS cor0
----
3657
199

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1878
SELECT DISTINCT CAST( - SUM( DISTINCT + col1 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-1878
SELECT DISTINCT CAST ( - SUM ( DISTINCT + col1 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-66

query II rowsort
SELECT DISTINCT col2, 46 FROM tab2
----
23
46
40
46
58
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1880
SELECT DISTINCT col0 AS col2, CAST( NULL AS SIGNED ) * col0 - col2 * 34 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-1880
SELECT DISTINCT col0 AS col2, CAST ( NULL AS INTEGER ) * col0 - col2 * 34 FROM tab2
----
46
NULL
64
NULL
75
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1882
SELECT * FROM tab2 WHERE NOT - ( - CAST( NULL AS SIGNED ) ) BETWEEN - col2 * + 49 AND - + col2
----

skipif mysql # not compatible
query III rowsort label-1882
SELECT * FROM tab2 WHERE NOT - ( - CAST ( NULL AS INTEGER ) ) BETWEEN - col2 * + 49 AND - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1883
SELECT ALL 66 * + COUNT( * ) FROM tab0
----
198

skipif mysql # not compatible
query I rowsort label-1883
SELECT ALL 66 * + COUNT ( * ) FROM tab0
----
198

query II rowsort
SELECT - 70 AS col1, col2 + - 38 AS col0 FROM tab0
----
-70
-28
-70
61
-70
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT DISTINCT 72 + + + 33 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-1885
SELECT DISTINCT 72 + + + 33 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
171

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL IS NOT NULL )
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT DISTINCT - + 60 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-60

query I rowsort
SELECT - - ( - + col2 ) AS col0 FROM tab2 WHERE NULL IS NULL
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 IN ( - col2, col2 + col2 )
----

query I rowsort
SELECT DISTINCT + 78 + + col0 * + 67 AS col1 FROM tab2 cor0
----
3160
4366
5103

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 * + 50 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1892
SELECT DISTINCT - + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= - - col0 - + col1 + - + 11
----
0

skipif mysql # not compatible
query I rowsort label-1892
SELECT DISTINCT - + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= - - col0 - + col1 + - + 11
----
0

query I rowsort
SELECT ALL 55 - col1 * - + 10 + - + col0 FROM tab1
----
144
20
434

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1894
SELECT + 94 * - CAST( NULL AS SIGNED ) col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1894
SELECT + 94 * - CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 32 - - + 63 FROM tab0
----
95
95
95

query I rowsort
SELECT col0 - + 89 FROM tab0
----
-2
-74
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT ALL COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + col1 * + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1897
SELECT ALL COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + col1 * + col1 IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + 93 + - + col1 )
----

query I rowsort
SELECT DISTINCT + 53 * + col2 * - col1 AS col0 FROM tab0 AS cor0
----
-11130
-201771
-5247

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col0 AND - - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1901
SELECT + 16 * COUNT( * ) AS col1, 5 FROM tab0 AS cor0 WHERE NOT + 32 + - col2 IS NULL
----
48
5

skipif mysql # not compatible
query II rowsort label-1901
SELECT + 16 * COUNT ( * ) AS col1, 5 FROM tab0 AS cor0 WHERE NOT + 32 + - col2 IS NULL
----
48
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1902
SELECT DISTINCT + MAX( col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-1902
SELECT DISTINCT + MAX ( col2 ) FROM tab1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1903
SELECT DISTINCT - + col0 FROM tab0 WHERE col2 + + CAST( NULL AS SIGNED ) IS NULL
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-1903
SELECT DISTINCT - + col0 FROM tab0 WHERE col2 + + CAST ( NULL AS INTEGER ) IS NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-1904
SELECT ALL - COUNT( * ), ( - COUNT( * ) ) AS col0 FROM tab1
----
-3
-3

skipif mysql # not compatible
query II rowsort label-1904
SELECT ALL - COUNT ( * ), ( - COUNT ( * ) ) AS col0 FROM tab1
----
-3
-3

query II rowsort
SELECT ALL + col2 AS col1, - 43 * col2 FROM tab2
----
23
-989
40
-1720
58
-2494

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT ( col1 ) <= col0
----

query II rowsort
SELECT ALL - ( + + col2 ), + ( + col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1908
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * + col1 - col2 + + - col0 * + - col1 * CAST( NULL AS SIGNED ) * col1 * + ( col2 ) BETWEEN col2 AND col2
----

skipif mysql # not compatible
query III rowsort label-1908
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * + col1 - col2 + + - col0 * + - col1 * CAST ( NULL AS INTEGER ) * col1 * + ( col2 ) BETWEEN col2 AND col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 98 - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1910
SELECT COUNT( * ) - + + AVG ( ALL + col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1910
SELECT COUNT ( * ) - + + AVG ( ALL + col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT DISTINCT + - MAX( DISTINCT + + col2 ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-1911
SELECT DISTINCT + - MAX ( DISTINCT + + col2 ) AS col1 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT - 99 * + col2 * - - col1 AS col0 FROM tab0 AS cor0
----
-20790
-376893
-9801

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1913
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 / - - 34 * + CAST( 25 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1913
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 / - - 34 * + CAST ( 25 AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1914
SELECT 82 * COUNT( * ), - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
246
NULL

skipif mysql # not compatible
query II rowsort label-1914
SELECT 82 * COUNT ( * ), - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
246
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 * - + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( + + col2 ) AS col0 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1917
SELECT ( + COUNT( * ) ) DIV - + MIN( - col2 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1917
SELECT ( + COUNT ( * ) ) / - + MIN ( - col2 ) AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT ALL - COUNT( ALL + + col2 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1918
SELECT ALL - COUNT ( ALL + + col2 ) FROM tab2
----
-3

query I rowsort
SELECT col2 + + - col1 AS col2 FROM tab1
----
21
54
82

query I rowsort
SELECT DISTINCT + 61 * + + col2 + - - col1 AS col0 FROM tab2
----
1454
2517
3605

query I rowsort
SELECT DISTINCT + col1 * + - col2 AS col1 FROM tab1 AS cor0
----
-1344
-295
-3196

query II rowsort
SELECT ALL ( col0 ) + + col1 AS col0, + col2 AS col2 FROM tab2 AS cor0
----
141
40
142
58
97
23

query I rowsort
SELECT - 91 + - + col0 FROM tab1 AS cor0
----
-142
-176
-182

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 55 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1925
SELECT + CAST( - 33 AS SIGNED ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-1925
SELECT + CAST ( - 33 AS INTEGER ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col0 + col1 IN ( 46 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + - col1 - - 18 + - 80 AS col2, + 10 FROM tab0 AS cor0
----
-143
10
-63
10
-83
10

query I rowsort
SELECT DISTINCT 37 - + col1 FROM tab2
----
-14
-30
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) + + 8 - - 70 + - 8 col0 FROM tab1
----
129
138
166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1930
SELECT ALL + CAST( - COUNT( - col2 ) AS SIGNED ) - - MIN( - - col1 ) AS col0 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-1930
SELECT ALL + CAST ( - COUNT ( - col2 ) AS INTEGER ) - - MIN ( - - col1 ) AS col0 FROM tab0
----
-2

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 > ( - 63 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 37 * 84 FROM tab2
----
3108
3108
3108

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1933
SELECT ALL - 36 * - col0 AS col0, + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
1656
NULL
2304
NULL
2700
NULL

skipif mysql # not compatible
query II rowsort label-1933
SELECT ALL - 36 * - col0 AS col0, + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
1656
NULL
2304
NULL
2700
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1934
SELECT + + ( - 3 ) DIV - COUNT( * ) - - + COUNT( * ) * 32 FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-1934
SELECT + + ( - 3 ) / - COUNT ( * ) - - + COUNT ( * ) * 32 FROM tab0 cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT - COUNT( ALL + 13 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1935
SELECT - COUNT ( ALL + 13 ) AS col2 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1936
SELECT + ( + - COUNT( * ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-1936
SELECT + ( + - COUNT ( * ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col0 AS col1, col1 col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1938
SELECT + SUM( - CAST( + col2 AS SIGNED ) ) FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-1938
SELECT + SUM ( - CAST ( + col2 AS INTEGER ) ) FROM tab2 cor0
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1939
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0 WHERE NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-1939
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0 WHERE NULL = NULL
----

query II rowsort
SELECT + col2 * + - col0 AS col1, - 19 FROM tab2 cor0 WHERE NOT col0 / - + col1 IS NULL
----
-1058
-19
-2560
-19
-4350
-19

query II rowsort
SELECT - + col2, 42 * col0 AS col2 FROM tab0 WHERE NOT - - 49 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL = - 41 * 34
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1943
SELECT DISTINCT 28 + COUNT( DISTINCT - col2 ) * - CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-1943
SELECT DISTINCT 28 + COUNT ( DISTINCT - col2 ) * - CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT COUNT( ALL + 37 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1944
SELECT COUNT ( ALL + 37 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE ( col0 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1945
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE ( col0 IS NULL )
----
0

query I rowsort
SELECT DISTINCT + 55 FROM tab2 AS cor0 WHERE + 28 + - ( - + 39 ) IN ( + - col0 * + col2 )
----

query I rowsort
SELECT DISTINCT - col2 + - 67 FROM tab0 AS cor0
----
-114
-166
-77

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1948
SELECT ALL + col2 DIV - CAST( - - col2 AS SIGNED ) + - 84 + col0 - - col2 col2, + col0 AS col2 FROM tab0 AS cor0
----
-23
15
111
97
12
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1948
SELECT ALL + col2 / - CAST ( - - col2 AS INTEGER ) + - 84 + col0 - - col2 col2, + col0 AS col2 FROM tab0 AS cor0
----
-23
15
111
97
12
87

onlyif mysql # aggregate syntax: 
query II rowsort label-1949
SELECT ALL + + MAX( + col0 ) col2, - 15 FROM tab2 WHERE NOT - col0 IS NULL
----
75
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1949
SELECT ALL + + MAX ( + col0 ) col2, - 15 FROM tab2 WHERE NOT - col0 IS NULL
----
75
-15

query I rowsort
SELECT DISTINCT col1 - col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-21
-54
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-1951
SELECT 33 DIV - + 58 + + + col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-1951
SELECT 33 / - + 58 + + + col0 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1952
SELECT ALL 78 * - MAX( DISTINCT 70 ) + - COUNT( * ) AS col1 FROM tab2
----
-5463

skipif mysql # not compatible
query I rowsort label-1952
SELECT ALL 78 * - MAX ( DISTINCT 70 ) + - COUNT ( * ) AS col1 FROM tab2
----
-5463

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1953
SELECT - MIN( ALL - + CAST( - 79 AS SIGNED ) ) FROM tab1 cor0
----
-79

skipif mysql # not compatible
query I rowsort label-1953
SELECT - MIN ( ALL - + CAST ( - 79 AS INTEGER ) ) FROM tab1 cor0
----
-79

query II rowsort
SELECT - ( 13 ) * + 40 * + - 54 * - 50, - col0 AS col1 FROM tab2 AS cor0
----
-1404000
-46
-1404000
-64
-1404000
-75

query I rowsort
SELECT + col2 * - col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 53 IS NOT NULL
----

query I rowsort
SELECT - 43 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

query I rowsort
SELECT DISTINCT 23 * - - 37 AS col0 FROM tab0 WHERE NULL >= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1959
SELECT DISTINCT - MAX( DISTINCT - - col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-1959
SELECT DISTINCT - MAX ( DISTINCT - - col0 ) FROM tab1
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1960
SELECT CAST( NULL AS SIGNED ) AS col2, - col2 * col0 FROM tab0
----
NULL
-705
NULL
-870
NULL
-9603

skipif mysql # not compatible
query II rowsort label-1960
SELECT CAST ( NULL AS INTEGER ) AS col2, - col2 * col0 FROM tab0
----
NULL
-705
NULL
-870
NULL
-9603

query II rowsort
SELECT ALL + col0 AS col0, col1 AS col2 FROM tab0
----
15
81
87
21
97
1

query I rowsort
SELECT ( + - ( + col0 ) ) FROM tab0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT - 79 * + - 32 FROM tab0 AS cor0
----
2528

onlyif mysql # aggregate syntax: 
query I rowsort label-1964
SELECT ALL + MAX( DISTINCT + 1 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1964
SELECT ALL + MAX ( DISTINCT + 1 ) FROM tab2 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col0 col1, col1 FROM tab1 cor0
----
51
14
85
5
91
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 JOIN tab1 cor1 ON NOT NULL IS NULL
----

query I rowsort
SELECT - 25 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT DISTINCT + - COUNT( * ) AS col0 FROM tab2 WHERE - col1 + - 11 BETWEEN - col1 AND + + col2
----
0

skipif mysql # not compatible
query I rowsort label-1969
SELECT DISTINCT + - COUNT ( * ) AS col0 FROM tab2 WHERE - col1 + - 11 BETWEEN - col1 AND + + col2
----
0

query I rowsort
SELECT ALL 19 - - - col0 AS col0 FROM tab0 cor0 WHERE NULL IS NULL
----
-68
-78
4

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + 2 + col0 - - col1 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 + + - ( - col1 ) col1 FROM tab1 AS cor0
----
10
28
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1973
SELECT + - CAST( + 88 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-88
-88
-88

skipif mysql # not compatible
query I rowsort label-1973
SELECT + - CAST ( + 88 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-88
-88
-88

query I rowsort
SELECT DISTINCT 38 * - 73 AS col0 FROM tab2
----
-2774

query I rowsort
SELECT + + col1 AS col0 FROM tab0 WHERE + + col2 = col2 + + 13
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN col0 * + + col1 AND + col2
----

query I rowsort
SELECT DISTINCT - + ( + - 5 ) + - + col0 FROM tab1 AS cor0
----
-46
-80
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1978
SELECT DISTINCT - col1 - + col1 / - + col0 * - ( - col0 ) * + - col0 / - CAST( NULL AS SIGNED ) + - 69 - - 82 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1978
SELECT DISTINCT - col1 - + col1 / - + col0 * - ( - col0 ) * + - col0 / - CAST ( NULL AS INTEGER ) + - 69 - - 82 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1979
SELECT + MIN( ALL 67 ) AS col0, 84 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
67
84

skipif mysql # not compatible
query II rowsort label-1979
SELECT + MIN ( ALL 67 ) AS col0, 84 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
67
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1980
SELECT CAST( 78 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

skipif mysql # not compatible
query I rowsort label-1980
SELECT CAST ( 78 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1981
SELECT * FROM tab0 AS cor0 WHERE 91 IN ( + CAST( NULL AS DECIMAL ) * - - col1, 39 )
----

skipif mysql # not compatible
query III rowsort label-1981
SELECT * FROM tab0 AS cor0 WHERE 91 IN ( + CAST ( NULL AS REAL ) * - - col1, 39 )
----

query II rowsort
SELECT DISTINCT - col2, col2 * - + col1 AS col2 FROM tab1 AS cor0
----
-59
-295
-68
-3196
-96
-1344

query II rowsort
SELECT + + 67 AS col2, 32 AS col1 FROM tab1 cor0
----
67
32
67
32
67
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + col0 - - - ( + 77 ) col2 FROM tab2 AS cor0
----
2039
4019
5548

query I rowsort
SELECT ALL + ( 30 ) AS col2 FROM tab0 AS cor0
----
30
30
30

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * + col2 <= - 75
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col2 BETWEEN - 17 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-1988
SELECT DISTINCT ( + + col0 ), col0 + col1 * + col0 + + col0 DIV + col0 AS col1 FROM tab0
----
15
1231
87
1915
97
195

skipif mysql # not compatible
query II rowsort label-1988
SELECT DISTINCT ( + + col0 ), col0 + col1 * + col0 + + col0 / + col0 AS col1 FROM tab0
----
15
1231
87
1915
97
195

query II rowsort
SELECT ALL - col2 * - 95 AS col1, 71 AS col1 FROM tab2
----
2185
71
3800
71
5510
71

onlyif mysql # DIV for integer division: 
query I rowsort label-1990
SELECT - 73 DIV 11 * col2 FROM tab0 AS cor0
----
-282
-594
-60

skipif mysql # not compatible
query I rowsort label-1990
SELECT - 73 / 11 * col2 FROM tab0 AS cor0
----
-282
-594
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT ALL + COUNT( DISTINCT + 53 ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
1

skipif mysql # not compatible
query I rowsort label-1991
SELECT ALL + COUNT ( DISTINCT + 53 ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT - COUNT( ALL + ( col1 ) ) + + 84 col2 FROM tab1
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1992
SELECT - COUNT ( ALL + ( col1 ) ) + + 84 col2 FROM tab1
----
81

query I rowsort
SELECT DISTINCT - - col1 + col1 * col2 AS col2 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
1224
3157
3953

onlyif mysql # DIV for integer division: 
query I rowsort label-1994
SELECT - 58 DIV col1 + + col2 FROM tab1 AS cor0
----
48
67
92

skipif mysql # not compatible
query I rowsort label-1994
SELECT - 58 / col1 + + col2 FROM tab1 AS cor0
----
48
67
92

query I rowsort
SELECT ALL + col1 + - col1 * + + col2 + - - col1 AS col2 FROM tab1 cor0
----
-1316
-285
-3102

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT - - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1996
SELECT - - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL = ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT DISTINCT - 9 * + COUNT( * ) * COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-1997
SELECT DISTINCT - 9 * + COUNT ( * ) * COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0
----
-243

query I rowsort
SELECT DISTINCT + col2 * 15 + col0 - ( - col0 ) FROM tab1 AS cor0
----
1055
1202
1542

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 92 - + - 70 > col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2000
SELECT ALL * FROM tab0 WHERE NOT NULL <> col1 / + col0 * - col2 + - - CAST( + + 23 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2000
SELECT ALL * FROM tab0 WHERE NOT NULL <> col1 / + col0 * - col2 + - - CAST ( + + 23 AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 47 * + col2 + 24 col0 FROM tab0 WHERE ( NOT col1 * + - col0 BETWEEN ( + 23 * + 67 + col1 + 32 ) AND col1 )
----
2233
4677
494

onlyif mysql # DIV for integer division: 
query I rowsort label-2002
SELECT - col1 DIV + 64 AS col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2002
SELECT - col1 / + 64 AS col2 FROM tab0
----
-1
0
0

query I rowsort
SELECT ( + col2 ) * - col0 + col2 - 10 FROM tab1
----
-4810
-4966
-6130

onlyif mysql # aggregate syntax: 
query I rowsort label-2004
SELECT ALL MIN( 87 ) * - + 6 FROM tab0
----
-522

skipif mysql # not compatible
query I rowsort label-2004
SELECT ALL MIN ( 87 ) * - + 6 FROM tab0
----
-522

onlyif mysql # DIV for integer division: 
query II rowsort label-2005
SELECT DISTINCT - col0 DIV + 10, + col1 * - - 48 + - + col2 + - 55 DIV - + col1 AS col2 FROM tab0
----
-1
3841
-8
1000
-9
4

skipif mysql # not compatible
query II rowsort label-2005
SELECT DISTINCT - col0 / + 10, + col1 * - - 48 + - + col2 + - 55 / - + col1 AS col2 FROM tab0
----
-1
3841
-8
1000
-9
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - ( 77 ) ) + + + col0 + + 75 + - col0 * ( + col2 ) + + col0 col0 FROM tab1
----
-4796
-4847
-6008

onlyif mysql # DIV for integer division: 
query I rowsort label-2007
SELECT - 10 DIV - col2 + col1 FROM tab0
----
1
22
81

skipif mysql # not compatible
query I rowsort label-2007
SELECT - 10 / - col2 + col1 FROM tab0
----
1
22
81

query III rowsort
SELECT * FROM tab0 WHERE col1 + - ( - + col0 ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 53, - 21 col0 FROM tab1
----
53
-21

query I rowsort
SELECT ALL + 39 - - - 17 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT - - 3 * col2 + ( + col0 ) FROM tab2 AS cor0 WHERE NOT - 91 <> NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * - 72 <> - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT SUM( DISTINCT + 1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2013
SELECT SUM ( DISTINCT + 1 ) FROM tab0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2014
SELECT ALL - CAST( NULL AS SIGNED ) AS col1, COUNT( * ) * - 16 DIV + 56 + - MIN( + + 16 ) AS col2 FROM tab0
----
NULL
-16

skipif mysql # not compatible
query II rowsort label-2014
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) * - 16 / + 56 + - MIN ( + + 16 ) AS col2 FROM tab0
----
NULL
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, col2 * + col1 * + - col0 - + 18 col1 FROM tab1
----
14
-68562
47
-290854
5
-25093

query III rowsort
SELECT ALL 45 * + col1 + + col0 * - col1 AS col0, col0 * - 13 AS col1, - + col1 AS col1 FROM tab0 WHERE NOT - col1 IS NULL
----
9 values hashing to 04182262f5ca40c5741e434b03005208

query I rowsort
SELECT + - 55 AS col1 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query II rowsort
SELECT - col0 AS col1, col2 FROM tab2
----
-46
23
-64
40
-75
58

onlyif mysql # aggregate syntax: 
query II rowsort label-2019
SELECT ALL + COUNT( * ) AS col2, 14 + - MAX( col2 ) AS col1 FROM tab1
----
3
-82

skipif mysql # not compatible
query II rowsort label-2019
SELECT ALL + COUNT ( * ) AS col2, 14 + - MAX ( col2 ) AS col1 FROM tab1
----
3
-82

query II rowsort
SELECT ALL 66 AS col0, 10 FROM tab0
----
66
10
66
10
66
10

query II rowsort
SELECT DISTINCT - 43 AS col0, col0 FROM tab0 AS cor0
----
-43
15
-43
87
-43
97

query I rowsort
SELECT 78 + + 87 FROM tab0 cor0
----
165
165
165

query II rowsort
SELECT DISTINCT - 12 * - col2 * + col1 AS col0, 31 AS col0 FROM tab1
----
16128
31
3540
31
38352
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2024
SELECT ( - + 85 ) * + 75 AS col2 FROM tab0, tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 483f9fc727d3dcd743024d568267e1d4

skipif mysql # not compatible
query I rowsort label-2024
SELECT ( - + 85 ) * + 75 AS col2 FROM tab0, tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 483f9fc727d3dcd743024d568267e1d4

query I rowsort
SELECT ALL - col1 + - - col2 AS col0 FROM tab2 cor0
----
-28
-37
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2026
SELECT DISTINCT + 87 FROM tab2 AS cor0 WHERE ( NULL ) <= + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2026
SELECT DISTINCT + 87 FROM tab2 AS cor0 WHERE ( NULL ) <= + + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT DISTINCT + MIN( - + col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-2027
SELECT DISTINCT + MIN ( - + col1 ) FROM tab1 AS cor0
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2028
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 84 + - ( + - MIN( - 24 ) ) + MIN( - col0 ) * COUNT( * ) / 94 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2028
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 84 + - ( + - MIN ( - 24 ) ) + MIN ( - col0 ) * COUNT ( * ) / 94 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL = + col2 - + col0 * + col0
----

query I rowsort
SELECT - col0 + + + col1 AS col0 FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT DISTINCT + 0 AS col2 FROM tab0 AS cor0 WHERE - col0 NOT BETWEEN ( + 96 ) AND NULL
----
0

query I rowsort
SELECT - - ( + 25 ) FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
25
25
25

query I rowsort
SELECT ALL - col1 * - col1 - col0 AS col1 FROM tab0 AS cor0
----
-96
354
6546

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT + - MIN( ALL col2 ) + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-2034
SELECT + - MIN ( ALL col2 ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 63 BETWEEN + col1 AND + - col2 * + ( + + col1 ) + 40
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) <= + 31 * + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2037
SELECT DISTINCT - 46 + col2 + - - col1 DIV col1 AS col1 FROM tab0 AS cor0
----
-35
2
54

skipif mysql # not compatible
query I rowsort label-2037
SELECT DISTINCT - 46 + col2 + - - col1 / col1 AS col1 FROM tab0 AS cor0
----
-35
2
54

query II rowsort
SELECT ALL 29 + col1 + 70 - + col1 AS col2, - col2 + 5 FROM tab2 AS cor0
----
99
-18
99
-35
99
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2039
SELECT MAX( ALL CAST( NULL AS SIGNED ) ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2039
SELECT MAX ( ALL CAST ( NULL AS INTEGER ) ) col2 FROM tab1
----
NULL

query II rowsort
SELECT ( - col0 ) AS col2, col0 + + col2 FROM tab1 AS cor0
----
-51
147
-85
144
-91
159

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT + + 32 * - COUNT( * ) * - 71 * - 86 * 92 AS col0 FROM tab0 AS cor0
----
-53928192

skipif mysql # not compatible
query I rowsort label-2041
SELECT + + 32 * - COUNT ( * ) * - 71 * - 86 * 92 AS col0 FROM tab0 AS cor0
----
-53928192

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2042
SELECT - CAST( NULL AS DECIMAL ) * - 89 AS col2, col0 + + col1 + - ( col1 ) - - col1 FROM tab1 AS cor0
----
NULL
138
NULL
65
NULL
90

skipif mysql # not compatible
query II rowsort label-2042
SELECT - CAST ( NULL AS REAL ) * - 89 AS col2, col0 + + col1 + - ( col1 ) - - col1 FROM tab1 AS cor0
----
NULL
138
NULL
65
NULL
90

onlyif mysql # DIV for integer division: 
query I rowsort label-2043
SELECT + 83 DIV col0 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2043
SELECT + 83 / col0 AS col2 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + + 1 * + 10 * + col0 FROM tab0 AS cor0
----
150
870
970

onlyif mysql # DIV for integer division: 
query I rowsort label-2045
SELECT DISTINCT + + col0 DIV + col0 - + col0 FROM tab2 AS cor0
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-2045
SELECT DISTINCT + + col0 / + col0 - + col0 FROM tab2 AS cor0
----
-45
-63
-74

query I rowsort
SELECT ALL 93 * - - 82 AS col1 FROM tab0 AS cor0
----
7626
7626
7626

query I rowsort
SELECT ( + 31 ) * 40 FROM tab1 AS cor0
----
1240
1240
1240

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
1
21
81

query I rowsort
SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-59
-68
-96

query I rowsort
SELECT 19 * + + col2 AS col2 FROM tab2
----
1102
437
760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2051
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-2051
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - 58 FROM tab0, tab1 AS cor0
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

onlyif mysql # DIV for integer division: 
query II rowsort label-2053
SELECT - col2, 85 * col1 DIV + col2 col1 FROM tab2
----
-23
188
-40
163
-58
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2053
SELECT - col2, 85 * col1 / + col2 col1 FROM tab2
----
-23
188
-40
163
-58
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT + SUM( ALL + 45 ) * + + 84 AS col0 FROM tab1
----
11340

skipif mysql # not compatible
query I rowsort label-2054
SELECT + SUM ( ALL + 45 ) * + + 84 AS col0 FROM tab1
----
11340

query I rowsort
SELECT DISTINCT 70 + 96 FROM tab0
----
166

query II rowsort
SELECT 62 * + col0, 42 AS col0 FROM tab2 cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 AS cor0 WHERE NOT col2 < + col2
----
59
68
96

query I rowsort
SELECT DISTINCT + - col1 * + 53 + - 81 - + + 85 * + + col1 AS col0 FROM tab1 AS cor0
----
-2013
-6567
-771

query I rowsort
SELECT DISTINCT + 72 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-2060
SELECT ALL + ( - + COUNT( * ) ) AS col2, + 17 * + COUNT( * ) FROM tab1
----
-3
51

skipif mysql # not compatible
query II rowsort label-2060
SELECT ALL + ( - + COUNT ( * ) ) AS col2, + 17 * + COUNT ( * ) FROM tab1
----
-3
51

query I rowsort
SELECT DISTINCT - - 80 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
80

query I rowsort
SELECT - 24 + - 58 AS col1 FROM tab1
----
-82
-82
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2063
SELECT MAX( ALL + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) + 85 + + 29 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2063
SELECT MAX ( ALL + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) + 85 + + 29 FROM tab0
----
NULL

query I rowsort
SELECT + + col1 FROM tab0 AS cor0 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + col0 + - 21 * + - ( + 49 ) AS col0 FROM tab0 AS cor0
----
1044
1116
1126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2066
SELECT DISTINCT 62 * col0 - + CAST( - col1 AS SIGNED ) + - col2 AS col0 FROM tab2 AS cor0
----
2880
4005
4659

skipif mysql # not compatible
query I rowsort label-2066
SELECT DISTINCT 62 * col0 - + CAST ( - col1 AS INTEGER ) + - col2 AS col0 FROM tab2 AS cor0
----
2880
4005
4659

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 NOT BETWEEN + col0 AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT 12 NOT IN ( - + col2 + + ( + col2 ) * + 90 ) )
----

query I rowsort
SELECT - ( - 72 ) AS col0 FROM tab1
----
72
72
72

query I rowsort
SELECT ALL ( - - 18 ) * - + 79 AS col1 FROM tab2
----
-1422
-1422
-1422

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT DISTINCT MIN( - 41 ) AS col2 FROM tab2
----
-41

skipif mysql # not compatible
query I rowsort label-2071
SELECT DISTINCT MIN ( - 41 ) AS col2 FROM tab2
----
-41

query III rowsort
SELECT * FROM tab1 WHERE + + col2 = + 22
----

query I rowsort
SELECT + 22 - + - ( + - col2 ) AS col2 FROM tab0
----
-25
-77
12

onlyif mysql # aggregate syntax: 
query II rowsort label-2074
SELECT ALL COUNT( DISTINCT + - col1 ) AS col2, COUNT( * ) + - COUNT( * ) + 78 FROM tab1
----
3
78

skipif mysql # not compatible
query II rowsort label-2074
SELECT ALL COUNT ( DISTINCT + - col1 ) AS col2, COUNT ( * ) + - COUNT ( * ) + 78 FROM tab1
----
3
78

query I rowsort
SELECT - col1 + - 89 FROM tab2 AS cor0
----
-140
-156
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT ALL - - 63 * + + 32 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
2019

skipif mysql # not compatible
query I rowsort label-2076
SELECT ALL - - 63 * + + 32 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
2019

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2077
SELECT DISTINCT + col1 * - + CAST( NULL AS SIGNED ) + col2 + - - col1 AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2077
SELECT DISTINCT + col1 * - + CAST ( NULL AS INTEGER ) + col2 + - - col1 AS col2 FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2078
SELECT DISTINCT - CAST( NULL AS SIGNED ) * COUNT( * ) * - - 16 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2078
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * COUNT ( * ) * - - 16 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT - col1, 51 AS col0 FROM tab2
----
-51
51
-67
51
-77
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT DISTINCT - - COUNT( * ) + 17 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
26

skipif mysql # not compatible
query I rowsort label-2080
SELECT DISTINCT - - COUNT ( * ) + 17 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT ( - COUNT( - 48 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2081
SELECT ( - COUNT ( - 48 ) ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2082
SELECT DISTINCT + - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2082
SELECT DISTINCT + - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) < NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2083
SELECT + 56 * 57 DIV - - COUNT( * ) FROM tab2 AS cor0
----
1064

skipif mysql # not compatible
query I rowsort label-2083
SELECT + 56 * 57 / - - COUNT ( * ) FROM tab2 AS cor0
----
1064

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2084
SELECT 88 * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2084
SELECT 88 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * + + col0 AS col2 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT ALL + col1 * 20 AS col2 FROM tab0
----
1620
20
420

query I rowsort
SELECT DISTINCT - col0 * + 41 AS col2 FROM tab2
----
-1886
-2624
-3075

onlyif mysql # aggregate syntax: 
query I rowsort label-2088
SELECT DISTINCT + + MAX( + 6 ) FROM tab2 cor0
----
6

skipif mysql # not compatible
query I rowsort label-2088
SELECT DISTINCT + + MAX ( + 6 ) FROM tab2 cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2089
SELECT DISTINCT - CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2089
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT DISTINCT 14 * + COUNT( * ) + - 70 AS col1 FROM tab1 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-2090
SELECT DISTINCT 14 * + COUNT ( * ) + - 70 AS col1 FROM tab1 AS cor0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2091
SELECT DISTINCT COUNT( DISTINCT + - 77 ) * + COUNT( * ) + + COUNT( * ) + 56 * + 8 * 99 AS col0 FROM tab2 AS cor0
----
44358

skipif mysql # not compatible
query I rowsort label-2091
SELECT DISTINCT COUNT ( DISTINCT + - 77 ) * + COUNT ( * ) + + COUNT ( * ) + 56 * + 8 * 99 AS col0 FROM tab2 AS cor0
----
44358

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN ( + + 47 ) AND - col0
----

query I rowsort
SELECT - ( + col1 ) - + col1 + + 91 * + 88 AS col0 FROM tab1 AS cor0
----
7914
7980
7998

query I rowsort
SELECT - - col1 - + col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col2 - - + 55 - + col1 FROM tab1 AS cor0
----
109
137
76

query I rowsort
SELECT - 47 + - col0 + - col0 * - col1 AS col0 FROM tab0 AS cor0
----
-47
1153
1693

query I rowsort
SELECT ALL col2 + + 50 AS col1 FROM tab0 AS cor0
----
149
60
97

query I rowsort
SELECT + col1 + - + col0 * - col2 AS col0 FROM tab1 AS cor0
----
4910
5020
6235

query I rowsort
SELECT 33 * + - col2 + + 26 FROM tab1 AS cor0
----
-1921
-2218
-3142

query I rowsort
SELECT ALL - - 94 + - + col2 AS col1 FROM tab0 AS cor0
----
-5
47
84

query I rowsort
SELECT DISTINCT - 43 + + 67 AS col1 FROM tab2 AS cor0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2102
SELECT + col2 FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) - - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2102
SELECT + col2 FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) - - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2103
SELECT + ( - 23 ) * - col2 * - CAST( + 78 AS SIGNED ) + - ( + col2 ) FROM tab0 AS cor0
----
-177705
-17950
-84365

skipif mysql # not compatible
query I rowsort label-2103
SELECT + ( - 23 ) * - col2 * - CAST ( + 78 AS INTEGER ) + - ( + col2 ) FROM tab0 AS cor0
----
-177705
-17950
-84365

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2104
SELECT COUNT( * ) DIV - - COUNT( - ( col1 ) ) + 38 col1 FROM tab2
----
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2104
SELECT COUNT ( * ) / - - COUNT ( - ( col1 ) ) + 38 col1 FROM tab2
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 37 - + ( - col1 ) col0 FROM tab0
----
118
38
58

query II rowsort
SELECT ALL + col1 AS col2, - col1 AS col2 FROM tab0
----
1
-1
21
-21
81
-81

query I rowsort
SELECT ALL - 41 * - - 94 * + 11 + - col2 AS col1 FROM tab2 WHERE NOT ( NOT col0 IS NULL )
----

query I rowsort
SELECT ALL col0 - col1 * 55 - 56 FROM tab2
----
-2815
-3666
-4227

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2109
SELECT ALL - CAST( + col0 AS SIGNED ) * - CAST( + col1 AS SIGNED ) AS col2, - ( + - col0 ) + + 6 FROM tab1
----
425
91
4277
97
714
57

skipif mysql # not compatible
query II rowsort label-2109
SELECT ALL - CAST ( + col0 AS INTEGER ) * - CAST ( + col1 AS INTEGER ) AS col2, - ( + - col0 ) + + 6 FROM tab1
----
425
91
4277
97
714
57

query I rowsort
SELECT + - col1 * + + 4 FROM tab0 cor0
----
-324
-4
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2111
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + 49 BETWEEN NULL AND + - 53 * + ( + CAST( NULL AS SIGNED ) ) + - - col0
----
0

skipif mysql # not compatible
query I rowsort label-2111
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + 49 BETWEEN NULL AND + - 53 * + ( + CAST ( NULL AS INTEGER ) ) + - - col0
----
0

query I rowsort
SELECT - + 92 * + col1 FROM tab1 AS cor0
----
-1288
-4324
-460

query I rowsort
SELECT - ( - 14 ) FROM tab2
----
14
14
14

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2115
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0 WHERE NOT col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2115
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2116
SELECT col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( - col0, - col2, - + col1 / - - col1 * - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2116
SELECT col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( - col0, - col2, - + col1 / - - col1 * - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT col2 * - + ( + col1 ) * + - 30 FROM tab1 AS cor0
----
40320
8850
95880

onlyif mysql # DIV for integer division: 
query I rowsort label-2118
SELECT ALL + ( + 56 ) DIV - - 38 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2118
SELECT ALL + ( + 56 ) / - - 38 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT col0 + - - 93 AS col2 FROM tab0 AS cor0
----
108
180
190

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( col0 ) * - col2 * + 17 + - + col0 < NULL )
----

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 - - col2 IS NULL
----
-23
-40
-58

query I rowsort
SELECT + col1 + + 10 FROM tab1 AS cor0
----
15
24
57

query I rowsort
SELECT + 54 * + ( - col1 ) + - - col1 + col1 + + + 25 + - 55 + + col0 AS col2 FROM tab2 AS cor0
----
-2636
-3439
-3970

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2124
SELECT DISTINCT CAST( - + 27 AS SIGNED ) col2 FROM tab1
----
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2124
SELECT DISTINCT CAST ( - + 27 AS INTEGER ) col2 FROM tab1
----
-27

query I rowsort
SELECT DISTINCT + 4 * col2 FROM tab0
----
188
396
40

query III rowsort
SELECT * FROM tab0 WHERE NOT - - ( + 51 ) <> - 87 / - + col0
----

query I rowsort
SELECT DISTINCT + 14 + - 24 - - col1 FROM tab1 AS cor0
----
-5
37
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2 col2, - col0 col1 FROM tab2 AS cor0 WHERE - 57 IS NOT NULL
----
-23
-46
-40
-64
-58
-75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 18 IS NULL
----

query II rowsort
SELECT + col1 * 73 AS col1, col2 FROM tab2 AS cor0
----
3723
23
4891
58
5621
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2131
SELECT - ( - - CAST( + + col1 AS SIGNED ) ) FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-2131
SELECT - ( - - CAST ( + + col1 AS INTEGER ) ) FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT ALL + col2 + + - col0 + - + col0 * col2 * 81 AS col0 FROM tab0 AS cor0
----
-57073
-70547
-777841

query I rowsort
SELECT ALL + col2 + + col0 * - col0 FROM tab1 cor0
----
-2505
-7166
-8213

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT DISTINCT - 21 - + + COUNT( * ) FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-2134
SELECT DISTINCT - 21 - + + COUNT ( * ) FROM tab2 AS cor0
----
-24

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 + + col1 NOT BETWEEN NULL AND + col2
----

query I rowsort
SELECT ALL col0 - + ( - - col0 ) AS col1 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2137
SELECT + col2 - + - col0 DIV - + col1 col0 FROM tab0
----
2
47
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2137
SELECT + col2 - + - col0 / - + col1 col0 FROM tab0
----
2
47
6

onlyif mysql # aggregate syntax: 
query II rowsort label-2138
SELECT DISTINCT + COUNT( DISTINCT - - 6 ) - + 24 col1, + 48 FROM tab2
----
-23
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2138
SELECT DISTINCT + COUNT ( DISTINCT - - 6 ) - + 24 col1, + 48 FROM tab2
----
-23
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2139
SELECT - 48 * COUNT( * ) / - CAST( NULL AS SIGNED ) * - - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2139
SELECT - 48 * COUNT ( * ) / - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2140
SELECT - col1 DIV - ( - col1 ) FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2140
SELECT - col1 / - ( - col1 ) FROM tab0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + + ( - 35 ) FROM tab2 AS cor0
----
-35

query I rowsort
SELECT + - col1 * + - col1 FROM tab2 AS cor0
----
2601
4489
5929

query I rowsort
SELECT ALL - ( - - 11 ) FROM tab1 AS cor0
----
-11
-11
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT DISTINCT + MIN( - col2 ) * - ( + COUNT( * ) ) FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-2144
SELECT DISTINCT + MIN ( - col2 ) * - ( + COUNT ( * ) ) FROM tab1
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-2145
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 WHERE - ( - col2 ) = ( + + col2 )
----
-3

skipif mysql # not compatible
query I rowsort label-2145
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 WHERE - ( - col2 ) = ( + + col2 )
----
-3

query II rowsort
SELECT ALL + col2 AS col2, - ( + ( - col0 ) ) AS col2 FROM tab0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT DISTINCT MAX( ALL - col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2147
SELECT DISTINCT MAX ( ALL - col0 ) FROM tab0 AS cor0
----
-15

query I rowsort
SELECT - 88 * + - ( + col1 ) FROM tab1 AS cor0
----
1232
4136
440

query II rowsort
SELECT DISTINCT col1 AS col2, + 46 * + + col2 AS col2 FROM tab0 AS cor0
----
1
4554
21
460
81
2162

query I rowsort
SELECT + col0 * + 8 FROM tab2 cor0
----
368
512
600

query I rowsort
SELECT - col1 * 45 AS col2 FROM tab0
----
-3645
-45
-945

query I rowsort
SELECT DISTINCT - 61 * col1 * + 85 FROM tab0
----
-108885
-419985
-5185

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2153
SELECT ALL CAST( + 94 AS SIGNED ) * col2 DIV + 57 FROM tab1
----
112
158
97

skipif mysql # not compatible
query I rowsort label-2153
SELECT ALL CAST ( + 94 AS INTEGER ) * col2 / + 57 FROM tab1
----
112
158
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2154
SELECT + 21 + + - col1 * - + ( - + 2 ) * + CAST( NULL AS SIGNED ) / + - 48 + ( + - col0 ), - 64 AS col2 FROM tab0
----
NULL
-64
NULL
-64
NULL
-64

skipif mysql # not compatible
query II rowsort label-2154
SELECT + 21 + + - col1 * - + ( - + 2 ) * + CAST ( NULL AS INTEGER ) / + - 48 + ( + - col0 ), - 64 AS col2 FROM tab0
----
NULL
-64
NULL
-64
NULL
-64

query III rowsort
SELECT * FROM tab1 WHERE + + 86 IS NULL
----

query II rowsort
SELECT - col2 + + + col2 AS col0, col2 * - + col0 - - col2 FROM tab1
----
0
-4800
0
-4956
0
-6120

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT ALL 40 + - COUNT( * ) AS col2 FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-2157
SELECT ALL 40 + - COUNT ( * ) AS col2 FROM tab1
----
37

query I rowsort
SELECT DISTINCT + + col1 FROM tab1 WHERE NULL NOT IN ( - 29 / - col0, - col1 )
----

query I rowsort
SELECT ALL 59 FROM tab0 AS cor0 WHERE NULL IS NULL
----
59
59
59

query I rowsort
SELECT DISTINCT - + col0 - - col1 * + col0 AS col2 FROM tab1 AS cor0
----
340
4186
663

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 0 col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT + col2 AS col1 FROM tab1 AS cor0 WHERE - 38 <> - + col2
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT + 46 + + COUNT( * ) - + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
46

skipif mysql # not compatible
query I rowsort label-2163
SELECT + 46 + + COUNT ( * ) - + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
46

query I rowsort
SELECT - ( - col1 ) * col2 * - col0 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 3 AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + ( col1 ) + + col0 AS col2 FROM tab1 cor0
----
138
65
90

query I rowsort
SELECT DISTINCT 37 FROM tab1 AS cor0 WHERE NOT 64 - + col2 IS NULL
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2168
SELECT ALL - 9 * - COUNT( * ) + - 20 col0 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2168
SELECT ALL - 9 * - COUNT ( * ) + - 20 col0 FROM tab0 AS cor0
----
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 93 + - - col1 col1 FROM tab2 AS cor0
----
-16
-26
-42

query II rowsort
SELECT col2 + - col2 * - + col1 AS col1, - col1 AS col2 FROM tab1 AS cor0
----
1440
-14
3264
-47
354
-5

query I rowsort
SELECT ALL - col2 - + 84 AS col1 FROM tab1 AS cor0
----
-143
-152
-180

query II rowsort
SELECT col1 AS col0, col2 * + 54 + col1 AS col2 FROM tab2 AS cor0
----
51
1293
67
3199
77
2237

query I rowsort
SELECT ALL + col1 * - + col0 + - 57 AS col1 FROM tab2 AS cor0
----
-2403
-4985
-5082

onlyif mysql # DIV for integer division: 
query I rowsort label-2174
SELECT DISTINCT ( col1 ) DIV col0 * - + col2 + - - col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2174
SELECT DISTINCT ( col1 ) / col0 * - + col2 + - - col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query II rowsort label-2175
SELECT ALL + ( COUNT( * ) ), - 86 * - 86 AS col0 FROM tab0
----
3
7396

skipif mysql # not compatible
query II rowsort label-2175
SELECT ALL + ( COUNT ( * ) ), - 86 * - 86 AS col0 FROM tab0
----
3
7396

query I rowsort
SELECT - col2 AS col2 FROM tab1 WHERE NOT - col2 + + col2 IN ( - col2 )
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-2177
SELECT DISTINCT - ( - - 10 ), + COUNT( * ) AS col1 FROM tab0
----
-10
3

skipif mysql # not compatible
query II rowsort label-2177
SELECT DISTINCT - ( - - 10 ), + COUNT ( * ) AS col1 FROM tab0
----
-10
3

query I rowsort
SELECT col1 * + + 74 AS col0 FROM tab2
----
3774
4958
5698

onlyif mysql # DIV for integer division: 
query I rowsort label-2179
SELECT - col0 DIV - + col2 AS col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2179
SELECT - col0 / - + col2 AS col0 FROM tab1
----
0
1
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = 47
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2181
SELECT ALL - - ( - + 46 ), + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-46
3

skipif mysql # not compatible
query II rowsort label-2181
SELECT ALL - - ( - + 46 ), + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-46
3

query I rowsort
SELECT DISTINCT - col2 FROM tab0 cor0 WHERE NOT col1 NOT BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2183
SELECT + + COUNT( * ) col1 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-2183
SELECT + + COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( 15 ) + + + col2 <> col1 * 88 * col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 3 + + 18 AS col1 FROM tab2 AS cor0
----
21
21
21

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + 51 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) >= - 48 * - col2 / col1 * - col2 + + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + - + col0 * - 59 * + 85 col0 FROM tab2 AS cor0
----
230741
321037
376192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2189
SELECT - CAST( NULL AS SIGNED ) * 46 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2189
SELECT - CAST ( NULL AS INTEGER ) * 46 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + 58 ) * col1 FROM tab0
----
-1218
-4698
-58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col1 + - col2 / - col1 + - + 65 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2192
SELECT DISTINCT - 7 DIV + col0 * + col0 col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2192
SELECT DISTINCT - 7 / + col0 * + col0 col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT ( 0 ) AS col0 FROM tab1
----
0

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NULL >= NULL
----

query I rowsort
SELECT - col0 - + - 10 FROM tab2 AS cor0
----
-36
-54
-65

query I rowsort
SELECT + 34 + - 50 * + + col0 * ( + col1 ) AS col1 FROM tab1 AS cor0
----
-21216
-213816
-35666

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col2 NOT BETWEEN + 27 + + - col2 AND NULL )
----

query I rowsort
SELECT DISTINCT - 11 - + 1 + ( + - col0 ) + + 14 AS col2 FROM tab1
----
-49
-83
-89

query I rowsort
SELECT ALL + 71 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
71
71
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2200
SELECT + 2 + CAST( NULL AS SIGNED ), + MAX( - col0 ) AS col0 FROM tab1
----
NULL
-51

skipif mysql # not compatible
query II rowsort label-2200
SELECT + 2 + CAST ( NULL AS INTEGER ), + MAX ( - col0 ) AS col0 FROM tab1
----
NULL
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 + - col2 * - col0 FROM tab0 AS cor0 WHERE NOT + ( 29 ) * - + 6 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * + col0 * - - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2204
SELECT + + 67 DIV + col0 AS col2 FROM tab0 cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-2204
SELECT + + 67 / + col0 AS col2 FROM tab0 cor0
----
0
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab1 WHERE NOT col0 IS NULL
----
14
47
5

query I rowsort
SELECT - col0 * col2 + col0 + + col2 AS col0 FROM tab0 WHERE NOT + col1 IS NULL
----
-643
-773
-9407

query II rowsort
SELECT col0 AS col0, + 0 + + 91 FROM tab2
----
46
91
64
91
75
91

query II rowsort
SELECT + col0 AS col2, 26 FROM tab0
----
15
26
87
26
97
26

query I rowsort
SELECT ALL 42 * - col1 FROM tab1
----
-1974
-210
-588

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) NOT IN ( 74 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT ALL COUNT( + col1 ) + ( SUM( 67 ) + + COUNT( * ) ) FROM tab1
----
207

skipif mysql # not compatible
query I rowsort label-2211
SELECT ALL COUNT ( + col1 ) + ( SUM ( 67 ) + + COUNT ( * ) ) FROM tab1
----
207

query I rowsort
SELECT ALL + col2 + 81 FROM tab1
----
140
149
177

query III rowsort
SELECT * FROM tab2 WHERE col0 <= + col1 * col1 + 98
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 - 78 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT 14 - - col1 FROM tab0
----
15
35
95

query I rowsort
SELECT col0 * + 80 - + col2 AS col1 FROM tab0
----
1153
6950
7661

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT ALL - 83 * - COUNT( * ) AS col0 FROM tab2
----
249

skipif mysql # not compatible
query I rowsort label-2217
SELECT ALL - 83 * - COUNT ( * ) AS col0 FROM tab2
----
249

query I rowsort
SELECT ALL + ( col1 ) * + 52 AS col2 FROM tab1
----
2444
260
728

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT DISTINCT + COUNT( DISTINCT - col1 ) * - 95 AS col1 FROM tab1
----
-285

skipif mysql # not compatible
query I rowsort label-2219
SELECT DISTINCT + COUNT ( DISTINCT - col1 ) * - 95 AS col1 FROM tab1
----
-285

query III rowsort
SELECT * FROM tab2 WHERE NOT 74 IN ( col2 * col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + col0 BETWEEN ( NULL ) AND col2 - ( - col1 + + col2 * + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE ( + col1 + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT MIN( DISTINCT col1 ) * 45 AS col2 FROM tab2
----
2295

skipif mysql # not compatible
query I rowsort label-2223
SELECT MIN ( DISTINCT col1 ) * 45 AS col2 FROM tab2
----
2295

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2224
SELECT - CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2224
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2225
SELECT ALL col1 DIV - col0 + 43 FROM tab2
----
42
42
43

skipif mysql # not compatible
query I rowsort label-2225
SELECT ALL col1 / - col0 + 43 FROM tab2
----
42
42
43

query I rowsort
SELECT ALL - 88 + col1 * 30 AS col1 FROM tab2
----
1442
1922
2222

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 68 col1 FROM tab2
----
-3468
-4556
-5236

query III rowsort
SELECT * FROM tab1 WHERE + col0 + 14 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 29 * 71 FROM tab1
----
-2059

query I rowsort
SELECT DISTINCT + 72 FROM tab2 WHERE - col2 IS NULL
----

query I rowsort
SELECT - 27 * - 14 FROM tab0
----
378
378
378

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT + 17 * COUNT( * ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-2232
SELECT + 17 * COUNT ( * ) AS col0 FROM tab2
----
51

query I rowsort
SELECT col2 * 78 AS col2 FROM tab0
----
3666
7722
780

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT - SUM( ALL col2 ) * + SUM( + 68 ) AS col0 FROM tab1
----
-45492

skipif mysql # not compatible
query I rowsort label-2234
SELECT - SUM ( ALL col2 ) * + SUM ( + 68 ) AS col0 FROM tab1
----
-45492

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col0 ) + + col1 col1 FROM tab1
----
-37
-44
-80

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2236
SELECT ALL - + col0 * + ( - CAST( col1 AS SIGNED ) DIV + col0 ) FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2236
SELECT ALL - + col0 * + ( - CAST ( col1 AS INTEGER ) / + col0 ) FROM tab1 cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 0 * + 23 + - col2 > - col1 + col1 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 68 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT + - COUNT( * ) * ( - ( + MAX( + col0 ) ) ) col2 FROM tab0 cor0
----
291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2239
SELECT + - COUNT ( * ) * ( - ( + MAX ( + col0 ) ) ) col2 FROM tab0 cor0
----
291

query I rowsort
SELECT - 22 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - 81 col1 FROM tab0 AS cor0
----
-1701
-6561
-81

query I rowsort
SELECT - ( 7 ) * - col1 AS col1 FROM tab2 AS cor0
----
357
469
539

onlyif mysql # aggregate syntax: 
query I rowsort label-2243
SELECT DISTINCT + - 37 * - MAX( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
-1702

skipif mysql # not compatible
query I rowsort label-2243
SELECT DISTINCT + - 37 * - MAX ( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
-1702

onlyif mysql # DIV for integer division: 
query I rowsort label-2244
SELECT 92 DIV + col1 AS col0 FROM tab0 AS cor0
----
1
4
92

skipif mysql # not compatible
query I rowsort label-2244
SELECT 92 / + col1 AS col0 FROM tab0 AS cor0
----
1
4
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 25 col2 FROM tab0 AS cor0
----
-25
-25
-25

query I rowsort
SELECT DISTINCT 8 FROM tab2 AS cor0 WHERE NOT + col0 + - 73 <> ( NULL )
----

query I rowsort
SELECT + - 26 AS col2 FROM tab2 cor0
----
-26
-26
-26

query I rowsort
SELECT ALL - 76 * col0 AS col0 FROM tab1 AS cor0 WHERE NOT + 94 IN ( 50 )
----
-3876
-6460
-6916

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2249
SELECT - 33 DIV COUNT( * ) AS col1 FROM tab0 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-2249
SELECT - 33 / COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-2250
SELECT + col1 DIV 52 col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2250
SELECT + col1 / 52 col2 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT ALL + MAX( + - 37 ) AS col2 FROM tab0
----
-37

skipif mysql # not compatible
query I rowsort label-2251
SELECT ALL + MAX ( + - 37 ) AS col2 FROM tab0
----
-37

query I rowsort
SELECT ALL col0 + - col2 FROM tab1 WHERE col1 IN ( + 73 )
----

query I rowsort
SELECT DISTINCT - 39 * + col2 AS col2 FROM tab1
----
-2301
-2652
-3744

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 17 * 89 + - col2 * 7 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 * + - col1 * - 10 AS col2 FROM tab1
----
1960
22090
250

onlyif mysql # DIV for integer division: 
query I rowsort label-2256
SELECT ALL - 56 DIV + + col1 col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2256
SELECT ALL - 56 / + + col1 col2 FROM tab2
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2257
SELECT DISTINCT + ( - col1 ) DIV - col2 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-2257
SELECT DISTINCT + ( - col1 ) / - col2 FROM tab2 AS cor0
----
1
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2258
SELECT - MAX( + CAST( NULL AS SIGNED ) ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2258
SELECT - MAX ( + CAST ( NULL AS INTEGER ) ) col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - - col1 * - 15 FROM tab0 AS cor0
----
-1215
-15
-315

query I rowsort
SELECT + - col2 * + 53 FROM tab0 AS cor0
----
-2491
-5247
-530

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL NOT IN ( col2 )
----

query I rowsort
SELECT DISTINCT + 58 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
58

query I rowsort
SELECT ( 47 ) FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 ) WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT 66 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 + + col0 col1 FROM tab2 cor0
----
111
129
140

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE + col0 * - - col1 * col1 IS NULL
----

query I rowsort
SELECT 56 + + - col0 AS col0 FROM tab2 AS cor0
----
-19
-8
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2268
SELECT ALL + COUNT( col0 ) + - 24 * 92 FROM tab2 AS cor0
----
-2205

skipif mysql # not compatible
query I rowsort label-2268
SELECT ALL + COUNT ( col0 ) + - 24 * 92 FROM tab2 AS cor0
----
-2205

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2269
SELECT DISTINCT - AVG ( + CAST( NULL AS SIGNED ) ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2269
SELECT DISTINCT - AVG ( + CAST ( NULL AS INTEGER ) ) col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + ( + 80 ) + col1 + - ( + col1 ) AS col2 FROM tab2 AS cor0
----
80

query I rowsort
SELECT - col2 + - - 41 FROM tab1 AS cor0
----
-18
-27
-55

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( col0 * - - 45 )
----

query I rowsort
SELECT ALL - 75 + col0 FROM tab1 cor0
----
-24
10
16

query I rowsort
SELECT DISTINCT + col1 + - 90 FROM tab0 AS cor0
----
-69
-89
-9

query I rowsort
SELECT ALL - + col0 + 38 + + 22 + + 22 FROM tab1 AS cor0
----
-3
-9
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2276
SELECT - COUNT( * ) * + + 22 AS col0 FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2276
SELECT - COUNT ( * ) * + + 22 AS col0 FROM tab2 AS cor0
----
-66

query I rowsort
SELECT + 37 FROM tab1 WHERE - + 60 IS NOT NULL
----
37
37
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - - col0 col2 FROM tab0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-2279
SELECT ALL - MAX( DISTINCT + 42 ) FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-2279
SELECT ALL - MAX ( DISTINCT + 42 ) FROM tab0
----
-42

query I rowsort
SELECT col2 - col0 + + col2 * - - ( 95 ) FROM tab1
----
5579
6437
9165

query I rowsort
SELECT col1 - + col2 + + col2 + - col0 * ( col1 ) * - ( col0 ) FROM tab1
----
36130
36428
389254

onlyif mysql # aggregate syntax: 
query I rowsort label-2282
SELECT + COUNT( * ) - + - COUNT( * ) * 23 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-2282
SELECT + COUNT ( * ) - + - COUNT ( * ) * 23 FROM tab0
----
72

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) IS NULL AND NOT 83 BETWEEN + col0 * col1 AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 61 * col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 50 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2286
SELECT ALL CAST( - col1 AS SIGNED ) * - - col0 + 3 FROM tab0 AS cor0
----
-1212
-1824
-94

skipif mysql # not compatible
query I rowsort label-2286
SELECT ALL CAST ( - col1 AS INTEGER ) * - - col0 + 3 FROM tab0 AS cor0
----
-1212
-1824
-94

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 - - col1 * + col0 - + 9 IS NULL
----

query I rowsort
SELECT DISTINCT + 62 + - col1 AS col1 FROM tab1 AS cor0
----
15
48
57

query I rowsort
SELECT DISTINCT + 88 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
88

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col0 ) IS NULL OR ( + 4 + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT ALL + COUNT( * ) * + + ( 56 ) AS col2 FROM tab2
----
168

skipif mysql # not compatible
query I rowsort label-2291
SELECT ALL + COUNT ( * ) * + + ( 56 ) AS col2 FROM tab2
----
168

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2292
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - CAST( NULL AS SIGNED ) * + 3 )
----

skipif mysql # not compatible
query III rowsort label-2292
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - CAST ( NULL AS INTEGER ) * + 3 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT ALL - MAX( DISTINCT - + 11 ) FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-2293
SELECT ALL - MAX ( DISTINCT - + 11 ) FROM tab0 AS cor0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT ALL + ( - MAX( 44 ) ) FROM tab2 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-2294
SELECT ALL + ( - MAX ( 44 ) ) FROM tab2 AS cor0
----
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 74 col2, 14 col0 FROM tab0 AS cor0
----
-74
14
-74
14
-74
14

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2296
SELECT 99 DIV - ( + - ( - CAST( ( + col1 ) AS SIGNED ) ) ) FROM tab1
----
-19
-2
-7

skipif mysql # not compatible
query I rowsort label-2296
SELECT 99 / - ( + - ( - CAST ( ( + col1 ) AS INTEGER ) ) ) FROM tab1
----
-19
-2
-7

query II rowsort
SELECT DISTINCT 48 AS col1, + col2 AS col0 FROM tab1
----
48
59
48
68
48
96

query I rowsort
SELECT DISTINCT 61 * - col2 FROM tab2
----
-1403
-2440
-3538

query I rowsort
SELECT AVG ( 72 ) FROM tab0 WHERE NOT NULL NOT IN ( - ( col0 ) )
----
NULL

query I rowsort
SELECT ( 68 ) AS col2 FROM tab1 WHERE NOT NULL BETWEEN - - col1 AND ( + col1 + + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2301
SELECT ALL + col2 DIV - - 21 AS col0 FROM tab1 AS cor0
----
2
3
4

skipif mysql # not compatible
query I rowsort label-2301
SELECT ALL + col2 / - - 21 AS col0 FROM tab1 AS cor0
----
2
3
4

query I rowsort
SELECT DISTINCT + col2 + + 37 AS col2 FROM tab2 AS cor0
----
60
77
95

query I rowsort
SELECT - + 64 * - - col1 FROM tab1 AS cor0
----
-3008
-320
-896

query I rowsort
SELECT col1 + - col2 * + col0 AS col2 FROM tab0 WHERE NULL < ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2305
SELECT ALL MAX( + ( - CAST( col0 AS SIGNED ) ) ) AS col1 FROM tab1 WHERE NOT ( - col0 * + - col0 ) >= ( ( col1 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2305
SELECT ALL MAX ( + ( - CAST ( col0 AS INTEGER ) ) ) AS col1 FROM tab1 WHERE NOT ( - col0 * + - col0 ) >= ( ( col1 ) )
----
NULL

query II rowsort
SELECT DISTINCT + 0 * - col1 * 86 AS col2, col2 FROM tab0
----
0
10
0
47
0
99

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT BETWEEN col0 - col2 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT + + SUM( - ( - 28 ) ) AS col2 FROM tab1 cor0
----
84

skipif mysql # not compatible
query I rowsort label-2308
SELECT + + SUM ( - ( - 28 ) ) AS col2 FROM tab1 cor0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2309
SELECT DISTINCT 37 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2309
SELECT DISTINCT 37 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT ALL - - SUM( 96 ) FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-2310
SELECT ALL - - SUM ( 96 ) FROM tab1 AS cor0
----
288

query I rowsort
SELECT DISTINCT - 98 + + 20 + col0 FROM tab2 AS cor0
----
-14
-3
-32

query I rowsort
SELECT DISTINCT - 58 + + col2 AS col1 FROM tab0 AS cor0
----
-11
-48
41

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - ( + col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 + - - col1 NOT BETWEEN NULL AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - ( + - 55 ) + - - col0 * 77 FROM tab2 AS cor0
----
3487
4873
5720

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2316
SELECT ALL + + CAST( NULL AS DECIMAL ) + + COUNT( * ) * 40 AS col0 FROM tab1 WHERE 46 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2316
SELECT ALL + + CAST ( NULL AS REAL ) + + COUNT ( * ) * 40 AS col0 FROM tab1 WHERE 46 IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2317
SELECT DISTINCT - 89 DIV - MAX( CAST( col1 AS SIGNED ) ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2317
SELECT DISTINCT - 89 / - MAX ( CAST ( col1 AS INTEGER ) ) AS col1 FROM tab2
----
1

query I rowsort
SELECT 21 + + - col2 + + col2 FROM tab1
----
21
21
21

query III rowsort
SELECT * FROM tab2 WHERE ( + col1 * + + col2 + + + col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 5 * - 67 FROM tab1 WHERE ( NULL ) IS NULL
----
-335
-335
-335

onlyif mysql # aggregate syntax: 
query I rowsort label-2321
SELECT DISTINCT COUNT( * ) + - 6 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2321
SELECT DISTINCT COUNT ( * ) + - 6 FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT DISTINCT - - SUM( ALL + - col2 ) AS col1 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2322
SELECT DISTINCT - - SUM ( ALL + - col2 ) AS col1 FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT COUNT( * ) * + + ( + COUNT( * ) ) FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-2323
SELECT COUNT ( * ) * + + ( + COUNT ( * ) ) FROM tab2 cor0
----
9

query I rowsort
SELECT + 38 * col2 FROM tab0 AS cor0
----
1786
3762
380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2325
SELECT CAST( + + col2 AS SIGNED ) FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-2325
SELECT CAST ( + + col2 AS INTEGER ) FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2326
SELECT MIN( DISTINCT 71 ) AS col0 FROM tab1 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-2326
SELECT MIN ( DISTINCT 71 ) AS col0 FROM tab1 AS cor0
----
71

query I rowsort
SELECT ALL ( - - 41 ) AS col0 FROM tab0
----
41
41
41

query I rowsort
SELECT - - 47 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - - 7 ) col0 FROM tab1 cor0
----
-7
-7
-7

query II rowsort
SELECT DISTINCT + 53 * - col1 AS col2, 4 * col1 AS col2 FROM tab1 AS cor0
----
-2491
188
-265
20
-742
56

query I rowsort
SELECT - 81 * + + 49 AS col2 FROM tab2 AS cor0
----
-3969
-3969
-3969

query I rowsort
SELECT ALL + 87 + - col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-10
0
72

query I rowsort
SELECT ALL col2 * 19 AS col2 FROM tab2
----
1102
437
760

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT ( - SUM( - - col0 ) ) AS col0 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-2334
SELECT ( - SUM ( - - col0 ) ) AS col0 FROM tab2
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2335
SELECT DISTINCT * FROM tab1 WHERE NOT + - CAST( - - col2 AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-2335
SELECT DISTINCT * FROM tab1 WHERE NOT + - CAST ( - - col2 AS INTEGER ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT DISTINCT MAX( - col1 ) * MIN( DISTINCT + col2 ) AS col2 FROM tab1
----
-295

skipif mysql # not compatible
query I rowsort label-2336
SELECT DISTINCT MAX ( - col1 ) * MIN ( DISTINCT + col2 ) AS col2 FROM tab1
----
-295

query I rowsort
SELECT - 46 * + - col2 AS col2 FROM tab0
----
2162
4554
460

query I rowsort
SELECT ALL - 61 + + + col1 FROM tab1
----
-14
-47
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT + ( - - ( + COUNT( * ) ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2339
SELECT + ( - - ( + COUNT ( * ) ) ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL - - col0 + + - 44 FROM tab1 AS cor0
----
41
47
7

query I rowsort
SELECT ALL 35 * - - col2 FROM tab2 AS cor0
----
1400
2030
805

query I rowsort
SELECT ALL + - col1 * 29 FROM tab1 AS cor0
----
-1363
-145
-406

onlyif mysql # aggregate syntax: 
query I rowsort label-2343
SELECT ALL MIN( ALL - col2 ) * MAX( col2 ) AS col1 FROM tab0 cor0
----
-9801

skipif mysql # not compatible
query I rowsort label-2343
SELECT ALL MIN ( ALL - col2 ) * MAX ( col2 ) AS col1 FROM tab0 cor0
----
-9801

onlyif mysql # DIV for integer division: 
query I rowsort label-2344
SELECT 37 + - col0 - + + col2 DIV + - 40 - col0 FROM tab1
----
-132
-144
-63

skipif mysql # not compatible
query I rowsort label-2344
SELECT 37 + - col0 - + + col2 / + - 40 - col0 FROM tab1
----
-132
-144
-63

query I rowsort
SELECT ALL + 39 * - - 55 AS col1 FROM tab0
----
2145
2145
2145

query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 WHERE NOT - col2 NOT BETWEEN NULL AND ( + col0 ) + + + 50 * - col2 / - col1 * - + col1
----

query II rowsort
SELECT ALL - col2 AS col2, + ( + + col2 ) + col0 * col0 - - 55 FROM tab0 AS cor0
----
-10
7634
-47
327
-99
9563

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2348
SELECT - 35 * + COUNT( * ) + COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2348
SELECT - 35 * + COUNT ( * ) + COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL - col0 + + 52 * + col2 FROM tab0 AS cor0
----
2429
433
5051

query I rowsort
SELECT DISTINCT + 6 - + col0 FROM tab2 AS cor0
----
-40
-58
-69

query I rowsort
SELECT ALL col2 - - col0 AS col0 FROM tab1 cor0
----
144
147
159

query I rowsort
SELECT DISTINCT 64 - + 49 * + ( col1 ) FROM tab1
----
-181
-2239
-622

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT + col0 / + col2 NOT IN ( + col2 / - ( + col2 ) + 57 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2354
SELECT ALL - col2 - - ( - - CAST( 71 AS SIGNED ) ) FROM tab1
----
-25
12
3

skipif mysql # not compatible
query I rowsort label-2354
SELECT ALL - col2 - - ( - - CAST ( 71 AS INTEGER ) ) FROM tab1
----
-25
12
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT ALL - 53 * - COUNT( * ) - COUNT( * ) - - COUNT( * ) AS col1 FROM tab0 cor0
----
159

skipif mysql # not compatible
query I rowsort label-2355
SELECT ALL - 53 * - COUNT ( * ) - COUNT ( * ) - - COUNT ( * ) AS col1 FROM tab0 cor0
----
159

onlyif mysql # DIV for integer division: 
query I rowsort label-2356
SELECT ALL + col2 DIV + - col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2356
SELECT ALL + col2 / + - col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col2 / - + 28 * - + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + 37 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col1 ) col0 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT - SUM( - - col2 ) AS col2 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-2360
SELECT - SUM ( - - col2 ) AS col2 FROM tab2
----
-121

query I rowsort
SELECT + 48 AS col1 FROM tab2 AS cor0 WHERE NOT ( - + col2 > 34 + 53 )
----
48
48
48

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE col0 NOT IN ( - + col2 - col1 )
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT DISTINCT MIN( ALL + + 52 ) FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-2363
SELECT DISTINCT MIN ( ALL + + 52 ) FROM tab0 AS cor0
----
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col2 * + col0 + - 33 + col2 + ( + ( - col2 ) ) - 34 col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( col2, col0 * - col2 * col2 + + col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * 24 <= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2368
SELECT DISTINCT + 74 AS col1, col2 * 40 DIV 62 AS col2 FROM tab1 AS cor0
----
74
38
74
43
74
61

skipif mysql # not compatible
query II rowsort label-2368
SELECT DISTINCT + 74 AS col1, col2 * 40 / 62 AS col2 FROM tab1 AS cor0
----
74
38
74
43
74
61

query I rowsort
SELECT 81 * ( + col0 ) AS col0 FROM tab1
----
4131
6885
7371

query I rowsort
SELECT ALL - col1 * - 25 AS col1 FROM tab0
----
2025
25
525

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2371
SELECT + MIN( col2 ) DIV 10 AS col0 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-2371
SELECT + MIN ( col2 ) / 10 AS col0 FROM tab1
----
5

query I rowsort
SELECT - col1 * + col1 * + col2 * - col2 + + + col0 AS col2 FROM tab2
----
1375975
15101071
9486464

query I rowsort
SELECT ALL ( + + 69 ) FROM tab1
----
69
69
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2374
SELECT + CAST( NULL AS SIGNED ) + - 27 * ( - col1 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2374
SELECT + CAST ( NULL AS INTEGER ) + - 27 * ( - col1 ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2375
SELECT DISTINCT - - 38 - + - col0 DIV - col1 + - - 85 AS col0 FROM tab0 WHERE col0 IS NOT NULL
----
119
123
26

skipif mysql # not compatible
query I rowsort label-2375
SELECT DISTINCT - - 38 - + - col0 / - col1 + - - 85 AS col0 FROM tab0 WHERE col0 IS NOT NULL
----
119
123
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + + + col0 col0 FROM tab2 cor0
----
141
142
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2377
SELECT ALL + CAST( NULL AS SIGNED ) + - - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2377
SELECT ALL + CAST ( NULL AS INTEGER ) + - - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col2 + - - 93 AS col2 FROM tab0 cor0
----
-6
46
83

query I rowsort
SELECT ( + + col0 ) * + col0 FROM tab1 AS cor0
----
2601
7225
8281

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2380
SELECT + SUM( ALL - col1 ) * + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2380
SELECT + SUM ( ALL - col1 ) * + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
NULL

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL <> NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL BETWEEN col0 AND NULL )
----

query I rowsort
SELECT col1 * + col0 * + col1 + col1 FROM tab1 AS cor0
----
10010
201066
2130

onlyif mysql # aggregate syntax: 
query I rowsort label-2384
SELECT DISTINCT - MAX( ALL - ( col1 ) ) AS col2 FROM tab2 AS cor0 WHERE NOT - col2 * - col2 * - 38 BETWEEN + col2 AND NULL
----
51

skipif mysql # not compatible
query I rowsort label-2384
SELECT DISTINCT - MAX ( ALL - ( col1 ) ) AS col2 FROM tab2 AS cor0 WHERE NOT - col2 * - col2 * - 38 BETWEEN + col2 AND NULL
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2385
SELECT + 53 + + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2385
SELECT + 53 + + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + - col1 * - - col0 AS col1 FROM tab2 AS cor0
----
-2295
-4851
-4958

query I rowsort
SELECT ALL - col1 * - - 35 + + ( col1 ) AS col1 FROM tab1 AS cor0
----
-1598
-170
-476

query I rowsort
SELECT - col2 + - 40 AS col0 FROM tab2 AS cor0
----
-63
-80
-98

query I rowsort
SELECT - col0 + - 15 AS col2 FROM tab1 cor0
----
-100
-106
-66

query I rowsort
SELECT + 71 + col1 AS col2 FROM tab1 AS cor0
----
118
76
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT DISTINCT - ( - 62 ) - + COUNT( * ) * + + COUNT( * ) FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-2391
SELECT DISTINCT - ( - 62 ) - + COUNT ( * ) * + + COUNT ( * ) FROM tab2
----
53

query I rowsort
SELECT ALL + col2 - col2 * + 76 AS col0 FROM tab2
----
-1725
-3000
-4350

query II rowsort
SELECT + col0, col1 AS col2 FROM tab2
----
46
51
64
77
75
67

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NOT + col1 * 88 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2395
SELECT ALL 13 AS col0, CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
13
NULL
13
NULL
13
NULL

skipif mysql # not compatible
query II rowsort label-2395
SELECT ALL 13 AS col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
13
NULL
13
NULL
13
NULL

query I rowsort
SELECT ALL col1 * - 5 AS col0 FROM tab1 AS cor0
----
-235
-25
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT ALL + - SUM( - 65 ) AS col2 FROM tab0 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-2397
SELECT ALL + - SUM ( - 65 ) AS col2 FROM tab0 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT ALL + - MAX( - 3 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2398
SELECT ALL + - MAX ( - 3 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT DISTINCT + + MIN( - col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2399
SELECT DISTINCT + + MIN ( - col2 ) FROM tab0 AS cor0
----
-99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( - - 74 ) AND NULL
----

query I rowsort
SELECT DISTINCT - 48 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN 11 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2402
SELECT DISTINCT - col1 DIV + col2 - - col1 AS col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2402
SELECT DISTINCT - col1 / + col2 - - col1 AS col2 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2403
SELECT ALL + - CAST( NULL AS SIGNED ) AS col1, 23 + + col2 FROM tab1 AS cor0
----
NULL
119
NULL
82
NULL
91

skipif mysql # not compatible
query II rowsort label-2403
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col1, 23 + + col2 FROM tab1 AS cor0
----
NULL
119
NULL
82
NULL
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT + COUNT( DISTINCT - 97 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2404
SELECT + COUNT ( DISTINCT - 97 ) FROM tab1
----
1

query I rowsort
SELECT 26 * + ( col0 ) AS col0 FROM tab1 AS cor0
----
1326
2210
2366

query II rowsort
SELECT + + col0 + - - col0 AS col2, col1 FROM tab2 cor0
----
128
77
150
67
92
51

query II rowsort
SELECT + col0 + + - col1 AS col2, - 39 AS col1 FROM tab0 AS cor0
----
-66
-39
66
-39
96
-39

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <> col1 - + + col2
----

query I rowsort
SELECT + 59 + + col1 * + + col1 * + col2 FROM tab0 AS cor0
----
158
308426
4469

onlyif mysql # aggregate syntax: 
query I rowsort label-2410
SELECT - MAX( - - 40 ) + - 76 - 92 FROM tab1 WHERE + 72 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2410
SELECT - MAX ( - - 40 ) + - 76 - 92 FROM tab1 WHERE + 72 IS NULL
----
NULL

query I rowsort
SELECT + ( - col1 ) FROM tab2 WHERE ( ( - col0 BETWEEN ( - col1 ) AND NULL ) )
----

query I rowsort
SELECT 19 AS col0 FROM tab1 WHERE NULL IS NULL
----
19
19
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2413
SELECT DISTINCT COUNT( * ) + + MIN( - col0 ) + - COUNT( * ) AS col0 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-2413
SELECT DISTINCT COUNT ( * ) + + MIN ( - col0 ) + - COUNT ( * ) AS col0 FROM tab1
----
-91

query I rowsort
SELECT + 95 - + col2 FROM tab2 AS cor0
----
37
55
72

query I rowsort
SELECT ALL + 12 - col0 AS col2 FROM tab0 AS cor0
----
-3
-75
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2416
SELECT ALL 85 * 9 - COUNT( * ) AS col2 FROM tab1
----
762

skipif mysql # not compatible
query I rowsort label-2416
SELECT ALL 85 * 9 - COUNT ( * ) AS col2 FROM tab1
----
762

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT 78 * - + MIN( ALL ( - - col0 ) ) FROM tab1
----
-3978

skipif mysql # not compatible
query I rowsort label-2417
SELECT 78 * - + MIN ( ALL ( - - col0 ) ) FROM tab1
----
-3978

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2418
SELECT + CAST( - ( - 75 ) AS SIGNED ) DIV - + col2 AS col2 FROM tab0 AS cor0
----
-1
-7
0

skipif mysql # not compatible
query I rowsort label-2418
SELECT + CAST ( - ( - 75 ) AS INTEGER ) / - + col2 AS col2 FROM tab0 AS cor0
----
-1
-7
0

query I rowsort
SELECT - 79 FROM tab2 AS cor0 WHERE + 33 IS NOT NULL
----
-79
-79
-79

query II rowsort
SELECT 7, col0 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 51 + - 72 col0 FROM tab0 AS cor0
----
-21
-21
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT ALL - COUNT( * ) + - + 88 AS col1 FROM tab2 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-2422
SELECT ALL - COUNT ( * ) + - + 88 AS col1 FROM tab2 cor0
----
-91

query I rowsort
SELECT ALL - 62 * - + col2 AS col1 FROM tab2 AS cor0
----
1426
2480
3596

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 >= 8
----
51
14
96
91
47
68

query II rowsort
SELECT col2, - col2 * col2 FROM tab0
----
10
-100
47
-2209
99
-9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 15 ) col1 FROM tab1 WHERE NULL <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2427
SELECT ALL - col2 DIV - col2 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2427
SELECT ALL - col2 / - col2 AS col1 FROM tab0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT DISTINCT 44 * - MAX( + 9 ) FROM tab1
----
-396

skipif mysql # not compatible
query I rowsort label-2428
SELECT DISTINCT 44 * - MAX ( + 9 ) FROM tab1
----
-396

query II rowsort
SELECT 69, - col1 * - col0 + col1 * - col2 * + col1 AS col1 FROM tab0 AS cor0
----
69
-2
69
-2583
69
-307152

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT + MAX( ALL + - col0 ) - - AVG ( ALL + 24 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col1 - + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2430
SELECT + MAX ( ALL + - col0 ) - - AVG ( ALL + 24 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col1 - + col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT DISTINCT + + COUNT( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2431
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2432
SELECT + CAST( NULL AS SIGNED ) * - + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2432
SELECT + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 42 * + col2 FROM tab2
----
1680
2436
966

query II rowsort
SELECT + col1 AS col2, col1 AS col2 FROM tab1 cor0
----
14
14
47
47
5
5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 + + - ( 72 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 + + 29 - - 25 FROM tab0 AS cor0
----
135
55
75

query I rowsort
SELECT + - 21 - + col1 + - 74 AS col1 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 98, - 17 col2 FROM tab2 AS cor0
----
-98
-17
-98
-17
-98
-17

query II rowsort
SELECT DISTINCT col1, col2 AS col1 FROM tab0 AS cor0
----
1
99
21
10
81
47

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 82 ) NOT BETWEEN 87 * - col2 * - col1 + - + 75 * 7 + + + col1 AND NULL AND NULL IS NOT NULL
----

query I rowsort
SELECT ALL ( ( + + col2 ) ) + - 98 FROM tab0
----
-51
-88
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2442
SELECT DISTINCT MIN( ALL - - col0 ) col2 FROM tab1
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2442
SELECT DISTINCT MIN ( ALL - - col0 ) col2 FROM tab1
----
51

query I rowsort
SELECT + 91 AS col1 FROM tab0 WHERE NULL NOT BETWEEN + - 31 AND - ( + - col0 )
----

query I rowsort
SELECT ALL + 17 + + col0 * + - 33 + - col2 AS col0 FROM tab2 WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2445
SELECT * FROM tab0 WHERE NULL < 72 * + col2 + + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2445
SELECT * FROM tab0 WHERE NULL < 72 * + col2 + + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + 7 * 85 * - 89 - + - col2 AS col1 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2447
SELECT 17 + + ( + col2 ) FROM tab0 AS cor0 WHERE - 41 IN ( - 17 + col2 * + ( CAST( 97 AS SIGNED ) ) * + - col2, col2 )
----

skipif mysql # not compatible
query I rowsort label-2447
SELECT 17 + + ( + col2 ) FROM tab0 AS cor0 WHERE - 41 IN ( - 17 + col2 * + ( CAST ( 97 AS INTEGER ) ) * + - col2, col2 )
----

query II rowsort
SELECT - col2 * col0 AS col2, col2 AS col1 FROM tab0 cor0
----
-705
47
-870
10
-9603
99

query I rowsort
SELECT ALL 78 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT + 29 - + - col2 AS col0 FROM tab0
----
128
39
76

query I rowsort
SELECT ALL - + col1 * col1 * ( - ( col2 ) ) + - ( - - ( - - col1 ) ) * - - col1 FROM tab0 AS cor0
----
301806
3969
98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2452
SELECT - CAST( NULL AS DECIMAL ) * + 1 - + 41 - + - 46 + + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2452
SELECT - CAST ( NULL AS REAL ) * + 1 - + 41 - + - 46 + + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 10 * col0 + - col1 AS col2 FROM tab2 AS cor0
----
409
563
683

query I rowsort
SELECT 76 * - - 40 + + col2 AS col1 FROM tab0 AS cor0
----
3050
3087
3139

query II rowsort
SELECT + col2 AS col2, col1 AS col0 FROM tab2 cor0
----
23
51
40
77
58
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1, - col1 * + 89 col2 FROM tab1 AS cor0
----
14
-1246
47
-4183
5
-445

onlyif mysql # aggregate syntax: 
query II rowsort label-2457
SELECT ALL - - 22 col2, 13 * - COUNT( * ) FROM tab0 AS cor0
----
22
-39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2457
SELECT ALL - - 22 col2, 13 * - COUNT ( * ) FROM tab0 AS cor0
----
22
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2458
SELECT col1 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2458
SELECT col1 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab2 AS cor0 WHERE NOT col0 = - 78
----
51
67
77

onlyif mysql # aggregate syntax: 
query II rowsort label-2460
SELECT ALL - COUNT( * ) AS col2, COUNT( * ) + MAX( - col1 ) FROM tab1 AS cor0
----
-3
-2

skipif mysql # not compatible
query II rowsort label-2460
SELECT ALL - COUNT ( * ) AS col2, COUNT ( * ) + MAX ( - col1 ) FROM tab1 AS cor0
----
-3
-2

query II rowsort
SELECT - col0 AS col1, 85 * - 65 FROM tab0 AS cor0
----
-15
-5525
-87
-5525
-97
-5525

query I rowsort
SELECT ALL - ( - - col0 ) FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT 44 * + - col2 FROM tab1
----
-2596
-2992
-4224

onlyif mysql # aggregate syntax: 
query I rowsort label-2464
SELECT - MIN( - - 31 ) AS col1 FROM tab1, tab2 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-2464
SELECT - MIN ( - - 31 ) AS col1 FROM tab1, tab2 AS cor0
----
-31

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2465
SELECT * FROM tab2 WHERE NOT + col2 - + - CAST( col2 AS DECIMAL ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-2465
SELECT * FROM tab2 WHERE NOT + col2 - + - CAST ( col2 AS REAL ) <= NULL
----

query I rowsort
SELECT ALL - 59 AS col0 FROM tab2
----
-59
-59
-59

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= 59 * + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2468
SELECT + + MAX( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2468
SELECT + + MAX ( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT + - MAX( ALL + ( + col1 ) ) AS col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-2469
SELECT + - MAX ( ALL + ( + col1 ) ) AS col0 FROM tab2 AS cor0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2470
SELECT ALL * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) > + col1
----

skipif mysql # not compatible
query III rowsort label-2470
SELECT ALL * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) > + col1
----

query I rowsort
SELECT DISTINCT + col0 * - 86 FROM tab2
----
-3956
-5504
-6450

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 58 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 25 * + col0 * + col0 + + col2 FROM tab0
----
-189215
-235126
-5578

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2474
SELECT DISTINCT - CAST( + ( col2 ) AS SIGNED ) col0 FROM tab1 AS cor0 WHERE 3 + - col1 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2474
SELECT DISTINCT - CAST ( + ( col2 ) AS INTEGER ) col0 FROM tab1 AS cor0 WHERE 3 + - col1 IS NULL
----

query I rowsort
SELECT + col0 AS col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( col0 * col2 * - + ( + col0 ) )
----

query I rowsort
SELECT col1 + + col2 + col1 * 58 AS col0 FROM tab2 AS cor0
----
3032
4011
4583

query I rowsort
SELECT ALL + 86 + + col1 + + + 69 AS col0 FROM tab0 AS cor0
----
156
176
236

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NULL IN ( + 62 )
----

query II rowsort
SELECT DISTINCT - col2 * - + 22 * 73 AS col1, 0 AS col2 FROM tab2 cor0
----
36938
0
64240
0
93148
0

query I rowsort
SELECT DISTINCT + ( + col2 ) * - + col1 * col0 * + - 84 AS col0 FROM tab1 AS cor0
----
2106300
24430224
5757696

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= + col0 + - col1 + + col1
----

query I rowsort
SELECT DISTINCT - 69 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2483
SELECT COUNT( * ) FROM tab2 WHERE + col1 <> + + 24 * col1
----
3

skipif mysql # not compatible
query I rowsort label-2483
SELECT COUNT ( * ) FROM tab2 WHERE + col1 <> + + 24 * col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2484
SELECT DISTINCT col0 + col0 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2484
SELECT DISTINCT col0 + col0 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2485
SELECT MAX( ALL + + col2 ) col2 FROM tab1 WHERE - ( + - ( + + 53 ) ) + 27 * 11 / col0 <> 47
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2485
SELECT MAX ( ALL + + col2 ) col2 FROM tab1 WHERE - ( + - ( + + 53 ) ) + 27 * 11 / col0 <> 47
----
96

query II rowsort
SELECT 47 AS col1, col0 FROM tab1
----
47
51
47
85
47
91

query I rowsort
SELECT + 25 * + + col2 FROM tab0
----
1175
2475
250

query II rowsort
SELECT ALL + ( + col2 ), 16 FROM tab1
----
59
16
68
16
96
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2489
SELECT 84 AS col2, - 78 DIV - COUNT( * ) FROM tab1
----
84
26

skipif mysql # not compatible
query II rowsort label-2489
SELECT 84 AS col2, - 78 / - COUNT ( * ) FROM tab1
----
84
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + - 82 * - col2 col0 FROM tab0 WHERE NOT NULL < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2491
SELECT + col0 - + 4 + - 18 + + col2 DIV - col1 FROM tab2
----
24
42
53

skipif mysql # not compatible
query I rowsort label-2491
SELECT + col0 - + 4 + - 18 + + col2 / - col1 FROM tab2
----
24
42
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2492
SELECT DISTINCT - ( + - CAST( NULL AS SIGNED ) ) / 33 * - SUM( ALL - 89 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2492
SELECT DISTINCT - ( + - CAST ( NULL AS INTEGER ) ) / 33 * - SUM ( ALL - 89 ) FROM tab1
----
NULL

query I rowsort
SELECT + col0 + + 40 FROM tab1 AS cor0
----
125
131
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN col2 + col1 * col2 * - col0 AND - 68
----

query III rowsort
SELECT * FROM tab2 WHERE - col2 > col1 / - col1 - - col1 + + 53
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT DISTINCT SUM( DISTINCT + col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-2496
SELECT DISTINCT SUM ( DISTINCT + col2 ) FROM tab0
----
156

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - col1, + ( - 17 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( ( col0 ) ) >= ( + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2498
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( ( col0 ) ) >= ( + col0 )
----
0

query I rowsort
SELECT + ( + col0 ) * - col1 AS col0 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT ALL - 64 AS col0 FROM tab1 AS cor0
----
-64
-64
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT SUM( - col1 ) * - + 91 FROM tab0 AS cor0
----
9373

skipif mysql # not compatible
query I rowsort label-2501
SELECT SUM ( - col1 ) * - + 91 FROM tab0 AS cor0
----
9373

query I rowsort
SELECT DISTINCT col1 * - - col0 FROM tab2 WHERE NULL >= col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2503
SELECT * FROM tab0 WHERE NOT NULL BETWEEN col2 + - - col0 + + - CAST( NULL AS SIGNED ) * + col2 + 72 * - 42 * - 67 AND + col2
----

skipif mysql # not compatible
query III rowsort label-2503
SELECT * FROM tab0 WHERE NOT NULL BETWEEN col2 + - - col0 + + - CAST ( NULL AS INTEGER ) * + col2 + 72 * - 42 * - 67 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2504
SELECT ALL ( - MIN( ALL + 52 ) ) AS col0 FROM tab0
----
-52

skipif mysql # not compatible
query I rowsort label-2504
SELECT ALL ( - MIN ( ALL + 52 ) ) AS col0 FROM tab0
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2505
SELECT + COUNT( * ) DIV + 74 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2505
SELECT + COUNT ( * ) / + 74 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT ALL - COUNT( DISTINCT col0 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2506
SELECT ALL - COUNT ( DISTINCT col0 ) AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT - ( COUNT( * ) ) col0 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2507
SELECT - ( COUNT ( * ) ) col0 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT MIN( + + col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-2508
SELECT MIN ( + + col2 ) FROM tab2
----
23

query II rowsort
SELECT ALL col2 * - col1 AS col1, + col1 * - col2 - + + 43 * 59 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= + col0 + + - ( col0 ) + - 49 * + col1 + + + 74
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2511
SELECT DISTINCT - COUNT( * ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-2511
SELECT DISTINCT - COUNT ( * ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

query II rowsort
SELECT DISTINCT - col1 * col2 * ( col1 ), 60 + + col1 AS col2 FROM tab0
----
-308367
141
-4410
81
-99
61

query II rowsort
SELECT ALL col2 + - col1 AS col2, col0 + 77 * - - 3 + + + col0 + + 13 FROM tab1
----
21
426
54
414
82
346

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 22 + - col1 + + col0 = - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2515
SELECT * FROM tab1 AS cor0 WHERE - col1 / - 65 * + - col0 > + CAST( NULL AS SIGNED ) * 68
----

skipif mysql # not compatible
query III rowsort label-2515
SELECT * FROM tab1 AS cor0 WHERE - col1 / - 65 * + - col0 > + CAST ( NULL AS INTEGER ) * 68
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2516
SELECT * FROM tab2 cor0 WHERE 14 < + CAST( - 80 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2516
SELECT * FROM tab2 cor0 WHERE 14 < + CAST ( - 80 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2517
SELECT ALL - COUNT( * ) * - COUNT( * ) * 13 FROM tab2 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-2517
SELECT ALL - COUNT ( * ) * - COUNT ( * ) * 13 FROM tab2 AS cor0
----
117

query I rowsort
SELECT - col1 + + col0 - col0 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-2519
SELECT - + col2 + + 86 DIV col2 col1 FROM tab1 AS cor0
----
-58
-67
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2519
SELECT - + col2 + + 86 / col2 col1 FROM tab1 AS cor0
----
-58
-67
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT - MAX( ALL + + col0 ) + 64 * + MAX( + col1 ) FROM tab1
----
2917

skipif mysql # not compatible
query I rowsort label-2520
SELECT - MAX ( ALL + + col0 ) + 64 * + MAX ( + col1 ) FROM tab1
----
2917

onlyif mysql # DIV for integer division: 
query I rowsort label-2521
SELECT DISTINCT 36 DIV 20 col1 FROM tab1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2521
SELECT DISTINCT 36 / 20 col1 FROM tab1
----
1

query I rowsort
SELECT DISTINCT + col2 - + + 93 AS col2 FROM tab1
----
-25
-34
3

query I rowsort
SELECT ALL 45 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT + col1 * + + col0 FROM tab1
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT ALL - COUNT( * ) AS col2 FROM tab2 WHERE NOT col1 NOT BETWEEN + + col0 * + col2 AND + 38
----
0

skipif mysql # not compatible
query I rowsort label-2525
SELECT ALL - COUNT ( * ) AS col2 FROM tab2 WHERE NOT col1 NOT BETWEEN + + col0 * + col2 AND + 38
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2526
SELECT - SUM( ALL ( - 92 ) ) AS col2 FROM tab0 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-2526
SELECT - SUM ( ALL ( - 92 ) ) AS col2 FROM tab0 AS cor0
----
276

query I rowsort
SELECT DISTINCT 72 FROM tab1 AS cor0 WHERE NULL IS NULL
----
72

query I rowsort
SELECT - + col0 - 54 FROM tab0 cor0
----
-141
-151
-69

query I rowsort
SELECT ALL 73 * - + 7 AS col1 FROM tab0
----
-511
-511
-511

query I rowsort
SELECT ALL + 48 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2531
SELECT - + 64 * + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2531
SELECT - + 64 * + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 27, - col0 col0 FROM tab2 AS cor0
----
27
-46
27
-64
27
-75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 >= NULL
----

query I rowsort
SELECT 99 * 18 AS col1 FROM tab1 AS cor0
----
1782
1782
1782

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2535
SELECT DISTINCT col0 * + col2 + + CAST( - - col1 AS SIGNED ), + col1 AS col1 FROM tab1 cor0
----
4910
14
5020
5
6235
47

skipif mysql # not compatible
query II rowsort label-2535
SELECT DISTINCT col0 * + col2 + + CAST ( - - col1 AS INTEGER ), + col1 AS col1 FROM tab1 cor0
----
4910
14
5020
5
6235
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT SUM( - + ( - + col1 ) ) FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-2536
SELECT SUM ( - + ( - + col1 ) ) FROM tab1 cor0
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 70 col0, col2 FROM tab0 AS cor0
----
70
10
70
47
70
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col2, 24 col0 FROM tab0 cor0
----
10
24
47
24
99
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + + 66 ) col0 FROM tab2
----
66
66
66

query I rowsort
SELECT + - col0 AS col1 FROM tab2 WHERE NOT + col2 IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT DISTINCT MAX( + + col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-2541
SELECT DISTINCT MAX ( + + col2 ) FROM tab1
----
96

query I rowsort
SELECT + - col1 * - - col2 AS col0 FROM tab0 WHERE NOT - - 62 >= - col1 / - col0
----

query I rowsort
SELECT DISTINCT + - ( - 13 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
13

query I rowsort
SELECT - col1 + col2 + - 57 FROM tab2
----
-66
-85
-94

query II rowsort
SELECT ALL 18 * + col2 + col1, ( + col0 ) FROM tab1 AS cor0
----
1067
85
1271
91
1742
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2546
SELECT 12 + + COUNT( * ) AS col2 FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-2546
SELECT 12 + + COUNT ( * ) AS col2 FROM tab0 cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2547
SELECT ALL + col0 + - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2547
SELECT ALL + col0 + - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + - - col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2549
SELECT ALL - + 38 - - 56 + - - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2549
SELECT ALL - + 38 - - 56 + - - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 41 + col2 col0 FROM tab1 cor0
----
100
109
137

query I rowsort
SELECT ALL - 23 + + + col2 AS col0 FROM tab1 AS cor0
----
36
45
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT ALL MAX( - 64 ) AS col1 FROM tab0 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-2552
SELECT ALL MAX ( - 64 ) AS col1 FROM tab0 AS cor0
----
-64

query I rowsort
SELECT DISTINCT + col2 * + - col2 - 70 FROM tab0
----
-170
-2279
-9871

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2554
SELECT ALL * FROM tab2 WHERE + + CAST( + - col1 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2554
SELECT ALL * FROM tab2 WHERE + + CAST ( + - col1 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-2555
SELECT ALL - COUNT( col1 ) AS col2, COUNT( * ) FROM tab2
----
-3
3

skipif mysql # not compatible
query II rowsort label-2555
SELECT ALL - COUNT ( col1 ) AS col2, COUNT ( * ) FROM tab2
----
-3
3

query I rowsort
SELECT col0 * + + col0 - - 59 AS col1 FROM tab1
----
2660
7284
8340

query I rowsort
SELECT - col0 AS col0 FROM tab2 WHERE ( + ( - ( 22 ) ) ) IS NOT NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2558
SELECT ALL SUM( - + CAST( - col2 AS SIGNED ) ) AS col0 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-2558
SELECT ALL SUM ( - + CAST ( - col2 AS INTEGER ) ) AS col0 FROM tab0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2559
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) < col1 AND col0 + + + 98 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2559
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) < col1 AND col0 + + + 98 IS NULL
----

query I rowsort
SELECT col1 * col1 + col1 - - col2 FROM tab1
----
2324
306
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2561
SELECT DISTINCT - col1 * CAST( - - col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-2561
SELECT DISTINCT - col1 * CAST ( - - col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT 17 + - COUNT( * ) FROM tab1 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-2562
SELECT 17 + - COUNT ( * ) FROM tab1 AS cor0
----
14

query I rowsort
SELECT DISTINCT + col1 * - 83 + - 56 AS col2 FROM tab0 AS cor0
----
-139
-1799
-6779

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT ALL COUNT( * ) * + 30 AS col0 FROM tab2 cor0
----
90

skipif mysql # not compatible
query I rowsort label-2564
SELECT ALL COUNT ( * ) * + 30 AS col0 FROM tab2 cor0
----
90

query I rowsort
SELECT ALL + - 85 * + 17 FROM tab0 AS cor0
----
-1445
-1445
-1445

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT - - SUM( - + col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-2566
SELECT - - SUM ( - + col0 ) FROM tab1 AS cor0
----
-227

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 67 <> ( NULL )
----

query I rowsort
SELECT ( - 65 ) FROM tab2
----
-65
-65
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-2569
SELECT DISTINCT + 19 + - - col1 - col0 DIV + 23 AS col0 FROM tab2
----
68
83
94

skipif mysql # not compatible
query I rowsort label-2569
SELECT DISTINCT + 19 + - - col1 - col0 / + 23 AS col0 FROM tab2
----
68
83
94

query II rowsort
SELECT DISTINCT - col2 AS col0, 75 AS col1 FROM tab2 AS cor0
----
-23
75
-40
75
-58
75

query II rowsort
SELECT DISTINCT + col2 AS col1, - col0 * - - col1 FROM tab1 AS cor0
----
59
-425
68
-4277
96
-714

onlyif mysql # DIV for integer division: 
query I rowsort label-2572
SELECT DISTINCT col0 + + 66 * + col0 DIV + col0 FROM tab2 AS cor0
----
112
130
141

skipif mysql # not compatible
query I rowsort label-2572
SELECT DISTINCT col0 + + 66 * + col0 / + col0 FROM tab2 AS cor0
----
112
130
141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 97 - - col2 * col0 + + + 98 * + col2 col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 51 * - 66 * - 41 + - ( col2 ) + + 7 FROM tab1 AS cor0
----
137917
137945
137954

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2575
SELECT ALL - + CAST( COUNT( * ) AS SIGNED ) + - 84 FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-2575
SELECT ALL - + CAST ( COUNT ( * ) AS INTEGER ) + - 84 FROM tab1 AS cor0
----
-87

query I rowsort
SELECT DISTINCT - + ( ( col1 ) ) + col2 + + col2 + - col0 - - + col1 * - 89 * - 66 + col0 AS col2 FROM tab0 AS cor0
----
123353
475807
6071

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT + - SUM( DISTINCT + - col0 ) - + - 0 AS col0 FROM tab2 AS cor0 WHERE col0 NOT BETWEEN - + 34 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2577
SELECT + - SUM ( DISTINCT + - col0 ) - + - 0 AS col0 FROM tab2 AS cor0 WHERE col0 NOT BETWEEN - + 34 AND NULL
----
NULL

query I rowsort
SELECT - col1 * + 64 + 50 FROM tab1 AS cor0
----
-270
-2958
-846

query I rowsort
SELECT ALL - + col1 * - 3 + ( + col1 ) FROM tab0 AS cor0
----
324
4
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 28 + col0 col2 FROM tab1 AS cor0
----
23
57
63

query I rowsort
SELECT DISTINCT + ( col1 ) - + col2 AS col0 FROM tab2 AS cor0
----
28
37
9

query II rowsort
SELECT ALL - col0 - - col0, + ( 9 ) AS col1 FROM tab1 AS cor0
----
0
9
0
9
0
9

query I rowsort
SELECT DISTINCT - col0 * 61 + - 30 AS col2 FROM tab1
----
-3141
-5215
-5581

onlyif mysql # DIV for integer division: 
query I rowsort label-2584
SELECT + 74 DIV col2 + + 42 + + + col0 DIV col1 FROM tab2
----
43
44
45

skipif mysql # not compatible
query I rowsort label-2584
SELECT + 74 / col2 + + 42 + + + col0 / col1 FROM tab2
----
43
44
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT DISTINCT COUNT( * ) - - COUNT( + col2 ) col2 FROM tab0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2585
SELECT DISTINCT COUNT ( * ) - - COUNT ( + col2 ) col2 FROM tab0
----
6

query III rowsort
SELECT * FROM tab1 WHERE - + 27 * - col1 - col0 + + col1 BETWEEN + col1 AND - 81 + col2
----

query I rowsort
SELECT DISTINCT + col1 - + - col0 FROM tab0
----
108
96
98

query I rowsort
SELECT ALL col0 - - ( + 54 ) FROM tab2
----
100
118
129

query I rowsort
SELECT - col1 + + col2 + - + col0 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col1 * col2 * + - 65 FROM tab0
----
-13650
-247455
-6435

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 IN ( - col2 - + ( + 19 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2592
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( - col0, - col2, - col1 + + ( 97 ) / - + col2, - 41, - col0 + - 11 )
----
0

skipif mysql # not compatible
query I rowsort label-2592
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( - col0, - col2, - col1 + + ( 97 ) / - + col2, - 41, - col0 + - 11 )
----
0

query I rowsort
SELECT - - 87 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT col1 * - - col0 AS col2 FROM tab2 cor0
----
2346
4928
5025

onlyif mysql # DIV for integer division: 
query I rowsort label-2595
SELECT DISTINCT 39 DIV - 53 + col0 AS col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2595
SELECT DISTINCT 39 / - 53 + col0 AS col0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT + 13 * COUNT( * ) + - 62 * - COUNT( * ) col0 FROM tab1 AS cor0
----
225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2596
SELECT + 13 * COUNT ( * ) + - 62 * - COUNT ( * ) col0 FROM tab1 AS cor0
----
225

query I rowsort
SELECT 28 * + col0 FROM tab2 AS cor0
----
1288
1792
2100

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT ALL SUM( - col1 ) + + + 61 FROM tab2 AS cor0
----
-134

skipif mysql # not compatible
query I rowsort label-2598
SELECT ALL SUM ( - col1 ) + + + 61 FROM tab2 AS cor0
----
-134

query I rowsort
SELECT DISTINCT - + col0 / - 92 - - 82 * - + 92 + + col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT 99 * - col2 FROM tab0 AS cor0
----
-4653
-9801
-990

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND + 9
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2602
SELECT ALL + col0 / col2 AS col0, + CAST( + + col0 AS DECIMAL ) + col1 / - - col2 AS col1 FROM tab0 WHERE NOT + col0 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-2602
SELECT ALL + col0 / col2 AS col0, + CAST ( + + col0 AS REAL ) + col1 / - - col2 AS col1 FROM tab0 WHERE NOT + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 20 * + col1 col1 FROM tab0
----
1620
20
420

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= - + 72 - col0 * 10
----

query II rowsort
SELECT col0, - col1 * + col2 AS col2 FROM tab0
----
15
-3807
87
-210
97
-99

query I rowsort
SELECT ALL col2 + - - 49 * + col2 FROM tab0
----
2350
4950
500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2607
SELECT ALL - - CAST( + 97 AS SIGNED ) + col2 AS col1 FROM tab1 AS cor0
----
156
165
193

skipif mysql # not compatible
query I rowsort label-2607
SELECT ALL - - CAST ( + 97 AS INTEGER ) + col2 AS col1 FROM tab1 AS cor0
----
156
165
193

query I rowsort
SELECT DISTINCT - col0 + - 45 * col1 AS col1 FROM tab1 AS cor0
----
-2206
-310
-681

query III rowsort
SELECT * FROM tab2 cor0 WHERE 88 + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col1 col1 FROM tab0 AS cor0
----
162
2
42

query I rowsort
SELECT ALL 53 + + + col0 FROM tab2
----
117
128
99

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL BETWEEN + col1 + - 40 AND 27 + + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT - - COUNT( ALL col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2613
SELECT - - COUNT ( ALL col1 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2614
SELECT DISTINCT + COUNT( * ) + - - 49 FROM tab2 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-2614
SELECT DISTINCT + COUNT ( * ) + - - 49 FROM tab2 AS cor0
----
52

query I rowsort
SELECT DISTINCT - col1 - 40 AS col2 FROM tab0 AS cor0
----
-121
-41
-61

query I rowsort
SELECT ALL 60 + + 12 FROM tab2
----
72
72
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 23 ) col1 FROM tab2
----
23

query I rowsort
SELECT ALL + 25 * - 77 AS col1 FROM tab0
----
-1925
-1925
-1925

query I rowsort
SELECT DISTINCT - - 49 * - col1 FROM tab0 AS cor0
----
-1029
-3969
-49

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2620
SELECT ALL CAST( NULL AS DECIMAL ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2620
SELECT ALL CAST ( NULL AS REAL ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2621
SELECT AVG ( + ( - - CAST( NULL AS SIGNED ) ) ) AS col2, + 33 AS col0 FROM tab2
----
NULL
33

skipif mysql # not compatible
query II rowsort label-2621
SELECT AVG ( + ( - - CAST ( NULL AS INTEGER ) ) ) AS col2, + 33 AS col0 FROM tab2
----
NULL
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2622
SELECT 1, + 2 * + + CAST( NULL AS SIGNED ) * COUNT( * ) AS col2 FROM tab0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2622
SELECT 1, + 2 * + + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2 FROM tab0
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2623
SELECT + - CAST( COUNT( * ) AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2623
SELECT + - CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query II rowsort
SELECT DISTINCT - + 23 * + - col0 + - 77 AS col1, 68 - 9 FROM tab2 AS cor0
----
1395
59
1648
59
981
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2625
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL < CAST( NULL AS SIGNED ) / + col1 * + - col0
----

skipif mysql # not compatible
query I rowsort label-2625
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL < CAST ( NULL AS INTEGER ) / + col1 * + - col0
----

query II rowsort
SELECT ALL + 16, 66 AS col2 FROM tab0 AS cor0
----
16
66
16
66
16
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2627
SELECT ALL - col0 * + CAST( - col1 AS SIGNED ) col1 FROM tab1
----
425
4277
714

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2627
SELECT ALL - col0 * + CAST ( - col1 AS INTEGER ) col1 FROM tab1
----
425
4277
714

query I rowsort
SELECT ( - + col2 ) + - col1 AS col0 FROM tab2
----
-117
-125
-74

query III rowsort
SELECT * FROM tab2 WHERE - - col2 <= - - col2 + + - col0
----

query II rowsort
SELECT + col1 + + col1 AS col1, - 66 + - + col0 FROM tab0
----
162
-81
2
-163
42
-153

query I rowsort
SELECT 46 + - col1 FROM tab1
----
-1
32
41

query I rowsort
SELECT ALL 44 * + 0 AS col2 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( + + col1 + 21 * 86, - col1, - + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2634
SELECT DISTINCT col1 DIV - 10 AS col0 FROM tab0
----
-2
-8
0

skipif mysql # not compatible
query I rowsort label-2634
SELECT DISTINCT col1 / - 10 AS col0 FROM tab0
----
-2
-8
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT - SUM( + - 46 ) FROM tab2 WHERE + col2 + col1 NOT BETWEEN - 1 AND + col0
----
138

skipif mysql # not compatible
query I rowsort label-2635
SELECT - SUM ( + - 46 ) FROM tab2 WHERE + col2 + col1 NOT BETWEEN - 1 AND + col0
----
138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + - col2 * - 63 * - col1 col0 FROM tab1
----
-1096515
-13691664
-8128512

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT - MIN( 52 ) col2 FROM tab1 cor0
----
-52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2637
SELECT - MIN ( 52 ) col2 FROM tab1 cor0
----
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + - col2 col1 FROM tab1 AS cor0
----
3481
4624
9216

query III rowsort
SELECT * FROM tab0 WHERE - col2 * - col0 <= + 19 + - col2 + - + 71
----

query I rowsort
SELECT ALL + col2 + col1 FROM tab1 WHERE NOT NULL <> - - col0 * + - 64
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2641
SELECT col0 + - - CAST( NULL AS SIGNED ) + 0 col0, + col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2641
SELECT col0 + - - CAST ( NULL AS INTEGER ) + 0 col0, + col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2642
SELECT ALL - CAST( NULL AS SIGNED ) + col2 + + col0 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2642
SELECT ALL - CAST ( NULL AS INTEGER ) + col2 + + col0 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2643
SELECT - 42 FROM tab1 AS cor0 WHERE + 39 / - col0 * - 74 < - 94 + col1 * col0 * col2 * CAST( - + ( - - 36 ) AS SIGNED ) - + col1
----

skipif mysql # not compatible
query I rowsort label-2643
SELECT - 42 FROM tab1 AS cor0 WHERE + 39 / - col0 * - 74 < - 94 + col1 * col0 * col2 * CAST ( - + ( - - 36 ) AS INTEGER ) - + col1
----

query I rowsort
SELECT ALL + col2 FROM tab0 cor0 WHERE NOT NULL <= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 + col1 col0 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT ALL - + col1 AS col1 FROM tab2 cor0 WHERE NOT - col1 + + col1 <= NULL
----

query III rowsort
SELECT DISTINCT col1 AS col1, - col1 + - col1 AS col0, - 9 AS col2 FROM tab2 AS cor0
----
9 values hashing to d4a1756d16dc8e8ecd08b886db98adad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2 AS col1, col0 col2 FROM tab1 AS cor0
----
59
85
68
91
96
51

query I rowsort
SELECT ALL 97 AS col0 FROM tab1 cor0 WHERE + col2 * + col0 * col2 IS NULL
----

query II rowsort
SELECT - col0 * - ( - col1 ), - 78 + - col2 AS col0 FROM tab0 AS cor0
----
-1215
-125
-1827
-88
-97
-177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2651
SELECT AVG ( - CAST( NULL AS SIGNED ) ) * - + COUNT( * ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2651
SELECT AVG ( - CAST ( NULL AS INTEGER ) ) * - + COUNT ( * ) col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2652
SELECT ALL - MAX( DISTINCT - - 87 ) AS col0 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-2652
SELECT ALL - MAX ( DISTINCT - - 87 ) AS col0 FROM tab1
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2653
SELECT ALL + CAST( 78 AS SIGNED ) FROM tab0
----
78
78
78

skipif mysql # not compatible
query I rowsort label-2653
SELECT ALL + CAST ( 78 AS INTEGER ) FROM tab0
----
78
78
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 79 col1 FROM tab0 WHERE NOT - col2 * + + col0 / + - 17 * + + 85 <> col2
----

query II rowsort
SELECT DISTINCT col1, ( - - 53 ) * - - col2 FROM tab0
----
1
5247
21
530
81
2491

onlyif mysql # aggregate syntax: 
query II rowsort label-2656
SELECT - 74, 77 - + COUNT( * ) AS col1 FROM tab2
----
-74
74

skipif mysql # not compatible
query II rowsort label-2656
SELECT - 74, 77 - + COUNT ( * ) AS col1 FROM tab2
----
-74
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2657
SELECT CAST( NULL AS SIGNED ) AS col1, col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-2657
SELECT CAST ( NULL AS INTEGER ) AS col1, col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
59
NULL
68
NULL
96

onlyif mysql # aggregate syntax: 
query II rowsort label-2658
SELECT - COUNT( * ), 24 AS col1 FROM tab2 cor0
----
-3
24

skipif mysql # not compatible
query II rowsort label-2658
SELECT - COUNT ( * ), 24 AS col1 FROM tab2 cor0
----
-3
24

query II rowsort
SELECT DISTINCT - col1 AS col2, - col2 AS col2 FROM tab1 AS cor0
----
-14
-96
-47
-68
-5
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2660
SELECT CAST( col2 AS SIGNED ) * - col2 FROM tab2 AS cor0
----
-1600
-3364
-529

skipif mysql # not compatible
query I rowsort label-2660
SELECT CAST ( col2 AS INTEGER ) * - col2 FROM tab2 AS cor0
----
-1600
-3364
-529

query I rowsort
SELECT + - col2 + col1 - - col0 + - col0 FROM tab0 AS cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2662
SELECT CAST( + - MAX( col0 ) AS SIGNED ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-2662
SELECT CAST ( + - MAX ( col0 ) AS INTEGER ) FROM tab1
----
-91

query I rowsort
SELECT + col2 + + - col0 AS col0 FROM tab1 AS cor0
----
-23
-26
45

query I rowsort
SELECT ALL + - col0 + 24 AS col1 FROM tab2 AS cor0
----
-22
-40
-51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2665
SELECT col0 + CAST( NULL AS SIGNED ) AS col2, col1 + + 66 FROM tab0 cor0
----
NULL
147
NULL
67
NULL
87

skipif mysql # not compatible
query II rowsort label-2665
SELECT col0 + CAST ( NULL AS INTEGER ) AS col2, col1 + + 66 FROM tab0 cor0
----
NULL
147
NULL
67
NULL
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT DISTINCT - COUNT( * ) + MIN( + + 92 ) AS col2 FROM tab2 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-2666
SELECT DISTINCT - COUNT ( * ) + MIN ( + + 92 ) AS col2 FROM tab2 AS cor0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2667
SELECT ALL CAST( NULL AS SIGNED ) * - col1 * - + col2 / - 24 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2667
SELECT ALL CAST ( NULL AS INTEGER ) * - col1 * - + col2 / - 24 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT ALL COUNT( * ) * - - 18 AS col1 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-2668
SELECT ALL COUNT ( * ) * - - 18 AS col1 FROM tab2 AS cor0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2669
SELECT DISTINCT col0, + CAST( NULL AS SIGNED ) col2 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2669
SELECT DISTINCT col0, + CAST ( NULL AS INTEGER ) col2 FROM tab2
----
46
NULL
64
NULL
75
NULL

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab2 WHERE NOT ( NULL BETWEEN ( - + col2 ) AND + col1 + + - col2 + - 3 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2671
SELECT DISTINCT COUNT( * ) DIV 98 * + 55 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2671
SELECT DISTINCT COUNT ( * ) / 98 * + 55 FROM tab1
----
0

query I rowsort
SELECT ALL 88 * 1 AS col2 FROM tab1
----
88
88
88

onlyif mysql # DIV for integer division: 
query I rowsort label-2673
SELECT - 41 DIV col0 col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2673
SELECT - 41 / col0 col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2674
SELECT ALL + MAX( DISTINCT - col2 ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-2674
SELECT ALL + MAX ( DISTINCT - col2 ) AS col2 FROM tab0
----
-10

query I rowsort
SELECT + ( + + 30 ) FROM tab2
----
30
30
30

query I rowsort
SELECT DISTINCT + 1 + + 82 FROM tab1 AS cor0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT - + COUNT( * ) - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2677
SELECT - + COUNT ( * ) - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-6

query I rowsort
SELECT ALL + col0 + 91 AS col2 FROM tab0 cor0
----
106
178
188

query I rowsort
SELECT ALL - col2 + + + col1 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2680
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE 93 * + col2 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2680
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE 93 * + col2 < NULL
----
0

query I rowsort
SELECT + 98 + - col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2682
SELECT DISTINCT - 20 DIV ( col0 ) FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2682
SELECT DISTINCT - 20 / ( col0 ) FROM tab0
----
-1
0

query I rowsort
SELECT - ( + col1 ) * 48 FROM tab2
----
-2448
-3216
-3696

query I rowsort
SELECT col2 FROM tab0 WHERE NOT NULL NOT IN ( - col1 * + 80 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2685
SELECT DISTINCT - col0 DIV - 79 AS col2 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-2685
SELECT DISTINCT - col0 / - 79 AS col2 FROM tab0
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2686
SELECT - col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2686
SELECT - col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 * - col2 + + col0 NOT IN ( - 70 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2688
SELECT DISTINCT col1 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2688
SELECT DISTINCT col1 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2689
SELECT + CAST( - SUM( col2 ) AS SIGNED ) AS col1 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-2689
SELECT + CAST ( - SUM ( col2 ) AS INTEGER ) AS col1 FROM tab1
----
-223

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) BETWEEN 21 AND - 1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2691
SELECT DISTINCT COUNT( DISTINCT 19 ) + + COUNT( * ) AS col2 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-2691
SELECT DISTINCT COUNT ( DISTINCT 19 ) + + COUNT ( * ) AS col2 FROM tab1
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2692
SELECT COUNT( 81 ) + COUNT( col0 + - 73 ) DIV 24 col0 FROM tab1 WHERE NOT col2 < 6
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2692
SELECT COUNT ( 81 ) + COUNT ( col0 + - 73 ) / 24 col0 FROM tab1 WHERE NOT col2 < 6
----
3

query I rowsort
SELECT DISTINCT - 8 * col1 - col2 * - col0 AS col0 FROM tab1
----
4784
4975
5812

query I rowsort
SELECT - col1 AS col0 FROM tab0 WHERE ( 81 + + 0 ) <= + col2
----
-1

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) <= col2
----

query I rowsort
SELECT ALL + col2 + - 89 AS col0 FROM tab0
----
-42
-79
10

query I rowsort
SELECT ALL + 40 * - col2 + 42 FROM tab2
----
-1558
-2278
-878

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <= col2 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT + COUNT( * ) - - 40 FROM tab0
----
43

skipif mysql # not compatible
query I rowsort label-2699
SELECT + COUNT ( * ) - - 40 FROM tab0
----
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 10 col2 FROM tab1
----
-10
-10
-10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2701
SELECT DISTINCT * FROM tab1 WHERE col0 NOT BETWEEN ( CAST( ( 86 ) AS SIGNED ) ) AND + 95
----
51
14
96
85
5
59

skipif mysql # not compatible
query III rowsort label-2701
SELECT DISTINCT * FROM tab1 WHERE col0 NOT BETWEEN ( CAST ( ( 86 ) AS INTEGER ) ) AND + 95
----
51
14
96
85
5
59

query I rowsort
SELECT DISTINCT col2 + + 51 AS col2 FROM tab1
----
110
119
147

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * col1 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col2 BETWEEN + 41 AND ( + col0 + + 74 * + col2 )
----
15
81
47
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2705
SELECT col1 col1 FROM tab1 WHERE NOT ( - col0 ) NOT BETWEEN CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2705
SELECT col1 col1 FROM tab1 WHERE NOT ( - col0 ) NOT BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN ( - col2 + + 11 ) AND NULL
----

query I rowsort
SELECT + 14 + col0 AS col2 FROM tab0
----
101
111
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2708
SELECT CAST( - COUNT( DISTINCT + col1 ) AS SIGNED ) col0 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2708
SELECT CAST ( - COUNT ( DISTINCT + col1 ) AS INTEGER ) col0 FROM tab1
----
-3

query III rowsort
SELECT * FROM tab1 WHERE - col0 / + 35 < 41
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 4 + - 13 * + 86 FROM tab2
----
-1122
-1122
-1122

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT MAX( 22 ) FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-2711
SELECT MAX ( 22 ) FROM tab2
----
22

query I rowsort
SELECT ALL - 21 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2713
SELECT ALL * FROM tab1 WHERE NOT - col2 <= - ( CAST( NULL AS SIGNED ) ) / - col0
----

skipif mysql # not compatible
query III rowsort label-2713
SELECT ALL * FROM tab1 WHERE NOT - col2 <= - ( CAST ( NULL AS INTEGER ) ) / - col0
----

query I rowsort
SELECT - ( + col1 ) * - 65 FROM tab0 AS cor0
----
1365
5265
65

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 + col2 IS NULL
----

query I rowsort
SELECT + col2 * 52 FROM tab0 AS cor0
----
2444
5148
520

query I rowsort
SELECT DISTINCT + ( + 43 ) FROM tab0 AS cor0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2718
SELECT + CAST( 56 AS SIGNED ) FROM tab1
----
56
56
56

skipif mysql # not compatible
query I rowsort label-2718
SELECT + CAST ( 56 AS INTEGER ) FROM tab1
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT ALL - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1
----
-9

skipif mysql # not compatible
query I rowsort label-2719
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2720
SELECT ALL + CAST( col0 AS SIGNED ) * - 85 + col1 * - col1 FROM tab1
----
-4531
-7250
-9944

skipif mysql # not compatible
query I rowsort label-2720
SELECT ALL + CAST ( col0 AS INTEGER ) * - 85 + col1 * - col1 FROM tab1
----
-4531
-7250
-9944

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col2 ) NOT BETWEEN - col0 AND NULL
----
51
14
96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 56 >= ( col0 )
----
51
14
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 91 - + ( + 75 - + col0 ) IN ( col0 )
----

query I rowsort
SELECT DISTINCT - 4 * col2 + - 34 * + ( col1 * - col1 ) AS col1 FROM tab0 AS cor0
----
-362
14954
222886

query I rowsort
SELECT DISTINCT + col2 + 50 / - 59 FROM tab2 AS cor0 WHERE 62 IN ( 35 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col0 * 30 + col1 ) NOT IN ( + 19 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + 30 * - col1 + + col2 FROM tab2 AS cor0
----
1553
2068
2350

onlyif mysql # DIV for integer division: 
query I rowsort label-2728
SELECT + col2 DIV col2 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2728
SELECT + col2 / col2 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
1
1
1

query I rowsort
SELECT col0 * 49 + ( col0 ) FROM tab1 AS cor0
----
2550
4250
4550

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col0 - 80 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2731
SELECT + col0 * CAST( NULL AS DECIMAL ) + col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2731
SELECT + col0 * CAST ( NULL AS REAL ) + col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2732
SELECT - col0 DIV + col0 + + 13 FROM tab2 AS cor0
----
12
12
12

skipif mysql # not compatible
query I rowsort label-2732
SELECT - col0 / + col0 + + 13 FROM tab2 AS cor0
----
12
12
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( - 86 ) col2 FROM tab0 AS cor0
----
86

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN ( col2 ) AND 3
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT DISTINCT - 29 + - + MIN( col1 ) FROM tab1
----
-34

skipif mysql # not compatible
query I rowsort label-2735
SELECT DISTINCT - 29 + - + MIN ( col1 ) FROM tab1
----
-34

query I rowsort
SELECT + col1 FROM tab1 WHERE - col2 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT ALL - MAX( ALL + 66 ) AS col1 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-2737
SELECT ALL - MAX ( ALL + 66 ) AS col1 FROM tab2
----
-66

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 <= - ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2739
SELECT DISTINCT - 94 - COUNT( * ) AS col1 FROM tab2 WHERE NOT 33 IS NULL
----
-97

skipif mysql # not compatible
query I rowsort label-2739
SELECT DISTINCT - 94 - COUNT ( * ) AS col1 FROM tab2 WHERE NOT 33 IS NULL
----
-97

query I rowsort
SELECT col0 * + - col0 + - col1 AS col2 FROM tab2
----
-2167
-4173
-5692

query III rowsort
SELECT * FROM tab1 WHERE 21 > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2742
SELECT ( - CAST( NULL AS SIGNED ) ) / + col1 + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2742
SELECT ( - CAST ( NULL AS INTEGER ) ) / + col1 + col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2743
SELECT DISTINCT 2 - - col1 DIV col0 AS col2 FROM tab0 AS cor0
----
2
7

skipif mysql # not compatible
query I rowsort label-2743
SELECT DISTINCT 2 - - col1 / col0 AS col2 FROM tab0 AS cor0
----
2
7

query I rowsort
SELECT DISTINCT col1 + + 2 AS col0 FROM tab1 AS cor0
----
16
49
7

query I rowsort
SELECT - - col0 - - 21 FROM tab1 AS cor0
----
106
112
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT ALL + MAX( - col1 ) AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-2746
SELECT ALL + MAX ( - col1 ) AS col1 FROM tab2
----
-51

onlyif mysql # DIV for integer division: 
query II rowsort label-2747
SELECT ALL + col1, col1 DIV - col0 * ( col2 ) AS col2 FROM tab1 cor0
----
14
0
47
0
5
0

skipif mysql # not compatible
query II rowsort label-2747
SELECT ALL + col1, col1 / - col0 * ( col2 ) AS col2 FROM tab1 cor0
----
14
0
47
0
5
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 * + col1 + + col2 * - col1 col2 FROM tab1 AS cor0
----
-1848
-475
-4888

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 84 * + col1 IS NOT NULL OR NOT col0 = col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 92 - + col2 - - col0 col1 FROM tab0 AS cor0
----
-1855
-7484
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2751
SELECT + - 1 DIV MAX( - + col2 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2751
SELECT + - 1 / MAX ( - + col2 ) FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2752
SELECT DISTINCT + - col0 DIV - 79 * + 11 + - 45 AS col2 FROM tab2 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-2752
SELECT DISTINCT + - col0 / - 79 * + 11 + - 45 AS col2 FROM tab2 AS cor0
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2753
SELECT * FROM tab2 AS cor0 WHERE NOT - ( + - CAST( NULL AS SIGNED ) ) + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2753
SELECT * FROM tab2 AS cor0 WHERE NOT - ( + - CAST ( NULL AS INTEGER ) ) + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + 90 AS col1 FROM tab0 AS cor0
----
-90
-90
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-2755
SELECT ALL 21 DIV - col2 * + 39 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2755
SELECT ALL 21 / - col2 * + 39 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT - MAX( DISTINCT + + col2 ) * + - COUNT( * ) FROM tab2 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-2756
SELECT - MAX ( DISTINCT + + col2 ) * + - COUNT ( * ) FROM tab2 AS cor0
----
174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2757
SELECT + + MAX( DISTINCT CAST( CAST( col1 AS SIGNED ) AS SIGNED ) ) * SUM( col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
10481

skipif mysql # not compatible
query I rowsort label-2757
SELECT + + MAX ( DISTINCT CAST ( CAST ( col1 AS INTEGER ) AS INTEGER ) ) * SUM ( col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
10481

query I rowsort
SELECT ALL - + 65 * - col1 * col2 AS col1 FROM tab1 AS cor0
----
19175
207740
87360

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT - COUNT( DISTINCT col1 ) * - COUNT( * ) - + COUNT( * ) FROM tab1 cor0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2759
SELECT - COUNT ( DISTINCT col1 ) * - COUNT ( * ) - + COUNT ( * ) FROM tab1 cor0 WHERE NOT col2 IS NOT NULL
----
0

query II rowsort
SELECT - - col0, - col0 * col2 AS col0 FROM tab2 AS cor0
----
46
-1058
64
-2560
75
-4350

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col2 / col1 * ( col0 ) + ( 76 ) ) IN ( col0 + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> + 20
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2763
SELECT ALL MIN( + col0 ) col2 FROM tab1 WHERE ( col0 - 98 ) IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2763
SELECT ALL MIN ( + col0 ) col2 FROM tab1 WHERE ( col0 - 98 ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT ALL - COUNT( * ) col0 FROM tab2 WHERE NULL NOT BETWEEN NULL AND col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2764
SELECT ALL - COUNT ( * ) col0 FROM tab2 WHERE NULL NOT BETWEEN NULL AND col1
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col0 ) <= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 col0 FROM tab0
----
92
92
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2767
SELECT MAX( + - col0 ) AS col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2767
SELECT MAX ( + - col0 ) AS col2 FROM tab2 AS cor0
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 5 col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 77 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + - 53 + + col1 ) < 28
----

query I rowsort
SELECT - - col2 + - + col1 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2772
SELECT ALL + ( + 5 ) + + 94 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-2772
SELECT ALL + ( + 5 ) + + 94 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
102

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 4 * + - col0, + col2 col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 7 + - 75 * - - col1 AS col1 FROM tab2 AS cor0
----
-3832
-5032
-5782

query I rowsort
SELECT - col2 * - + 71 + + col2 FROM tab1 AS cor0 WHERE ( col1 ) IS NOT NULL
----
4248
4896
6912

query II rowsort
SELECT ALL + + ( col1 ) + + col0 AS col2, 82 * + 16 * + col0 AS col1 FROM tab1 AS cor0
----
138
119392
65
66912
90
111520

query I rowsort
SELECT DISTINCT col0 + - - 46 AS col0 FROM tab2 AS cor0
----
110
121
92

query II rowsort
SELECT DISTINCT - + col0 * - - col0 + col1 AS col1, 12 FROM tab1 cor0
----
-2587
12
-7220
12
-8234
12

query I rowsort
SELECT DISTINCT + 83 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + - 28 - + col0 + + col0 FROM tab2 cor0
----
-28
-28
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2781
SELECT - CAST( NULL AS SIGNED ) * - col2 * + col2 * ( - - ( 94 ) ) col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2781
SELECT - CAST ( NULL AS INTEGER ) * - col2 * + col2 * ( - - ( 94 ) ) col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 - + + 63 FROM tab1
----
-12
22
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2783
SELECT COUNT( * ) - + COUNT( * ) * + 58 FROM tab2
----
-171

skipif mysql # not compatible
query I rowsort label-2783
SELECT COUNT ( * ) - + COUNT ( * ) * + 58 FROM tab2
----
-171

query I rowsort
SELECT DISTINCT + col2 + - col1 + + + 63 + + ( + - 77 ) * - col1 * 2 AS col0 FROM tab1
----
2301
7322
887

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND ( 3 + + 87 - - ( - col0 ) )
----

query I rowsort
SELECT - col0 + - 50 AS col2 FROM tab2 AS cor0
----
-114
-125
-96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 BETWEEN + - 40 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT DISTINCT 64 * + - MAX( DISTINCT 73 ) FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
-4672

skipif mysql # not compatible
query I rowsort label-2788
SELECT DISTINCT 64 * + - MAX ( DISTINCT 73 ) FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
-4672

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( + + ( + 12 ) ) * - + col0 - - + col1 * + col0 NOT IN ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 9 * - 59 FROM tab2
----
-531
-531
-531

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT COUNT( * ) * + 75 FROM tab2 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-2791
SELECT COUNT ( * ) * + 75 FROM tab2 AS cor0
----
225

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2792
SELECT + col0 DIV col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( - 8 ) IN ( ( + col1 ), 55 + CAST( + + 13 AS SIGNED ) )
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2792
SELECT + col0 / col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( - 8 ) IN ( ( + col1 ), 55 + CAST ( + + 13 AS INTEGER ) )
----
1
1
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( + col0 ) >= NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2794
SELECT DISTINCT col2 DIV - + 45, + col0 FROM tab1 cor0
----
-1
85
-1
91
-2
51

skipif mysql # not compatible
query II rowsort label-2794
SELECT DISTINCT col2 / - + 45, + col0 FROM tab1 cor0
----
-1
85
-1
91
-2
51

onlyif mysql # aggregate syntax: 
query II rowsort label-2795
SELECT ALL + + SUM( col0 ) AS col1, COUNT( * ) + - ( + 60 ) FROM tab0 AS cor0
----
199
-57

skipif mysql # not compatible
query II rowsort label-2795
SELECT ALL + + SUM ( col0 ) AS col1, COUNT ( * ) + - ( + 60 ) FROM tab0 AS cor0
----
199
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2796
SELECT DISTINCT + + COUNT( * ) FROM tab1 cor0 WHERE NOT ( col2 ) BETWEEN NULL AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2796
SELECT DISTINCT + + COUNT ( * ) FROM tab1 cor0 WHERE NOT ( col2 ) BETWEEN NULL AND ( NULL )
----
0

query III rowsort
SELECT DISTINCT - ( - 6 ) AS col1, col2 AS col2, - col2 AS col0 FROM tab2 AS cor0
----
9 values hashing to eaebc0226980aede08ea19542bf8afaf

query I rowsort
SELECT DISTINCT 53 * + col0 AS col2 FROM tab0
----
4611
5141
795

onlyif mysql # aggregate syntax: 
query I rowsort label-2799
SELECT DISTINCT MAX( ALL - + 26 ) FROM tab0
----
-26

skipif mysql # not compatible
query I rowsort label-2799
SELECT DISTINCT MAX ( ALL - + 26 ) FROM tab0
----
-26

query I rowsort
SELECT + - col1 FROM tab1 WHERE NOT + - col1 * + col0 <> NULL
----

query I rowsort
SELECT col0 * - - ( col2 ) FROM tab0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query II rowsort label-2802
SELECT + COUNT( * ), + 78 col0 FROM tab1
----
3
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2802
SELECT + COUNT ( * ), + 78 col0 FROM tab1
----
3
78

query II rowsort
SELECT ALL col2 AS col0, 92 AS col0 FROM tab0 WHERE - - col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT ALL - MAX( col2 ) * + - SUM( DISTINCT 67 ) AS col1 FROM tab2
----
3886

skipif mysql # not compatible
query I rowsort label-2804
SELECT ALL - MAX ( col2 ) * + - SUM ( DISTINCT 67 ) AS col1 FROM tab2
----
3886

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 >= - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2806
SELECT DISTINCT col1 DIV - 45 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-2806
SELECT DISTINCT col1 / - 45 FROM tab1
----
-1
0

query II rowsort
SELECT 45 AS col1, + 73 + 26 FROM tab1
----
45
99
45
99
45
99

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col2 + - col2 - ( + + col2 ) NOT BETWEEN ( NULL ) AND - col1 / + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT + 5 + ( - + COUNT( * ) ) + MAX( DISTINCT - + col2 ) FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-2809
SELECT + 5 + ( - + COUNT ( * ) ) + MAX ( DISTINCT - + col2 ) FROM tab1
----
-57

query I rowsort
SELECT ALL 53 + 3 FROM tab0
----
56
56
56

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - 89 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT 81 + - COUNT( * ) * + 99 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-810

skipif mysql # not compatible
query I rowsort label-2812
SELECT 81 + - COUNT ( * ) * + 99 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2813
SELECT - CAST( + 92 AS SIGNED ) * 67 + - 63 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 2f5679762b4880c9b784a5ae3ad118c9

skipif mysql # not compatible
query I rowsort label-2813
SELECT - CAST ( + 92 AS INTEGER ) * 67 + - 63 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 2f5679762b4880c9b784a5ae3ad118c9

query I rowsort
SELECT - - col1 - - - ( - col1 ) - + col2 AS col1 FROM tab0 AS cor0
----
-97
115
32

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 * + 41 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 82 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT - 84 + - COUNT( * ) * - - COUNT( * ) FROM tab2 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-2817
SELECT - 84 + - COUNT ( * ) * - - COUNT ( * ) FROM tab2 AS cor0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2818
SELECT ALL COUNT( * ) * COUNT( * ) - COUNT( * ) AS col1 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2818
SELECT ALL COUNT ( * ) * COUNT ( * ) - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
6

query I rowsort
SELECT DISTINCT 94 + 81 FROM tab2 AS cor0
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT ALL + - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE + ( col2 ) * 79 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2820
SELECT ALL + - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE + ( col2 ) * 79 IS NOT NULL
----
-3

query I rowsort
SELECT - col1 + - 59 AS col1 FROM tab2
----
-110
-126
-136

query I rowsort
SELECT DISTINCT + ( - 57 ) FROM tab2
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-2823
SELECT DISTINCT 77 - - - 91 + + + COUNT( * ), 60 AS col1 FROM tab1
----
-11
60

skipif mysql # not compatible
query II rowsort label-2823
SELECT DISTINCT 77 - - - 91 + + + COUNT ( * ), 60 AS col1 FROM tab1
----
-11
60

onlyif mysql # DIV for integer division: 
query I rowsort label-2824
SELECT ALL - col2 DIV - - col0 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-2824
SELECT ALL - col2 / - - col0 FROM tab0
----
-1
-3
0

query I rowsort
SELECT DISTINCT + 79 FROM tab0 WHERE NOT - + col2 IS NULL
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2826
SELECT ALL - COUNT( * ) - - - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2826
SELECT ALL - COUNT ( * ) - - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2827
SELECT ALL ( - CAST( + + ( col2 ) AS SIGNED ) ) + + 98 FROM tab1 cor0
----
2
30
39

skipif mysql # not compatible
query I rowsort label-2827
SELECT ALL ( - CAST ( + + ( col2 ) AS INTEGER ) ) + + 98 FROM tab1 cor0
----
2
30
39

query II rowsort
SELECT ALL - - 35 AS col0, 91 AS col1 FROM tab0 AS cor0
----
35
91
35
91
35
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2829
SELECT - col2 AS col0, - CAST( + col0 AS SIGNED ) * + - 39 * + + col2 AS col1 FROM tab0 AS cor0
----
-10
33930
-47
27495
-99
374517

skipif mysql # not compatible
query II rowsort label-2829
SELECT - col2 AS col0, - CAST ( + col0 AS INTEGER ) * + - 39 * + + col2 AS col1 FROM tab0 AS cor0
----
-10
33930
-47
27495
-99
374517

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT SUM( - 67 ) AS col2 FROM tab2
----
-201

skipif mysql # not compatible
query I rowsort label-2830
SELECT SUM ( - 67 ) AS col2 FROM tab2
----
-201

query II rowsort
SELECT col1, 57 AS col1 FROM tab0
----
1
57
21
57
81
57

query II rowsort
SELECT + 34 AS col1, + 25 AS col2 FROM tab2
----
34
25
34
25
34
25

query II rowsort
SELECT - col1 * - + col2 * - col0 + 52, ( + col2 ) AS col0 FROM tab1 AS cor0
----
-25023
59
-290784
68
-68492
96

query I rowsort
SELECT - + col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col1, + col2, + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT - + 76 * - SUM( DISTINCT + 14 ) AS col1 FROM tab0 AS cor0
----
1064

skipif mysql # not compatible
query I rowsort label-2835
SELECT - + 76 * - SUM ( DISTINCT + 14 ) AS col1 FROM tab0 AS cor0
----
1064

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 10 col0 FROM tab2 AS cor0
----
10
10
10

query II rowsort
SELECT DISTINCT col1 AS col0, + 38 * + + 16 + - - 64 AS col1 FROM tab0 AS cor0
----
1
672
21
672
81
672

query I rowsort
SELECT DISTINCT + 84 * - col2 + - - col1 AS col0 FROM tab2 cor0 WHERE NOT + col0 IS NULL
----
-1881
-3283
-4805

query I rowsort
SELECT ALL col2 * - - col1 AS col1 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-2840
SELECT ALL - + ( + ( - - SUM( 56 ) ) ) AS col2 FROM tab0 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-2840
SELECT ALL - + ( + ( - - SUM ( 56 ) ) ) AS col2 FROM tab0 AS cor0
----
-168

query I rowsort
SELECT DISTINCT col1 * + - col2 AS col0 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT - 21 * - + col1 + - col2 AS col2 FROM tab1 AS cor0
----
198
46
919

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2843
SELECT ALL - + CAST( NULL AS SIGNED ) + + COUNT( * ) * + COUNT( * ) / + COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2843
SELECT ALL - + CAST ( NULL AS INTEGER ) + + COUNT ( * ) * + COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2844
SELECT DISTINCT 1 * col0 DIV col0 * - col1 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-2844
SELECT DISTINCT 1 * col0 / col0 * - col1 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT - - col1 + - + 72 * - - col1 FROM tab1 AS cor0
----
-3337
-355
-994

query I rowsort
SELECT DISTINCT + col2 + + 46 FROM tab1 cor0
----
105
114
142

onlyif mysql # aggregate syntax: 
query I rowsort label-2847
SELECT + + COUNT( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2847
SELECT + + COUNT ( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2848
SELECT DISTINCT + SUM( col2 ) + COUNT( * ) AS col0 FROM tab2 cor0
----
124

skipif mysql # not compatible
query I rowsort label-2848
SELECT DISTINCT + SUM ( col2 ) + COUNT ( * ) AS col0 FROM tab2 cor0
----
124

query I rowsort
SELECT + AVG ( - col2 ) AS col1 FROM tab0 WHERE + 78 < NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2850
SELECT * FROM tab2 WHERE + - CAST( + + col1 AS SIGNED ) * + 38 > - col0
----

skipif mysql # not compatible
query III rowsort label-2850
SELECT * FROM tab2 WHERE + - CAST ( + + col1 AS INTEGER ) * + 38 > - col0
----

query I rowsort
SELECT 30 - + 6 FROM tab0
----
24
24
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 25 * + 3 - + - col1 col0 FROM tab2
----
-24
-8
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2853
SELECT - 87 * - + CAST( - - 91 AS SIGNED ) * - COUNT( * ) FROM tab2
----
-23751

skipif mysql # not compatible
query I rowsort label-2853
SELECT - 87 * - + CAST ( - - 91 AS INTEGER ) * - COUNT ( * ) FROM tab2
----
-23751

query I rowsort
SELECT 79 * + col1 * col0 FROM tab1
----
33575
337883
56406

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > + 17 + + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT ALL - COUNT( DISTINCT + - col0 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2856
SELECT ALL - COUNT ( DISTINCT + - col0 ) AS col1 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2857
SELECT DISTINCT col0 * CAST( + + col0 AS SIGNED ) AS col1 FROM tab2 WHERE - - 61 * + col1 IS NOT NULL
----
2116
4096
5625

skipif mysql # not compatible
query I rowsort label-2857
SELECT DISTINCT col0 * CAST ( + + col0 AS INTEGER ) AS col1 FROM tab2 WHERE - - 61 * + col1 IS NOT NULL
----
2116
4096
5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT + - col2 FROM tab1 WHERE NOT + col0 IS NULL
----
-59
-68
-96

query II rowsort
SELECT DISTINCT col2 AS col1, + 86 * - col1 FROM tab1
----
59
-430
68
-4042
96
-1204

query II rowsort
SELECT DISTINCT - 86 AS col2, - col1 * 11 FROM tab1 cor0
----
-86
-154
-86
-517
-86
-55

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT 4 - - col0 <= NULL
----

query I rowsort
SELECT ALL - col1 + + 30 FROM tab2 AS cor0
----
-21
-37
-47

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT col1 * 35 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2865
SELECT + COUNT( * ) * - 15 FROM tab0 cor0
----
-45

skipif mysql # not compatible
query I rowsort label-2865
SELECT + COUNT ( * ) * - 15 FROM tab0 cor0
----
-45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2866
SELECT CAST( NULL AS DECIMAL ) + + 42 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-2866
SELECT CAST ( NULL AS REAL ) + + 42 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - ( + col1 ) + 87 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 74 FROM tab0 WHERE NOT - col2 * - - 11 < + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2869
SELECT 37 + + COUNT( * ) AS col2 FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-2869
SELECT 37 + + COUNT ( * ) AS col2 FROM tab0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT - MIN( DISTINCT + + 63 ) + 53 col0 FROM tab1
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2870
SELECT - MIN ( DISTINCT + + 63 ) + 53 col0 FROM tab1
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-2871
SELECT + 45 * col2 + + 12 DIV + col0 FROM tab2
----
1035
1800
2610

skipif mysql # not compatible
query I rowsort label-2871
SELECT + 45 * col2 + + 12 / + col0 FROM tab2
----
1035
1800
2610

query II rowsort
SELECT ALL - col1, col2 AS col0 FROM tab0
----
-1
99
-21
10
-81
47

query I rowsort
SELECT + 26 + + col2 + + col1 AS col1 FROM tab2
----
100
143
151

onlyif mysql # aggregate syntax: 
query I rowsort label-2874
SELECT 85 + - 66 + MAX( DISTINCT 84 ) FROM tab1
----
103

skipif mysql # not compatible
query I rowsort label-2874
SELECT 85 + - 66 + MAX ( DISTINCT 84 ) FROM tab1
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT DISTINCT + + 27 + MIN( ALL + - col2 ) AS col2 FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-2875
SELECT DISTINCT + + 27 + MIN ( ALL + - col2 ) AS col2 FROM tab1 AS cor0
----
-69

query II rowsort
SELECT + col0 AS col1, col1 AS col2 FROM tab0 AS cor0
----
15
81
87
21
97
1

query I rowsort
SELECT 73 * - col0 AS col1 FROM tab1 AS cor0
----
-3723
-6205
-6643

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 + + + 84 * 53 col2 FROM tab2 AS cor0
----
4497
4497
4497

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2879
SELECT DISTINCT + 93 * - 54 + + col1 + - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2879
SELECT DISTINCT + 93 * - 54 + + col1 + - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT ( + + col2 ) + - col1 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT + COUNT( * ) + - COUNT( * ) * - - 25 FROM tab0 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-2881
SELECT + COUNT ( * ) + - COUNT ( * ) * - - 25 FROM tab0 AS cor0
----
-72

query I rowsort
SELECT - 59 + - - col0 FROM tab0 cor0
----
-44
28
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2883
SELECT ALL + + ( col1 ) - - CAST( NULL AS SIGNED ) + + 21 + + col2 * ( 2 ) + + + 18 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2883
SELECT ALL + + ( col1 ) - - CAST ( NULL AS INTEGER ) + + 21 + + col2 * ( 2 ) + + + 18 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2884
SELECT DISTINCT 34 + + + CAST( NULL AS SIGNED ) + - + CAST( - col1 AS SIGNED ) * + col1 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2884
SELECT DISTINCT 34 + + + CAST ( NULL AS INTEGER ) + - + CAST ( - col1 AS INTEGER ) * + col1 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 - - 24 FROM tab2 AS cor0
----
-27
-43
-53

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( - col0, + col1, + 54, - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT DISTINCT + COUNT( * ) FROM tab2, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2887
SELECT DISTINCT + COUNT ( * ) FROM tab2, tab2 AS cor0
----
9

query II rowsort
SELECT DISTINCT + col0, - col0 AS col1 FROM tab2
----
46
-46
64
-64
75
-75

query II rowsort
SELECT ALL - col1, - col1 FROM tab0 AS cor0
----
-1
-1
-21
-21
-81
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2890
SELECT ALL 86 * - 70 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT 27 IN ( + col2 * 31 + + + 90 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2890
SELECT ALL 86 * - 70 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT 27 IN ( + col2 * 31 + + + 90 )
----
NULL
NULL
NULL

query I rowsort
SELECT 49 * + + col1 * + col0 * - + col1 + + + col2 FROM tab1 AS cor0
----
-104066
-489708
-9849863

query I rowsort
SELECT col2 + + col2 + - 62 * col0 - + col1 FROM tab1 AS cor0
----
-2984
-5157
-5553

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 AS cor0 WHERE - col1 * + col1 IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2894
SELECT ALL + SUM( ALL - - ( 33 ) ) + - + 3 FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-2894
SELECT ALL + SUM ( ALL - - ( 33 ) ) + - + 3 FROM tab2 AS cor0
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2895
SELECT DISTINCT + col1 DIV 37 + - + col0 FROM tab2 AS cor0
----
-45
-62
-74

skipif mysql # not compatible
query I rowsort label-2895
SELECT DISTINCT + col1 / 37 + - + col0 FROM tab2 AS cor0
----
-45
-62
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT + COUNT( * ) - + + 96 FROM tab0 WHERE NULL BETWEEN + col0 AND 23
----
-96

skipif mysql # not compatible
query I rowsort label-2896
SELECT + COUNT ( * ) - + + 96 FROM tab0 WHERE NULL BETWEEN + col0 AND 23
----
-96

query I rowsort
SELECT - 75 * + col2 FROM tab0
----
-3525
-7425
-750

query I rowsort
SELECT DISTINCT + col2 / - col0 AS col1 FROM tab1 WHERE - + 87 * - - 32 NOT BETWEEN NULL AND + 29
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2899
SELECT + MIN( - col2 ) * + MIN( col1 ) AS col1 FROM tab2
----
-2958

skipif mysql # not compatible
query I rowsort label-2899
SELECT + MIN ( - col2 ) * + MIN ( col1 ) AS col1 FROM tab2
----
-2958

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col1 * + col2 * + 31 + + col2 AND + col0
----

query I rowsort
SELECT + 5 + + ( col2 ) FROM tab2 AS cor0 WHERE + col2 BETWEEN - + ( - 16 ) - + col0 + + col2 AND - + 93
----

query I rowsort
SELECT col2 + - 13 AS col1 FROM tab1 AS cor0
----
46
55
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + - - col2 col2 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT - col2 + - + 31 + + 33 FROM tab1 AS cor0
----
-57
-66
-94

query I rowsort
SELECT ALL + 53 + - col2 AS col0 FROM tab2 AS cor0
----
-5
13
30

query I rowsort
SELECT - 27 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-27
-27
-27

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 15 * - - 76 * col1 <= 28
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2908
SELECT DISTINCT col1 - col1 DIV - col0 * - - ( - - col2 ) AS col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2908
SELECT DISTINCT col1 - col1 / - col0 * - - ( - - col2 ) AS col1 FROM tab1
----
14
47
5

query I rowsort
SELECT DISTINCT + 85 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2910
SELECT MAX( DISTINCT + 30 ) FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-2910
SELECT MAX ( DISTINCT + 30 ) FROM tab2
----
30

query I rowsort
SELECT + 9 * + ( - + 64 ) AS col2 FROM tab0
----
-576
-576
-576

query III rowsort
SELECT - col0 AS col1, + col0, - 94 - - ( - - col1 ) FROM tab0 AS cor0
----
9 values hashing to 9b00539e57f58a0efc6fdad8c4b13e94

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT - SUM( 10 ) - + 50 * - ( - 47 ) FROM tab0 cor0
----
-2380

skipif mysql # not compatible
query I rowsort label-2913
SELECT - SUM ( 10 ) - + 50 * - ( - 47 ) FROM tab0 cor0
----
-2380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2914
SELECT DISTINCT COUNT( * ) + COUNT( * ) + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2914
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT ALL - 4 + COUNT( * ) + 15 AS col1 FROM tab2 cor0
----
14

skipif mysql # not compatible
query I rowsort label-2915
SELECT ALL - 4 + COUNT ( * ) + 15 AS col1 FROM tab2 cor0
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-2916
SELECT DISTINCT + 55 DIV + col0 AS col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2916
SELECT DISTINCT + 55 / + col0 AS col1 FROM tab2 AS cor0
----
0
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 76 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT DISTINCT - COUNT( ALL - ( - + 0 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2918
SELECT DISTINCT - COUNT ( ALL - ( - + 0 ) ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT COUNT( + - col0 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2919
SELECT COUNT ( + - col0 ) col0 FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2920
SELECT ALL CAST( NULL AS SIGNED ) * + - COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2920
SELECT ALL CAST ( NULL AS INTEGER ) * + - COUNT ( * ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT ALL COUNT( * ) FROM tab0 WHERE NOT col1 * col0 * col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2921
SELECT ALL COUNT ( * ) FROM tab0 WHERE NOT col1 * col0 * col2 IS NULL
----
3

query I rowsort
SELECT DISTINCT - col0 * + 76 FROM tab1
----
-3876
-6460
-6916

onlyif mysql # DIV for integer division: 
query I rowsort label-2923
SELECT DISTINCT - col0 DIV - + col2 AS col2 FROM tab2
----
1
2

skipif mysql # not compatible
query I rowsort label-2923
SELECT DISTINCT - col0 / - + col2 AS col2 FROM tab2
----
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2924
SELECT ALL CAST( - 85 AS SIGNED ) * 67 AS col0 FROM tab0
----
-5695
-5695
-5695

skipif mysql # not compatible
query I rowsort label-2924
SELECT ALL CAST ( - 85 AS INTEGER ) * 67 AS col0 FROM tab0
----
-5695
-5695
-5695

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT ALL + - MIN( + col2 ) * - ( + 15 ) - + 38 + - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
304

skipif mysql # not compatible
query I rowsort label-2925
SELECT ALL + - MIN ( + col2 ) * - ( + 15 ) - + 38 + - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
304

query I rowsort
SELECT ALL col0 * + + 66 AS col0 FROM tab2 AS cor0
----
3036
4224
4950

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT ALL COUNT( - - 62 ) FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN - - 15 - + col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2927
SELECT ALL COUNT ( - - 62 ) FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN - - 15 - + col0 AND NULL
----
0

query I rowsort
SELECT col0 - + + col0 + + col2 + + col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
198
20
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2929
SELECT DISTINCT CAST( - col0 AS SIGNED ) FROM tab2 cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2929
SELECT DISTINCT CAST ( - col0 AS INTEGER ) FROM tab2 cor0
----
-46
-64
-75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + col2 IS NULL )
----

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 cor0 WHERE NOT col2 + col2 * - 11 BETWEEN 92 * + col1 + 66 AND - - 6
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2932
SELECT col0 AS col1, ( - - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-2932
SELECT col0 AS col1, ( - - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 4 col1 FROM tab0 cor0
----
4
4
4

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 * - + col2 * + col1 + + col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 26 * 89 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col2, - 90 * + col0 FROM tab2 AS cor0
----
23
-4140
40
-5760
58
-6750

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 43 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + col1 + + col2 * - + 79 * 86 + 87 FROM tab0 AS cor0
----
-319150
-672518
-67832

query I rowsort
SELECT - col1 + - col1 * + 31 AS col2 FROM tab1
----
-1504
-160
-448

query I rowsort
SELECT ALL - col1 / + - ( col2 ) FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT - col2 BETWEEN + col2 + - col2 * + col0 + col2 AND + + 24 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2942
SELECT ALL COUNT( * ) DIV + COUNT( * ) + + + SUM( ALL col0 ) FROM tab2
----
186

skipif mysql # not compatible
query I rowsort label-2942
SELECT ALL COUNT ( * ) / + COUNT ( * ) + + + SUM ( ALL col0 ) FROM tab2
----
186

query I rowsort
SELECT DISTINCT 44 + + + ( + ( col2 ) ) + col0 AS col1 FROM tab2 AS cor0
----
113
148
177

query II rowsort
SELECT ALL col0 AS col0, 9 FROM tab2
----
46
9
64
9
75
9

query I rowsort
SELECT ALL + 60 + + col0 + - 14 FROM tab0 WHERE NOT NULL IS NOT NULL AND NOT col0 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 - - 91 AS col1 FROM tab2
----
33
51
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT DISTINCT + COUNT( * ) * 83 + - ( + SUM( ALL + col2 ) ) * + 98 col0 FROM tab2 AS cor0
----
-11609

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2947
SELECT DISTINCT + COUNT ( * ) * 83 + - ( + SUM ( ALL + col2 ) ) * + 98 col0 FROM tab2 AS cor0
----
-11609

onlyif mysql # aggregate syntax: 
query II rowsort label-2948
SELECT ALL COUNT( * ) AS col2, + MAX( ( + col2 ) ) AS col2 FROM tab1 AS cor0
----
3
96

skipif mysql # not compatible
query II rowsort label-2948
SELECT ALL COUNT ( * ) AS col2, + MAX ( ( + col2 ) ) AS col2 FROM tab1 AS cor0
----
3
96

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 AS cor0 WHERE - 62 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT DISTINCT + ( SUM( ALL - 19 ) ) FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-2950
SELECT DISTINCT + ( SUM ( ALL - 19 ) ) FROM tab0 AS cor0
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2951
SELECT - ( + 40 ) * - + CAST( + + ( + COUNT( * ) ) AS SIGNED ) col0 FROM tab0 AS cor0 WHERE NOT col0 * - + col1 = NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2951
SELECT - ( + 40 ) * - + CAST ( + + ( + COUNT ( * ) ) AS INTEGER ) col0 FROM tab0 AS cor0 WHERE NOT col0 * - + col1 = NULL
----
0

query I rowsort
SELECT ALL + col2 * - + col2 AS col0 FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT ALL + col0 * - 76 FROM tab1
----
-3876
-6460
-6916

query II rowsort
SELECT col0, 15 * - + col1 AS col2 FROM tab1
----
51
-210
85
-75
91
-705

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 BETWEEN NULL AND col0
----

query I rowsort
SELECT col2 * + col1 * - + col2 + - col0 + + col0 FROM tab1 AS cor0
----
-129024
-17405
-217328

query II rowsort
SELECT ALL 64 * - + col0, + ( + 59 ) - ( col2 ) AS col1 FROM tab1
----
-3264
-37
-5440
0
-5824
-9

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - 31 + col0 AS col1 FROM tab0
----
-16
56
66

query I rowsort
SELECT + + col0 + 25 AS col0 FROM tab1 AS cor0
----
110
116
76

query I rowsort
SELECT col0 * + - col1 * col0 + + col1 - + + ( + - col0 ) AS col0 FROM tab2 AS cor0
----
-107819
-315251
-376733

onlyif mysql # aggregate syntax: 
query I rowsort label-2962
SELECT COUNT( * ) + 1 - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2962
SELECT COUNT ( * ) + 1 - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT DISTINCT - 28 + - + COUNT( col2 ) FROM tab0 cor0
----
-31

skipif mysql # not compatible
query I rowsort label-2963
SELECT DISTINCT - 28 + - + COUNT ( col2 ) FROM tab0 cor0
----
-31

query I rowsort
SELECT - 83 AS col1 FROM tab1 cor0
----
-83
-83
-83

query I rowsort
SELECT ALL + ( + ( 31 ) ) + + col1 FROM tab0 AS cor0
----
112
32
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 35 col0 FROM tab2 AS cor0
----
-35
-35
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + - 5 col1 FROM tab2 AS cor0
----
18
35
53

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2968
SELECT ALL - col1 + CAST( - + col0 AS SIGNED ) DIV - + col1 AS col0, 64 * + - 63 FROM tab1
----
-11
-4032
-46
-4032
12
-4032

skipif mysql # not compatible
query II rowsort label-2968
SELECT ALL - col1 + CAST ( - + col0 AS INTEGER ) / - + col1 AS col0, 64 * + - 63 FROM tab1
----
-11
-4032
-46
-4032
12
-4032

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + - col1 col1 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT DISTINCT 50 + - + 3 FROM tab0
----
47

query I rowsort
SELECT col0 * col2 - - - col0 AS col2 FROM tab0
----
690
783
9506

query I rowsort
SELECT DISTINCT + col1 + - - 15 AS col1 FROM tab0
----
16
36
96

query II rowsort
SELECT ALL - col0 AS col0, 10 * + - ( - col2 ) AS col2 FROM tab0 AS cor0
----
-15
470
-87
100
-97
990

query I rowsort
SELECT ALL ( - + 16 ) + - + col1 FROM tab0 cor0
----
-17
-37
-97

query I rowsort
SELECT ALL + col1 + + ( - 7 ) AS col1 FROM tab0 AS cor0
----
-6
14
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2976
SELECT DISTINCT + ( 6 ) FROM tab2 WHERE NOT 44 * + 56 * + 78 * + CAST( col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2976
SELECT DISTINCT + ( 6 ) FROM tab2 WHERE NOT 44 * + 56 * + 78 * + CAST ( col1 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT - MAX( ALL + 4 ) FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-2977
SELECT - MAX ( ALL + 4 ) FROM tab1 AS cor0
----
-4

query I rowsort
SELECT DISTINCT ( + - 77 ) AS col2 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT ALL + 95 AS col0 FROM tab1 AS cor0
----
95
95
95

query I rowsort
SELECT - + 96 * - col1 * col0 - 13 AS col2 FROM tab2 AS cor0
----
225203
473075
482387

query I rowsort
SELECT DISTINCT - 0 AS col1 FROM tab1 AS cor0 WHERE NOT col1 + col2 + 97 * col2 + - - col0 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN + - 83 AND col1
----

query I rowsort
SELECT ALL - 28 * - 74 FROM tab2
----
2072
2072
2072

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN + col1 AND NULL
----

query I rowsort
SELECT ALL - col0 * - 21 AS col0 FROM tab0
----
1827
2037
315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2986
SELECT DISTINCT CAST( NULL AS SIGNED ) * + MAX( DISTINCT 60 ) * - - 43 col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2986
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + MAX ( DISTINCT 60 ) * - - 43 col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 76 * + 92 FROM tab2 AS cor0
----
-6992

query I rowsort
SELECT ALL - 36 + - col2 FROM tab0 AS cor0
----
-135
-46
-83

query I rowsort
SELECT + col0 * - - col0 * - col1 AS col0 FROM tab1 AS cor0
----
-36125
-36414
-389207

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT + + MIN( + - col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-2990
SELECT + + MIN ( + - col0 ) FROM tab0 AS cor0
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-2991
SELECT ( - - col1 ) DIV - col2 AS col2 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-2991
SELECT ( - - col1 ) / - col2 AS col2 FROM tab0
----
-1
-2
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2992
SELECT ALL - 26 * - - CAST( NULL AS SIGNED ) * + - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2992
SELECT ALL - 26 * - - CAST ( NULL AS INTEGER ) * + - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2993
SELECT - SUM( - col0 ) * + + COUNT( * ) FROM tab2
----
555

skipif mysql # not compatible
query I rowsort label-2993
SELECT - SUM ( - col0 ) * + + COUNT ( * ) FROM tab2
----
555

onlyif mysql # aggregate syntax: 
query I rowsort label-2994
SELECT MAX( ALL + + col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-2994
SELECT MAX ( ALL + + col2 ) FROM tab2
----
58

query III rowsort
SELECT * FROM tab2 WHERE - ( + col1 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 69 <= + col1
----
64
77
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2997
SELECT - + ( - MAX( + + col1 ) ) + - CAST( - 19 AS SIGNED ) * - + 30 FROM tab1 AS cor0
----
-523

skipif mysql # not compatible
query I rowsort label-2997
SELECT - + ( - MAX ( + + col1 ) ) + - CAST ( - 19 AS INTEGER ) * - + 30 FROM tab1 AS cor0
----
-523

query III rowsort
SELECT ALL * FROM tab2 WHERE + 86 * 80 * 99 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 28 + - 6 FROM tab2
----
22

query I rowsort
SELECT 0 * - + col2 + + 85 * col1 * - col2 + - 7 FROM tab2
----
-261807
-330317
-99712

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT 3 + 81 * - COUNT( * ) AS col2 FROM tab1
----
-240

skipif mysql # not compatible
query I rowsort label-3002
SELECT 3 + 81 * - COUNT ( * ) AS col2 FROM tab1
----
-240

query III rowsort
SELECT ALL * FROM tab0 WHERE + 62 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3004
SELECT DISTINCT + col0 / - CAST( NULL AS DECIMAL ) * + col2 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3004
SELECT DISTINCT + col0 / - CAST ( NULL AS REAL ) * + col2 AS col1 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( - 80 ) col2, 4 FROM tab1
----
-80
4

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 65 * 60 <= + ( 85 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT ALL - COUNT( - col0 ) col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3007
SELECT ALL - COUNT ( - col0 ) col1 FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3008
SELECT DISTINCT - - CAST( + 72 AS SIGNED ) + - col0 FROM tab0 AS cor0
----
-15
-25
57

skipif mysql # not compatible
query I rowsort label-3008
SELECT DISTINCT - - CAST ( + 72 AS INTEGER ) + - col0 FROM tab0 AS cor0
----
-15
-25
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3009
SELECT COUNT( DISTINCT - 69 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-3009
SELECT COUNT ( DISTINCT - 69 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 82 col2 FROM tab2
----
82

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 67 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 55 FROM tab0, tab1 AS cor0
----
55

onlyif mysql # DIV for integer division: 
query II rowsort label-3013
SELECT DISTINCT - - col0 AS col1, + 83 DIV - col2 - - 51 col2 FROM tab1 AS cor0
----
51
51
85
50
91
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3013
SELECT DISTINCT - - col0 AS col1, + 83 / - col2 - - 51 col2 FROM tab1 AS cor0
----
51
51
85
50
91
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3014
SELECT + CAST( COUNT( * ) AS SIGNED ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3014
SELECT + CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 cor0
----
3

query I rowsort
SELECT col2 - - col1 + - - 40 - col0 AS col1 FROM tab1 AS cor0 WHERE NOT 39 NOT BETWEEN - 43 AND + col0 * - 95 - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3016
SELECT + - 13 DIV + - col2 * + col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3016
SELECT + - 13 / + - col2 * + col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - ( 63 ) AS col1 FROM tab1 AS cor0
----
-63
-63
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3018
SELECT DISTINCT 32 * CAST( - 80 AS SIGNED ) + - col2 AS col1 FROM tab1 AS cor0
----
-2619
-2628
-2656

skipif mysql # not compatible
query I rowsort label-3018
SELECT DISTINCT 32 * CAST ( - 80 AS INTEGER ) + - col2 AS col1 FROM tab1 AS cor0
----
-2619
-2628
-2656

onlyif mysql # DIV for integer division: 
query I rowsort label-3019
SELECT ALL - 44 DIV col0 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3019
SELECT ALL - 44 / col0 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 52 FROM tab0 WHERE - + 47 IS NOT NULL
----
52
52
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0, col2 - + col0 col0 FROM tab2 WHERE + 89 >= NULL
----

query I rowsort
SELECT ALL + 87 + + ( + 17 ) FROM tab1
----
104
104
104

query I rowsort
SELECT col2 * + ( 73 ) AS col0 FROM tab2
----
1679
2920
4234

query III rowsort
SELECT ALL * FROM tab0 WHERE + 74 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT MIN( - 91 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-3025
SELECT MIN ( - 91 ) FROM tab1
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3026
SELECT DISTINCT + COUNT( ALL + - col0 ) + + CAST( - COUNT( * ) AS SIGNED ) + - 13 + - - 38 AS col1 FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-3026
SELECT DISTINCT + COUNT ( ALL + - col0 ) + + CAST ( - COUNT ( * ) AS INTEGER ) + - 13 + - - 38 AS col1 FROM tab0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE - 78 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3027
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE - 78 IS NOT NULL
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3028
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST( NULL AS DECIMAL ) >= 31
----

skipif mysql # not compatible
query III rowsort label-3028
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST ( NULL AS REAL ) >= 31
----

query I rowsort
SELECT ALL + 53 + 97 FROM tab1 AS cor0
----
150
150
150

query I rowsort
SELECT DISTINCT + ( - + col2 ) FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - col0 * - 46 * - 38 AS col1 FROM tab2 cor0
----
-111872
-131100
-80408

query I rowsort
SELECT DISTINCT 17 FROM tab2 WHERE NULL IS NULL
----
17

query I rowsort
SELECT DISTINCT ( - 12 ) + - 92 FROM tab1
----
-104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3034
SELECT ALL COUNT( ( CAST( - col2 AS SIGNED ) ) ) * 39 / + SUM( ALL + ( - col0 ) ) + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3034
SELECT ALL COUNT ( ( CAST ( - col2 AS INTEGER ) ) ) * 39 / + SUM ( ALL + ( - col0 ) ) + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 * + col1 + + - col1 FROM tab2 AS cor0
----
-2652
-4556
-6006

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3036
SELECT DISTINCT + + CAST( NULL AS SIGNED ) - + col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3036
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) - + col1 FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3037
SELECT DISTINCT - AVG ( DISTINCT + - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3037
SELECT DISTINCT - AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3038
SELECT ALL + - CAST( + - SUM( + + col1 ) AS SIGNED ) col2 FROM tab2 WHERE NOT NULL BETWEEN col2 AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3038
SELECT ALL + - CAST ( + - SUM ( + + col1 ) AS INTEGER ) col2 FROM tab2 WHERE NOT NULL BETWEEN col2 AND NULL
----
NULL

query I rowsort
SELECT ALL 27 + - - 4 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query II rowsort
SELECT 72 - - col1, col2 AS col1 FROM tab2
----
123
23
139
58
149
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3041
SELECT ALL ( col1 ) - + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3041
SELECT ALL ( col1 ) - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3042
SELECT DISTINCT - 77 * - COUNT( * ) AS col2, COUNT( ALL + + 51 ) FROM tab2
----
231
3

skipif mysql # not compatible
query II rowsort label-3042
SELECT DISTINCT - 77 * - COUNT ( * ) AS col2, COUNT ( ALL + + 51 ) FROM tab2
----
231
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3043
SELECT - 27 * - COUNT( * ) + COUNT( * ) AS col2 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-3043
SELECT - 27 * - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0
----
84

query I rowsort
SELECT col1 + - 68 + - - 7 AS col2 FROM tab0
----
-40
-60
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3045
SELECT + - ( col0 ) + - + CAST( NULL AS SIGNED ) / 88 * + + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3045
SELECT + - ( col0 ) + - + CAST ( NULL AS INTEGER ) / 88 * + + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 49 * + ( - 86 ) AS col0 FROM tab0 AS cor0
----
4214
4214
4214

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3047
SELECT + 84 AS col2 FROM tab1 AS cor0 WHERE NOT col1 <= col0 * + CAST( NULL AS SIGNED ) - - 67 + - + col1 * col1
----

skipif mysql # not compatible
query I rowsort label-3047
SELECT + 84 AS col2 FROM tab1 AS cor0 WHERE NOT col1 <= col0 * + CAST ( NULL AS INTEGER ) - - 67 + - + col1 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3048
SELECT + CAST( - + ( + - 65 ) AS SIGNED ) AS col0 FROM tab2
----
65
65
65

skipif mysql # not compatible
query I rowsort label-3048
SELECT + CAST ( - + ( + - 65 ) AS INTEGER ) AS col0 FROM tab2
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3049
SELECT ALL - 87 * MAX( DISTINCT - ( ( + col1 ) ) ) AS col1 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-3049
SELECT ALL - 87 * MAX ( DISTINCT - ( ( + col1 ) ) ) AS col1 FROM tab0
----
87

query I rowsort
SELECT - 19 * - col1 * - 57 FROM tab1 cor0
----
-15162
-50901
-5415

onlyif mysql # DIV for integer division: 
query I rowsort label-3051
SELECT ALL col2 DIV - + 37 + 52 FROM tab0 AS cor0
----
50
51
52

skipif mysql # not compatible
query I rowsort label-3051
SELECT ALL col2 / - + 37 + 52 FROM tab0 AS cor0
----
50
51
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT DISTINCT - 27 * COUNT( * ) + + - SUM( + + col1 ) FROM tab0 AS cor0
----
-184

skipif mysql # not compatible
query I rowsort label-3052
SELECT DISTINCT - 27 * COUNT ( * ) + + - SUM ( + + col1 ) FROM tab0 AS cor0
----
-184

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 >= 80
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - col2, col2 AS col0 FROM tab1
----
-59
59
-68
68
-96
96

query II rowsort
SELECT DISTINCT col2 AS col0, + col1 AS col1 FROM tab1
----
59
5
68
47
96
14

query I rowsort
SELECT DISTINCT - - col2 FROM tab2 WHERE NULL IS NULL
----
23
40
58

query I rowsort
SELECT ( - 31 ) + + - col1 + 20 + - col1 * - - col0 FROM tab0
----
-109
-1307
-1859

onlyif mysql # DIV for integer division: 
query I rowsort label-3058
SELECT - 94 + - 49 DIV - + col1 * - col0 FROM tab2
----
-94
-94
-94

skipif mysql # not compatible
query I rowsort label-3058
SELECT - 94 + - 49 / - + col1 * - col0 FROM tab2
----
-94
-94
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT ALL + MIN( - - col0 ) FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-3059
SELECT ALL + MIN ( - - col0 ) FROM tab1 cor0
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3060
SELECT + - COUNT( * ) AS col2, 57 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-3060
SELECT + - COUNT ( * ) AS col2, 57 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-3
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NOT NULL IS NULL )
----

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <> col0 + + 78
----

query I rowsort
SELECT ALL + col0 * col0 * + col2 FROM tab1 cor0
----
249696
426275
563108

query I rowsort
SELECT ALL - col1 + 6 FROM tab0 AS cor0
----
-15
-75
5

query I rowsort
SELECT DISTINCT + 87 + + 67 AS col0 FROM tab1 AS cor0
----
154

query I rowsort
SELECT DISTINCT - 33 - - 8 * - col0 * - + col0 + col0 AS col2 FROM tab2 AS cor0
----
16941
32799
45042

query I rowsort
SELECT - + col2 AS col1 FROM tab1 AS cor0 WHERE 31 IS NOT NULL
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + + col1 * - - col0 * + col1 col1 FROM tab1 AS cor0
----
10010
201066
2130

query I rowsort
SELECT + - col1 * + 50 + col0 AS col2 FROM tab2 AS cor0
----
-2504
-3275
-3786

query II rowsort
SELECT + col0 AS col2, - 38 - 44 * + - 2 FROM tab0
----
15
50
87
50
97
50

onlyif mysql # DIV for integer division: 
query I rowsort label-3072
SELECT DISTINCT 64 DIV col1 - + 8 FROM tab0
----
-5
-8
56

skipif mysql # not compatible
query I rowsort label-3072
SELECT DISTINCT 64 / col1 - + 8 FROM tab0
----
-5
-8
56

query II rowsort
SELECT - - col2 + - col1 AS col2, col1 AS col1 FROM tab1 WHERE + - col0 + + + 65 <= NULL
----

query I rowsort
SELECT ALL + 32 + - col2 + - 65 AS col0 FROM tab1
----
-101
-129
-92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3075
SELECT ALL 15 AS col2, col2 - - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
15
NULL
15
NULL
15
NULL

skipif mysql # not compatible
query II rowsort label-3075
SELECT ALL 15 AS col2, col2 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
15
NULL
15
NULL
15
NULL

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 WHERE NOT + + ( - col2 ) IS NULL
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3077
SELECT DISTINCT + COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3077
SELECT DISTINCT + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 * + col0 + + - 17 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + col2 * - - col2 FROM tab0 AS cor0
----
100
2209
9801

query II rowsort
SELECT - 54 AS col2, - col1 AS col2 FROM tab0 AS cor0
----
-54
-1
-54
-21
-54
-81

query I rowsort
SELECT col1 * + col1 * col0 FROM tab2 cor0
----
119646
336675
379456

onlyif mysql # DIV for integer division: 
query I rowsort label-3082
SELECT ALL 2 DIV + + 91 + col2 AS col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-3082
SELECT ALL 2 / + + 91 + col2 AS col2 FROM tab1 AS cor0
----
59
68
96

query II rowsort
SELECT + col2 AS col2, 49 FROM tab2 AS cor0
----
23
49
40
49
58
49

query II rowsort
SELECT DISTINCT + 70, 32 AS col1 FROM tab0 AS cor0
----
70
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT + + MAX( + 1 ) * + + 64 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-3085
SELECT + + MAX ( + 1 ) * + + 64 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
67

query II rowsort
SELECT ALL col1, col2 * + col0 FROM tab0 AS cor0
----
1
9603
21
870
81
705

query I rowsort
SELECT DISTINCT + 59 + col0 AS col1 FROM tab2 AS cor0
----
105
123
134

query I rowsort
SELECT col2 * - + col1 * - col0 AS col1 FROM tab0 AS cor0
----
18270
57105
9603

query I rowsort
SELECT + 96 * - - col2 FROM tab0 cor0
----
4512
9504
960

query II rowsort
SELECT DISTINCT + col0 AS col2, col1 FROM tab1 cor0
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT - ( + 40 ) * + SUM( col1 ) AS col0 FROM tab1 cor0
----
-2640

skipif mysql # not compatible
query I rowsort label-3091
SELECT - ( + 40 ) * + SUM ( col1 ) AS col0 FROM tab1 cor0
----
-2640

query II rowsort
SELECT ALL col1 AS col1, + col2 * - 86 FROM tab0 AS cor0
----
1
-8514
21
-860
81
-4042

onlyif mysql # DIV for integer division: 
query I rowsort label-3093
SELECT DISTINCT + - ( + col0 ) * col1 DIV + 1 AS col0 FROM tab0 AS cor0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-3093
SELECT DISTINCT + - ( + col0 ) * col1 / + 1 AS col0 FROM tab0 AS cor0
----
-1215
-1827
-97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 > + 98
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3095
SELECT ALL + CAST( + 53 AS SIGNED ) * - 63 FROM tab1
----
-3339
-3339
-3339

skipif mysql # not compatible
query I rowsort label-3095
SELECT ALL + CAST ( + 53 AS INTEGER ) * - 63 FROM tab1
----
-3339
-3339
-3339

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT ( NOT 73 + - col1 < - + 50 ) )
----

query I rowsort
SELECT DISTINCT 12 * - col2 * col0 FROM tab0
----
-10440
-115236
-8460

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 43 + - + col0 col1 FROM tab2
----
-21
-3
-32

query II rowsort
SELECT ( + - col0 ) AS col2, - col1 FROM tab0
----
-15
-81
-87
-21
-97
-1

query I rowsort
SELECT ALL col0 * col1 * + 41 FROM tab0
----
3977
49815
74907

query I rowsort
SELECT - - col0 * + - 40 - + col2 FROM tab0 WHERE ( NOT + col1 BETWEEN NULL AND NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3102
SELECT + COUNT( * ) DIV - ( + 10 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3102
SELECT + COUNT ( * ) / - ( + 10 ) AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3103
SELECT - MAX( ALL 29 ) AS col0, COUNT( * ) AS col2 FROM tab2
----
-29
3

skipif mysql # not compatible
query II rowsort label-3103
SELECT - MAX ( ALL 29 ) AS col0, COUNT ( * ) AS col2 FROM tab2
----
-29
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 72 BETWEEN NULL AND + - 97 * 26 - 18
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3105
SELECT ALL - 99 + + CAST( 51 AS SIGNED ) + - COUNT( DISTINCT - + col0 ) * - ( + 2 ) AS col0 FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-3105
SELECT ALL - 99 + + CAST ( 51 AS INTEGER ) + - COUNT ( DISTINCT - + col0 ) * - ( + 2 ) AS col0 FROM tab0 AS cor0
----
-42

query I rowsort
SELECT DISTINCT - - col1 + 79 * - 66 AS col0 FROM tab2 AS cor0
----
-5137
-5147
-5163

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 + - 81 - - + col0 col1 FROM tab0 AS cor0
----
-66
16
6

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + 29 ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3109
SELECT - col1 DIV - - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3109
SELECT - col1 / - - col2 FROM tab1
----
0
0
0

query II rowsort
SELECT col2, 51 AS col2 FROM tab1 AS cor0
----
59
51
68
51
96
51

query I rowsort
SELECT DISTINCT + - col0 * + col2 FROM tab0 AS cor0 WHERE + col2 * + 65 IS NOT NULL
----
-705
-870
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - - - col0 + + + col1 + col1 col2 FROM tab0 AS cor0
----
-66
-96
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3113
SELECT ALL + - col1 * - + 7 + - + col1 * - + CAST( + col0 AS SIGNED ) col2 FROM tab0 AS cor0
----
104
1782
1974

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3113
SELECT ALL + - col1 * - + 7 + - + col1 * - + CAST ( + col0 AS INTEGER ) col2 FROM tab0 AS cor0
----
104
1782
1974

onlyif mysql # aggregate syntax: 
query I rowsort label-3114
SELECT MIN( + + col2 ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-3114
SELECT MIN ( + + col2 ) AS col1 FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3115
SELECT DISTINCT ( - 88 ) * - COUNT( * ) AS col1 FROM tab0
----
264

skipif mysql # not compatible
query I rowsort label-3115
SELECT DISTINCT ( - 88 ) * - COUNT ( * ) AS col1 FROM tab0
----
264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3116
SELECT DISTINCT AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3116
SELECT DISTINCT AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT MAX( DISTINCT - ( col1 ) ) AS col0 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-3117
SELECT MAX ( DISTINCT - ( col1 ) ) AS col0 FROM tab1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT + COUNT( * ) * 75 AS col1 FROM tab1
----
225

skipif mysql # not compatible
query I rowsort label-3118
SELECT + COUNT ( * ) * 75 AS col1 FROM tab1
----
225

query I rowsort
SELECT DISTINCT - 31 + + col1 + - 75 * + col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3842
-6401
-6809

query II rowsort
SELECT 4 AS col0, 46 AS col2 FROM tab1
----
4
46
4
46
4
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT ( + - MAX( ALL 92 ) ) AS col0 FROM tab0
----
-92

skipif mysql # not compatible
query I rowsort label-3121
SELECT ( + - MAX ( ALL 92 ) ) AS col0 FROM tab0
----
-92

query I rowsort
SELECT ALL + 61 * - col0 FROM tab1
----
-3111
-5185
-5551

query II rowsort
SELECT col2, - col2 AS col2 FROM tab2
----
23
-23
40
-40
58
-58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 NOT BETWEEN ( + - col1 ) AND ( NULL )
----

query I rowsort
SELECT col2 * - 67 * - 18 AS col1 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
119394
12060
56682

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3126
SELECT 49 + COUNT( - col2 ) + + - COUNT( * ) + - COUNT( * ) * CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
58

skipif mysql # not compatible
query I rowsort label-3126
SELECT 49 + COUNT ( - col2 ) + + - COUNT ( * ) + - COUNT ( * ) * CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
58

query I rowsort
SELECT DISTINCT + 22 * + 64 AS col1 FROM tab2 cor0
----
1408

query I rowsort
SELECT col2 + - + col2 AS col2 FROM tab0 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3129
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST( - + col2 AS SIGNED ) / + + col0 <> NULL AND 44 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3129
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST ( - + col2 AS INTEGER ) / + + col0 <> NULL AND 44 IS NOT NULL
----

query I rowsort
SELECT col0 + - - 65 + - 46 * + - col2 + - - col2 + - ( col1 ) - + col0 FROM tab1
----
2833
3214
4563

query I rowsort
SELECT + col2 + - ( + 23 ) FROM tab2
----
0
17
35

query I rowsort
SELECT - 69 + col2 + + col0 - col0 FROM tab1
----
-1
-10
27

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3133
SELECT DISTINCT CAST( + col0 AS SIGNED ) DIV + col2 AS col2 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-3133
SELECT DISTINCT CAST ( + col0 AS INTEGER ) / + col2 AS col2 FROM tab1
----
0
1

query III rowsort
SELECT * FROM tab1 WHERE + - col1 / + col0 * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3135
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) + + + 86 DIV + 61 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-3135
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) + + + 86 / + 61 FROM tab0 AS cor0
----
10

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 * + ( + - col1 ) + - + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col2 * + col1 col2 FROM tab2 AS cor0
----
1150
3040
3828

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT - - COUNT( * ) * + 94 FROM tab2 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-3138
SELECT - - COUNT ( * ) * + 94 FROM tab2 AS cor0
----
282

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT MAX( - 20 ) - - + 24 - + - COUNT( * ) FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-3139
SELECT MAX ( - 20 ) - - + 24 - + - COUNT ( * ) FROM tab2
----
7

query III rowsort
SELECT * FROM tab0 WHERE + 64 * + + col1 - - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT ( + - 14 ) AS col1, col2 FROM tab2
----
-14
23
-14
40
-14
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3142
SELECT + - col2 * - CAST( col2 AS SIGNED ) + + - 36 FROM tab1 AS cor0
----
3445
4588
9180

skipif mysql # not compatible
query I rowsort label-3142
SELECT + - col2 * - CAST ( col2 AS INTEGER ) + + - 36 FROM tab1 AS cor0
----
3445
4588
9180

query I rowsort
SELECT - ( - ( - - 65 ) ) FROM tab1 AS cor0
----
65
65
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3144
SELECT DISTINCT + ( - col1 ) * CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3144
SELECT DISTINCT + ( - col1 ) * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT ( 27 ) AS col1 FROM tab1
----
27
27
27

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col0 + - + col0 - - + ( + - col2 ) * + - col0 * - 58 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3147
SELECT - col0 FROM tab0 WHERE NOT + CAST( col1 AS SIGNED ) + - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3147
SELECT - col0 FROM tab0 WHERE NOT + CAST ( col1 AS INTEGER ) + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT ALL - SUM( DISTINCT + ( - col2 ) ) col0 FROM tab2
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3148
SELECT ALL - SUM ( DISTINCT + ( - col2 ) ) col0 FROM tab2
----
121

query I rowsort
SELECT ALL + + 60 * + col1 FROM tab1 AS cor0 WHERE NOT col0 <= + ( 3 )
----
2820
300
840

query I rowsort
SELECT + ( + + col1 ) * + col1 + + 72 FROM tab1 AS cor0
----
2281
268
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - 63 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3152
SELECT - MIN( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3152
SELECT - MIN ( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col1, - col0 * + ( - + col1 ) col0 FROM tab1 AS cor0 WHERE NOT 17 = NULL
----

query I rowsort
SELECT DISTINCT + 13 AS col1 FROM tab1
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-3155
SELECT - col2 DIV ( - col1 ) + 34 FROM tab1
----
35
40
45

skipif mysql # not compatible
query I rowsort label-3155
SELECT - col2 / ( - col1 ) + 34 FROM tab1
----
35
40
45

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - ( col0 ) ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT SUM( ALL + col2 ) AS col1 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-3157
SELECT SUM ( ALL + col2 ) AS col1 FROM tab0
----
156

query I rowsort
SELECT ALL ( 31 ) AS col0 FROM tab0
----
31
31
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3159
SELECT DISTINCT + MIN( ALL col1 ) FROM tab1 WHERE + col1 > ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3159
SELECT DISTINCT + MIN ( ALL col1 ) FROM tab1 WHERE + col1 > ( NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3160
SELECT - col2 - col1 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3160
SELECT - col2 - col1 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3161
SELECT + COUNT( ALL col0 ) * + COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-3161
SELECT + COUNT ( ALL col0 ) * + COUNT ( * ) FROM tab0
----
9

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN - col1 * + col2 AND NULL
----

query I rowsort
SELECT 93 * - 34 FROM tab2
----
-3162
-3162
-3162

onlyif mysql # aggregate syntax: 
query I rowsort label-3164
SELECT ALL COUNT( * ) - COUNT( * ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3164
SELECT ALL COUNT ( * ) - COUNT ( * ) AS col0 FROM tab1
----
0

query I rowsort
SELECT ALL + ( 21 ) * + col1 AS col1 FROM tab0
----
1701
21
441

query I rowsort
SELECT col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT 65 + COUNT( ALL col2 ) AS col0 FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----
65

skipif mysql # not compatible
query I rowsort label-3167
SELECT 65 + COUNT ( ALL col2 ) AS col0 FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----
65

query I rowsort
SELECT ALL col0 * + ( col1 ) + - 47 FROM tab2
----
2299
4881
4978

query I rowsort
SELECT DISTINCT + col0 + 31 * 56 AS col1 FROM tab2
----
1782
1800
1811

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3170
SELECT * FROM tab2 WHERE NOT col0 + ( - col2 ) <= + col2 * col1 + - col1 / CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3170
SELECT * FROM tab2 WHERE NOT col0 + ( - col2 ) <= + col2 * col1 + - col1 / CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 - col2 >= col0 + - col1
----
46
51
23
64
77
40

query I rowsort
SELECT 79 FROM tab0 WHERE ( + col1 ) + + col2 IS NOT NULL
----
79
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT + COUNT( ALL col1 ) AS col2 FROM tab1 WHERE col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3173
SELECT + COUNT ( ALL col1 ) AS col2 FROM tab1 WHERE col2 IS NOT NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> + 64 + 51
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3175
SELECT ALL + 50 * + COUNT( * ) AS col0 FROM tab1
----
150

skipif mysql # not compatible
query I rowsort label-3175
SELECT ALL + 50 * + COUNT ( * ) AS col0 FROM tab1
----
150

query III rowsort
SELECT * FROM tab1 WHERE NOT - 34 / + 15 + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE 97 + + col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col2 * - col2 + - col0 * 57 IN ( - 14 + + col1 )
----

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT NULL NOT IN ( col1 + + 2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col1 ) IN ( - 82 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 * 37 <> ( - col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 63 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT + MAX( 68 ) FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-3183
SELECT + MAX ( 68 ) FROM tab1
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-3184
SELECT + col1 DIV 19 AS col1 FROM tab2
----
2
3
4

skipif mysql # not compatible
query I rowsort label-3184
SELECT + col1 / 19 AS col1 FROM tab2
----
2
3
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT DISTINCT 97 + SUM( ALL ( - 92 ) ) FROM tab1
----
-179

skipif mysql # not compatible
query I rowsort label-3185
SELECT DISTINCT 97 + SUM ( ALL ( - 92 ) ) FROM tab1
----
-179

query I rowsort
SELECT ALL 23 * 24 + col1 * + 47 FROM tab1 AS cor0
----
1210
2761
787

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3187
SELECT CAST( NULL AS DECIMAL ) + + MIN( + 18 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3187
SELECT CAST ( NULL AS REAL ) + + MIN ( + 18 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col1 + + 86 * + col2 FROM tab0 AS cor0
----
4123
8515
881

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3189
SELECT + ( 45 ) / CAST( NULL AS SIGNED ) + + CAST( col0 AS DECIMAL ) * - 65 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3189
SELECT + ( 45 ) / CAST ( NULL AS INTEGER ) + + CAST ( col0 AS REAL ) * - 65 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 NOT BETWEEN col2 / - 16 AND ( col1 )
----

query I rowsort
SELECT DISTINCT col0 * - 93 + 82 AS col1 FROM tab1 AS cor0 WHERE NULL <= ( 57 )
----

query I rowsort
SELECT 56 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL - 98 - ( - 34 ) AS col1 FROM tab1
----
-64
-64
-64

query I rowsort
SELECT DISTINCT + 78 + 12 FROM ( tab0 AS cor0 CROSS JOIN tab2 )
----
90

query I rowsort
SELECT + + ( col1 ) * ( col1 * ( - col2 ) ) AS col1 FROM tab2 AS cor0
----
-237160
-260362
-59823

query I rowsort
SELECT ( 85 ) AS col2 FROM tab1 cor0
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT DISTINCT - SUM( DISTINCT + 57 ) FROM tab2 cor0
----
-57

skipif mysql # not compatible
query I rowsort label-3197
SELECT DISTINCT - SUM ( DISTINCT + 57 ) FROM tab2 cor0
----
-57

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 67 * col2 + - col2 * + col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3199
SELECT ALL + - col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3199
SELECT ALL + - col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3200
SELECT ALL + 37 DIV col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3200
SELECT ALL + 37 / col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * + 7 AS col2 FROM tab2
----
357
469
539

onlyif mysql # aggregate syntax: 
query I rowsort label-3202
SELECT SUM( col1 ) col0 FROM tab0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3202
SELECT SUM ( col1 ) col0 FROM tab0
----
103

query I rowsort
SELECT DISTINCT 21 + - col2 * + col2 AS col0 FROM tab1 WHERE NOT ( NULL ) <= 69 + - ( col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) IS NULL OR col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3205
SELECT + MIN( - 79 ) FROM tab1
----
-79

skipif mysql # not compatible
query I rowsort label-3205
SELECT + MIN ( - 79 ) FROM tab1
----
-79

query III rowsort
SELECT * FROM tab0 WHERE NULL IS NULL OR NULL NOT IN ( col1 * - 11 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3207
SELECT DISTINCT - MIN( DISTINCT - CAST( col2 AS SIGNED ) ) FROM tab0 WHERE NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3207
SELECT DISTINCT - MIN ( DISTINCT - CAST ( col2 AS INTEGER ) ) FROM tab0 WHERE NULL <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT 12 * - MIN( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
-552

skipif mysql # not compatible
query I rowsort label-3208
SELECT 12 * - MIN ( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
-552

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT - col0 < ( - 49 )
----

query I rowsort
SELECT col0 / + col1 - 15 AS col2 FROM tab1 WHERE NOT NULL NOT IN ( - + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3211
SELECT ALL * FROM tab2 WHERE col0 * CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3211
SELECT ALL * FROM tab2 WHERE col0 * CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + ( 66 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT DISTINCT - COUNT( * ) + - 67 AS col2 FROM tab0 cor0
----
-70

skipif mysql # not compatible
query I rowsort label-3213
SELECT DISTINCT - COUNT ( * ) + - 67 AS col2 FROM tab0 cor0
----
-70

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col0 + col0 ) = NULL
----

query I rowsort
SELECT ALL + col2 + + - col1 AS col2 FROM tab0 cor0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT + - 97 + - COUNT( * ) FROM tab2 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-3216
SELECT + - 97 + - COUNT ( * ) FROM tab2 AS cor0
----
-100

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 NOT IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 IN ( col0 / 84 )
----

query I rowsort
SELECT DISTINCT 20 + col1 AS col0 FROM tab2 AS cor0
----
71
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3220
SELECT ALL - col2 DIV - 10 + col1 FROM tab1 AS cor0
----
10
23
53

skipif mysql # not compatible
query I rowsort label-3220
SELECT ALL - col2 / - 10 + col1 FROM tab1 AS cor0
----
10
23
53

query I rowsort
SELECT + 1 + - - 31 AS col1 FROM tab2 cor0
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT DISTINCT + ( 79 ) + COUNT( * ) FROM tab1 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-3222
SELECT DISTINCT + ( 79 ) + COUNT ( * ) FROM tab1 AS cor0
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3223
SELECT + col2 + col2 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3223
SELECT + col2 + col2 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + ( col2 ) AS col2, - col0 AS col0 FROM tab2
----
23
-46
40
-64
58
-75

query II rowsort
SELECT ALL 28 + + 11, col2 FROM tab0
----
39
10
39
47
39
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( - 29 ) col2, 68 FROM tab2
----
-29
68

query I rowsort
SELECT DISTINCT - ( + 38 ) AS col2 FROM tab1 WHERE NOT - col2 > col2
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3228
SELECT ALL + CAST( NULL AS SIGNED ), - ( + CAST( NULL AS SIGNED ) ) col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3228
SELECT ALL + CAST ( NULL AS INTEGER ), - ( + CAST ( NULL AS INTEGER ) ) col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * 76 * + 12 - col1 * + col1 FROM tab2 AS cor0
----
18375
30551
48407

query II rowsort
SELECT - col2 - - - col0, col1 FROM tab2 AS cor0
----
-104
77
-133
67
-69
51

onlyif mysql # DIV for integer division: 
query I rowsort label-3231
SELECT DISTINCT + ( col1 ) DIV col0 - + 31 * col0 AS col2 FROM tab2 AS cor0
----
-1425
-1983
-2325

skipif mysql # not compatible
query I rowsort label-3231
SELECT DISTINCT + ( col1 ) / col0 - + 31 * col0 AS col2 FROM tab2 AS cor0
----
-1425
-1983
-2325

query III rowsort
SELECT * FROM tab2 WHERE - + col1 IN ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3233
SELECT DISTINCT + CAST( + col0 AS SIGNED ) - + - col0 * - col0 FROM tab0
----
-210
-7482
-9312

skipif mysql # not compatible
query I rowsort label-3233
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) - + - col0 * - col0 FROM tab0
----
-210
-7482
-9312

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3234
SELECT ALL + 50 * - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3234
SELECT ALL + 50 * - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 30 AND NULL
----

query I rowsort
SELECT - - 93 * + - col1 AS col1 FROM tab2 cor0
----
-4743
-6231
-7161

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3237
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN - CAST( NULL AS DECIMAL ) AND - - 86
----

skipif mysql # not compatible
query III rowsort label-3237
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN - CAST ( NULL AS REAL ) AND - - 86
----

query I rowsort
SELECT DISTINCT + col1 * + + ( + 95 ) AS col2 FROM tab0 AS cor0
----
1995
7695
95

query II rowsort
SELECT DISTINCT + col2, col2 + ( col0 ) * 97 * + col2 + - col0 AS col1 FROM tab2 AS cor0
----
23
102603
40
248296
58
421933

query II rowsort
SELECT DISTINCT 54 AS col2, 21 FROM tab1 AS cor0
----
54
21

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT + 48 BETWEEN + 92 * - - ( col0 ) * - 39 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT ALL + + COUNT( DISTINCT + col1 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3242
SELECT ALL + + COUNT ( DISTINCT + col1 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT - ( + COUNT( * ) ) * 52 FROM tab2 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3243
SELECT - ( + COUNT ( * ) ) * 52 FROM tab2 AS cor0
----
-156

query I rowsort
SELECT ALL + - col0 * + - 99 FROM tab1 AS cor0
----
5049
8415
9009

query I rowsort
SELECT ALL col0 * - col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + - 58 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3246
SELECT DISTINCT + 20 * col2 DIV + col0 FROM tab1 AS cor0
----
13
14
37

skipif mysql # not compatible
query I rowsort label-3246
SELECT DISTINCT + 20 * col2 / + col0 FROM tab1 AS cor0
----
13
14
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3247
SELECT - MIN( - 23 ) AS col2 FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-3247
SELECT - MIN ( - 23 ) AS col2 FROM tab2 cor0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-3248
SELECT 85 DIV col0 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-3248
SELECT 85 / col0 FROM tab0
----
0
0
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3249
SELECT ALL + col1 DIV - - col0 AS col0 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-3249
SELECT ALL + col1 / - - col0 AS col0 FROM tab0
----
0
0
5

query I rowsort
SELECT ALL + ( + col1 ) * - 5 FROM tab1
----
-235
-25
-70

query II rowsort
SELECT ALL + 51, col2 - + + col1 AS col2 FROM tab1
----
51
21
51
54
51
82

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + + col2 ) NOT IN ( + 44 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT - 95 IN ( col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3254
SELECT COUNT( * ) AS col1 FROM tab0 WHERE NOT ( CAST( - col1 AS SIGNED ) - - 30 ) >= ( 86 + + col2 )
----
3

skipif mysql # not compatible
query I rowsort label-3254
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE NOT ( CAST ( - col1 AS INTEGER ) - - 30 ) >= ( 86 + + col2 )
----
3

query I rowsort
SELECT + col0 * + ( + + col1 ) FROM tab2
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT ALL - + 20 + - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3256
SELECT ALL - + 20 + - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-23

query II rowsort
SELECT + 42, col2 FROM tab2 cor0
----
42
23
42
40
42
58

query I rowsort
SELECT - 42 * + 9 FROM tab0 AS cor0
----
-378
-378
-378

query I rowsort
SELECT DISTINCT ( - col1 ) FROM tab2 AS cor0 WHERE NOT + col1 * - 35 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3260
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3260
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3261
SELECT ALL + - 98 * - ( + - CAST( - - col0 AS SIGNED ) ) + - ( 51 ) + - col1 * + col2 FROM tab1 AS cor0
----
-12165
-6393
-8676

skipif mysql # not compatible
query I rowsort label-3261
SELECT ALL + - 98 * - ( + - CAST ( - - col0 AS INTEGER ) ) + - ( 51 ) + - col1 * + col2 FROM tab1 AS cor0
----
-12165
-6393
-8676

query I rowsort
SELECT DISTINCT 2 AS col2 FROM tab0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT + 86 AS col0 FROM tab0 WHERE NULL >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 11 col1 FROM tab2 WHERE ( col2 * + + col2 + - 39 * 61 * col1 ) <= NULL
----

query I rowsort
SELECT ( + + col2 ) + + + 69 AS col1 FROM tab1
----
128
137
165

query I rowsort
SELECT ALL + ( 86 ) + - - 70 * col0 + col2 AS col2 FROM tab2
----
3329
4606
5394

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT ALL + + MIN( + + col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-3267
SELECT ALL + + MIN ( + + col0 ) FROM tab2 AS cor0
----
46

query I rowsort
SELECT DISTINCT col2 + + 41 + + 18 AS col1 FROM tab1 AS cor0
----
118
127
155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3269
SELECT ALL CAST( + + 58 AS SIGNED ) * + col1 + + + 51 + 90 FROM tab0 AS cor0
----
1359
199
4839

skipif mysql # not compatible
query I rowsort label-3269
SELECT ALL CAST ( + + 58 AS INTEGER ) * + col1 + + + 51 + 90 FROM tab0 AS cor0
----
1359
199
4839

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 89 BETWEEN NULL AND - 94 / col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3271
SELECT DISTINCT + 7 + ( COUNT( * ) ) DIV - 59 FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-3271
SELECT DISTINCT + 7 + ( COUNT ( * ) ) / - 59 FROM tab2 AS cor0
----
7

query I rowsort
SELECT ALL - col1 * - - 69 * - - col2 + 39 + - col0 * ( + + col1 ) * - 46 * + col2 AS col2 FROM tab2 cor0
----
13138605
2401170
8855039

query I rowsort
SELECT DISTINCT col0 - 37 * - ( + col0 ) FROM tab1
----
1938
3230
3458

query I rowsort
SELECT - 59 - 22 + 56 FROM tab1
----
-25
-25
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT SUM( + col0 ) - + COUNT( * ) AS col2 FROM tab0
----
196

skipif mysql # not compatible
query I rowsort label-3275
SELECT SUM ( + col0 ) - + COUNT ( * ) AS col2 FROM tab0
----
196

query II rowsort
SELECT ALL 84 AS col0, col0 AS col0 FROM tab2
----
84
46
84
64
84
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3277
SELECT DISTINCT - CAST( - 48 AS SIGNED ) * 61 FROM tab0 WHERE + + col1 <= + 67 + CAST( - 8 AS SIGNED )
----
2928

skipif mysql # not compatible
query I rowsort label-3277
SELECT DISTINCT - CAST ( - 48 AS INTEGER ) * 61 FROM tab0 WHERE + + col1 <= + 67 + CAST ( - 8 AS INTEGER )
----
2928

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * + col0 * - 67 col0, - 6 AS col1 FROM tab2
----
-171520
-6
-291450
-6
-70886
-6

query I rowsort
SELECT col1 - + + col2 AS col1 FROM tab0
----
-98
11
34

query I rowsort
SELECT ALL + - ( + - col2 ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3281
SELECT - col1 - col2 DIV + 74 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-3281
SELECT - col1 - col2 / + 74 FROM tab2
----
-51
-67
-77

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( + col1, + col0 * + col0 + - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - + col2 + - + col0 col0 FROM tab0
----
123
2
3792

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3284
SELECT + CAST( NULL AS DECIMAL ) + MIN( ALL - ( + + 63 ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3284
SELECT + CAST ( NULL AS REAL ) + MIN ( ALL - ( + + 63 ) ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT + + col0 FROM tab1 WHERE - col0 IS NULL
----

query II rowsort
SELECT + + ( col2 ) + + col2 AS col1, col0 FROM tab0 AS cor0
----
198
97
20
87
94
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3287
SELECT DISTINCT - + COUNT( + 5 ) + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3287
SELECT DISTINCT - + COUNT ( + 5 ) + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3288
SELECT DISTINCT COUNT( * ) DIV - 35 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3288
SELECT DISTINCT COUNT ( * ) / - 35 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT DISTINCT COUNT( * ) + 1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
10

skipif mysql # not compatible
query I rowsort label-3289
SELECT DISTINCT COUNT ( * ) + 1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
10

query I rowsort
SELECT col0 * + + 52 AS col2 FROM tab1
----
2652
4420
4732

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col0 = ( + - col0 )
----

query I rowsort
SELECT 55 AS col0 FROM tab2 AS cor0 WHERE NOT col0 + - - 6 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3293
SELECT ALL - col2 * + CAST( + col0 AS SIGNED ) FROM tab0 cor0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-3293
SELECT ALL - col2 * + CAST ( + col0 AS INTEGER ) FROM tab0 cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT + - MAX( col1 ) AS col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3294
SELECT + - MAX ( col1 ) AS col2 FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3295
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3295
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) > + + 99 * + + 42 / 58 + 18 + - ( + col1 ) * - col1 + col2
----

query I rowsort
SELECT ALL - col0 * - - col1 * + col0 * - col2 FROM tab2
----
12615680
21858750
2482068

onlyif mysql # DIV for integer division: 
query I rowsort label-3298
SELECT 54 DIV - col0 AS col1 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-3298
SELECT 54 / - col0 AS col1 FROM tab0
----
-3
0
0

query I rowsort
SELECT DISTINCT 77 * - + 54 FROM tab0
----
-4158

onlyif mysql # DIV for integer division: 
query I rowsort label-3300
SELECT DISTINCT ( + col2 ) DIV - 7 FROM tab2
----
-3
-5
-8

skipif mysql # not compatible
query I rowsort label-3300
SELECT DISTINCT ( + col2 ) / - 7 FROM tab2
----
-3
-5
-8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3301
SELECT * FROM tab0 WHERE NOT ( - 72 * + - CAST( NULL AS SIGNED ) + col0 ) < NULL
----

skipif mysql # not compatible
query III rowsort label-3301
SELECT * FROM tab0 WHERE NOT ( - 72 * + - CAST ( NULL AS INTEGER ) + col0 ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3302
SELECT - CAST( col0 AS SIGNED ) * - col0 AS col1 FROM tab0
----
225
7569
9409

skipif mysql # not compatible
query I rowsort label-3302
SELECT - CAST ( col0 AS INTEGER ) * - col0 AS col1 FROM tab0
----
225
7569
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT ALL + 43 * - + ( - COUNT( * ) ) FROM tab1
----
129

skipif mysql # not compatible
query I rowsort label-3303
SELECT ALL + 43 * - + ( - COUNT ( * ) ) FROM tab1
----
129

query I rowsort
SELECT + 96 + - col0 FROM tab2
----
21
32
50

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND 93
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - 64 col0 FROM tab1 AS cor0
----
-123
-132
-160

query II rowsort
SELECT ALL col0 AS col1, + 22 FROM tab2 AS cor0
----
46
22
64
22
75
22

query I rowsort
SELECT + 69 * col0 FROM tab1
----
3519
5865
6279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2, + col0 col1 FROM tab0
----
10
87
47
15
99
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3310
SELECT col2 DIV + - col0 * + ( ( - + 4 ) ) AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3310
SELECT col2 / + - col0 * + ( ( - + 4 ) ) AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT + col0 * - col1 + + ( col2 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3312
SELECT DISTINCT + col2 / col0 * - - 24 * + 25 - + + col2 + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3312
SELECT DISTINCT + col2 / col0 * - - 24 * + 25 - + + col2 + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT DISTINCT MAX( - 64 ) + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-3313
SELECT DISTINCT MAX ( - 64 ) + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-61

query I rowsort
SELECT ALL - - 16 + + + 21 * + 46 AS col2 FROM tab1 cor0
----
982
982
982

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) + + col1 + col0 col2 FROM tab0 AS cor0
----
111
195
195

query I rowsort
SELECT - col0 * + 81 * + + col0 * col1 + 50 FROM tab1 AS cor0
----
-2926075
-2949484
-31525717

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT ALL COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE + 33 = ( - - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3317
SELECT ALL COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE + 33 = ( - - col1 )
----
0

query I rowsort
SELECT DISTINCT - col1 + + 41 FROM tab0 AS cor0
----
-40
20
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3319
SELECT ALL + col2 * - - 95 - - 12 * - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3319
SELECT ALL + col2 * - - 95 - - 12 * - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT COUNT( * ) * + ( - - 51 ) FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-3320
SELECT COUNT ( * ) * + ( - - 51 ) FROM tab1
----
153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3321
SELECT ALL + CAST( + 80 AS SIGNED ) col0, - COUNT( * ) FROM tab1
----
80
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3321
SELECT ALL + CAST ( + 80 AS INTEGER ) col0, - COUNT ( * ) FROM tab1
----
80
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT ( + - 26 + ( + ( + col0 ) ) IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 + + col1 AS col1 FROM tab1 AS cor0 WHERE + col2 * 21 - + + col0 IS NOT NULL
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT ALL - + MAX( DISTINCT 59 ) col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3324
SELECT ALL - + MAX ( DISTINCT 59 ) col1 FROM tab1 AS cor0
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 10 AS col2, - ( - - 41 ) col0 FROM tab2 AS cor0
----
-10
-41
-10
-41
-10
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 78 col1 FROM tab2 AS cor0
----
-78
-78
-78

query I rowsort
SELECT ALL - col1 * + 10 FROM tab2 AS cor0
----
-510
-670
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT + - COUNT( - 46 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3328
SELECT + - COUNT ( - 46 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + 90 AS col0 FROM tab0 cor0
----
90
90
90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3330
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - col2 * - col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3330
SELECT DISTINCT CAST ( NULL AS REAL ) * - col2 * - col0 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3331
SELECT ALL col2 * + col2 * col0 DIV - col2 + + col2 * 19 - - col2 + - 23 + 26 AS col2 FROM tab0
----
-667
-7620
238

skipif mysql # not compatible
query I rowsort label-3331
SELECT ALL col2 * + col2 * col0 / - col2 + + col2 * 19 - - col2 + - 23 + 26 AS col2 FROM tab0
----
-667
-7620
238

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3332
SELECT ALL + ( + + col1 ) * + - col1 * + CAST( - col1 AS SIGNED ) + - col2 FROM tab2 AS cor0
----
132628
300705
456493

skipif mysql # not compatible
query I rowsort label-3332
SELECT ALL + ( + + col1 ) * + - col1 * + CAST ( - col1 AS INTEGER ) + - col2 FROM tab2 AS cor0
----
132628
300705
456493

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3333
SELECT - 79 DIV - COUNT( * ) AS col0 FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-3333
SELECT - 79 / - COUNT ( * ) AS col0 FROM tab0
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3334
SELECT + + CAST( 35 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
35
35
35

skipif mysql # not compatible
query I rowsort label-3334
SELECT + + CAST ( 35 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
35
35
35

query I rowsort
SELECT DISTINCT col2 + - ( + col2 ) FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3336
SELECT col1 DIV 59 DIV + 11 * col0 * col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3336
SELECT col1 / 59 / + 11 * col0 * col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3337
SELECT - COUNT( * ) * + 22 AS col2 FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3337
SELECT - COUNT ( * ) * + 22 AS col2 FROM tab2 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3338
SELECT DISTINCT - COUNT( * ) + - - 71 + + 78 FROM tab2 AS cor0
----
146

skipif mysql # not compatible
query I rowsort label-3338
SELECT DISTINCT - COUNT ( * ) + - - 71 + + 78 FROM tab2 AS cor0
----
146

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 NOT BETWEEN + col2 AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 91 + - col2 FROM tab0 AS cor0
----
-101
-138
-190

query I rowsort
SELECT ALL + ( col2 ) - + + ( - - 48 ) AS col1 FROM tab2 AS cor0
----
-25
-8
10

query I rowsort
SELECT + 61 - - ( 97 ) AS col1 FROM tab0 AS cor0
----
158
158
158

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT DISTINCT + - 42 + + COUNT( + - col1 ) AS col1 FROM tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-3343
SELECT DISTINCT + - 42 + + COUNT ( + - col1 ) AS col1 FROM tab2 AS cor0
----
-39

query I rowsort
SELECT DISTINCT - 48 * 98 - - col0 + - 56 FROM tab1 AS cor0
----
-4669
-4675
-4709

query I rowsort
SELECT DISTINCT 46 - col2 + + - col0 FROM tab0
----
-150
-16
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - + col0 col2 FROM tab0
----
-108
-96
-98

query I rowsort
SELECT DISTINCT + col2 - + 10 FROM tab0
----
0
37
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT DISTINCT + ( + + COUNT( * ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3348
SELECT DISTINCT + ( + + COUNT ( * ) ) AS col1 FROM tab2
----
3

query III rowsort
SELECT * FROM tab0 WHERE - + col2 + + col2 NOT IN ( col2 * + col0 * + - col0 + + + 73 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 0 + + col1 * col2 AS col1 FROM tab0
----
210
3807
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col1, col2 - - + 83 AS col0 FROM tab1
----
51
179
85
142
91
151

onlyif mysql # aggregate syntax: 
query II rowsort label-3352
SELECT COUNT( * ) AS col2, + ( + 57 ) AS col2 FROM tab2
----
3
57

skipif mysql # not compatible
query II rowsort label-3352
SELECT COUNT ( * ) AS col2, + ( + 57 ) AS col2 FROM tab2
----
3
57

query I rowsort
SELECT - - 47 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - col2 AS col0, col0 FROM tab0
----
-10
87
-47
15
-99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT ALL COUNT( - 24 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3355
SELECT ALL COUNT ( - 24 ) AS col2 FROM tab1
----
3

query II rowsort
SELECT DISTINCT + col1 AS col2, + col0 * + 76 AS col2 FROM tab0
----
1
7372
21
6612
81
1140

query II rowsort
SELECT 14 AS col0, + col0 AS col1 FROM tab0 AS cor0
----
14
15
14
87
14
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3358
SELECT col1 DIV - col0 AS col0 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-3358
SELECT col1 / - col0 AS col0 FROM tab0 AS cor0
----
-5
0
0

query I rowsort
SELECT DISTINCT - + 41 AS col2 FROM tab1 WHERE NULL IS NULL
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT ALL + MAX( DISTINCT + - col2 ) AS col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-3360
SELECT ALL + MAX ( DISTINCT + - col2 ) AS col1 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT DISTINCT + - col0 AS col2 FROM tab2 AS cor0 WHERE NOT col2 <= + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3362
SELECT DISTINCT 49 * + - CAST( NULL AS SIGNED ) AS col2, - col0 * + 76 - + + col1 + - 17 AS col1 FROM tab1 cor0
----
NULL
-3907
NULL
-6482
NULL
-6980

skipif mysql # not compatible
query II rowsort label-3362
SELECT DISTINCT 49 * + - CAST ( NULL AS INTEGER ) AS col2, - col0 * + 76 - + + col1 + - 17 AS col1 FROM tab1 cor0
----
NULL
-3907
NULL
-6482
NULL
-6980

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 1 BETWEEN col0 AND - ( - - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col2 >= - col2 / + + col0 + + col1 * + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3365
SELECT - col1 + + col0 DIV + col1 FROM tab0
----
-17
-81
96

skipif mysql # not compatible
query I rowsort label-3365
SELECT - col1 + + col0 / + col1 FROM tab0
----
-17
-81
96

query III rowsort
SELECT * FROM tab1 WHERE + - 82 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 + - 18 FROM tab2
----
28
46
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT ALL COUNT( * ) + - + MIN( ALL - + 30 ) FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-3368
SELECT ALL COUNT ( * ) + - + MIN ( ALL - + 30 ) FROM tab2
----
33

query I rowsort
SELECT DISTINCT + col0 + - - col0 * - 63 FROM tab1 AS cor0
----
-3162
-5270
-5642

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - ( + + 98 ) ) col1 FROM tab2 AS cor0
----
-98
-98
-98

query I rowsort
SELECT ALL - col0 + - col0 * - - col0 FROM tab2 AS cor0
----
-2162
-4160
-5700

query I rowsort
SELECT DISTINCT - 47 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-47

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 AS cor0 WHERE NULL <= - col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 5 IN ( + ( + + col1 ) + - col2 * + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 71 AS col1 FROM tab0 AS cor0 WHERE col0 / col2 * - col0 + col2 * + col0 <> - - col2
----
71
71
71

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 97 + col0 IS NULL )
----

query I rowsort
SELECT DISTINCT + col0 + - - col2 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT - col0 + ( ( - col2 ) ) FROM tab1 AS cor0
----
-144
-147
-159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 * - 83 col1 FROM tab2 AS cor0
----
-132800
-279212
-43907

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 - col0 IN ( + col0 * col1, - col1 + - col1, col1 )
----

query II rowsort
SELECT col0, - 24 + + col2 * - + 79 AS col1 FROM tab1
----
51
-7608
85
-4685
91
-5396

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 41 + + col1 IS NOT NULL
----

query II rowsort
SELECT col1 AS col0, + col0 + col2 * + + 61 FROM tab2
----
51
1449
67
3613
77
2504

query II rowsort
SELECT DISTINCT col0, 90 AS col1 FROM tab2
----
46
90
64
90
75
90

query I rowsort
SELECT DISTINCT + ( - 14 ) * + 34 AS col2 FROM tab0
----
-476

query I rowsort
SELECT ALL - - col0 * ( + 17 ) AS col0 FROM tab1 AS cor0
----
1445
1547
867

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT - ( + 65 ) * - - 1 + + COUNT( * ) + + SUM( + - 23 ) AS col0 FROM tab0 AS cor0
----
-131

skipif mysql # not compatible
query I rowsort label-3387
SELECT - ( + 65 ) * - - 1 + + COUNT ( * ) + + SUM ( + - 23 ) AS col0 FROM tab0 AS cor0
----
-131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3388
SELECT DISTINCT + ( + + CAST( - - col1 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3388
SELECT DISTINCT + ( + + CAST ( - - col1 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT DISTINCT + + 90 AS col1 FROM tab2 WHERE - col1 + + col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - ( col0 ) * - - col0 FROM tab0
----
-225
-7569
-9409

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 18 NOT BETWEEN NULL AND - + 88
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 * - col1 + + 86 + - col1 * col2 AS col1 FROM tab1
----
-544
1167
216

query I rowsort
SELECT + col0 + - col0 * - + col0 AS col0 FROM tab0
----
240
7656
9506

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 75 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT - 36 + COUNT( * ) FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-3395
SELECT - 36 + COUNT ( * ) FROM tab1 AS cor0
----
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 12 * + col2 * + col2 * 26 + - + ( col1 ), 76 col2 FROM tab1 AS cor0
----
1086067
76
1442641
76
2875378
76

query I rowsort
SELECT ALL - col1 * - col2 + - 92 + - col1 * + - col0 * col0 AS col2 FROM tab1 AS cor0
----
36328
37666
392311

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3398
SELECT + COUNT( DISTINCT - ( + CAST( col2 AS DECIMAL ) ) ) * + MIN( DISTINCT + col0 ) col0 FROM tab2 AS cor0
----
138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3398
SELECT + COUNT ( DISTINCT - ( + CAST ( col2 AS REAL ) ) ) * + MIN ( DISTINCT + col0 ) col0 FROM tab2 AS cor0
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-3399
SELECT MIN( DISTINCT + + col0 ) AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3399
SELECT MIN ( DISTINCT + + col0 ) AS col0 FROM tab1 AS cor0
----
51

query I rowsort
SELECT ALL - + col0 + 4 AS col2 FROM tab0 AS cor0
----
-11
-83
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT + + COUNT( - col0 ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3401
SELECT + + COUNT ( - col0 ) col0 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3402
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > - col1 + col2 * - CAST( NULL AS DECIMAL ) + - 34 * + col2
----

skipif mysql # not compatible
query III rowsort label-3402
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > - col1 + col2 * - CAST ( NULL AS REAL ) + - 34 * + col2
----

query I rowsort
SELECT ALL - col2 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + 33 * + col1 + + col2 + 20
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3404
SELECT COUNT( * ) DIV + 31 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3404
SELECT COUNT ( * ) / + 31 AS col1 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - 63 * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3406
SELECT ALL + MIN( DISTINCT + col1 ) AS col2 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-3406
SELECT ALL + MIN ( DISTINCT + col1 ) AS col2 FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT DISTINCT - COUNT( ALL - 33 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3407
SELECT DISTINCT - COUNT ( ALL - 33 ) FROM tab0
----
-3

query I rowsort
SELECT col2 + + 66 AS col2 FROM tab1
----
125
134
162

query I rowsort
SELECT DISTINCT + + ( + + col0 ) * - col1 + - col1 AS col1 FROM tab0 AS cor0 WHERE ( + + col1 < NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3410
SELECT ALL * FROM tab2 AS cor0 WHERE - 84 IN ( + - CAST( - col2 AS SIGNED ) * + - col1 + + 77 )
----

skipif mysql # not compatible
query III rowsort label-3410
SELECT ALL * FROM tab2 AS cor0 WHERE - 84 IN ( + - CAST ( - col2 AS INTEGER ) * + - col1 + + 77 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT ALL + COUNT( ALL - col1 ) + - + 73 col0 FROM tab0 AS cor0
----
-70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3411
SELECT ALL + COUNT ( ALL - col1 ) + - + 73 col0 FROM tab0 AS cor0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3412
SELECT DISTINCT + COUNT( * ) - - 77 AS col0 FROM tab0 AS cor0 WHERE ( NOT NULL >= + 38 / + col2 + + col0 * - - col1 - - + 36 )
----
77

skipif mysql # not compatible
query I rowsort label-3412
SELECT DISTINCT + COUNT ( * ) - - 77 AS col0 FROM tab0 AS cor0 WHERE ( NOT NULL >= + 38 / + col2 + + col0 * - - col1 - - + 36 )
----
77

query I rowsort
SELECT - 33 FROM tab2 WHERE NOT col1 <> + + 3 OR + 86 = NULL
----

query II rowsort
SELECT 37 AS col0, 88 FROM tab1
----
37
88
37
88
37
88

query I rowsort
SELECT ALL + col0 * + 77 FROM tab1 AS cor0
----
3927
6545
7007

query I rowsort
SELECT DISTINCT - col1 + - 89 AS col0 FROM tab0 cor0
----
-110
-170
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 - + col0 * 62 col2, 23 AS col1 FROM tab0 cor0
----
-5373
23
-6013
23
-849
23

query I rowsort
SELECT ALL + col2 * - + col2 * col2 AS col0 FROM tab0 AS cor0
----
-1000
-103823
-970299

query I rowsort
SELECT ALL - col0 + + - 30 * + - col0 AS col2 FROM tab2 AS cor0
----
1334
1856
2175

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT COUNT( * ) * + COUNT( * ) FROM tab2, tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-3421
SELECT COUNT ( * ) * + COUNT ( * ) FROM tab2, tab0 cor0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 88 * + + col1 AS col2, ( - 9 ) + col2 col1 FROM tab2
----
4488
14
5896
49
6776
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3423
SELECT ALL + CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE + col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3423
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE + col0 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT ALL MIN( 13 ) AS col1 FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-3424
SELECT ALL MIN ( 13 ) AS col1 FROM tab1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT - MAX( 8 ) FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-3425
SELECT - MAX ( 8 ) FROM tab2
----
-8

query II rowsort
SELECT 37 * - 61, - ( + col2 ) AS col2 FROM tab0
----
-2257
-10
-2257
-47
-2257
-99

query I rowsort
SELECT ALL col2 * - 10 AS col2 FROM tab2
----
-230
-400
-580

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT - 18 < + ( 39 ) * col2 + + 9 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3429
SELECT DISTINCT + CAST( - - 76 AS SIGNED ) * col1 FROM tab1 AS cor0
----
1064
3572
380

skipif mysql # not compatible
query I rowsort label-3429
SELECT DISTINCT + CAST ( - - 76 AS INTEGER ) * col1 FROM tab1 AS cor0
----
1064
3572
380

onlyif mysql # DIV for integer division: 
query I rowsort label-3430
SELECT ALL col1 DIV - ( - col2 ) AS col1 FROM tab0 cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3430
SELECT ALL col1 / - ( - col2 ) AS col1 FROM tab0 cor0
----
0
1
2

query I rowsort
SELECT - AVG ( col0 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3432
SELECT DISTINCT + CAST( - ( col0 ) AS SIGNED ) FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-3432
SELECT DISTINCT + CAST ( - ( col0 ) AS INTEGER ) FROM tab0
----
-15
-87
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3433
SELECT DISTINCT - CAST( + COUNT( + - 51 ) AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3433
SELECT DISTINCT - CAST ( + COUNT ( + - 51 ) AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query II rowsort
SELECT DISTINCT - + col2 AS col1, + col0 FROM tab0 cor0
----
-10
87
-47
15
-99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT - MIN( - 34 ) FROM tab1 AS cor0 WHERE - col2 * + - col1 * - col2 IS NOT NULL
----
34

skipif mysql # not compatible
query I rowsort label-3435
SELECT - MIN ( - 34 ) FROM tab1 AS cor0 WHERE - col2 * + - col1 * - col2 IS NOT NULL
----
34

query I rowsort
SELECT DISTINCT + col0 + + col2 * - col1 AS col1 FROM tab1 cor0
----
-1293
-210
-3105

query II rowsort
SELECT ALL col2, - 10 * - + 96 AS col2 FROM tab1 AS cor0
----
59
960
68
960
96
960

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT DISTINCT + 39 + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-3438
SELECT DISTINCT + 39 + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3439
SELECT 57 + - + 11 * + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3439
SELECT 57 + - + 11 * + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3440
SELECT DISTINCT - CAST( 57 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-3440
SELECT DISTINCT - CAST ( 57 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-57

query I rowsort
SELECT ALL - col0 + + 52 AS col2 FROM tab2
----
-12
-23
6

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 * + col2 * + col1 * + col2 IN ( + col0 * - - 96 * - col2 + - - col2, - 80, col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3443
SELECT - col0 DIV - 83 + + col2 + + - col2 * + - col0 FROM tab2
----
1081
2600
4408

skipif mysql # not compatible
query I rowsort label-3443
SELECT - col0 / - 83 + + col2 + + - col2 * + - col0 FROM tab2
----
1081
2600
4408

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 90 = ( - 59 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 * + 61 * + col2 AS col2 FROM tab0
----
43005
53070
585783

query II rowsort
SELECT DISTINCT col0 AS col0, 56 AS col0 FROM tab2 WHERE NOT + + col1 * - - 75 + - 51 * + col1 NOT BETWEEN 83 AND ( - + 87 )
----

query III rowsort
SELECT * FROM tab1 WHERE + 47 >= + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - 57 FROM tab2 WHERE + col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT 5 FROM tab2 WHERE NULL BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - ( - - 65 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - ( - + col0 ) + - col1 AS col1 FROM tab0 AS cor0
----
-108
-96
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + 42 col1 FROM tab1 AS cor0
----
101
110
138

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT 10 * - 74 - + COUNT( * ) FROM tab0 AS cor0
----
-743

skipif mysql # not compatible
query I rowsort label-3453
SELECT 10 * - 74 - + COUNT ( * ) FROM tab0 AS cor0
----
-743

query I rowsort
SELECT ALL + col0 + + 63 AS col0 FROM tab1 AS cor0
----
114
148
154

query II rowsort
SELECT + ( + + col2 ) * - col2 AS col0, col1 * + - 84 FROM tab0 cor0
----
-100
-1764
-2209
-6804
-9801
-84

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 55 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 * + 9 + 34 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 * + + col1 col1 FROM tab2 AS cor0
----
3417
4489
5159

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <> 13
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT ALL 34 * COUNT( + col1 ) AS col2 FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-3460
SELECT ALL 34 * COUNT ( + col1 ) AS col2 FROM tab0
----
102

query II rowsort
SELECT ALL + col1 AS col2, - ( + - col1 ) FROM tab0
----
1
1
21
21
81
81

query I rowsort
SELECT + col2 * - + col0 + + 1 / - 78 + - + col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3463
SELECT + + col1, col0 DIV + - col0 FROM tab2 AS cor0
----
51
-1
67
-1
77
-1

skipif mysql # not compatible
query II rowsort label-3463
SELECT + + col1, col0 / + - col0 FROM tab2 AS cor0
----
51
-1
67
-1
77
-1

query I rowsort
SELECT DISTINCT + col2 * 64 FROM tab1
----
3776
4352
6144

query I rowsort
SELECT DISTINCT + 23 * col1 FROM tab0
----
1863
23
483

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col1 * - 54 + + col0 col2 FROM tab1 AS cor0
----
-22865
-230867
-38505

query I rowsort
SELECT DISTINCT - col1 * + - col0 + - col2 FROM tab0 AS cor0
----
-2
1168
1817

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab1 cor0 WHERE + col0 IS NOT NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3469
SELECT + 82 * 6 * + + SUM( - 51 ) FROM tab1 AS cor0
----
-75276

skipif mysql # not compatible
query I rowsort label-3469
SELECT + 82 * 6 * + + SUM ( - 51 ) FROM tab1 AS cor0
----
-75276

onlyif mysql # DIV for integer division: 
query I rowsort label-3470
SELECT DISTINCT + - col2 DIV - + col0 + + + ( col0 ) * + col1 AS col1 FROM tab0 cor0
----
1218
1827
98

skipif mysql # not compatible
query I rowsort label-3470
SELECT DISTINCT + - col2 / - + col0 + + + ( col0 ) * + col1 AS col1 FROM tab0 cor0
----
1218
1827
98

query I rowsort
SELECT ALL col1 * col0 * 75 AS col0 FROM tab1 AS cor0
----
31875
320775
53550

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN + col2 + - 32 AND + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( + col0 ) * - 99 AS col0 FROM tab0 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT ALL - 52 FROM tab2, tab1 AS cor0
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3475
SELECT + AVG ( - 99 ) - - CAST( NULL AS SIGNED ) + - - ( ( - + 8 ) ) * 8 * - 53 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3475
SELECT + AVG ( - 99 ) - - CAST ( NULL AS INTEGER ) + - - ( ( - + 8 ) ) * 8 * - 53 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT - MAX( - + col2 ) - - 40 AS col0 FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-3476
SELECT - MAX ( - + col2 ) - - 40 AS col0 FROM tab2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT - COUNT( * ) FROM tab2 WHERE - - 25 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3477
SELECT - COUNT ( * ) FROM tab2 WHERE - - 25 IS NULL
----
0

query I rowsort
SELECT 15 + + + 63 FROM tab2
----
78
78
78

query I rowsort
SELECT ALL 26 + + col2 * - - col1 * 42 FROM tab2
----
129386
163238
49292

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT COUNT( ALL + 20 ) + + + 52 FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-3480
SELECT COUNT ( ALL + 20 ) + + + 52 FROM tab1
----
55

query III rowsort
SELECT * FROM tab1 WHERE - - col0 / 34 + 38 / - col1 * + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT - + MAX( + - col1 ) + COUNT( * ) col2 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3482
SELECT - + MAX ( + - col1 ) + COUNT ( * ) col2 FROM tab2 AS cor0
----
54

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 * - - col0 + + col2 + col2 NOT BETWEEN ( - 2 ) + 91 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3484
SELECT ALL - CAST( NULL AS SIGNED ) - 71 + col2 - - col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3484
SELECT ALL - CAST ( NULL AS INTEGER ) - 71 + col2 - - col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 33 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 17, col1 col0 FROM tab1
----
17
14
17
47
17
5

onlyif mysql # DIV for integer division: 
query II rowsort label-3487
SELECT - 3 AS col0, col2 + - - ( 58 ) DIV + col1 FROM tab2
----
-3
24
-3
40
-3
58

skipif mysql # not compatible
query II rowsort label-3487
SELECT - 3 AS col0, col2 + - - ( 58 ) / + col1 FROM tab2
----
-3
24
-3
40
-3
58

query II rowsort
SELECT DISTINCT + ( + 12 ) AS col2, + col1 AS col2 FROM tab0
----
12
1
12
21
12
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3489
SELECT CAST( NULL AS SIGNED ) * + COUNT( * ) col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3489
SELECT CAST ( NULL AS INTEGER ) * + COUNT ( * ) col0 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL col2 AS col2, col1 + - - col2 AS col0 FROM tab2 AS cor0
----
23
74
40
117
58
125

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> col0
----

query I rowsort
SELECT + + col0 AS col2 FROM tab2 AS cor0 WHERE NOT - 74 / + - ( + + col1 ) * col1 = - col1 * - + col1 + + + col2 * col1 / 35 + - 64 + - + 79 + + col1 * + 62 * + - col2 - ( 16 ) * - + col1 + - col1
----
46
64
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 + + + col0 + - 13 * + + 36 - 11 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3494
SELECT * FROM tab1 WHERE NOT ( ( - 26 ) * + col2 ) > - ( + 88 ) * - ( - CAST( + 51 AS SIGNED ) ) - + 86
----

skipif mysql # not compatible
query III rowsort label-3494
SELECT * FROM tab1 WHERE NOT ( ( - 26 ) * + col2 ) > - ( + 88 ) * - ( - CAST ( + 51 AS INTEGER ) ) - + 86
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT MAX( - 58 ) AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-3495
SELECT MAX ( - 58 ) AS col1 FROM tab2
----
-58

query I rowsort
SELECT ALL - 12 * + 30 AS col2 FROM tab0
----
-360
-360
-360

query II rowsort
SELECT DISTINCT - col2 * + col1 * - col2, + ( + + col1 ) AS col2 FROM tab0
----
178929
81
2100
21
9801
1

query I rowsort
SELECT ALL col1 * + + col0 * - col0 * - + col1 AS col1 FROM tab0
----
1476225
3337929
9409

query I rowsort
SELECT + col2 * + ( + + 41 ) + - col0 * - col0 + + ( + ( - col1 ) ) AS col0 FROM tab1
----
11022
6523
9639

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT - + ( COUNT( * ) ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3500
SELECT - + ( COUNT ( * ) ) col1 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT DISTINCT - - 51 + ( col1 ) AS col1, + ( - col0 ) + - + 81 FROM tab1 AS cor0
----
56
-166
65
-132
98
-172

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3502
SELECT - ( - CAST( NULL AS SIGNED ) ) * - col2, + 85 + - 13 + - - 64 + col0 * - + col1 * - col1 AS col0 FROM tab1 AS cor0
----
NULL
10132
NULL
201155
NULL
2261

skipif mysql # not compatible
query II rowsort label-3502
SELECT - ( - CAST ( NULL AS INTEGER ) ) * - col2, + 85 + - 13 + - - 64 + col0 * - + col1 * - col1 AS col0 FROM tab1 AS cor0
----
NULL
10132
NULL
201155
NULL
2261

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT COUNT( - - col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3503
SELECT COUNT ( - - col2 ) AS col0 FROM tab2
----
3

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3505
SELECT COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3505
SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL col2 + - 49 FROM tab2
----
-26
-9
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3507
SELECT * FROM tab0 AS cor0 WHERE CAST( 2 AS SIGNED ) + + - 97 * - - col0 * - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3507
SELECT * FROM tab0 AS cor0 WHERE CAST ( 2 AS INTEGER ) + + - 97 * - - col0 * - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3508
SELECT ALL - col1 DIV - 12 + + col2 FROM tab1 cor0
----
59
71
97

skipif mysql # not compatible
query I rowsort label-3508
SELECT ALL - col1 / - 12 + + col2 FROM tab1 cor0
----
59
71
97

query I rowsort
SELECT DISTINCT - 84 + + col2 AS col1 FROM tab0 AS cor0
----
-37
-74
15

query II rowsort
SELECT + ( - col0 ) + + + col2, col0 AS col2 FROM tab0 AS cor0
----
-77
87
2
97
32
15

query I rowsort
SELECT DISTINCT 35 * + col0 * col1 AS col1 FROM tab1 AS cor0
----
14875
149695
24990

query I rowsort
SELECT 82 + 65 FROM tab0 cor0
----
147
147
147

onlyif mysql # aggregate syntax: 
query I rowsort label-3513
SELECT - MAX( DISTINCT - col1 ) + + 87 FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-3513
SELECT - MAX ( DISTINCT - col1 ) + + 87 FROM tab1
----
92

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( 43 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3515
SELECT 87 + CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3515
SELECT 87 + CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3516
SELECT DISTINCT 84 - - MAX( ALL - col1 ) FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-3516
SELECT DISTINCT 84 - - MAX ( ALL - col1 ) FROM tab1
----
79

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN 75 * - ( col2 ) * 69 AND - col2 + + + col1 + + - 52
----

query I rowsort
SELECT + col0 * + 51 FROM tab2
----
2346
3264
3825

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3519
SELECT * FROM tab2 WHERE - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3519
SELECT * FROM tab2 WHERE - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3520
SELECT DISTINCT + 93 DIV - - col0 + col1 FROM tab0
----
1
22
87

skipif mysql # not compatible
query I rowsort label-3520
SELECT DISTINCT + 93 / - - col0 + col1 FROM tab0
----
1
22
87

query II rowsort
SELECT + 58 * + - col1, + col0 AS col0 FROM tab1
----
-2726
91
-290
85
-812
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - - 26 - + ( + - 76 ) - - col1 col2 FROM tab0 AS cor0
----
2359
2599
547

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT + SUM( DISTINCT + + col0 ) AS col1 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-3523
SELECT + SUM ( DISTINCT + + col0 ) AS col1 FROM tab0
----
199

query I rowsort
SELECT DISTINCT 74 AS col2 FROM tab1 cor0
----
74

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT col1 >= 69 * col0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + + ( col0 ) AS col2 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT - MAX( DISTINCT + - col1 ) AS col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-3527
SELECT - MAX ( DISTINCT + - col1 ) AS col1 FROM tab1 AS cor0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3528
SELECT - COUNT( * ) * - COUNT( * ) - - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3528
SELECT - COUNT ( * ) * - COUNT ( * ) - - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3529
SELECT CAST( - COUNT( * ) AS SIGNED ) col0 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3529
SELECT CAST ( - COUNT ( * ) AS INTEGER ) col0 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3530
SELECT ALL * FROM tab2 WHERE - + CAST( 40 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3530
SELECT ALL * FROM tab2 WHERE - + CAST ( 40 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3531
SELECT DISTINCT * FROM tab1 WHERE CAST( NULL AS SIGNED ) + - col1 BETWEEN ( ( + col1 ) - - + col2 ) AND col1 * - + col0
----

skipif mysql # not compatible
query III rowsort label-3531
SELECT DISTINCT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) + - col1 BETWEEN ( ( + col1 ) - - + col2 ) AND col1 * - + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3532
SELECT ALL - + 44 DIV ( col2 ) FROM tab0 WHERE + col1 * + col0 NOT BETWEEN NULL AND - col0 * - col1 * col2 + - col2 + + - col0 + - 10 + - - 99 * - col0
----
0

skipif mysql # not compatible
query I rowsort label-3532
SELECT ALL - + 44 / ( col2 ) FROM tab0 WHERE + col1 * + col0 NOT BETWEEN NULL AND - col0 * - col1 * col2 + - col2 + + - col0 + - 10 + - - 99 * - col0
----
0

query II rowsort
SELECT ALL 51 AS col1, - col2 - + col0 AS col1 FROM tab0
----
51
-196
51
-62
51
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT + MAX( ALL + + col1 ) AS col2 FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-3534
SELECT + MAX ( ALL + + col1 ) AS col2 FROM tab0 cor0
----
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( - 13 + ( col1 ) + + 50, 28, + col1 ) OR NOT - + 70 BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL 38 + - col2, col2 * + - col1 AS col1 FROM tab0 AS cor0
----
-61
-99
-9
-3807
28
-210

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT DISTINCT + COUNT( * ) + - COUNT( - 23 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3537
SELECT DISTINCT + COUNT ( * ) + - COUNT ( - 23 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT - - ( + 67 ) - 96 * + - col2 FROM tab1 AS cor0
----
5731
6595
9283

query I rowsort
SELECT ALL - + 32 + + col2 AS col1 FROM tab0 AS cor0
----
-22
15
67

query II rowsort
SELECT ALL + col1, + 32 FROM tab1
----
14
32
47
32
5
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT - - COUNT( * ) AS col2 FROM tab2 WHERE col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3541
SELECT - - COUNT ( * ) AS col2 FROM tab2 WHERE col1 IS NOT NULL
----
3

query I rowsort
SELECT ALL + 35 * - col2 AS col2 FROM tab0
----
-1645
-3465
-350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - - col2 col0 FROM tab2
----
104
133
69

query I rowsort
SELECT DISTINCT 48 + + + col1 FROM tab2
----
115
125
99

query I rowsort
SELECT DISTINCT ( + ( + 83 ) ) FROM tab2
----
83

query I rowsort
SELECT - - 30 - + - 28 AS col1 FROM tab2 WHERE NULL > ( + + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3547
SELECT - CAST( 10 AS SIGNED ) * - 28 + 65 FROM tab1
----
345
345
345

skipif mysql # not compatible
query I rowsort label-3547
SELECT - CAST ( 10 AS INTEGER ) * - 28 + 65 FROM tab1
----
345
345
345

onlyif mysql # aggregate syntax: 
query II rowsort label-3548
SELECT DISTINCT + COUNT( * ), ( - + COUNT( * ) ) AS col2 FROM tab1
----
3
-3

skipif mysql # not compatible
query II rowsort label-3548
SELECT DISTINCT + COUNT ( * ), ( - + COUNT ( * ) ) AS col2 FROM tab1
----
3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT COUNT( * ) * + - 54 AS col2 FROM tab1
----
-162

skipif mysql # not compatible
query I rowsort label-3549
SELECT COUNT ( * ) * + - 54 AS col2 FROM tab1
----
-162

query I rowsort
SELECT DISTINCT - 40 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
-40

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 54 IN ( - col0, + col2 * col2 * 90, - col0 + - 52, - - 43 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3552
SELECT DISTINCT + - COUNT( * ) AS col1, - 15 FROM tab0 AS cor0
----
-3
-15

skipif mysql # not compatible
query II rowsort label-3552
SELECT DISTINCT + - COUNT ( * ) AS col1, - 15 FROM tab0 AS cor0
----
-3
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3553
SELECT + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3553
SELECT + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT ALL - ( - MIN( - 67 ) ) FROM tab2 cor0
----
-67

skipif mysql # not compatible
query I rowsort label-3554
SELECT ALL - ( - MIN ( - 67 ) ) FROM tab2 cor0
----
-67

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 + + col1 + + col1 + - col2 + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3556
SELECT + COUNT( DISTINCT + 46 ) + + - MIN( ALL + + CAST( NULL AS SIGNED ) ) + + + COUNT( * ) / - 86 - + 52 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3556
SELECT + COUNT ( DISTINCT + 46 ) + + - MIN ( ALL + + CAST ( NULL AS INTEGER ) ) + + + COUNT ( * ) / - 86 - + 52 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 98 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 34 + col1 - col1 AS col2 FROM tab0
----
-34
-34
-34

query I rowsort
SELECT DISTINCT - + col2 + - col1 AS col0 FROM tab0 cor0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3560
SELECT + ( + COUNT( * ) ) AS col2 FROM tab1 WHERE 6 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3560
SELECT + ( + COUNT ( * ) ) AS col2 FROM tab1 WHERE 6 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3561
SELECT ALL + 0 / - + AVG ( ALL + CAST( + 68 AS SIGNED ) ) FROM tab2 WHERE NOT + col0 NOT BETWEEN 34 AND + - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3561
SELECT ALL + 0 / - + AVG ( ALL + CAST ( + 68 AS INTEGER ) ) FROM tab2 WHERE NOT + col0 NOT BETWEEN 34 AND + - col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3562
SELECT ALL - col1, - CAST( + - 0 AS SIGNED ) + + + 82 AS col0 FROM tab0
----
-1
82
-21
82
-81
82

skipif mysql # not compatible
query II rowsort label-3562
SELECT ALL - col1, - CAST ( + - 0 AS INTEGER ) + + + 82 AS col0 FROM tab0
----
-1
82
-21
82
-81
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3563
SELECT DISTINCT - col0 + + col0 + + col1 + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3563
SELECT DISTINCT - col0 + + col0 + + col1 + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - + ( - 7 ) AS col2 FROM tab1 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3565
SELECT + COUNT( ALL + col2 ) + + - MAX( + col2 ) col0 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3565
SELECT + COUNT ( ALL + col2 ) + + - MAX ( + col2 ) col0 FROM tab1 AS cor0
----
-93

query I rowsort
SELECT DISTINCT + 95 + ( + col1 ) AS col2 FROM tab0 AS cor0
----
116
176
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT 62 + - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-3567
SELECT 62 + - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT + COUNT( + col1 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3568
SELECT + COUNT ( + col1 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3569
SELECT * FROM tab1 AS cor0 WHERE - ( CAST( 44 AS SIGNED ) ) * + 41 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3569
SELECT * FROM tab1 AS cor0 WHERE - ( CAST ( 44 AS INTEGER ) ) * + 41 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT ALL 58 - - - MAX( ALL 33 ) AS col0 FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-3570
SELECT ALL 58 - - - MAX ( ALL 33 ) AS col0 FROM tab0
----
25

query I rowsort
SELECT ALL - 8 - col0 FROM tab0
----
-105
-23
-95

query III rowsort
SELECT DISTINCT 92 * - 24 AS col1, - 47 AS col2, - 22 AS col1 FROM tab0
----
-2208
-47
-22

query I rowsort
SELECT ALL + ( + 62 ) * 43 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
2666
2666
2666

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * ( - 59 ) col2 FROM tab2 AS cor0
----
3009
3953
4543

query I rowsort
SELECT ALL ( + - 22 ) FROM tab2 AS cor0
----
-22
-22
-22

query I rowsort
SELECT DISTINCT + col2 * col2 AS col2 FROM tab2 AS cor0 WHERE NOT - col2 * col0 * col1 + - col1 BETWEEN NULL AND - col0
----

query I rowsort
SELECT DISTINCT - - 57 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
57

query I rowsort
SELECT ALL 27 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query II rowsort
SELECT ALL 66, + col1 + + col2 + - col2 + - 86 * + + 9 * - col1 AS col2 FROM tab0
----
66
16275
66
62775
66
775

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 - col1 NOT BETWEEN col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE + - 32 * - col2 IS NULL
----

query I rowsort
SELECT ALL + col0 * - - col0 FROM tab1 cor0
----
2601
7225
8281

query I rowsort
SELECT DISTINCT + - 96 * - col2 AS col0 FROM tab0 AS cor0
----
4512
9504
960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3584
SELECT ALL + SUM( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3584
SELECT ALL + SUM ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 + - 4 AS col1 FROM tab0 AS cor0
----
11
83
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT COUNT( * ) * + 62 FROM tab2 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-3586
SELECT COUNT ( * ) * + 62 FROM tab2 AS cor0
----
186

query I rowsort
SELECT ALL + 82 + - 51 FROM tab2 AS cor0
----
31
31
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3588
SELECT DISTINCT SUM( - col1 ) + + + 66 - - 39 AS col1 FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-3588
SELECT DISTINCT SUM ( - col1 ) + + + 66 - - 39 AS col1 FROM tab1 AS cor0
----
39

query I rowsort
SELECT DISTINCT + 15 + + + col1 AS col2 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - ( - ( + 23 ) ) >= - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT ALL 49 + - - COUNT( * ) FROM tab2
----
52

skipif mysql # not compatible
query I rowsort label-3591
SELECT ALL 49 + - - COUNT ( * ) FROM tab2
----
52

query I rowsort
SELECT ALL + 72 + - col2 FROM tab0 AS cor0
----
-27
25
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3593
SELECT DISTINCT CAST( NULL AS SIGNED ) + + MAX( + + col0 ) + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3593
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + MAX ( + + col0 ) + COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT + MIN( + - 17 ) + + 4 - + 43 FROM tab1
----
-56

skipif mysql # not compatible
query I rowsort label-3594
SELECT + MIN ( + - 17 ) + + 4 - + 43 FROM tab1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT DISTINCT 90 + COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3595
SELECT DISTINCT 90 + COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
99

query I rowsort
SELECT 27 FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - - 31 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + 30 <> - 69 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT + COUNT( * ) - + 46 AS col1 FROM tab2 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-3599
SELECT + COUNT ( * ) - + 46 AS col1 FROM tab2 AS cor0
----
-43

query I rowsort
SELECT DISTINCT + 98 + + - 83 * 89 AS col0 FROM tab1 AS cor0
----
-7289

query I rowsort
SELECT col0 FROM tab2 cor0 WHERE col2 * + col1 * - ( + - col1 ) IS NULL
----

query I rowsort
SELECT + 53 - col2 + - col2 FROM tab0 AS cor0
----
-145
-41
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT ALL COUNT( * ) + - 83 AS col1 FROM tab0 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-3603
SELECT ALL COUNT ( * ) + - 83 AS col1 FROM tab0 AS cor0
----
-80

query II rowsort
SELECT DISTINCT + 81, + 62 AS col1 FROM tab2 AS cor0
----
81
62

query I rowsort
SELECT DISTINCT + col1 * + 98 * - - 53 FROM tab1
----
244118
25970
72716

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3606
SELECT ALL 27 col1 FROM tab1 WHERE CAST( NULL AS DECIMAL ) * - col2 IS NULL
----
27
27
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3606
SELECT ALL 27 col1 FROM tab1 WHERE CAST ( NULL AS REAL ) * - col2 IS NULL
----
27
27
27

query II rowsort
SELECT DISTINCT + col2, - 15 FROM tab2
----
23
-15
40
-15
58
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT + COUNT( * ) * + 15 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-3608
SELECT + COUNT ( * ) * + 15 FROM tab2
----
45

query I rowsort
SELECT + ( - - 48 ) * + 12 AS col2 FROM tab1
----
576
576
576

query II rowsort
SELECT ALL + col1 * - 25, - 15 AS col0 FROM tab1
----
-1175
-15
-125
-15
-350
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT - SUM( ALL + - col1 ) * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-309

skipif mysql # not compatible
query I rowsort label-3611
SELECT - SUM ( ALL + - col1 ) * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-309

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT ALL + COUNT( + col1 ) * ( - COUNT( * ) ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-3613
SELECT ALL + COUNT ( + col1 ) * ( - COUNT ( * ) ) FROM tab0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3614
SELECT * FROM tab1 WHERE NOT NULL BETWEEN - col1 + - + CAST( + col2 AS SIGNED ) AND - col0
----

skipif mysql # not compatible
query III rowsort label-3614
SELECT * FROM tab1 WHERE NOT NULL BETWEEN - col1 + - + CAST ( + col2 AS INTEGER ) AND - col0
----

query I rowsort
SELECT ALL - col2 + + 44 AS col0 FROM tab0 AS cor0
----
-3
-55
34

query I rowsort
SELECT ALL + ( - col1 ) * - 41 FROM tab1 AS cor0
----
1927
205
574

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT NULL > NULL AND NOT ( + col0 IS NULL )
----

query I rowsort
SELECT - col2 + + col1 + + + col1 + - 42 * col2 + + - col1 * - - ( 86 ) AS col1 FROM tab1 AS cor0
----
-2957
-5304
-6872

query I rowsort
SELECT + col2 + - col0 * - col2 * + 16 FROM tab2
----
16951
41000
69658

onlyif mysql # DIV for integer division: 
query I rowsort label-3620
SELECT ALL - 40 DIV 4 FROM tab2
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-3620
SELECT ALL - 40 / 4 FROM tab2
----
-10
-10
-10

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL = NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT DISTINCT COUNT( * ) * - 95 AS col2 FROM tab2
----
-285

skipif mysql # not compatible
query I rowsort label-3622
SELECT DISTINCT COUNT ( * ) * - 95 AS col2 FROM tab2
----
-285

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( ( NOT NULL IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT DISTINCT - - MIN( + 45 ) + 99 AS col0 FROM tab2 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-3624
SELECT DISTINCT - - MIN ( + 45 ) + 99 AS col0 FROM tab2 AS cor0
----
144

onlyif mysql # aggregate syntax: 
query II rowsort label-3625
SELECT DISTINCT + COUNT( * ) - + 32 * + - 97 AS col0, + 81 AS col1 FROM tab0 AS cor0
----
3107
81

skipif mysql # not compatible
query II rowsort label-3625
SELECT DISTINCT + COUNT ( * ) - + 32 * + - 97 AS col0, + 81 AS col1 FROM tab0 AS cor0
----
3107
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT COUNT( - col0 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3626
SELECT COUNT ( - col0 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL ( + col0 ) - - + col2 AS col0 FROM tab2 AS cor0
----
104
133
69

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col0 ) BETWEEN - col1 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3629
SELECT CAST( NULL AS SIGNED ) / COUNT( * ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3629
SELECT CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3630
SELECT ALL + ( MAX( ALL col1 ) ) DIV - 53 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3630
SELECT ALL + ( MAX ( ALL col1 ) ) / - 53 FROM tab1
----
0

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE NOT col0 IS NULL
----
10
47
99

query I rowsort
SELECT 49 FROM tab1 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3633
SELECT DISTINCT - COUNT( * ) DIV 50 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3633
SELECT DISTINCT - COUNT ( * ) / 50 FROM tab0
----
0

query I rowsort
SELECT 97 AS col1 FROM tab2 WHERE NOT - ( + col2 ) * - 36 IS NULL
----
97
97
97

query I rowsort
SELECT 73 * col1 FROM tab1
----
1022
3431
365

query I rowsort
SELECT 56 * col2 + - 37 FROM tab2
----
1251
2203
3211

query I rowsort
SELECT 16 * ( + 56 ) AS col1 FROM tab1
----
896
896
896

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 95 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT ( ( MAX( DISTINCT 59 ) ) ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-3639
SELECT ( ( MAX ( DISTINCT 59 ) ) ) AS col0 FROM tab1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3640
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN + col2 * col0 AND ( - CAST( NULL AS SIGNED ) - + 41 )
----

skipif mysql # not compatible
query III rowsort label-3640
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN + col2 * col0 AND ( - CAST ( NULL AS INTEGER ) - + 41 )
----

query I rowsort
SELECT DISTINCT - ( 52 ) FROM tab2
----
-52

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 11 NOT IN ( - col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE col1 - 99 > + 37
----

query III rowsort
SELECT * FROM tab2 WHERE NULL <= ( + col0 + 64 )
----

query I rowsort
SELECT DISTINCT + 17 * 55 FROM tab2 WHERE ( col2 ) > ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3646
SELECT ALL col2 DIV - 21 + 64 FROM tab1
----
60
61
62

skipif mysql # not compatible
query I rowsort label-3646
SELECT ALL col2 / - 21 + 64 FROM tab1
----
60
61
62

query I rowsort
SELECT - col1 * col0 - col2 FROM tab2 WHERE - 83 IN ( col2 + col2 * - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3648
SELECT + col2 DIV - 37 AS col1 FROM tab1 WHERE NOT ( + ( - 82 ) ) * col1 IN ( - 78 * 99 )
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-3648
SELECT + col2 / - 37 AS col1 FROM tab1 WHERE NOT ( + ( - 82 ) ) * col1 IN ( - 78 * 99 )
----
-1
-1
-2

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN col0 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3650
SELECT - MAX( DISTINCT 34 ) FROM tab1
----
-34

skipif mysql # not compatible
query I rowsort label-3650
SELECT - MAX ( DISTINCT 34 ) FROM tab1
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3651
SELECT + 4 * - MAX( DISTINCT + col1 DIV - col2 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3651
SELECT + 4 * - MAX ( DISTINCT + col1 / - col2 ) AS col1 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) < + col1 * - 10
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3653
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 * CAST( + 19 AS SIGNED ) - col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3653
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 * CAST ( + 19 AS INTEGER ) - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT ALL - ( MAX( col2 ) ) AS col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-3654
SELECT ALL - ( MAX ( col2 ) ) AS col2 FROM tab2 AS cor0
----
-58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 + - col2 NOT BETWEEN + 57 AND + col0
----

query I rowsort
SELECT ALL 75 / col0 AS col1 FROM tab1 cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT DISTINCT - COUNT( * ) * 91 AS col2 FROM tab0 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-3657
SELECT DISTINCT - COUNT ( * ) * 91 AS col2 FROM tab0 AS cor0
----
-273

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN + 27 AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3659
SELECT + CAST( NULL AS SIGNED ) - - 22 * col0 FROM tab2 WHERE NOT NULL <= col0
----

skipif mysql # not compatible
query I rowsort label-3659
SELECT + CAST ( NULL AS INTEGER ) - - 22 * col0 FROM tab2 WHERE NOT NULL <= col0
----

query I rowsort
SELECT ALL 72 * 97 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - + 10 AS col1 FROM tab2 cor0
----
-10
-10
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3662
SELECT DISTINCT CAST( - MAX( + col1 ) AS SIGNED ) + + COUNT( * ) FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-3662
SELECT DISTINCT CAST ( - MAX ( + col1 ) AS INTEGER ) + + COUNT ( * ) FROM tab1 AS cor0
----
-44

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> ( + col2 )
----

query I rowsort
SELECT ALL col1 + - 29 FROM tab0 AS cor0
----
-28
-8
52

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL = col2 + + col1
----

query I rowsort
SELECT - 32 * col0 AS col1 FROM tab2 cor0
----
-1472
-2048
-2400

query I rowsort
SELECT DISTINCT + col0 + 74 AS col2 FROM tab2 AS cor0
----
120
138
149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3668
SELECT + col0 / 6 + col1 col0 FROM tab2 WHERE NULL NOT BETWEEN - CAST( col1 AS SIGNED ) + 29 AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3668
SELECT + col0 / 6 + col1 col0 FROM tab2 WHERE NULL NOT BETWEEN - CAST ( col1 AS INTEGER ) + 29 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3669
SELECT ALL ( + col0 ) DIV col0 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3669
SELECT ALL ( + col0 ) / col0 AS col0 FROM tab0
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 85 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3671
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + - + col2 AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3671
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + - + col2 AS col0 FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3672
SELECT ALL - CAST( + 75 AS SIGNED ) + - ( + COUNT( * ) ) * 14 AS col0 FROM tab2 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-3672
SELECT ALL - CAST ( + 75 AS INTEGER ) + - ( + COUNT ( * ) ) * 14 AS col0 FROM tab2 AS cor0
----
-117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3673
SELECT COUNT( * ) DIV COUNT( * ) + + ( - SUM( 71 ) ) AS col2 FROM tab2 AS cor0
----
-212

skipif mysql # not compatible
query I rowsort label-3673
SELECT COUNT ( * ) / COUNT ( * ) + + ( - SUM ( 71 ) ) AS col2 FROM tab2 AS cor0
----
-212

query I rowsort
SELECT ALL - col2 * - col2 - - 90 * col1 + - 76 AS col1 FROM tab0 AS cor0
----
1914
9423
9815

query I rowsort
SELECT + col0 * - + col0 * 62 + col0 FROM tab0 AS cor0
----
-13935
-469191
-583261

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT DISTINCT COUNT( * ) + - 94 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3676
SELECT DISTINCT COUNT ( * ) + - 94 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT DISTINCT + col0 + - 68 FROM tab1 cor0
----
-17
17
23

query I rowsort
SELECT + + 31 + 75 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e3a970c661a05070afa8a3ed8dca742e

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3679
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + col0 * - - col1 * col2 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3679
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + col0 * - - col1 * col2 AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT ALL COUNT( * ) - - 68 AS col0 FROM tab2
----
71

skipif mysql # not compatible
query I rowsort label-3680
SELECT ALL COUNT ( * ) - - 68 AS col0 FROM tab2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT - 47 * - + MAX( - col1 ) AS col0 FROM tab1
----
-235

skipif mysql # not compatible
query I rowsort label-3681
SELECT - 47 * - + MAX ( - col1 ) AS col0 FROM tab1
----
-235

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> ( + - col0 + 3 * + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3683
SELECT + - ( COUNT( - CAST( NULL AS SIGNED ) ) ) FROM tab2 AS cor0 WHERE NOT NULL >= col2
----
0

skipif mysql # not compatible
query I rowsort label-3683
SELECT + - ( COUNT ( - CAST ( NULL AS INTEGER ) ) ) FROM tab2 AS cor0 WHERE NOT NULL >= col2
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 < - col1 - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3685
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) > - 0 * - col0
----

skipif mysql # not compatible
query III rowsort label-3685
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS REAL ) > - 0 * - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3686
SELECT DISTINCT - - col2 DIV + - col1 FROM tab1 cor0
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-3686
SELECT DISTINCT - - col2 / + - col1 FROM tab1 cor0
----
-1
-11
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT ALL - SUM( DISTINCT 11 ) AS col1 FROM tab1 cor0
----
-11

skipif mysql # not compatible
query I rowsort label-3687
SELECT ALL - SUM ( DISTINCT 11 ) AS col1 FROM tab1 cor0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT DISTINCT + COUNT( ALL - - col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3688
SELECT DISTINCT + COUNT ( ALL - - col2 ) FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN 12 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT + MAX( + col1 ) col0 FROM tab1
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3690
SELECT + MAX ( + col1 ) col0 FROM tab1
----
47

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 NOT BETWEEN col0 AND NULL
----
75
67
58

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NOT 17 + + col0 IS NOT NULL
----

query I rowsort
SELECT - ( + col1 ) * col2 AS col0 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query II rowsort label-3694
SELECT - SUM( + col0 ), 3 col0 FROM tab2
----
-185
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3694
SELECT - SUM ( + col0 ), 3 col0 FROM tab2
----
-185
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( col0 ) AS col0, col0 * - + col0 - col0 col2 FROM tab1 AS cor0
----
-51
-2652
-85
-7310
-91
-8372

query I rowsort
SELECT ALL 98 FROM tab1 AS cor0 WHERE 47 + + 27 > ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col0 / - col0 * col0 * + col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 12, col0 FROM tab2
----
12
46
12
64
12
75

query II rowsort
SELECT ALL 67, - col1 AS col2 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3700
SELECT ALL - 60 + + col2 DIV + col2 AS col0, col1 FROM tab0 AS cor0
----
-59
1
-59
21
-59
81

skipif mysql # not compatible
query II rowsort label-3700
SELECT ALL - 60 + + col2 / + col2 AS col0, col1 FROM tab0 AS cor0
----
-59
1
-59
21
-59
81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IS NULL AND ( NULL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( - 3 ) AND NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 34 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - ( + 82 ) + col1 IN ( 40 )
----

query I rowsort
SELECT ALL + 36 - + col2 FROM tab0 AS cor0
----
-11
-63
26

query I rowsort
SELECT - ( - col1 ) * - col1 * - + col2 + + - col2 AS col0 FROM tab1 AS cor0
----
1416
150144
18720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col1 + + col2 col1 FROM tab2
----
1196
3120
3944

query I rowsort
SELECT ALL - 56 * + + 89 + - - col0 AS col1 FROM tab0
----
-4887
-4897
-4969

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 NOT IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3710
SELECT ALL CAST( NULL AS SIGNED ) AS col1, + 92 AS col2 FROM tab1
----
NULL
92
NULL
92
NULL
92

skipif mysql # not compatible
query II rowsort label-3710
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, + 92 AS col2 FROM tab1
----
NULL
92
NULL
92
NULL
92

query II rowsort
SELECT ALL 9 AS col0, + col1 * + - col2 FROM tab0
----
9
-210
9
-3807
9
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3712
SELECT - col1 col2, CAST( NULL AS SIGNED ) AS col0 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-3712
SELECT - col1 col2, CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
-51
NULL
-67
NULL
-77
NULL

query I rowsort
SELECT ALL - 62 + + col2 FROM tab2
----
-22
-39
-4

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 BETWEEN NULL AND col0 + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - - col1, - col2 AS col2 FROM tab2 AS cor0
----
51
-23
67
-58
77
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 6 * col1 + + col2 + + col0 col0 FROM tab0 cor0
----
-29
-424
190

query I rowsort
SELECT - col1 - 28 AS col2 FROM tab2 AS cor0
----
-105
-79
-95

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> 26
----

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE - ( + 89 ) * + - ( + 74 ) + - col0 + col2 * + col1 IS NOT NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3720
SELECT + ( col1 ) - - 54 * - CAST( - col2 AS SIGNED ) + CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3720
SELECT + ( col1 ) - - 54 * - CAST ( - col2 AS INTEGER ) + CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 50 * - col1 - + ( col1 ) FROM tab1 AS cor0
----
-2397
-255
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + 93 * + 44 * + col2 * + ( - 97 ) <> - - col2
----
0

skipif mysql # not compatible
query I rowsort label-3722
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + 93 * + 44 * + col2 * + ( - 97 ) <> - - col2
----
0

query I rowsort
SELECT 96 * col0 * col0 + col0 AS col2 FROM tab1 AS cor0
----
249747
693685
795067

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3724
SELECT ALL - 1 * + + CAST( NULL AS SIGNED ) AS col0, + col1 - col1 * col2 AS col1 FROM tab1 AS cor0
----
NULL
-1330
NULL
-290
NULL
-3149

skipif mysql # not compatible
query II rowsort label-3724
SELECT ALL - 1 * + + CAST ( NULL AS INTEGER ) AS col0, + col1 - col1 * col2 AS col1 FROM tab1 AS cor0
----
NULL
-1330
NULL
-290
NULL
-3149

onlyif mysql # DIV for integer division: 
query I rowsort label-3725
SELECT + - col0 DIV + + col1 FROM tab1 cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-3725
SELECT + - col0 / + + col1 FROM tab1 cor0
----
-1
-17
-3

query I rowsort
SELECT ALL - - 94 * - 81 + col2 AS col2 FROM tab1 AS cor0
----
-7518
-7546
-7555

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT + + MAX( DISTINCT + col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3727
SELECT + + MAX ( DISTINCT + col2 ) FROM tab1 AS cor0
----
96

query I rowsort
SELECT col2 * + col0 + col0 AS col0 FROM tab2 AS cor0 WHERE NOT + col2 NOT IN ( + col1 + + 22 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - + 26 ) BETWEEN - col1 AND ( NULL )
----
51
14
96
85
5
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * - col1 col2 FROM tab2 WHERE - + col2 IS NOT NULL
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3732
SELECT DISTINCT - COUNT( * ) * - ( CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3732
SELECT DISTINCT - COUNT ( * ) * - ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3733
SELECT DISTINCT + + ( + MAX( - col1 ) ) FROM tab1 WHERE col0 * 6 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3733
SELECT DISTINCT + + ( + MAX ( - col1 ) ) FROM tab1 WHERE col0 * 6 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > + 19 + - - 99 + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, + col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col0 * - + 47 AND ( + - col2 )
----

query I rowsort
SELECT ALL - 53 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

query IIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 WHERE NOT NULL > + 50
----

query I rowsort
SELECT 35 * - col0 + - - col2 + + - col1 * + 72 FROM tab0
----
-3368
-4547
-6310

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * - 7 + + col2 + + col0 FROM tab1 AS cor0
----
557
635
819

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3742
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - col2 / + col0 FROM tab0 AS cor0 WHERE ( - col2 ) * + 2 / + ( - col0 ) - - col0 + + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3742
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - col2 / + col0 FROM tab0 AS cor0 WHERE ( - col2 ) * + 2 / + ( - col0 ) - - col0 + + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3743
SELECT ALL - CAST( NULL AS SIGNED ) + + ( 26 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3743
SELECT ALL - CAST ( NULL AS INTEGER ) + + ( 26 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 61 + 50 FROM tab0 cor0
----
111

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 14 col1 FROM tab2 AS cor0 WHERE NOT - 38 > + 44 * - + 1 + - col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) IS NOT NULL AND NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT SUM( - 51 ) AS col2 FROM tab1 WHERE + 54 NOT BETWEEN - - col0 AND NULL
----
-102

skipif mysql # not compatible
query I rowsort label-3747
SELECT SUM ( - 51 ) AS col2 FROM tab1 WHERE + 54 NOT BETWEEN - - col0 AND NULL
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT 72 + - - COUNT( * ) FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-3748
SELECT 72 + - - COUNT ( * ) FROM tab0
----
75

query I rowsort
SELECT col0 + - col0 * 64 AS col2 FROM tab2
----
-2898
-4032
-4725

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3750
SELECT - col1 + - 74 + + CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3750
SELECT - col1 + - 74 + + CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN + 53 AND NULL
----

query I rowsort
SELECT ALL + col0 + + col2 + + col0 AS col1 FROM tab2
----
115
168
208

query I rowsort
SELECT - col2 + + col2 + - col0 * col0 * - - col2 * col2 FROM tab0 AS cor0
----
-497025
-756900
-92217609

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT ALL - COUNT( * ) * - 98 + - MIN( ALL - - col1 ) + + COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0
----
298

skipif mysql # not compatible
query I rowsort label-3754
SELECT ALL - COUNT ( * ) * - 98 + - MIN ( ALL - - col1 ) + + COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0
----
298

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT ALL 54 * - COUNT( * ) FROM tab0
----
-162

skipif mysql # not compatible
query I rowsort label-3756
SELECT ALL 54 * - COUNT ( * ) FROM tab0
----
-162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + ( col2 ) ) col2 FROM tab0
----
10
47
99

query III rowsort
SELECT * FROM tab0 WHERE NOT - 35 * - col2 + - col1 BETWEEN NULL AND - + ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 * + 5 / + col1 AS col0 FROM tab1 AS cor0 WHERE NULL = NULL
----

query II rowsort
SELECT DISTINCT + col0 AS col2, 22 * - 3 * col0 + col0 AS col1 FROM tab2 AS cor0
----
46
-2990
64
-4160
75
-4875

query II rowsort
SELECT ALL + col2 AS col1, col1 AS col2 FROM tab2 AS cor0
----
23
51
40
77
58
67

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 97 + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT COUNT( * ) * 85 AS col2 FROM tab0
----
255

skipif mysql # not compatible
query I rowsort label-3763
SELECT COUNT ( * ) * 85 AS col2 FROM tab0
----
255

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3764
SELECT col0 * - - 18 * - col1 AS col0, CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
-12852
NULL
-7650
NULL
-76986
NULL

skipif mysql # not compatible
query II rowsort label-3764
SELECT col0 * - - 18 * - col1 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
-12852
NULL
-7650
NULL
-76986
NULL

query I rowsort
SELECT col2 + - col2 + + col2 AS col2 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT DISTINCT + MIN( DISTINCT col2 ) * COUNT( * ) AS col0 FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-3766
SELECT DISTINCT + MIN ( DISTINCT col2 ) * COUNT ( * ) AS col0 FROM tab1
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT ALL 55 + - COUNT( DISTINCT + - col1 ) AS col0 FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-3767
SELECT ALL 55 + - COUNT ( DISTINCT + - col1 ) AS col0 FROM tab0
----
52

query I rowsort
SELECT DISTINCT - col0 * - + col2 AS col1 FROM tab0
----
705
870
9603

query I rowsort
SELECT col1 + + 38 AS col0 FROM tab2
----
105
115
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT COUNT( * ) + + COUNT( * ) col1 FROM tab1
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3770
SELECT COUNT ( * ) + + COUNT ( * ) col1 FROM tab1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3771
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) * 8 * - col1 * + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3771
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * 8 * - col1 * + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + + 78 IS NULL OR NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 * col0 - 47 AS col1 FROM tab2 AS cor0
----
2069
4049
5578

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3774
SELECT AVG ( - CAST( NULL AS SIGNED ) ) * 90 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3774
SELECT AVG ( - CAST ( NULL AS INTEGER ) ) * 90 AS col1 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 22 * - col1 + + 59 * - 4 col1 FROM tab2 AS cor0
----
1238
1458
886

query I rowsort
SELECT + col1 + - - col0 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3777
SELECT DISTINCT - COUNT( 16 ) + + 26 FROM tab1 cor0
----
23

skipif mysql # not compatible
query I rowsort label-3777
SELECT DISTINCT - COUNT ( 16 ) + + 26 FROM tab1 cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3778
SELECT DISTINCT COUNT( * ) - 74 FROM tab0 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-3778
SELECT DISTINCT COUNT ( * ) - 74 FROM tab0 AS cor0
----
-71

query II rowsort
SELECT DISTINCT - 82 - 93 * + 97 AS col2, 29 AS col0 FROM tab2 AS cor0
----
-9103
29

query I rowsort
SELECT + col0 * - - col2 FROM tab2 AS cor0
----
1058
2560
4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 * - 12 col2 FROM tab0 WHERE - - col1 = NULL
----

query I rowsort
SELECT ALL col2 - - 48 + col0 * - col1 AS col1 FROM tab2
----
-2275
-4840
-4919

query III rowsort
SELECT * FROM tab2 WHERE + col2 + - col1 < col1 - - 95
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 FROM tab1 WHERE NULL BETWEEN - - col0 * + col0 + + col2 AND - col1 * - col1 * - - col0 * col2
----

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE - col0 IN ( - ( + - col2 ) )
----

query I rowsort
SELECT DISTINCT col2 - - - col2 FROM tab0
----
0

query III rowsort
SELECT * FROM tab1 WHERE - col1 <> + - col2 * + 44 + + + col1 - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3788
SELECT - + COUNT( * ) / - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3788
SELECT - + COUNT ( * ) / - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3789
SELECT ALL - ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 WHERE ( 44 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3789
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 WHERE ( 44 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3790
SELECT DISTINCT CAST( + 47 AS SIGNED ) * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3790
SELECT DISTINCT CAST ( + 47 AS INTEGER ) * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col1 <> col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT - - COUNT( * ) col2 FROM tab1 WHERE NOT 6 * - col0 * + col1 + + col1 - ( - col1 ) <= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3792
SELECT - - COUNT ( * ) col2 FROM tab1 WHERE NOT 6 * - col0 * + col1 + + col1 - ( - col1 ) <= NULL
----
0

query I rowsort
SELECT + 27 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query III rowsort
SELECT + col2, - col1 * col0 AS col1, + col2 FROM tab0 AS cor0
----
9 values hashing to fff755553b80bc51eec85c1d33ff8463

query I rowsort
SELECT 49 FROM tab1 AS cor0 WHERE NOT ( + 53 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3796
SELECT 52 DIV + col1 + - col0 * 26 FROM tab1 AS cor0
----
-1323
-2200
-2365

skipif mysql # not compatible
query I rowsort label-3796
SELECT 52 / + col1 + - col0 * 26 FROM tab1 AS cor0
----
-1323
-2200
-2365

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3797
SELECT ALL + col2 * + + CAST( + col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1600
3364
529

skipif mysql # not compatible
query I rowsort label-3797
SELECT ALL + col2 * + + CAST ( + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3798
SELECT DISTINCT 30 DIV - 85 - + - COUNT( * ) FROM tab0 WHERE NOT - + col1 * - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3798
SELECT DISTINCT 30 / - 85 - + - COUNT ( * ) FROM tab0 WHERE NOT - + col1 * - col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3799
SELECT COUNT( * ) col1, COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3799
SELECT COUNT ( * ) col1, COUNT ( * ) FROM tab0
----
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3800
SELECT ALL 52 DIV + col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3800
SELECT ALL 52 / + col0 FROM tab1
----
0
0
1

query I rowsort
SELECT ALL col0 + 59 * + 26 FROM tab0
----
1549
1621
1631

onlyif mysql # DIV for integer division: 
query I rowsort label-3802
SELECT DISTINCT + 48 DIV col1 FROM tab1
----
1
3
9

skipif mysql # not compatible
query I rowsort label-3802
SELECT DISTINCT + 48 / col1 FROM tab1
----
1
3
9

query I rowsort
SELECT + 18 * - col0 AS col0 FROM tab0
----
-1566
-1746
-270

query I rowsort
SELECT - col1 * + col0 + - col1 AS col2 FROM tab1 AS cor0
----
-430
-4324
-728

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 = NULL
----

query I rowsort
SELECT DISTINCT - - col0 * - - 34 * - - col2 FROM tab2 AS cor0
----
147900
35972
87040

query III rowsort
SELECT ALL 22 * - - 59 AS col1, + 1, col2 FROM tab0
----
9 values hashing to 81b2a1dfd5fe89d79f0b8c80d436157c

query I rowsort
SELECT ALL + - 5 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

query I rowsort
SELECT + ( + - col0 ) + - - col2 FROM tab0 WHERE + ( - col1 ) IS NULL
----

query II rowsort
SELECT - 55 AS col1, col2 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT DISTINCT 49 - 1 - + + col1 * - col2 AS col0 FROM tab2 AS cor0
----
1221
3128
3934

onlyif mysql # DIV for integer division: 
query I rowsort label-3812
SELECT ALL - 17 DIV + + col2 - col2 * + ( + + col0 ) + - col2 FROM tab1 AS cor0
----
-4992
-5074
-6256

skipif mysql # not compatible
query I rowsort label-3812
SELECT ALL - 17 / + + col2 - col2 * + ( + + col0 ) + - col2 FROM tab1 AS cor0
----
-4992
-5074
-6256

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE ( NULL ) <= 10
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 1 / + ( - col1 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3815
SELECT ALL - MAX( DISTINCT - col0 ) * - + 94 - - - ( + 64 ) DIV ( - 73 ) col2 FROM tab0 AS cor0
----
-1410

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3815
SELECT ALL - MAX ( DISTINCT - col0 ) * - + 94 - - - ( + 64 ) / ( - 73 ) col2 FROM tab0 AS cor0
----
-1410

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3816
SELECT ALL COUNT( * ) - - COUNT( * ) DIV + + 64 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3816
SELECT ALL COUNT ( * ) - - COUNT ( * ) / + + 64 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT COUNT( * ) + + - 78 AS col0 FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-3817
SELECT COUNT ( * ) + + - 78 AS col0 FROM tab1
----
-75

query I rowsort
SELECT ALL + ( + 64 ) FROM tab2
----
64
64
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3819
SELECT DISTINCT - CAST( NULL AS SIGNED ) col1, COUNT( DISTINCT - 18 ) FROM tab1
----
NULL
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3819
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col1, COUNT ( DISTINCT - 18 ) FROM tab1
----
NULL
1

query I rowsort
SELECT 54 * + - 39 AS col1 FROM tab1
----
-2106
-2106
-2106

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT 62 * MIN( - col1 ) FROM tab2
----
-4774

skipif mysql # not compatible
query I rowsort label-3821
SELECT 62 * MIN ( - col1 ) FROM tab2
----
-4774

query I rowsort
SELECT DISTINCT + - col1 AS col2 FROM tab1 AS cor0 WHERE NOT - col0 - - col1 <= 89
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT ALL SUM( ALL - + col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-3823
SELECT ALL SUM ( ALL - + col1 ) FROM tab2 AS cor0
----
-195

query I rowsort
SELECT + + 18 AS col1 FROM tab1 AS cor0
----
18
18
18

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3825
SELECT + + CAST( - col1 AS SIGNED ) DIV - col1 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3825
SELECT + + CAST ( - col1 AS INTEGER ) / - col1 AS col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ( + col2 ) * + 30 AS col2 FROM tab1
----
1770
2040
2880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3827
SELECT + 85 DIV + SUM( ALL - - 90 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-3827
SELECT + 85 / + SUM ( ALL - - 90 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3828
SELECT DISTINCT CAST( + MIN( DISTINCT 68 ) AS SIGNED ) FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-3828
SELECT DISTINCT CAST ( + MIN ( DISTINCT 68 ) AS INTEGER ) FROM tab1
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3829
SELECT ALL + COUNT( * ) DIV + ( - COUNT( * ) ) + 65 col1 FROM tab2 cor0
----
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3829
SELECT ALL + COUNT ( * ) / + ( - COUNT ( * ) ) + 65 col1 FROM tab2 cor0
----
64

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT col0 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3831
SELECT ALL - - ( + - CAST( NULL AS SIGNED ) ) + col2 / + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3831
SELECT ALL - - ( + - CAST ( NULL AS INTEGER ) ) + col2 / + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT + MAX( - col2 ) AS col2 FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3832
SELECT + MAX ( - col2 ) AS col2 FROM tab1 cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT DISTINCT + + MIN( - col1 ) FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-3833
SELECT DISTINCT + + MIN ( - col1 ) FROM tab1 cor0
----
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - 93 ) col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 85 AND - 95
----

query I rowsort
SELECT + - 1 + + col1 AS col2 FROM tab2 AS cor0
----
50
66
76

query I rowsort
SELECT + col0 + + col0 + col0 + - - col2 AS col0 FROM tab1
----
249
314
341

query I rowsort
SELECT - 13 * - ( col2 ) + + + col0 FROM tab0
----
1384
217
626

query III rowsort
SELECT * FROM tab1 WHERE - 57 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 1 + 78 <> NULL
----

query I rowsort
SELECT DISTINCT + 60 AS col0 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3841
SELECT ALL - - CAST( NULL AS SIGNED ) / - COUNT( * ) * + ( MIN( DISTINCT col1 ) ) AS col0, COUNT( * ) FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-3841
SELECT ALL - - CAST ( NULL AS INTEGER ) / - COUNT ( * ) * + ( MIN ( DISTINCT col1 ) ) AS col0, COUNT ( * ) FROM tab0 AS cor0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT + + COUNT( * ) * 71 AS col2 FROM tab2 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-3842
SELECT + + COUNT ( * ) * 71 AS col2 FROM tab2 AS cor0
----
213

query I rowsort
SELECT + col0 - col0 + - col2 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT ( + 20 ) FROM tab1, tab2 cor0
----
20

query I rowsort
SELECT DISTINCT + 20 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-3846
SELECT ALL 80 DIV + 99 * - col2 * + col2 * - 69 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3846
SELECT ALL 80 / + 99 * - col2 * + col2 * - 69 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NOT NULL BETWEEN NULL AND - col2 * - - 37
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 * - col2 + - col1 + col0 + 30 col1 FROM tab1 AS cor0
----
-4256
-4958
-7037

query I rowsort
SELECT DISTINCT + ( + 72 ) * + 33 + - + col1 + - col1 + - + ( col0 ) AS col2 FROM tab0 AS cor0
----
2199
2247
2277

query II rowsort
SELECT DISTINCT + - 29 * - + col2 + - col1 + 84 * - ( + col2 ), col0 FROM tab0 AS cor0
----
-2666
15
-5446
97
-571
87

onlyif mysql # DIV for integer division: 
query II rowsort label-3851
SELECT + col1, + col1 DIV col0 FROM tab0 AS cor0
----
1
0
21
0
81
5

skipif mysql # not compatible
query II rowsort label-3851
SELECT + col1, + col1 / col0 FROM tab0 AS cor0
----
1
0
21
0
81
5

query I rowsort
SELECT ALL - 92 * + + 98 + - + 91 FROM tab2 AS cor0
----
-9107
-9107
-9107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3853
SELECT 19 DIV - COUNT( * ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3853
SELECT 19 / - COUNT ( * ) FROM tab0 AS cor0
----
-6

query I rowsort
SELECT + 10 AS col0 FROM tab1 AS cor0 WHERE NOT + col0 * - + col1 IN ( col2 )
----
10
10
10

query II rowsort
SELECT - 80 AS col2, col0 FROM tab1 AS cor0
----
-80
51
-80
85
-80
91

query I rowsort
SELECT + - 55 * col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + 71 * - + ( - + 84 ) + - 61 * + ( + col0 ), - col2 + + col1, + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3857
SELECT DISTINCT 53 DIV COUNT( col2 ) FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-3857
SELECT DISTINCT 53 / COUNT ( col2 ) FROM tab1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3858
SELECT ALL MAX( col2 ) AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-3858
SELECT ALL MAX ( col2 ) AS col0 FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT DISTINCT + COUNT( 17 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3859
SELECT DISTINCT + COUNT ( 17 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT + col0 * - + 2 FROM tab1
----
-102
-170
-182

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> col0 + - col2
----

query I rowsort
SELECT col1 * + - 32 FROM tab1 cor0
----
-1504
-160
-448

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( - + col2 ) > - 81 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-3864
SELECT + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
9

query I rowsort
SELECT 69 + - - 56 - + col1 AS col1 FROM tab2
----
48
58
74

query I rowsort
SELECT col1 + + - 42 * + ( + + col1 ) FROM tab0
----
-3321
-41
-861

onlyif mysql # aggregate syntax: 
query II rowsort label-3867
SELECT DISTINCT - 94 AS col2, + COUNT( * ) * + - ( + - COUNT( * ) ) * + MAX( ALL - + 64 ) AS col2 FROM tab0 AS cor0
----
-94
-576

skipif mysql # not compatible
query II rowsort label-3867
SELECT DISTINCT - 94 AS col2, + COUNT ( * ) * + - ( + - COUNT ( * ) ) * + MAX ( ALL - + 64 ) AS col2 FROM tab0 AS cor0
----
-94
-576

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT - COUNT( + col1 ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3868
SELECT - COUNT ( + col1 ) col2 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3869
SELECT + COUNT( DISTINCT - - col1 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3869
SELECT + COUNT ( DISTINCT - - col1 ) AS col0 FROM tab0 AS cor0
----
3

query II rowsort
SELECT col2, 15 AS col1 FROM tab2 cor0
----
23
15
40
15
58
15

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 13 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - ( col0 ) + 71 FROM tab2 AS cor0
----
-4
25
7

query I rowsort
SELECT DISTINCT - ( + + col0 ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT DISTINCT - SUM( ALL + 19 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-57

skipif mysql # not compatible
query I rowsort label-3874
SELECT DISTINCT - SUM ( ALL + 19 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3875
SELECT - COUNT( + 63 ) col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3875
SELECT - COUNT ( + 63 ) col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + 41 + 78 - col0 / - + col2 AS col1 FROM tab1 WHERE ( ( + 50 + + col1 + + ( + ( - - 26 ) ) ) IS NULL )
----

query II rowsort
SELECT ALL + 48 + - ( col1 ), + col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - + col2 * col1 + - col1 AS col1 FROM tab2 AS cor0
----
-1224
-3157
-3953

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT - SUM( DISTINCT - col0 ) AS col2 FROM tab2 cor0 WHERE - 16 * + col2 >= col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3879
SELECT - SUM ( DISTINCT - col0 ) AS col2 FROM tab2 cor0 WHERE - 16 * + col2 >= col1
----
NULL

query I rowsort
SELECT + - 74 + 3 - + col1 FROM tab1 AS cor0
----
-118
-76
-85

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3881
SELECT DISTINCT - - col1 AS col1 FROM tab0 cor0 WHERE NOT + CAST( + 5 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3881
SELECT DISTINCT - - col1 AS col1 FROM tab0 cor0 WHERE NOT + CAST ( + 5 AS REAL ) IS NOT NULL
----

query I rowsort
SELECT + ( - 57 ) AS col1 FROM tab2 AS cor0
----
-57
-57
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT - SUM( - 78 ) * - 89 AS col1 FROM tab0 AS cor0
----
-20826

skipif mysql # not compatible
query I rowsort label-3883
SELECT - SUM ( - 78 ) * - 89 AS col1 FROM tab0 AS cor0
----
-20826

query I rowsort
SELECT ALL col0 * - + 37 FROM tab2 cor0
----
-1702
-2368
-2775

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3885
SELECT ALL 85 * MAX( CAST( 86 AS SIGNED ) ) FROM tab1 AS cor0
----
7310

skipif mysql # not compatible
query I rowsort label-3885
SELECT ALL 85 * MAX ( CAST ( 86 AS INTEGER ) ) FROM tab1 AS cor0
----
7310

query I rowsort
SELECT DISTINCT - + 6 * 12 FROM tab2 AS cor0
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-3887
SELECT - COUNT( * ), 93 AS col1 FROM tab1
----
-3
93

skipif mysql # not compatible
query II rowsort label-3887
SELECT - COUNT ( * ), 93 AS col1 FROM tab1
----
-3
93

query II rowsort
SELECT + col0 AS col2, + col1 * - col1 FROM tab1
----
51
-196
85
-25
91
-2209

onlyif mysql # aggregate syntax: 
query II rowsort label-3889
SELECT DISTINCT + 80, + COUNT( * ) AS col0 FROM tab1
----
80
3

skipif mysql # not compatible
query II rowsort label-3889
SELECT DISTINCT + 80, + COUNT ( * ) AS col0 FROM tab1
----
80
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3890
SELECT - - col2 AS col2 FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3890
SELECT - - col2 AS col2 FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

query II rowsort
SELECT 99 AS col2, - 27 * col2 FROM tab1
----
99
-1593
99
-1836
99
-2592

query I rowsort
SELECT ALL col2 * + - 12 FROM tab0
----
-1188
-120
-564

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3893
SELECT - col1 * - col1 * + - CAST( 55 AS SIGNED ) FROM tab2
----
-143055
-246895
-326095

skipif mysql # not compatible
query I rowsort label-3893
SELECT - col1 * - col1 * + - CAST ( 55 AS INTEGER ) FROM tab2
----
-143055
-246895
-326095

query II rowsort
SELECT DISTINCT 62 * + 67, - 29 AS col1 FROM tab2
----
4154
-29

query II rowsort
SELECT DISTINCT - 11 AS col2, - 71 AS col0 FROM tab0 AS cor0
----
-11
-71

query I rowsort
SELECT DISTINCT - 13 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3897
SELECT ALL + col2, - CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

skipif mysql # not compatible
query II rowsort label-3897
SELECT ALL + col2, - CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 23 col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query III rowsort
SELECT ALL * FROM tab2 WHERE 39 * - - ( - 38 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT DISTINCT - MAX( DISTINCT + col0 ) AS col2 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-3900
SELECT DISTINCT - MAX ( DISTINCT + col0 ) AS col2 FROM tab1
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3901
SELECT ALL SUM( - - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3901
SELECT ALL SUM ( - - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL 81 + 2 FROM tab1 AS cor0
----
83
83
83

query II rowsort
SELECT 15, + col0 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
15
15
87
15
97

query I rowsort
SELECT - 54 * - col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
2538
270
756

onlyif mysql # aggregate syntax: 
query I rowsort label-3905
SELECT - + 62 + + 99 * - + 74 + SUM( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
-7587

skipif mysql # not compatible
query I rowsort label-3905
SELECT - + 62 + + 99 * - + 74 + SUM ( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
-7587

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3906
SELECT + + 65 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - + col1 + - col0 * + CAST( NULL AS SIGNED ) / - - 36 * - 93, - col0, col1, + 16 * - - col2 + + col0 - - col2 )
----

skipif mysql # not compatible
query I rowsort label-3906
SELECT + + 65 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - + col1 + - col0 * + CAST ( NULL AS INTEGER ) / - - 36 * - 93, - col0, col1, + 16 * - - col2 + + col0 - - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3907
SELECT 10 DIV + col2 * + + col1 + + col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-3907
SELECT 10 / + col2 * + + col1 + + col2 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT + 21 + COUNT( * ) FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-3908
SELECT + 21 + COUNT ( * ) FROM tab2
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3909
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, + col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-3909
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, + col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, col2 + + col2 - - 14 * - 38 * 1 col1 FROM tab1 AS cor0
----
14
-340
47
-396
5
-414

query I rowsort
SELECT DISTINCT - 71 + col1 - - ( 41 ) AS col2 FROM tab2 AS cor0
----
21
37
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 7 - - col1 + - col2 * - col0 col2 FROM tab2 cor0
----
1116
2644
4424

query I rowsort
SELECT ( + - 41 ) - - col2 * - + col1 * - col0 * + 40 AS col2 FROM tab0 AS cor0
----
2284159
384079
730759

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT - - COUNT( * ) FROM tab0 AS cor0 WHERE 74 * + - ( - + col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3914
SELECT - - COUNT ( * ) FROM tab0 AS cor0 WHERE 74 * + - ( - + col2 ) IS NULL
----
0

query I rowsort
SELECT DISTINCT + + 38 - + col2 FROM tab2 AS cor0
----
-2
-20
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - - col2 ) + + - col1 col2 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT ALL - 32 * + col2 FROM tab0
----
-1504
-3168
-320

query I rowsort
SELECT ALL ( 29 ) + + - 40 AS col2 FROM tab2 WHERE NOT + 98 + - col2 * 25 * + col1 IS NULL
----
-11
-11
-11

query I rowsort
SELECT - + 11 * - + col2 AS col1 FROM tab2 AS cor0
----
253
440
638

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col0 ) IN ( - col2 * + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 26 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT DISTINCT COUNT( * ) * + COUNT( * ) * - 48 AS col0 FROM tab1 AS cor0
----
-432

skipif mysql # not compatible
query I rowsort label-3922
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) * - 48 AS col0 FROM tab1 AS cor0
----
-432

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 * col2 + - - col0 + col0 / + + 81 + 59 IS NOT NULL
----

query I rowsort
SELECT - + col0 * + ( - col0 ) AS col0 FROM tab1 AS cor0
----
2601
7225
8281

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 30 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3926
SELECT + col0 DIV - - ( col0 ) FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3926
SELECT + col0 / - - ( col0 ) FROM tab0 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3927
SELECT - MAX( - 34 ) FROM tab1 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-3927
SELECT - MAX ( - 34 ) FROM tab1 AS cor0
----
34

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * - col1 / col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col2 * + + 66 FROM tab2 AS cor0
----
-1518
-2640
-3828

query I rowsort
SELECT ALL 28 FROM tab1, tab0 cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT DISTINCT + ( - 2 ) FROM tab2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3932
SELECT MIN( - - 18 ) FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-3932
SELECT MIN ( - - 18 ) FROM tab0
----
18

query I rowsort
SELECT 62 AS col2 FROM tab0 WHERE NOT NULL < col2
----

query I rowsort
SELECT + + 29 AS col0 FROM tab0 AS cor0
----
29
29
29

query II rowsort
SELECT + - col0 AS col2, col2 FROM tab2 cor0
----
-46
23
-64
40
-75
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 28 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3937
SELECT CAST( + - col1 AS SIGNED ) DIV + col0 AS col2 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-3937
SELECT CAST ( + - col1 AS INTEGER ) / + col0 AS col2 FROM tab0 AS cor0
----
-5
0
0

query III rowsort
SELECT * FROM tab0 WHERE + col1 - + + col2 < NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 62 * - + 81 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT + 40 * SUM( col0 ) FROM tab2 AS cor0
----
7400

skipif mysql # not compatible
query I rowsort label-3940
SELECT + 40 * SUM ( col0 ) FROM tab2 AS cor0
----
7400

onlyif mysql # DIV for integer division: 
query I rowsort label-3941
SELECT ALL - - col2 + - 62 DIV + 41 AS col1 FROM tab0 AS cor0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-3941
SELECT ALL - - col2 + - 62 / + 41 AS col1 FROM tab0 AS cor0
----
46
9
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3942
SELECT DISTINCT + COUNT( * ) / - - COUNT( * ) + + CAST( NULL AS SIGNED ) * + 68 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3942
SELECT DISTINCT + COUNT ( * ) / - - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * + 68 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT + SUM( ALL - - col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-3943
SELECT + SUM ( ALL - - col0 ) FROM tab2 AS cor0
----
185

query I rowsort
SELECT DISTINCT - + col1 * col1 + - col1 * col2 AS col0 FROM tab1 AS cor0
----
-1540
-320
-5405

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3945
SELECT - CAST( AVG ( - col2 ) AS SIGNED ) FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-3945
SELECT - CAST ( AVG ( - col2 ) AS INTEGER ) FROM tab2 AS cor0
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3946
SELECT - col1 FROM tab0 AS cor0 WHERE ( NOT col2 * + - CAST( NULL AS SIGNED ) + + + col1 IS NULL )
----

skipif mysql # not compatible
query I rowsort label-3946
SELECT - col1 FROM tab0 AS cor0 WHERE ( NOT col2 * + - CAST ( NULL AS INTEGER ) + + + col1 IS NULL )
----

query I rowsort
SELECT DISTINCT - 10 * - - ( + col0 ) AS col2 FROM tab0 AS cor0
----
-150
-870
-970

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3948
SELECT DISTINCT 78 * - - col0 + col2 AS col2 FROM tab2 WHERE NOT + CAST( - + 95 AS SIGNED ) IN ( + col2 )
----
3611
5032
5908

skipif mysql # not compatible
query I rowsort label-3948
SELECT DISTINCT 78 * - - col0 + col2 AS col2 FROM tab2 WHERE NOT + CAST ( - + 95 AS INTEGER ) IN ( + col2 )
----
3611
5032
5908

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3949
SELECT * FROM tab2 WHERE - col2 > - col1 * CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3949
SELECT * FROM tab2 WHERE - col2 > - col1 * CAST ( - col0 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT COUNT( DISTINCT - 72 ) + - COUNT( * ) * + - 10 FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-3950
SELECT COUNT ( DISTINCT - 72 ) + - COUNT ( * ) * + - 10 FROM tab2
----
31

query II rowsort
SELECT col1 + 55 AS col2, + 86 AS col2 FROM tab1
----
102
86
60
86
69
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3952
SELECT + ( COUNT( * ) ) + - - 25 FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-3952
SELECT + ( COUNT ( * ) ) + - - 25 FROM tab0
----
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( col1 ) col2, col1 FROM tab2
----
-51
51
-67
67
-77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT DISTINCT ( - AVG ( + col0 ) ) / + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE - col0 * col2 IN ( 76 * - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3954
SELECT DISTINCT ( - AVG ( + col0 ) ) / + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE - col0 * col2 IN ( 76 * - col2 )
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 <= + - col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 + - + col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT MAX( ALL - 30 ) * + 96 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-2880

skipif mysql # not compatible
query I rowsort label-3958
SELECT MAX ( ALL - 30 ) * + 96 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-2880

query I rowsort
SELECT DISTINCT - 66 FROM tab2, tab0 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT DISTINCT MAX( ALL - - col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3960
SELECT DISTINCT MAX ( ALL - - col0 ) FROM tab2 AS cor0
----
75

query I rowsort
SELECT + + col1 * - + 60 AS col0 FROM tab2 AS cor0
----
-3060
-4020
-4620

query I rowsort
SELECT - 9 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-9
-9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT + 48 * 62 + - - COUNT( * ) FROM tab0 AS cor0
----
2979

skipif mysql # not compatible
query I rowsort label-3963
SELECT + 48 * 62 + - - COUNT ( * ) FROM tab0 AS cor0
----
2979

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 12 BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT DISTINCT + SUM( + + col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-3965
SELECT DISTINCT + SUM ( + + col2 ) FROM tab0 AS cor0
----
156

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 86 + col1 < 29
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3968
SELECT - 24 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3968
SELECT - 24 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 14 ) / + col2 <= col2
----

query I rowsort
SELECT DISTINCT + col1 * + - 1 AS col0 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3971
SELECT MIN( DISTINCT + - col2 ) col1 FROM tab0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3971
SELECT MIN ( DISTINCT + - col2 ) col1 FROM tab0
----
-99

query II rowsort
SELECT DISTINCT col1 * + col1 AS col0, - col2 FROM tab2
----
2601
-23
4489
-58
5929
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3973
SELECT + COUNT( * ) + - 76 FROM tab0
----
-73

skipif mysql # not compatible
query I rowsort label-3973
SELECT + COUNT ( * ) + - 76 FROM tab0
----
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + + + 86 col2, 63 FROM tab0
----
101
63
173
63
183
63

query I rowsort
SELECT ALL - + col2 AS col2 FROM tab1 WHERE ( + - 97 ) NOT BETWEEN col1 AND NULL
----
-59
-68
-96

query I rowsort
SELECT + - col0 * 92 - - - 90 * + col2 * - ( - 51 ) AS col0 FROM tab0 AS cor0
----
-217110
-463334
-53904

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT DISTINCT - COUNT( * ) + + + 59 col2 FROM tab0
----
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3977
SELECT DISTINCT - COUNT ( * ) + + + 59 col2 FROM tab0
----
56

query I rowsort
SELECT ALL col0 + 3 FROM tab1 cor0
----
54
88
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT DISTINCT - 42 * - COUNT( * ) FROM tab1 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-3979
SELECT DISTINCT - 42 * - COUNT ( * ) FROM tab1 AS cor0
----
126

query I rowsort
SELECT + + 86 * - - col0 + + 81 AS col2 FROM tab0 AS cor0
----
1371
7563
8423

onlyif mysql # DIV for integer division: 
query I rowsort label-3981
SELECT - col1 + - 64 * + col2 + - col2 - + + 85 + - - col2 DIV col2 FROM tab2 AS cor0
----
-1630
-2761
-3921

skipif mysql # not compatible
query I rowsort label-3981
SELECT - col1 + - 64 * + col2 + - col2 - + + 85 + - - col2 / col2 FROM tab2 AS cor0
----
-1630
-2761
-3921

query I rowsort
SELECT DISTINCT - - 76 - + col2 AS col1 FROM tab1 AS cor0
----
-20
17
8

query I rowsort
SELECT ALL col1 * + + col1 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3984
SELECT ALL - COUNT( * ) DIV + 33 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3984
SELECT ALL - COUNT ( * ) / + 33 AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT 35 * COUNT( * ) FROM tab2
----
105

skipif mysql # not compatible
query I rowsort label-3985
SELECT 35 * COUNT ( * ) FROM tab2
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT SUM( + + col2 ) AS col0 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-3986
SELECT SUM ( + + col2 ) AS col0 FROM tab0
----
156

query II rowsort
SELECT DISTINCT + col2, 79 AS col1 FROM tab1
----
59
79
68
79
96
79

query I rowsort
SELECT + ( - - col1 ) FROM tab0 cor0
----
1
21
81

query I rowsort
SELECT - ( 20 ) AS col1 FROM tab1 AS cor0
----
-20
-20
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-3990
SELECT - col1 DIV + 46 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3990
SELECT - col1 / + 46 FROM tab1
----
-1
0
0

query I rowsort
SELECT ALL - 47 * 50 * - 92 * - - 4 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 82a17556702cd53f600f8b759edf83c2

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-3992
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3993
SELECT DISTINCT - SUM( - 13 ) FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-3993
SELECT DISTINCT - SUM ( - 13 ) FROM tab1 AS cor0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT DISTINCT + ( + - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3994
SELECT DISTINCT + ( + - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col2 + + 86 + - - col0 col0 FROM tab1 AS cor0
----
1481
3373
466

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT - SUM( ALL + col0 ) * 93 FROM tab1 AS cor0
----
-21111

skipif mysql # not compatible
query I rowsort label-3996
SELECT - SUM ( ALL + col0 ) * 93 FROM tab1 AS cor0
----
-21111

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT + SUM( ALL - 72 ) AS col1 FROM tab0 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-3997
SELECT + SUM ( ALL - 72 ) AS col1 FROM tab0 AS cor0
----
-216

onlyif mysql # aggregate syntax: 
query II rowsort label-3998
SELECT 69 AS col0, - MAX( DISTINCT - + 79 ) AS col1 FROM tab1
----
69
79

skipif mysql # not compatible
query II rowsort label-3998
SELECT 69 AS col0, - MAX ( DISTINCT - + 79 ) AS col1 FROM tab1
----
69
79

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col2 + 10 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4000
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 * + CAST( NULL AS SIGNED ) BETWEEN - col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-4000
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 * + CAST ( NULL AS INTEGER ) BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT ALL MIN( - - col2 ) AS col1 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-4001
SELECT ALL MIN ( - - col2 ) AS col1 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT ALL - COUNT( * ) + - 98 FROM tab1
----
-101

skipif mysql # not compatible
query I rowsort label-4002
SELECT ALL - COUNT ( * ) + - 98 FROM tab1
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT DISTINCT MAX( ALL - 35 ) col1 FROM tab2 AS cor0
----
-35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4003
SELECT DISTINCT MAX ( ALL - 35 ) col1 FROM tab2 AS cor0
----
-35

query I rowsort
SELECT + + 78 AS col2 FROM tab1 cor0
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT ALL 60 + - SUM( ALL + - col1 ) col2 FROM tab1 AS cor0
----
126

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4005
SELECT ALL 60 + - SUM ( ALL + - col1 ) col2 FROM tab1 AS cor0
----
126

query II rowsort
SELECT + col2 AS col2, col0 - + + col1 * ( + col2 ) FROM tab0 AS cor0
----
10
-123
47
-3792
99
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4007
SELECT DISTINCT 67 + CAST( + 30 AS SIGNED ), col2 FROM tab0 AS cor0
----
97
10
97
47
97
99

skipif mysql # not compatible
query II rowsort label-4007
SELECT DISTINCT 67 + CAST ( + 30 AS INTEGER ), col2 FROM tab0 AS cor0
----
97
10
97
47
97
99

query I rowsort
SELECT - 48 + - + col0 FROM tab0 AS cor0
----
-135
-145
-63

query II rowsort
SELECT DISTINCT - ( + ( - 67 ) ) AS col0, ( col0 ) FROM tab1 AS cor0
----
67
51
67
85
67
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT 10 * - - COUNT( * ) * + - 59 AS col0 FROM tab0, tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4010
SELECT 10 * - - COUNT ( * ) * + - 59 AS col0 FROM tab0, tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + AVG ( + - 70 ) col1 FROM tab0 WHERE NOT NULL > col2
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 9 * + 77 < NULL
----

query I rowsort
SELECT + - col2 * + - 70 + - + col1 AS col1 FROM tab2 AS cor0
----
1559
2723
3993

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) NOT IN ( - 70, 20 / + col1 )
----

query I rowsort
SELECT + + col2 AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + 88 AND - 68
----

query I rowsort
SELECT DISTINCT col0 * - - 91 - + 77 FROM tab2 cor0
----
4109
5747
6748

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4017
SELECT ALL 85 - - + CAST( + col2 AS SIGNED ) AS col2 FROM tab1
----
144
153
181

skipif mysql # not compatible
query I rowsort label-4017
SELECT ALL 85 - - + CAST ( + col2 AS INTEGER ) AS col2 FROM tab1
----
144
153
181

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4018
SELECT - CAST( NULL AS SIGNED ) * + + col0 + 54 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4018
SELECT - CAST ( NULL AS INTEGER ) * + + col0 + 54 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - + - col2 * - - col1 + col0 col2 FROM tab0
----
295
307
3869

query I rowsort
SELECT 4 + + col1 FROM tab0
----
25
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT DISTINCT COUNT( DISTINCT + col2 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4021
SELECT DISTINCT COUNT ( DISTINCT + col2 ) col2 FROM tab0
----
3

query II rowsort
SELECT - 24, + col1 FROM tab0
----
-24
1
-24
21
-24
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) * + + 46 - - - col1 col2 FROM tab1
----
2332
3905
4139

query I rowsort
SELECT 52 * - 80 FROM tab1
----
-4160
-4160
-4160

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL <= NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * - 20 col1 FROM tab0 AS cor0
----
-1740
-1940
-300

onlyif mysql # DIV for integer division: 
query I rowsort label-4027
SELECT DISTINCT - 70 DIV - col2 AS col1 FROM tab2
----
1
3

skipif mysql # not compatible
query I rowsort label-4027
SELECT DISTINCT - 70 / - col2 AS col1 FROM tab2
----
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT + - SUM( DISTINCT col1 ) AS col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4028
SELECT + - SUM ( DISTINCT col1 ) AS col0 FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT DISTINCT 10 * COUNT( * ) FROM tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-4029
SELECT DISTINCT 10 * COUNT ( * ) FROM tab1 AS cor0
----
30

query I rowsort
SELECT - 67 FROM tab1 AS cor0 WHERE NOT ( col1 * + - col2 ) <> ( NULL )
----

query I rowsort
SELECT col2 * - + col2 + - ( 50 ) + + - col0 * + 19 AS col0 FROM tab2 AS cor0
----
-1453
-2866
-4839

query II rowsort
SELECT DISTINCT - - col0 AS col0, 55 FROM tab2 AS cor0
----
46
55
64
55
75
55

query I rowsort
SELECT + col2 * + col1 FROM tab2 AS cor0 WHERE NOT col1 <> - 5
----

query I rowsort
SELECT ALL - + 11 AS col2 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
-11
-11
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT DISTINCT - ( MIN( + 58 ) ) AS col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-4035
SELECT DISTINCT - ( MIN ( + 58 ) ) AS col2 FROM tab2 AS cor0
----
-58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 <> + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4037
SELECT ALL - 27 AS col1, COUNT( * ) FROM tab0 AS cor0
----
-27
3

skipif mysql # not compatible
query II rowsort label-4037
SELECT ALL - 27 AS col1, COUNT ( * ) FROM tab0 AS cor0
----
-27
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4038
SELECT - col1 + + - col0 + + + col0 * + CAST( col1 AS SIGNED ) AS col0 FROM tab0 cor0
----
-1
1119
1719

skipif mysql # not compatible
query I rowsort label-4038
SELECT - col1 + + - col0 + + + col0 * + CAST ( col1 AS INTEGER ) AS col0 FROM tab0 cor0
----
-1
1119
1719

query II rowsort
SELECT - 77 + + + 24 AS col2, 55 AS col2 FROM tab1
----
-53
55
-53
55
-53
55

query I rowsort
SELECT col2 * col2 + - - col2 + col2 * - + 14 AS col0 FROM tab1
----
2714
3740
7968

query I rowsort
SELECT + 49 * - + 19 + 39 AS col2 FROM tab2
----
-892
-892
-892

onlyif mysql # aggregate syntax: 
query II rowsort label-4042
SELECT MAX( ALL + col1 ) AS col1, + 35 FROM tab2
----
77
35

skipif mysql # not compatible
query II rowsort label-4042
SELECT MAX ( ALL + col1 ) AS col1, + 35 FROM tab2
----
77
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT + SUM( DISTINCT - + col2 ) AS col0 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-4043
SELECT + SUM ( DISTINCT - + col2 ) AS col0 FROM tab0
----
-156

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4044
SELECT - col2 * - 46 col0 FROM tab2 AS cor0 WHERE CAST( NULL AS DECIMAL ) * - 95 * - col0 * + - col2 >= + CAST( NULL AS SIGNED ) * + + col1 * col2 + 54
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4044
SELECT - col2 * - 46 col0 FROM tab2 AS cor0 WHERE CAST ( NULL AS REAL ) * - 95 * - col0 * + - col2 >= + CAST ( NULL AS INTEGER ) * + + col1 * col2 + 54
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 BETWEEN + 76 AND ( - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = - col2 + - - 9
----

query I rowsort
SELECT ALL + + 15 + col2 FROM tab1 AS cor0
----
111
74
83

query I rowsort
SELECT DISTINCT - 8 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4049
SELECT ALL - - CAST( NULL AS SIGNED ) - + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4049
SELECT ALL - - CAST ( NULL AS INTEGER ) - + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT DISTINCT - MIN( col2 ) - 0 * - 6 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-4050
SELECT DISTINCT - MIN ( col2 ) - 0 * - 6 FROM tab1
----
-59

onlyif mysql # DIV for integer division: 
query II rowsort label-4051
SELECT DISTINCT + 39, + 67 DIV + 20 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
39
3

skipif mysql # not compatible
query II rowsort label-4051
SELECT DISTINCT + 39, + 67 / + 20 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
39
3

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT + MIN( ALL - col0 ) AS col2 FROM tab1 cor0 WHERE - col1 * 16 * - col2 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4053
SELECT + MIN ( ALL - col0 ) AS col2 FROM tab1 cor0 WHERE - col1 * 16 * - col2 = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT DISTINCT ( - + 84 ) + - COUNT( * ) * COUNT( * ) + - - 10 * - 62 AS col2 FROM tab0 cor0
----
-713

skipif mysql # not compatible
query I rowsort label-4054
SELECT DISTINCT ( - + 84 ) + - COUNT ( * ) * COUNT ( * ) + - - 10 * - 62 AS col2 FROM tab0 cor0
----
-713

query II rowsort
SELECT - col2 + - + 79 + 13, - 52 AS col0 FROM tab1 cor0
----
-125
-52
-134
-52
-162
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4056
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NULL < NULL
----
0

query I rowsort
SELECT - + col0 * + 43 + - col1 + 82 AS col0 FROM tab0 AS cor0
----
-3680
-4090
-644

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4058
SELECT DISTINCT + + 15 + + col2 * CAST( + col2 AS SIGNED ) + col1 * + col1, - 60 AS col1 FROM tab2 AS cor0
----
3145
-60
7544
-60
7868
-60

skipif mysql # not compatible
query II rowsort label-4058
SELECT DISTINCT + + 15 + + col2 * CAST ( + col2 AS INTEGER ) + col1 * + col1, - 60 AS col1 FROM tab2 AS cor0
----
3145
-60
7544
-60
7868
-60

query I rowsort
SELECT ALL col0 * - + col2 - 14 FROM tab0 AS cor0
----
-719
-884
-9617

query II rowsort
SELECT + col2, col2 * 69 AS col0 FROM tab2 cor0
----
23
1587
40
2760
58
4002

query I rowsort
SELECT - col1 * - 49 AS col2 FROM tab0
----
1029
3969
49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4062
SELECT ALL COUNT( * ) - - 57 * - MAX( DISTINCT + - 47 ) + + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4062
SELECT ALL COUNT ( * ) - - 57 * - MAX ( DISTINCT + - 47 ) + + CAST ( NULL AS REAL ) FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT DISTINCT SUM( + 75 ) FROM tab1
----
225

skipif mysql # not compatible
query I rowsort label-4064
SELECT DISTINCT SUM ( + 75 ) FROM tab1
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT ALL - 37 * MIN( + col2 ) AS col2 FROM tab2
----
-851

skipif mysql # not compatible
query I rowsort label-4065
SELECT ALL - 37 * MIN ( + col2 ) AS col2 FROM tab2
----
-851

onlyif mysql # aggregate syntax: 
query II rowsort label-4066
SELECT + COUNT( * ) * - + 20, - 74 AS col0 FROM tab2 AS cor0
----
-60
-74

skipif mysql # not compatible
query II rowsort label-4066
SELECT + COUNT ( * ) * - + 20, - 74 AS col0 FROM tab2 AS cor0
----
-60
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4067
SELECT ALL SUM( - 97 ) DIV + MIN( - + col1 ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4067
SELECT ALL SUM ( - 97 ) / + MIN ( - + col1 ) FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT ALL 41 * + + ( SUM( ALL - + 8 ) ) FROM tab0 AS cor0
----
-984

skipif mysql # not compatible
query I rowsort label-4068
SELECT ALL 41 * + + ( SUM ( ALL - + 8 ) ) FROM tab0 AS cor0
----
-984

onlyif mysql # aggregate syntax: 
query I rowsort label-4069
SELECT DISTINCT + SUM( DISTINCT - col1 ) * - MAX( - col0 ) AS col0 FROM tab0 AS cor0
----
-1545

skipif mysql # not compatible
query I rowsort label-4069
SELECT DISTINCT + SUM ( DISTINCT - col1 ) * - MAX ( - col0 ) AS col0 FROM tab0 AS cor0
----
-1545

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL >= + col1 + col1
----

query I rowsort
SELECT + col0 * + col2 + - - 57 FROM tab0 AS cor0
----
762
927
9660

query I rowsort
SELECT DISTINCT col2 + + + col2 * + col2 FROM tab2 AS cor0
----
1640
3422
552

query I rowsort
SELECT ALL + - ( + - col2 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + + col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4075
SELECT CAST( - ( - 16 ) AS SIGNED ) * + col0 + - + col1 AS col2 FROM tab2 AS cor0
----
1133
685
947

skipif mysql # not compatible
query I rowsort label-4075
SELECT CAST ( - ( - 16 ) AS INTEGER ) * + col0 + - + col1 AS col2 FROM tab2 AS cor0
----
1133
685
947

query I rowsort
SELECT - col1 * + - col0 * - 80 FROM tab0 AS cor0
----
-146160
-7760
-97200

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT + MAX( ALL - + col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4077
SELECT + MAX ( ALL - + col0 ) FROM tab2 AS cor0
----
-46

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 74 >= + - col1 + col0 - + 89
----
87
21
10
97
1
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + - 87 ) * - + col0 * - + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 >= col1
----

query II rowsort
SELECT ALL col1 AS col2, col0 * + - ( + 8 ) AS col1 FROM tab2
----
51
-368
67
-600
77
-512

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE + - col0 + - col1 > NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - - 52 <> NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col1 + - 85 + - + 17 * + + col1 BETWEEN - col0 * col0 * + - col2 AND + col1 + + 96 * - - 5
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT COUNT( DISTINCT - col2 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4085
SELECT COUNT ( DISTINCT - col2 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT - 60 + - + col2 * - + 63 FROM tab0
----
2901
570
6177

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4087
SELECT DISTINCT - 54 + - + col0 * - CAST( NULL AS DECIMAL ) + - + col2 / - col1 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4087
SELECT DISTINCT - 54 + - + col0 * - CAST ( NULL AS REAL ) + - + col2 / - col1 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - + ( - col2 ) - + 31 - + col1 FROM tab0 cor0 WHERE col1 + col0 IS NULL
----

query I rowsort
SELECT - col0 + - + 90 FROM tab0 AS cor0
----
-105
-177
-187

query I rowsort
SELECT DISTINCT col0 * - col1 + col0 AS col1 FROM tab2 AS cor0
----
-2300
-4864
-4950

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT COUNT( * ) * + 49 * + COUNT( * ) AS col0 FROM tab0
----
441

skipif mysql # not compatible
query I rowsort label-4091
SELECT COUNT ( * ) * + 49 * + COUNT ( * ) AS col0 FROM tab0
----
441

query I rowsort
SELECT - ( ( col0 ) ) * - col1 + - col0 - - ( + 90 ) + + 6 AS col2 FROM tab1 AS cor0
----
4282
436
759

query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE col0 NOT BETWEEN NULL AND + 32 * col0 + + 62
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 40 + + - 3 col2 FROM tab1 AS cor0
----
37
37
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) - - + ( col1 ) * - 39 col2 FROM tab2 AS cor0
----
-1938
-2546
-2926

query I rowsort
SELECT DISTINCT + col2 + 42 AS col2 FROM tab0 AS cor0
----
141
52
89

onlyif mysql # DIV for integer division: 
query I rowsort label-4097
SELECT - - col0 - - col0 DIV - col1 FROM tab1 AS cor0
----
48
68
90

skipif mysql # not compatible
query I rowsort label-4097
SELECT - - col0 - - col0 / - col1 FROM tab1 AS cor0
----
48
68
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4098
SELECT + 54 - col2 + - CAST( + 64 AS SIGNED ) * + col2 * col0 col0 FROM tab2 AS cor0
----
-163826
-278404
-67681

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4098
SELECT + 54 - col2 + - CAST ( + 64 AS INTEGER ) * + col2 * col0 col0 FROM tab2 AS cor0
----
-163826
-278404
-67681

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4099
SELECT DISTINCT CAST( NULL AS SIGNED ) / col2 + + col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4099
SELECT DISTINCT CAST ( NULL AS INTEGER ) / col2 + + col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT ALL + SUM( DISTINCT col1 ) col0 FROM tab2 WHERE 23 / - - col0 + - + col1 + col1 * + + ( + col0 ) * + col2 = + + 35
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4100
SELECT ALL + SUM ( DISTINCT col1 ) col0 FROM tab2 WHERE 23 / - - col0 + - + col1 + col1 * + + ( + col0 ) * + col2 = + + 35
----
NULL

query II rowsort
SELECT ALL 56 AS col1, + col0 FROM tab0
----
56
15
56
87
56
97

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > + 50 * - + col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 NOT BETWEEN NULL AND - 52
----

query I rowsort
SELECT ALL ( - col1 ) * - col1 + + + col0 * + - 62 AS col0 FROM tab2
----
-161
-251
1961

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT ALL + COUNT( * ) * - MAX( + col0 ) AS col1 FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL + COUNT ( * ) * - MAX ( + col0 ) AS col1 FROM tab1
----
-273

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 88 col2, - col2 AS col1 FROM tab2
----
88
-23
88
-40
88
-58

query I rowsort
SELECT ALL 65 * - col2 AS col2 FROM tab1
----
-3835
-4420
-6240

onlyif mysql # DIV for integer division: 
query I rowsort label-4108
SELECT ALL ( - col2 ) DIV - + 99 + + + col0 FROM tab0
----
15
87
98

skipif mysql # not compatible
query I rowsort label-4108
SELECT ALL ( - col2 ) / - + 99 + + + col0 FROM tab0
----
15
87
98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 10 IS NOT NULL
----

query I rowsort
SELECT col2 + - 63 AS col1 FROM tab0
----
-16
-53
36

query I rowsort
SELECT ALL col2 + 31 AS col0 FROM tab2
----
54
71
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE - col2 * col0 IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-4112
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE - col2 * col0 IN ( col0 )
----
0

query I rowsort
SELECT - 63 * - col0 + - col0 * col2 FROM tab0
----
-3492
240
4611

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4114
SELECT 4 + - CAST( col1 AS SIGNED ) FROM tab1
----
-1
-10
-43

skipif mysql # not compatible
query I rowsort label-4114
SELECT 4 + - CAST ( col1 AS INTEGER ) FROM tab1
----
-1
-10
-43

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col1 / + col2 ) < ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE - col1 + - col1 * - col0 NOT BETWEEN ( col0 ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - 79 + col2 ) <= NULL
----

query I rowsort
SELECT 3 - - col0 AS col2 FROM tab1
----
54
88
94

query I rowsort
SELECT + 96 FROM tab1 WHERE NULL NOT IN ( + col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( ( + 50 ) )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 8 + - col1 * 14 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT + 16 * - ( ( MAX( ALL 3 ) ) * + COUNT( * ) ) FROM tab0
----
-144

skipif mysql # not compatible
query I rowsort label-4122
SELECT + 16 * - ( ( MAX ( ALL 3 ) ) * + COUNT ( * ) ) FROM tab0
----
-144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col0 FROM tab1 WHERE NULL > ( - 85 )
----

query I rowsort
SELECT ALL - col2 - + ( - col1 ) FROM tab2
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT - SUM( DISTINCT col1 ) * + COUNT( * ) col1 FROM tab1
----
-198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4125
SELECT - SUM ( DISTINCT col1 ) * + COUNT ( * ) col1 FROM tab1
----
-198

query I rowsort
SELECT - 23 * col2 AS col2 FROM tab0
----
-1081
-2277
-230

query III rowsort
SELECT * FROM tab0 WHERE + col1 - - col2 * col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4128
SELECT DISTINCT - 77 + CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4128
SELECT DISTINCT - 77 + CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4129
SELECT col0 + col2 DIV 73 FROM tab0
----
15
87
98

skipif mysql # not compatible
query I rowsort label-4129
SELECT col0 + col2 / 73 FROM tab0
----
15
87
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4130
SELECT COUNT( * ) * COUNT( + 51 * col2 ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4130
SELECT COUNT ( * ) * COUNT ( + 51 * col2 ) AS col1 FROM tab1
----
9

query I rowsort
SELECT col1 * 76 AS col2 FROM tab2
----
3876
5092
5852

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col1 + ( + ( + 62 ) ) ) IN ( - 12 * 93 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4133
SELECT CAST( NULL AS DECIMAL ) * - 2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4133
SELECT CAST ( NULL AS REAL ) * - 2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col0 * 86 col1 FROM tab2
----
3910
5440
6375

query I rowsort
SELECT ALL 49 AS col1 FROM tab1 WHERE - 63 + + 22 IS NOT NULL
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT COUNT( * ) * - 1 AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4136
SELECT COUNT ( * ) * - 1 AS col1 FROM tab0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 16 col2 FROM tab1 WHERE NOT col0 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT ALL COUNT( * ) FROM tab0 WHERE NOT ( NULL ) BETWEEN col0 * col1 AND 44
----
0

skipif mysql # not compatible
query I rowsort label-4138
SELECT ALL COUNT ( * ) FROM tab0 WHERE NOT ( NULL ) BETWEEN col0 * col1 AND 44
----
0

query I rowsort
SELECT - col2 + col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-98
11
34

query I rowsort
SELECT ALL + col2 + 50 FROM tab1 AS cor0
----
109
118
146

onlyif mysql # DIV for integer division: 
query I rowsort label-4141
SELECT ( col1 ) DIV - col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4141
SELECT ( col1 ) / - col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 24 + + 53 col1 FROM tab1 cor0
----
77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN col2 AND ( - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 21 * col2 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 34 * col0 BETWEEN ( col0 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <= + col1 - col0
----

query I rowsort
SELECT DISTINCT - col0 - 77 AS col2 FROM tab1
----
-128
-162
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT + COUNT( * ) + 92 * ( COUNT( + col0 ) - 31 ) FROM tab0
----
-2573

skipif mysql # not compatible
query I rowsort label-4149
SELECT + COUNT ( * ) + 92 * ( COUNT ( + col0 ) - 31 ) FROM tab0
----
-2573

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT ALL COUNT( * ) - + COUNT( * ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4150
SELECT ALL COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col2 / 52 - col2 ) IN ( + 23 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4152
SELECT col2 DIV col2 FROM tab1 WHERE ( - 45 ) DIV + 88 NOT BETWEEN ( NULL ) AND + col0 * - col0 + col0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4152
SELECT col2 / col2 FROM tab1 WHERE ( - 45 ) / + 88 NOT BETWEEN ( NULL ) AND + col0 * - col0 + col0
----
1
1
1

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( + col2 + + col1 * col2 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN 60 AND ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 81 ) BETWEEN NULL AND ( - col1 + 97 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT DISTINCT - MIN( ALL + col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-4156
SELECT DISTINCT - MIN ( ALL + col2 ) FROM tab1 AS cor0
----
-59

query I rowsort
SELECT + + col2 * - 64 FROM tab0 AS cor0
----
-3008
-6336
-640

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT MAX( DISTINCT - 48 ) FROM tab1 cor0
----
-48

skipif mysql # not compatible
query I rowsort label-4158
SELECT MAX ( DISTINCT - 48 ) FROM tab1 cor0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT DISTINCT + MIN( + col1 ) AS col0 FROM tab0 AS cor0 WHERE 64 + 29 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4159
SELECT DISTINCT + MIN ( + col1 ) AS col0 FROM tab0 AS cor0 WHERE 64 + 29 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT ALL COUNT( ALL - 42 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4160
SELECT ALL COUNT ( ALL - 42 ) AS col1 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 87 col2 FROM tab0 AS cor0 WHERE NOT col0 = ( NULL )
----

query I rowsort
SELECT + col1 AS col0 FROM tab0 WHERE NOT col0 NOT BETWEEN - 11 AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 91 BETWEEN NULL AND 47
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 + - col1 / + col2 <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 + col1 FROM tab2 WHERE NOT ( col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4167
SELECT ALL ( CAST( col0 AS SIGNED ) ) AS col0 FROM tab2 WHERE + 60 <= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-4167
SELECT ALL ( CAST ( col0 AS INTEGER ) ) AS col0 FROM tab2 WHERE + 60 <= ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4168
SELECT DISTINCT - CAST( + + COUNT( * ) AS SIGNED ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4168
SELECT DISTINCT - CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab1
----
-3

query I rowsort
SELECT + 79 * - 31 + + 80 * - 99 FROM tab2 AS cor0
----
-10369
-10369
-10369

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4170
SELECT DISTINCT - col1 * + CAST( NULL AS SIGNED ) * + - col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4170
SELECT DISTINCT - col1 * + CAST ( NULL AS INTEGER ) * + - col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT ALL - MIN( + 62 ) col0 FROM tab0
----
-62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4171
SELECT ALL - MIN ( + 62 ) col0 FROM tab0
----
-62

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + ( col0 ) + 9
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) > ( - + col2 )
----

query I rowsort
SELECT col0 * + ( 71 ) FROM tab1 AS cor0 WHERE + col0 >= ( + col2 * + col2 )
----

query I rowsort
SELECT + 68 + ( ( ( - col2 ) ) ) * + 93 FROM tab0 AS cor0 WHERE + ( + 80 ) >= col1 / col2 + col2
----
-4303
-862

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col1 NOT BETWEEN ( - - col0 ) AND + ( + 76 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4178
SELECT DISTINCT + COUNT( col1 ) + 77 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4178
SELECT DISTINCT + COUNT ( col1 ) + 77 * + 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 + 85 * + col0 col0 FROM tab2 AS cor0
----
3910
5440
6375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4180
SELECT DISTINCT col1 * + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4180
SELECT DISTINCT col1 * + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4181
SELECT * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) < + 44 + col0
----

skipif mysql # not compatible
query III rowsort label-4181
SELECT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) < + 44 + col0
----

query I rowsort
SELECT + 3 * + 47 AS col1 FROM tab1 AS cor0
----
141
141
141

query I rowsort
SELECT ALL - - col2 + + + col2 * - + col1 FROM tab2 AS cor0
----
-1150
-3040
-3828

query I rowsort
SELECT col0 * - ( + 50 ) AS col2 FROM tab2
----
-2300
-3200
-3750

query I rowsort
SELECT DISTINCT 66 + 52 FROM tab1
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT ALL + ( COUNT( * ) ) * + - COUNT( * ) AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-4186
SELECT ALL + ( COUNT ( * ) ) * + - COUNT ( * ) AS col1 FROM tab0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-4187
SELECT DISTINCT - col0 DIV 50 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4187
SELECT DISTINCT - col0 / 50 FROM tab0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 + col0 col2, - col2 FROM tab1
----
138
-68
65
-96
90
-59

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col0 + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT ALL - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE ( - 70 * col2 ) NOT BETWEEN NULL AND 28
----
0

skipif mysql # not compatible
query I rowsort label-4190
SELECT ALL - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE ( - 70 * col2 ) NOT BETWEEN NULL AND 28
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL < ( col0 ) )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 NOT IN ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4194
SELECT - CAST( NULL AS SIGNED ) * - + 21 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4194
SELECT - CAST ( NULL AS INTEGER ) * - + 21 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col0 ) col2 FROM tab0 WHERE NOT 62 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT + MIN( col1 ) * ( COUNT( ALL - 88 ) ) + - COUNT( * ) AS col2 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-4196
SELECT + MIN ( col1 ) * ( COUNT ( ALL - 88 ) ) + - COUNT ( * ) AS col2 FROM tab1
----
12

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 19 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4198
SELECT DISTINCT COUNT( * ) AS col2, - 10 AS col2 FROM tab1
----
3
-10

skipif mysql # not compatible
query II rowsort label-4198
SELECT DISTINCT COUNT ( * ) AS col2, - 10 AS col2 FROM tab1
----
3
-10

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 22 + ( - col0 ) + col2 < NULL
----

query I rowsort
SELECT + col1 * + col0 AS col0 FROM tab0 AS cor0 WHERE NOT - col1 + + + col1 + - - col1 IS NULL
----
1215
1827
97

query II rowsort
SELECT + + col2, 24 + + ( col2 ) - 31 FROM tab2 AS cor0
----
23
16
40
33
58
51

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 + - col0 + - ( col0 ) > + col0
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT ALL + ( COUNT( * ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4203
SELECT ALL + ( COUNT ( * ) ) FROM tab2 cor0
----
3

query I rowsort
SELECT ( col1 ) * + + 73 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4205
SELECT ALL + + col2 FROM tab2 AS cor0 WHERE NOT CAST( + col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4205
SELECT ALL + + col2 FROM tab2 AS cor0 WHERE NOT CAST ( + col2 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT ALL + - MAX( + col2 ) FROM tab1 AS cor0 WHERE NOT NULL > ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4206
SELECT ALL + - MAX ( + col2 ) FROM tab1 AS cor0 WHERE NOT NULL > ( NULL )
----
NULL

query I rowsort
SELECT ALL - ( 8 ) AS col0 FROM tab1 cor0
----
-8
-8
-8

query II rowsort
SELECT DISTINCT col2, col2 + - col2 AS col2 FROM tab0
----
10
0
47
0
99
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT ALL - SUM( + ( - - col1 ) ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-4209
SELECT ALL - SUM ( + ( - - col1 ) ) FROM tab0
----
-103

query I rowsort
SELECT - col1 * - - col1 * col0 AS col1 FROM tab0
----
-38367
-97
-98415

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT DISTINCT + COUNT( * ) + 97 col0 FROM tab2 WHERE - col0 IS NULL
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4211
SELECT DISTINCT + COUNT ( * ) + 97 col0 FROM tab2 WHERE - col0 IS NULL
----
97

query II rowsort
SELECT ALL col1, - 81 FROM tab2
----
51
-81
67
-81
77
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-4213
SELECT ALL - COUNT( * ) AS col1, 42 AS col0 FROM tab0
----
-3
42

skipif mysql # not compatible
query II rowsort label-4213
SELECT ALL - COUNT ( * ) AS col1, 42 AS col0 FROM tab0
----
-3
42

query III rowsort
SELECT * FROM tab2 WHERE NOT - 92 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 IN ( - - col1 + + + col1 * - col0 + - - col0 )
----

query I rowsort
SELECT - - col2 * - 10 AS col1 FROM tab1 AS cor0
----
-590
-680
-960

query I rowsort
SELECT DISTINCT 18 + + 39 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
57

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 49 IS NOT NULL
----

query I rowsort
SELECT ALL + - ( + - col2 ) * + col0 + 92 AS col0 FROM tab0 AS cor0
----
797
962
9695

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4220
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - 55 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4220
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - 55 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 + - 85 FROM tab1 AS cor0
----
-17
-26
11

query I rowsort
SELECT ALL - col2 - col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( ( NOT - col0 < ( 75 ) ) )
----
-100
-128
-31

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( col0, 20 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4224
SELECT COUNT( * ) * - COUNT( * ) + + COUNT( + - CAST( col1 AS DECIMAL ) ) AS col1 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4224
SELECT COUNT ( * ) * - COUNT ( * ) + + COUNT ( + - CAST ( col1 AS REAL ) ) AS col1 FROM tab2 AS cor0
----
-6

query I rowsort
SELECT DISTINCT + 59 + + col1 AS col0 FROM tab0 AS cor0
----
140
60
80

query II rowsort
SELECT DISTINCT + 36 AS col0, 51 FROM tab1
----
36
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4227
SELECT ALL + COUNT( * ) AS col1, - CAST( NULL AS SIGNED ) col1 FROM tab0
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4227
SELECT ALL + COUNT ( * ) AS col1, - CAST ( NULL AS INTEGER ) col1 FROM tab0
----
3
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4228
SELECT CAST( NULL AS SIGNED ) * + col2 / - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4228
SELECT CAST ( NULL AS INTEGER ) * + col2 / - col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT DISTINCT + COUNT( ALL - 33 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4229
SELECT DISTINCT + COUNT ( ALL - 33 ) AS col1 FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 93 - - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 + - + col1 + + col1 + 50 FROM tab2
----
114
125
96

query I rowsort
SELECT DISTINCT - 58 + + col1 AS col2 FROM tab0 cor0
----
-37
-57
23

onlyif mysql # DIV for integer division: 
query I rowsort label-4233
SELECT ALL + col1 DIV - col0 + + col0 FROM tab2 AS cor0
----
45
63
75

skipif mysql # not compatible
query I rowsort label-4233
SELECT ALL + col1 / - col0 + + col0 FROM tab2 AS cor0
----
45
63
75

query I rowsort
SELECT + - 69 - + 47 AS col0 FROM tab1 AS cor0
----
-116
-116
-116

query I rowsort
SELECT + - 54 - - + 37 * + 77 * + - col1 FROM tab0 AS cor0
----
-230823
-2903
-59883

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT + COUNT( DISTINCT 71 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4236
SELECT + COUNT ( DISTINCT 71 ) FROM tab0
----
1

query I rowsort
SELECT - col2 * + 45 AS col2 FROM tab2
----
-1035
-1800
-2610

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT ALL + COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4238
SELECT ALL + COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * - col0 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4240
SELECT DISTINCT - col0 DIV + 17 FROM tab1 AS cor0
----
-3
-5

skipif mysql # not compatible
query I rowsort label-4240
SELECT DISTINCT - col0 / + 17 FROM tab1 AS cor0
----
-3
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT - MAX( ALL - - ( - + col0 ) ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-4241
SELECT - MAX ( ALL - - ( - + col0 ) ) FROM tab2 AS cor0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4242
SELECT ALL * FROM tab2 WHERE NOT NULL >= ( + CAST( - col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4242
SELECT ALL * FROM tab2 WHERE NOT NULL >= ( + CAST ( - col1 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT DISTINCT - COUNT( * ) * 85 FROM tab2
----
-255

skipif mysql # not compatible
query I rowsort label-4243
SELECT DISTINCT - COUNT ( * ) * 85 FROM tab2
----
-255

query III rowsort
SELECT ALL * FROM tab1 WHERE - + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col1 + - 78 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - 96 BETWEEN NULL AND + 6
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT - + COUNT( DISTINCT - 97 ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4247
SELECT - + COUNT ( DISTINCT - 97 ) AS col2 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT col2 * - 73 * + col1 + - - col2 AS col2 FROM tab2
----
-224800
-283620
-85606

query I rowsort
SELECT ALL col1 + - + 27 + + + 22 FROM tab2
----
46
62
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4250
SELECT COUNT( * ) DIV + - MAX( ALL - 31 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4250
SELECT COUNT ( * ) / + - MAX ( ALL - 31 ) FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4251
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4251
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT ALL + + SUM( - + 60 ) * MIN( - col1 ) / 14 FROM tab0 AS cor0 WHERE + col0 + + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4252
SELECT ALL + + SUM ( - + 60 ) * MIN ( - col1 ) / 14 FROM tab0 AS cor0 WHERE + col0 + + col1 IS NULL
----
NULL

query I rowsort
SELECT ALL col0 * - ( 8 ) + col1 * - - col1 + col2 AS col1 FROM tab2 AS cor0
----
2256
3947
5457

query I rowsort
SELECT ALL + col2 * + 34 + - 63 FROM tab0 AS cor0
----
1535
277
3303

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4255
SELECT - 12 FROM tab0 cor0 WHERE + CAST( + CAST( + - col0 AS SIGNED ) AS SIGNED ) * - CAST( NULL AS DECIMAL ) IS NULL
----
-12
-12
-12

skipif mysql # not compatible
query I rowsort label-4255
SELECT - 12 FROM tab0 cor0 WHERE + CAST ( + CAST ( + - col0 AS INTEGER ) AS INTEGER ) * - CAST ( NULL AS REAL ) IS NULL
----
-12
-12
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT DISTINCT + COUNT( * ) - - - MIN( DISTINCT + - col2 ) - + - 0 + + - 13 FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-4256
SELECT DISTINCT + COUNT ( * ) - - - MIN ( DISTINCT + - col2 ) - + - 0 + + - 13 FROM tab0
----
89

query III rowsort
SELECT * FROM tab2 WHERE - 2 + + col2 * + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE ( 60 + - col0 + - col2 < ( col2 + + + 71 + + 89 * col2 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( + 68 ) + + - 97 FROM tab0
----
-29
-29
-29

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NOT NULL BETWEEN NULL AND - 62 * - 18 + + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4261
SELECT ALL col1 * CAST( - ( + - col2 ) AS SIGNED ) * + col1 AS col2 FROM tab0
----
308367
4410
99

skipif mysql # not compatible
query I rowsort label-4261
SELECT ALL col1 * CAST ( - ( + - col2 ) AS INTEGER ) * + col1 AS col2 FROM tab0
----
308367
4410
99

query III rowsort
SELECT * FROM tab0 WHERE + col1 + + 33 NOT BETWEEN + - col2 AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 93 + - - col2 AS col1 FROM tab2
----
116
133
151

query I rowsort
SELECT DISTINCT - 17 * + + col1 AS col0 FROM tab0 AS cor0
----
-1377
-17
-357

query I rowsort
SELECT DISTINCT - + 87 FROM tab1 AS cor0 WHERE - ( - - col1 ) >= 90 / 21
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4266
SELECT DISTINCT - - COUNT( * ) + + 24, 39 * + ( + 58 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
33
2262

skipif mysql # not compatible
query II rowsort label-4266
SELECT DISTINCT - - COUNT ( * ) + + 24, 39 * + ( + 58 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
33
2262

query II rowsort
SELECT col0, 55 AS col2 FROM tab0
----
15
55
87
55
97
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT ALL - SUM( + + 32 ) * - ( - 39 ) + + 9 AS col1 FROM tab0 AS cor0
----
-3735

skipif mysql # not compatible
query I rowsort label-4268
SELECT ALL - SUM ( + + 32 ) * - ( - 39 ) + + 9 AS col1 FROM tab0 AS cor0
----
-3735

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 62 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4270
SELECT - 12 col1, COUNT( * ) AS col1 FROM tab0 AS cor0
----
-12
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4270
SELECT - 12 col1, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-12
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT + - ( + + COUNT( DISTINCT + 67 ) ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4271
SELECT + - ( + + COUNT ( DISTINCT + 67 ) ) FROM tab0 cor0
----
-1

query II rowsort
SELECT - col1 AS col1, 36 FROM tab1 AS cor0
----
-14
36
-47
36
-5
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT + COUNT( * ) * COUNT( * ) + 57 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-4273
SELECT + COUNT ( * ) * COUNT ( * ) + 57 FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT + MAX( DISTINCT + - col2 ) + + + ( + ( + - COUNT( * ) ) ) AS col1 FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-4274
SELECT + MAX ( DISTINCT + - col2 ) + + + ( + ( + - COUNT ( * ) ) ) AS col1 FROM tab1
----
-62

query I rowsort
SELECT + col0 + - + 64 FROM tab0
----
-49
23
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4276
SELECT - COUNT( * ) + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4276
SELECT - COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT 1 + - + 29 FROM tab1
----
-28
-28
-28

query I rowsort
SELECT DISTINCT + 47 * + col1 + + - col2 AS col1 FROM tab0 WHERE NULL IS NULL
----
-52
3760
977

onlyif mysql # DIV for integer division: 
query I rowsort label-4279
SELECT - ( + 30 ) + + col0 DIV + col0 + col1 AS col1 FROM tab0
----
-28
-8
52

skipif mysql # not compatible
query I rowsort label-4279
SELECT - ( + 30 ) + + col0 / + col0 + col1 AS col1 FROM tab0
----
-28
-8
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT ALL - 73 + - MAX( - col0 ) FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-4280
SELECT ALL - 73 + - MAX ( - col0 ) FROM tab2 AS cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT ALL - COUNT( * ) * COUNT( * ) col0 FROM tab2
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4281
SELECT ALL - COUNT ( * ) * COUNT ( * ) col0 FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT COUNT( * ) col1 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4282
SELECT COUNT ( * ) col1 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
9

query I rowsort
SELECT DISTINCT + col2 + - 41 FROM tab2 AS cor0
----
-1
-18
17

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 41 IS NULL
----

query I rowsort
SELECT ALL + + 51 + + col1 FROM tab1 cor0
----
56
65
98

query I rowsort
SELECT - col1 + - + 90 FROM tab1 AS cor0
----
-104
-137
-95

query I rowsort
SELECT ALL 29 + + + 18 AS col1 FROM tab0 AS cor0
----
47
47
47

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 * col2 + + col1 IN ( + col1, - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4289
SELECT DISTINCT + 94 DIV + CAST( + 9 AS SIGNED ) - - COUNT( * ) FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-4289
SELECT DISTINCT + 94 / + CAST ( + 9 AS INTEGER ) - - COUNT ( * ) FROM tab1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT MIN( ALL - 92 ) FROM tab0
----
-92

skipif mysql # not compatible
query I rowsort label-4290
SELECT MIN ( ALL - 92 ) FROM tab0
----
-92

query I rowsort
SELECT col2 / col0 FROM tab1 WHERE NULL NOT BETWEEN + 94 AND - col0 * - 70 * + col2
----

query I rowsort
SELECT - 83 - - col1 FROM tab1
----
-36
-69
-78

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 WHERE NOT + col0 <= - 50 + + col1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-4294
SELECT DISTINCT + COUNT( * ) col0, COUNT( * ) AS col0 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4294
SELECT DISTINCT + COUNT ( * ) col0, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3
3

query I rowsort
SELECT col1 * - col1 * - - col0 FROM tab1 cor0
----
-201019
-2125
-9996

query II rowsort
SELECT + col2, - 71 AS col1 FROM tab2 AS cor0
----
23
-71
40
-71
58
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT 1 * - COUNT( * ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4297
SELECT 1 * - COUNT ( * ) FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4298
SELECT + CAST( - - col2 AS SIGNED ) FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-4298
SELECT + CAST ( - - col2 AS INTEGER ) FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT AVG ( + - col1 ) FROM tab1 cor0 WHERE NOT col0 IS NOT NULL
----
NULL

query I rowsort
SELECT + col1 + - - col2 AS col2 FROM tab1 cor0 WHERE NOT col2 - - 99 IS NULL
----
110
115
64

onlyif mysql # DIV for integer division: 
query I rowsort label-4301
SELECT - - 51 DIV - 55 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4301
SELECT - - 51 / - 55 AS col2 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT + ( 93 ) AS col1, - col1 * + col2 * col1 + + col0 FROM tab2 AS cor0
----
93
-237096
93
-260287
93
-59777

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4303
SELECT ALL CAST( - 69 AS SIGNED ) FROM tab1 AS cor0
----
-69
-69
-69

skipif mysql # not compatible
query I rowsort label-4303
SELECT ALL CAST ( - 69 AS INTEGER ) FROM tab1 AS cor0
----
-69
-69
-69

onlyif mysql # DIV for integer division: 
query II rowsort label-4304
SELECT DISTINCT - ( - col1 ) DIV - 97, + col1 FROM tab1
----
0
14
0
47
0
5

skipif mysql # not compatible
query II rowsort label-4304
SELECT DISTINCT - ( - col1 ) / - 97, + col1 FROM tab1
----
0
14
0
47
0
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT - col0 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT ALL + MIN( DISTINCT - 92 ) + ( 77 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-4306
SELECT ALL + MIN ( DISTINCT - 92 ) + ( 77 ) FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT DISTINCT ( COUNT( * ) ) AS col2 FROM tab2, tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-4307
SELECT DISTINCT ( COUNT ( * ) ) AS col2 FROM tab2, tab1 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT COUNT( * ) + - - 39 + + + COUNT( * ) + 5 FROM tab2
----
50

skipif mysql # not compatible
query I rowsort label-4308
SELECT COUNT ( * ) + - - 39 + + + COUNT ( * ) + 5 FROM tab2
----
50

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 71 + ( + - 85 ) * col1 * - + 58 FROM tab1 AS cor0
----
231781
24721
69091

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4311
SELECT + 54 + - MAX( + CAST( - ( + ( col0 ) ) AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-4311
SELECT + 54 + - MAX ( + CAST ( - ( + ( col0 ) ) AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 + + col0 col0 FROM tab2 AS cor0
----
109
80
98

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col1 < - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL 74 + + col1 AS col1, col1 AS col0 FROM tab2 AS cor0 WHERE ( - col1 ) * - col0 - + 6 - - col0 <= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT ALL + 80 * COUNT( * ) + - - ( 28 ) FROM tab2 AS cor0
----
268

skipif mysql # not compatible
query I rowsort label-4315
SELECT ALL + 80 * COUNT ( * ) + - - ( 28 ) FROM tab2 AS cor0
----
268

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4316
SELECT DISTINCT * FROM tab1 cor0 WHERE 78 + col2 NOT BETWEEN + - 65 * + - 97 * + col0 * + 16 + - col2 AND + col2 * + CAST( NULL AS DECIMAL ) - + 74 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4316
SELECT DISTINCT * FROM tab1 cor0 WHERE 78 + col2 NOT BETWEEN + - 65 * + - 97 * + col0 * + 16 + - col2 AND + col2 * + CAST ( NULL AS REAL ) - + 74 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4317
SELECT CAST( + ( CAST( col1 AS SIGNED ) ) AS SIGNED ) DIV + ( + + 47 ) AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4317
SELECT CAST ( + ( CAST ( col1 AS INTEGER ) ) AS INTEGER ) / + ( + + 47 ) AS col1 FROM tab0
----
0
0
1

query II rowsort
SELECT DISTINCT col0, - 23 * 97 + - col0 AS col2 FROM tab0
----
15
-2246
87
-2318
97
-2328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4319
SELECT ALL + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4319
SELECT ALL + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
0

query II rowsort
SELECT col2 AS col0, col2 AS col2 FROM tab1
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT ALL - - ( - - ( COUNT( * ) ) ) * 13 - 42 FROM tab0 AS cor0 WHERE NOT ( NULL ) > + col0 - 83
----
-42

skipif mysql # not compatible
query I rowsort label-4321
SELECT ALL - - ( - - ( COUNT ( * ) ) ) * 13 - 42 FROM tab0 AS cor0 WHERE NOT ( NULL ) > + col0 - 83
----
-42

query I rowsort
SELECT + 97 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query III rowsort
SELECT ALL * FROM tab1 WHERE - 23 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( col0 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4324
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( col0 ) IS NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4325
SELECT + COUNT( DISTINCT - + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4325
SELECT + COUNT ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4326
SELECT DISTINCT 1 + + 83 DIV COUNT( * ) FROM tab0 cor0
----
28

skipif mysql # not compatible
query I rowsort label-4326
SELECT DISTINCT 1 + + 83 / COUNT ( * ) FROM tab0 cor0
----
28

query I rowsort
SELECT DISTINCT + 72 * col1 AS col1 FROM tab2
----
3672
4824
5544

query I rowsort
SELECT DISTINCT - col0 * + col2 FROM tab1 WHERE NOT col0 IS NULL
----
-4896
-5015
-6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 70 + col0 col0, - col2 AS col0 FROM tab2
----
116
-23
134
-40
145
-58

onlyif mysql # DIV for integer division: 
query II rowsort label-4330
SELECT ALL col0 DIV col1 AS col2, col0 FROM tab1
----
1
91
17
85
3
51

skipif mysql # not compatible
query II rowsort label-4330
SELECT ALL col0 / col1 AS col2, col0 FROM tab1
----
1
91
17
85
3
51

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col0 <= + col0
----

query I rowsort
SELECT + 4 + + - col1 FROM tab1
----
-1
-10
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT ALL 57 + + COUNT( col0 ) AS col2 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-4333
SELECT ALL 57 + + COUNT ( col0 ) AS col2 FROM tab2
----
60

query III rowsort
SELECT * FROM tab1 WHERE - + 32 IS NULL
----

query I rowsort
SELECT col0 * - ( + + col2 ) FROM tab0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT ( - COUNT( * ) ) * COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-4336
SELECT ( - COUNT ( * ) ) * COUNT ( * ) FROM tab0
----
-9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) < - col0 * col0 * + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4338
SELECT - + col0 - col1 + + - ( + CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4338
SELECT - + col0 - col1 + + - ( + CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT DISTINCT + + 56 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-4339
SELECT DISTINCT + + 56 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
53

query I rowsort
SELECT col0 * + - 69 * + col0 - + + col1 AS col1 FROM tab1
----
-179483
-498530
-571436

query I rowsort
SELECT 15 + + 93 * + + col1 AS col1 FROM tab2
----
4758
6246
7176

query II rowsort
SELECT ALL + col1 AS col1, col2 + 64 + 32 * + col0 FROM tab2 WHERE - 80 IS NULL
----

query II rowsort
SELECT DISTINCT - + col0 AS col0, + col2 * + - col2 * - 70 * - - col0 FROM tab2 cor0
----
-46
1703380
-64
7168000
-75
17661000

query I rowsort
SELECT DISTINCT - col0 + - 41 AS col2 FROM tab0 cor0
----
-128
-138
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col0 * - col1 + - 79 + col1 * col0 col1 FROM tab0 AS cor0
----
20018
58241
9621

query I rowsort
SELECT - col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL = + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4347
SELECT DISTINCT + col2 DIV + + 64 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4347
SELECT DISTINCT + col2 / + + 64 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4348
SELECT + col0 AS col1, + 70 DIV - col1 AS col1 FROM tab2 AS cor0
----
46
-1
64
0
75
-1

skipif mysql # not compatible
query II rowsort label-4348
SELECT + col0 AS col1, + 70 / - col1 AS col1 FROM tab2 AS cor0
----
46
-1
64
0
75
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4349
SELECT ALL MAX( DISTINCT 89 ) * MIN( - + 21 ) DIV - 98 FROM tab2 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-4349
SELECT ALL MAX ( DISTINCT 89 ) * MIN ( - + 21 ) / - 98 FROM tab2 AS cor0
----
19

query I rowsort
SELECT ALL ( 96 ) FROM tab1 cor0
----
96
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT - - COUNT( * ) * COUNT( - + col1 ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4351
SELECT - - COUNT ( * ) * COUNT ( - + col1 ) FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4352
SELECT DISTINCT + COUNT( * ) DIV 33 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4352
SELECT DISTINCT + COUNT ( * ) / 33 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4353
SELECT * FROM tab1 WHERE NOT - 96 * - - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4353
SELECT * FROM tab1 WHERE NOT - 96 * - - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col1 + col1 - + - ( + 10 ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT DISTINCT - MAX( ALL + col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-4355
SELECT DISTINCT - MAX ( ALL + col0 ) FROM tab0
----
-97

query I rowsort
SELECT 51 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT ALL - ( 22 ) * + - ( MIN( + + 94 ) ) FROM tab2 WHERE NOT NULL > + col2 - - - col0 + - + col0 * - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4357
SELECT ALL - ( 22 ) * + - ( MIN ( + + 94 ) ) FROM tab2 WHERE NOT NULL > + col2 - - - col0 + - + col0 * - col1
----
NULL

query I rowsort
SELECT - + col2 * - 25 AS col1 FROM tab2 AS cor0
----
1000
1450
575

query I rowsort
SELECT DISTINCT + - 38 FROM tab2 AS cor0
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4360
SELECT DISTINCT COUNT( * ) DIV - 24 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4360
SELECT DISTINCT COUNT ( * ) / - 24 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT 44 * col1 * + col0 AS col0 FROM tab1 AS cor0
----
18700
188188
31416

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4362
SELECT COUNT( ALL col2 ) DIV + + COUNT( * ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4362
SELECT COUNT ( ALL col2 ) / + + COUNT ( * ) FROM tab1 AS cor0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4363
SELECT - CAST( NULL AS DECIMAL ) * - - col0 AS col2, CAST( NULL AS DECIMAL ) * + + 3 AS col2 FROM tab1 AS cor0 WHERE NOT - col1 <> NULL
----

skipif mysql # not compatible
query II rowsort label-4363
SELECT - CAST ( NULL AS REAL ) * - - col0 AS col2, CAST ( NULL AS REAL ) * + + 3 AS col2 FROM tab1 AS cor0 WHERE NOT - col1 <> NULL
----

query I rowsort
SELECT - + ( + + 52 ) * - - col1 + - col2 FROM tab0 AS cor0
----
-1102
-151
-4259

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT + COUNT( + col0 ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4365
SELECT + COUNT ( + col0 ) col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT MAX( - - col0 ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4366
SELECT MAX ( - - col0 ) AS col1 FROM tab2 AS cor0
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, + 78 * - + col1 + + col1 col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-46
-3927
-64
-5929
-75
-5159

query II rowsort
SELECT DISTINCT - col1 AS col2, + 32 AS col1 FROM tab2
----
-51
32
-67
32
-77
32

query I rowsort
SELECT ALL - ( - 21 ) FROM tab1
----
21
21
21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4370
SELECT * FROM tab1 WHERE - col1 * 63 - CAST( - 59 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4370
SELECT * FROM tab1 WHERE - col1 * 63 - CAST ( - 59 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT 29 + + - COUNT( * ) FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-4371
SELECT 29 + + - COUNT ( * ) FROM tab0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT COUNT( * ) + MIN( ALL + - 47 ) FROM tab2
----
-44

skipif mysql # not compatible
query I rowsort label-4372
SELECT COUNT ( * ) + MIN ( ALL + - 47 ) FROM tab2
----
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1 * ( + 1 ) + - col1 col0, col0 AS col2 FROM tab2 AS cor0
----
-102
46
-134
75
-154
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4374
SELECT DISTINCT + 10 * - - CAST( - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4374
SELECT DISTINCT + 10 * - - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4375
SELECT ALL + col1 * - - col0 + CAST( NULL AS SIGNED ) + col1 * + + col0 FROM tab0 cor0 WHERE NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-4375
SELECT ALL + col1 * - - col0 + CAST ( NULL AS INTEGER ) + col1 * + + col0 FROM tab0 cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT - - col2 - - col0 + - col0 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4377
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4377
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( NOT - col1 BETWEEN ( NULL ) AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4379
SELECT ALL + + col2 * + col2 + - CAST( + col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
3476
4577
9202

skipif mysql # not compatible
query I rowsort label-4379
SELECT ALL + + col2 * + col2 + - CAST ( + col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3476
4577
9202

query I rowsort
SELECT DISTINCT + - ( + col0 ) * + + col2 AS col1 FROM tab2 cor0
----
-1058
-2560
-4350

onlyif mysql # DIV for integer division: 
query II rowsort label-4381
SELECT + 51 * + col2 AS col0, col0 DIV col2 AS col2 FROM tab1 AS cor0
----
3009
1
3468
1
4896
0

skipif mysql # not compatible
query II rowsort label-4381
SELECT + 51 * + col2 AS col0, col0 / col2 AS col2 FROM tab1 AS cor0
----
3009
1
3468
1
4896
0

query I rowsort
SELECT - 56 * + + col1 FROM tab1 AS cor0
----
-2632
-280
-784

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 / col2 * col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4384
SELECT DISTINCT + 78 DIV + - col0, + col2 FROM tab0 AS cor0
----
-5
47
0
10
0
99

skipif mysql # not compatible
query II rowsort label-4384
SELECT DISTINCT + 78 / + - col0, + col2 FROM tab0 AS cor0
----
-5
47
0
10
0
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4385
SELECT + + COUNT( * ) DIV + - 50 AS col0 FROM tab2 AS cor0 WHERE NOT col0 * 58 * col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4385
SELECT + + COUNT ( * ) / + - 50 AS col0 FROM tab2 AS cor0 WHERE NOT col0 * 58 * col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT MAX( 4 ) AS col1 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-4386
SELECT MAX ( 4 ) AS col1 FROM tab0
----
4

query II rowsort
SELECT DISTINCT 6 AS col0, + col1 FROM tab0
----
6
1
6
21
6
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( + - ( + 17 ) ), 48 + - 63 col1 FROM tab0
----
-17
-15
-17
-15
-17
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 20 col1 FROM tab1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT + SUM( ALL + + 66 ) AS col2 FROM tab0 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-4390
SELECT + SUM ( ALL + + 66 ) AS col2 FROM tab0 AS cor0
----
198

onlyif mysql # DIV for integer division: 
query I rowsort label-4391
SELECT + 6 DIV - + col0 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4391
SELECT + 6 / - + col0 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT + MAX( DISTINCT - - 38 ) col0 FROM tab0 AS cor0
----
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4392
SELECT + MAX ( DISTINCT - - 38 ) col0 FROM tab0 AS cor0
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4393
SELECT - - col2 * - col0 / + col0 * + - col1 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4393
SELECT - - col2 * - col0 / + col0 * + - col1 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN 7 * - - 89 * col2 AND NULL
----

query I rowsort
SELECT ALL - col0 + + + col2 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4396
SELECT DISTINCT + - 29 + 5 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4396
SELECT DISTINCT + - 29 + 5 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 + - 93 + - + col2 + col2 * + col2 FROM tab1 AS cor0
----
3334
4510
9041

query I rowsort
SELECT ALL + 77 + col0 FROM tab1
----
128
162
168

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 58 / + 40 < col1 * + col2 * - col0 + - 56
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT DISTINCT COUNT( - + col1 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4400
SELECT DISTINCT COUNT ( - + col1 ) AS col0 FROM tab2
----
3

query II rowsort
SELECT - 69, + col2 FROM tab0
----
-69
10
-69
47
-69
99

query I rowsort
SELECT - 92 * + 93 AS col1 FROM tab2
----
-8556
-8556
-8556

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 24 - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col0, - col0 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
-51
-51
-85
-85
-91
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4405
SELECT ( col0 ) + CAST( - - 45 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
132
142
60

skipif mysql # not compatible
query I rowsort label-4405
SELECT ( col0 ) + CAST ( - - 45 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
132
142
60

query I rowsort
SELECT ALL 45 * + col0 FROM tab1
----
2295
3825
4095

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT 71 * - 45 + - 51 AS col1 FROM tab1 cor0
----
-3246
-3246
-3246

query I rowsort
SELECT col0 * - + col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT - - 92 * - 29 - - ( - - ( col0 ) ) * - + col2 AS col1 FROM tab1 AS cor0
----
-7564
-7683
-8856

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT - 98 > NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4412
SELECT DISTINCT - 0 DIV col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4412
SELECT DISTINCT - 0 / col1 FROM tab2 AS cor0
----
0

query II rowsort
SELECT DISTINCT + + col2, col2 AS col0 FROM tab0 AS cor0
----
10
10
47
47
99
99

query I rowsort
SELECT + col1 * + col1 + - col2 AS col1 FROM tab0 AS cor0
----
-98
431
6514

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4415
SELECT DISTINCT + col1 * - + CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE NOT col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4415
SELECT DISTINCT + col1 * - + CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 * - - col2 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT DISTINCT ( + 94 ) * - COUNT( * ) col2 FROM tab1
----
-282

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4417
SELECT DISTINCT ( + 94 ) * - COUNT ( * ) col2 FROM tab1
----
-282

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - - 34 + + ( col2 ) ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT DISTINCT + MAX( + - col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-4419
SELECT DISTINCT + MAX ( + - col0 ) FROM tab2
----
-46

query II rowsort
SELECT ALL - col1, - 17 FROM tab0 AS cor0 WHERE NOT NULL <= + col0 * + col0 + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 + - + col1 col1 FROM tab2 AS cor0
----
2065
4019
5558

query I rowsort
SELECT ALL + + 87 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

onlyif mysql # aggregate syntax: 
query I rowsort label-4423
SELECT ALL - 38 * + + COUNT( * ) AS col0 FROM tab2
----
-114

skipif mysql # not compatible
query I rowsort label-4423
SELECT ALL - 38 * + + COUNT ( * ) AS col0 FROM tab2
----
-114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4424
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + + 81 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4424
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + 81 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - + ( - col2 ) * col1 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ( - 93 ) FROM tab1 AS cor0
----
-93
-93
-93

query I rowsort
SELECT 34 FROM tab2 AS cor0 WHERE NULL IS NOT NULL OR NOT - col1 BETWEEN NULL AND - - 73
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4428
SELECT 1 * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4428
SELECT 1 * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + col1 + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 42 + - 25 FROM tab1 AS cor0
----
-67
-67
-67

query I rowsort
SELECT ALL + 2 + + 81 FROM tab1 AS cor0
----
83
83
83

query II rowsort
SELECT + col2, - 33 + + col2 FROM tab1 AS cor0
----
59
26
68
35
96
63

query I rowsort
SELECT ALL + - col0 * - + col1 * - col1 + + + 20 FROM tab2 AS cor0
----
-119626
-336655
-379436

query I rowsort
SELECT ALL - 33 - - - col1 AS col2 FROM tab2
----
-100
-110
-84

query I rowsort
SELECT DISTINCT col1 - - + col1 FROM tab1
----
10
28
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col1 + + + 66 col2 FROM tab2
----
-31
-75
-76

query II rowsort
SELECT + col0 + - col0 AS col1, - col1 FROM tab0
----
0
-1
0
-21
0
-81

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 * + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( + AVG ( DISTINCT - col1 ) ) / 9 AS col2 FROM tab2 WHERE NOT - - col2 * - + col0 * + - 41 + + 65 <> 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT + 8 * MAX( ALL + - 81 ) FROM tab0
----
-648

skipif mysql # not compatible
query I rowsort label-4440
SELECT + 8 * MAX ( ALL + - 81 ) FROM tab0
----
-648

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT ALL - COUNT( DISTINCT - col2 ) * - - COUNT( * ) AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-4441
SELECT ALL - COUNT ( DISTINCT - col2 ) * - - COUNT ( * ) AS col1 FROM tab0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4442
SELECT - CAST( NULL AS SIGNED ) * col1 * - 40 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4442
SELECT - CAST ( NULL AS INTEGER ) * col1 * - 40 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + - col2 ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT DISTINCT - SUM( col1 ) AS col2 FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-4444
SELECT DISTINCT - SUM ( col1 ) AS col2 FROM tab2 cor0
----
-195

query III rowsort
SELECT * FROM tab1 WHERE NOT + 92 = + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 86 + col0 NOT BETWEEN + col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4447
SELECT - - col0 FROM tab0 WHERE NOT - 0 - CAST( NULL AS SIGNED ) + + + col0 BETWEEN - CAST( col2 AS SIGNED ) AND + + col0
----

skipif mysql # not compatible
query I rowsort label-4447
SELECT - - col0 FROM tab0 WHERE NOT - 0 - CAST ( NULL AS INTEGER ) + + + col0 BETWEEN - CAST ( col2 AS INTEGER ) AND + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4448
SELECT ALL col1 * CAST( NULL AS SIGNED ) / + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4448
SELECT ALL col1 * CAST ( NULL AS INTEGER ) / + col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col2 * - 48 + - 27 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4450
SELECT ALL col2 DIV - col1 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4450
SELECT ALL col2 / - col1 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * + + col0 * + col1 FROM tab1
----
201019
2125
9996

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1, - 65 col2 FROM tab0
----
-1
-65
-21
-65
-81
-65

query I rowsort
SELECT + col2 * ( col1 ) + - - col1 FROM tab0 AS cor0
----
100
231
3888

onlyif mysql # DIV for integer division: 
query I rowsort label-4454
SELECT ALL - - 42 + + + col2 DIV - - col1 FROM tab0 AS cor0
----
141
42
42

skipif mysql # not compatible
query I rowsort label-4454
SELECT ALL - - 42 + + + col2 / - - col1 FROM tab0 AS cor0
----
141
42
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4455
SELECT DISTINCT COUNT( * ) * 2 DIV + + COUNT( * ) FROM tab2 cor0
----
2

skipif mysql # not compatible
query I rowsort label-4455
SELECT DISTINCT COUNT ( * ) * 2 / + + COUNT ( * ) FROM tab2 cor0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4456
SELECT - 85 * + col1 DIV + col1 AS col2 FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
-85
-85
-85

skipif mysql # not compatible
query I rowsort label-4456
SELECT - 85 * + col1 / + col1 AS col2 FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
-85
-85
-85

query II rowsort
SELECT 96 / + col1, - col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, - col1 + - 83 + + + ( col1 ) * 90 FROM tab1
----
51
1163
85
362
91
4100

onlyif mysql # aggregate syntax: 
query II rowsort label-4459
SELECT 24 AS col1, + 51 * - COUNT( * ) AS col2 FROM tab0
----
24
-153

skipif mysql # not compatible
query II rowsort label-4459
SELECT 24 AS col1, + 51 * - COUNT ( * ) AS col2 FROM tab0
----
24
-153

onlyif mysql # DIV for integer division: 
query II rowsort label-4460
SELECT ALL col2 AS col2, 64 DIV col2 FROM tab2
----
23
2
40
1
58
1

skipif mysql # not compatible
query II rowsort label-4460
SELECT ALL col2 AS col2, 64 / col2 FROM tab2
----
23
2
40
1
58
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4461
SELECT CAST( - ( - + col2 ) AS SIGNED ) col1, col2 + + + col2 FROM tab0
----
10
20
47
94
99
198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4461
SELECT CAST ( - ( - + col2 ) AS INTEGER ) col1, col2 + + + col2 FROM tab0
----
10
20
47
94
99
198

onlyif mysql # aggregate syntax: 
query I rowsort label-4462
SELECT + COUNT( DISTINCT + col0 ) AS col1 FROM tab0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4462
SELECT + COUNT ( DISTINCT + col0 ) AS col1 FROM tab0 WHERE NULL IS NULL
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4463
SELECT 25 + + CAST( NULL AS DECIMAL ) FROM tab1 WHERE + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4463
SELECT 25 + + CAST ( NULL AS REAL ) FROM tab1 WHERE + col2 IS NULL
----

query II rowsort
SELECT DISTINCT + col2, col1 AS col1 FROM tab2 WHERE NOT col2 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4465
SELECT ALL + COUNT( * ) * + COUNT( * ) + 92 * + - CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab2
----
-267

skipif mysql # not compatible
query I rowsort label-4465
SELECT ALL + COUNT ( * ) * + COUNT ( * ) + 92 * + - CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab2
----
-267

query I rowsort
SELECT - col1 * - 54 AS col2 FROM tab2 AS cor0
----
2754
3618
4158

query II rowsort
SELECT col1 AS col2, + col2 + 11 FROM tab1 AS cor0
----
14
107
47
79
5
70

query I rowsort
SELECT ALL col0 * + ( 45 ) FROM tab0 AS cor0
----
3915
4365
675

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 94 AS col0, + 26 col1 FROM tab2 AS cor0
----
-94
26
-94
26
-94
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT DISTINCT + SUM( ALL - - col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-4470
SELECT DISTINCT + SUM ( ALL - - col1 ) FROM tab0
----
103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2 * col2 col2, - col2 + - col0 - col0 FROM tab2 AS cor0
----
1600
-168
3364
-208
529
-115

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col2 * + col0 > - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - 64, + ( + col0 ) + + col1 FROM tab0 AS cor0 WHERE col0 * + + col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4474
SELECT ALL + + col0 * + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4474
SELECT ALL + + col0 * + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + + ( - 89 ) ) * - col2 FROM tab0
----
-4183
-8811
-890

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - + col2 ) * + 29 - + col0 col1 FROM tab2
----
1096
1607
621

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT - col2 IS NULL
----
10
47
99

query III rowsort
SELECT * FROM tab0 WHERE + col1 * + 45 + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + + col2 AS col1, - 55 AS col2 FROM tab2 cor0
----
23
-55
40
-55
58
-55

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 8 = - 93 + - - 62 * - 63 + 38
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4481
SELECT 57 + + + col1 DIV + col2 FROM tab2 AS cor0
----
58
58
59

skipif mysql # not compatible
query I rowsort label-4481
SELECT 57 + + + col1 / + col2 FROM tab2 AS cor0
----
58
58
59

query I rowsort
SELECT - 11 + - 62 AS col2 FROM tab0 AS cor0
----
-73
-73
-73

query II rowsort
SELECT DISTINCT - + col2 + - col0, col2 FROM tab1 AS cor0 WHERE NOT ( + 93 * + - col0 * 43 * 15 * + - 43 ) NOT BETWEEN NULL AND + 44 + - 52
----

query I rowsort
SELECT ALL + 61 + + + col1 * + 98 AS col0 FROM tab1
----
1433
4667
551

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT ALL COUNT( + col1 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4485
SELECT ALL COUNT ( + col1 ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4486
SELECT DISTINCT - 77 * + 76 + - MAX( DISTINCT 39 ) FROM tab0
----
-5891

skipif mysql # not compatible
query I rowsort label-4486
SELECT DISTINCT - 77 * + 76 + - MAX ( DISTINCT 39 ) FROM tab0
----
-5891

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 19 col2 FROM tab0
----
-19
-19
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT DISTINCT - COUNT( * ) - - 51 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
42

skipif mysql # not compatible
query I rowsort label-4488
SELECT DISTINCT - COUNT ( * ) - - 51 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
42

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4489
SELECT DISTINCT col1 * - CAST( NULL AS DECIMAL ) + - col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4489
SELECT DISTINCT col1 * - CAST ( NULL AS REAL ) + - col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4490
SELECT - col0 AS col1, - 41 * 5 DIV - - 18 FROM tab1 AS cor0
----
-51
-11
-85
-11
-91
-11

skipif mysql # not compatible
query II rowsort label-4490
SELECT - col0 AS col1, - 41 * 5 / - - 18 FROM tab1 AS cor0
----
-51
-11
-85
-11
-91
-11

query I rowsort
SELECT DISTINCT + col2 + 87 * - col0 + + col0 FROM tab1 AS cor0
----
-4290
-7251
-7758

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT - 90 - MIN( - - col1 ) AS col0 FROM tab2 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-4492
SELECT - 90 - MIN ( - - col1 ) AS col0 FROM tab2 AS cor0
----
-141

query I rowsort
SELECT ALL + 48 + - col0 * + 61 FROM tab0 AS cor0
----
-5259
-5869
-867

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT + + 68 - - MAX( - col0 ) FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-4494
SELECT + + 68 - - MAX ( - col0 ) FROM tab1 AS cor0
----
17

query I rowsort
SELECT + col0 - - + col0 AS col2 FROM tab0 AS cor0
----
174
194
30

onlyif mysql # DIV for integer division: 
query I rowsort label-4496
SELECT ALL - col1 + col1 DIV - col2 FROM tab2 AS cor0
----
-53
-68
-78

skipif mysql # not compatible
query I rowsort label-4496
SELECT ALL - col1 + col1 / - col2 FROM tab2 AS cor0
----
-53
-68
-78

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4497
SELECT DISTINCT ( + + ( - - col2 ) ) + + col2 - + col2 * 79 AS col2, CAST( NULL AS DECIMAL ) AS col0 FROM tab2 cor0
----
-1771
NULL
-3080
NULL
-4466
NULL

skipif mysql # not compatible
query II rowsort label-4497
SELECT DISTINCT ( + + ( - - col2 ) ) + + col2 - + col2 * 79 AS col2, CAST ( NULL AS REAL ) AS col0 FROM tab2 cor0
----
-1771
NULL
-3080
NULL
-4466
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4498
SELECT 36 + COUNT( + 51 ) AS col0, - 6 FROM tab0
----
39
-6

skipif mysql # not compatible
query II rowsort label-4498
SELECT 36 + COUNT ( + 51 ) AS col0, - 6 FROM tab0
----
39
-6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4499
SELECT 5 + + - col1 * + + 94 - + CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4499
SELECT 5 + + - col1 * + + 94 - + CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT ALL + SUM( 1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4500
SELECT ALL + SUM ( 1 ) FROM tab2
----
3

query I rowsort
SELECT col2 * 12 AS col1 FROM tab2
----
276
480
696

query I rowsort
SELECT ALL + - ( - - col1 ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-4503
SELECT - COUNT( * ) AS col1, COUNT( * ) + - - 6 AS col1 FROM tab2
----
-3
9

skipif mysql # not compatible
query II rowsort label-4503
SELECT - COUNT ( * ) AS col1, COUNT ( * ) + - - 6 AS col1 FROM tab2
----
-3
9

query I rowsort
SELECT ALL + 43 FROM tab0 AS cor0 WHERE NOT + col0 <= + col2 + - + col0 * + col0 * + 78
----
43
43
43

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL = 54
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4506
SELECT - - COUNT( * ) AS col1, MIN( ALL - col0 ) + - + MAX( + + col1 ) AS col0 FROM tab0 AS cor0
----
3
-178

skipif mysql # not compatible
query II rowsort label-4506
SELECT - - COUNT ( * ) AS col1, MIN ( ALL - col0 ) + - + MAX ( + + col1 ) AS col0 FROM tab0 AS cor0
----
3
-178

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * + + 6 BETWEEN NULL AND + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4508
SELECT ALL + ( COUNT( * ) ) + CAST( - 52 AS SIGNED ) AS col0 FROM tab0 cor0
----
-49

skipif mysql # not compatible
query I rowsort label-4508
SELECT ALL + ( COUNT ( * ) ) + CAST ( - 52 AS INTEGER ) AS col0 FROM tab0 cor0
----
-49

query I rowsort
SELECT DISTINCT - - col0 * - - col2 FROM tab1 AS cor0
----
4896
5015
6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 43 + - col2, col0 + + 51 col2 FROM tab0
----
-4
66
-56
148
33
138

onlyif mysql # aggregate syntax: 
query II rowsort label-4511
SELECT - COUNT( * ) + + - 54 * COUNT( * ) * + 19 AS col2, 51 + + COUNT( * ) AS col2 FROM tab1
----
-3081
54

skipif mysql # not compatible
query II rowsort label-4511
SELECT - COUNT ( * ) + + - 54 * COUNT ( * ) * + 19 AS col2, 51 + + COUNT ( * ) AS col2 FROM tab1
----
-3081
54

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN + + col0 AND + col2
----

query I rowsort
SELECT DISTINCT + col1 + col2 * + 11 - + col1 FROM tab1
----
1056
649
748

onlyif mysql # DIV for integer division: 
query I rowsort label-4514
SELECT col2 DIV - 27 + - + 2 AS col2 FROM tab1
----
-4
-4
-5

skipif mysql # not compatible
query I rowsort label-4514
SELECT col2 / - 27 + - + 2 AS col2 FROM tab1
----
-4
-4
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4515
SELECT + 34 DIV + COUNT( * ) AS col0 FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-4515
SELECT + 34 / + COUNT ( * ) AS col0 FROM tab2
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-4516
SELECT 91 DIV - + col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4516
SELECT 91 / - + col0 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT - 34 FROM tab2 cor0
----
-34
-34
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4518
SELECT ALL + + col1 FROM tab1 AS cor0 WHERE + ( 97 ) / - col1 * col0 + - col0 * + CAST( NULL AS SIGNED ) = + 27 * 47 + + - ( + - col2 ) + 34 / - col1 * - col1 * - + col2
----

skipif mysql # not compatible
query I rowsort label-4518
SELECT ALL + + col1 FROM tab1 AS cor0 WHERE + ( 97 ) / - col1 * col0 + - col0 * + CAST ( NULL AS INTEGER ) = + 27 * 47 + + - ( + - col2 ) + 34 / - col1 * - col1 * - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT SUM( col2 ) FROM tab1 cor0 WHERE NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4519
SELECT SUM ( col2 ) FROM tab1 cor0 WHERE NULL <> NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4520
SELECT ALL + CAST( NULL AS DECIMAL ) * 36 + + AVG ( ALL + + col0 ) AS col0, MIN( + col0 ) AS col2 FROM tab0 AS cor0
----
NULL
15

skipif mysql # not compatible
query II rowsort label-4520
SELECT ALL + CAST ( NULL AS REAL ) * 36 + + AVG ( ALL + + col0 ) AS col0, MIN ( + col0 ) AS col2 FROM tab0 AS cor0
----
NULL
15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4521
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) * - col0 / 64 - - + col2 * + col2 * - 16 + - 33 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4521
SELECT DISTINCT - + CAST ( NULL AS REAL ) * - col0 / 64 - - + col2 * + col2 * - 16 + - 33 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4522
SELECT DISTINCT + + CAST( - col2 AS SIGNED ) + col0 FROM tab0 cor0
----
-2
-32
77

skipif mysql # not compatible
query I rowsort label-4522
SELECT DISTINCT + + CAST ( - col2 AS INTEGER ) + col0 FROM tab0 cor0
----
-2
-32
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4523
SELECT + col2 DIV col0 + + - 32 col2 FROM tab2 AS cor0
----
-32
-32
-32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4523
SELECT + col2 / col0 + + - 32 col2 FROM tab2 AS cor0
----
-32
-32
-32

query II rowsort
SELECT DISTINCT col0, - col1 AS col2 FROM tab2
----
46
-51
64
-77
75
-67

query II rowsort
SELECT + col1 AS col0, 92 AS col1 FROM tab0
----
1
92
21
92
81
92

onlyif mysql # aggregate syntax: 
query III rowsort label-4526
SELECT + COUNT( * ) AS col2, COUNT( * ) col0, COUNT( DISTINCT - - col1 ) col0 FROM tab1
----
3
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-4526
SELECT + COUNT ( * ) AS col2, COUNT ( * ) col0, COUNT ( DISTINCT - - col1 ) col0 FROM tab1
----
3
3
3

query I rowsort
SELECT DISTINCT col1 * + + col2 AS col2 FROM tab0
----
210
3807
99

query I rowsort
SELECT DISTINCT 2 * - col2 * - col1 * - 55 + - col1 FROM tab1 WHERE NOT - col2 >= NULL
----

query I rowsort
SELECT DISTINCT - ( + 42 ) * 4 AS col1 FROM tab0 AS cor0
----
-168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4530
SELECT + CAST( NULL AS SIGNED ) * - ( MIN( DISTINCT + - 6 ) ), + MIN( + + col1 ) AS col0 FROM tab1 AS cor0
----
NULL
5

skipif mysql # not compatible
query II rowsort label-4530
SELECT + CAST ( NULL AS INTEGER ) * - ( MIN ( DISTINCT + - 6 ) ), + MIN ( + + col1 ) AS col0 FROM tab1 AS cor0
----
NULL
5

query I rowsort
SELECT ALL 4 * - + 30 FROM tab0 AS cor0
----
-120
-120
-120

query II rowsort
SELECT DISTINCT - col0 AS col1, - ( + 82 ) FROM tab1 AS cor0
----
-51
-82
-85
-82
-91
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT ALL + MIN( + - ( - col0 ) ) AS col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-4533
SELECT ALL + MIN ( + - ( - col0 ) ) AS col1 FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT + ( - + COUNT( * ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4534
SELECT + ( - + COUNT ( * ) ) FROM tab0 cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 16 + - col1 * + 2 * - 74 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4536
SELECT DISTINCT + CAST( 8 AS SIGNED ) + - col1 + - + col0 + - 26 AS col1 FROM tab1 AS cor0
----
-108
-156
-83

skipif mysql # not compatible
query I rowsort label-4536
SELECT DISTINCT + CAST ( 8 AS INTEGER ) + - col1 + - + col0 + - 26 AS col1 FROM tab1 AS cor0
----
-108
-156
-83

query I rowsort
SELECT - 85 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-85
-85
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT - COUNT( * ) * ( + 82 ) FROM tab1 AS cor0
----
-246

skipif mysql # not compatible
query I rowsort label-4538
SELECT - COUNT ( * ) * ( + 82 ) FROM tab1 AS cor0
----
-246

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * + col1, col2 col0 FROM tab0 AS cor0
----
210
10
3807
47
99
99

query I rowsort
SELECT ALL - ( - - col1 ) AS col2 FROM tab1
----
-14
-47
-5

query II rowsort
SELECT ALL col2, - col1 + + - 67 * - - col2 FROM tab1
----
59
-3958
68
-4603
96
-6446

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4542
SELECT ALL - col2 AS col0, CAST( NULL AS SIGNED ) FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-4542
SELECT ALL - col2 AS col0, CAST ( NULL AS INTEGER ) FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT DISTINCT COUNT( * ) + - - 8 FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-4543
SELECT DISTINCT COUNT ( * ) + - - 8 FROM tab1
----
11

query III rowsort
SELECT * FROM tab0 WHERE ( col2 * - ( - + col1 ) IS NULL )
----

query I rowsort
SELECT - col0 + col2 - + col2 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT DISTINCT + col2 + - - 33 AS col1 FROM tab2 AS cor0
----
56
73
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab2 WHERE NOT ( NULL ) NOT IN ( + col1 )
----

query I rowsort
SELECT + ( col0 ) - col1 AS col0 FROM tab1
----
37
44
80

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT ( - 73 ) > col0
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 26 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4551
SELECT ALL + SUM( 94 ) DIV - COUNT( * ) FROM tab1
----
-94

skipif mysql # not compatible
query I rowsort label-4551
SELECT ALL + SUM ( 94 ) / - COUNT ( * ) FROM tab1
----
-94

query III rowsort
SELECT * FROM tab2 WHERE NOT 55 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( - 81 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4554
SELECT col1 DIV 45 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4554
SELECT col1 / 45 FROM tab0
----
0
0
1

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - 47 ) <= + 97
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 95 + 56 FROM tab0
----
151
151
151

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4557
SELECT col2 DIV + CAST( 24 AS SIGNED ) FROM tab1
----
2
2
4

skipif mysql # not compatible
query I rowsort label-4557
SELECT col2 / + CAST ( 24 AS INTEGER ) FROM tab1
----
2
2
4

query I rowsort
SELECT col0 * col1 AS col1 FROM tab2 WHERE NOT NULL = NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = 75
----

query I rowsort
SELECT ( - 34 ) FROM tab0
----
-34
-34
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4561
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) AS col2 FROM tab2 WHERE - col2 IN ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4561
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab2 WHERE - col2 IN ( - col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT - MIN( 68 ) col1 FROM tab1
----
-68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4562
SELECT - MIN ( 68 ) col1 FROM tab1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT MAX( DISTINCT 21 ) FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-4563
SELECT MAX ( DISTINCT 21 ) FROM tab0
----
21

query I rowsort
SELECT 31 FROM tab2 WHERE NOT col2 = + col1
----
31
31
31

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 IN ( col1 )
----

query I rowsort
SELECT DISTINCT - 47 + ( col2 ) FROM tab1
----
12
21
49

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + ( + col2 ) * - col0 ) BETWEEN NULL AND ( 53 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 37 * + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( + col1 ) * ( 68 ) ) NOT BETWEEN NULL AND ( col1 )
----

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 + + 42 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + col1 - col0 )
----

query I rowsort
SELECT ALL + 49 FROM tab2 AS cor0 WHERE NOT ( col0 ) IS NULL
----
49
49
49

query I rowsort
SELECT - 55 * 41 AS col0 FROM tab1 AS cor0
----
-2255
-2255
-2255

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT + 66 + - MAX( + col1 ) * SUM( ALL - 0 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( - col0 ) IS NULL
----
66

skipif mysql # not compatible
query I rowsort label-4575
SELECT + 66 + - MAX ( + col1 ) * SUM ( ALL - 0 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( - col0 ) IS NULL
----
66

query I rowsort
SELECT DISTINCT - col1 * + col2 FROM tab0 AS cor0 WHERE NOT 35 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 88 * col2 FROM tab0
----
4136
8712
880

onlyif mysql # DIV for integer division: 
query I rowsort label-4578
SELECT 46 + + 25 DIV 91 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

skipif mysql # not compatible
query I rowsort label-4578
SELECT 46 + + 25 / 91 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT ALL - 39 + COUNT( col0 ) AS col2 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-4579
SELECT ALL - 39 + COUNT ( col0 ) AS col2 FROM tab0 AS cor0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4580
SELECT ALL ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4580
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col0 + - 85 AS col2 FROM tab2 AS cor0
----
-10
-21
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4582
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE - 89 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4582
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE - 89 IS NULL
----
0

query I rowsort
SELECT + + col1 * col0 + col0 * col0 AS col1 FROM tab2 cor0
----
10650
4462
9024

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4584
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) BETWEEN NULL AND + 74
----

skipif mysql # not compatible
query III rowsort label-4584
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) BETWEEN NULL AND + 74
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + col0 NOT BETWEEN ( NULL ) AND + col1
----

query I rowsort
SELECT ALL - 28 * - 60 FROM tab0
----
1680
1680
1680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + + col2 col2 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4588
SELECT AVG ( ALL + CAST( NULL AS DECIMAL ) ) + - MIN( ALL col2 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4588
SELECT AVG ( ALL + CAST ( NULL AS REAL ) ) + - MIN ( ALL col2 ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT + SUM( + 81 ) + + 7 AS col0 FROM tab2
----
250

skipif mysql # not compatible
query I rowsort label-4589
SELECT + SUM ( + 81 ) + + 7 AS col0 FROM tab2
----
250

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT COUNT( + + 6 ) + - MAX( DISTINCT ( - col0 ) ) FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-4590
SELECT COUNT ( + + 6 ) + - MAX ( DISTINCT ( - col0 ) ) FROM tab0
----
18

query I rowsort
SELECT ( - - 79 ) FROM tab0
----
79
79
79

query I rowsort
SELECT DISTINCT - col0 + - 65 FROM tab0
----
-152
-162
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT COUNT( * ) AS col0 FROM tab0 WHERE NULL BETWEEN - 22 AND 57
----
0

skipif mysql # not compatible
query I rowsort label-4593
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE NULL BETWEEN - 22 AND 57
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) > col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4595
SELECT - COUNT( ALL + - col0 ) DIV + COUNT( 37 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-4595
SELECT - COUNT ( ALL + - col0 ) / + COUNT ( 37 ) FROM tab1
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + ( - 58 ) col1 FROM tab0
----
-1218
-4698
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT COUNT( * ) AS col1 FROM tab0 WHERE ( - col2 ) NOT BETWEEN 22 AND - 66
----
3

skipif mysql # not compatible
query I rowsort label-4597
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE ( - col2 ) NOT BETWEEN 22 AND - 66
----
3

query I rowsort
SELECT - col1 FROM tab2 WHERE ( - col1 ) IS NOT NULL
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-4599
SELECT - ( - 80 ) DIV 81 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4599
SELECT - ( - 80 ) / 81 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4600
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + - - col2 * 0 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4600
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + - - col2 * 0 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col2 + 64 FROM tab2
----
104
122
87

query III rowsort
SELECT * FROM tab0 WHERE NULL = - - col0
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( - + col0 * + col2 )
----

query I rowsort
SELECT - 12 * col0 AS col2 FROM tab0 AS cor0 WHERE NOT col0 IN ( col1 )
----
-1044
-1164
-180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4605
SELECT + col2 AS col1 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4605
SELECT + col2 AS col1 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 72 col2, col2 FROM tab0 AS cor0
----
-72
10
-72
47
-72
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT ALL + + COUNT( ALL col1 ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4607
SELECT ALL + + COUNT ( ALL col1 ) AS col0 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT + MIN( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-4608
SELECT + MIN ( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT ALL + COUNT( * ) + - 29 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-26

skipif mysql # not compatible
query I rowsort label-4609
SELECT ALL + COUNT ( * ) + - 29 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4610
SELECT 23 DIV - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-4610
SELECT 23 / - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-7

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col0 > 83
----
15
81
47

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 34 * + col2 + - 92 IN ( - col1 * + 87 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4613
SELECT DISTINCT col2 * - + col1 * + - col0 DIV + - col0 AS col2 FROM tab0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-4613
SELECT DISTINCT col2 * - + col1 * + - col0 / + - col0 AS col2 FROM tab0
----
-210
-3807
-99

query II rowsort
SELECT DISTINCT col0 * - col0 AS col2, + col0 FROM tab0
----
-225
15
-7569
87
-9409
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4615
SELECT DISTINCT CAST( NULL AS SIGNED ) / - col2 + col2 AS col1 FROM tab2 WHERE NOT NULL >= - + col0 * - - col1
----

skipif mysql # not compatible
query I rowsort label-4615
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - col2 + col2 AS col1 FROM tab2 WHERE NOT NULL >= - + col0 * - - col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( - col0 ) * col2 + 1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT DISTINCT + SUM( - 66 ) AS col0 FROM tab1
----
-198

skipif mysql # not compatible
query I rowsort label-4617
SELECT DISTINCT + SUM ( - 66 ) AS col0 FROM tab1
----
-198

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4618
SELECT ALL * FROM tab1 WHERE NULL <= ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4618
SELECT ALL * FROM tab1 WHERE NULL <= ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE NOT + col1 + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NOT - - col1 BETWEEN NULL AND col1
----
0

skipif mysql # not compatible
query I rowsort label-4620
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NOT - - col1 BETWEEN NULL AND col1
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + 77 ) IN ( + col1 / + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4622
SELECT ALL MAX( ALL + 53 ) FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-4622
SELECT ALL MAX ( ALL + 53 ) FROM tab0 AS cor0
----
53

query II rowsort
SELECT - - 11 * - col0, + col2 FROM tab1 AS cor0
----
-1001
68
-561
96
-935
59

query I rowsort
SELECT ALL + + col2 * 43 FROM tab1 AS cor0
----
2537
2924
4128

query I rowsort
SELECT DISTINCT - col2 * - 18 FROM tab1 AS cor0
----
1062
1224
1728

query I rowsort
SELECT - 58 + + 24 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( - 42 + col0 )
----

query I rowsort
SELECT ALL col2 * - col2 * + col2 FROM tab1
----
-205379
-314432
-884736

query I rowsort
SELECT + 5 * ( col1 ) * col0 FROM tab1 AS cor0
----
2125
21385
3570

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4629
SELECT DISTINCT + - 71 * - col0 * CAST( NULL AS SIGNED ) + 4 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4629
SELECT DISTINCT + - 71 * - col0 * CAST ( NULL AS INTEGER ) + 4 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT + MAX( + - col0 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4630
SELECT + MAX ( + - col0 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT - - MIN( + - 61 ) FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-4631
SELECT - - MIN ( + - 61 ) FROM tab2 AS cor0
----
-61

query I rowsort
SELECT DISTINCT + + col1 / + ( - 70 ) + col1 + + col2 / + col0 AS col1 FROM tab0 cor0 WHERE - col2 BETWEEN - - col1 AND NULL
----

query I rowsort
SELECT DISTINCT - col2 + + 11 FROM tab1 AS cor0
----
-48
-57
-85

query I rowsort
SELECT ALL - ( + - col2 ) * + + col1 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT SUM( DISTINCT + + col0 ) * - MIN( - + col1 ) AS col2 FROM tab2 AS cor0
----
14245

skipif mysql # not compatible
query I rowsort label-4635
SELECT SUM ( DISTINCT + + col0 ) * - MIN ( - + col1 ) AS col2 FROM tab2 AS cor0
----
14245

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT ALL - 8 + + COUNT( * ) FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4636
SELECT ALL - 8 + + COUNT ( * ) FROM tab2 AS cor0
----
-5

query I rowsort
SELECT - col0 * - col0 + - col1 AS col2 FROM tab0 AS cor0
----
144
7548
9408

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT DISTINCT - + COUNT( - ( + col1 ) ) * 87 col0 FROM tab1 AS cor0
----
-261

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4638
SELECT DISTINCT - + COUNT ( - ( + col1 ) ) * 87 col0 FROM tab1 AS cor0
----
-261

query I rowsort
SELECT + - col0 * - col2 * - - col2 FROM tab2 AS cor0
----
102400
24334
252300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 col2 FROM tab0 cor0 WHERE NOT NULL <> col0 + 63
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4641
SELECT DISTINCT - col0 DIV - 21 FROM tab0
----
0
4

skipif mysql # not compatible
query I rowsort label-4641
SELECT DISTINCT - col0 / - 21 FROM tab0
----
0
4

query II rowsort
SELECT + col0 - + 67 AS col0, - 15 AS col0 FROM tab0
----
-52
-15
20
-15
30
-15

query III rowsort
SELECT * FROM tab0 WHERE + + 38 <> + - 21
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4644
SELECT ALL * FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) >= col2
----

skipif mysql # not compatible
query III rowsort label-4644
SELECT ALL * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) >= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT ALL + MAX( ALL 85 ) + + MAX( DISTINCT + - 50 ) FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-4645
SELECT ALL + MAX ( ALL 85 ) + + MAX ( DISTINCT + - 50 ) FROM tab1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT ALL COUNT( * ) * + 48 + 91 FROM tab0
----
235

skipif mysql # not compatible
query I rowsort label-4646
SELECT ALL COUNT ( * ) * + 48 + 91 FROM tab0
----
235

query I rowsort
SELECT - 58 + + + 53 FROM tab2
----
-5
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT DISTINCT COUNT( DISTINCT + + col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4648
SELECT DISTINCT COUNT ( DISTINCT + + col2 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4649
SELECT DISTINCT + col0 DIV + + ( - col0 ) + - 46 AS col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-4649
SELECT DISTINCT + col0 / + + ( - col0 ) + - 46 AS col2 FROM tab1 AS cor0
----
-47

query II rowsort
SELECT DISTINCT 51 + - 12, ( col0 ) * - col1 + 22 AS col1 FROM tab0 cor0
----
39
-1193
39
-1805
39
-75

query I rowsort
SELECT 1 * 36 * 4 * 84 * + - col2 AS col1 FROM tab1
----
-1161216
-713664
-822528

query I rowsort
SELECT ALL - + 28 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= ( ( + col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4654
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND CAST( - col2 AS SIGNED ) * + - col2
----

skipif mysql # not compatible
query III rowsort label-4654
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND CAST ( - col2 AS INTEGER ) * + - col2
----

query I rowsort
SELECT ALL + - 92 AS col2 FROM tab1 AS cor0
----
-92
-92
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4656
SELECT DISTINCT 95 * COUNT( 31 ) FROM tab0 AS cor0 WHERE ( NOT - col0 * - + col2 / - CAST( NULL AS SIGNED ) - - 27 + + 61 IS NOT NULL )
----
285

skipif mysql # not compatible
query I rowsort label-4656
SELECT DISTINCT 95 * COUNT ( 31 ) FROM tab0 AS cor0 WHERE ( NOT - col0 * - + col2 / - CAST ( NULL AS INTEGER ) - - 27 + + 61 IS NOT NULL )
----
285

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4657
SELECT ALL + MIN( - CAST( NULL AS SIGNED ) ) / 22 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4657
SELECT ALL + MIN ( - CAST ( NULL AS INTEGER ) ) / 22 AS col0 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4658
SELECT - col1 DIV - + 39 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4658
SELECT - col1 / - + 39 FROM tab2
----
1
1
1

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT + 8 * + - col1 IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT + COUNT( 24 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4660
SELECT + COUNT ( 24 ) FROM tab1
----
3

query II rowsort
SELECT ALL + 77, + col2 AS col1 FROM tab2
----
77
23
77
40
77
58

query I rowsort
SELECT ALL + + col0 + + col1 + + 31 - + + col1 * + - 14 FROM tab1 AS cor0
----
191
292
827

query I rowsort
SELECT - 72 / - + col2 + + - col2 + + - 89 + - 56 * - col0 FROM tab1 AS cor0 WHERE NOT col2 - + 26 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 84 AS col1, + col1 AS col0 FROM tab2 AS cor0
----
-84
51
-84
67
-84
77

query I rowsort
SELECT ALL + col1 * col0 * + col2 AS col1 FROM tab1
----
25075
290836
68544

query I rowsort
SELECT DISTINCT - - 64 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT ALL SUM( DISTINCT + ( 97 ) ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-4667
SELECT ALL SUM ( DISTINCT + ( 97 ) ) FROM tab0
----
97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 * col0 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4669
SELECT DISTINCT + 99 + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4669
SELECT DISTINCT + 99 + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - ( - col2 ) + + col1 * 16 FROM tab2 AS cor0
----
1130
1272
839

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * + 62 / - 1 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4672
SELECT DISTINCT - + CAST( - 94 AS SIGNED ) + - - 82 - - + COUNT( * ) col2, ( 84 ) DIV 39 FROM tab1 AS cor0
----
179
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4672
SELECT DISTINCT - + CAST ( - 94 AS INTEGER ) + - - 82 - - + COUNT ( * ) col2, ( 84 ) / 39 FROM tab1 AS cor0
----
179
2

query I rowsort
SELECT ALL col2 + - - 50 * - col1 AS col1 FROM tab0 AS cor0
----
-1040
-4003
49

query I rowsort
SELECT + + 21 + 39 + col2 AS col0 FROM tab0 AS cor0
----
107
159
70

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4675
SELECT * FROM tab0 AS cor0 WHERE - CAST( + + col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4675
SELECT * FROM tab0 AS cor0 WHERE - CAST ( + + col1 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT + SUM( - - 45 ) * + COUNT( + + 56 ) AS col2 FROM tab1
----
405

skipif mysql # not compatible
query I rowsort label-4676
SELECT + SUM ( - - 45 ) * + COUNT ( + + 56 ) AS col2 FROM tab1
----
405

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4677
SELECT ALL CAST( NULL AS SIGNED ) col2 FROM tab1 WHERE NOT - 95 IN ( col2 * - 30, ( col1 ) )
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4677
SELECT ALL CAST ( NULL AS INTEGER ) col2 FROM tab1 WHERE NOT - 95 IN ( col2 * - 30, ( col1 ) )
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 FROM tab0 WHERE + 21 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4679
SELECT - col1 / - - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4679
SELECT - col1 / - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4680
SELECT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

query I rowsort
SELECT ALL col0 * - ( - 71 ) AS col0 FROM tab1 AS cor0
----
3621
6035
6461

onlyif mysql # aggregate syntax: 
query II rowsort label-4682
SELECT ALL + COUNT( * ) AS col1, + 11 FROM tab1
----
3
11

skipif mysql # not compatible
query II rowsort label-4682
SELECT ALL + COUNT ( * ) AS col1, + 11 FROM tab1
----
3
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4683
SELECT DISTINCT col0, - col0 * + - 32 - + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + - 2 * + col2 * col1 * - - 70 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-4683
SELECT DISTINCT col0, - col0 * + - 32 - + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + - 2 * + col2 * col1 * - - 70 FROM tab0
----
15
NULL
87
NULL
97
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 35 - - col2, - 40 - - - col1 + - col0 )
----

query I rowsort
SELECT DISTINCT ( - col0 ) * + + col0 AS col1 FROM tab1 AS cor0
----
-2601
-7225
-8281

query I rowsort
SELECT + col2 * + - 0 AS col1 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT + - col0, + col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT - COUNT( * ) * + 78 + + - COUNT( * ) FROM tab2 cor0
----
-237

skipif mysql # not compatible
query I rowsort label-4688
SELECT - COUNT ( * ) * + 78 + + - COUNT ( * ) FROM tab2 cor0
----
-237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4689
SELECT - col1 + - - col2 + - col2 * col1 AS col1 FROM tab1 AS cor0 WHERE NOT 49 / + + col2 IN ( col1 + col0 + + + col0 / - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4689
SELECT - col1 + - - col2 + - col2 * col1 AS col1 FROM tab1 AS cor0 WHERE NOT 49 / + + col2 IN ( col1 + col0 + + + col0 / - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) )
----

query I rowsort
SELECT ALL ( - 70 ) FROM tab0 AS cor0
----
-70
-70
-70

query II rowsort
SELECT DISTINCT - - col1, + col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

query II rowsort
SELECT ALL - col1, col2 AS col2 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT DISTINCT COUNT( * ) * + + 39 FROM tab2 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-4693
SELECT DISTINCT COUNT ( * ) * + + 39 FROM tab2 AS cor0
----
117

onlyif mysql # DIV for integer division: 
query I rowsort label-4694
SELECT DISTINCT + col1 DIV - - col1 + + 60 + + 61 * 10 FROM tab2 AS cor0
----
671

skipif mysql # not compatible
query I rowsort label-4694
SELECT DISTINCT + col1 / - - col1 + + 60 + + 61 * 10 FROM tab2 AS cor0
----
671

query II rowsort
SELECT - col1 AS col2, - col1 AS col2 FROM tab1 AS cor0
----
-14
-14
-47
-47
-5
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 col2 FROM tab2
----
-31
-31
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4698
SELECT ALL CAST( NULL AS SIGNED ) + - + col2 / - + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4698
SELECT ALL CAST ( NULL AS INTEGER ) + - + col2 / - + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT + SUM( DISTINCT + ( - col0 ) ) + + 95 + - SUM( + col0 ) - - 22 FROM tab0 AS cor0
----
-281

skipif mysql # not compatible
query I rowsort label-4699
SELECT + SUM ( DISTINCT + ( - col0 ) ) + + 95 + - SUM ( + col0 ) - - 22 FROM tab0 AS cor0
----
-281

query II rowsort
SELECT ALL - col1 + + - col0, col0 AS col2 FROM tab1 AS cor0
----
-138
91
-65
51
-90
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) IN ( - 72 + + 89 )
----
0

skipif mysql # not compatible
query I rowsort label-4701
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) IN ( - 72 + + 89 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4702
SELECT col0 * - - 23 + + + 43 + - col2 DIV - col0 col0 FROM tab1 AS cor0
----
1217
1998
2136

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4702
SELECT col0 * - - 23 + + + 43 + - col2 / - col0 col0 FROM tab1 AS cor0
----
1217
1998
2136

query I rowsort
SELECT - 77 AS col1 FROM tab1 AS cor0 WHERE - 88 * col2 NOT IN ( - - 96, 69 )
----
-77
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT ALL COUNT( - - 94 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4704
SELECT ALL COUNT ( - - 94 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT ALL + COUNT( ALL - + 25 ) + 76 FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-4705
SELECT ALL + COUNT ( ALL - + 25 ) + 76 FROM tab0 AS cor0
----
79

query II rowsort
SELECT + 51 AS col1, col0 FROM tab1 AS cor0
----
51
51
51
85
51
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4707
SELECT ALL COUNT( * ) + + COUNT( * ) - - 2 + ( + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-4707
SELECT ALL COUNT ( * ) + + COUNT ( * ) - - 2 + ( + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT ALL + + SUM( - + col2 ) - 88 FROM tab2 cor0 WHERE col0 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4708
SELECT ALL + + SUM ( - + col2 ) - 88 FROM tab2 cor0 WHERE col0 < NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4709
SELECT DISTINCT - 93 + SUM( col2 ) DIV 31 FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-4709
SELECT DISTINCT - 93 + SUM ( col2 ) / 31 FROM tab2 AS cor0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT COUNT( DISTINCT - + col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4710
SELECT COUNT ( DISTINCT - + col1 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT - col0 AS col2 FROM tab2 AS cor0 WHERE col2 IN ( - - col2, col1 )
----
-46
-64
-75

query I rowsort
SELECT ALL + - 51 - + 29 FROM tab1 AS cor0
----
-80
-80
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4713
SELECT ALL + COUNT( * ) FROM tab0 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4713
SELECT ALL + COUNT ( * ) FROM tab0 cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT - col0 - - col0 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 99 + + 54 col1 FROM tab1 AS cor0
----
153

query II rowsort
SELECT DISTINCT + 70 - + - 90 * 7 AS col2, 11 FROM tab0 AS cor0
----
700
11

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( 21 + - 36 )
----

query I rowsort
SELECT ALL - ( - col1 ) AS col2 FROM tab2 WHERE NOT + - 82 < - col2 * + - col0 * col0
----

query I rowsort
SELECT + + col2 AS col2 FROM tab2 WHERE - col2 - + + col1 IS NOT NULL
----
23
40
58

query I rowsort
SELECT + 38 * col1 + 66 FROM tab2
----
2004
2612
2992

query I rowsort
SELECT ALL - - 31 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
31
31
31

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 53 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT COUNT( * ) + - + 95 - + 65 FROM tab0
----
-157

skipif mysql # not compatible
query I rowsort label-4723
SELECT COUNT ( * ) + - + 95 - + 65 FROM tab0
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT ALL - 24 * + - COUNT( DISTINCT + 91 ) FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-4724
SELECT ALL - 24 * + - COUNT ( DISTINCT + 91 ) FROM tab2
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4725
SELECT ALL CAST( + 41 AS SIGNED ) AS col0 FROM tab0
----
41
41
41

skipif mysql # not compatible
query I rowsort label-4725
SELECT ALL CAST ( + 41 AS INTEGER ) AS col0 FROM tab0
----
41
41
41

onlyif mysql # DIV for integer division: 
query I rowsort label-4726
SELECT col2 DIV + ( - + 16 ) FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-4726
SELECT col2 / + ( - + 16 ) FROM tab2
----
-1
-2
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT DISTINCT 89 + COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
92

skipif mysql # not compatible
query I rowsort label-4727
SELECT DISTINCT 89 + COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT DISTINCT MAX( ALL + + 35 ) FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-4728
SELECT DISTINCT MAX ( ALL + + 35 ) FROM tab1
----
35

query I rowsort
SELECT - col2 * - 93 AS col0 FROM tab2
----
2139
3720
5394

query I rowsort
SELECT DISTINCT + - 46 FROM tab0 WHERE ( NOT - col2 * - - 76 + + col2 IS NULL )
----
-46

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col0 + + 83 AND 33
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT DISTINCT + COUNT( + 21 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4733
SELECT DISTINCT + COUNT ( + 21 ) AS col1 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 31 AS col0, - col2 col0 FROM tab0 AS cor0
----
-31
-10
-31
-47
-31
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4735
SELECT CAST( NULL AS SIGNED ) + 67 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4735
SELECT CAST ( NULL AS INTEGER ) + 67 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * - col1 + + 73 AS col2 FROM tab1
----
2282
269
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 35 + - col1 col1 FROM tab2
----
-16
-32
-42

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 69 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 62 NOT BETWEEN NULL AND + 19
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) col2 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT ALL - col0 * - - 56 AS col0 FROM tab2
----
-2576
-3584
-4200

onlyif mysql # DIV for integer division: 
query I rowsort label-4742
SELECT col2 DIV - 54 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4742
SELECT col2 / - 54 FROM tab0
----
-1
0
0

query I rowsort
SELECT DISTINCT - col2 + + 22 + 19 + col0 + + 75 AS col0 FROM tab1
----
139
142
71

query I rowsort
SELECT DISTINCT - col1 + + + col2 FROM tab2 AS cor0
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT DISTINCT - MAX( - ( 41 ) ) FROM tab0 cor0
----
41

skipif mysql # not compatible
query I rowsort label-4745
SELECT DISTINCT - MAX ( - ( 41 ) ) FROM tab0 cor0
----
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 79 col0 FROM tab2
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4747
SELECT ALL + 45 + CAST( NULL AS SIGNED ) - COUNT( * ) col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4747
SELECT ALL + 45 + CAST ( NULL AS INTEGER ) - COUNT ( * ) col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL 53 AS col1 FROM tab1 AS cor0 WHERE ( col0 ) IS NOT NULL
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT ALL + SUM( ALL col1 ) col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4749
SELECT ALL + SUM ( ALL col1 ) col1 FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT DISTINCT SUM( DISTINCT + - 46 ) + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-4750
SELECT DISTINCT SUM ( DISTINCT + - 46 ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-49

query I rowsort
SELECT - 82 * - col1 FROM tab2 AS cor0 WHERE - 93 IS NULL
----

query I rowsort
SELECT DISTINCT - 52 + + + col1 - - col2 * + col2 * + col0 AS col1 FROM tab2 AS cor0
----
102425
24333
252315

query I rowsort
SELECT ALL - col2 - - 89 FROM tab1 AS cor0
----
-7
21
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4754
SELECT - 62 AS col2, CAST( NULL AS SIGNED ) col2 FROM tab1
----
-62
NULL
-62
NULL
-62
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4754
SELECT - 62 AS col2, CAST ( NULL AS INTEGER ) col2 FROM tab1
----
-62
NULL
-62
NULL
-62
NULL

query I rowsort
SELECT col1 - - - col2 AS col1 FROM tab2
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT DISTINCT ( - 12 ) - + MAX( ALL col0 ) + + 72 FROM tab0
----
-37

skipif mysql # not compatible
query I rowsort label-4756
SELECT DISTINCT ( - 12 ) - + MAX ( ALL col0 ) + + 72 FROM tab0
----
-37

query I rowsort
SELECT col0 * - + 14 AS col1 FROM tab1
----
-1190
-1274
-714

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 ) BETWEEN col0 AND ( - col2 - + 43 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + 92, col0 + + - 73 FROM tab0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4760
SELECT DISTINCT + SUM( ALL + - col1 ) * - COUNT( * ) + - CAST( - + COUNT( * ) AS SIGNED ) FROM tab0 cor0
----
312

skipif mysql # not compatible
query I rowsort label-4760
SELECT DISTINCT + SUM ( ALL + - col1 ) * - COUNT ( * ) + - CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab0 cor0
----
312

query I rowsort
SELECT + + 74 - - - col2 FROM tab0 AS cor0 WHERE NOT 70 NOT BETWEEN + + 64 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4762
SELECT COUNT( * ), 26 AS col2 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
3
26

skipif mysql # not compatible
query II rowsort label-4762
SELECT COUNT ( * ), 26 AS col2 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
3
26

query II rowsort
SELECT - - 73 AS col1, 42 FROM tab2 AS cor0
----
73
42
73
42
73
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT DISTINCT - + COUNT( * ) - + ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
0

skipif mysql # not compatible
query I rowsort label-4764
SELECT DISTINCT - + COUNT ( * ) - + ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
0

query I rowsort
SELECT DISTINCT - col2 + col1 AS col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND 56
----

query I rowsort
SELECT - col2 * - - col1 + + col2 AS col2 FROM tab1 AS cor0
----
-1248
-236
-3128

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + + 47 IS NOT NULL
----

query I rowsort
SELECT + 18 AS col2 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT ALL col2 + - col0 + + 73 AS col1 FROM tab0 AS cor0
----
-4
105
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4770
SELECT - CAST( NULL AS SIGNED ) * + 82 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4770
SELECT - CAST ( NULL AS INTEGER ) * + 82 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT DISTINCT - + MAX( + + 12 ) FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-4771
SELECT DISTINCT - + MAX ( + + 12 ) FROM tab2 AS cor0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4772
SELECT + CAST( NULL AS SIGNED ) * - - col1 + - + 71 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4772
SELECT + CAST ( NULL AS INTEGER ) * - - col1 + - + 71 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT + MAX( - col1 ) * COUNT( * ) AS col0 FROM tab2 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-4773
SELECT + MAX ( - col1 ) * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-153

onlyif mysql # DIV for integer division: 
query I rowsort label-4774
SELECT 30 DIV 21 * 12 FROM tab1 AS cor0
----
12
12
12

skipif mysql # not compatible
query I rowsort label-4774
SELECT 30 / 21 * 12 FROM tab1 AS cor0
----
12
12
12

onlyif mysql # DIV for integer division: 
query I rowsort label-4775
SELECT col1 DIV + 56 col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4775
SELECT col1 / + 56 col1 FROM tab2
----
0
1
1

query II rowsort
SELECT DISTINCT + 13, + ( + 96 ) + + 0 AS col1 FROM tab2
----
13
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4777
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - ( + - AVG ( 10 ) ) FROM tab1 WHERE NOT + col1 NOT BETWEEN ( col1 ) AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4777
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - ( + - AVG ( 10 ) ) FROM tab1 WHERE NOT + col1 NOT BETWEEN ( col1 ) AND col1
----
NULL

query I rowsort
SELECT col2 / - col1 AS col2 FROM tab0 WHERE - - col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col1 * - 16 FROM tab1
----
-224
-752
-80

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT - 30 - + + 65 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT DISTINCT COUNT( col2 ) * 92 * 3 FROM tab0
----
828

skipif mysql # not compatible
query I rowsort label-4781
SELECT DISTINCT COUNT ( col2 ) * 92 * 3 FROM tab0
----
828

query I rowsort
SELECT + col2 * - + 48 + 77 FROM tab0 AS cor0
----
-2179
-403
-4675

query I rowsort
SELECT - - 44 + - 75 AS col1 FROM tab1 AS cor0
----
-31
-31
-31

query II rowsort
SELECT DISTINCT - col2, + col1 AS col0 FROM tab2 AS cor0 WHERE NOT col0 * 45 / col1 * - + col0 + + - 26 + - col1 * - - col0 BETWEEN + col1 AND NULL
----
-23
51
-40
77
-58
67

query I rowsort
SELECT DISTINCT 22 + + 52 FROM tab2 cor0
----
74

query I rowsort
SELECT ALL + + col0 + + + col2 AS col1 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT DISTINCT 66 * col0 FROM tab0
----
5742
6402
990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4788
SELECT + ( + CAST( + 56 AS SIGNED ) ) - + ( - + 2 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

skipif mysql # not compatible
query I rowsort label-4788
SELECT + ( + CAST ( + 56 AS INTEGER ) ) - + ( - + 2 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE NOT NULL = - - 90
----

query I rowsort
SELECT DISTINCT + col2 + - col0 * 75 AS col2 FROM tab0 AS cor0
----
-1078
-6515
-7176

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT ALL + COUNT( + col1 ) FROM tab2 AS cor0 WHERE + col0 + + - 48 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4791
SELECT ALL + COUNT ( + col1 ) FROM tab2 AS cor0 WHERE + col0 + + - 48 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + col2 * col2 * + - col2 col2 FROM tab2 AS cor0
----
-12144
-195054
-63960

query I rowsort
SELECT ALL col1 + - ( 46 ) AS col1 FROM tab2 AS cor0
----
21
31
5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 3 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 19 - + 61 AS col2 FROM tab0 AS cor0
----
-42
-42
-42

query I rowsort
SELECT ALL - ( - col1 ) + - + col2 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT col1 + - 93 AS col1 FROM tab2 AS cor0
----
-16
-26
-42

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 8 <> + + col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN col1 * - ( - 54 ) AND - 11
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4800
SELECT + 4 DIV + 99 AS col1, col1 AS col2 FROM tab2
----
0
51
0
67
0
77

skipif mysql # not compatible
query II rowsort label-4800
SELECT + 4 / + 99 AS col1, col1 AS col2 FROM tab2
----
0
51
0
67
0
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT 30 * - - AVG ( ALL + - col2 ) + MAX( ALL + col2 ) col0 FROM tab0 cor0 WHERE NOT col1 + - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4801
SELECT 30 * - - AVG ( ALL + - col2 ) + MAX ( ALL + col2 ) col0 FROM tab0 cor0 WHERE NOT col1 + - col2 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4802
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col1 = - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-4802
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col1 = - CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT ALL + + col0 AS col0 FROM tab2 WHERE NULL IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT DISTINCT 58 + COUNT( * ) + - 31 * - COUNT( * ) FROM tab2
----
154

skipif mysql # not compatible
query I rowsort label-4804
SELECT DISTINCT 58 + COUNT ( * ) + - 31 * - COUNT ( * ) FROM tab2
----
154

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * + 50 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4806
SELECT ALL + - COUNT( * ) AS col2, + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-4806
SELECT ALL + - COUNT ( * ) AS col2, + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4807
SELECT ALL + col2 + - 60 + + 82 + + + col2 DIV - - ( col0 ) AS col0 FROM tab2 AS cor0
----
45
62
80

skipif mysql # not compatible
query I rowsort label-4807
SELECT ALL + col2 + - 60 + + 82 + + + col2 / - - ( col0 ) AS col0 FROM tab2 AS cor0
----
45
62
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT - + MIN( 35 ) AS col1 FROM tab0 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-4808
SELECT - + MIN ( 35 ) AS col1 FROM tab0 AS cor0
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4809
SELECT ALL + CAST( - 13 AS SIGNED ) AS col0 FROM tab0 cor0
----
-13
-13
-13

skipif mysql # not compatible
query I rowsort label-4809
SELECT ALL + CAST ( - 13 AS INTEGER ) AS col0 FROM tab0 cor0
----
-13
-13
-13

query II rowsort
SELECT DISTINCT - col0 * - - col1 + - 23 AS col0, + 55 FROM tab0 AS cor0
----
-120
55
-1238
55
-1850
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT ALL - 1 * + - COUNT( * ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4811
SELECT ALL - 1 * + - COUNT ( * ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - ( 49 ) * + col1 * ( + - 68 ) + + col0 AS col1 FROM tab2 AS cor0
----
169978
223319
256628

query I rowsort
SELECT DISTINCT - col1 + + col0 * col1 * - - 92 * col1 FROM tab2 AS cor0 WHERE NOT ( - col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4814
SELECT + col2 + - CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4814
SELECT + col2 + - CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + + + 9 FROM tab2
----
32
49
67

query I rowsort
SELECT + 9 + 52 FROM tab1
----
61
61
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4817
SELECT DISTINCT + col0 * + + CAST( ( + col0 ) AS SIGNED ) FROM tab0
----
225
7569
9409

skipif mysql # not compatible
query I rowsort label-4817
SELECT DISTINCT + col0 * + + CAST ( ( + col0 ) AS INTEGER ) FROM tab0
----
225
7569
9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4818
SELECT ALL CAST( - col1 AS SIGNED ) + - + ( - 6 ) + + col0 col2 FROM tab2
----
-7
1
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4818
SELECT ALL CAST ( - col1 AS INTEGER ) + - + ( - 6 ) + + col0 col2 FROM tab2
----
-7
1
14

query I rowsort
SELECT ALL - ( - col0 ) * + - ( - col1 ) - ( + + col2 ) AS col2 FROM tab0
----
-2
1168
1817

query III rowsort
SELECT * FROM tab0 WHERE + col1 / + col1 + + col0 NOT BETWEEN 38 AND ( NULL )
----
15
81
47

query II rowsort
SELECT - col1 + + col1, - 33 * col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT SUM( DISTINCT + ( + col0 ) ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-4822
SELECT SUM ( DISTINCT + ( + col0 ) ) FROM tab2
----
185

query I rowsort
SELECT + col2 * 44 AS col2 FROM tab1
----
2596
2992
4224

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4824
SELECT DISTINCT col2 DIV - + CAST( - 11 AS SIGNED ) + + col0 * - col0 col1 FROM tab1
----
-2593
-7220
-8275

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4824
SELECT DISTINCT col2 / - + CAST ( - 11 AS INTEGER ) + + col0 * - col0 col1 FROM tab1
----
-2593
-7220
-8275

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT ALL + + 18 + - MIN( - - col0 ) + MAX( ALL col2 ) AS col2 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-4825
SELECT ALL + + 18 + - MIN ( - - col0 ) + MAX ( ALL col2 ) AS col2 FROM tab1 AS cor0
----
63

query II rowsort
SELECT + 27 - col0 AS col1, - 44 AS col2 FROM tab2 AS cor0
----
-19
-44
-37
-44
-48
-44

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4827
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + col0 = - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-4827
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + col0 = - CAST ( NULL AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT ALL - - COUNT( * ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4828
SELECT ALL - - COUNT ( * ) AS col1 FROM tab1 cor0
----
3

query II rowsort
SELECT + ( + + ( + col2 ) ) AS col0, - col1 FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 / - 28 NOT IN ( - col2, - col1, + col1, col2 * col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT MAX( - - col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-4831
SELECT MAX ( - - col0 ) FROM tab1
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4832
SELECT ( - ( CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4832
SELECT ( - ( CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( - - col1 ) ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col0, col1 FROM tab2
----
46
51
64
77
75
67

query II rowsort
SELECT DISTINCT col1, + 71 + col2 + col0 * + col2 * col1 + + - ( + 47 ) FROM tab1
----
14
68664
47
290928
5
25158

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT COUNT( * ) AS col2 FROM tab0 WHERE NOT - - 58 * + ( - col2 ) - - + col0 + - - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4836
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE NOT - - 58 * + ( - col2 ) - - + col0 + - - col1 IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4837
SELECT + CAST( - COUNT( * ) AS SIGNED ) AS col1, COUNT( * ) FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-4837
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) AS col1, COUNT ( * ) FROM tab0 AS cor0
----
-3
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4838
SELECT ALL - 65, 61 DIV - 66 * + COUNT( ALL + col0 ) col2 FROM tab2 AS cor0
----
-65
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4838
SELECT ALL - 65, 61 / - 66 * + COUNT ( ALL + col0 ) col2 FROM tab2 AS cor0
----
-65
0

query II rowsort
SELECT ALL + 0, col0 FROM tab1 AS cor0
----
0
51
0
85
0
91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 61 * - - 40 <= - ( - col0 ) * + ( - - col0 )
----
46
51
23

query I rowsort
SELECT DISTINCT + 49 / + - 67 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT DISTINCT 39 * - COUNT( * ) FROM tab0
----
-117

skipif mysql # not compatible
query I rowsort label-4842
SELECT DISTINCT 39 * - COUNT ( * ) FROM tab0
----
-117

query I rowsort
SELECT DISTINCT - - 76 + - col0 * - col2 AS col2 FROM tab0 AS cor0
----
781
946
9679

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col1 - - 64 + + + col2 col1 FROM tab0 AS cor0 WHERE ( NULL ) >= - 5 / col2
----

query I rowsort
SELECT ALL col0 / + 79 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col2 * + - 87 FROM tab1 AS cor0
----
-5133
-5916
-8352

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT ALL + COUNT( * ) FROM tab0 cor0 WHERE NULL = - col1 * - col2 - + - col0
----
0

skipif mysql # not compatible
query I rowsort label-4847
SELECT ALL + COUNT ( * ) FROM tab0 cor0 WHERE NULL = - col1 * - col2 - + - col0
----
0

query I rowsort
SELECT ALL col0 * 1 * - col1 FROM tab1
----
-425
-4277
-714

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 - - col1 - 37 - + 86 >= + + 81 * + col0 AND NOT NULL IS NULL
----

query I rowsort
SELECT ALL - 86 + col0 AS col0 FROM tab2
----
-11
-22
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-4851
SELECT DISTINCT - 46, + SUM( DISTINCT 86 ) AS col1 FROM tab2
----
-46
86

skipif mysql # not compatible
query II rowsort label-4851
SELECT DISTINCT - 46, + SUM ( DISTINCT 86 ) AS col1 FROM tab2
----
-46
86

query I rowsort
SELECT 9 * + col2 + + + col1 + - col0 * col2 FROM tab0 AS cor0
----
-201
-759
-8711

query I rowsort
SELECT - 58 * 74 FROM tab0
----
-4292
-4292
-4292

onlyif mysql # DIV for integer division: 
query I rowsort label-4854
SELECT + + col2 DIV + 29 AS col1 FROM tab1 AS cor0
----
2
2
3

skipif mysql # not compatible
query I rowsort label-4854
SELECT + + col2 / + 29 AS col1 FROM tab1 AS cor0
----
2
2
3

query I rowsort
SELECT - + col2 * + 67 FROM tab2 AS cor0
----
-1541
-2680
-3886

query I rowsort
SELECT DISTINCT ( + + 36 ) FROM tab2 AS cor0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4857
SELECT - ( CAST( - col2 AS SIGNED ) ) AS col2 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-4857
SELECT - ( CAST ( - col2 AS INTEGER ) ) AS col2 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4858
SELECT 32 + MAX( ALL + - 20 ) FROM tab1, tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-4858
SELECT 32 + MAX ( ALL + - 20 ) FROM tab1, tab0 AS cor0
----
12

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE col1 IS NULL
----

query II rowsort
SELECT + 99, + ( + col2 ) + - 57 AS col0 FROM tab1 AS cor0
----
99
11
99
2
99
39

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4861
SELECT DISTINCT col1, CAST( NULL AS DECIMAL ) * 12 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-4861
SELECT DISTINCT col1, CAST ( NULL AS REAL ) * 12 FROM tab1
----
14
NULL
47
NULL
5
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4862
SELECT * FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) + - col2 < + CAST( - 18 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4862
SELECT * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) + - col2 < + CAST ( - 18 AS INTEGER )
----

query I rowsort
SELECT col2 + - 53 FROM tab1 AS cor0
----
15
43
6

onlyif mysql # DIV for integer division: 
query II rowsort label-4864
SELECT ALL col0, col2 DIV col0 AS col2 FROM tab0 AS cor0
----
15
3
87
0
97
1

skipif mysql # not compatible
query II rowsort label-4864
SELECT ALL col0, col2 / col0 AS col2 FROM tab0 AS cor0
----
15
3
87
0
97
1

onlyif mysql # DIV for integer division: 
query II rowsort label-4865
SELECT col2 DIV + col0, col1 FROM tab2
----
0
51
0
67
0
77

skipif mysql # not compatible
query II rowsort label-4865
SELECT col2 / + col0, col1 FROM tab2
----
0
51
0
67
0
77

query I rowsort
SELECT col0 * + ( - - 31 ) AS col2 FROM tab1
----
1581
2635
2821

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT MAX( - - 87 ) * 59 AS col0 FROM tab1
----
5133

skipif mysql # not compatible
query I rowsort label-4867
SELECT MAX ( - - 87 ) * 59 AS col0 FROM tab1
----
5133

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT DISTINCT + COUNT( * ) + - - SUM( DISTINCT + col0 ) FROM tab0
----
202

skipif mysql # not compatible
query I rowsort label-4868
SELECT DISTINCT + COUNT ( * ) + - - SUM ( DISTINCT + col0 ) FROM tab0
----
202

query III rowsort
SELECT * FROM tab1 WHERE 14 < + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + - 73 <> - - ( - col0 ) AND col0 IS NULL
----

query I rowsort
SELECT + 59 + + - col0 + + + 4 FROM tab1 AS cor0
----
-22
-28
12

query I rowsort
SELECT + 76 * col2 + + col2 AS col2 FROM tab0 AS cor0
----
3619
7623
770

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT ALL - MIN( ALL + 66 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-66

skipif mysql # not compatible
query I rowsort label-4873
SELECT ALL - MIN ( ALL + 66 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT - COUNT( ALL + 27 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4874
SELECT - COUNT ( ALL + 27 ) FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4875
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4875
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4876
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1, - ( + + ( ( - SUM( DISTINCT 9 ) ) ) ) FROM tab0
----
NULL
9

skipif mysql # not compatible
query II rowsort label-4876
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, - ( + + ( ( - SUM ( DISTINCT 9 ) ) ) ) FROM tab0
----
NULL
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT COUNT( ALL col0 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4877
SELECT COUNT ( ALL col0 ) col0 FROM tab0
----
3

query I rowsort
SELECT - col1 * + ( col2 ) + + 10 AS col0 FROM tab0 AS cor0
----
-200
-3797
-89

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT 51 * COUNT( * ) FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-4880
SELECT 51 * COUNT ( * ) FROM tab1 AS cor0
----
153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4881
SELECT - COUNT( - CAST( NULL AS SIGNED ) ) * + + 66 * - - COUNT( DISTINCT - 38 ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4881
SELECT - COUNT ( - CAST ( NULL AS INTEGER ) ) * + + 66 * - - COUNT ( DISTINCT - 38 ) FROM tab1 cor0
----
0

query II rowsort
SELECT - + 67, col2 FROM tab0 cor0
----
-67
10
-67
47
-67
99

query I rowsort
SELECT DISTINCT - 78 - - col2 + - + 2 * col0 * 92 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-15659
-16754
-9366

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT DISTINCT + SUM( ALL - - col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-4884
SELECT DISTINCT + SUM ( ALL - - col2 ) FROM tab0 AS cor0
----
156

query I rowsort
SELECT - col1 * 30 AS col2 FROM tab1 AS cor0
----
-1410
-150
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT ALL - + SUM( col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-4886
SELECT ALL - + SUM ( col1 ) FROM tab0 AS cor0
----
-103

query I rowsort
SELECT ALL + col2 * + - 24 FROM tab1
----
-1416
-1632
-2304

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT ALL + COUNT( * ) AS col2 FROM tab2 WHERE + 74 > - col2 + - col0
----
3

skipif mysql # not compatible
query I rowsort label-4888
SELECT ALL + COUNT ( * ) AS col2 FROM tab2 WHERE + 74 > - col2 + - col0
----
3

query I rowsort
SELECT + 70 * - + col1 FROM tab1 cor0
----
-3290
-350
-980

onlyif mysql # aggregate syntax: 
query II rowsort label-4890
SELECT DISTINCT MIN( - col2 ) AS col1, SUM( ALL 26 ) AS col2 FROM tab0 cor0 WHERE col2 IS NOT NULL
----
-99
78

skipif mysql # not compatible
query II rowsort label-4890
SELECT DISTINCT MIN ( - col2 ) AS col1, SUM ( ALL 26 ) AS col2 FROM tab0 cor0 WHERE col2 IS NOT NULL
----
-99
78

query II rowsort
SELECT + - col2 + + col0, 60 AS col0 FROM tab2 AS cor0
----
17
60
23
60
24
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4892
SELECT ALL + + col2 + - + CAST( NULL AS SIGNED ) + 28 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-4892
SELECT ALL + + col2 + - + CAST ( NULL AS INTEGER ) + 28 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 29 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

onlyif mysql # DIV for integer division: 
query I rowsort label-4894
SELECT 41 DIV + col0 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4894
SELECT 41 / + col0 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 + + col1 * col1 * col0 FROM tab1 AS cor0
----
10092
201087
2184

query I rowsort
SELECT ALL 20 + - col1 FROM tab1 AS cor0
----
-27
15
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4897
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) BETWEEN NULL AND - + 65 + ( + + col2 )
----

skipif mysql # not compatible
query III rowsort label-4897
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) BETWEEN NULL AND - + 65 + ( + + col2 )
----

query I rowsort
SELECT DISTINCT - - 82 + - + col2 FROM tab1 AS cor0
----
-14
14
23

query I rowsort
SELECT - col1 * 28 - - + ( + - 93 ) FROM tab2 AS cor0
----
-1521
-1969
-2249

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4900
SELECT ALL - col2 + + CAST( NULL AS SIGNED ) * + - 43 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4900
SELECT ALL - col2 + + CAST ( NULL AS INTEGER ) * + - 43 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - + col1, + ( - + 59 ) AS col2 FROM tab1 AS cor0
----
-14
-59
-47
-59
-5
-59

query I rowsort
SELECT ALL - - 95 FROM tab1 WHERE NOT NULL IS NOT NULL
----
95
95
95

query II rowsort
SELECT ALL - col2 AS col1, + col2 AS col2 FROM tab0
----
-10
10
-47
47
-99
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4904
SELECT + COUNT( ALL + + CAST( - col1 AS SIGNED ) ) AS col2 FROM tab1 WHERE ( NOT + col0 BETWEEN ( NULL ) AND ( NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-4904
SELECT + COUNT ( ALL + + CAST ( - col1 AS INTEGER ) ) AS col2 FROM tab1 WHERE ( NOT + col0 BETWEEN ( NULL ) AND ( NULL ) )
----
0

query I rowsort
SELECT ALL + 17 * + col2 AS col0 FROM tab0
----
1683
170
799

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4906
SELECT + ( + - COUNT( * ) ) + CAST( NULL AS SIGNED ) - + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4906
SELECT + ( + - COUNT ( * ) ) + CAST ( NULL AS INTEGER ) - + COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4907
SELECT - SUM( + col0 ) AS col1, + COUNT( * ) FROM tab2 AS cor0
----
-185
3

skipif mysql # not compatible
query II rowsort label-4907
SELECT - SUM ( + col0 ) AS col1, + COUNT ( * ) FROM tab2 AS cor0
----
-185
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT 48 * + + COUNT( * ) * - 35 FROM tab0 AS cor0
----
-5040

skipif mysql # not compatible
query I rowsort label-4908
SELECT 48 * + + COUNT ( * ) * - 35 FROM tab0 AS cor0
----
-5040

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 33 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 LEFT OUTER JOIN tab0 AS cor1 ON + 64 * + 12 IS NULL
----
18 values hashing to 18b19f89ce73392082a69acc4aed78f1

query I rowsort
SELECT DISTINCT - col2 * + - col1 * col1 FROM tab0
----
308367
4410
99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 16 + col1 IN ( + 12 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4913
SELECT SUM( ALL col2 ) AS col2, - MIN( col1 ) DIV + MIN( + 63 ) AS col2 FROM tab0
----
156
0

skipif mysql # not compatible
query II rowsort label-4913
SELECT SUM ( ALL col2 ) AS col2, - MIN ( col1 ) / + MIN ( + 63 ) AS col2 FROM tab0
----
156
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT ALL - MIN( + col1 ) * - + COUNT( * ) FROM tab2
----
153

skipif mysql # not compatible
query I rowsort label-4914
SELECT ALL - MIN ( + col1 ) * - + COUNT ( * ) FROM tab2
----
153

query II rowsort
SELECT - col0 * - col0 - - - 82, + col2 FROM tab2 cor0
----
2034
23
4014
40
5543
58

onlyif mysql # DIV for integer division: 
query II rowsort label-4916
SELECT + + col0 DIV + 80, + col1 AS col0 FROM tab1 AS cor0
----
0
14
1
47
1
5

skipif mysql # not compatible
query II rowsort label-4916
SELECT + + col0 / + 80, + col1 AS col0 FROM tab1 AS cor0
----
0
14
1
47
1
5

query I rowsort
SELECT - col0 * - ( - + col2 ) AS col1 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT - 70 FROM tab1 AS cor0 WHERE + col2 + - col1 * + col0 IS NOT NULL
----
-70

query I rowsort
SELECT DISTINCT - ( + 62 ) AS col0 FROM tab0
----
-62

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4920
SELECT DISTINCT + MAX( - 79 ) * + + 17 * + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4920
SELECT DISTINCT + MAX ( - 79 ) * + + 17 * + CAST ( NULL AS REAL ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, col2 AS col0 FROM tab0
----
15
47
87
10
97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT MAX( - + col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-4922
SELECT MAX ( - + col2 ) FROM tab2
----
-23

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + + 68 / - col2 - 95 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT COUNT( ALL - col1 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4924
SELECT COUNT ( ALL - col1 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT ALL COUNT( * ) * 48 FROM tab1
----
144

skipif mysql # not compatible
query I rowsort label-4925
SELECT ALL COUNT ( * ) * 48 FROM tab1
----
144

onlyif mysql # DIV for integer division: 
query I rowsort label-4926
SELECT ALL + + col1 DIV + col2 + - col2 FROM tab2 cor0
----
-21
-39
-57

skipif mysql # not compatible
query I rowsort label-4926
SELECT ALL + + col1 / + col2 + - col2 FROM tab2 cor0
----
-21
-39
-57

query I rowsort
SELECT ALL 66 + + - 49 AS col0 FROM tab1 AS cor0
----
17
17
17

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 45 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 98 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND ( - - col2 ) + + col2
----

query I rowsort
SELECT - col1 * - + col2 * + col0 * - 93 FROM tab2 AS cor0
----
-18332160
-27104850
-5018094

query I rowsort
SELECT 55 AS col2 FROM tab0 WHERE ( NOT ( NULL ) IS NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4933
SELECT + COUNT( * ) * - COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4933
SELECT + COUNT ( * ) * - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT + col0 * + col0 - + 1 * + col1 * 80 IS NULL
----
51
85
91

query I rowsort
SELECT - 58 + - + col1 FROM tab0
----
-139
-59
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 47 ) * - 99 col2 FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT DISTINCT - col1 + 52 AS col0 FROM tab0
----
-29
31
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4939
SELECT ALL + + MAX( ALL col2 ), + COUNT( * ) col1 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) * - + 82 < + col2
----
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4939
SELECT ALL + + MAX ( ALL col2 ), + COUNT ( * ) col1 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) * - + 82 < + col2
----
NULL
0

query I rowsort
SELECT ALL - 97 + + - col2 AS col1 FROM tab2 AS cor0
----
-120
-137
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT COUNT( * ) + + 27 AS col2 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-4941
SELECT COUNT ( * ) + + 27 AS col2 FROM tab2 AS cor0
----
30

query I rowsort
SELECT ALL + + col2 FROM tab0 AS cor0 WHERE NOT + col0 IN ( - ( + - col1 ), col1 )
----
10
47
99

onlyif mysql # DIV for integer division: 
query II rowsort label-4943
SELECT DISTINCT col2, + col1 DIV col2 + - - col0 * - - col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
23
2118
40
4097
58
5626

skipif mysql # not compatible
query II rowsort label-4943
SELECT DISTINCT col2, + col1 / col2 + - - col0 * - - col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
23
2118
40
4097
58
5626

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 8 * - + col1 + + 8 + + - col0 col0 FROM tab2 AS cor0
----
-446
-603
-672

query II rowsort
SELECT DISTINCT col0 - + + col0 AS col2, 96 * - ( col2 ) * col0 + - 13 + + col2 FROM tab0 AS cor0
----
0
-67646
0
-83523
0
-921802

query I rowsort
SELECT ALL - col1 FROM tab1 cor0 WHERE NULL > NULL
----

query I rowsort
SELECT ALL + 19 + - col1 AS col2 FROM tab0 AS cor0
----
-2
-62
18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4948
SELECT ALL CAST( NULL AS DECIMAL ) / + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4948
SELECT ALL CAST ( NULL AS REAL ) / + col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 42 * col0 * 81 * - 97 FROM tab2
----
15179724
21119616
24749550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4950
SELECT ALL - col0 - + + CAST( NULL AS SIGNED ) / - + 53 * - 76 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4950
SELECT ALL - col0 - + + CAST ( NULL AS INTEGER ) / - + 53 * - 76 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 90 * + col2 FROM tab0
----
-4230
-8910
-900

onlyif mysql # DIV for integer division: 
query I rowsort label-4952
SELECT DISTINCT 30 DIV - - 7 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-4952
SELECT DISTINCT 30 / - - 7 FROM tab1
----
4

query I rowsort
SELECT + col0 - - - col0 AS col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT ALL + MIN( - - 69 ) FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-4954
SELECT ALL + MIN ( - - 69 ) FROM tab2
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4955
SELECT DISTINCT - + ( + CAST( col0 AS SIGNED ) ) FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-4955
SELECT DISTINCT - + ( + CAST ( col0 AS INTEGER ) ) FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4956
SELECT CAST( - col0 AS SIGNED ) col1 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4956
SELECT CAST ( - col0 AS INTEGER ) col1 FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 12 * - ( + + 77 ) = - 59
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col0 * + 99 FROM tab2
----
-4554
-6336
-7425

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4959
SELECT DISTINCT col2 FROM tab1 WHERE - col0 * 50 * - CAST( + + col1 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4959
SELECT DISTINCT col2 FROM tab1 WHERE - col0 * 50 * - CAST ( + + col1 AS REAL ) IS NULL
----

query II rowsort
SELECT ALL - 12, 85 AS col0 FROM tab0
----
-12
85
-12
85
-12
85

query I rowsort
SELECT ALL + col1 - col0 + - 77 * 50 + - 46 * col1 * - 89 / + col0 / + - col0 + - - 35 FROM tab0 AS cor0 WHERE 38 * + - col1 * - + col2 NOT BETWEEN - 98 + - - col0 * - col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4962
SELECT ALL + - ( + SUM( + CAST( + col1 AS SIGNED ) ) ) AS col2, + 71 FROM tab0 AS cor0
----
-103
71

skipif mysql # not compatible
query II rowsort label-4962
SELECT ALL + - ( + SUM ( + CAST ( + col1 AS INTEGER ) ) ) AS col2, + 71 FROM tab0 AS cor0
----
-103
71

onlyif mysql # aggregate syntax: 
query II rowsort label-4963
SELECT DISTINCT - + 57 AS col2, - MAX( ALL + 46 ) FROM tab1 AS cor0
----
-57
-46

skipif mysql # not compatible
query II rowsort label-4963
SELECT DISTINCT - + 57 AS col2, - MAX ( ALL + 46 ) FROM tab1 AS cor0
----
-57
-46

query II rowsort
SELECT - 64 AS col2, - col0 AS col1 FROM tab2 AS cor0
----
-64
-46
-64
-64
-64
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-4965
SELECT ALL SUM( - - col0 ) AS col0, - COUNT( * ) col2 FROM tab0
----
199
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4965
SELECT ALL SUM ( - - col0 ) AS col0, - COUNT ( * ) col2 FROM tab0
----
199
-3

query I rowsort
SELECT + + col0 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 97 * - + 45 col0 FROM tab0
----
-4365
-4365
-4365

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - + ( + - 65 ) col0 FROM tab2
----
1495
2600
3770

query I rowsort
SELECT DISTINCT + 14 + + col1 + + + col1 + + + col0 * + - col0 FROM tab1
----
-2559
-7201
-8173

query I rowsort
SELECT + col0 + + ( col0 ) AS col1 FROM tab0 cor0
----
174
194
30

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE 92 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4972
SELECT ALL - + col0 + 89 + + col1 / + + CAST( NULL AS SIGNED ) FROM tab2 cor0 WHERE NULL = ( NULL )
----

skipif mysql # not compatible
query I rowsort label-4972
SELECT ALL - + col0 + 89 + + col1 / + + CAST ( NULL AS INTEGER ) FROM tab2 cor0 WHERE NULL = ( NULL )
----

query I rowsort
SELECT - col2 FROM tab1 WHERE 77 IS NULL
----

query I rowsort
SELECT + + 71 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4975
SELECT ALL - col2 + + + CAST( + col1 AS SIGNED ) AS col2 FROM tab2
----
28
37
9

skipif mysql # not compatible
query I rowsort label-4975
SELECT ALL - col2 + + + CAST ( + col1 AS INTEGER ) AS col2 FROM tab2
----
28
37
9

query I rowsort
SELECT ALL - 56 * + - col0 + col1 * + col1 * - 22 AS col0 FROM tab1 AS cor0
----
-1456
-43502
4210

query II rowsort
SELECT - + col0 - - col1 * + col1 AS col2, + col0 FROM tab2 AS cor0
----
2555
46
4414
75
5865
64

query I rowsort
SELECT ALL - col0 + - 74 FROM tab0 AS cor0
----
-161
-171
-89

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( ( NOT NULL IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( col2 ) FROM tab2 AS cor0 WHERE + 49 >= - col2 + + col1 * - col1
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT ALL - 91 - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-4981
SELECT ALL - 91 - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-94

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 * - 99 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 * col2 - + 30 FROM tab0
----
2179
70
9771

onlyif mysql # aggregate syntax: 
query I rowsort label-4984
SELECT + ( + + 81 ) * + COUNT( * ) FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-4984
SELECT + ( + + 81 ) * + COUNT ( * ) FROM tab0
----
243

query I rowsort
SELECT ALL + 67 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
67
67
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4986
SELECT + col0 * + + CAST( col0 AS SIGNED ) AS col0 FROM tab2
----
2116
4096
5625

skipif mysql # not compatible
query I rowsort label-4986
SELECT + col0 * + + CAST ( col0 AS INTEGER ) AS col0 FROM tab2
----
2116
4096
5625

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col2 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 * + 5 AS col2 FROM tab2
----
230
320
375

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 cor0 WHERE col1 + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT + COUNT( * ) col0 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-4990
SELECT + COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT ALL MIN( ALL - + 0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4991
SELECT ALL MIN ( ALL - + 0 ) FROM tab0
----
0

query II rowsort
SELECT + + col0, + col0 * - col2 AS col2 FROM tab2 AS cor0
----
46
-1058
64
-2560
75
-4350

query I rowsort
SELECT DISTINCT - 46 + + col0 AS col0 FROM tab0 cor0
----
-31
41
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT ALL + MAX( DISTINCT - - col0 ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-4994
SELECT ALL + MAX ( DISTINCT - - col0 ) AS col2 FROM tab1 AS cor0
----
91

query I rowsort
SELECT - 45 + - 46 AS col0 FROM tab0
----
-91
-91
-91

query I rowsort
SELECT ALL - ( - col1 ) + - col0 FROM tab2 WHERE - - ( + ( - - col2 ) ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 AS col1, - 90 * + 53 col1 FROM tab2
----
23
-4770
40
-4770
58
-4770

query I rowsort
SELECT + col0 + - 58 + - col0 * - - 15 FROM tab1
----
-1248
-1332
-772

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT - COUNT( * ) * + 92 FROM tab0
----
-276

skipif mysql # not compatible
query I rowsort label-4999
SELECT - COUNT ( * ) * + 92 FROM tab0
----
-276

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE - col0 = NULL AND NOT col0 IS NOT NULL
----

query I rowsort
SELECT col0 * + ( 50 ) AS col0 FROM tab0
----
4350
4850
750

query I rowsort
SELECT ALL ( - + col0 ) AS col0 FROM tab1
----
-51
-85
-91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( col0 ) NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 58 col1 FROM tab2 AS cor0
----
58
58
58

query II rowsort
SELECT DISTINCT + 84 * + col0 + col2 * 81 AS col2, - col1 FROM tab1 cor0
----
11919
-5
12060
-14
13152
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 93 ) col1 FROM tab0 AS cor0
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5007
SELECT DISTINCT + MAX( 10 ) FROM tab1 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-5007
SELECT DISTINCT + MAX ( 10 ) FROM tab1 AS cor0
----
10

query I rowsort
SELECT ALL - 82 + - col0 FROM tab2 AS cor0
----
-128
-146
-157

query II rowsort
SELECT DISTINCT ( - col1 ) AS col1, col1 AS col1 FROM tab0 cor0
----
-1
1
-21
21
-81
81

onlyif mysql # aggregate syntax: 
query II rowsort label-5010
SELECT DISTINCT - COUNT( * ) + + + 36 AS col1, COUNT( * ) FROM tab1 AS cor0
----
33
3

skipif mysql # not compatible
query II rowsort label-5010
SELECT DISTINCT - COUNT ( * ) + + + 36 AS col1, COUNT ( * ) FROM tab1 AS cor0
----
33
3

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 AS cor0 WHERE NOT col0 + - ( + col0 ) * + col2 IS NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5012
SELECT ALL + CAST( + - 80 AS SIGNED ) FROM tab1
----
-80
-80
-80

skipif mysql # not compatible
query I rowsort label-5012
SELECT ALL + CAST ( + - 80 AS INTEGER ) FROM tab1
----
-80
-80
-80

query I rowsort
SELECT + col2 * + 35 / col2 - + col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT - + 35 * + + col2 FROM tab0 AS cor0
----
-1645
-3465
-350

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT DISTINCT 97 + MAX( ( 49 ) ) FROM tab2
----
146

skipif mysql # not compatible
query I rowsort label-5015
SELECT DISTINCT 97 + MAX ( ( 49 ) ) FROM tab2
----
146

onlyif mysql # DIV for integer division: 
query I rowsort label-5016
SELECT DISTINCT - 68 * + 86 - 68 DIV 36 FROM tab1
----
-5849

skipif mysql # not compatible
query I rowsort label-5016
SELECT DISTINCT - 68 * + 86 - 68 / 36 FROM tab1
----
-5849

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) = col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 * + col1 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT ALL MAX( col1 ) * + MIN( ALL col0 * + 15 ) FROM tab1 WHERE 27 * col0 IS NOT NULL
----
35955

skipif mysql # not compatible
query I rowsort label-5020
SELECT ALL MAX ( col1 ) * + MIN ( ALL col0 * + 15 ) FROM tab1 WHERE 27 * col0 IS NOT NULL
----
35955

query I rowsort
SELECT col1 - - 33 AS col2 FROM tab1
----
38
47
80

query I rowsort
SELECT col2 - - 0 AS col2 FROM tab2
----
23
40
58

query I rowsort
SELECT ALL - 27 + col1 AS col1 FROM tab2
----
24
40
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab0 WHERE NOT 59 * 11 IS NOT NULL
----

query I rowsort
SELECT ALL col2 * + 95 AS col1 FROM tab1
----
5605
6460
9120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 98 * col1 col0 FROM tab0
----
2058
7938
98

query I rowsort
SELECT DISTINCT + 2 AS col2 FROM tab2 WHERE NOT col1 + + col2 IS NULL
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT + MIN( + 12 ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-5028
SELECT + MIN ( + 12 ) FROM tab2
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5029
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) + 29 AS col2 FROM tab1 WHERE NOT NULL BETWEEN col1 AND - ( col1 )
----

skipif mysql # not compatible
query I rowsort label-5029
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) + 29 AS col2 FROM tab1 WHERE NOT NULL BETWEEN col1 AND - ( col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 27 NOT BETWEEN ( + 50 + + 45 * - col2 ) AND ( + col1 * col1 + + col1 )
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT + COUNT( * ) FROM tab1 WHERE NOT + 27 * + 8 + - col0 * + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5032
SELECT + COUNT ( * ) FROM tab1 WHERE NOT + 27 * + 8 + - col0 * + col1 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5033
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NOT NULL NOT IN ( - 35 + + col0 )
----

skipif mysql # not compatible
query I rowsort label-5033
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT NULL NOT IN ( - 35 + + col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 47 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 72 ) col2 FROM tab0
----
-72
-72
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + ( - col1 * + col2 ) + - 17 col1 FROM tab0
----
178912
2083
9784

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5037
SELECT DISTINCT * FROM tab1 WHERE ( CAST( + col1 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5037
SELECT DISTINCT * FROM tab1 WHERE ( CAST ( + col1 AS INTEGER ) ) IS NULL
----

query I rowsort
SELECT DISTINCT 10 * - ( col1 ) FROM tab1
----
-140
-470
-50

query I rowsort
SELECT ALL 65 + + col2 FROM tab1 WHERE ( NULL ) IS NULL
----
124
133
161

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT NULL > + col0 + + col1
----

query I rowsort
SELECT DISTINCT + col0 * + 38 + col2 FROM tab0
----
3316
3785
617

onlyif mysql # DIV for integer division: 
query I rowsort label-5042
SELECT col2 + col1 DIV - col0 FROM tab2 AS cor0
----
22
39
58

skipif mysql # not compatible
query I rowsort label-5042
SELECT col2 + col1 / - col0 FROM tab2 AS cor0
----
22
39
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5043
SELECT ALL 43 + MIN( ALL col2 ) DIV CAST( 78 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-5043
SELECT ALL 43 + MIN ( ALL col2 ) / CAST ( 78 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
43

query I rowsort
SELECT 77 + col0 AS col0 FROM tab0 AS cor0
----
164
174
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT COUNT( * ) + AVG ( 41 + col1 ) FROM tab2 AS cor0 WHERE ( NULL ) IN ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5045
SELECT COUNT ( * ) + AVG ( 41 + col1 ) FROM tab2 AS cor0 WHERE ( NULL ) IN ( col1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5046
SELECT ( - ( - col2 ) ) + + CAST( col2 + col2 AS SIGNED ) DIV 49 AS col1 FROM tab0 AS cor0
----
10
103
48

skipif mysql # not compatible
query I rowsort label-5046
SELECT ( - ( - col2 ) ) + + CAST ( col2 + col2 AS INTEGER ) / 49 AS col1 FROM tab0 AS cor0
----
10
103
48

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5048
SELECT DISTINCT col1 * + CAST( - col1 AS SIGNED ) AS col2 FROM tab0 WHERE NOT ( + col1 ) NOT IN ( + 57 )
----

skipif mysql # not compatible
query I rowsort label-5048
SELECT DISTINCT col1 * + CAST ( - col1 AS INTEGER ) AS col2 FROM tab0 WHERE NOT ( + col1 ) NOT IN ( + 57 )
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 WHERE - 98 IS NULL
----

query I rowsort
SELECT col1 - - 24 AS col1 FROM tab0
----
105
25
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT COUNT( * ) * COUNT( * ) col0 FROM ( tab2 cor0 CROSS JOIN tab0 )
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5051
SELECT COUNT ( * ) * COUNT ( * ) col0 FROM ( tab2 cor0 CROSS JOIN tab0 )
----
81

query I rowsort
SELECT + - 60 - - col2 AS col2 FROM tab0 AS cor0
----
-13
-50
39

query I rowsort
SELECT DISTINCT - col1 * col1 + - col2 * + 85 FROM tab0 AS cor0
----
-10556
-1291
-8416

query I rowsort
SELECT - col0 AS col1 FROM tab0 cor0 WHERE NOT + 11 IN ( - col0 )
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE 7 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-5055
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE 7 < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT DISTINCT - COUNT( * ) * 11 col2 FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5056
SELECT DISTINCT - COUNT ( * ) * 11 col2 FROM tab0 AS cor0
----
-33

query I rowsort
SELECT 39 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
39
39
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5058
SELECT + 26 DIV + COUNT( * ) FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-5058
SELECT + 26 / + COUNT ( * ) FROM tab2 AS cor0
----
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 32 col0 FROM tab0 AS cor0
----
-32
-32
-32

query I rowsort
SELECT DISTINCT + 10 + col2 AS col2 FROM tab1 AS cor0 WHERE ( 7 ) BETWEEN 10 AND ( NULL )
----

query I rowsort
SELECT DISTINCT - + 12 FROM tab0 cor0
----
-12

query I rowsort
SELECT DISTINCT + 43 * col1 AS col1 FROM tab2 AS cor0
----
2193
2881
3311

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT NULL < + col0 * + 83
----

query I rowsort
SELECT ALL + col2 * + 59 AS col1 FROM tab1
----
3481
4012
5664

query I rowsort
SELECT ALL + 86 * + + col0 AS col0 FROM tab2
----
3956
5504
6450

query I rowsort
SELECT DISTINCT 34 * - col2 AS col2 FROM tab2
----
-1360
-1972
-782

query I rowsort
SELECT 85 * - + col1 FROM tab2 AS cor0
----
-4335
-5695
-6545

query I rowsort
SELECT ALL + + 25 * 38 AS col1 FROM tab2 AS cor0
----
950
950
950

query I rowsort
SELECT + ( - + col0 ) * + col2 AS col2 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT + 72 * + col1 + 48 * - col1 FROM tab0 AS cor0
----
1944
24
504

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5071
SELECT ALL - - COUNT( * ) DIV - COUNT( * ) - COUNT( * ) FROM tab1 cor0
----
-4

skipif mysql # not compatible
query I rowsort label-5071
SELECT ALL - - COUNT ( * ) / - COUNT ( * ) - COUNT ( * ) FROM tab1 cor0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT DISTINCT COUNT( * ) + COUNT( * ) * + 58 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
177

skipif mysql # not compatible
query I rowsort label-5072
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) * + 58 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT ALL COUNT( DISTINCT - col0 ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5073
SELECT ALL COUNT ( DISTINCT - col0 ) col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5074
SELECT + COUNT( * ) * SUM( + 91 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
7371

skipif mysql # not compatible
query I rowsort label-5074
SELECT + COUNT ( * ) * SUM ( + 91 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
7371

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5075
SELECT - CAST( NULL AS SIGNED ) / - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5075
SELECT - CAST ( NULL AS INTEGER ) / - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col0 AS col2, col0 + + col2 + - 13 FROM tab1
----
51
134
85
131
91
146

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT DISTINCT COUNT( * ) * 35 FROM tab0 WHERE + - col2 IS NOT NULL
----
105

skipif mysql # not compatible
query I rowsort label-5077
SELECT DISTINCT COUNT ( * ) * 35 FROM tab0 WHERE + - col2 IS NOT NULL
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5078
SELECT * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5078
SELECT * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( 65 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 / - - col1 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 32 + - - 23 col2 FROM tab1 AS cor0
----
-9
-9
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5082
SELECT ALL + - CAST( NULL AS SIGNED ) * - col1 * - + CAST( col1 AS SIGNED ) + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5082
SELECT ALL + - CAST ( NULL AS INTEGER ) * - col1 * - + CAST ( col1 AS INTEGER ) + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5083
SELECT DISTINCT - CAST( col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-5083
SELECT DISTINCT - CAST ( col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5084
SELECT + - 48 DIV - + COUNT( * ) + COUNT( * ) + 80 col1 FROM tab2 AS cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5084
SELECT + - 48 / - + COUNT ( * ) + COUNT ( * ) + 80 col1 FROM tab2 AS cor0
----
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col2 + + - col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT DISTINCT - + SUM( + col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-5086
SELECT DISTINCT - + SUM ( + col1 ) FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT ALL + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= ( NULL ) OR NOT ( col0 ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-5087
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= ( NULL ) OR NOT ( col0 ) = NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5088
SELECT ALL - col2 AS col1, - 78 * col1 DIV col1 col0 FROM tab2 AS cor0
----
-23
-78
-40
-78
-58
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5088
SELECT ALL - col2 AS col1, - 78 * col1 / col1 col0 FROM tab2 AS cor0
----
-23
-78
-40
-78
-58
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5089
SELECT ALL + 56 / col2 FROM tab0 WHERE NOT ( NULL ) >= ( ( + + CAST( col0 AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-5089
SELECT ALL + 56 / col2 FROM tab0 WHERE NOT ( NULL ) >= ( ( + + CAST ( col0 AS INTEGER ) ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5090
SELECT MIN( ALL - col2 ) DIV - + COUNT( ALL col0 ) + SUM( - 75 ) FROM tab0
----
-192

skipif mysql # not compatible
query I rowsort label-5090
SELECT MIN ( ALL - col2 ) / - + COUNT ( ALL col0 ) + SUM ( - 75 ) FROM tab0
----
-192

query I rowsort
SELECT 42 * + 8 + - col1 FROM tab0 WHERE col0 NOT BETWEEN + col2 AND NULL
----
255
335

onlyif mysql # aggregate syntax: 
query I rowsort label-5092
SELECT ALL 39 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-5092
SELECT ALL 39 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5093
SELECT - - COUNT( * ) DIV - + 33 AS col0 FROM tab2 AS cor0 WHERE 56 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5093
SELECT - - COUNT ( * ) / - + 33 AS col0 FROM tab2 AS cor0 WHERE 56 IS NULL
----
0

query I rowsort
SELECT col2 + + col2 + 80 FROM tab0 AS cor0
----
100
174
278

onlyif mysql # DIV for integer division: 
query I rowsort label-5095
SELECT col1 DIV - - col2 * - col1 * - col0 + - 25 FROM tab1 AS cor0
----
-25
-25
-25

skipif mysql # not compatible
query I rowsort label-5095
SELECT col1 / - - col2 * - col1 * - col0 + - 25 FROM tab1 AS cor0
----
-25
-25
-25

query I rowsort
SELECT + + 77 * - 33 + - col2 AS col1 FROM tab2 WHERE - col0 < + 17
----
-2564
-2581
-2599

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5097
SELECT DISTINCT - ( 26 ) / - col2 * + + 69 / - CAST( NULL AS SIGNED ) + col2 - col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5097
SELECT DISTINCT - ( 26 ) / - col2 * + + 69 / - CAST ( NULL AS INTEGER ) + col2 - col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5098
SELECT - CAST( NULL AS DECIMAL ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5098
SELECT - CAST ( NULL AS REAL ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 77 * - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5100
SELECT ALL + + CAST( NULL AS SIGNED ), col0 * - col0 AS col0 FROM tab2 cor0
----
NULL
-2116
NULL
-4096
NULL
-5625

skipif mysql # not compatible
query II rowsort label-5100
SELECT ALL + + CAST ( NULL AS INTEGER ), col0 * - col0 AS col0 FROM tab2 cor0
----
NULL
-2116
NULL
-4096
NULL
-5625

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5101
SELECT ALL COUNT( * ) AS col1, CAST( NULL AS SIGNED ) + MAX( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-5101
SELECT ALL COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) + MAX ( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
3
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + 58 / - - ( - 2 ) + 60 / - ( col2 + - col0 ) + + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5103
SELECT - MIN( ALL - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5103
SELECT - MIN ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5104
SELECT 88 * - 36 + + col0 + + col1 + - - 20 DIV + 93 FROM tab1 AS cor0
----
-3030
-3078
-3103

skipif mysql # not compatible
query I rowsort label-5104
SELECT 88 * - 36 + + col0 + + col1 + - - 20 / + 93 FROM tab1 AS cor0
----
-3030
-3078
-3103

query II rowsort
SELECT 11, + 48 AS col1 FROM tab0 AS cor0
----
11
48
11
48
11
48

onlyif mysql # aggregate syntax: 
query II rowsort label-5106
SELECT ALL SUM( DISTINCT - 99 ) AS col2, - 86 AS col1 FROM tab1
----
-99
-86

skipif mysql # not compatible
query II rowsort label-5106
SELECT ALL SUM ( DISTINCT - 99 ) AS col2, - 86 AS col1 FROM tab1
----
-99
-86

query II rowsort
SELECT col1, - col2 + 21 FROM tab2
----
51
-2
67
-37
77
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5108
SELECT CAST( NULL AS SIGNED ) / - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5108
SELECT CAST ( NULL AS INTEGER ) / - col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + + ( + col1 ) + - col2 ) < col1 - - col0
----

query I rowsort
SELECT ALL col1 * - + 50 * 62 * - col1 FROM tab1
----
607600
6847900
77500

query I rowsort
SELECT - 32 * + 3 * + - col2 AS col2 FROM tab0 AS cor0
----
4512
9504
960

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 40 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5113
SELECT MIN( - CAST( NULL AS SIGNED ) ) * - - 23 col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5113
SELECT MIN ( - CAST ( NULL AS INTEGER ) ) * - - 23 col1 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL col1 AS col0, col2 AS col0 FROM tab0 AS cor0
----
1
99
21
10
81
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * + col1 <> + + col0 + + col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 + col0 + + col0 < - 92 + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5117
SELECT 99 * + COUNT( * ) AS col1 FROM tab1
----
297

skipif mysql # not compatible
query I rowsort label-5117
SELECT 99 * + COUNT ( * ) AS col1 FROM tab1
----
297

query I rowsort
SELECT ALL + + col0 + + + col0 + - + ( + col1 ) AS col1 FROM tab1 AS cor0
----
135
165
88

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col2
----

query I rowsort
SELECT + col2 * + col0 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
4896
5015
6188

query I rowsort
SELECT DISTINCT - col2 + + 94 FROM tab1 AS cor0
----
-2
26
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5122
SELECT ALL - col0 col1 FROM tab0 AS cor0 WHERE + col1 - + CAST( NULL AS SIGNED ) + col2 - - col0 - - 30 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5122
SELECT ALL - col0 col1 FROM tab0 AS cor0 WHERE + col1 - + CAST ( NULL AS INTEGER ) + col2 - - col0 - - 30 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 82 + + col1 col1 FROM tab0 AS cor0
----
103
163
83

query I rowsort
SELECT + ( - + col1 ) * - col1 AS col2 FROM tab0 AS cor0
----
1
441
6561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5125
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE - col0 <= CAST( CAST( - ( - - ( col0 ) ) AS SIGNED ) AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-5125
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE - col0 <= CAST ( CAST ( - ( - - ( col0 ) ) AS INTEGER ) AS INTEGER )
----
3

query I rowsort
SELECT DISTINCT + 71 + - - 9 + + 60 AS col1 FROM tab0 AS cor0
----
140

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 40 / + - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5128
SELECT 82 - CAST( + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-5128
SELECT 82 - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5129
SELECT ALL - MAX( DISTINCT col1 ) * + - CAST( 62 AS SIGNED ) AS col2 FROM tab0
----
5022

skipif mysql # not compatible
query I rowsort label-5129
SELECT ALL - MAX ( DISTINCT col1 ) * + - CAST ( 62 AS INTEGER ) AS col2 FROM tab0
----
5022

query I rowsort
SELECT col0 + - ( + + ( - + col1 ) ) AS col0 FROM tab2
----
141
142
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5131
SELECT DISTINCT CAST( NULL AS SIGNED ) * COUNT( * ) / - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5131
SELECT DISTINCT CAST ( NULL AS INTEGER ) * COUNT ( * ) / - COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT ALL ( + 59 ) * + - 87 * - 79 * - + 22 - 57 FROM tab0
----
-8921211
-8921211
-8921211

onlyif mysql # DIV for integer division: 
query II rowsort label-5133
SELECT DISTINCT - ( - 72 ) * col0 DIV - col0 AS col0, + col1 FROM tab2
----
-72
51
-72
67
-72
77

skipif mysql # not compatible
query II rowsort label-5133
SELECT DISTINCT - ( - 72 ) * col0 / - col0 AS col0, + col1 FROM tab2
----
-72
51
-72
67
-72
77

onlyif mysql # DIV for integer division: 
query I rowsort label-5134
SELECT ALL + col0 DIV - 54 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5134
SELECT ALL + col0 / - 54 FROM tab1
----
-1
-1
0

query III rowsort
SELECT * FROM tab2 WHERE 64 * + + ( - col2 ) IS NULL
----

query I rowsort
SELECT 98 * - col2 * col1 * - 13 + + ( col2 ) FROM tab0
----
126225
267550
4850165

query I rowsort
SELECT + 16 + - col2 FROM tab0
----
-31
-83
6

query I rowsort
SELECT + - col2 + + + col2 AS col1 FROM tab1 WHERE NULL IS NULL
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 65 * + - 4 col2 FROM tab2 AS cor0
----
260
260
260

query I rowsort
SELECT DISTINCT + col2 * 64 * + 94 + - col2 AS col1 FROM tab1 AS cor0
----
354885
409020
577440

query I rowsort
SELECT + - col1 * - 25 FROM tab0 cor0
----
2025
25
525

onlyif mysql # aggregate syntax: 
query I rowsort label-5142
SELECT ALL + 13 + - + SUM( - col2 ) AS col1 FROM tab1 AS cor0 WHERE - col1 + col0 NOT BETWEEN ( NULL ) AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5142
SELECT ALL + 13 + - + SUM ( - col2 ) AS col1 FROM tab1 AS cor0 WHERE - col1 + col0 NOT BETWEEN ( NULL ) AND ( NULL )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 6 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5144
SELECT ( - CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5144
SELECT ( - CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5145
SELECT - 74 * COUNT( + - CAST( + - 94 AS SIGNED ) ) FROM tab1 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-5145
SELECT - 74 * COUNT ( + - CAST ( + - 94 AS INTEGER ) ) FROM tab1 AS cor0
----
-222

onlyif mysql # DIV for integer division: 
query I rowsort label-5146
SELECT col2 DIV + - ( - + 77 ) AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5146
SELECT col2 / + - ( - + 77 ) AS col2 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT + + 50 AS col1 FROM tab2 cor0
----
50

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 60 / - col0 + + + col1 - - col2 * + - col2 + col0 NOT BETWEEN NULL AND col2 - 53
----

query II rowsort
SELECT col1, - col1 * col0 AS col1 FROM tab1
----
14
-714
47
-4277
5
-425

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT COUNT( - 92 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5151
SELECT COUNT ( - 92 ) col0 FROM tab0
----
3

query II rowsort
SELECT DISTINCT - col2 AS col2, col2 AS col0 FROM tab1
----
-59
59
-68
68
-96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT + ( - - COUNT( * ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5153
SELECT + ( - - COUNT ( * ) ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT - COUNT( ( + col1 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5154
SELECT - COUNT ( ( + col1 ) ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT - 29 + + COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
-29

skipif mysql # not compatible
query I rowsort label-5155
SELECT - 29 + + COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
-29

query I rowsort
SELECT ALL + + col2 / col1 FROM tab1 WHERE - col2 = 3
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT DISTINCT SUM( 88 ) * - COUNT( DISTINCT - + col2 ) FROM tab1 AS cor0
----
-792

skipif mysql # not compatible
query I rowsort label-5157
SELECT DISTINCT SUM ( 88 ) * - COUNT ( DISTINCT - + col2 ) FROM tab1 AS cor0
----
-792

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT - MIN( DISTINCT + - 96 ) AS col0 FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-5158
SELECT - MIN ( DISTINCT + - 96 ) AS col0 FROM tab2 AS cor0
----
96

query III rowsort
SELECT * FROM tab0 WHERE - col1 * col2 * - + 86 + - 60 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 + - 3 AS col1 FROM tab0 AS cor0
----
-102
-13
-50

query I rowsort
SELECT ALL + 43 AS col1 FROM tab1 AS cor0 WHERE 25 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5162
SELECT - col2 + + + col1 DIV - col2 * col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-5162
SELECT - col2 + + + col1 / - col2 * col2 FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <> - - col2 / col0 * + col1 * col2 + + ( - + 77 ) + + col2
----

query I rowsort
SELECT col0 + 74 FROM tab1 cor0
----
125
159
165

query I rowsort
SELECT DISTINCT col1 - col0 * - 56 AS col1 FROM tab0 AS cor0
----
4893
5433
921

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - ( 23 ) ) <> col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 93 * - - col1 * - - col2 AS col1 FROM tab2
----
109089
286440
361398

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT + + COUNT( * ) FROM tab0 WHERE + ( col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5168
SELECT + + COUNT ( * ) FROM tab0 WHERE + ( col2 ) IS NULL
----
0

query I rowsort
SELECT DISTINCT col1 * + col0 - - col2 + - + 0 FROM tab0
----
1262
1837
196

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 63 IS NOT NULL
----

query II rowsort
SELECT ALL 95 + - col1 AS col0, + ( col1 ) FROM tab2 cor0
----
18
77
28
67
44
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * col1 col1, + 6 AS col0 FROM tab1 AS cor0
----
196
6
2209
6
25
6

query I rowsort
SELECT ALL ( 0 ) AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5174
SELECT col1, - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-5174
SELECT col1, - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 <> - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT ALL - + MAX( col0 ) * 9 FROM tab2 AS cor0
----
-675

skipif mysql # not compatible
query I rowsort label-5176
SELECT ALL - + MAX ( col0 ) * 9 FROM tab2 AS cor0
----
-675

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5177
SELECT DISTINCT - + col2, - CAST( + col1 AS SIGNED ) DIV - col1 AS col0 FROM tab1 AS cor0
----
-59
1
-68
1
-96
1

skipif mysql # not compatible
query II rowsort label-5177
SELECT DISTINCT - + col2, - CAST ( + col1 AS INTEGER ) / - col1 AS col0 FROM tab1 AS cor0
----
-59
1
-68
1
-96
1

query I rowsort
SELECT + col0 * 97 AS col1 FROM tab1
----
4947
8245
8827

onlyif mysql # DIV for integer division: 
query II rowsort label-5179
SELECT + col0 DIV - 79 AS col0, ( - col2 ) AS col0 FROM tab1
----
-1
-59
-1
-68
0
-96

skipif mysql # not compatible
query II rowsort label-5179
SELECT + col0 / - 79 AS col0, ( - col2 ) AS col0 FROM tab1
----
-1
-59
-1
-68
0
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT ALL SUM( - ( - col0 ) ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-5180
SELECT ALL SUM ( - ( - col0 ) ) FROM tab0
----
199

onlyif mysql # DIV for integer division: 
query II rowsort label-5181
SELECT + 97 DIV col0 col0, 13 FROM tab1
----
1
13
1
13
1
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5181
SELECT + 97 / col0 col0, 13 FROM tab1
----
1
13
1
13
1
13

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT ALL + MIN( ALL - 58 ) + - + COUNT( * ) FROM tab2 cor0
----
-61

skipif mysql # not compatible
query I rowsort label-5183
SELECT ALL + MIN ( ALL - 58 ) + - + COUNT ( * ) FROM tab2 cor0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT ALL + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5184
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0 + + col1 AS col2, 12 * + 81 col2 FROM tab0 cor0
----
-66
972
-96
972
66
972

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5186
SELECT CAST( NULL AS SIGNED ) + - col1 + - col0 + + 44 / - col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5186
SELECT CAST ( NULL AS INTEGER ) + - col1 + - col0 + + 44 / - col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * 91 + - col2 AS col0 FROM tab1 AS cor0
----
5310
6120
8640

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT DISTINCT 50 + ( COUNT( * ) ) col0 FROM tab1, tab2 AS cor0
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5188
SELECT DISTINCT 50 + ( COUNT ( * ) ) col0 FROM tab1, tab2 AS cor0
----
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + 21 col0 FROM tab1
----
26
35
68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 91 + - col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT ALL 18 + - - COUNT( * ) FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-5191
SELECT ALL 18 + - - COUNT ( * ) FROM tab0 AS cor0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5192
SELECT DISTINCT + col0 / CAST( NULL AS SIGNED ) - - + 60 col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5192
SELECT DISTINCT + col0 / CAST ( NULL AS INTEGER ) - - + 60 col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col1 - - col2 + - - col2 FROM tab2 AS cor0
----
157
183
97

query I rowsort
SELECT + col2 - - - 82 AS col2 FROM tab0 AS cor0
----
-35
-72
17

query II rowsort
SELECT - col1 - + - col1 + - col0, + 38 AS col1 FROM tab1 AS cor0
----
-51
38
-85
38
-91
38

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE + col2 <> NULL
----

query II rowsort
SELECT + col2 + - col2 * - ( + ( - col2 ) ), ( + - col1 ) AS col0 FROM tab2 cor0
----
-1560
-77
-3306
-67
-506
-51

query I rowsort
SELECT col0 * col2 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
705
870
9603

query I rowsort
SELECT DISTINCT col0 * - 25 - col0 FROM tab2
----
-1196
-1664
-1950

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + ( + + col0 ) col2 FROM tab2
----
104
133
69

query I rowsort
SELECT - 42 + - col1 AS col2 FROM tab1
----
-47
-56
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5202
SELECT 95 DIV - COUNT( + col0 ) AS col2 FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-5202
SELECT 95 / - COUNT ( + col0 ) AS col2 FROM tab0
----
-31

query I rowsort
SELECT col0 * + - col1 * + 87 FROM tab1
----
-36975
-372099
-62118

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col2 ) * + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT + MAX( - - ( 45 ) ) AS col1 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-5205
SELECT + MAX ( - - ( 45 ) ) AS col1 FROM tab2
----
45

query I rowsort
SELECT + 72 * col0 AS col0 FROM tab2 cor0
----
3312
4608
5400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5207
SELECT CAST( - COUNT( * ) AS SIGNED ) AS col1, - ( COUNT( * ) ) + - CAST( COUNT( * ) AS SIGNED ) * + - COUNT( * ) FROM tab1 AS cor0
----
-3
6

skipif mysql # not compatible
query II rowsort label-5207
SELECT CAST ( - COUNT ( * ) AS INTEGER ) AS col1, - ( COUNT ( * ) ) + - CAST ( COUNT ( * ) AS INTEGER ) * + - COUNT ( * ) FROM tab1 AS cor0
----
-3
6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * col1 >= - 51
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - 63 AS col2 FROM tab1 cor0
----
-63

query II rowsort
SELECT ALL - col2 * - col1 AS col1, + col0 AS col1 FROM tab1
----
1344
51
295
85
3196
91

query I rowsort
SELECT ALL col1 + col1 FROM tab0 WHERE NOT ( + - 84 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5212
SELECT - CAST( + 53 AS SIGNED ) AS col2 FROM tab2
----
-53
-53
-53

skipif mysql # not compatible
query I rowsort label-5212
SELECT - CAST ( + 53 AS INTEGER ) AS col2 FROM tab2
----
-53
-53
-53

onlyif mysql # DIV for integer division: 
query II rowsort label-5213
SELECT DISTINCT col1 DIV col1, col2 FROM tab1 AS cor0
----
1
59
1
68
1
96

skipif mysql # not compatible
query II rowsort label-5213
SELECT DISTINCT col1 / col1, col2 FROM tab1 AS cor0
----
1
59
1
68
1
96

query I rowsort
SELECT 35 - - - 26 FROM tab1 AS cor0 WHERE NOT NULL = + 6
----

query I rowsort
SELECT DISTINCT + - col0 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
-51
-85
-91

query I rowsort
SELECT - 14 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-14
-14
-14

query I rowsort
SELECT + - 49 + + + col2 + col2 - - 47 + + col0 * + 22 AS col2 FROM tab0 AS cor0
----
1932
2330
422

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 8 ) NOT IN ( + 93, col0, - + ( + + col2 ) + 55 * - 5 + + - col1 )
----

query II rowsort
SELECT DISTINCT - col0 AS col1, + col2 * - + col0 + + col2 FROM tab0
----
-15
-658
-87
-860
-97
-9504

query I rowsort
SELECT col1 * - + 73 AS col1 FROM tab1
----
-1022
-3431
-365

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 * + col2 * + - col0 + + + col0 col1, - 10 FROM tab1
----
249747
-10
426360
-10
563199
-10

query II rowsort
SELECT 90 AS col2, - col2 AS col2 FROM tab2
----
90
-23
90
-40
90
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5223
SELECT ALL + col1 + - - CAST( - 93 AS SIGNED ) col1 FROM tab0 AS cor0
----
-12
-72
-92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5223
SELECT ALL + col1 + - - CAST ( - 93 AS INTEGER ) col1 FROM tab0 AS cor0
----
-12
-72
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 58 + - col0 + + col1 - col1 * ( col1 ) * col0 col0 FROM tab2 AS cor0
----
-119583
-336625
-379385

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - - ( + + 70 ) col0 FROM tab0 AS cor0
----
151
71
91

query II rowsort
SELECT - ( - 8 ) * col2 - + col1, - col2 + - col0 AS col1 FROM tab0 cor0
----
295
-62
59
-97
791
-196

query I rowsort
SELECT DISTINCT - 93 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT COUNT( DISTINCT - + col1 ) + + COUNT( * ) col1 FROM tab2
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5228
SELECT COUNT ( DISTINCT - + col1 ) + + COUNT ( * ) col1 FROM tab2
----
6

query I rowsort
SELECT + - 97 AS col1 FROM tab2 AS cor0
----
-97
-97
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5230
SELECT ALL CAST( - + col2 AS SIGNED ) + + 87 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-12
40
77

skipif mysql # not compatible
query I rowsort label-5230
SELECT ALL CAST ( - + col2 AS INTEGER ) + + 87 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-12
40
77

query I rowsort
SELECT + col1 AS col2 FROM tab2 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT DISTINCT + - ( - col2 ) + + - 20 FROM tab0 cor0
----
-10
27
79

query I rowsort
SELECT ALL 0 + - col2 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT + col0 * + + ( + col2 ) - + + ( + col1 ) + + 44 * - col0 FROM tab1 AS cor0
----
1270
2137
2638

query I rowsort
SELECT DISTINCT + + 55 + - + 2 - + - 27 - + col2 * - + 61 FROM tab1 AS cor0
----
3679
4228
5936

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5236
SELECT ALL col1 - ( - - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5236
SELECT ALL col1 - ( - - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 37 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5238
SELECT ALL COUNT( * ) - COUNT( * ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5238
SELECT ALL COUNT ( * ) - COUNT ( * ) AS col0 FROM tab0
----
0

query II rowsort
SELECT ALL + col2 AS col0, col2 * - col2 * + 88 FROM tab2
----
23
-46552
40
-140800
58
-296032

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - 79 < - + 55
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= + - 11 + + - col2 + - col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > 66
----

query I rowsort
SELECT DISTINCT - 71 * ( ( - - col2 ) ) * - col0 * - 84 FROM tab0 WHERE NOT ( + - 30 + - - 74 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5244
SELECT ALL + CAST( NULL AS SIGNED ) * COUNT( * ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5244
SELECT ALL + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5245
SELECT + - COUNT( col1 ) AS col1, 0 AS col0 FROM tab2 AS cor0 WHERE NOT col2 * + 50 IS NULL
----
-3
0

skipif mysql # not compatible
query II rowsort label-5245
SELECT + - COUNT ( col1 ) AS col1, 0 AS col0 FROM tab2 AS cor0 WHERE NOT col2 * + 50 IS NULL
----
-3
0

query I rowsort
SELECT - ( - + 91 ) FROM tab0
----
91
91
91

query I rowsort
SELECT DISTINCT + 23 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5248
SELECT + ( + COUNT( * ) ) + + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-5248
SELECT + ( + COUNT ( * ) ) + + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18

query II rowsort
SELECT + col2, - col1 AS col1 FROM tab0 cor0
----
10
-21
47
-81
99
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT DISTINCT + COUNT( + + col2 ) + - 63 AS col0 FROM tab0 cor0
----
-60

skipif mysql # not compatible
query I rowsort label-5250
SELECT DISTINCT + COUNT ( + + col2 ) + - 63 AS col0 FROM tab0 cor0
----
-60

query II rowsort
SELECT ALL - col1, col1 + col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL = ( - + col2 )
----

query I rowsort
SELECT 37 * + col1 AS col1 FROM tab0 AS cor0
----
2997
37
777

query I rowsort
SELECT DISTINCT - - 75 AS col1 FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5254
SELECT - + 54 AS col0, CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-54
10
-54
47
-54
99

skipif mysql # not compatible
query II rowsort label-5254
SELECT - + 54 AS col0, CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-54
10
-54
47
-54
99

query II rowsort
SELECT 38 * + 80, - 98 AS col1 FROM tab0
----
3040
-98
3040
-98
3040
-98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5256
SELECT DISTINCT - col0 * - ( + + CAST( NULL AS SIGNED ) ) AS col1, col2 * - 10 + + col1 * + col1 + + ( - 23 ) FROM tab1
----
NULL
-588
NULL
-787
NULL
1506

skipif mysql # not compatible
query II rowsort label-5256
SELECT DISTINCT - col0 * - ( + + CAST ( NULL AS INTEGER ) ) AS col1, col2 * - 10 + + col1 * + col1 + + ( - 23 ) FROM tab1
----
NULL
-588
NULL
-787
NULL
1506

query III rowsort
SELECT * FROM tab0 WHERE + col0 * + 29 + + 65 < col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5258
SELECT ALL + ( ( - 73 ) ) + - col2 DIV + col1 FROM tab0
----
-172
-73
-73

skipif mysql # not compatible
query I rowsort label-5258
SELECT ALL + ( ( - 73 ) ) + - col2 / + col1 FROM tab0
----
-172
-73
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5259
SELECT ALL + 20 DIV 33 * - COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5259
SELECT ALL + 20 / 33 * - COUNT ( * ) AS col1 FROM tab0
----
0

query I rowsort
SELECT DISTINCT + col2 + + - 68 FROM tab2
----
-10
-28
-45

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - col1 * + 29 AND 96
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 62 + - col0 col0 FROM tab0
----
-25
-35
47

query I rowsort
SELECT - col1 + 98 + col2 - - col0 * 44 + + col2 + + + col2 * 37 FROM tab2 AS cor0
----
2968
4397
5593

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 27 col2, 8 * - 81 FROM tab2
----
27
-648
27
-648
27
-648

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5265
SELECT * FROM tab0 WHERE - col2 * col0 + + 96 - + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5265
SELECT * FROM tab0 WHERE - col2 * col0 + + 96 - + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT COUNT( * ) - + - 56 AS col2 FROM tab2
----
59

skipif mysql # not compatible
query I rowsort label-5266
SELECT COUNT ( * ) - + - 56 AS col2 FROM tab2
----
59

query I rowsort
SELECT - col2 - col2 + - 36 FROM tab0 AS cor0
----
-130
-234
-56

query I rowsort
SELECT ALL + + 63 + col0 * 62 AS col1 FROM tab1 AS cor0
----
3225
5333
5705

query I rowsort
SELECT ALL + 7 + - 36 FROM tab1 AS cor0
----
-29
-29
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 69 col0 FROM tab0 cor0
----
69

query I rowsort
SELECT 31 FROM tab0 WHERE NOT - col0 <= + - col2
----
31
31

query I rowsort
SELECT DISTINCT ( + + 22 ) FROM tab2
----
22

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL >= - 10
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT - MAX( - - col0 ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-75

skipif mysql # not compatible
query I rowsort label-5274
SELECT - MAX ( - - col0 ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-75

query I rowsort
SELECT 50 AS col0 FROM tab1 cor0
----
50
50
50

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( + col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL - col2 * - - 56 AS col2 FROM tab2
----
-1288
-2240
-3248

query I rowsort
SELECT DISTINCT - col0 * 26 + + ( - col0 ) FROM tab2 AS cor0
----
-1242
-1728
-2025

onlyif mysql # aggregate syntax: 
query I rowsort label-5279
SELECT ( + COUNT( * ) ) AS col2 FROM tab1 AS cor0 WHERE NOT - col1 * + ( + 98 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5279
SELECT ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0 WHERE NOT - col1 * + ( + 98 ) IS NULL
----
3

query I rowsort
SELECT - + 2 * + 30 * col1 + + col1 AS col0 FROM tab2 AS cor0
----
-3009
-3953
-4543

query I rowsort
SELECT DISTINCT - col2 + - + 24 AS col1 FROM tab0 AS cor0
----
-123
-34
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT DISTINCT COUNT( * ) + - - 28 AS col2 FROM tab0 cor0
----
31

skipif mysql # not compatible
query I rowsort label-5282
SELECT DISTINCT COUNT ( * ) + - - 28 AS col2 FROM tab0 cor0
----
31

query I rowsort
SELECT ALL + 3 * 11 + - col0 - col1 FROM tab1 AS cor0 WHERE NOT - ( col2 ) * col1 - - - ( + + col0 ) IS NULL
----
-105
-32
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-5284
SELECT ALL 73 + col2 - - - 38 DIV + col2 FROM tab2 AS cor0
----
113
131
95

skipif mysql # not compatible
query I rowsort label-5284
SELECT ALL 73 + col2 - - - 38 / + col2 FROM tab2 AS cor0
----
113
131
95

query I rowsort
SELECT - col0 + + 67 FROM tab0 cor0
----
-20
-30
52

query III rowsort
SELECT * FROM tab2 WHERE col0 NOT BETWEEN NULL AND 48
----
64
77
40
75
67
58

query I rowsort
SELECT DISTINCT - 86 * col0 * + 92 FROM tab1
----
-403512
-672520
-719992

query I rowsort
SELECT + col2 AS col2 FROM tab2 WHERE + - col1 * + col2 + col1 + + col0 + + col0 + - col2 * - col2 >= + + 6
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5289
SELECT MIN( DISTINCT 95 ) FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-5289
SELECT MIN ( DISTINCT 95 ) FROM tab0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT ALL + 71 + - COUNT( * ) FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-5290
SELECT ALL + 71 + - COUNT ( * ) FROM tab1
----
68

query I rowsort
SELECT DISTINCT + 60 * ( 57 ) FROM tab2
----
3420

query I rowsort
SELECT ( - col0 ) AS col1 FROM tab0 WHERE - + col0 + + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 73 ) + - col0 col1 FROM tab2 AS cor0
----
-2
27
9

query I rowsort
SELECT col0 + - - 34 * + - col0 AS col0 FROM tab1
----
-1683
-2805
-3003

query II rowsort
SELECT - col1 + + col0 AS col1, col1 + col1 FROM tab0
----
-66
162
66
42
96
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5296
SELECT DISTINCT COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5296
SELECT DISTINCT COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT ( - + COUNT( - - col1 ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5297
SELECT ( - + COUNT ( - - col1 ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5298
SELECT ALL - COUNT( * ) * + MAX( + - 84 ) AS col0, + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
252
NULL

skipif mysql # not compatible
query II rowsort label-5298
SELECT ALL - COUNT ( * ) * + MAX ( + - 84 ) AS col0, + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
252
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5299
SELECT MIN( + col2 ) AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-5299
SELECT MIN ( + col2 ) AS col2 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5300
SELECT + MIN( 56 ) AS col0 FROM tab0
----
56

skipif mysql # not compatible
query I rowsort label-5300
SELECT + MIN ( 56 ) AS col0 FROM tab0
----
56

query II rowsort
SELECT col0, + col2 AS col0 FROM tab1
----
51
96
85
59
91
68

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 5 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5303
SELECT COUNT( * ) AS col0, 38 AS col1 FROM tab0
----
3
38

skipif mysql # not compatible
query II rowsort label-5303
SELECT COUNT ( * ) AS col0, 38 AS col1 FROM tab0
----
3
38

query II rowsort
SELECT col1 AS col1, ( - col1 ) FROM tab1
----
14
-14
47
-47
5
-5

query I rowsort
SELECT - col0 + col1 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5306
SELECT DISTINCT - COUNT( CAST( + ( + - 83 ) AS SIGNED ) ) col2 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5306
SELECT DISTINCT - COUNT ( CAST ( + ( + - 83 ) AS INTEGER ) ) col2 FROM tab2
----
-3

query II rowsort
SELECT - 47 AS col1, + 49 FROM tab1 AS cor0
----
-47
49
-47
49
-47
49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * - - 94 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 62 + + col1 AS col2 FROM tab0 AS cor0
----
143
63
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT DISTINCT + MIN( ALL + + 18 ) FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-5310
SELECT DISTINCT + MIN ( ALL + + 18 ) FROM tab0 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-5311
SELECT ALL - COUNT( * ) + - - COUNT( * ), + 11 AS col2 FROM tab1 AS cor0
----
0
11

skipif mysql # not compatible
query II rowsort label-5311
SELECT ALL - COUNT ( * ) + - - COUNT ( * ), + 11 AS col2 FROM tab1 AS cor0
----
0
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5312
SELECT - + SUM( + col1 ) AS col1 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-5312
SELECT - + SUM ( + col1 ) AS col1 FROM tab2 AS cor0
----
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 98 col0 FROM tab1 cor0
----
-98
-98
-98

query I rowsort
SELECT ALL + + col0 + - col0 + - - col2 AS col0 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT ALL ( - col2 ) FROM tab2 WHERE NOT + col2 <= - col0
----
-23
-40
-58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 66 / + - col2 >= - 26 * + col2 + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 - + + col1 AS col2 FROM tab1 cor0
----
0

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT DISTINCT - col0 - col2 AS col0 FROM tab0
----
-196
-62
-97

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - col2 AND + col2 * col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5321
SELECT DISTINCT - MIN( col0 ) + + 19, MIN( ALL ( + + 66 ) ) FROM tab1 WHERE - + col0 IS NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5321
SELECT DISTINCT - MIN ( col0 ) + + 19, MIN ( ALL ( + + 66 ) ) FROM tab1 WHERE - + col0 IS NULL
----
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + + 6 ) col2 FROM tab1
----
6
6
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5323
SELECT 31 DIV - + col2 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-5323
SELECT 31 / - + col2 FROM tab0
----
-3
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT + 36 - + COUNT( * ) FROM tab2 WHERE NOT - 26 IS NOT NULL
----
36

skipif mysql # not compatible
query I rowsort label-5324
SELECT + 36 - + COUNT ( * ) FROM tab2 WHERE NOT - 26 IS NOT NULL
----
36

query I rowsort
SELECT DISTINCT - - 45 * + 2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT + - ( + COUNT( - - 13 ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5326
SELECT + - ( + COUNT ( - - 13 ) ) AS col1 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col1 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 * + col2 * + - col1 col0 FROM tab1 AS cor0
----
-28224
-6195
-67116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5329
SELECT - 23 * CAST( + + COUNT( * ) AS SIGNED ) * + 10 FROM tab2 cor0
----
-690

skipif mysql # not compatible
query I rowsort label-5329
SELECT - 23 * CAST ( + + COUNT ( * ) AS INTEGER ) * + 10 FROM tab2 cor0
----
-690

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5330
SELECT DISTINCT - 68 * - CAST( 57 AS SIGNED ) FROM tab0 AS cor0
----
3876

skipif mysql # not compatible
query I rowsort label-5330
SELECT DISTINCT - 68 * - CAST ( 57 AS INTEGER ) FROM tab0 AS cor0
----
3876

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT ( NULL <> NULL ) )
----

query I rowsort
SELECT + col0 * + col2 * + + 45 FROM tab1 AS cor0
----
220320
225675
278460

query I rowsort
SELECT - 37 * - col1 AS col1 FROM tab2 AS cor0
----
1887
2479
2849

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5334
SELECT ALL 8 DIV + COUNT( * ) FROM tab2 cor0
----
2

skipif mysql # not compatible
query I rowsort label-5334
SELECT ALL 8 / + COUNT ( * ) FROM tab2 cor0
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col0, col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

query II rowsort
SELECT + ( + col2 ) AS col1, 98 AS col1 FROM tab0
----
10
98
47
98
99
98

query I rowsort
SELECT + - col2 / - 3 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT ALL SUM( ALL + - col0 ) AS col0 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-5338
SELECT ALL SUM ( ALL + - col0 ) AS col0 FROM tab1
----
-227

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5339
SELECT CAST( NULL AS DECIMAL ) * ( - ( 28 ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5339
SELECT CAST ( NULL AS REAL ) * ( - ( 28 ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 94 AS col2 FROM tab2 WHERE NOT - col0 + + + col1 > + col1
----
-94
-94
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 2 col2 FROM tab0
----
174
194
30

query II rowsort
SELECT + ( col0 ) AS col0, + col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - + col1 ) col2 FROM tab0
----
1
21
81

query II rowsort
SELECT ALL + col0 AS col0, - col0 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
15
-15
87
-87
97
-97

query I rowsort
SELECT ALL + col2 + col1 + + 90 FROM tab0 AS cor0
----
121
190
218

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT + 1 + + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-5346
SELECT + 1 + + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
4

query II rowsort
SELECT ALL col1, + col1 + - col2 + col1 * 57 FROM tab1 AS cor0 WHERE NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5348
SELECT ALL + SUM( 6 ) FROM tab0 cor0
----
18

skipif mysql # not compatible
query I rowsort label-5348
SELECT ALL + SUM ( 6 ) FROM tab0 cor0
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5349
SELECT - - CAST( + COUNT( * ) AS SIGNED ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5349
SELECT - - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + ( col2 ) > ( NULL )
----

query I rowsort
SELECT ALL 22 AS col2 FROM tab2
----
22
22
22

query I rowsort
SELECT - col2 * + - ( 16 ) FROM tab0
----
1584
160
752

query II rowsort
SELECT + 41 - + + 26, - col0 AS col0 FROM tab0
----
15
-15
15
-87
15
-97

query I rowsort
SELECT ALL + 76 + + col1 FROM tab2
----
127
143
153

query III rowsort
SELECT * FROM tab2 WHERE 19 IS NULL AND col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT ALL - - 29 * + + 34 * - 98 * - - COUNT( * ) col0 FROM tab1 AS cor0
----
-289884

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5356
SELECT ALL - - 29 * + + 34 * - 98 * - - COUNT ( * ) col0 FROM tab1 AS cor0
----
-289884

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - ( 74 ) >= + - col0
----
75
67
58

query I rowsort
SELECT DISTINCT 47 * col1 FROM tab1
----
2209
235
658

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 12 col1 FROM tab0 AS cor0
----
-12

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col2 AND NULL
----

query I rowsort
SELECT - ( - + col1 ) * - 18 AS col2 FROM tab2 AS cor0
----
-1206
-1386
-918

query I rowsort
SELECT ALL + 50 * - - col2 FROM tab2 AS cor0
----
1150
2000
2900

query I rowsort
SELECT + 92 * + - 21 FROM tab0 AS cor0
----
-1932
-1932
-1932

onlyif mysql # DIV for integer division: 
query I rowsort label-5364
SELECT 44 DIV + col2 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5364
SELECT 44 / + col2 FROM tab2 AS cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5365
SELECT + COUNT( * ) AS col0, - 90 * - COUNT( * ) col0 FROM tab2
----
3
270

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5365
SELECT + COUNT ( * ) AS col0, - 90 * - COUNT ( * ) col0 FROM tab2
----
3
270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5366
SELECT ALL - CAST( - + col1 AS SIGNED ) FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-5366
SELECT ALL - CAST ( - + col1 AS INTEGER ) FROM tab0
----
1
21
81

query II rowsort
SELECT DISTINCT + 13, col1 * col0 AS col1 FROM tab1
----
13
425
13
4277
13
714

onlyif mysql # aggregate syntax: 
query II rowsort label-5368
SELECT DISTINCT + + 60 col0, COUNT( * ) AS col1 FROM tab0 AS cor0
----
60
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5368
SELECT DISTINCT + + 60 col0, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
60
3

query I rowsort
SELECT DISTINCT + - col1 * - - col2 * col1 AS col2 FROM tab0 AS cor0
----
-308367
-4410
-99

query III rowsort
SELECT * FROM tab1 WHERE 62 <> + + col1 * 79 - + + col0 + + - 87
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( + 62 ) * + col0 AS col2 FROM tab0
----
5394
6014
930

query I rowsort
SELECT 21 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT DISTINCT - + COUNT( * ) FROM tab2 AS cor0 WHERE NOT col2 * + 83 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5373
SELECT DISTINCT - + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col2 * + 83 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT - - COUNT( * ) FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5374
SELECT - - COUNT ( * ) FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT DISTINCT 93 + - COUNT( * ) FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-5375
SELECT DISTINCT 93 + - COUNT ( * ) FROM tab0 AS cor0
----
90

query I rowsort
SELECT ALL col1 + + 9 FROM tab2 AS cor0 WHERE NOT 87 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + 68 + + col2 * - 69 + + - col1 AS col0 FROM tab2 cor0
----
-1570
-2769
-4001

query I rowsort
SELECT DISTINCT + col1 - + + col2 AS col0 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT - 10 + col2 AS col1 FROM tab2
----
13
30
48

query II rowsort
SELECT ALL 0, - 56 AS col2 FROM tab1
----
0
-56
0
-56
0
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 AS col0, - col2 col0 FROM tab1
----
59
-59
68
-68
96
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5382
SELECT DISTINCT * FROM tab0 WHERE + ( - ( - + 73 ) ) * col2 * - + 89 / - CAST( NULL AS SIGNED ) / + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5382
SELECT DISTINCT * FROM tab0 WHERE + ( - ( - + 73 ) ) * col2 * - + 89 / - CAST ( NULL AS INTEGER ) / + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + 95 AS col1, 97 FROM tab1 AS cor0
----
95
97
95
97
95
97

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 BETWEEN ( 63 + + 39 ) AND 82
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + ( + col0 ) * - 48 + col0, col2 FROM tab0
----
-4089
10
-4559
99
-705
47

query I rowsort
SELECT ALL - 72 * + col2 FROM tab1 AS cor0
----
-4248
-4896
-6912

onlyif mysql # aggregate syntax: 
query I rowsort label-5388
SELECT MIN( col1 ) col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5388
SELECT MIN ( col1 ) col0 FROM tab2 AS cor0
----
51

query I rowsort
SELECT ALL + 3 * 66 - - col0 AS col2 FROM tab1 AS cor0
----
249
283
289

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5390
SELECT - ( CAST( - SUM( DISTINCT - - 17 ) AS SIGNED ) ) * - MIN( - col1 ) AS col2 FROM tab2 AS cor0
----
1309

skipif mysql # not compatible
query I rowsort label-5390
SELECT - ( CAST ( - SUM ( DISTINCT - - 17 ) AS INTEGER ) ) * - MIN ( - col1 ) AS col2 FROM tab2 AS cor0
----
1309

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 34 col0 FROM tab1 AS cor0
----
34
34
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5392
SELECT - COUNT( - 11 ) * + 21 AS col0 FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-5392
SELECT - COUNT ( - 11 ) * + 21 AS col0 FROM tab2 AS cor0
----
-63

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 + + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 9 * - ( col2 ) AS col2 FROM tab2
----
-207
-360
-522

query I rowsort
SELECT ALL 30 * + - col0 FROM tab2
----
-1380
-1920
-2250

query I rowsort
SELECT DISTINCT 15 * - + 4 AS col0 FROM tab1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5398
SELECT DISTINCT COUNT( * ) * + - ( + SUM( 18 ) ) AS col2 FROM tab0
----
-162

skipif mysql # not compatible
query I rowsort label-5398
SELECT DISTINCT COUNT ( * ) * + - ( + SUM ( 18 ) ) AS col2 FROM tab0
----
-162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5399
SELECT MIN( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5399
SELECT MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5400
SELECT ALL col0, col2 + + col2 + - col1 / ( + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-5400
SELECT ALL col0, col2 + + col2 + - col1 / ( + CAST ( NULL AS REAL ) ) AS col2 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

query I rowsort
SELECT ALL col2 + col2 * - + 55 FROM tab1 cor0
----
-3186
-3672
-5184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5402
SELECT DISTINCT 15 AS col2, - CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
15
3

skipif mysql # not compatible
query II rowsort label-5402
SELECT DISTINCT 15 AS col2, - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
15
3

query I rowsort
SELECT ALL 43 AS col2 FROM tab2 cor0
----
43
43
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5404
SELECT - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5404
SELECT - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query I rowsort label-5405
SELECT DISTINCT + col2 DIV - col0 AS col1 FROM tab1 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5405
SELECT DISTINCT + col2 / - col0 AS col1 FROM tab1 cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 60 col1 FROM tab2 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT DISTINCT + 59 + + 23 * - col2 FROM tab0 AS cor0
----
-1022
-171
-2218

query I rowsort
SELECT DISTINCT - + col2 * + + col2 - col2 + - col1 * col0 + col1 FROM tab0 AS cor0
----
-1916
-3390
-9996

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 9 * + 26 * + col2 <> - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 48 AS col1, + col0 col1 FROM tab1 AS cor0
----
48
51
48
85
48
91

onlyif mysql # aggregate syntax: 
query II rowsort label-5411
SELECT ( 57 ), - COUNT( * ) AS col2 FROM tab0
----
57
-3

skipif mysql # not compatible
query II rowsort label-5411
SELECT ( 57 ), - COUNT ( * ) AS col2 FROM tab0
----
57
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT ( - 17 ) - 37 + + - COUNT( ALL + 62 ) AS col0 FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-5412
SELECT ( - 17 ) - 37 + + - COUNT ( ALL + 62 ) AS col0 FROM tab2
----
-57

query III rowsort
SELECT * FROM tab0 WHERE ( NOT col1 <> NULL )
----

query I rowsort
SELECT col0 - 85 * - 82 FROM tab0
----
6985
7057
7067

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT + col1 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 WHERE NOT - - 13 <> col0
----

query I rowsort
SELECT + 78 AS col2 FROM tab1 AS cor0 WHERE NOT + 46 * - 94 IS NULL
----
78
78
78

onlyif mysql # DIV for integer division: 
query II rowsort label-5418
SELECT + col1 DIV 68 * - 44 AS col2, - col2 FROM tab0 AS cor0
----
-44
-47
0
-10
0
-99

skipif mysql # not compatible
query II rowsort label-5418
SELECT + col1 / 68 * - 44 AS col2, - col2 FROM tab0 AS cor0
----
-44
-47
0
-10
0
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT ALL COUNT( * ) * 57 FROM tab2
----
171

skipif mysql # not compatible
query I rowsort label-5419
SELECT ALL COUNT ( * ) * 57 FROM tab2
----
171

query I rowsort
SELECT DISTINCT - 13 - - col1 AS col2 FROM tab1 AS cor0 WHERE NOT - 34 + - + ( + col0 ) / + col2 + + 56 * - col0 / - col1 * - col1 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 30 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col2, col0 AS col2 FROM tab0 AS cor0
----
10
87
47
15
99
97

query II rowsort
SELECT 63 AS col1, ( + col2 ) AS col0 FROM tab0 AS cor0
----
63
10
63
47
63
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 38 col0 FROM tab2 AS cor0
----
38
38
38

query I rowsort
SELECT - + col2 * + 5 * - ( 95 ) FROM tab2 AS cor0
----
10925
19000
27550

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT SUM( col0 ) AS col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-5426
SELECT SUM ( col0 ) AS col2 FROM tab1 AS cor0
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5427
SELECT ALL - col0 col1 FROM tab0 WHERE - ( - + CAST( NULL AS SIGNED ) ) / - col0 + - 74 + ( + col2 ) / col2 * - + col0 * - col1 <= + 48
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5427
SELECT ALL - col0 col1 FROM tab0 WHERE - ( - + CAST ( NULL AS INTEGER ) ) / - col0 + - 74 + ( + col2 ) / col2 * - + col0 * - col1 <= + 48
----

query I rowsort
SELECT DISTINCT 39 + - + col2 - 52 FROM tab2
----
-36
-53
-71

query II rowsort
SELECT ALL ( col2 ) * + col1 + + 63 AS col2, 33 FROM tab0
----
162
33
273
33
3870
33

query I rowsort
SELECT + 59 + + col0 FROM tab0 WHERE + ( - 70 ) * - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5431
SELECT DISTINCT 72 DIV 58 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5431
SELECT DISTINCT 72 / 58 FROM tab2
----
1

query I rowsort
SELECT - col0 * col2 + - 46 FROM tab2
----
-1104
-2606
-4396

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 * 65 IS NULL
----

query I rowsort
SELECT ALL - - 6 * + col2 FROM tab2 cor0
----
138
240
348

onlyif mysql # DIV for integer division: 
query I rowsort label-5435
SELECT DISTINCT + + col0 DIV + col2 AS col0 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-5435
SELECT DISTINCT + + col0 / + col2 AS col0 FROM tab2 AS cor0
----
1
2

query I rowsort
SELECT ALL + - col2 * + 36 AS col2 FROM tab1 WHERE NOT ( ( NOT ( NOT NULL BETWEEN - col0 * - ( col0 ) + - + ( col1 ) AND + 1 * - + col0 ) ) )
----

query I rowsort
SELECT ALL - - 15 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT + - ( + ( - col0 ) ) AS col0 FROM tab1 AS cor0 WHERE col2 * - 84 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT ALL + 62 + COUNT( * ) AS col1 FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-5439
SELECT ALL + 62 + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
65

query I rowsort
SELECT - - col0 - + col0 * + col0 AS col0 FROM tab1 cor0
----
-2550
-7140
-8190

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT DISTINCT - 91 * + 3 * - + COUNT( * ) AS col1 FROM tab2 cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5441
SELECT DISTINCT - 91 * + 3 * - + COUNT ( * ) AS col1 FROM tab2 cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5442
SELECT col1 + + col0 DIV col0 * - col0 AS col1 FROM tab1 AS cor0
----
-37
-44
-80

skipif mysql # not compatible
query I rowsort label-5442
SELECT col1 + + col0 / col0 * - col0 AS col1 FROM tab1 AS cor0
----
-37
-44
-80

query I rowsort
SELECT - 62 + - + col1 AS col1 FROM tab0 AS cor0
----
-143
-63
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT ALL - 99 - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-5444
SELECT ALL - 99 - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-102

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - + 47 col1 FROM tab1
----
-33
-42
0

query III rowsort
SELECT ALL * FROM tab0 WHERE + 51 * + col0 IS NULL
----

query II rowsort
SELECT DISTINCT + 11, col1 * - col1 AS col2 FROM tab2
----
11
-2601
11
-4489
11
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT DISTINCT + COUNT( ALL - col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5448
SELECT DISTINCT + COUNT ( ALL - col1 ) FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5449
SELECT ALL COUNT( * ) AS col0, + COUNT( ALL - CAST( NULL AS SIGNED ) ) FROM tab2
----
3
0

skipif mysql # not compatible
query II rowsort label-5449
SELECT ALL COUNT ( * ) AS col0, + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab2
----
3
0

query II rowsort
SELECT - col0 AS col2, 99 AS col0 FROM tab1
----
-51
99
-85
99
-91
99

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 WHERE NOT col2 BETWEEN col0 * - + col1 AND NULL
----

query I rowsort
SELECT ( + - col2 ) * col1 AS col1 FROM tab0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT 68 * - COUNT( * ) AS col0 FROM tab2
----
-204

skipif mysql # not compatible
query I rowsort label-5453
SELECT 68 * - COUNT ( * ) AS col0 FROM tab2
----
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-5454
SELECT + + COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5454
SELECT + + COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5455
SELECT col0 DIV - 62 AS col1 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5455
SELECT col0 / - 62 AS col1 FROM tab2
----
-1
-1
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 + 61 + col1 * + + 82 / col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( - - 26 ) * + + 92 AS col2 FROM tab0
----
2392
2392
2392

query II rowsort
SELECT ALL + 90 AS col2, col0 FROM tab2 AS cor0
----
90
46
90
64
90
75

query II rowsort
SELECT ALL - 31 AS col1, col0 AS col2 FROM tab1 WHERE NULL IS NULL
----
-31
51
-31
85
-31
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT ALL COUNT( * ) col2 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-5460
SELECT ALL COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT DISTINCT + 26 AS col1 FROM tab1 cor0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5462
SELECT - COUNT( * ) * + 28 + 49 col1 FROM tab1 AS cor0
----
-35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5462
SELECT - COUNT ( * ) * + 28 + 49 col1 FROM tab1 AS cor0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT DISTINCT - COUNT( + - 86 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5463
SELECT DISTINCT - COUNT ( + - 86 ) FROM tab2 cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 + - col1 < col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT DISTINCT ( + + MAX( DISTINCT - 10 ) ) AS col1 FROM tab1 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-5465
SELECT DISTINCT ( + + MAX ( DISTINCT - 10 ) ) AS col1 FROM tab1 AS cor0
----
-10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 < - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - col2 FROM tab0 AS cor0 WHERE NOT col1 / + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT + 87 * COUNT( * ) + + + COUNT( * ) FROM tab0
----
264

skipif mysql # not compatible
query I rowsort label-5468
SELECT + 87 * COUNT ( * ) + + + COUNT ( * ) FROM tab0
----
264

query I rowsort
SELECT 51 * 92 AS col0 FROM tab1
----
4692
4692
4692

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col2 ) + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE ( NOT col2 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - ( - col1 ) + - - col1 * col1 AS col1 FROM tab0
----
2
462
6642

onlyif mysql # aggregate syntax: 
query II rowsort label-5473
SELECT 85 AS col1, 97 * - COUNT( * ) col1 FROM tab1
----
85
-291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5473
SELECT 85 AS col1, 97 * - COUNT ( * ) col1 FROM tab1
----
85
-291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, col2 col1 FROM tab1
----
-14
96
-47
68
-5
59

onlyif mysql # DIV for integer division: 
query I rowsort label-5475
SELECT DISTINCT + ( - col2 ) DIV - col0 - 83 FROM tab0
----
-80
-82
-83

skipif mysql # not compatible
query I rowsort label-5475
SELECT DISTINCT + ( - col2 ) / - col0 - 83 FROM tab0
----
-80
-82
-83

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5476
SELECT ALL - CAST( + col0 AS SIGNED ) + + col0 DIV - col2 FROM tab0
----
-15
-95
-97

skipif mysql # not compatible
query I rowsort label-5476
SELECT ALL - CAST ( + col0 AS INTEGER ) + + col0 / - col2 FROM tab0
----
-15
-95
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-5477
SELECT DISTINCT - col2 DIV + col0 AS col0 FROM tab0 WHERE NULL IS NULL
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-5477
SELECT DISTINCT - col2 / + col0 AS col0 FROM tab0 WHERE NULL IS NULL
----
-1
-3
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5478
SELECT - CAST( NULL AS SIGNED ) * 99 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5478
SELECT - CAST ( NULL AS INTEGER ) * 99 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 45 - col0 FROM tab1
----
-40
-46
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5480
SELECT + col0 * + col1 col2 FROM tab1 WHERE NOT - 79 * + CAST( NULL AS SIGNED ) - - 14 IN ( - CAST( NULL AS SIGNED ) - col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5480
SELECT + col0 * + col1 col2 FROM tab1 WHERE NOT - 79 * + CAST ( NULL AS INTEGER ) - - 14 IN ( - CAST ( NULL AS INTEGER ) - col1 )
----

query I rowsort
SELECT ALL + col0 + + col2 * 77 AS col0 FROM tab1
----
4628
5327
7443

onlyif mysql # DIV for integer division: 
query I rowsort label-5482
SELECT ALL - col1 DIV - 64 FROM tab2 WHERE NOT ( col2 ) NOT IN ( col2 )
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5482
SELECT ALL - col1 / - 64 FROM tab2 WHERE NOT ( col2 ) NOT IN ( col2 )
----
0
1
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 + 61 IN ( - 81 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5484
SELECT DISTINCT + SUM( ALL - col0 ) * - COUNT( * ) col2 FROM tab2
----
555

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5484
SELECT DISTINCT + SUM ( ALL - col0 ) * - COUNT ( * ) col2 FROM tab2
----
555

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5485
SELECT ALL + COUNT( * ) * CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5485
SELECT ALL + COUNT ( * ) * CAST ( NULL AS REAL ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5486
SELECT DISTINCT + col0 * - 7 - CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NOT - 70 + + col2 BETWEEN NULL AND ( 12 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5486
SELECT DISTINCT + col0 * - 7 - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NOT - 70 + + col2 BETWEEN NULL AND ( 12 )
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= ( + col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE + 68 NOT BETWEEN ( + col2 + - 45 ) AND NULL
----

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE NOT ( col0 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 8 + 4 FROM tab1
----
12
12
12

query I rowsort
SELECT + col0 * 99 FROM tab0 WHERE NOT - col0 * - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5492
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( - 41 + CAST( NULL AS DECIMAL ) ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-5492
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( - 41 + CAST ( NULL AS REAL ) ) AND NULL
----

query I rowsort
SELECT - ( 32 ) * + col0 AS col1 FROM tab2 AS cor0
----
-1472
-2048
-2400

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 81 IS NOT NULL
----

query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( - 15 ) BETWEEN NULL AND + col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 11 < + ( + col1 ) + + col0 * + 60
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT ( COUNT( * ) ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5497
SELECT ( COUNT ( * ) ) col1 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 21 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5499
SELECT ALL - 9 / + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5499
SELECT ALL - 9 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + col1 FROM tab0 AS cor0 WHERE NOT ( 45 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT DISTINCT + MAX( DISTINCT 50 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0
----
50

skipif mysql # not compatible
query I rowsort label-5501
SELECT DISTINCT + MAX ( DISTINCT 50 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0
----
50

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5502
SELECT CAST( 41 AS DECIMAL ) AS col1 FROM tab2 WHERE NOT NULL IN ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-5502
SELECT CAST ( 41 AS REAL ) AS col1 FROM tab2 WHERE NOT NULL IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT 98 + COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab1
----
107

skipif mysql # not compatible
query I rowsort label-5503
SELECT 98 + COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab1
----
107

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT - SUM( col1 ) * 51 AS col2 FROM tab1 AS cor0
----
-3366

skipif mysql # not compatible
query I rowsort label-5505
SELECT - SUM ( col1 ) * 51 AS col2 FROM tab1 AS cor0
----
-3366

query I rowsort
SELECT ALL - col1 * col0 + + 38 FROM tab1 AS cor0
----
-387
-4239
-676

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 2 * - 82 + col2 AND + col1 * col2 + - 97
----

query I rowsort
SELECT + 46 AS col0 FROM tab1 cor0
----
46
46
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5509
SELECT - - CAST( NULL AS SIGNED ) * COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5509
SELECT - - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 41 / - col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT + MIN( ALL + 91 ) FROM tab0 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-5511
SELECT + MIN ( ALL + 91 ) FROM tab0 AS cor0
----
91

query I rowsort
SELECT ALL 76 FROM tab0 AS cor0 WHERE + 0 <> ( 43 )
----
76
76
76

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 81 IN ( - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT 32 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-5515
SELECT 32 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
96

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 NOT IN ( + 8 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5517
SELECT - col1 + - col2 + col0 * - col1 DIV col1 AS col0 FROM tab1
----
-149
-161
-206

skipif mysql # not compatible
query I rowsort label-5517
SELECT - col1 + - col2 + col0 * - col1 / col1 AS col0 FROM tab1
----
-149
-161
-206

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5518
SELECT ALL * FROM tab2 WHERE NOT col2 < + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5518
SELECT ALL * FROM tab2 WHERE NOT col2 < + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5519
SELECT ALL * FROM tab2 WHERE NOT ( + ( col2 ) * col2 ) <= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5519
SELECT ALL * FROM tab2 WHERE NOT ( + ( col2 ) * col2 ) <= - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - 51 + + 53 FROM tab1
----
2
2
2

query I rowsort
SELECT 43 AS col0 FROM tab0 WHERE 3 * 55 BETWEEN + col2 * - col0 AND ( col2 * + col2 )
----
43
43

query I rowsort
SELECT ALL ( + - col2 ) + - col2 FROM tab0
----
-198
-20
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 58 + + col1 col1 FROM tab1 AS cor0
----
105
63
72

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col1 ) = NULL
----

query I rowsort
SELECT DISTINCT col2 + + - 32 AS col0 FROM tab0 AS cor0
----
-22
15
67

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 BETWEEN NULL AND ( + col2 ) * - col2
----

query I rowsort
SELECT DISTINCT - 34 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-34

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5529
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5529
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 54 - + + 46 col1 FROM tab0 AS cor0
----
-100
-1180
-4420

onlyif mysql # aggregate syntax: 
query I rowsort label-5531
SELECT ALL MIN( - 6 ) + 67 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5531
SELECT ALL MIN ( - 6 ) + 67 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL + + col2 AS col2 FROM tab0 AS cor0 WHERE NOT 33 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col1 * + + col2 AS col0 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT + COUNT( DISTINCT + - col1 ) + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
6

skipif mysql # not compatible
query I rowsort label-5534
SELECT + COUNT ( DISTINCT + - col1 ) + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT - MIN( ALL - + ( col1 ) ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-5535
SELECT - MIN ( ALL - + ( col1 ) ) FROM tab2 AS cor0
----
77

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col1 * - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5537
SELECT ALL MAX( col2 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5537
SELECT ALL MAX ( col2 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + 64 * 7 + + + col2 + - 35 AS col2 FROM tab2 AS cor0
----
436
453
471

query II rowsort
SELECT - + 77 AS col1, 93 + + col2 FROM tab1 AS cor0
----
-77
152
-77
161
-77
189

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL < ( - col1 * col0 * - 74 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 > ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - 60 - - col0 col0 FROM tab1 WHERE col1 * - 97 + col2 IN ( + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5543
SELECT ALL - - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab1 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5543
SELECT ALL - - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE col2 IS NULL
----
NULL

query I rowsort
SELECT - col1 * col0 * ( col0 ) FROM tab0
----
-158949
-18225
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5545
SELECT ALL CAST( NULL AS SIGNED ) * 35 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5545
SELECT ALL CAST ( NULL AS INTEGER ) * 35 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 4 * - + col1 AS col2 FROM tab0
----
-324
-4
-84

query I rowsort
SELECT + col0 * + - col0 AS col0 FROM tab0
----
-225
-7569
-9409

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + + 15 ) = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col2 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT ( col1 ) IS NULL
----
51
85
91

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NOT - 86 BETWEEN ( + + 4 - + 11 - + col2 ) AND + 79
----
46
64
75

query I rowsort
SELECT 34 AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT ( + 36 IS NULL ) )
----

query I rowsort
SELECT DISTINCT - ( - + 93 ) AS col1 FROM tab1
----
93

query I rowsort
SELECT ( + 68 ) AS col1 FROM tab0
----
68
68
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 2 col2 FROM tab2 WHERE col0 = - + 14
----

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE - col0 <> + col0 * - 83 + 66 * col0
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5557
SELECT 86 + AVG ( col2 ) + + ( - MIN( CAST( NULL 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-5557
SELECT 86 + AVG ( col2 ) + + ( - MIN ( CAST ( NULL AS INTEGER ) ) ) col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 + - 86 * - col2 AS col1 FROM tab2 AS cor0
----
2029
3517
5055

query II rowsort
SELECT ALL col0, + ( 86 ) AS col0 FROM tab1 AS cor0
----
51
86
85
86
91
86

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 + 48 * - ( + col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT - 54 AS col0 FROM tab1 AS cor0 WHERE NULL >= col0
----

query I rowsort
SELECT DISTINCT + - 91 AS col1 FROM tab0 cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT MIN( - - col2 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5563
SELECT MIN ( - - col2 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 * - - col2 >= ( - - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5565
SELECT ALL + + CAST( NULL AS SIGNED ) + + - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5565
SELECT ALL + + CAST ( NULL AS INTEGER ) + + - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT DISTINCT COUNT( - + 80 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5566
SELECT DISTINCT COUNT ( - + 80 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT COUNT( * ) * - 17 AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-5567
SELECT COUNT ( * ) * - 17 AS col1 FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT COUNT( * ) AS col2 FROM tab1 WHERE ( NOT ( ( ( col0 ) ) ) IS NULL )
----
3

skipif mysql # not compatible
query I rowsort label-5568
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE ( NOT ( ( ( col0 ) ) ) IS NULL )
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5569
SELECT COUNT( * ) AS col2, + 31 DIV - 75 FROM tab2
----
3
0

skipif mysql # not compatible
query II rowsort label-5569
SELECT COUNT ( * ) AS col2, + 31 / - 75 FROM tab2
----
3
0

query I rowsort
SELECT 30 - col2 FROM tab2
----
-10
-28
7

query I rowsort
SELECT DISTINCT col0 * - col1 + + col2 AS col1 FROM tab2 AS cor0
----
-2323
-4888
-4967

onlyif mysql # DIV for integer division: 
query I rowsort label-5572
SELECT - - col2 DIV + col2 + - ( col1 ) FROM tab2 AS cor0
----
-50
-66
-76

skipif mysql # not compatible
query I rowsort label-5572
SELECT - - col2 / + col2 + - ( col1 ) FROM tab2 AS cor0
----
-50
-66
-76

query I rowsort
SELECT + 30 + + ( + - col2 ) FROM tab0 AS cor0
----
-17
-69
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5574
SELECT - col1 / - + 70 + - col1 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5574
SELECT - col1 / - + 70 + - col1 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT DISTINCT - ( - COUNT( * ) ) * - COUNT( * ) FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5575
SELECT DISTINCT - ( - COUNT ( * ) ) * - COUNT ( * ) FROM tab2 cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col1 ) + 39 col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5577
SELECT - COUNT( * ) * - 23 AS col0 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-5577
SELECT - COUNT ( * ) * - 23 AS col0 FROM tab2 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT - COUNT( + - 0 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT col2 IS NULL ) )
----
-3

skipif mysql # not compatible
query I rowsort label-5578
SELECT - COUNT ( + - 0 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT col2 IS NULL ) )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5579
SELECT ALL + MIN( ALL col1 ) AS col1 FROM tab0 WHERE NULL IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-5579
SELECT ALL + MIN ( ALL col1 ) AS col1 FROM tab0 WHERE NULL IS NULL
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5580
SELECT ( + MIN( + col1 ) ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5580
SELECT ( + MIN ( + col1 ) ) AS col2 FROM tab0
----
1

query I rowsort
SELECT ALL - ( ( + col2 ) ) AS col2 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT ALL col2 * - + ( col1 ) * - 71 AS col0 FROM tab1
----
20945
226916
95424

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5583
SELECT 49 - + col0 * - col1 FROM tab2 WHERE NOT - + CAST( NULL AS SIGNED ) + + col2 * + 7 BETWEEN - col2 * - + 81 + - - col1 + - col0 / col1 AND 33 - 76
----

skipif mysql # not compatible
query I rowsort label-5583
SELECT 49 - + col0 * - col1 FROM tab2 WHERE NOT - + CAST ( NULL AS INTEGER ) + + col2 * + 7 BETWEEN - col2 * - + 81 + - - col1 + - col0 / col1 AND 33 - 76
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5584
SELECT ALL - COUNT( * ) * - 93 FROM tab1
----
279

skipif mysql # not compatible
query I rowsort label-5584
SELECT ALL - COUNT ( * ) * - 93 FROM tab1
----
279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5585
SELECT 54 col1 FROM tab1 WHERE NOT + CAST( + 93 AS SIGNED ) NOT IN ( col2 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5585
SELECT 54 col1 FROM tab1 WHERE NOT + CAST ( + 93 AS INTEGER ) NOT IN ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5586
SELECT DISTINCT + col1 DIV 78 AS col0 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-5586
SELECT DISTINCT + col1 / 78 AS col0 FROM tab0
----
0
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 15 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5588
SELECT ALL CAST( CAST( NULL AS DECIMAL ) AS DECIMAL ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 BETWEEN - 92 AND NULL
----

skipif mysql # not compatible
query I rowsort label-5588
SELECT ALL CAST ( CAST ( NULL AS REAL ) AS REAL ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 BETWEEN - 92 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5589
SELECT DISTINCT + ( col2 ) DIV 84 * col2 + + col1 + col0 * - col2 FROM tab2 AS cor0
----
-1007
-2483
-4283

skipif mysql # not compatible
query I rowsort label-5589
SELECT DISTINCT + ( col2 ) / 84 * col2 + + col1 + col0 * - col2 FROM tab2 AS cor0
----
-1007
-2483
-4283

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col2 + - - col0 * - col0 * + col1 * col0 AND + col1 * 83
----

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT 65 + col1 / + + 4 IS NOT NULL )
----

query I rowsort
SELECT + - 87 AS col1 FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

query I rowsort
SELECT - 26 FROM tab1 WHERE + col1 IS NOT NULL
----
-26
-26
-26

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col1 * - - col1 + 35 = - + 79 + - 97
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5596
SELECT - CAST( - - col1 AS SIGNED ) + - 11 - col1 * - 34 FROM tab1 AS cor0
----
154
1540
451

skipif mysql # not compatible
query I rowsort label-5596
SELECT - CAST ( - - col1 AS INTEGER ) + - 11 - col1 * - 34 FROM tab1 AS cor0
----
154
1540
451

query I rowsort
SELECT + - col0 + + + 12 AS col2 FROM tab2 cor0
----
-34
-52
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-5598
SELECT ALL - col0 DIV + col2 AS col0 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-5598
SELECT ALL - col0 / + col2 AS col0 FROM tab2
----
-1
-1
-2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5599
SELECT * FROM tab2 WHERE 31 + + CAST( + 14 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5599
SELECT * FROM tab2 WHERE 31 + + CAST ( + 14 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT DISTINCT SUM( - + col2 ) + - 32 FROM tab2
----
-153

skipif mysql # not compatible
query I rowsort label-5600
SELECT DISTINCT SUM ( - + col2 ) + - 32 FROM tab2
----
-153

query I rowsort
SELECT 20 + + - col0 + - 87 FROM tab2
----
-113
-131
-142

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE + col1 * + + col1 IN ( col1 * ( - 34 ) * + col2 + col2 + col0 + + col0 * + col0 * - 49 + col1 + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT ALL - 28 + + + ( + COUNT( * ) ) + - MAX( ALL ( + + col1 ) ) col2 FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5603
SELECT ALL - 28 + + + ( + COUNT ( * ) ) + - MAX ( ALL ( + + col1 ) ) col2 FROM tab1 AS cor0
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5604
SELECT + MIN( - CAST( NULL AS SIGNED ) ) / + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5604
SELECT + MIN ( - CAST ( NULL AS INTEGER ) ) / + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5605
SELECT DISTINCT - 88 DIV col2 AS col2 FROM tab2 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-5605
SELECT DISTINCT - 88 / col2 AS col2 FROM tab2 AS cor0
----
-1
-2
-3

query I rowsort
SELECT ( ( + - 90 ) ) AS col2 FROM tab2 AS cor0
----
-90
-90
-90

query I rowsort
SELECT DISTINCT 58 FROM tab0 WHERE 69 + - 36 IS NOT NULL
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-5608
SELECT 56 AS col1, COUNT( * ) FROM tab1
----
56
3

skipif mysql # not compatible
query II rowsort label-5608
SELECT 56 AS col1, COUNT ( * ) FROM tab1
----
56
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5609
SELECT ALL SUM( ALL col1 ) AS col1 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-5609
SELECT ALL SUM ( ALL col1 ) AS col1 FROM tab1
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5610
SELECT ( - COUNT( * ) ) DIV + 84 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5610
SELECT ( - COUNT ( * ) ) / + 84 AS col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <> 0 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5612
SELECT - - MAX( ALL + - col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5612
SELECT - - MAX ( ALL + - col1 ) FROM tab2 AS cor0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5613
SELECT + COUNT( DISTINCT + + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5613
SELECT + COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
0

query II rowsort
SELECT ALL - 69 AS col1, col2 AS col2 FROM tab1 AS cor0
----
-69
59
-69
68
-69
96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 + + col0 + + col0 * + ( col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5616
SELECT DISTINCT ( + - CAST( NULL AS SIGNED ) ) * - + col1 * - - 95 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5616
SELECT DISTINCT ( + - CAST ( NULL AS INTEGER ) ) * - + col1 * - - 95 AS col0 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT 61 * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5618
SELECT - COUNT( * ) * - SUM( - CAST( col0 AS SIGNED ) ) AS col2 FROM tab1
----
-681

skipif mysql # not compatible
query I rowsort label-5618
SELECT - COUNT ( * ) * - SUM ( - CAST ( col0 AS INTEGER ) ) AS col2 FROM tab1
----
-681

onlyif mysql # aggregate syntax: 
query I rowsort label-5619
SELECT MAX( - 89 ) FROM tab0
----
-89

skipif mysql # not compatible
query I rowsort label-5619
SELECT MAX ( - 89 ) FROM tab0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT DISTINCT MIN( - ( + - col1 ) ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-5620
SELECT DISTINCT MIN ( - ( + - col1 ) ) FROM tab2
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5621
SELECT + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col0, 93 + 79 * + 66 col0 FROM tab2
----
NULL
5307
NULL
5307
NULL
5307

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5621
SELECT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0, 93 + 79 * + 66 col0 FROM tab2
----
NULL
5307
NULL
5307
NULL
5307

query I rowsort
SELECT ALL col0 + + - col2 + col0 AS col0 FROM tab1 AS cor0
----
111
114
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5623
SELECT DISTINCT - - col2 DIV - - 29 + - 80 FROM tab1 AS cor0
----
-77
-78

skipif mysql # not compatible
query I rowsort label-5623
SELECT DISTINCT - - col2 / - - 29 + - 80 FROM tab1 AS cor0
----
-77
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5624
SELECT DISTINCT + COUNT( * ) * COUNT( * ) AS col0 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5624
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT MAX( col2 ) AS col0 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-5625
SELECT MAX ( col2 ) AS col0 FROM tab1 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5626
SELECT + CAST( col2 AS SIGNED ) DIV + 39 * + + 1 AS col2 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5626
SELECT + CAST ( col2 AS INTEGER ) / + 39 * + + 1 AS col2 FROM tab2
----
0
1
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN 93 AND - col0
----

query I rowsort
SELECT - col1 + - col2 + - 88 AS col1 FROM tab0
----
-119
-188
-216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5629
SELECT - + CAST( NULL AS SIGNED ) * + ( - + 33 ) * col0 * + CAST( 26 AS SIGNED ) + col0 FROM tab1 AS cor0 WHERE ( ( NULL ) NOT BETWEEN - col1 + 69 AND 40 + col2 )
----

skipif mysql # not compatible
query I rowsort label-5629
SELECT - + CAST ( NULL AS INTEGER ) * + ( - + 33 ) * col0 * + CAST ( 26 AS INTEGER ) + col0 FROM tab1 AS cor0 WHERE ( ( NULL ) NOT BETWEEN - col1 + 69 AND 40 + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - + col1 ) + - + col1 + ( col0 ) + col1 col0 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5631
SELECT DISTINCT + 11 + - COUNT( * ) FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-5631
SELECT DISTINCT + 11 + - COUNT ( * ) FROM tab0 AS cor0
----
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - - 97 ) * + 22 + + col0 col0 FROM tab0 AS cor0
----
2149
2221
2231

query I rowsort
SELECT + col2 - - + col1 AS col0 FROM tab2 AS cor0 WHERE col0 NOT IN ( + col2 * - col0 )
----
117
125
74

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE ( NULL <= NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - 67 col1 FROM tab2 AS cor0
----
3082
4288
5025

query I rowsort
SELECT - col1 * + 52 AS col0 FROM tab0
----
-1092
-4212
-52

query I rowsort
SELECT ALL - col2 - - 3 AS col1 FROM tab0
----
-44
-7
-96

query III rowsort
SELECT * FROM tab2 WHERE - ( + col0 ) * - col2 * + 32 * - + col0 + - col0 + + 10 + - + 51 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5639
SELECT 48 DIV - - 69 * - + COUNT( * ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5639
SELECT 48 / - - 69 * - + COUNT ( * ) AS col1 FROM tab1
----
0

query I rowsort
SELECT ALL - + col0 AS col0 FROM tab2 WHERE - col1 * col0 * - + col1 + + + col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 47 = - - ( + ( - + col0 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( col0 * - + col0 * + + col1 / col2 * - 84 - 52 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( - - 59 ) col0 FROM tab0 AS cor0
----
-59
-59
-59

query I rowsort
SELECT DISTINCT + + 92 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5645
SELECT DISTINCT - SUM( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-5645
SELECT DISTINCT - SUM ( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
66

query II rowsort
SELECT DISTINCT - + col2, + col2 + + + col0 FROM tab1 AS cor0 WHERE NULL < col1
----

query I rowsort
SELECT 89 * - 77 FROM tab2 AS cor0
----
-6853
-6853
-6853

query I rowsort
SELECT - ( + 88 ) FROM tab2 cor0
----
-88
-88
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col0, 3 col0 FROM tab2
----
23
3
40
3
58
3

query I rowsort
SELECT 80 * - 90 FROM tab0
----
-7200
-7200
-7200

query I rowsort
SELECT DISTINCT + col2 + - 96 * + col2 + col1 FROM tab2
----
-2134
-3723
-5443

query I rowsort
SELECT col1 + - ( 83 ) FROM tab0
----
-2
-62
-82

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 BETWEEN + col0 + col2 + - col0 + 41 AND ( col2 )
----

query I rowsort
SELECT DISTINCT - - col0 + + ( - col2 ) + + + col0 AS col1 FROM tab0 AS cor0
----
-17
164
95

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) <> + 34 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT ALL - + COUNT( * ) FROM tab2 WHERE NOT + col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5656
SELECT ALL - + COUNT ( * ) FROM tab2 WHERE NOT + col1 IS NULL
----
-3

query I rowsort
SELECT + col0 - - 93 AS col2 FROM tab0 AS cor0
----
108
180
190

query II rowsort
SELECT + 14 - + + 26 AS col2, - 8 + + col0 AS col2 FROM tab0 AS cor0
----
-12
7
-12
79
-12
89

query I rowsort
SELECT + - col2 - + 89 * col1 FROM tab2 AS cor0
----
-4562
-6021
-6893

query I rowsort
SELECT 14 - + 17 AS col1 FROM tab2 AS cor0
----
-3
-3
-3

query I rowsort
SELECT DISTINCT - col2 * col1 - - + col1 AS col1 FROM tab0 AS cor0
----
-189
-3726
-98

query I rowsort
SELECT + 36 AS col2 FROM tab1 AS cor0 WHERE + ( col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5663
SELECT ALL + CAST( + col0 AS SIGNED ) DIV - - 63 - + col1 - ( ( 87 ) ) FROM tab2 cor0
----
-138
-153
-163

skipif mysql # not compatible
query I rowsort label-5663
SELECT ALL + CAST ( + col0 AS INTEGER ) / - - 63 - + col1 - ( ( 87 ) ) FROM tab2 cor0
----
-138
-153
-163

query III rowsort
SELECT * FROM tab2 WHERE ( NULL < + col2 )
----

query I rowsort
SELECT DISTINCT - col0 - - + col2 * + - 11 - + - 8 AS col2 FROM tab1
----
-1099
-726
-831

query I rowsort
SELECT DISTINCT + 39 * + col1 FROM tab1
----
1833
195
546

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5667
SELECT ALL - CAST( NULL AS SIGNED ) * - 59 * + - col2 * - 84 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5667
SELECT ALL - CAST ( NULL AS INTEGER ) * - 59 * + - col2 * - 84 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 34 * - 95 + + col2 col2, - col0 FROM tab1 AS cor0
----
-3134
-51
-3162
-91
-3171
-85

query I rowsort
SELECT DISTINCT + 1 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
1

query I rowsort
SELECT DISTINCT + + ( - - 92 ) FROM tab1 AS cor0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5671
SELECT * FROM tab2 WHERE NOT - - 69 = ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5671
SELECT * FROM tab2 WHERE NOT - - 69 = ( + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT + + col1 * 62 - + col0 FROM tab2 AS cor0
----
3116
4079
4710

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN - + 12 AND - 81 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( 54 * ( - + 79 ) + + + 38 NOT BETWEEN NULL AND NULL ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5675
SELECT DISTINCT - 70 DIV SUM( - 9 ) * COUNT( * ) + - - 62 FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-5675
SELECT DISTINCT - 70 / SUM ( - 9 ) * COUNT ( * ) + - - 62 FROM tab0 AS cor0
----
68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT col0 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5677
SELECT ALL + CAST( NULL AS SIGNED ) + + 49 AS col2, 93 + + col0 * ( + col0 ) FROM tab1 AS cor0
----
NULL
2694
NULL
7318
NULL
8374

skipif mysql # not compatible
query II rowsort label-5677
SELECT ALL + CAST ( NULL AS INTEGER ) + + 49 AS col2, 93 + + col0 * ( + col0 ) FROM tab1 AS cor0
----
NULL
2694
NULL
7318
NULL
8374

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5678
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( + col0, + col0, - col1, + CAST( NULL AS SIGNED ), - - col1 )
----

skipif mysql # not compatible
query III rowsort label-5678
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( + col0, + col0, - col1, + CAST ( NULL AS INTEGER ), - - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5679
SELECT COUNT( DISTINCT CAST( NULL AS SIGNED ) ) DIV - 27 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5679
SELECT COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) / - 27 FROM tab2
----
0

query II rowsort
SELECT - 83 AS col0, - col2 + col1 AS col1 FROM tab0
----
-83
-98
-83
11
-83
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5681
SELECT DISTINCT col0 + + col2 * - CAST( NULL AS SIGNED ) + + - 65 * col1 + + col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5681
SELECT DISTINCT col0 + + col2 * - CAST ( NULL AS INTEGER ) + + - 65 * col1 + + col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT ( + col0 ) + - 60 * - - col2 AS col2 FROM tab1
----
-3455
-3989
-5709

onlyif mysql # aggregate syntax: 
query I rowsort label-5683
SELECT MAX( ALL - - 23 ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-5683
SELECT MAX ( ALL - - 23 ) AS col0 FROM tab2
----
23

query III rowsort
SELECT * FROM tab0 WHERE - 63 = + 21 * - - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 col1 FROM tab0
----
-79
-79
-79

query III rowsort
SELECT * FROM tab1 WHERE + ( - col0 ) NOT IN ( - - 33 * + 94, - col0 )
----

query I rowsort
SELECT ALL + 20 + + 94 AS col0 FROM tab0 AS cor0
----
114
114
114

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 32 - - col2 col2 FROM tab2 AS cor0
----
55
72
90

query I rowsort
SELECT + col0 * + + col1 + + - 72 + + col1 + 97 FROM tab0
----
123
1321
1873

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5690
SELECT + col0 / ( - - col0 ) + - col2 * + CAST( NULL AS SIGNED ) + col2 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5690
SELECT + col0 / ( - - col0 ) + - col2 * + CAST ( NULL AS INTEGER ) + col2 col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 AND + col1 + - - 57
----

query I rowsort
SELECT ALL + - col0 + + col0 + col0 + - + col1 FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT DISTINCT - col2 + - 71 FROM tab1 AS cor0
----
-130
-139
-167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5694
SELECT DISTINCT - - CAST( NULL AS SIGNED ) - - + 51 AS col0, COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-5694
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) - - + 51 AS col0, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL
3

query I rowsort
SELECT - col2 * - col0 - 65 AS col0 FROM tab2 AS cor0
----
2495
4285
993

query I rowsort
SELECT col0 * - - col1 * - + 36 FROM tab0
----
-3492
-43740
-65772

query III rowsort
SELECT ALL * FROM tab1 WHERE - 47 IN ( ( + 44 ) + - 6 + - col2, col0, - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5698
SELECT DISTINCT - + COUNT( * ) col1 FROM tab0 WHERE - col2 < NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5698
SELECT DISTINCT - + COUNT ( * ) col1 FROM tab0 WHERE - col2 < NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5699
SELECT * FROM tab1 WHERE NOT - 9 - - + col0 NOT BETWEEN + col0 AND + CAST( - + col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5699
SELECT * FROM tab1 WHERE NOT - 9 - - + col0 NOT BETWEEN + col0 AND + CAST ( - + col1 AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 26 col0 FROM tab2 AS cor0
----
26
26
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, 24 + - 11 col2 FROM tab1
----
-14
13
-47
13
-5
13

query I rowsort
SELECT ALL + + col1 + + ( + 69 ) * + 30 FROM tab0 cor0
----
2071
2091
2151

query II rowsort
SELECT + 72 AS col0, col0 AS col0 FROM tab2 AS cor0
----
72
46
72
64
72
75

query I rowsort
SELECT DISTINCT + + 77 * - col0 * ( col2 ) + - 73 + + col1 FROM tab2 AS cor0
----
-197116
-334956
-81488

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5705
SELECT ALL + - 75 + - - 36 - col0, + CAST( NULL AS SIGNED ) + + col0 AS col0 FROM tab1 AS cor0
----
-124
NULL
-130
NULL
-90
NULL

skipif mysql # not compatible
query II rowsort label-5705
SELECT ALL + - 75 + - - 36 - col0, + CAST ( NULL AS INTEGER ) + + col0 AS col0 FROM tab1 AS cor0
----
-124
NULL
-130
NULL
-90
NULL

query II rowsort
SELECT + 92 AS col2, - col1 AS col0 FROM tab0 AS cor0
----
92
-1
92
-21
92
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5707
SELECT - COUNT( * ) * + SUM( ALL - - 6 ) FROM tab2 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-5707
SELECT - COUNT ( * ) * + SUM ( ALL - - 6 ) FROM tab2 AS cor0
----
-54

query I rowsort
SELECT + + 10 * col0 * + - ( 8 ) FROM tab0 AS cor0
----
-1200
-6960
-7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 * - 32 * + - 94 col0 FROM tab2
----
87232
87232
87232

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5710
SELECT * FROM tab2 WHERE col2 NOT IN ( CAST( NULL AS SIGNED ), col0, + col2 * - col1, 89 )
----

skipif mysql # not compatible
query III rowsort label-5710
SELECT * FROM tab2 WHERE col2 NOT IN ( CAST ( NULL AS INTEGER ), col0, + col2 * - col1, 89 )
----

query I rowsort
SELECT 57 * + col0 + - col0 AS col2 FROM tab0
----
4872
5432
840

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 26 >= ( NULL )
----

query I rowsort
SELECT DISTINCT + col2 + - + col1 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT ALL 38 + - - col0 AS col1 FROM tab0 AS cor0
----
125
135
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5715
SELECT ALL - 19 + SUM( DISTINCT + 70 ) col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5715
SELECT ALL - 19 + SUM ( DISTINCT + 70 ) col0 FROM tab2 AS cor0
----
51

query I rowsort
SELECT ALL + - col0 * + col1 - + 19 AS col1 FROM tab1 AS cor0
----
-4296
-444
-733

query I rowsort
SELECT ALL + col1 * - 82 AS col1 FROM tab2
----
-4182
-5494
-6314

onlyif mysql # aggregate syntax: 
query I rowsort label-5718
SELECT - COUNT( * ) FROM tab0 WHERE - col1 * + col0 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-5718
SELECT - COUNT ( * ) FROM tab0 WHERE - col1 * + col0 > NULL
----
0

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) = NULL
----

query I rowsort
SELECT col0 - + col1 + 13 AS col1 FROM tab1
----
50
57
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5721
SELECT DISTINCT COUNT( * ) * + COUNT( * ) - ( - 85 ) FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-5721
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) - ( - 85 ) FROM tab0 AS cor0
----
94

query I rowsort
SELECT - 59 + + col0 + + col0 FROM tab0 AS cor0
----
-29
115
135

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5723
SELECT COUNT( CAST( + + 65 AS DECIMAL ) ) * + 15 FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-5723
SELECT COUNT ( CAST ( + + 65 AS REAL ) ) * + 15 FROM tab1 AS cor0
----
45

query I rowsort
SELECT DISTINCT ( + + col1 ) AS col2 FROM tab1
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 68 * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 35 * + - col1 FROM tab1
----
-1645
-175
-490

query II rowsort
SELECT - ( + col0 ), col1 FROM tab0
----
-15
81
-87
21
-97
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5728
SELECT ALL - ( - CAST( - - 53 AS SIGNED ) ) FROM tab0
----
53
53
53

skipif mysql # not compatible
query I rowsort label-5728
SELECT ALL - ( - CAST ( - - 53 AS INTEGER ) ) FROM tab0
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5729
SELECT ALL - SUM( - - 46 ) FROM tab0
----
-138

skipif mysql # not compatible
query I rowsort label-5729
SELECT ALL - SUM ( - - 46 ) FROM tab0
----
-138

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5730
SELECT DISTINCT - col0, + CAST( NULL AS SIGNED ) + col2 + - - 39 AS col1 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-5730
SELECT DISTINCT - col0, + CAST ( NULL AS INTEGER ) + col2 + - - 39 AS col1 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
46
64
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - + col1 AND + col0
----

query I rowsort
SELECT ALL + 2 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT 50 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT ALL ( - col0 ) * + 72 + - col1 * 68 FROM tab0 AS cor0
----
-6588
-7052
-7692

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5736
SELECT DISTINCT col2 AS col1 FROM tab0 AS cor0 WHERE - col2 * - CAST( - col2 AS SIGNED ) - - 29 NOT IN ( + CAST( NULL AS DECIMAL ), col2 )
----

skipif mysql # not compatible
query I rowsort label-5736
SELECT DISTINCT col2 AS col1 FROM tab0 AS cor0 WHERE - col2 * - CAST ( - col2 AS INTEGER ) - - 29 NOT IN ( + CAST ( NULL AS REAL ), col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > + ( + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 60 * + col0 + + col0 * col2 AS col0 FROM tab0 AS cor0
----
15423
1605
6090

query I rowsort
SELECT DISTINCT ( + + col2 ) * col1 FROM tab0
----
210
3807
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5741
SELECT - ( - col2 ) DIV + - 43 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5741
SELECT - ( - col2 ) / + - 43 FROM tab2
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 81 col2 FROM tab1
----
-4131
-6885
-7371

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab1 WHERE NOT ( NULL ) <= + 60
----

query I rowsort
SELECT col1 * + 61 AS col1 FROM tab2
----
3111
4087
4697

query I rowsort
SELECT col1 FROM tab1 WHERE - col1 IS NOT NULL
----
14
47
5

query I rowsort
SELECT + ( - 75 ) * + - col2 + col2 FROM tab1
----
4484
5168
7296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + + col0 ) * + + 35 + - + 73 col2 FROM tab2
----
1537
2167
2552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5748
SELECT ALL - 31 * - - CAST( NULL AS SIGNED ) + + col1 + 71 + + col2 * - col0 + col0 / + col2 + col2 * - ( + col2 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5748
SELECT ALL - 31 * - - CAST ( NULL AS INTEGER ) + + col1 + 71 + + col2 * - col0 + col0 / + col2 + col2 * - ( + col2 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 74 + + col0 * - col2 + col1 AS col1 FROM tab1 AS cor0
----
-4808
-4936
-6067

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col1 IS NOT NULL
----

query I rowsort
SELECT - col1 * - col0 + 74 FROM tab0
----
1289
171
1901

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col0 + col2 ) IN ( col2, + 87 * + col0, col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 80 AS col1 FROM tab2 cor0
----
80

query I rowsort
SELECT ALL - 48 * col0 * - col1 AS col2 FROM tab2 AS cor0
----
112608
236544
241200

query I rowsort
SELECT + + col1 * + - col2 AS col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT - col2 * 80 * + + col0 FROM tab1 cor0
----
-391680
-401200
-495040

onlyif mysql # aggregate syntax: 
query I rowsort label-5757
SELECT - MAX( + col1 ) col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5757
SELECT - MAX ( + col1 ) col2 FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5758
SELECT SUM( DISTINCT 53 ) FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-5758
SELECT SUM ( DISTINCT 53 ) FROM tab2 AS cor0
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5759
SELECT MIN( DISTINCT - - ( col0 ) ) AS col2, CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
46
NULL

skipif mysql # not compatible
query II rowsort label-5759
SELECT MIN ( DISTINCT - - ( col0 ) ) AS col2, CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
46
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5760
SELECT - MAX( ALL col1 ) col0 FROM tab1 WHERE NOT NULL = NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5760
SELECT - MAX ( ALL col1 ) col0 FROM tab1 WHERE NOT NULL = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5761
SELECT ALL - COUNT( * ) * MAX( DISTINCT - - col0 ) * 92 FROM tab1
----
-25116

skipif mysql # not compatible
query I rowsort label-5761
SELECT ALL - COUNT ( * ) * MAX ( DISTINCT - - col0 ) * 92 FROM tab1
----
-25116

onlyif mysql # aggregate syntax: 
query I rowsort label-5762
SELECT DISTINCT + 7 * - COUNT( * ) AS col0 FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-5762
SELECT DISTINCT + 7 * - COUNT ( * ) AS col0 FROM tab1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5763
SELECT ALL - - ( + + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5763
SELECT ALL - - ( + + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + - col1 + - + col1 FROM tab2 AS cor0
----
-102
-134
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT DISTINCT - COUNT( - - col2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5765
SELECT DISTINCT - COUNT ( - - col2 ) FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col1 * + col0 col1 FROM tab2
----
-2300
-4864
-4950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5767
SELECT + + CAST( + 3 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-5767
SELECT + + CAST ( + 3 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3
3
3

query I rowsort
SELECT DISTINCT - + 18 AS col0 FROM tab1 AS cor0
----
-18

query I rowsort
SELECT ALL + - 53 * + - 74 * - + 68 + col0 AS col1 FROM tab1 AS cor0
----
-266605
-266611
-266645

onlyif mysql # aggregate syntax: 
query II rowsort label-5770
SELECT 95 AS col2, COUNT( * ) FROM tab2 cor0
----
95
3

skipif mysql # not compatible
query II rowsort label-5770
SELECT 95 AS col2, COUNT ( * ) FROM tab2 cor0
----
95
3

query I rowsort
SELECT DISTINCT - 4 + - col0 AS col2 FROM tab1 AS cor0
----
-55
-89
-95

query I rowsort
SELECT + + ( + + ( - 20 ) ) FROM tab1 AS cor0
----
-20
-20
-20

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT ( NULL >= NULL ) )
----

query II rowsort
SELECT DISTINCT - 74 * + + col2 AS col2, col0 FROM tab0 AS cor0
----
-3478
15
-7326
97
-740
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5775
SELECT DISTINCT + col1 + + + CAST( + 85 AS SIGNED ) - + - col1 * - 24 FROM tab0 AS cor0
----
-1778
-398
62

skipif mysql # not compatible
query I rowsort label-5775
SELECT DISTINCT + col1 + + + CAST ( + 85 AS INTEGER ) - + - col1 * - 24 FROM tab0 AS cor0
----
-1778
-398
62

query II rowsort
SELECT col0 AS col2, 33 AS col1 FROM tab1 AS cor0
----
51
33
85
33
91
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5777
SELECT ALL - COUNT( * ) * ( + + COUNT( * ) ) AS col2 FROM tab0 AS cor0 WHERE col1 = + 10
----
0

skipif mysql # not compatible
query I rowsort label-5777
SELECT ALL - COUNT ( * ) * ( + + COUNT ( * ) ) AS col2 FROM tab0 AS cor0 WHERE col1 = + 10
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + col1 * - + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 93 + - col1 FROM tab0 WHERE col2 + + - 37 IS NOT NULL
----
-114
-174
-94

query III rowsort
SELECT * FROM tab1 WHERE + 90 BETWEEN - 2 + - col1 AND - ( - + col1 )
----

query I rowsort
SELECT DISTINCT - col0 * + ( + col1 ) * - col2 FROM tab1
----
25075
290836
68544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5782
SELECT DISTINCT col0 * - CAST( - 36 AS SIGNED ) FROM tab0
----
3132
3492
540

skipif mysql # not compatible
query I rowsort label-5782
SELECT DISTINCT col0 * - CAST ( - 36 AS INTEGER ) FROM tab0
----
3132
3492
540

query III rowsort
SELECT ALL * FROM tab2 WHERE 87 BETWEEN - - col0 * + col1 AND 94 - + 77
----

query I rowsort
SELECT ALL - 20 AS col0 FROM tab1 WHERE NOT - - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5785
SELECT - + col1 DIV + col0 AS col2, col0 AS col0 FROM tab2 AS cor0
----
-1
46
-1
64
0
75

skipif mysql # not compatible
query II rowsort label-5785
SELECT - + col1 / + col0 AS col2, col0 AS col0 FROM tab2 AS cor0
----
-1
46
-1
64
0
75

query I rowsort
SELECT col0 * 76 * + col2 * col1 * + 86 FROM tab0 AS cor0
----
119412720
373238280
62765208

query I rowsort
SELECT DISTINCT + col1 - + 85 + + 38 + 50 FROM tab0 AS cor0
----
24
4
84

query I rowsort
SELECT ALL - col2 AS col0 FROM tab2 WHERE col1 IS NOT NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-5789
SELECT ALL COUNT( * ) AS col2, 21 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9
21

skipif mysql # not compatible
query II rowsort label-5789
SELECT ALL COUNT ( * ) AS col2, 21 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5790
SELECT - MAX( col0 ) * MAX( ALL col2 ) col1 FROM tab0 AS cor0
----
-9603

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5790
SELECT - MAX ( col0 ) * MAX ( ALL col2 ) col1 FROM tab0 AS cor0
----
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5791
SELECT + CAST( NULL AS SIGNED ) * - + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5791
SELECT + CAST ( NULL AS INTEGER ) * - + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 18 * - - 29 AS col2 FROM tab0 AS cor0
----
522

query II rowsort
SELECT - - col1 * - + 62 * col1 AS col2, col2 FROM tab1 AS cor0
----
-12152
96
-136958
68
-1550
59

query I rowsort
SELECT + + col0 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5795
SELECT DISTINCT + 93 + + ( - 55 ) * + - COUNT( * ) FROM tab2 WHERE NULL IS NOT NULL
----
93

skipif mysql # not compatible
query I rowsort label-5795
SELECT DISTINCT + 93 + + ( - 55 ) * + - COUNT ( * ) FROM tab2 WHERE NULL IS NOT NULL
----
93

query I rowsort
SELECT ALL 39 + + 32 + + col2 FROM tab2 WHERE - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 5 col2 FROM tab2
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT ALL MAX( ALL 26 ) AS col1 FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-5798
SELECT ALL MAX ( ALL 26 ) AS col1 FROM tab2
----
26

query I rowsort
SELECT DISTINCT 76 FROM tab0 WHERE + ( - col0 ) + 45 + + col0 + ( - col1 ) IS NOT NULL
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5800
SELECT ALL * FROM tab0 WHERE - - col1 + - col1 + - + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5800
SELECT ALL * FROM tab0 WHERE - - col1 + - col1 + - + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT + 66 * + - col1 * - col2 * - 29 AS col1, 69 FROM tab1 AS cor0
----
-2572416
69
-564630
69
-6117144
69

query I rowsort
SELECT - ( - - col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT + 4 NOT IN ( ( col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT ALL + COUNT( ALL - - col2 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5803
SELECT ALL + COUNT ( ALL - - col2 ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5804
SELECT DISTINCT + + MIN( + col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-5804
SELECT DISTINCT + + MIN ( + col0 ) FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT DISTINCT MAX( ALL col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-5805
SELECT DISTINCT MAX ( ALL col0 ) FROM tab1
----
91

query I rowsort
SELECT - - 61 + + col2 + col0 FROM tab0 AS cor0
----
123
158
257

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 28 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col0 - - + col0 AS col2 FROM tab1 AS cor0
----
102
170
182

query I rowsort
SELECT ALL 77 + + - col2 FROM tab0 cor0
----
-22
30
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5810
SELECT DISTINCT - COUNT( * ) - ( - 65 ) col2 FROM tab0 AS cor0
----
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5810
SELECT DISTINCT - COUNT ( * ) - ( - 65 ) col2 FROM tab0 AS cor0
----
62

query II rowsort
SELECT ALL + col1 AS col1, + col1 FROM tab2
----
51
51
67
67
77
77

onlyif mysql # DIV for integer division: 
query I rowsort label-5812
SELECT col1 DIV + 16 AS col1 FROM tab2
----
3
4
4

skipif mysql # not compatible
query I rowsort label-5812
SELECT col1 / + 16 AS col1 FROM tab2
----
3
4
4

query II rowsort
SELECT DISTINCT 51, col1 FROM tab1
----
51
14
51
47
51
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5814
SELECT DISTINCT SUM( + col1 ) AS col1 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-5814
SELECT DISTINCT SUM ( + col1 ) AS col1 FROM tab2
----
195

query I rowsort
SELECT ALL 39 + - + col2 * - 81 * - - col0 AS col2 FROM tab2
----
207399
352389
85737

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + + col2 + 76 AS col1 FROM tab0 AS cor0
----
123
175
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT - - COUNT( * ) + + ( 22 ) AS col2 FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-5818
SELECT - - COUNT ( * ) + + ( 22 ) AS col2 FROM tab0 AS cor0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5819
SELECT ALL + 53 + + + MIN( ALL - col1 ) FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-5819
SELECT ALL + 53 + + + MIN ( ALL - col1 ) FROM tab2 AS cor0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5820
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0 WHERE NOT + col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5820
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0 WHERE NOT + col1 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5821
SELECT ALL + 28 * MIN( DISTINCT col1 ) AS col0 FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-5821
SELECT ALL + 28 * MIN ( DISTINCT col1 ) AS col0 FROM tab0
----
28

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT NULL >= + 12
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5823
SELECT ALL 87 DIV 57 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5823
SELECT ALL 87 / 57 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5824
SELECT DISTINCT + 93 DIV - col2 FROM tab0 AS cor0
----
-1
-9
0

skipif mysql # not compatible
query I rowsort label-5824
SELECT DISTINCT + 93 / - col2 FROM tab0 AS cor0
----
-1
-9
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5825
SELECT ALL - + col1 DIV - col0, - 48 AS col0 FROM tab1 AS cor0
----
0
-48
0
-48
0
-48

skipif mysql # not compatible
query II rowsort label-5825
SELECT ALL - + col1 / - col0, - 48 AS col0 FROM tab1 AS cor0
----
0
-48
0
-48
0
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5826
SELECT - COUNT( 7 ) * + 78 FROM tab1 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-5826
SELECT - COUNT ( 7 ) * + 78 FROM tab1 AS cor0
----
-234

query I rowsort
SELECT ALL + ( 42 ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 < NULL
----

query I rowsort
SELECT ALL - ( - - col0 ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-5829
SELECT ALL - 39 DIV + - col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5829
SELECT ALL - 39 / + - col2 FROM tab2
----
0
0
1

query II rowsort
SELECT - 1 AS col0, 64 AS col1 FROM tab2
----
-1
64
-1
64
-1
64

query II rowsort
SELECT - col0, 25 * col0 * + 23 AS col0 FROM tab2
----
-46
26450
-64
36800
-75
43125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 97 col2, 98 FROM tab1
----
-97
98
-97
98
-97
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5833
SELECT ALL COUNT( * ) * + SUM( - + col1 ) FROM tab2
----
-585

skipif mysql # not compatible
query I rowsort label-5833
SELECT ALL COUNT ( * ) * + SUM ( - + col1 ) FROM tab2
----
-585

onlyif mysql # aggregate syntax: 
query I rowsort label-5834
SELECT ALL - 7 * + - COUNT( * ) AS col2 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-5834
SELECT ALL - 7 * + - COUNT ( * ) AS col2 FROM tab2
----
21

query I rowsort
SELECT DISTINCT - 51 * - + col2 + - col1 AS col1 FROM tab2
----
1122
1963
2891

query I rowsort
SELECT - 20 AS col1 FROM tab2 WHERE NOT ( + col0 ) NOT BETWEEN ( NULL ) AND + ( + - 8 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 25 NOT BETWEEN + + col2 AND col2 * + 34 - + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 * - + 58 AS col0 FROM tab0
----
-2726
-5742
-580

query III rowsort
SELECT * FROM tab2 WHERE NULL > 51
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5840
SELECT DISTINCT - + COUNT( * ) + + - COUNT( DISTINCT + col2 ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5840
SELECT DISTINCT - + COUNT ( * ) + + - COUNT ( DISTINCT + col2 ) FROM tab1 AS cor0
----
-6

query I rowsort
SELECT col1 - - 58 AS col0 FROM tab2 AS cor0
----
109
125
135

query I rowsort
SELECT DISTINCT 88 + + 37 AS col0 FROM tab1 AS cor0
----
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5843
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + + 26 + + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5843
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + + 26 + + COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5844
SELECT + 68 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-5844
SELECT + 68 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
71

query I rowsort
SELECT - - col2 * 57 + - 22 AS col1 FROM tab2 AS cor0
----
1289
2258
3284

query I rowsort
SELECT DISTINCT 29 * col2 * - col0 - - col0 * - - col2 AS col0 FROM tab0
----
-19740
-24360
-268884

onlyif mysql # aggregate syntax: 
query II rowsort label-5847
SELECT - 14 * - - 16, COUNT( * ) AS col2 FROM tab0 WHERE - col1 IS NULL
----
-224
0

skipif mysql # not compatible
query II rowsort label-5847
SELECT - 14 * - - 16, COUNT ( * ) AS col2 FROM tab0 WHERE - col1 IS NULL
----
-224
0

query I rowsort
SELECT ( - - col2 ) * - ( ( + 41 ) ) * + 83 AS col0 FROM tab0
----
-159941
-336897
-34030

query I rowsort
SELECT + 82 * - col1 FROM tab2
----
-4182
-5494
-6314

query I rowsort
SELECT - 48 * - 36 FROM tab0
----
1728
1728
1728

query I rowsort
SELECT 93 * + col0 AS col2 FROM tab1
----
4743
7905
8463

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT NULL >= + ( + + col1 ) )
----

query I rowsort
SELECT ALL ( 79 ) AS col0 FROM tab0
----
79
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5854
SELECT ALL COUNT( * ) * - COUNT( * ) + + 96 AS col1 FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-5854
SELECT ALL COUNT ( * ) * - COUNT ( * ) + + 96 AS col1 FROM tab1 AS cor0
----
87

query II rowsort
SELECT ALL col2 AS col2, - col1 AS col1 FROM tab0 AS cor0
----
10
-21
47
-81
99
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5856
SELECT DISTINCT - col2 * + col2 * - - col1 * - + col2 DIV col2 FROM tab0 AS cor0
----
178929
2100
9801

skipif mysql # not compatible
query I rowsort label-5856
SELECT DISTINCT - col2 * + col2 * - - col1 * - + col2 / col2 FROM tab0 AS cor0
----
178929
2100
9801

query I rowsort
SELECT ALL - col0 + - - 31 FROM tab2 AS cor0 WHERE NOT + 94 IS NULL
----
-15
-33
-44

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL >= col0 + 96
----

query II rowsort
SELECT - + col1 AS col2, - col0 * + 68 FROM tab0 AS cor0
----
-1
-6596
-21
-5916
-81
-1020

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 42 AND 92
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5861
SELECT MAX( - col1 ) * + 70 AS col0 FROM tab1 AS cor0
----
-350

skipif mysql # not compatible
query I rowsort label-5861
SELECT MAX ( - col1 ) * + 70 AS col0 FROM tab1 AS cor0
----
-350

query II rowsort
SELECT DISTINCT - ( - 51 ), - 13 AS col2 FROM tab1 cor0
----
51
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5863
SELECT DISTINCT 40 * + 31, - CAST( - + ( COUNT( * ) ) AS SIGNED ) AS col1 FROM tab2
----
1240
3

skipif mysql # not compatible
query II rowsort label-5863
SELECT DISTINCT 40 * + 31, - CAST ( - + ( COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab2
----
1240
3

query I rowsort
SELECT DISTINCT + col1 * + + 68 FROM tab2
----
3468
4556
5236

onlyif mysql # aggregate syntax: 
query I rowsort label-5865
SELECT DISTINCT + MAX( DISTINCT - col0 ) * - MIN( DISTINCT - + 45 ) AS col1 FROM tab1
----
-2295

skipif mysql # not compatible
query I rowsort label-5865
SELECT DISTINCT + MAX ( DISTINCT - col0 ) * - MIN ( DISTINCT - + 45 ) AS col1 FROM tab1
----
-2295

onlyif mysql # aggregate syntax: 
query II rowsort label-5866
SELECT ALL - 72 + + COUNT( * ) AS col1, 32 FROM tab2
----
-69
32

skipif mysql # not compatible
query II rowsort label-5866
SELECT ALL - 72 + + COUNT ( * ) AS col1, 32 FROM tab2
----
-69
32

query I rowsort
SELECT ALL col2 * - col1 + + 50 AS col2 FROM tab1
----
-1294
-245
-3146

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT + - SUM( + 95 ) AS col0 FROM tab2 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-5868
SELECT + - SUM ( + 95 ) AS col0 FROM tab2 AS cor0
----
-285

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 95 - - col1 + + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( + 82 + - - col1, 36, - 64 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 + - 13 col1 FROM tab1
----
57
57
57

query I rowsort
SELECT + col2 + - + 10 FROM tab0
----
0
37
89

query I rowsort
SELECT + 49 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5874
SELECT 46 * 59 + - CAST( 28 AS SIGNED ) FROM tab2
----
2686
2686
2686

skipif mysql # not compatible
query I rowsort label-5874
SELECT 46 * 59 + - CAST ( 28 AS INTEGER ) FROM tab2
----
2686
2686
2686

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * - + 62 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + ( - col0 ) + + 60 AS col2 FROM tab1 cor0
----
-25
-31
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 58 - col1 col1 FROM tab2 AS cor0
----
-109
-125
-135

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 + + col1 * col2 + + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 8 - + col0 col1 FROM tab0 AS cor0
----
-7
-79
-89

query II rowsort
SELECT - col1 AS col0, + 49 AS col2 FROM tab2 AS cor0
----
-51
49
-67
49
-77
49

query I rowsort
SELECT col0 - + col1 + + - col1 AS col2 FROM tab2
----
-56
-59
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5882
SELECT ALL - COUNT( * ) - - 11 col2 FROM tab1
----
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5882
SELECT ALL - COUNT ( * ) - - 11 col2 FROM tab1
----
8

query I rowsort
SELECT + 58 FROM tab0 WHERE + + col2 NOT BETWEEN - col2 * + - col2 AND 31 * - col0 + + col2
----
58
58
58

query I rowsort
SELECT ALL col2 * col2 - col1 AS col0 FROM tab0
----
2128
79
9800

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5885
SELECT col2 - + col2 DIV - CAST( + - col0 AS SIGNED ) FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5885
SELECT col2 - + col2 / - CAST ( + - col0 AS INTEGER ) FROM tab2
----
23
40
58

query I rowsort
SELECT 82 - + 45 + + col0 - + + 51 - - - col0 FROM tab2
----
-14
-14
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5887
SELECT DISTINCT SUM( + ( - + CAST( + col1 AS SIGNED ) ) ) col0 FROM tab2
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5887
SELECT DISTINCT SUM ( + ( - + CAST ( + col1 AS INTEGER ) ) ) col0 FROM tab2
----
-195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5888
SELECT ALL - - COUNT( ALL + - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 WHERE NOT + - 13 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5888
SELECT ALL - - COUNT ( ALL + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 WHERE NOT + - 13 IS NULL
----
0

query I rowsort
SELECT DISTINCT - - 2 AS col2 FROM tab2 cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT DISTINCT MIN( + 32 ) AS col0 FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-5890
SELECT DISTINCT MIN ( + 32 ) AS col0 FROM tab2
----
32

query I rowsort
SELECT 96 * + col0 + col0 FROM tab0 cor0
----
1455
8439
9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5892
SELECT ALL - col2 * col2 - CAST( NULL AS SIGNED ) + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5892
SELECT ALL - col2 * col2 - CAST ( NULL AS INTEGER ) + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5893
SELECT ALL - COUNT( * ) AS col1, 56 - - - COUNT( * ) * + - COUNT( * ) * + SUM( ALL - - 16 ) AS col1 FROM tab0 AS cor0
----
-3
488

skipif mysql # not compatible
query II rowsort label-5893
SELECT ALL - COUNT ( * ) AS col1, 56 - - - COUNT ( * ) * + - COUNT ( * ) * + SUM ( ALL - - 16 ) AS col1 FROM tab0 AS cor0
----
-3
488

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - 61 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5895
SELECT - COUNT( * ) * + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5895
SELECT - COUNT ( * ) * + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT + 9 * + - col2 AS col0 FROM tab1 AS cor0
----
-531
-612
-864

query III rowsort
SELECT * FROM tab1 WHERE + 14 * + 43 + - + 9 BETWEEN NULL AND + 25
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT ALL + SUM( 30 ) FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-5898
SELECT ALL + SUM ( 30 ) FROM tab2
----
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 11 * - + col0 col0 FROM tab1
----
1001
561
935

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE NULL NOT IN ( 53 + + col2 * col0, + 81, - - col2 * + ( 5 ), - - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-5900
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL NOT IN ( 53 + + col2 * col0, + 81, - - col2 * + ( 5 ), - - col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5901
SELECT ALL - COUNT( * ) + - - 99 AS col2 FROM tab2 cor0
----
96

skipif mysql # not compatible
query I rowsort label-5901
SELECT ALL - COUNT ( * ) + - - 99 AS col2 FROM tab2 cor0
----
96

query I rowsort
SELECT + + col0 + ( + col0 ) AS col1 FROM tab1 AS cor0
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-5903
SELECT COUNT( DISTINCT - + 10 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5903
SELECT COUNT ( DISTINCT - + 10 ) AS col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT + - col2 - - 96 FROM tab2 AS cor0
----
38
56
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5905
SELECT + 20 + - + MIN( col2 ) + + 78 + + COUNT( * ) + - MIN( 49 ) * + COUNT( * ) FROM tab1 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-5905
SELECT + 20 + - + MIN ( col2 ) + + 78 + + COUNT ( * ) + - MIN ( 49 ) * + COUNT ( * ) FROM tab1 AS cor0
----
-105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5906
SELECT DISTINCT + CAST( + 58 AS SIGNED ) + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-5906
SELECT DISTINCT + CAST ( + 58 AS INTEGER ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
55

query I rowsort
SELECT + col1 + - 99 AS col2 FROM tab2 AS cor0
----
-22
-32
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5908
SELECT 27 + MIN( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-5908
SELECT 27 + MIN ( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5909
SELECT DISTINCT - CAST( NULL AS SIGNED ) - + col0 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5909
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - + col0 AS col1 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 91 + - 67 col2, + 16 FROM tab2 AS cor0
----
-158
16

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 25 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5912
SELECT ALL - 60 / + + MIN( + 79 ) + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5912
SELECT ALL - 60 / + + MIN ( + 79 ) + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT - col2 + + 79 + + 72 AS col2 FROM tab0 cor0
----
104
141
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT MAX( col2 ) AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-5914
SELECT MAX ( col2 ) AS col0 FROM tab0
----
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 26 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - ( - - 81 ) AS col0 FROM tab1 AS cor0
----
-81
-81
-81

query I rowsort
SELECT - 98 * - - col0 FROM tab1 AS cor0 WHERE NOT col2 <> NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col2 ) BETWEEN ( NULL ) AND ( - 86 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 26 * - col2 AS col2 FROM tab2 WHERE NOT 51 = ( col2 )
----
-1040
-1508
-598

query I rowsort
SELECT - ( 30 ) * 98 + col1 FROM tab0
----
-2859
-2919
-2939

query I rowsort
SELECT + col0 * 86 + - col0 AS col0 FROM tab1
----
4335
7225
7735

query I rowsort
SELECT ALL 22 AS col0 FROM tab0 WHERE NOT NULL IN ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5923
SELECT * FROM tab0 WHERE ( 18 + CAST( - col0 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5923
SELECT * FROM tab0 WHERE ( 18 + CAST ( - col0 AS INTEGER ) ) IS NULL
----

query I rowsort
SELECT ALL 7 * - 18 FROM tab0 WHERE NOT + 18 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5925
SELECT + ( - MAX( - col0 ) ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-5925
SELECT + ( - MAX ( - col0 ) ) FROM tab1
----
51

query I rowsort
SELECT col1 * 78 FROM tab0
----
1638
6318
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT DISTINCT COUNT( ALL 25 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5927
SELECT DISTINCT COUNT ( ALL 25 ) FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col2 ) BETWEEN ( + 14 * 22 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5929
SELECT ALL - ( + 5 ) + + 16 DIV col1 FROM tab2
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-5929
SELECT ALL - ( + 5 ) + + 16 / col1 FROM tab2
----
-5
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5930
SELECT - COUNT( * ) AS col0 FROM tab2 WHERE NOT col1 - - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5930
SELECT - COUNT ( * ) AS col0 FROM tab2 WHERE NOT col1 - - col2 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT col0 * 38 AS col2 FROM tab2 WHERE ( col1 ) < NULL
----

query I rowsort
SELECT DISTINCT col2 * + ( 99 ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5933
SELECT CAST( NULL AS SIGNED ) - - ( - ( col1 ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5933
SELECT CAST ( NULL AS INTEGER ) - - ( - ( col1 ) ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5934
SELECT DISTINCT CAST( AVG ( ALL + col2 ) AS SIGNED ) AS col0 FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-5934
SELECT DISTINCT CAST ( AVG ( ALL + col2 ) AS INTEGER ) AS col0 FROM tab2
----
40

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT ( - 1 ) NOT BETWEEN ( NULL ) AND ( - 23 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5936
SELECT + MIN( ALL + 26 ) AS col0 FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-5936
SELECT + MIN ( ALL + 26 ) AS col0 FROM tab1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5937
SELECT - MIN( ( - 78 ) ) FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-5937
SELECT - MIN ( ( - 78 ) ) FROM tab2
----
78

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 * col1 < + col1 * col2
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT - COUNT( DISTINCT + 59 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5939
SELECT - COUNT ( DISTINCT + 59 ) FROM tab1
----
-1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col2 * - col0 + + col0 ) < col1 * + 55
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5941
SELECT DISTINCT 5 DIV COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
0

skipif mysql # not compatible
query I rowsort label-5941
SELECT DISTINCT 5 / COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
0

query I rowsort
SELECT ALL + - col1 + 30 FROM tab1 AS cor0
----
-17
16
25

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col1 ) IN ( + col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 23 + + col2 = col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 + col1 IN ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5946
SELECT DISTINCT + MIN( col1 ) * ( ( - COUNT( * ) ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5946
SELECT DISTINCT + MIN ( col1 ) * ( ( - COUNT ( * ) ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( col1 ) = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5947
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( col1 ) = ( NULL )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5948
SELECT + ( - col2 ) DIV + col1 AS col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5948
SELECT + ( - col2 ) / + col1 AS col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 * - 44 FROM tab0 cor0
----
-3828
-4268
-660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5950
SELECT ALL ( + + COUNT( * ) ) DIV COUNT( * ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5950
SELECT ALL ( + + COUNT ( * ) ) / COUNT ( * ) AS col0 FROM tab0
----
1

query I rowsort
SELECT DISTINCT - ( - + col1 ) * + col1 FROM tab1
----
196
2209
25

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 * 80 IS NOT NULL
----

query I rowsort
SELECT - 66 * - 60 AS col2 FROM tab0
----
3960
3960
3960

onlyif mysql # aggregate syntax: 
query I rowsort label-5954
SELECT DISTINCT MIN( - - col0 ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-5954
SELECT DISTINCT MIN ( - - col0 ) AS col0 FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5955
SELECT ALL COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5955
SELECT ALL COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( + 22 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5957
SELECT + 23 DIV col2 * 88 FROM tab0 AS cor0
----
0
0
176

skipif mysql # not compatible
query I rowsort label-5957
SELECT + 23 / col2 * 88 FROM tab0 AS cor0
----
0
0
176

onlyif mysql # aggregate syntax: 
query I rowsort label-5958
SELECT ALL - + SUM( - 20 ) AS col1 FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-5958
SELECT ALL - + SUM ( - 20 ) AS col1 FROM tab0 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 WHERE + col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5959
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 WHERE + col1 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5960
SELECT - - 89 AS col2, + COUNT( * ) AS col2 FROM tab1 AS cor0
----
89
3

skipif mysql # not compatible
query II rowsort label-5960
SELECT - - 89 AS col2, + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
89
3

query I rowsort
SELECT col1 - + 74 FROM tab0 AS cor0 WHERE 0 IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5962
SELECT ALL 17 + + + SUM( - col1 ) FROM tab0 cor0
----
-86

skipif mysql # not compatible
query I rowsort label-5962
SELECT ALL 17 + + + SUM ( - col1 ) FROM tab0 cor0
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-5963
SELECT DISTINCT + + col0 + 67 - - 82 DIV + col1 FROM tab0 AS cor0
----
157
246
83

skipif mysql # not compatible
query I rowsort label-5963
SELECT DISTINCT + + col0 + 67 - - 82 / + col1 FROM tab0 AS cor0
----
157
246
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5964
SELECT DISTINCT + + ( COUNT( * ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5964
SELECT DISTINCT + + ( COUNT ( * ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 38 + col0 * col0 FROM tab0 AS cor0 WHERE ( - ( + col1 ) * col0 ) BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + 77 col1 FROM tab0 AS cor0
----
-10
-20
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5967
SELECT ALL 69 * - - SUM( - col1 ) FROM tab1 AS cor0
----
-4554

skipif mysql # not compatible
query I rowsort label-5967
SELECT ALL 69 * - - SUM ( - col1 ) FROM tab1 AS cor0
----
-4554

query I rowsort
SELECT - ( ( 27 ) ) / col2 AS col0 FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN ( NULL ) AND ( 51 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5969
SELECT + 9 - MIN( - col0 ) FROM tab0 cor0 WHERE col2 - 94 IS NOT NULL
----
106

skipif mysql # not compatible
query I rowsort label-5969
SELECT + 9 - MIN ( - col0 ) FROM tab0 cor0 WHERE col2 - 94 IS NOT NULL
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-5970
SELECT COUNT( - col1 ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5970
SELECT COUNT ( - col1 ) col1 FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 = - ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5972
SELECT DISTINCT MIN( ALL + + col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-5972
SELECT DISTINCT MIN ( ALL + + col2 ) FROM tab0
----
10

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE NOT + col2 <= ( + col2 * col1 ) AND NOT NULL IN ( 75 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5974
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( + ( col1 ) - CAST( NULL AS SIGNED ) ) AND + CAST( ( + col1 ) AS SIGNED ) AND NOT ( col0 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5974
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( + ( col1 ) - CAST ( NULL AS INTEGER ) ) AND + CAST ( ( + col1 ) AS INTEGER ) AND NOT ( col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT + 82 + - 15 FROM tab0 WHERE NOT - - col1 < ( + 12 )
----
67

query I rowsort
SELECT 37 + + 22 FROM tab2
----
59
59
59

query I rowsort
SELECT 83 + + ( col1 ) AS col2 FROM tab1
----
130
88
97

query I rowsort
SELECT + 63 + + + 27 FROM tab2 AS cor0
----
90
90
90

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( + col1 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5980
SELECT COUNT( ALL col0 ) FROM tab0 cor0 WHERE col0 = - col2
----
0

skipif mysql # not compatible
query I rowsort label-5980
SELECT COUNT ( ALL col0 ) FROM tab0 cor0 WHERE col0 = - col2
----
0

query I rowsort
SELECT ALL 49 + - col2 AS col0 FROM tab0 AS cor0
----
-50
2
39

onlyif mysql # DIV for integer division: 
query I rowsort label-5982
SELECT DISTINCT col2 * - - col2 DIV ( + ( + col2 ) ) - - col2 FROM tab2 AS cor0
----
116
46
80

skipif mysql # not compatible
query I rowsort label-5982
SELECT DISTINCT col2 * - - col2 / ( + ( + col2 ) ) - - col2 FROM tab2 AS cor0
----
116
46
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5983
SELECT ALL 42 + - - COUNT( * ) FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-5983
SELECT ALL 42 + - - COUNT ( * ) FROM tab1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT DISTINCT - - COUNT( ALL + + 42 ) * + COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5984
SELECT DISTINCT - - COUNT ( ALL + + 42 ) * + COUNT ( * ) FROM tab0 AS cor0
----
9

query I rowsort
SELECT + - col2 * - + 49 FROM tab2 cor0
----
1127
1960
2842

query I rowsort
SELECT DISTINCT 80 * - col2 FROM tab2 AS cor0
----
-1840
-3200
-4640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 * + col0 + + col0 col1 FROM tab2 AS cor0
----
119692
336750
379520

query I rowsort
SELECT DISTINCT + + col1 * - - col2 AS col2 FROM tab2 AS cor0
----
1173
3080
3886

query II rowsort
SELECT ALL + col1 + + - col0 AS col2, col0 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5990
SELECT ALL + 36 DIV + 59 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5990
SELECT ALL + 36 / + 59 AS col1 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 + - 50 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col1 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN + + 18 AND + - col0
----

query I rowsort
SELECT + + 65 * + + col0 - - + 92 / + col0 AS col2 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - 88 ) < + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = col0
----

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT + col1 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col0 AS col0, ( - + 15 ) FROM tab1
----
-51
-15
-85
-15
-91
-15

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col1 ) < 16
----

query II rowsort
SELECT ALL - 77 AS col2, col2 + 71 + + + col0 FROM tab1
----
-77
215
-77
218
-77
230

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NOT - col2 * + col0 + + 37 + 22 < + col0 * col2
----

query II rowsort
SELECT - 60 AS col0, col0 + - col2 FROM tab2
----
-60
17
-60
23
-60
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6002
SELECT COUNT( * ) * - 92 col2 FROM tab1
----
-276

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6002
SELECT COUNT ( * ) * - 92 col2 FROM tab1
----
-276

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, col1 FROM tab2
----
-46
51
-64
77
-75
67

query I rowsort
SELECT col2 * - 52 * col2 AS col1 FROM tab0
----
-114868
-509652
-5200

onlyif mysql # aggregate syntax: 
query II rowsort label-6005
SELECT ALL + ( COUNT( * ) ), 65 * + 80 AS col1 FROM tab1
----
3
5200

skipif mysql # not compatible
query II rowsort label-6005
SELECT ALL + ( COUNT ( * ) ), 65 * + 80 AS col1 FROM tab1
----
3
5200

onlyif mysql # aggregate syntax: 
query II rowsort label-6006
SELECT ALL - 8 AS col1, ( - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-8
-3

skipif mysql # not compatible
query II rowsort label-6006
SELECT ALL - 8 AS col1, ( - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-8
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6007
SELECT MAX( col2 ) * + + ( - 60 ) FROM tab2 AS cor0
----
-3480

skipif mysql # not compatible
query I rowsort label-6007
SELECT MAX ( col2 ) * + + ( - 60 ) FROM tab2 AS cor0
----
-3480

onlyif mysql # aggregate syntax: 
query I rowsort label-6008
SELECT - MAX( DISTINCT - - col0 ) + 29 AS col2 FROM tab2 cor0 WHERE NOT + 38 > - - col0 * + col1
----
-46

skipif mysql # not compatible
query I rowsort label-6008
SELECT - MAX ( DISTINCT - - col0 ) + 29 AS col2 FROM tab2 cor0 WHERE NOT + 38 > - - col0 * + col1
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, + col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

onlyif mysql # DIV for integer division: 
query I rowsort label-6010
SELECT DISTINCT + - 30 DIV - col0 + + col0 + - - col1 FROM tab2 cor0
----
141
142
97

skipif mysql # not compatible
query I rowsort label-6010
SELECT DISTINCT + - 30 / - col0 + + col0 + - - col1 FROM tab2 cor0
----
141
142
97

query I rowsort
SELECT + col2 + - - col2 * + 62 FROM tab0
----
2961
6237
630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6012
SELECT ( + + col0 ) + - col0 * + 45 * - CAST( + col0 AS SIGNED ) FROM tab2
----
184384
253200
95266

skipif mysql # not compatible
query I rowsort label-6012
SELECT ( + + col0 ) + - col0 * + 45 * - CAST ( + col0 AS INTEGER ) FROM tab2
----
184384
253200
95266

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col0 col2 FROM tab0
----
0

query I rowsort
SELECT ALL - - 23 + + + col0 * col2 AS col2 FROM tab2 AS cor0
----
1081
2583
4373

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( col0 + + col0, + col0 * 41 - col1 )
----

query I rowsort
SELECT ALL + 46 - - col1 AS col0 FROM tab1 AS cor0 WHERE ( ( NOT ( ( + - 93 * col0 ) > ( + col1 ) ) ) )
----
51
60
93

query II rowsort
SELECT ALL + col1 * + - col2 AS col2, + 31 * + col1 * + 89 + + + 40 AS col2 FROM tab1 AS cor0
----
-1344
38666
-295
13835
-3196
129713

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NOT ( col2 / - 13 - + ( - - col1 ) ) = + col0 + + col2 - - 72 * - col1
----
15
87
97

query II rowsort
SELECT DISTINCT 55, - col1 * ( - col2 ) + - ( 13 ) AS col0 FROM tab0
----
55
197
55
3794
55
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6020
SELECT + ( - 95 ) * + + MAX( DISTINCT - 60 ) + - 28 + + - COUNT( * ) AS col0 FROM tab2
----
5669

skipif mysql # not compatible
query I rowsort label-6020
SELECT + ( - 95 ) * + + MAX ( DISTINCT - 60 ) + - 28 + + - COUNT ( * ) AS col0 FROM tab2
----
5669

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6021
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) + - + COUNT( * ) AS col1 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-6021
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) + - + COUNT ( * ) AS col1 FROM tab2
----
-6

query I rowsort
SELECT 99 * + col0 FROM tab0
----
1485
8613
9603

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6023
SELECT - ( COUNT( * ) ) DIV - + 4 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6023
SELECT - ( COUNT ( * ) ) / - + 4 AS col2 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 45 col1, - col2 col1 FROM tab2
----
45
-23
45
-40
45
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-6025
SELECT - col1 DIV 80 * + col2 col0 FROM tab0
----
-47
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6025
SELECT - col1 / 80 * + col2 col0 FROM tab0
----
-47
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= col2 - - 58
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6027
SELECT 14 - 9 * ( COUNT( * ) ) FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-6027
SELECT 14 - 9 * ( COUNT ( * ) ) FROM tab2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6028
SELECT DISTINCT COUNT( * ) * + + 83 AS col2 FROM tab1
----
249

skipif mysql # not compatible
query I rowsort label-6028
SELECT DISTINCT COUNT ( * ) * + + 83 AS col2 FROM tab1
----
249

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6029
SELECT - CAST( NULL AS SIGNED ) + - ( col2 ) + + col2 + + col0 * 39 / - col2 AS col1 FROM tab2 WHERE NULL NOT IN ( + col1 + + col2 )
----

skipif mysql # not compatible
query I rowsort label-6029
SELECT - CAST ( NULL AS INTEGER ) + - ( col2 ) + + col2 + + col0 * 39 / - col2 AS col1 FROM tab2 WHERE NULL NOT IN ( + col1 + + col2 )
----

query I rowsort
SELECT DISTINCT 11 + + col2 FROM tab2 AS cor0
----
34
51
69

onlyif mysql # DIV for integer division: 
query II rowsort label-6031
SELECT ALL - col2 + - + 50 DIV 71 AS col0, col0 col2 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6031
SELECT ALL - col2 + - + 50 / 71 AS col0, col0 col2 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6032
SELECT - ( MIN( DISTINCT - col1 ) ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-6032
SELECT - ( MIN ( DISTINCT - col1 ) ) AS col0 FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6033
SELECT - + 43 * - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
387

skipif mysql # not compatible
query I rowsort label-6033
SELECT - + 43 * - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
387

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col0 FROM tab1 AS cor0 WHERE NOT - col1 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6035
SELECT col1 DIV + + col2 col1 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6035
SELECT col1 / + + col2 col1 FROM tab0 AS cor0
----
0
1
2

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 + + 71 * - + col1 ) = ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6037
SELECT + ( 63 ) DIV - + ( - col0 ) + col1 col0 FROM tab2 cor0
----
52
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6037
SELECT + ( 63 ) / - + ( - col0 ) + col1 col0 FROM tab2 cor0
----
52
67
77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 * 81 NOT IN ( - - col1 * + col2 + col1 * + col2 * - ( - + col0 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6039
SELECT ALL COUNT( - col1 ) * COUNT( * ) FROM tab0 WHERE NOT + - col1 * + col2 * - col2 / - col0 + 79 + - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6039
SELECT ALL COUNT ( - col1 ) * COUNT ( * ) FROM tab0 WHERE NOT + - col1 * + col2 * - col2 / - col0 + 79 + - col1 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6040
SELECT - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT + col1 * + - ( + - col2 ) + col1 * + col0 < + 38
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6040
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT + col1 * + - ( + - col2 ) + col1 * + col0 < + 38
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + + col0 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT ALL - col0 * - - col0 AS col2 FROM tab2
----
-2116
-4096
-5625

query I rowsort
SELECT + + 12 AS col1 FROM tab0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT 46 * - col1 FROM tab0
----
-3726
-46
-966

query I rowsort
SELECT ALL + 95 + + 47 AS col0 FROM tab1 cor0
----
142
142
142

query I rowsort
SELECT - 9 + col0 AS col0 FROM tab2 AS cor0
----
37
55
66

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - 97 ) IS NOT NULL
----

query II rowsort
SELECT ALL col0 AS col0, + ( - col2 ) AS col1 FROM tab1
----
51
-96
85
-59
91
-68

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col2 * + col2 + col2 ) IN ( col0 / + 52 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6050
SELECT COUNT( DISTINCT + col2 ) DIV - + 91 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6050
SELECT COUNT ( DISTINCT + col2 ) / - + 91 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6051
SELECT ALL - MIN( - + 90 ) + + + 82 AS col0 FROM tab0 AS cor0
----
172

skipif mysql # not compatible
query I rowsort label-6051
SELECT ALL - MIN ( - + 90 ) + + + 82 AS col0 FROM tab0 AS cor0
----
172

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 38 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col1 + + col0 col1 FROM tab2 cor0
----
-2555
-4414
-5865

query II rowsort
SELECT + - col0 AS col0, col2 AS col1 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

query I rowsort
SELECT DISTINCT col1 + - col0 + col2 + - col1 FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6056
SELECT + + col1 * CAST( NULL AS DECIMAL ) - + 41 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6056
SELECT + + col1 * CAST ( NULL AS REAL ) - + 41 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6057
SELECT - COUNT( col2 ) + - COUNT( * ) FROM tab0 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-6057
SELECT - COUNT ( col2 ) + - COUNT ( * ) FROM tab0 cor0
----
-6

query I rowsort
SELECT DISTINCT - + col0 - + col2 AS col2 FROM tab1 AS cor0
----
-144
-147
-159

onlyif mysql # DIV for integer division: 
query I rowsort label-6059
SELECT DISTINCT - col1 DIV - + col2 + - + col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-6059
SELECT DISTINCT - col1 / - + col2 + - + col1 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT ALL - 72 * - 39 AS col0 FROM tab2 AS cor0
----
2808
2808
2808

query I rowsort
SELECT DISTINCT col0 / 85 FROM tab1 WHERE NOT NULL IN ( + col2 )
----

query I rowsort
SELECT 96 FROM tab2 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6063
SELECT DISTINCT - col1 * - col0 DIV - col0 AS col1 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-6063
SELECT DISTINCT - col1 * - col0 / - col0 AS col1 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT - 49 + - 26 FROM tab0
----
-75
-75
-75

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL >= NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6066
SELECT - - ( col1 ) AS col1 FROM tab1 WHERE ( NOT ( NOT ( ( NOT - col1 + - CAST( NULL AS SIGNED ) <= NULL ) ) ) )
----

skipif mysql # not compatible
query I rowsort label-6066
SELECT - - ( col1 ) AS col1 FROM tab1 WHERE ( NOT ( NOT ( ( NOT - col1 + - CAST ( NULL AS INTEGER ) <= NULL ) ) ) )
----

query I rowsort
SELECT - 4 AS col0 FROM tab2 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL - - 54 + col1 * - - 4 FROM tab0 WHERE - 19 - - - col2 IS NOT NULL
----
138
378
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6069
SELECT + 21 - + - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
30

skipif mysql # not compatible
query I rowsort label-6069
SELECT + 21 - + - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6070
SELECT + - COUNT( * ) col1 FROM tab2 WHERE NOT + - 64 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6070
SELECT + - COUNT ( * ) col1 FROM tab2 WHERE NOT + - 64 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6071
SELECT + + COUNT( * ) FROM tab0 WHERE NOT - + col2 + col1 NOT BETWEEN + col2 AND - - 83
----
1

skipif mysql # not compatible
query I rowsort label-6071
SELECT + + COUNT ( * ) FROM tab0 WHERE NOT - + col2 + col1 NOT BETWEEN + col2 AND - - 83
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6072
SELECT - - CAST( NULL AS SIGNED ) AS col2, COUNT( * ) col1 FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6072
SELECT - - CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) col1 FROM tab0 AS cor0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6073
SELECT - - COUNT( DISTINCT col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6073
SELECT - - COUNT ( DISTINCT col1 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * 60 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6075
SELECT - - 72 DIV - 9 FROM tab2 AS cor0
----
-8
-8
-8

skipif mysql # not compatible
query I rowsort label-6075
SELECT - - 72 / - 9 FROM tab2 AS cor0
----
-8
-8
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6076
SELECT ALL - + CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-6076
SELECT ALL - + CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT ALL 28 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
28
28
28

onlyif mysql # DIV for integer division: 
query I rowsort label-6078
SELECT col1 DIV - 15 AS col1 FROM tab2 AS cor0
----
-3
-4
-5

skipif mysql # not compatible
query I rowsort label-6078
SELECT col1 / - 15 AS col1 FROM tab2 AS cor0
----
-3
-4
-5

query I rowsort
SELECT ALL 72 FROM tab2 AS cor0 WHERE NOT ( NOT ( NULL IS NOT NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + ( - col1 ) col0, + col1 - + + col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col1 * + 92 FROM tab1
----
1288
4324
460

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 53 + - 34 col2 FROM tab2 WHERE NOT + col0 / ( 70 ) NOT IN ( + + col0 * col1, + 28 / + 44 + 6 + col1 + + col0 / col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + - ( - col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 90 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( + col2 ) AND NULL
----

query I rowsort
SELECT DISTINCT + - 40 * + col1 + - + col1 FROM tab2 AS cor0
----
-2091
-2747
-3157

query I rowsort
SELECT - col0 + 32 FROM tab0
----
-55
-65
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6087
SELECT - 59 + + COUNT( * ) AS col0 FROM tab0
----
-56

skipif mysql # not compatible
query I rowsort label-6087
SELECT - 59 + + COUNT ( * ) AS col0 FROM tab0
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6088
SELECT DISTINCT * FROM tab2 WHERE CAST( NULL AS SIGNED ) = col2 + - col2
----

skipif mysql # not compatible
query III rowsort label-6088
SELECT DISTINCT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) = col2 + - col2
----

query I rowsort
SELECT DISTINCT - col2 + + col2 - - - 62 - + + 36 AS col1 FROM tab1 cor0
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6090
SELECT DISTINCT + COUNT( * ) - MAX( ALL + col2 ), + CAST( + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) AS SIGNED ) col2 FROM tab2 AS cor0
----
-55
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6090
SELECT DISTINCT + COUNT ( * ) - MAX ( ALL + col2 ), + CAST ( + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS INTEGER ) col2 FROM tab2 AS cor0
----
-55
NULL

query I rowsort
SELECT DISTINCT + + col2 FROM tab2 AS cor0 WHERE 63 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6092
SELECT DISTINCT - - col1 + + col2 + + + col2 * ( + + col2 ) DIV col2 FROM tab2 AS cor0
----
157
183
97

skipif mysql # not compatible
query I rowsort label-6092
SELECT DISTINCT - - col1 + + col2 + + + col2 * ( + + col2 ) / col2 FROM tab2 AS cor0
----
157
183
97

query I rowsort
SELECT - - col1 * 5 FROM tab2 AS cor0
----
255
335
385

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 22 NOT BETWEEN ( - col0 - - col1 ) AND col2
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6095
SELECT ALL - - ( 62 ) + - MAX( DISTINCT - - col2 ) AS col1 FROM tab1 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-6095
SELECT ALL - - ( 62 ) + - MAX ( DISTINCT - - col2 ) AS col1 FROM tab1 AS cor0
----
-34

query I rowsort
SELECT - 13 * - 57 FROM tab1 cor0
----
741
741
741

query I rowsort
SELECT ALL + ( + 32 ) - - + col1 FROM tab1 AS cor0
----
37
46
79

query II rowsort
SELECT col2, col2 AS col0 FROM tab0 WHERE + col2 < NULL
----

query I rowsort
SELECT 48 - col0 - - col2 FROM tab2
----
24
25
31

query I rowsort
SELECT ALL col0 - 51 * col0 AS col2 FROM tab0
----
-4350
-4850
-750

query I rowsort
SELECT ALL - col1 - - + 41 AS col2 FROM tab2
----
-10
-26
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6102
SELECT DISTINCT + COUNT( ALL + 90 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6102
SELECT DISTINCT + COUNT ( ALL + 90 ) FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-6103
SELECT ALL + col0 DIV 85, + col0 AS col2 FROM tab2
----
0
46
0
64
0
75

skipif mysql # not compatible
query II rowsort label-6103
SELECT ALL + col0 / 85, + col0 AS col2 FROM tab2
----
0
46
0
64
0
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6104
SELECT + 93 - - - CAST( NULL AS DECIMAL ) - - + col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6104
SELECT + 93 - - - CAST ( NULL AS REAL ) - - + col0 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 - 25 AS col0 FROM tab1
----
-30
-39
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6106
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - MIN( - 81 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6106
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - MIN ( - 81 ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT - 73 + + ( 24 ) FROM tab0
----
-49
-49
-49

query I rowsort
SELECT ALL col0 * + col2 * + 47 + col2 FROM tab0 AS cor0
----
33182
40900
451440

onlyif mysql # DIV for integer division: 
query I rowsort label-6109
SELECT ALL + 0 DIV + - col1 + col1 AS col0 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6109
SELECT ALL + 0 / + - col1 + col1 AS col0 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ( - 62 ) AS col1 FROM tab0
----
-62
-62
-62

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 BETWEEN + 76 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 65 AS col2 FROM tab1 cor0
----
-65
-65
-65

query I rowsort
SELECT DISTINCT + + col2 FROM tab0 WHERE NOT + + col2 * - col1 + col2 <> + col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col1 * + col2 IS NOT NULL )
----

query I rowsort
SELECT 55 + + - 74 FROM tab1 AS cor0
----
-19
-19
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6116
SELECT + 49 + - MAX( col1 ) col2 FROM tab0 AS cor0
----
-32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6116
SELECT + 49 + - MAX ( col1 ) col2 FROM tab0 AS cor0
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-6117
SELECT DISTINCT + 8 + 65 AS col2, COUNT( * ) col2 FROM tab1
----
73
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6117
SELECT DISTINCT + 8 + 65 AS col2, COUNT ( * ) col2 FROM tab1
----
73
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6118
SELECT COUNT( ALL + - 38 ) - + 83 FROM tab0 cor0
----
-80

skipif mysql # not compatible
query I rowsort label-6118
SELECT COUNT ( ALL + - 38 ) - + 83 FROM tab0 cor0
----
-80

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= - col1 * - + 46 * - col2 * 60
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6120
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT + col2 BETWEEN + CAST( + 16 AS SIGNED ) AND - 16 * + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6120
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT + col2 BETWEEN + CAST ( + 16 AS INTEGER ) AND - 16 * + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6121
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) + - col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6121
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6122
SELECT + + SUM( DISTINCT - col1 ) + - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-106

skipif mysql # not compatible
query I rowsort label-6122
SELECT + + SUM ( DISTINCT - col1 ) + - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-106

query II rowsort
SELECT ALL 65 * - - col1 + - + 0 + col2 AS col0, 84 FROM tab0 AS cor0
----
1375
84
164
84
5312
84

query I rowsort
SELECT DISTINCT + - col1 - + 80 FROM tab2 cor0
----
-131
-147
-157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6125
SELECT DISTINCT - ( - - 70 ) FROM tab0 WHERE NOT + 52 * CAST( 38 AS SIGNED ) * - col0 IS NULL
----
-70

skipif mysql # not compatible
query I rowsort label-6125
SELECT DISTINCT - ( - - 70 ) FROM tab0 WHERE NOT + 52 * CAST ( 38 AS INTEGER ) * - col0 IS NULL
----
-70

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - 98 IN ( + + col2, - 79, col2 - col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + ( - 51 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6128
SELECT col2 DIV - 25 col0 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6128
SELECT col2 / - 25 col0 FROM tab0
----
-1
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT - - COUNT( * ) * COUNT( * ) AS col2 FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-6129
SELECT - - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6130
SELECT ALL + COUNT( * ) - - COUNT( * ) FROM tab1 cor0 WHERE NOT + col0 IS NULL
----
6

skipif mysql # not compatible
query I rowsort label-6130
SELECT ALL + COUNT ( * ) - - COUNT ( * ) FROM tab1 cor0 WHERE NOT + col0 IS NULL
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6131
SELECT DISTINCT + AVG ( + CAST( NULL AS DECIMAL ) ) * 37 AS col0 FROM tab1 AS cor0 WHERE NOT NULL = + col0 + + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-6131
SELECT DISTINCT + AVG ( + CAST ( NULL AS REAL ) ) * 37 AS col0 FROM tab1 AS cor0 WHERE NOT NULL = + col0 + + 40
----
NULL

query I rowsort
SELECT DISTINCT col2 * - ( + 48 ) AS col2 FROM tab2 AS cor0
----
-1104
-1920
-2784

onlyif mysql # aggregate syntax: 
query I rowsort label-6133
SELECT + 49 * MAX( - 60 ) AS col2 FROM tab2 AS cor0
----
-2940

skipif mysql # not compatible
query I rowsort label-6133
SELECT + 49 * MAX ( - 60 ) AS col2 FROM tab2 AS cor0
----
-2940

query I rowsort
SELECT ALL 21 * + col2 AS col0 FROM tab1 AS cor0
----
1239
1428
2016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 76 col0 FROM tab1
----
76
76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6136
SELECT + COUNT( * ) + - 90 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-81

skipif mysql # not compatible
query I rowsort label-6136
SELECT + COUNT ( * ) + - 90 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6137
SELECT - MIN( ALL - + 62 ) AS col1 FROM tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-6137
SELECT - MIN ( ALL - + 62 ) AS col1 FROM tab0 AS cor0
----
62

query I rowsort
SELECT - - 12 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6139
SELECT ALL ( + - COUNT( * ) ) AS col1, 61 AS col2 FROM tab1 AS cor0
----
-3
61

skipif mysql # not compatible
query II rowsort label-6139
SELECT ALL ( + - COUNT ( * ) ) AS col1, 61 AS col2 FROM tab1 AS cor0
----
-3
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6140
SELECT - + 63 + - - 80 + + + CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
-4
-64
16

skipif mysql # not compatible
query I rowsort label-6140
SELECT - + 63 + - - 80 + + + CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
-4
-64
16

query II rowsort
SELECT + - col2 + 69, + ( + col2 ) AS col2 FROM tab1 AS cor0
----
-27
96
1
68
10
59

query I rowsort
SELECT ALL + + col0 + + - 1 * col2 AS col0 FROM tab0 AS cor0
----
-2
-32
77

query II rowsort
SELECT ALL + + 67 AS col2, - col1 * col0 FROM tab2 AS cor0
----
67
-2346
67
-4928
67
-5025

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6144
SELECT DISTINCT - - 76, COUNT( * ) DIV + ( - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
76
-1

skipif mysql # not compatible
query II rowsort label-6144
SELECT DISTINCT - - 76, COUNT ( * ) / + ( - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
76
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6145
SELECT + col1 DIV col1 DIV - + 33 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6145
SELECT + col1 / col1 / - + 33 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6146
SELECT + COUNT( ALL + col0 ) * - COUNT( * ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-6146
SELECT + COUNT ( ALL + col0 ) * - COUNT ( * ) AS col0 FROM tab2
----
-9

query I rowsort
SELECT ALL 69 FROM tab2 WHERE NULL IS NULL
----
69
69
69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6148
SELECT - col1 / - + CAST( NULL AS SIGNED ) AS col0, - 69 FROM tab2
----
NULL
-69
NULL
-69
NULL
-69

skipif mysql # not compatible
query II rowsort label-6148
SELECT - col1 / - + CAST ( NULL AS INTEGER ) AS col0, - 69 FROM tab2
----
NULL
-69
NULL
-69
NULL
-69

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE - + col2 IS NULL
----

query III rowsort
SELECT col1 * - col1 AS col2, + col1 AS col1, col0 FROM tab1
----
9 values hashing to f85ca5ce1928d665620faea64823a3bc

query I rowsort
SELECT ALL + 87 + + - 97 FROM tab0
----
-10
-10
-10

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 / - col1 + + 9 - + - 69 * 77 + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + 70 FROM tab0 WHERE col1 <> + col2
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6154
SELECT + SUM( ALL + 63 ) * ( MAX( ALL - - col1 ) ) + + 23 AS col0 FROM tab1 AS cor0 WHERE NULL <= + col2 * - ( 79 ) / + + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6154
SELECT + SUM ( ALL + 63 ) * ( MAX ( ALL - - col1 ) ) + + 23 AS col0 FROM tab1 AS cor0 WHERE NULL <= + col2 * - ( 79 ) / + + col2
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL NOT IN ( 82, + 57, - + 60, + col2 - - + 25, + col0 * - col1 + 79 )
----

query I rowsort
SELECT DISTINCT + + ( col1 ) + - col1 * + 88 * col1 AS col2 FROM tab0 AS cor0
----
-38787
-577287
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6157
SELECT 78 + COUNT( * ) FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6157
SELECT 78 + COUNT ( * ) FROM tab2 AS cor0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-6158
SELECT + col0 + + col1 * col1 + + col1 + - ( + col1 ) DIV - 25 FROM tab2
----
2700
4633
6073

skipif mysql # not compatible
query I rowsort label-6158
SELECT + col0 + + col1 * col1 + + col1 + - ( + col1 ) / - 25 FROM tab2
----
2700
4633
6073

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT DISTINCT - SUM( ALL + col1 ) + + SUM( + 7 ) AS col0 FROM tab0 cor0
----
-82

skipif mysql # not compatible
query I rowsort label-6159
SELECT DISTINCT - SUM ( ALL + col1 ) + + SUM ( + 7 ) AS col0 FROM tab0 cor0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6160
SELECT DISTINCT COUNT( * ) - + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6160
SELECT DISTINCT COUNT ( * ) - + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6161
SELECT ALL + + CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-6161
SELECT ALL + + CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6162
SELECT + CAST( NULL AS SIGNED ) AS col2, col1 col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6162
SELECT + CAST ( NULL AS INTEGER ) AS col2, col1 col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT DISTINCT - col2 * col1 + + + col1 FROM tab0 AS cor0
----
-189
-3726
-98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6164
SELECT DISTINCT + 16 AS col1, CAST( - col1 AS SIGNED ) col2 FROM tab2 AS cor0
----
16
-51
16
-67
16
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6164
SELECT DISTINCT + 16 AS col1, CAST ( - col1 AS INTEGER ) col2 FROM tab2 AS cor0
----
16
-51
16
-67
16
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6165
SELECT DISTINCT + SUM( - - col1 ) * COUNT( 8 ) AS col1 FROM tab0
----
309

skipif mysql # not compatible
query I rowsort label-6165
SELECT DISTINCT + SUM ( - - col1 ) * COUNT ( 8 ) AS col1 FROM tab0
----
309

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT ( - col0 IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6167
SELECT + - MIN( ALL + col2 ) * - 43 AS col1 FROM tab1 AS cor0 WHERE NOT + 58 <= + + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-6167
SELECT + - MIN ( ALL + col2 ) * - 43 AS col1 FROM tab1 AS cor0 WHERE NOT + 58 <= + + 84
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6168
SELECT + - ( + CAST( NULL AS SIGNED ) ) AS col1, ( + col0 ) FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-6168
SELECT + - ( + CAST ( NULL AS INTEGER ) ) AS col1, ( + col0 ) FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6169
SELECT + 50 - + - CAST( NULL AS SIGNED ) col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6169
SELECT + 50 - + - CAST ( NULL AS INTEGER ) col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query I rowsort label-6170
SELECT DISTINCT 75 DIV 74 + - col1 col2 FROM tab0
----
-20
-80
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6170
SELECT DISTINCT 75 / 74 + - col1 col2 FROM tab0
----
-20
-80
0

query I rowsort
SELECT + 89 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
89
89
89

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( + col2 ) ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6173
SELECT DISTINCT MAX( - 71 ) FROM tab0 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-6173
SELECT DISTINCT MAX ( - 71 ) FROM tab0 AS cor0
----
-71

query II rowsort
SELECT + - 51 * + + col2 * - - col2 AS col2, col2 FROM tab0 cor0
----
-112659
47
-499851
99
-5100
10

query I rowsort
SELECT DISTINCT + 68 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - 91 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT ALL SUM( + 41 ) FROM tab0 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-6176
SELECT ALL SUM ( + 41 ) FROM tab0 AS cor0
----
123

query I rowsort
SELECT - col0 * 48 FROM tab1 cor0
----
-2448
-4080
-4368

query II rowsort
SELECT ALL - 28, + col2 - - + col0 AS col1 FROM tab1
----
-28
144
-28
147
-28
159

query I rowsort
SELECT DISTINCT 71 + - - 91 FROM tab0
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-6180
SELECT ALL COUNT( * ) * + + 11 AS col1 FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-6180
SELECT ALL COUNT ( * ) * + + 11 AS col1 FROM tab2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT DISTINCT - 35 + - MIN( ALL - - col1 ) + + COUNT( * ) FROM tab2
----
-83

skipif mysql # not compatible
query I rowsort label-6181
SELECT DISTINCT - 35 + - MIN ( ALL - - col1 ) + + COUNT ( * ) FROM tab2
----
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 34 * col2 col1 FROM tab2 WHERE - 30 NOT BETWEEN NULL AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6183
SELECT + CAST( + - col0 AS SIGNED ) FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-6183
SELECT + CAST ( + - col0 AS INTEGER ) FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6184
SELECT DISTINCT + col0 + - col2 DIV - CAST( + 99 AS SIGNED ) FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6184
SELECT DISTINCT + col0 + - col2 / - CAST ( + 99 AS INTEGER ) FROM tab2 AS cor0
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6185
SELECT DISTINCT - ( + + CAST( NULL AS SIGNED ) ) - + - col0 / + col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6185
SELECT DISTINCT - ( + + CAST ( NULL AS INTEGER ) ) - + - col0 / + col2 FROM tab0 AS cor0
----
NULL

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT + 39 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query III rowsort
SELECT * FROM tab2 WHERE - col0 <> - + col2 + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - 70 * - 54 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 018cafe8571bde1126d6e2339093654c

onlyif mysql # aggregate syntax: 
query I rowsort label-6189
SELECT DISTINCT - COUNT( * ) * - 3 * - SUM( DISTINCT - col2 ) col1 FROM tab1 AS cor0
----
2007

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6189
SELECT DISTINCT - COUNT ( * ) * - 3 * - SUM ( DISTINCT - col2 ) col1 FROM tab1 AS cor0
----
2007

query I rowsort
SELECT col2 * - col2 + - col2 * col2 FROM tab1 cor0
----
-18432
-6962
-9248

query I rowsort
SELECT - 55 * col0 AS col2 FROM tab2 AS cor0
----
-2530
-3520
-4125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6192
SELECT - CAST( - + col1 AS SIGNED ) FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-6192
SELECT - CAST ( - + col1 AS INTEGER ) FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT - + ( col0 ) * + + col2 AS col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT - + SUM( DISTINCT + + col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-6194
SELECT - + SUM ( DISTINCT + + col2 ) FROM tab0 AS cor0
----
-156

query I rowsort
SELECT ALL 44 * + - 75 FROM tab2
----
-3300
-3300
-3300

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col2 > NULL
----

query I rowsort
SELECT col0 * - 95 AS col1 FROM tab0
----
-1425
-8265
-9215

onlyif mysql # aggregate syntax: 
query I rowsort label-6198
SELECT ALL COUNT( DISTINCT - 54 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6198
SELECT ALL COUNT ( DISTINCT - 54 ) FROM tab0
----
1

query II rowsort
SELECT 46 AS col2, 69 FROM tab2
----
46
69
46
69
46
69

query II rowsort
SELECT ALL col2 AS col2, - col2 AS col2 FROM tab1
----
59
-59
68
-68
96
-96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 17 + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6202
SELECT ALL + 25 * COUNT( * ) FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-6202
SELECT ALL + 25 * COUNT ( * ) FROM tab0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6203
SELECT DISTINCT - ( - ( + MAX( DISTINCT - col0 ) ) ) * 56 AS col0 FROM tab2 AS cor0
----
-2576

skipif mysql # not compatible
query I rowsort label-6203
SELECT DISTINCT - ( - ( + MAX ( DISTINCT - col0 ) ) ) * 56 AS col0 FROM tab2 AS cor0
----
-2576

query II rowsort
SELECT ALL - - 67 AS col1, col1 FROM tab2 AS cor0
----
67
51
67
67
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6205
SELECT DISTINCT - SUM( DISTINCT + + 46 ) FROM tab1 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-6205
SELECT DISTINCT - SUM ( DISTINCT + + 46 ) FROM tab1 AS cor0
----
-46

query I rowsort
SELECT + - 56 + col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT + col2 + - col0 IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 85 col0 FROM tab1
----
1190
3995
425

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-6209
SELECT - - COUNT( * ) col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6209
SELECT - - COUNT ( * ) col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-6210
SELECT DISTINCT - col2 DIV 7 FROM tab2
----
-3
-5
-8

skipif mysql # not compatible
query I rowsort label-6210
SELECT DISTINCT - col2 / 7 FROM tab2
----
-3
-5
-8

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 NOT IN ( - - 42 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col0 * - ( 89 ) + + + col2 + + + 79 + + col0 * + col2 AS col1 FROM tab0 AS cor0
----
-504
-6784
1148

onlyif mysql # DIV for integer division: 
query I rowsort label-6213
SELECT DISTINCT + col0 DIV + 56 col0 FROM tab0 cor0 WHERE - 87 * col2 IS NOT NULL
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6213
SELECT DISTINCT + col0 / + 56 col0 FROM tab0 cor0 WHERE - 87 * col2 IS NOT NULL
----
0
1

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - 75 + - - col0 FROM tab1 AS cor0
----
-24
10
16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6216
SELECT CAST( NULL AS DECIMAL ) / col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6216
SELECT CAST ( NULL AS REAL ) / col1 AS col1 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT col1 AS col1, 10 * - col1 * + + col1 * col0 AS col0 FROM tab0
----
1
-970
21
-383670
81
-984150

query II rowsort
SELECT DISTINCT col0 AS col1, + col2 FROM tab2
----
46
23
64
40
75
58

query I rowsort
SELECT + - col0 FROM tab1 WHERE NULL >= - 96
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6220
SELECT COUNT( * ) * - 79 FROM tab2
----
-237

skipif mysql # not compatible
query I rowsort label-6220
SELECT COUNT ( * ) * - 79 FROM tab2
----
-237

query I rowsort
SELECT DISTINCT 55 * + col1 AS col0 FROM tab2
----
2805
3685
4235

query I rowsort
SELECT ALL - 74 * - 56 FROM tab1
----
4144
4144
4144

query I rowsort
SELECT ALL 82 * - col0 FROM tab1
----
-4182
-6970
-7462

onlyif mysql # DIV for integer division: 
query I rowsort label-6224
SELECT DISTINCT - col0 DIV - + col2 FROM tab0
----
0
8

skipif mysql # not compatible
query I rowsort label-6224
SELECT DISTINCT - col0 / - + col2 FROM tab0
----
0
8

query I rowsort
SELECT 48 - - + 49 AS col1 FROM tab2
----
97
97
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 41 / + col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 44 <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6228
SELECT ALL + 0 - + ( + - col1 ) + + + col1 * - CAST( NULL AS SIGNED ) + + + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6228
SELECT ALL + 0 - + ( + - col1 ) + + + col1 * - CAST ( NULL AS INTEGER ) + + + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 51 - + + col2 FROM tab2 AS cor0
----
-7
11
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6230
SELECT - COUNT( * ) + + ( - ( + CAST( NULL AS SIGNED ) ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6230
SELECT - COUNT ( * ) + + ( - ( + CAST ( NULL AS INTEGER ) ) ) FROM tab0
----
NULL

query I rowsort
SELECT ALL + col1 * + col2 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6233
SELECT + col1 DIV - + 47 col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6233
SELECT + col1 / - + 47 col1 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT ALL 71 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6235
SELECT + - 57, 14 FROM tab0 WHERE NOT - col2 - CAST( NULL AS SIGNED ) - - + col0 + col1 * + + ( - - col1 ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-6235
SELECT + - 57, 14 FROM tab0 WHERE NOT - col2 - CAST ( NULL AS INTEGER ) - - + col0 + col1 * + + ( - - col1 ) IS NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 63 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT - 58 + + col0 + - col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-50
-63
-71

query I rowsort
SELECT ( - + 80 ) * col2 FROM tab2 AS cor0
----
-1840
-3200
-4640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 col0 FROM tab0 AS cor0 WHERE NOT ( 45 <> 87 )
----

query II rowsort
SELECT DISTINCT - 94, - col2 AS col2 FROM tab1 AS cor0
----
-94
-59
-94
-68
-94
-96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + ( + col2 ) BETWEEN NULL AND - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 + - col1 IS NOT NULL
----

query I rowsort
SELECT - col1 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 + + col1 BETWEEN NULL AND - col1 + - 49 * + - col1
----

query II rowsort
SELECT ALL + + 12, col1 * - col1 + - col2 AS col0 FROM tab2 AS cor0
----
12
-2624
12
-4547
12
-5969

onlyif mysql # DIV for integer division: 
query I rowsort label-6245
SELECT + + 37 DIV col0 DIV - - col0 * - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6245
SELECT + + 37 / col0 / - - col0 * - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - col1 AS col0 FROM tab1 WHERE NULL NOT BETWEEN col2 - + - 59 AND NULL
----

query I rowsort
SELECT ALL col2 * + + 20 AS col2 FROM tab1
----
1180
1360
1920

query I rowsort
SELECT ALL + - col2 + + ( - col2 ) * 58 - col2 FROM tab1 WHERE - col1 IS NOT NULL
----
-3540
-4080
-5760

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN NULL AND - + 35 * 45 * - col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col2 - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6251
SELECT - - ( + + COUNT( * ) ) + + - COUNT( 33 ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6251
SELECT - - ( + + COUNT ( * ) ) + + - COUNT ( 33 ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col2 AS col1 FROM tab2 cor0 WHERE NOT NULL < - 67 * + 67
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6253
SELECT - - ( - COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6253
SELECT - - ( - COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6254
SELECT 75 * - CAST( - 18 AS SIGNED ) - - - 73 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2feb0068d427a9e1819551550e161699

skipif mysql # not compatible
query I rowsort label-6254
SELECT 75 * - CAST ( - 18 AS INTEGER ) - - - 73 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2feb0068d427a9e1819551550e161699

onlyif mysql # aggregate syntax: 
query I rowsort label-6255
SELECT DISTINCT MIN( ALL + 92 ) * + - COUNT( * ) * 50 + + 21 AS col0 FROM tab1
----
-13779

skipif mysql # not compatible
query I rowsort label-6255
SELECT DISTINCT MIN ( ALL + 92 ) * + - COUNT ( * ) * 50 + + 21 AS col0 FROM tab1
----
-13779

onlyif mysql # aggregate syntax: 
query I rowsort label-6256
SELECT + COUNT( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-6256
SELECT + COUNT ( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

query I rowsort
SELECT ALL 78 + 28 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e3a970c661a05070afa8a3ed8dca742e

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 51 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE 26 = + + 16 + - 31
----
0

skipif mysql # not compatible
query I rowsort label-6259
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE 26 = + + 16 + - 31
----
0

query I rowsort
SELECT 37 + - - 23 * col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - + col1 AS col1, 77 FROM tab1 AS cor0
----
-14
77
-47
77
-5
77

query I rowsort
SELECT DISTINCT + - 13 * - + col0 + col2 + col2 * col2 * - 82 AS col0 FROM tab0 AS cor0
----
-180896
-7059
-802322

query I rowsort
SELECT DISTINCT col0 * - 36 FROM tab2 AS cor0
----
-1656
-2304
-2700

query I rowsort
SELECT 55 + - col1 + + - col1 - - ( + ( - col1 ) ) AS col2 FROM tab1 AS cor0
----
-86
13
40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6265
SELECT - CAST( NULL AS SIGNED ) + col1 - + 84 / - + col2 AS col0, 85 AS col2 FROM tab1 cor0
----
NULL
85
NULL
85
NULL
85

skipif mysql # not compatible
query II rowsort label-6265
SELECT - CAST ( NULL AS INTEGER ) + col1 - + 84 / - + col2 AS col0, 85 AS col2 FROM tab1 cor0
----
NULL
85
NULL
85
NULL
85

onlyif mysql # DIV for integer division: 
query I rowsort label-6266
SELECT DISTINCT 80 DIV + + col2 AS col0 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6266
SELECT DISTINCT 80 / + + col2 AS col0 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT + - 78 + col2 * + col0 + col2 FROM tab0 cor0
----
674
802
9624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6268
SELECT 69 + CAST( NULL AS SIGNED ) + - SUM( ALL - col2 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6268
SELECT 69 + CAST ( NULL AS INTEGER ) + - SUM ( ALL - col2 ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - 58 * 89 AS col0 FROM tab0
----
-5162

query I rowsort
SELECT DISTINCT col1 * col2 + col1 AS col2 FROM tab0
----
100
231
3888

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + - col1 ) col0 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT ALL col1 + - ( - 86 ) AS col2 FROM tab2 AS cor0
----
137
153
163

query I rowsort
SELECT 44 + + 90 + + col0 FROM tab1 AS cor0 WHERE ( NOT 64 / col1 + col2 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6274
SELECT + COUNT( * ) - + ( - + 26 ) FROM tab1 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-6274
SELECT + COUNT ( * ) - + ( - + 26 ) FROM tab1 AS cor0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6275
SELECT DISTINCT 60 - - + COUNT( * ) + + + 76 AS col0 FROM tab2 cor0
----
139

skipif mysql # not compatible
query I rowsort label-6275
SELECT DISTINCT 60 - - + COUNT ( * ) + + + 76 AS col0 FROM tab2 cor0
----
139

query II rowsort
SELECT + col1 AS col2, - 60 * - col1 FROM tab2
----
51
3060
67
4020
77
4620

onlyif mysql # aggregate syntax: 
query I rowsort label-6277
SELECT DISTINCT COUNT( ALL - col2 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6277
SELECT DISTINCT COUNT ( ALL - col2 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT - - 97 * - col2 * - col2 * 30 FROM tab2 AS cor0
----
1539390
4656000
9789240

query I rowsort
SELECT + + col0 * - + 43 + col2 FROM tab0 AS cor0
----
-3731
-4072
-598

query I rowsort
SELECT + col0 * + 40 AS col1 FROM tab1 AS cor0 WHERE NOT col1 * + col0 NOT BETWEEN NULL AND ( + col1 )
----

query I rowsort
SELECT DISTINCT col1 + - col2 FROM tab2 AS cor0 WHERE NOT NULL >= + ( 42 ) / + 17
----

query I rowsort
SELECT DISTINCT col0 + + + 69 FROM tab0 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT ALL + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-6283
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) < NULL
----
0

query II rowsort
SELECT DISTINCT + 34, 1 AS col0 FROM tab2
----
34
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6285
SELECT DISTINCT MIN( ALL - - CAST( col2 AS SIGNED ) ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-6285
SELECT DISTINCT MIN ( ALL - - CAST ( col2 AS INTEGER ) ) FROM tab0
----
10

query II rowsort
SELECT DISTINCT 22, 87 AS col0 FROM tab0
----
22
87

query I rowsort
SELECT ( - 76 ) FROM tab2, tab2 AS cor0
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

query II rowsort
SELECT - col1 AS col1, - col0 AS col2 FROM tab0
----
-1
-97
-21
-87
-81
-15

query II rowsort
SELECT + + 86, col0 AS col0 FROM tab2 AS cor0
----
86
46
86
64
86
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT ALL SUM( ALL ( - - col1 ) ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-6290
SELECT ALL SUM ( ALL ( - - col1 ) ) FROM tab2 AS cor0
----
195

query III rowsort
SELECT + col0 AS col0, - 49 AS col1, 33 + + - 46 * col0 - - - col0 + - + col0 - + col1 * - col2 FROM tab0 AS cor0
----
9 values hashing to 99a68e737e0f1235de4223459af0949c

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6292
SELECT - SUM( DISTINCT CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6292
SELECT - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 57 + + col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT ALL - SUM( DISTINCT - + col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-6294
SELECT ALL - SUM ( DISTINCT - + col1 ) FROM tab2 AS cor0
----
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col0 * + - col2 col2 FROM tab1
----
4947
5100
6279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6296
SELECT ALL - + col1 + + + CAST( + + 10 AS SIGNED ) FROM tab2 AS cor0
----
-41
-57
-67

skipif mysql # not compatible
query I rowsort label-6296
SELECT ALL - + col1 + + + CAST ( + + 10 AS INTEGER ) FROM tab2 AS cor0
----
-41
-57
-67

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * 84 + + 1 BETWEEN + + 16 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6298
SELECT DISTINCT + - ( col2 ) DIV + + 59 + ( + - col2 ) - + col1 FROM tab1 cor0
----
-111
-116
-65

skipif mysql # not compatible
query I rowsort label-6298
SELECT DISTINCT + - ( col2 ) / + + 59 + ( + - col2 ) - + col1 FROM tab1 cor0
----
-111
-116
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT ALL + COUNT( * ) * + + MAX( DISTINCT - col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6299
SELECT ALL + COUNT ( * ) * + + MAX ( DISTINCT - col1 ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6300
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6300
SELECT DISTINCT + + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 13 < NULL
----

query I rowsort
SELECT + ( - 44 ) FROM tab2 AS cor0
----
-44
-44
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6303
SELECT - + CAST( 65 AS SIGNED ) * + COUNT( * ) - 76 FROM tab0 AS cor0
----
-271

skipif mysql # not compatible
query I rowsort label-6303
SELECT - + CAST ( 65 AS INTEGER ) * + COUNT ( * ) - 76 FROM tab0 AS cor0
----
-271

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT ALL COUNT( - - 19 ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6304
SELECT ALL COUNT ( - - 19 ) col1 FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 WHERE - 36 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 AS col2, col1 col2 FROM tab1
----
59
5
68
47
96
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) - col2 col0 FROM tab2
----
28
37
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6308
SELECT col0 - + - CAST( NULL AS DECIMAL ) * 4 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6308
SELECT col0 - + - CAST ( NULL AS REAL ) * 4 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6309
SELECT 50 + + + ( MIN( + col0 ) ) col0 FROM tab0 AS cor0
----
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6309
SELECT 50 + + + ( MIN ( + col0 ) ) col0 FROM tab0 AS cor0
----
65

query II rowsort
SELECT - col0, col2 * + + col2 AS col1 FROM tab0 AS cor0
----
-15
2209
-87
100
-97
9801

query I rowsort
SELECT DISTINCT ( + 97 ) FROM tab0, tab2 AS cor0
----
97

query I rowsort
SELECT ALL 46 * - col1 AS col1 FROM tab2
----
-2346
-3082
-3542

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6313
SELECT + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT 10 * + col0 > ( - - col2 )
----

skipif mysql # not compatible
query I rowsort label-6313
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT 10 * + col0 > ( - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6314
SELECT DISTINCT COUNT( col0 ) FROM tab0 AS cor0 WHERE NOT NULL < col1
----
0

skipif mysql # not compatible
query I rowsort label-6314
SELECT DISTINCT COUNT ( col0 ) FROM tab0 AS cor0 WHERE NOT NULL < col1
----
0

query I rowsort
SELECT - col2 * + ( col2 ) - - + 81 * col1 AS col0 FROM tab0 AS cor0
----
-9720
1601
4352

query I rowsort
SELECT ALL - col2 FROM tab2 cor0 WHERE NOT + col0 - + + col1 < + - col0
----
-23
-40
-58

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 IN ( + col1, col2 + - col0, + 82, - 72 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6318
SELECT ( + col1 ) DIV + col2 + 77 FROM tab0
----
77
78
79

skipif mysql # not compatible
query I rowsort label-6318
SELECT ( + col1 ) / + col2 + 77 FROM tab0
----
77
78
79

query I rowsort
SELECT + ( + 57 ) FROM tab2
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6320
SELECT - MIN( - - col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-6320
SELECT - MIN ( - - col2 ) FROM tab0
----
-10

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 WHERE - + col1 + + col1 + - - 81 * - col0 < - 30
----
-14
-47
-5

query I rowsort
SELECT 62 + + + col1 FROM tab0
----
143
63
83

query I rowsort
SELECT ALL col1 + + col0 FROM tab0 WHERE + col1 IS NOT NULL
----
108
96
98

query I rowsort
SELECT DISTINCT 20 + - - col2 AS col0 FROM tab0
----
119
30
67

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 AS cor0 WHERE NOT 56 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 77 + + col2 FROM tab0 AS cor0
----
124
176
87

query I rowsort
SELECT + + col1 + - - 22 AS col2 FROM tab0 AS cor0
----
103
23
43

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 32 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( + col0 ) * - + 16 FROM tab2 AS cor0
----
-1024
-1200
-736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6330
SELECT ALL - + ( - ( - CAST( col0 AS SIGNED ) ) ) FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-6330
SELECT ALL - + ( - ( - CAST ( col0 AS INTEGER ) ) ) FROM tab2 AS cor0
----
-46
-64
-75

query II rowsort
SELECT col0, + col2 + - col0 * - ( - 32 ) AS col0 FROM tab2
----
46
-1449
64
-2008
75
-2342

onlyif mysql # DIV for integer division: 
query I rowsort label-6332
SELECT + col2 - - 71 DIV col2 AS col0 FROM tab1 AS cor0
----
60
69
96

skipif mysql # not compatible
query I rowsort label-6332
SELECT + col2 - - 71 / col2 AS col0 FROM tab1 AS cor0
----
60
69
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6333
SELECT ALL + - CAST( NULL AS SIGNED ) * + col0 + + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6333
SELECT ALL + - CAST ( NULL AS INTEGER ) * + col0 + + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col0 * + + col1 * + 25 + + col1 + 90 / - col0 FROM tab1 AS cor0 WHERE - col1 < NULL
----

query I rowsort
SELECT - col2 + + - col2 * - + col0 FROM tab0 AS cor0
----
658
860
9504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6336
SELECT col2 * - + col1 + 59 + - - col1 + + col1 / - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6336
SELECT col2 * - + col1 + 59 + - - col1 + + col1 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6337
SELECT + ( COUNT( - 81 ) ) + - + 19 FROM tab0 cor0
----
-16

skipif mysql # not compatible
query I rowsort label-6337
SELECT + ( COUNT ( - 81 ) ) + - + 19 FROM tab0 cor0
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6338
SELECT * FROM tab0 WHERE - + CAST( NULL AS SIGNED ) <> - - col2 / + - 4 + - 23
----

skipif mysql # not compatible
query III rowsort label-6338
SELECT * FROM tab0 WHERE - + CAST ( NULL AS INTEGER ) <> - - col2 / + - 4 + - 23
----

query I rowsort
SELECT - col0 * + ( - 92 ) AS col2 FROM tab2
----
4232
5888
6900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col1 FROM tab0 cor0 WHERE 52 BETWEEN NULL AND + 36
----

query I rowsort
SELECT + + 45 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 * col0 <> NULL
----

query I rowsort
SELECT ALL - - col2 FROM tab1 WHERE NULL IS NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6344
SELECT + CAST( - + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-6344
SELECT + CAST ( - + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-6345
SELECT + 47 DIV - ( col2 ) FROM tab0 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-6345
SELECT + 47 / - ( col2 ) FROM tab0 AS cor0
----
-1
-4
0

query I rowsort
SELECT ALL - + col2 * - - col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT col1 * col1 + - col1 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * + 2 FROM tab2 AS cor0
----
128
150
92

query I rowsort
SELECT - col2 * - - 7 + 54 + + - col1 FROM tab2 AS cor0
----
-158
-303
-419

query I rowsort
SELECT ALL 60 * - - 35 * col2 AS col1 FROM tab2 AS cor0
----
121800
48300
84000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6351
SELECT + + CAST( NULL AS SIGNED ) * COUNT( * ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6351
SELECT + + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 * 33 AS col2 FROM tab2
----
1320
1914
759

query I rowsort
SELECT + col2 * - 51 * - col2 FROM tab2
----
171564
26979
81600

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT 28 <= + col0
----

query II rowsort
SELECT ( - 30 ), + col1 FROM tab2
----
-30
51
-30
67
-30
77

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 = 22
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6357
SELECT DISTINCT COUNT( * ) * COUNT( ALL + col1 ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-6357
SELECT DISTINCT COUNT ( * ) * COUNT ( ALL + col1 ) FROM tab0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6358
SELECT + 93 / + AVG ( - + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6358
SELECT + 93 / + AVG ( - + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + col2 + 8 FROM tab1 AS cor0
----
104
67
76

query I rowsort
SELECT ALL + 74 + + col2 + - 85 FROM tab0 AS cor0
----
-1
36
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6361
SELECT - COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6361
SELECT - COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-9

query II rowsort
SELECT DISTINCT + col2 AS col0, col0 + - - col1 FROM tab2
----
23
97
40
141
58
142

query III rowsort
SELECT * FROM tab2 WHERE col0 / 3 / - col1 * 88 * - col1 IS NULL
----

query I rowsort
SELECT DISTINCT - + col1 + + col0 * + 51 FROM tab1 cor0
----
2587
4330
4594

query I rowsort
SELECT DISTINCT - 70 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col1 + + 59 FROM tab2 AS cor0
----
-18
-8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6367
SELECT DISTINCT COUNT( * ) + 43 FROM tab1 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-6367
SELECT DISTINCT COUNT ( * ) + 43 FROM tab1 AS cor0
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 20 + 63 * col0 col0 FROM tab0 cor0
----
5461
6091
925

query II rowsort
SELECT - 88 - - col0 AS col2, 69 FROM tab1 cor0 WHERE 0 * + col2 IS NULL
----

query I rowsort
SELECT DISTINCT col2 * + 94 * + col0 - - - 54 AS col2 FROM tab0 AS cor0
----
66216
81726
902628

query I rowsort
SELECT DISTINCT + ( + + 4 ) * - 32 + + col2 - - col1 * + col2 - - col1 FROM tab2 AS cor0
----
1119
3069
3883

query I rowsort
SELECT col0 - + - 45 + - col2 FROM tab0 AS cor0
----
122
13
43

query I rowsort
SELECT DISTINCT - col0 + 47 AS col0 FROM tab2 AS cor0
----
-17
-28
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6374
SELECT 82 DIV + 3 - + col0 + - ( 5 ) FROM tab1
----
-29
-63
-69

skipif mysql # not compatible
query I rowsort label-6374
SELECT 82 / + 3 - + col0 + - ( 5 ) FROM tab1
----
-29
-63
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6375
SELECT DISTINCT - ( + col0 ) + - CAST( - col2 AS SIGNED ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6375
SELECT DISTINCT - ( + col0 ) + - CAST ( - col2 AS INTEGER ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + ( - - 50 ) AS col0 FROM tab0
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6377
SELECT ALL MAX( - + col1 ) AS col0 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-6377
SELECT ALL MAX ( - + col1 ) AS col0 FROM tab2
----
-51

query II rowsort
SELECT col2, 54 FROM tab1
----
59
54
68
54
96
54

query II rowsort
SELECT ALL - col1 AS col2, col2 + + col0 + + col2 FROM tab0
----
-1
295
-21
107
-81
109

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( + 87 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6381
SELECT ALL + COUNT( * ) col2, 2 AS col0 FROM tab2 AS cor0
----
3
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6381
SELECT ALL + COUNT ( * ) col2, 2 AS col0 FROM tab2 AS cor0
----
3
2

query I rowsort
SELECT DISTINCT 34 FROM tab0 AS cor0 WHERE 67 IS NULL
----

query II rowsort
SELECT ALL - 90 AS col2, 68 FROM tab1 AS cor0
----
-90
68
-90
68
-90
68

query II rowsort
SELECT + - col2 AS col0, - 40 AS col1 FROM tab0 cor0
----
-10
-40
-47
-40
-99
-40

query II rowsort
SELECT DISTINCT + 25 AS col1, - 33 * + + 36 * + col0 FROM tab0 AS cor0
----
25
-103356
25
-115236
25
-17820

onlyif mysql # aggregate syntax: 
query I rowsort label-6386
SELECT - MIN( + - col2 ) AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-6386
SELECT - MIN ( + - col2 ) AS col2 FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6387
SELECT DISTINCT - + 16 * - COUNT( * ) AS col0 FROM tab1 cor0
----
48

skipif mysql # not compatible
query I rowsort label-6387
SELECT DISTINCT - + 16 * - COUNT ( * ) AS col0 FROM tab1 cor0
----
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 92 col1 FROM tab1 AS cor0
----
92
92
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6389
SELECT + MAX( + - 88 ) FROM tab2 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-6389
SELECT + MAX ( + - 88 ) FROM tab2 AS cor0
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6390
SELECT + MAX( col1 ) DIV - + 5 AS col2 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6390
SELECT + MAX ( col1 ) / - + 5 AS col2 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT DISTINCT - col1 * - col0 + + + col2 FROM tab0 AS cor0
----
1262
1837
196

query II rowsort
SELECT - + col2 * 92, col0 + - - col2 AS col1 FROM tab2 cor0
----
-2116
69
-3680
104
-5336
133

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col1 BETWEEN NULL AND - + col1 * + + 42
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 87 * - col0 col1 FROM tab1
----
-4437
-7395
-7917

query I rowsort
SELECT col1 * ( + 52 ) + - col2 FROM tab2
----
2629
3426
3964

onlyif mysql # aggregate syntax: 
query I rowsort label-6396
SELECT DISTINCT 59 + + COUNT( * ) AS col1 FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-6396
SELECT DISTINCT 59 + + COUNT ( * ) AS col1 FROM tab2
----
62

query I rowsort
SELECT ALL + col2 * - col2 + - col2 AS col1 FROM tab2 cor0
----
-1640
-3422
-552

query I rowsort
SELECT + col0 + - - col0 AS col1 FROM tab2 AS cor0
----
128
150
92

query I rowsort
SELECT DISTINCT + + col2 + + - 3 FROM tab1 AS cor0
----
56
65
93

query I rowsort
SELECT col0 + - 99 FROM tab1
----
-14
-48
-8

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 * - 12 IS NOT NULL
----

query I rowsort
SELECT + col2 / col2 AS col1 FROM tab1 WHERE NOT + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 52 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6404
SELECT col1 / - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6404
SELECT col1 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT ALL + 41 - + SUM( DISTINCT col2 + + 71 ) FROM tab1
----
-395

skipif mysql # not compatible
query I rowsort label-6405
SELECT ALL + 41 - + SUM ( DISTINCT col2 + + 71 ) FROM tab1
----
-395

onlyif mysql # DIV for integer division: 
query I rowsort label-6406
SELECT + 9 DIV - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6406
SELECT + 9 / - col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE col2 + col2 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6408
SELECT col2 DIV - 40 FROM tab1
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-6408
SELECT col2 / - 40 FROM tab1
----
-1
-1
-2

query I rowsort
SELECT - col2 * 19 AS col1 FROM tab2
----
-1102
-437
-760

query I rowsort
SELECT - col0 * + 77 AS col0 FROM tab1
----
-3927
-6545
-7007

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 WHERE col0 * col1 + col1 IN ( 26 + col0 * 53 )
----

query I rowsort
SELECT + 16 * col1 FROM tab0
----
1296
16
336

query I rowsort
SELECT ALL - col1 + 95 AS col2 FROM tab2
----
18
28
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6414
SELECT ALL COUNT( * ) * - COUNT( * ) col1 FROM tab1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6414
SELECT ALL COUNT ( * ) * - COUNT ( * ) col1 FROM tab1
----
-9

query I rowsort
SELECT + 6 - col2 AS col1 FROM tab0
----
-4
-41
-93

query I rowsort
SELECT + col2 FROM tab0 WHERE NULL >= ( + col0 + - 14 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 BETWEEN ( ( col2 ) * + 27 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6418
SELECT 99 DIV + COUNT( * ) AS col1 FROM tab2 WHERE - ( + col0 ) IS NOT NULL
----
33

skipif mysql # not compatible
query I rowsort label-6418
SELECT 99 / + COUNT ( * ) AS col1 FROM tab2 WHERE - ( + col0 ) IS NOT NULL
----
33

query I rowsort
SELECT ALL ( 61 ) FROM tab1
----
61
61
61

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NOT ( col1 ) IS NULL
----
59
68
96

query I rowsort
SELECT - 37 FROM tab0 WHERE NOT - ( col1 ) * col0 IS NULL
----
-37
-37
-37

query I rowsort
SELECT + col2 AS col0 FROM tab1 WHERE NOT NULL IN ( 55 / col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 >= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 BETWEEN ( NULL ) AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-6425
SELECT - 19 DIV 93 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6425
SELECT - 19 / 93 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6426
SELECT ALL + ( + SUM( DISTINCT + ( col0 ) ) ) AS col0 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-6426
SELECT ALL + ( + SUM ( DISTINCT + ( col0 ) ) ) AS col0 FROM tab0
----
199

query I rowsort
SELECT 82 * + 3 + 38 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 5f6b50957080d0e8c4a874a98b77d8b2

onlyif mysql # aggregate syntax: 
query I rowsort label-6428
SELECT 81 + + 91 * - ( - ( + COUNT( * ) ) ) AS col0 FROM tab1 AS cor0
----
354

skipif mysql # not compatible
query I rowsort label-6428
SELECT 81 + + 91 * - ( - ( + COUNT ( * ) ) ) AS col0 FROM tab1 AS cor0
----
354

query I rowsort
SELECT col1 * 97 + col0 AS col2 FROM tab2 AS cor0
----
4993
6574
7533

query I rowsort
SELECT col2 * - 64 + col2 FROM tab2 AS cor0
----
-1449
-2520
-3654

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= col2 + col2 / - 20
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col1 col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col2 * + col1 + - 12 FROM tab1 AS cor0 WHERE col1 = - 97
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6434
SELECT COUNT( * ) + 60 AS col1 FROM tab2 AS cor0 WHERE col0 NOT BETWEEN - col2 AND 8
----
63

skipif mysql # not compatible
query I rowsort label-6434
SELECT COUNT ( * ) + 60 AS col1 FROM tab2 AS cor0 WHERE col0 NOT BETWEEN - col2 AND 8
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6435
SELECT MIN( DISTINCT 36 ) FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-6435
SELECT MIN ( DISTINCT 36 ) FROM tab1 AS cor0
----
36

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6437
SELECT DISTINCT + SUM( - + col0 ) + 71 FROM tab2
----
-114

skipif mysql # not compatible
query I rowsort label-6437
SELECT DISTINCT + SUM ( - + col0 ) + 71 FROM tab2
----
-114

onlyif mysql # DIV for integer division: 
query I rowsort label-6438
SELECT DISTINCT col1 + + - col1 DIV - col2 AS col0 FROM tab2
----
53
68
78

skipif mysql # not compatible
query I rowsort label-6438
SELECT DISTINCT col1 + + - col1 / - col2 AS col0 FROM tab2
----
53
68
78

query I rowsort
SELECT + col0 * - col2 * - 74 AS col2 FROM tab2
----
189440
321900
78292

onlyif mysql # aggregate syntax: 
query I rowsort label-6440
SELECT - SUM( 48 ) FROM tab1
----
-144

skipif mysql # not compatible
query I rowsort label-6440
SELECT - SUM ( 48 ) FROM tab1
----
-144

query I rowsort
SELECT ALL + col1 + - 91 AS col1 FROM tab1
----
-44
-77
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6442
SELECT ALL + COUNT( * ) FROM tab0 WHERE NOT ( NULL ) IN ( ( - ( + 11 ) ) * + 57 ) OR ( col2 ) >= col1
----
1

skipif mysql # not compatible
query I rowsort label-6442
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NOT ( NULL ) IN ( ( - ( + 11 ) ) * + 57 ) OR ( col2 ) >= col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6443
SELECT ALL CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6443
SELECT ALL CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 58 + col1 ) IS NULL AND NOT ( NULL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT ALL + COUNT( * ) + - COUNT( * ) - COUNT( * ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6445
SELECT ALL + COUNT ( * ) + - COUNT ( * ) - COUNT ( * ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6446
SELECT - + col1 + 46 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6446
SELECT - + col1 + 46 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * col0 FROM tab2 WHERE ( col1 ) IN ( + col2 * col0 )
----

query II rowsort
SELECT - col0, - col2 - col1 AS col0 FROM tab0
----
-15
-128
-87
-31
-97
-100

query I rowsort
SELECT ALL + - 83 * + 64 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7d71cb58a37887ad76060a2675fa9ab4

query I rowsort
SELECT ALL 70 + + + col0 AS col0 FROM tab2
----
116
134
145

query I rowsort
SELECT DISTINCT - ( + + col2 ) + - col0 FROM tab1
----
-144
-147
-159

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN + + col2 + 55 AND NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 JOIN tab1 AS cor1 ON NOT ( NULL ) >= ( NULL )
----

query I rowsort
SELECT ALL 57 AS col1 FROM tab1 AS cor0 WHERE NOT ( 85 ) BETWEEN ( NULL ) AND + col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6455
SELECT DISTINCT SUM( DISTINCT - + col1 ) AS col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-6455
SELECT DISTINCT SUM ( DISTINCT - + col1 ) AS col2 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT DISTINCT - col2 * ( - 39 ) * 30 FROM tab0 AS cor0
----
115830
11700
54990

onlyif mysql # DIV for integer division: 
query I rowsort label-6457
SELECT 44 DIV - - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6457
SELECT 44 / - - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 > ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col1 * + col1 ) > 37
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-6460
SELECT DISTINCT + COUNT( * ) AS col2, 50 col0 FROM tab0 cor0
----
3
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6460
SELECT DISTINCT + COUNT ( * ) AS col2, 50 col0 FROM tab0 cor0
----
3
50

query I rowsort
SELECT ALL + - 69 AS col0 FROM tab2 AS cor0
----
-69
-69
-69

query I rowsort
SELECT ALL 73 * + + col1 FROM tab1 AS cor0
----
1022
3431
365

onlyif mysql # aggregate syntax: 
query I rowsort label-6463
SELECT ( COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6463
SELECT ( COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6464
SELECT DISTINCT col2 / + + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6464
SELECT DISTINCT col2 / + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6465
SELECT ALL - ( + 21 ) DIV COUNT( * ) * + 89 * + COUNT( * ) AS col1 FROM tab0
----
-1869

skipif mysql # not compatible
query I rowsort label-6465
SELECT ALL - ( + 21 ) / COUNT ( * ) * + 89 * + COUNT ( * ) AS col1 FROM tab0
----
-1869

onlyif mysql # aggregate syntax: 
query I rowsort label-6466
SELECT + COUNT( * ) * COUNT( * ) * + 40 FROM tab1
----
360

skipif mysql # not compatible
query I rowsort label-6466
SELECT + COUNT ( * ) * COUNT ( * ) * + 40 FROM tab1
----
360

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( + 30 * + 2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6468
SELECT ALL col0 FROM tab2 WHERE + CAST( + col1 AS SIGNED ) NOT BETWEEN col0 + + 92 AND ( - col0 + + col1 * - col2 )
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6468
SELECT ALL col0 FROM tab2 WHERE + CAST ( + col1 AS INTEGER ) NOT BETWEEN col0 + + 92 AND ( - col0 + + col1 * - col2 )
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6469
SELECT + ( - COUNT( DISTINCT - col1 ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6469
SELECT + ( - COUNT ( DISTINCT - col1 ) ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT - col2 * col2 * col2 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-12167
-195112
-64000

onlyif mysql # aggregate syntax: 
query I rowsort label-6471
SELECT ALL - COUNT( - - col1 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6471
SELECT ALL - COUNT ( - - col1 ) AS col0 FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 55 * col2, - 90 col1 FROM tab2
----
-1265
-90
-2200
-90
-3190
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 43 * + - col2 col0 FROM tab0
----
-2021
-4257
-430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6474
SELECT ALL COUNT( DISTINCT + 77 ) * - CAST( + - 42 AS SIGNED ) * COUNT( * ) FROM tab2 cor0
----
126

skipif mysql # not compatible
query I rowsort label-6474
SELECT ALL COUNT ( DISTINCT + 77 ) * - CAST ( + - 42 AS INTEGER ) * COUNT ( * ) FROM tab2 cor0
----
126

query I rowsort
SELECT + 63 - col1 FROM tab1 cor0 WHERE NOT + ( + ( - col1 ) ) + - 8 BETWEEN + col2 AND + col2
----
16
49
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6476
SELECT + col0 DIV + 1 AS col1 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6476
SELECT + col0 / + 1 AS col1 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
51
85
91

query I rowsort
SELECT DISTINCT 80 + - - col1 * col2 * col0 AS col1 FROM tab0 cor0
----
18350
57185
9683

query I rowsort
SELECT ALL + + col2 + + col0 + 84 * - col0 AS col0 FROM tab0 AS cor0
----
-1198
-7211
-7952

query I rowsort
SELECT DISTINCT + AVG ( + + col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( - 27 ) <= NULL
----
NULL

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE + 45 NOT BETWEEN - + col0 / + col1 + + 57 AND ( col0 )
----
-10
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6482
SELECT - + CAST( NULL AS SIGNED ) / - col2 - - - CAST( col2 AS SIGNED ) + col0 * col0 FROM tab0 AS cor0 WHERE + 16 <> NULL
----

skipif mysql # not compatible
query I rowsort label-6482
SELECT - + CAST ( NULL AS INTEGER ) / - col2 - - - CAST ( col2 AS INTEGER ) + col0 * col0 FROM tab0 AS cor0 WHERE + 16 <> NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN + col1 * 65 AND - 68
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 74 + + col0 FROM tab1 cor0
----
125
159
165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6485
SELECT ALL ( + CAST( col2 AS SIGNED ) ) * col2 + + - 86 FROM tab1 AS cor0
----
3395
4538
9130

skipif mysql # not compatible
query I rowsort label-6485
SELECT ALL ( + CAST ( col2 AS INTEGER ) ) * col2 + + - 86 FROM tab1 AS cor0
----
3395
4538
9130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6486
SELECT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE ( + 31 ) * col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6486
SELECT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE ( + 31 ) * col0 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6487
SELECT DISTINCT - CAST( - col2 AS SIGNED ) AS col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-6487
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) AS col2 FROM tab2
----
23
40
58

query I rowsort
SELECT DISTINCT + 1 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( NOT NULL <> col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - col0 <> + col0 * + + 85
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-6492
SELECT - 3 AS col0, - col2 DIV - 90 AS col2 FROM tab1 AS cor0
----
-3
0
-3
0
-3
1

skipif mysql # not compatible
query II rowsort label-6492
SELECT - 3 AS col0, - col2 / - 90 AS col2 FROM tab1 AS cor0
----
-3
0
-3
0
-3
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT DISTINCT - MAX( DISTINCT - + 96 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
96

skipif mysql # not compatible
query I rowsort label-6493
SELECT DISTINCT - MAX ( DISTINCT - + 96 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6494
SELECT ALL - ( + MIN( ALL 60 ) ) FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-6494
SELECT ALL - ( + MIN ( ALL 60 ) ) FROM tab2
----
-60

query I rowsort
SELECT + col0 + + - 31 + + - ( + - 14 ) * - col0 AS col2 FROM tab0 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6496
SELECT DISTINCT COUNT( * ) DIV COUNT( * ) * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6496
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6497
SELECT + - col1 DIV 79 * col0 FROM tab0 AS cor0
----
-15
0
0

skipif mysql # not compatible
query I rowsort label-6497
SELECT + - col1 / 79 * col0 FROM tab0 AS cor0
----
-15
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6498
SELECT ALL + + COUNT( * ) * ( + 71 ) + - - 63 + + + COUNT( * ) * COUNT( - + col0 ) * + 6 AS col1 FROM tab2 AS cor0
----
330

skipif mysql # not compatible
query I rowsort label-6498
SELECT ALL + + COUNT ( * ) * ( + 71 ) + - - 63 + + + COUNT ( * ) * COUNT ( - + col0 ) * + 6 AS col1 FROM tab2 AS cor0
----
330

onlyif mysql # aggregate syntax: 
query I rowsort label-6499
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 cor0 WHERE NOT ( NULL IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6499
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NOT ( NULL IS NULL )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6500
SELECT + 56 DIV - col0 FROM tab0 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-6500
SELECT + 56 / - col0 FROM tab0 AS cor0
----
-3
0
0

query I rowsort
SELECT - 57 * + 19 FROM tab1 AS cor0
----
-1083
-1083
-1083

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT 45 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6503
SELECT + + col1 DIV + col2 + + 62 * - - col2 AS col2 FROM tab0 AS cor0
----
2915
6138
622

skipif mysql # not compatible
query I rowsort label-6503
SELECT + + col1 / + col2 + + 62 * - - col2 AS col2 FROM tab0 AS cor0
----
2915
6138
622

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 99 col2 FROM tab0 AS cor0
----
-99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 * + col2 NOT IN ( + 55, col0 * col0 * - + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 65 * - + 24 * + col2 IS NOT NULL OR NOT col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 51 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6508
SELECT ALL + CAST( NULL AS DECIMAL ), + 7 col1 FROM tab0
----
NULL
7
NULL
7
NULL
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6508
SELECT ALL + CAST ( NULL AS REAL ), + 7 col1 FROM tab0
----
NULL
7
NULL
7
NULL
7

query I rowsort
SELECT + - 68 FROM tab1 WHERE NOT - - ( col1 ) >= - - col2
----
-68
-68
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6510
SELECT - CAST( + 42 AS SIGNED ) AS col1 FROM tab2
----
-42
-42
-42

skipif mysql # not compatible
query I rowsort label-6510
SELECT - CAST ( + 42 AS INTEGER ) AS col1 FROM tab2
----
-42
-42
-42

query II rowsort
SELECT DISTINCT - col2, 0 * col1 * 87 / + + col0 FROM tab1 WHERE NOT ( NULL ) >= col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6512
SELECT col0, col0 * - 7 * - 64 + - + 20 + + col1 + + ( + 64 ) DIV - col0 AS col1 FROM tab1
----
51
22841
85
38065
91
40795

skipif mysql # not compatible
query II rowsort label-6512
SELECT col0, col0 * - 7 * - 64 + - + 20 + + col1 + + ( + 64 ) / - col0 AS col1 FROM tab1
----
51
22841
85
38065
91
40795

query I rowsort
SELECT DISTINCT 25 * col1 FROM tab1
----
1175
125
350

query I rowsort
SELECT ( col1 ) * + 69 AS col0 FROM tab0
----
1449
5589
69

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 82 * col0 / + 61 NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT - 7 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - 14 IS NULL
----
-7

query I rowsort
SELECT + + 71 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query II rowsort
SELECT DISTINCT - ( 82 ) AS col0, col2 + + col2 * + - col1 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-82
-1248
-82
-236
-82
-3128

query I rowsort
SELECT - + col1 + - 6 * + - col1 + - col1 AS col1 FROM tab0 AS cor0
----
324
4
84

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE + ( - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6521
SELECT DISTINCT + 90 + COUNT( * ) FROM tab0 cor0
----
93

skipif mysql # not compatible
query I rowsort label-6521
SELECT DISTINCT + 90 + COUNT ( * ) FROM tab0 cor0
----
93

query I rowsort
SELECT DISTINCT - 21 + + - 19 FROM tab0 AS cor0
----
-40

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6524
SELECT + COUNT( DISTINCT + 75 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6524
SELECT + COUNT ( DISTINCT + 75 ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT + col2 * - 94 AS col1 FROM tab1
----
-5546
-6392
-9024

query III rowsort
SELECT * FROM tab1 WHERE + 59 * + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 * - + ( col2 ) FROM tab1
----
-3481
-4624
-9216

query III rowsort
SELECT * FROM tab2 WHERE + col1 * col2 + 70 <= + col0
----

query I rowsort
SELECT 72 * - 12 FROM tab1
----
-864
-864
-864

query I rowsort
SELECT DISTINCT + col0 + - 60 - + col2 FROM tab0
----
-62
-92
17

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6531
SELECT - col2 - - CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6531
SELECT - col2 - - CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 56 * + + 79 - - col1 - - + col0 * + - 53 FROM tab1
----
-7113
-8924
-9200

query I rowsort
SELECT DISTINCT + col1 + 30 AS col2 FROM tab0
----
111
31
51

query I rowsort
SELECT DISTINCT col2 + + + ( col0 ) FROM tab0
----
196
62
97

query I rowsort
SELECT - 43 - - 65 - + 17 AS col1 FROM tab0
----
5
5
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( - col2 * + col0 )
----

query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE - col1 NOT IN ( + - 12 )
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6538
SELECT - 36 / - col0 AS col2 FROM tab0 AS cor0 WHERE 55 BETWEEN 29 + 58 * - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-6538
SELECT - 36 / - col0 AS col2 FROM tab0 AS cor0 WHERE 55 BETWEEN 29 + 58 * - CAST ( NULL AS INTEGER ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 - + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6540
SELECT DISTINCT - CAST( col0 AS SIGNED ) * + 48 + - col0 FROM tab2
----
-2254
-3136
-3675

skipif mysql # not compatible
query I rowsort label-6540
SELECT DISTINCT - CAST ( col0 AS INTEGER ) * + 48 + - col0 FROM tab2
----
-2254
-3136
-3675

query I rowsort
SELECT DISTINCT col1 * - 10 FROM tab0 AS cor0
----
-10
-210
-810

query II rowsort
SELECT + col1 AS col1, 26 + + + col1 AS col1 FROM tab0 AS cor0
----
1
27
21
47
81
107

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT - col1 * + col2 IS NULL
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 * - col0 * - col2 col0 FROM tab2 AS cor0
----
165300
40204
97280

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT - COUNT( - 12 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6545
SELECT - COUNT ( - 12 ) FROM tab2 cor0
----
-3

query I rowsort
SELECT - ( 32 ) AS col2 FROM tab0 cor0
----
-32
-32
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6547
SELECT - + COUNT( DISTINCT + 67 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6547
SELECT - + COUNT ( DISTINCT + 67 ) AS col1 FROM tab0 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col2 col1 FROM tab1
----
-1344
-295
-3196

query II rowsort
SELECT + col0, col2 - col1 AS col0 FROM tab1 WHERE NOT 54 * + 73 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6550
SELECT SUM( ALL - 61 ) FROM tab0
----
-183

skipif mysql # not compatible
query I rowsort label-6550
SELECT SUM ( ALL - 61 ) FROM tab0
----
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-6551
SELECT ALL MAX( col1 ) AS col1 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-6551
SELECT ALL MAX ( col1 ) AS col1 FROM tab1
----
47

query I rowsort
SELECT col0 * - col0 * 47 FROM tab1
----
-122247
-339575
-389207

query II rowsort
SELECT ALL col0 * col2, + col2 AS col2 FROM tab0
----
705
47
870
10
9603
99

query I rowsort
SELECT col2 + - col2 - col2 * - + 0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 * - col2 + col2 FROM tab1 cor0
----
3540
4692
9312

query I rowsort
SELECT col0 * 68 FROM tab2 AS cor0
----
3128
4352
5100

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( 6 ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6558
SELECT - col2 * - - CAST( NULL AS DECIMAL ) - + 15 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6558
SELECT - col2 * - - CAST ( NULL AS REAL ) - + 15 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 83 * + + 72 + col2 + col2 FROM tab1 AS cor0
----
6094
6112
6168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6560
SELECT - CAST( + + COUNT( * ) AS SIGNED ) + - COUNT( * ) FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
-6

skipif mysql # not compatible
query I rowsort label-6560
SELECT - CAST ( + + COUNT ( * ) AS INTEGER ) + - COUNT ( * ) FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
-6

query I rowsort
SELECT - col2 + 8 + + col2 * ( - col1 ) FROM tab2 AS cor0
----
-1188
-3112
-3936

query I rowsort
SELECT DISTINCT ( + col1 ) + - 12 FROM tab2 AS cor0
----
39
55
65

query I rowsort
SELECT ALL - 64 + + 73 * + col1 + + col2 AS col2 FROM tab1 AS cor0
----
1054
3435
360

query I rowsort
SELECT + - ( + + col2 ) * 42 * 38 + + + 24 FROM tab0 AS cor0
----
-157980
-15936
-74988

query I rowsort
SELECT ALL col2 - - col1 AS col1 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT - col1 + col0 * 7 FROM tab2 cor0
----
271
371
458

onlyif mysql # DIV for integer division: 
query I rowsort label-6567
SELECT + 35 DIV + col2 * - ( - 86 ) + - col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-6567
SELECT + 35 / + col2 * - ( - 86 ) + - col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + ( col0 ) col1 FROM tab2 AS cor0
----
128
150
92

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - ( - ( - col1 ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 87 + + - col0 FROM tab0
----
-10
0
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6571
SELECT - - MAX( - col1 ) col0 FROM tab0 WHERE ( - 45 ) < NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6571
SELECT - - MAX ( - col1 ) col0 FROM tab0 WHERE ( - 45 ) < NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + - col0 NOT BETWEEN 3 - + 74 AND - col2
----
75
67
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6573
SELECT DISTINCT + 37 - CAST( COUNT( * ) AS SIGNED ) FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-6573
SELECT DISTINCT + 37 - CAST ( COUNT ( * ) AS INTEGER ) FROM tab0
----
34

query III rowsort
SELECT * FROM tab1 WHERE + + 0 / 9 * - + col1 * - col1 NOT BETWEEN + + 50 + - col1 AND col2 * - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + 57 * + col1 - - + 43 AS col0 FROM tab1 AS cor0
----
-242
-2636
-755

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= - col0 + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6577
SELECT MIN( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6577
SELECT MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT ALL - COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-6578
SELECT ALL - COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6579
SELECT - SUM( DISTINCT + + 66 ) DIV + 37 AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6579
SELECT - SUM ( DISTINCT + + 66 ) / + 37 AS col1 FROM tab2 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND col2
----

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE NOT + col0 - + col1 * col2 > NULL
----

query I rowsort
SELECT ALL 59 * + col1 FROM tab2
----
3009
3953
4543

query II rowsort
SELECT 58, col2 AS col0 FROM tab0
----
58
10
58
47
58
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6584
SELECT CAST( + + 44 AS SIGNED ) FROM tab1
----
44
44
44

skipif mysql # not compatible
query I rowsort label-6584
SELECT CAST ( + + 44 AS INTEGER ) FROM tab1
----
44
44
44

onlyif mysql # aggregate syntax: 
query II rowsort label-6585
SELECT 1, - COUNT( * ) * - MAX( col0 ) + - 22 AS col2 FROM tab0
----
1
269

skipif mysql # not compatible
query II rowsort label-6585
SELECT 1, - COUNT ( * ) * - MAX ( col0 ) + - 22 AS col2 FROM tab0
----
1
269

query II rowsort
SELECT DISTINCT + col2 AS col0, + col1 AS col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

query I rowsort
SELECT DISTINCT - 6 FROM tab0 AS cor0 WHERE NULL >= NULL
----

query II rowsort
SELECT - col1 + - col0 AS col1, - col0 FROM tab2
----
-141
-64
-142
-75
-97
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6589
SELECT ALL + 25 DIV COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
2

skipif mysql # not compatible
query I rowsort label-6589
SELECT ALL + 25 / COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
2

query I rowsort
SELECT - col1 * + + col1 AS col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 40 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-6592
SELECT ALL + col2 DIV + 57 + col1 FROM tab0 AS cor0
----
2
21
81

skipif mysql # not compatible
query I rowsort label-6592
SELECT ALL + col2 / + 57 + col1 FROM tab0 AS cor0
----
2
21
81

query I rowsort
SELECT + col1 FROM tab1 cor0 WHERE 93 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 BETWEEN - + ( - - 64 ) AND NULL
----

query II rowsort
SELECT ALL - ( + 28 ) AS col2, - col0 FROM tab1 AS cor0
----
-28
-51
-28
-85
-28
-91

query III rowsort
SELECT * FROM tab1 WHERE ( NOT ( NOT - col1 IS NULL ) )
----

query I rowsort
SELECT - col2 - - - 92 FROM tab1
----
-151
-160
-188

onlyif mysql # DIV for integer division: 
query I rowsort label-6598
SELECT ALL 50 DIV - + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6598
SELECT ALL 50 / - + col2 FROM tab1
----
0
0
0

query I rowsort
SELECT col2 + + 61 * - col0 AS col2 FROM tab1
----
-3015
-5126
-5483

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6600
SELECT ALL COUNT( * ) * + - CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6600
SELECT ALL COUNT ( * ) * + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6601
SELECT MAX( ALL - ( + col2 ) ) AS col0 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-6601
SELECT MAX ( ALL - ( + col2 ) ) AS col0 FROM tab1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6602
SELECT + SUM( 93 ) * + - 63 FROM tab2 AS cor0
----
-17577

skipif mysql # not compatible
query I rowsort label-6602
SELECT + SUM ( 93 ) * + - 63 FROM tab2 AS cor0
----
-17577

onlyif mysql # aggregate syntax: 
query I rowsort label-6603
SELECT ALL + ( + + MAX( + col0 ) ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-6603
SELECT ALL + ( + + MAX ( + col0 ) ) FROM tab2 AS cor0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-6604
SELECT + col0 DIV col1 AS col1 FROM tab1 cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-6604
SELECT + col0 / col1 AS col1 FROM tab1 cor0
----
1
17
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <= col0 + - col2
----

query I rowsort
SELECT 48 * - - col2 AS col0 FROM tab0 AS cor0
----
2256
4752
480

query I rowsort
SELECT 4 * - + col0 FROM tab0
----
-348
-388
-60

query I rowsort
SELECT - ( - col0 ) FROM tab1 WHERE NOT + col0 IS NULL
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-6609
SELECT col0 DIV 42 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6609
SELECT col0 / 42 AS col2 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL + 94 * + + 55 AS col1 FROM tab1
----
5170
5170
5170

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 79 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 33 * - + 34 + col0 + - - col1 AS col2 FROM tab2 WHERE + + col0 IS NOT NULL
----
1219
1263
1264

query II rowsort
SELECT col1 * col2 * - + col2 + - 49 + + 34, col2 * + col1 + + col0 + + col1 AS col0 FROM tab0
----
-178944
3903
-2115
318
-9816
197

query I rowsort
SELECT - 82 AS col0 FROM tab1 WHERE NULL IS NULL
----
-82
-82
-82

query I rowsort
SELECT + col1 - - + col2 + + - col1 * col2 * - ( - col1 ) FROM tab0 WHERE col0 IS NULL
----

query I rowsort
SELECT ALL ( + col2 ) * - + col0 + col1 AS col2 FROM tab1
----
-4882
-5010
-6141

query I rowsort
SELECT - ( + 29 ) FROM tab0 AS cor0
----
-29
-29
-29

query I rowsort
SELECT DISTINCT - + col0 + - - 46 AS col2 FROM tab1 AS cor0
----
-39
-45
-5

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE ( NULL ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6620
SELECT DISTINCT SUM( - - col1 ) AS col1 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-6620
SELECT DISTINCT SUM ( - - col1 ) AS col1 FROM tab2
----
195

query III rowsort
SELECT * FROM tab0 WHERE - + 93 IS NULL
----

query I rowsort
SELECT ALL + 68 + + - col1 FROM tab2 cor0
----
-9
1
17

onlyif mysql # DIV for integer division: 
query I rowsort label-6623
SELECT col2 DIV + + 61 + - 46 FROM tab2 AS cor0
----
-46
-46
-46

skipif mysql # not compatible
query I rowsort label-6623
SELECT col2 / + + 61 + - 46 FROM tab2 AS cor0
----
-46
-46
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * col0 + - - col0 + + + 83 col1, col1 * + + 5 - 43 + col0 + 18 * + ( - col0 ) FROM tab2 AS cor0
----
1187
-570
2707
-746
4508
-983

query I rowsort
SELECT - ( 69 ) + + 16 * + col2 * col2 AS col0 FROM tab1 cor0 WHERE NULL BETWEEN NULL AND ( - 70 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT + - SUM( + 31 ) + + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-6626
SELECT + - SUM ( + 31 ) + + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-96

query I rowsort
SELECT - 95 + + col0 + + - ( 15 ) FROM tab1 AS cor0
----
-19
-25
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6628
SELECT - col1 + + col1, col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-6628
SELECT - col1 + + col1, col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
0
NULL
0
NULL
0
NULL

query I rowsort
SELECT DISTINCT col0 + - 9 - - - col0 AS col1 FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6630
SELECT - - COUNT( * ) AS col2 FROM tab1 cor0 WHERE + col1 * 50 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6630
SELECT - - COUNT ( * ) AS col2 FROM tab1 cor0 WHERE + col1 * 50 IS NULL
----
0

query I rowsort
SELECT DISTINCT + + 90 - + col2 AS col1 FROM tab1 AS cor0
----
-6
22
31

onlyif mysql # DIV for integer division: 
query I rowsort label-6632
SELECT DISTINCT col1 DIV - + 40 col0 FROM tab1
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6632
SELECT DISTINCT col1 / - + 40 col0 FROM tab1
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6633
SELECT ALL + - col2 DIV - col1 FROM tab0 WHERE - 40 IS NOT NULL
----
0
0
99

skipif mysql # not compatible
query I rowsort label-6633
SELECT ALL + - col2 / - col1 FROM tab0 WHERE - 40 IS NOT NULL
----
0
0
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6634
SELECT ALL + 61 DIV + - col1 FROM tab0
----
-2
-61
0

skipif mysql # not compatible
query I rowsort label-6634
SELECT ALL + 61 / + - col1 FROM tab0
----
-2
-61
0

query I rowsort
SELECT ALL ( + 1 ) FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6636
SELECT - COUNT( * ) * 7 * COUNT( * ) AS col0 FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-6636
SELECT - COUNT ( * ) * 7 * COUNT ( * ) AS col0 FROM tab0
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-6637
SELECT - col1 DIV - ( - 2 ) AS col0 FROM tab0 AS cor0
----
-10
-40
0

skipif mysql # not compatible
query I rowsort label-6637
SELECT - col1 / - ( - 2 ) AS col0 FROM tab0 AS cor0
----
-10
-40
0

query II rowsort
SELECT ALL + col1 * + col2, + col2 AS col2 FROM tab0 AS cor0
----
210
10
3807
47
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT DISTINCT 37 * + ( + + MIN( - col1 ) ) * - 68 FROM tab2 AS cor0
----
193732

skipif mysql # not compatible
query I rowsort label-6639
SELECT DISTINCT 37 * + ( + + MIN ( - col1 ) ) * - 68 FROM tab2 AS cor0
----
193732

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 - col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col1 AS col2, col1 FROM tab0 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6642
SELECT - 48 + - ( - col2 ) + - col2 * - ( + col0 ) * + col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6642
SELECT - 48 + - ( - col2 ) + - col2 * - ( + col0 ) * + col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 + - 17 IS NULL
----

query I rowsort
SELECT - col2 + + col2 + + - 47 FROM tab0 AS cor0 WHERE NOT NULL > col2
----

query II rowsort
SELECT - ( + col2 ), + col2 - - 72 AS col1 FROM tab1
----
-59
131
-68
140
-96
168

query I rowsort
SELECT - 20 AS col2 FROM tab1 WHERE ( + + col1 + 57 ) IS NULL
----

query I rowsort
SELECT DISTINCT - 45 + - col0 FROM tab0
----
-132
-142
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6648
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col0 * - - 88 col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6648
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col0 * - - 88 col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6649
SELECT SUM( + + col2 ) * + COUNT( * ) AS col0 FROM tab1
----
669

skipif mysql # not compatible
query I rowsort label-6649
SELECT SUM ( + + col2 ) * + COUNT ( * ) AS col0 FROM tab1
----
669

onlyif mysql # DIV for integer division: 
query I rowsort label-6650
SELECT + col2 + 28 DIV 7 * + col1 AS col1 FROM tab1 cor0
----
152
256
79

skipif mysql # not compatible
query I rowsort label-6650
SELECT + col2 + 28 / 7 * + col1 AS col1 FROM tab1 cor0
----
152
256
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6651
SELECT ALL - - MIN( ALL - col2 ) FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-6651
SELECT ALL - - MIN ( ALL - col2 ) FROM tab2 cor0
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - + col2 col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + + + ( col2 ) - + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6654
SELECT - col0 * + + col2 + col1 * CAST( NULL AS SIGNED ) * + col0 + 11 + + 63 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6654
SELECT - col0 * + + col2 + col1 * CAST ( NULL AS INTEGER ) * + col0 + 11 + + 63 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT ALL - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6655
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6656
SELECT ( + COUNT( * ) ) * 52 FROM tab1
----
156

skipif mysql # not compatible
query I rowsort label-6656
SELECT ( + COUNT ( * ) ) * 52 FROM tab1
----
156

query I rowsort
SELECT col1 * + 46 AS col1 FROM tab2
----
2346
3082
3542

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT DISTINCT + col1 + + + col0 AS col0 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT DISTINCT + + ( 30 ) * 31 FROM tab1 AS cor0
----
930

onlyif mysql # DIV for integer division: 
query II rowsort label-6661
SELECT ALL + 68 * col1 DIV 50 AS col2, - 26 AS col1 FROM tab0 AS cor0
----
1
-26
110
-26
28
-26

skipif mysql # not compatible
query II rowsort label-6661
SELECT ALL + 68 * col1 / 50 AS col2, - 26 AS col1 FROM tab0 AS cor0
----
1
-26
110
-26
28
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6662
SELECT DISTINCT ( MAX( DISTINCT + - col2 ) ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-6662
SELECT DISTINCT ( MAX ( DISTINCT + - col2 ) ) FROM tab0 AS cor0
----
-10

query II rowsort
SELECT DISTINCT - col0 AS col2, 5 AS col2 FROM tab2
----
-46
5
-64
5
-75
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6664
SELECT - COUNT( DISTINCT + + col1 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6664
SELECT - COUNT ( DISTINCT + + col1 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6665
SELECT COUNT( + - 15 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6665
SELECT COUNT ( + - 15 ) AS col2 FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6666
SELECT ALL CAST( NULL AS SIGNED ) + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND col0 + + col0 / - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6666
SELECT ALL CAST ( NULL AS INTEGER ) + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND col0 + + col0 / - col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6667
SELECT - + COUNT( * ) DIV - 62 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6667
SELECT - + COUNT ( * ) / - 62 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL 44 * 64 + - col2 FROM tab2 AS cor0 WHERE NOT col2 + + ( 64 ) IS NOT NULL
----

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 cor0 WHERE ( NULL ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6670
SELECT ALL ( - 0 ) - + COUNT( * ) AS col1 FROM tab2, tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6670
SELECT ALL ( - 0 ) - + COUNT ( * ) AS col1 FROM tab2, tab2 cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6671
SELECT DISTINCT - MAX( DISTINCT + col0 ) AS col2 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-6671
SELECT DISTINCT - MAX ( DISTINCT + col0 ) AS col2 FROM tab2
----
-75

query I rowsort
SELECT DISTINCT - 86 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-86

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 3 * + col0 <= - + 18
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6675
SELECT ALL COUNT( * ) * + 88 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6675
SELECT ALL COUNT ( * ) * + 88 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6676
SELECT - COUNT( * ) col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6676
SELECT - COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT DISTINCT 25 + - COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-6677
SELECT DISTINCT 25 + - COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0
----
34

query I rowsort
SELECT ALL - 64 + - 17 + + col1 * - 99 AS col2 FROM tab1 AS cor0
----
-1467
-4734
-576

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * 62 IS NULL
----

query I rowsort
SELECT + col2 * 83 + 98 AS col0 FROM tab1 AS cor0
----
4995
5742
8066

onlyif mysql # DIV for integer division: 
query I rowsort label-6681
SELECT DISTINCT + - 66 DIV + - 36 + - col2 FROM tab0 AS cor0
----
-46
-9
-98

skipif mysql # not compatible
query I rowsort label-6681
SELECT DISTINCT + - 66 / + - 36 + - col2 FROM tab0 AS cor0
----
-46
-9
-98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6682
SELECT * FROM tab1 AS cor0 WHERE col2 - - 1 >= + CAST( NULL AS SIGNED ) OR - - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6682
SELECT * FROM tab1 AS cor0 WHERE col2 - - 1 >= + CAST ( NULL AS INTEGER ) OR - - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6683
SELECT col2 DIV + 7 + - col1 AS col0 FROM tab0
----
-20
-75
13

skipif mysql # not compatible
query I rowsort label-6683
SELECT col2 / + 7 + - col1 AS col0 FROM tab0
----
-20
-75
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, col0 + + - col2 col1 FROM tab1
----
14
-45
47
23
5
26

query I rowsort
SELECT + + col1 + ( 16 ) AS col2 FROM tab2 WHERE col1 < col1 * - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - + col2 col2 FROM tab0
----
-198
-20
-94

query I rowsort
SELECT DISTINCT + col1 * 13 AS col2 FROM tab2
----
1001
663
871

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 83 + col0 + + col1 + - col0 col2 FROM tab1
----
-36
-69
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col0 * + 15 + - 59 col0 FROM tab0 AS cor0
----
119
1236
1297

query I rowsort
SELECT DISTINCT - 80 - - 74 - + col2 AS col1 FROM tab0 AS cor0
----
-105
-16
-53

query I rowsort
SELECT ALL - col0 * - 52 + col2 AS col1 FROM tab2 WHERE NOT col0 < 78
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 * ( - 95 ) + - 6 IS NULL
----

query I rowsort
SELECT - + col1 * - + ( 95 ) * - + ( 71 ) FROM tab0 AS cor0
----
-141645
-546345
-6745

onlyif mysql # aggregate syntax: 
query I rowsort label-6694
SELECT - MAX( + 23 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-6694
SELECT - MAX ( + 23 ) FROM tab2 AS cor0
----
-23

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < 10
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 / + ( ( + col0 ) ) + + ( + col2 ) * col1 < - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6697
SELECT DISTINCT MIN( + col0 ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-6697
SELECT DISTINCT MIN ( + col0 ) AS col1 FROM tab2
----
46

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - 81 = - 64
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6699
SELECT SUM( DISTINCT - + col0 ) AS col0 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-6699
SELECT SUM ( DISTINCT - + col0 ) AS col0 FROM tab2
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-6700
SELECT ALL + MAX( ALL - - 62 ) FROM tab1 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-6700
SELECT ALL + MAX ( ALL - - 62 ) FROM tab1 AS cor0
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-6701
SELECT - 39, + COUNT( * ) col1 FROM tab2 AS cor0 WHERE NOT - 92 IS NULL
----
-39
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6701
SELECT - 39, + COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT - 92 IS NULL
----
-39
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6702
SELECT ( + COUNT( * ) ) DIV + 63 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6702
SELECT ( + COUNT ( * ) ) / + 63 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT col1 + 45 FROM tab2
----
112
122
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6704
SELECT ( + ( - COUNT( DISTINCT - - col2 ) ) ) + - COUNT( * ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-6704
SELECT ( + ( - COUNT ( DISTINCT - - col2 ) ) ) + - COUNT ( * ) FROM tab0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6705
SELECT - - SUM( ALL + - col0 ) + - + 66 col1 FROM tab0 cor0
----
-265

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6705
SELECT - - SUM ( ALL + - col0 ) + - + 66 col1 FROM tab0 cor0
----
-265

query I rowsort
SELECT ALL + 27 * + col1 FROM tab0 AS cor0
----
2187
27
567

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6707
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + + 98 * 45 - + ( 40 ) + - + 1 + + + col0 NOT BETWEEN + CAST( NULL AS SIGNED ) / col1 + - col0 AND NULL )
----

skipif mysql # not compatible
query III rowsort label-6707
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + + 98 * 45 - + ( 40 ) + - + 1 + + + col0 NOT BETWEEN + CAST ( NULL AS INTEGER ) / col1 + - col0 AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6708
SELECT col1 FROM tab2 AS cor0 WHERE NULL < - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6708
SELECT col1 FROM tab2 AS cor0 WHERE NULL < - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + + col1 * 71 AS col0 FROM tab2 AS cor0
----
3621
4757
5467

query I rowsort
SELECT ALL + col2 * + 78 AS col0 FROM tab1
----
4602
5304
7488

query I rowsort
SELECT ALL col1 + + 86 FROM tab0
----
107
167
87

onlyif mysql # DIV for integer division: 
query I rowsort label-6712
SELECT - 13 DIV + 93 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6712
SELECT - 13 / + 93 AS col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6713
SELECT - CAST( SUM( + 94 ) AS SIGNED ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6713
SELECT - CAST ( SUM ( + 94 ) AS INTEGER ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT + col0 * + 99 - + col0 AS col0 FROM tab1
----
4998
8330
8918

query I rowsort
SELECT DISTINCT - col0 * col0 * + col0 - - + 80 * col0 + 41 FROM tab2 cor0
----
-256983
-415834
-93615

query I rowsort
SELECT col1 FROM tab1 WHERE NOT ( NOT NULL < NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 * - + col2 = - + 10 * + col0
----

query I rowsort
SELECT DISTINCT - 17 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT col0 AS col1, - 81 FROM tab0 cor0
----
15
-81
87
-81
97
-81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 BETWEEN NULL AND 60
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6721
SELECT MIN( ALL col0 ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-6721
SELECT MIN ( ALL col0 ) AS col2 FROM tab0
----
15

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( - + 38 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6723
SELECT ALL + MAX( ALL - - col1 ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6723
SELECT ALL + MAX ( ALL - - col1 ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6724
SELECT ALL * FROM tab0 WHERE + - col0 * - col2 + - + col2 + + CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6724
SELECT ALL * FROM tab0 WHERE + - col0 * - col2 + - + col2 + + CAST ( NULL AS REAL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6725
SELECT - 96 AS col0 FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
-96
-96
-96

skipif mysql # not compatible
query I rowsort label-6725
SELECT - 96 AS col0 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
-96
-96
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 col2 FROM tab0
----
20
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6727
SELECT DISTINCT COUNT( * ) * - 67 FROM tab2
----
-201

skipif mysql # not compatible
query I rowsort label-6727
SELECT DISTINCT COUNT ( * ) * - 67 FROM tab2
----
-201

query I rowsort
SELECT - col2 + + col0 * + - 70 AS col1 FROM tab2 AS cor0
----
-3243
-4520
-5308

query I rowsort
SELECT - + col2 FROM tab2 AS cor0 WHERE NOT + col2 + + - 6 * + col1 IS NULL
----
-23
-40
-58

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NOT NULL NOT BETWEEN NULL AND NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6731
SELECT - - 0 * - ( + col2 ) DIV + 76 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6731
SELECT - - 0 * - ( + col2 ) / + 76 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6732
SELECT DISTINCT COUNT( * ) * - 22 AS col0 FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-6732
SELECT DISTINCT COUNT ( * ) * - 22 AS col0 FROM tab0
----
-66

query I rowsort
SELECT ALL - 68 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 36 IS NULL
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

onlyif mysql # aggregate syntax: 
query I rowsort label-6734
SELECT - MIN( + + 19 ) AS col1 FROM tab1
----
-19

skipif mysql # not compatible
query I rowsort label-6734
SELECT - MIN ( + + 19 ) AS col1 FROM tab1
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-6735
SELECT DISTINCT + COUNT( * ), + 23 + MIN( DISTINCT col1 ) col1 FROM tab2 AS cor0
----
3
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6735
SELECT DISTINCT + COUNT ( * ), + 23 + MIN ( DISTINCT col1 ) col1 FROM tab2 AS cor0
----
3
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT - COUNT( ALL 67 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6736
SELECT - COUNT ( ALL 67 ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + + col0 + - col0 * - - 4 * ( + col0 ) + - col2 FROM tab0 AS cor0
----
-30199
-37638
-932

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 * - col2 * + + col2 > NULL
----

query I rowsort
SELECT - 66 + + - col1 AS col1 FROM tab1 AS cor0
----
-113
-71
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT - + SUM( DISTINCT + col0 ) + + 59 * + - 42 FROM tab2 AS cor0
----
-2663

skipif mysql # not compatible
query I rowsort label-6740
SELECT - + SUM ( DISTINCT + col0 ) + + 59 * + - 42 FROM tab2 AS cor0
----
-2663

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6741
SELECT + CAST( NULL AS SIGNED ) + - col1 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6741
SELECT + CAST ( NULL AS INTEGER ) + - col1 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6742
SELECT - - col2 + - - col1 + + col0 + + col2 DIV + + 78 * 27 - - col0 AS col2 FROM tab2 AS cor0
----
166
245
275

skipif mysql # not compatible
query I rowsort label-6742
SELECT - - col2 + - - col1 + + col0 + + col2 / + + 78 * 27 - - col0 AS col2 FROM tab2 AS cor0
----
166
245
275

onlyif mysql # aggregate syntax: 
query I rowsort label-6743
SELECT - MAX( + + ( + col1 ) ) + - COUNT( ALL - - col0 ) FROM tab2 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-6743
SELECT - MAX ( + + ( + col1 ) ) + - COUNT ( ALL - - col0 ) FROM tab2 AS cor0
----
-80

query III rowsort
SELECT * FROM tab1 WHERE + - col0 BETWEEN + col1 AND NULL
----

query I rowsort
SELECT col2 * + 19 * 25 FROM tab1
----
28025
32300
45600

query III rowsort
SELECT * FROM tab2 WHERE ( NOT - 97 + + col1 * col2 * - - 83 > - col1 )
----

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6748
SELECT DISTINCT - MAX( ALL - ( - col2 ) ) col1 FROM tab0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6748
SELECT DISTINCT - MAX ( ALL - ( - col2 ) ) col1 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-6749
SELECT DISTINCT COUNT( * ), COUNT( DISTINCT col0 ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-6749
SELECT DISTINCT COUNT ( * ), COUNT ( DISTINCT col0 ) FROM tab0
----
3
3

query I rowsort
SELECT DISTINCT + col0 + + 61 * - 97 FROM tab2 AS cor0
----
-5842
-5853
-5871

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6751
SELECT DISTINCT * FROM tab1 cor0 WHERE col0 * - - CAST( NULL AS SIGNED ) * - + col1 > + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6751
SELECT DISTINCT * FROM tab1 cor0 WHERE col0 * - - CAST ( NULL AS INTEGER ) * - + col1 > + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6752
SELECT + + CAST( NULL AS SIGNED ), 54 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-6752
SELECT + + CAST ( NULL AS INTEGER ), 54 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 16 IS NOT NULL
----

query I rowsort
SELECT ALL 18 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

onlyif mysql # aggregate syntax: 
query I rowsort label-6755
SELECT DISTINCT + ( SUM( DISTINCT - col1 ) ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-6755
SELECT DISTINCT + ( SUM ( DISTINCT - col1 ) ) FROM tab0 AS cor0
----
-103

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL <= - + ( - col2 ) )
----

query II rowsort
SELECT DISTINCT 20 AS col0, + col2 AS col0 FROM tab1
----
20
59
20
68
20
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6758
SELECT ALL SUM( ALL - - col1 ) + - COUNT( * ) DIV - + 19 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-6758
SELECT ALL SUM ( ALL - - col1 ) + - COUNT ( * ) / - + 19 FROM tab2
----
195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6759
SELECT ALL COUNT( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6759
SELECT ALL COUNT ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
0

query II rowsort
SELECT ALL 71, col2 AS col2 FROM tab2
----
71
23
71
40
71
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6761
SELECT - ( - + SUM( + col2 ) ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-6761
SELECT - ( - + SUM ( + col2 ) ) FROM tab2
----
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 col0 FROM tab2 cor0
----
50
50
50

query I rowsort
SELECT - col1 * - 77 AS col2 FROM tab2 AS cor0
----
3927
5159
5929

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6764
SELECT - + 41 + + - CAST( NULL AS DECIMAL ) + 34 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6764
SELECT - + 41 + + - CAST ( NULL AS REAL ) + 34 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query I rowsort label-6765
SELECT DISTINCT + col2 + 78 DIV + 1 FROM tab0
----
125
177
88

skipif mysql # not compatible
query I rowsort label-6765
SELECT DISTINCT + col2 + 78 / + 1 FROM tab0
----
125
177
88

onlyif mysql # DIV for integer division: 
query I rowsort label-6766
SELECT - 66 + - + 99 + 56 DIV col1 * + - 76 FROM tab2
----
-165
-165
-241

skipif mysql # not compatible
query I rowsort label-6766
SELECT - 66 + - + 99 + 56 / col1 * + - 76 FROM tab2
----
-165
-165
-241

onlyif mysql # aggregate syntax: 
query I rowsort label-6767
SELECT - COUNT( + + 90 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6767
SELECT - COUNT ( + + 90 ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6768
SELECT ALL CAST( NULL AS SIGNED ) * col2 / - - col0 + + - 10 + + col0 + - col0 + + ( + - col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6768
SELECT ALL CAST ( NULL AS INTEGER ) * col2 / - - col0 + + - 10 + + col0 + - col0 + + ( + - col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 - - + col1 FROM tab1 cor0
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6770
SELECT ALL COUNT( ALL + 30 ) FROM tab0 AS cor0 WHERE col2 + + 72 - + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6770
SELECT ALL COUNT ( ALL + 30 ) FROM tab0 AS cor0 WHERE col2 + + 72 - + col1 IS NULL
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 32 NOT BETWEEN + 14 AND ( col0 )
----
15
81
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6772
SELECT DISTINCT - COUNT( * ) - - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6772
SELECT DISTINCT - COUNT ( * ) - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 54 + - 2 * + 51 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6774
SELECT ( COUNT( - ( + - col2 ) ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6774
SELECT ( COUNT ( - ( + - col2 ) ) ) FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 14 - col1 * + + col0 col1 FROM tab0
----
-1533
-81
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - 36 col0 FROM tab0
----
-26
11
63

query I rowsort
SELECT DISTINCT 53 - ( - col2 ) * + col1 FROM tab1
----
1397
3249
348

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT COUNT( * ) - + 81 FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-6778
SELECT COUNT ( * ) - + 81 FROM tab0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6779
SELECT SUM( DISTINCT - 5 ) FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-6779
SELECT SUM ( DISTINCT - 5 ) FROM tab0 AS cor0
----
-5

query II rowsort
SELECT DISTINCT col2, 95 FROM tab0 AS cor0
----
10
95
47
95
99
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6781
SELECT - MIN( ALL 86 ) + + - SUM( DISTINCT + + 4 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN col0 AND + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6781
SELECT - MIN ( ALL 86 ) + + - SUM ( DISTINCT + + 4 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN col0 AND + col1
----
NULL

query II rowsort
SELECT DISTINCT - col1 AS col1, + col2 FROM tab2
----
-51
23
-67
58
-77
40

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN - col1 + col2 * - col1 AND col2 * + - 64 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6784
SELECT MAX( ALL col1 ) * + + 31 FROM tab0
----
2511

skipif mysql # not compatible
query I rowsort label-6784
SELECT MAX ( ALL col1 ) * + + 31 FROM tab0
----
2511

onlyif mysql # aggregate syntax: 
query II rowsort label-6785
SELECT DISTINCT + 81, + COUNT( * ) AS col2 FROM tab1 AS cor0
----
81
3

skipif mysql # not compatible
query II rowsort label-6785
SELECT DISTINCT + 81, + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
81
3

query II rowsort
SELECT ALL - 48, col0 + + ( - col0 ) AS col0 FROM tab0 AS cor0
----
-48
0
-48
0
-48
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6787
SELECT - col2 * - CAST( NULL AS SIGNED ) AS col2, - 76 FROM tab0 cor0
----
NULL
-76
NULL
-76
NULL
-76

skipif mysql # not compatible
query II rowsort label-6787
SELECT - col2 * - CAST ( NULL AS INTEGER ) AS col2, - 76 FROM tab0 cor0
----
NULL
-76
NULL
-76
NULL
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6788
SELECT DISTINCT - COUNT( * ) * + 73 AS col2 FROM tab0 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-6788
SELECT DISTINCT - COUNT ( * ) * + 73 AS col2 FROM tab0 AS cor0
----
-219

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6789
SELECT MAX( - + col0 ) * + MAX( + - 23 ) - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6789
SELECT MAX ( - + col0 ) * + MAX ( + - 23 ) - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 32 * + 69 AS col2 FROM tab0 AS cor0
----
-2208
-2208
-2208

query I rowsort
SELECT DISTINCT + col1 * + + col2 AS col1 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6792
SELECT ALL - + col1 DIV - CAST( col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6792
SELECT ALL - + col1 / - CAST ( col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6793
SELECT - + COUNT( * ), 99 AS col2 FROM tab0 AS cor0
----
-3
99

skipif mysql # not compatible
query II rowsort label-6793
SELECT - + COUNT ( * ), 99 AS col2 FROM tab0 AS cor0
----
-3
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6794
SELECT - COUNT( * ) * - 35 FROM tab1
----
105

skipif mysql # not compatible
query I rowsort label-6794
SELECT - COUNT ( * ) * - 35 FROM tab1
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6795
SELECT + col1 FROM tab2 WHERE NOT - - CAST( NULL AS SIGNED ) IS NOT NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-6795
SELECT + col1 FROM tab2 WHERE NOT - - CAST ( NULL AS INTEGER ) IS NOT NULL
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6796
SELECT ALL + CAST( + + COUNT( ALL + col1 ) AS SIGNED ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6796
SELECT ALL + CAST ( + + COUNT ( ALL + col1 ) AS INTEGER ) AS col1 FROM tab2
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 86 <> + - col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 * + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6799
SELECT DISTINCT - 37 * + COUNT( * ) FROM tab1, tab0 cor0
----
-333

skipif mysql # not compatible
query I rowsort label-6799
SELECT DISTINCT - 37 * + COUNT ( * ) FROM tab1, tab0 cor0
----
-333

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL < + - col0 * - + col2 * - - col2 + + + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6801
SELECT ALL - ( - col2 ) DIV + + col2 + + col1 * - 27 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1376
-1808
-2078

skipif mysql # not compatible
query I rowsort label-6801
SELECT ALL - ( - col2 ) / + + col2 + + col1 * - 27 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1376
-1808
-2078

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 5 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( col2 ) * + + col2 AS col0 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-6804
SELECT ALL + COUNT( * ) + + - 7 FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-6804
SELECT ALL + COUNT ( * ) + + - 7 FROM tab2
----
-4

query I rowsort
SELECT + 26 + col1 * col1 FROM tab1 AS cor0 WHERE + col1 / + + col2 NOT IN ( - + col0 )
----
222
2235
51

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 37 * - col1 NOT BETWEEN + col0 AND + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 70 + - 55 FROM tab2 AS cor0
----
-125

query I rowsort
SELECT DISTINCT col0 - - + col0 AS col0 FROM tab1 AS cor0
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-6809
SELECT DISTINCT + COUNT( * ) + SUM( - col0 ) AS col2 FROM tab2 AS cor0
----
-182

skipif mysql # not compatible
query I rowsort label-6809
SELECT DISTINCT + COUNT ( * ) + SUM ( - col0 ) AS col2 FROM tab2 AS cor0
----
-182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col1 FROM tab1 cor0 WHERE + col2 IS NOT NULL
----
51
85
91

query II rowsort
SELECT + col0 * + col0 + col1 * col2, col0 FROM tab1 AS cor0
----
11477
91
3945
51
7520
85

query II rowsort
SELECT DISTINCT 12 AS col2, col2 * + col1 AS col0 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 * - - col1 * + + 16 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6814
SELECT ALL - col2 DIV + 65 - - + col2 + col1 * - col1 * - 10 * - + col0 + col1 + col1 FROM tab1
----
-2010029
-21181
-99837

skipif mysql # not compatible
query I rowsort label-6814
SELECT ALL - col2 / + 65 - - + col2 + col1 * - col1 * - 10 * - + col0 + col1 + col1 FROM tab1
----
-2010029
-21181
-99837

query I rowsort
SELECT col0 * - 14 FROM tab1
----
-1190
-1274
-714

query I rowsort
SELECT + col2 * - 40 AS col0 FROM tab2
----
-1600
-2320
-920

query I rowsort
SELECT ALL - + col0 * - + 96 FROM tab0 AS cor0
----
1440
8352
9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col1 ) col0 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6819
SELECT + SUM( 56 ) FROM tab1 cor0
----
168

skipif mysql # not compatible
query I rowsort label-6819
SELECT + SUM ( 56 ) FROM tab1 cor0
----
168

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE NOT + 31 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6821
SELECT ALL CAST( col1 AS SIGNED ) * - col1 + col2 FROM tab2 AS cor0
----
-2578
-4431
-5889

skipif mysql # not compatible
query I rowsort label-6821
SELECT ALL CAST ( col1 AS INTEGER ) * - col1 + col2 FROM tab2 AS cor0
----
-2578
-4431
-5889

query I rowsort
SELECT ALL 75 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT ALL 35 * + 79 FROM tab1
----
2765
2765
2765

onlyif mysql # aggregate syntax: 
query I rowsort label-6824
SELECT ALL + COUNT( - ( + - 75 ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6824
SELECT ALL + COUNT ( - ( + - 75 ) ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT col1 * - - 16 AS col2 FROM tab0 AS cor0
----
1296
16
336

query I rowsort
SELECT DISTINCT - - 69 * - col2 AS col1 FROM tab2 AS cor0
----
-1587
-2760
-4002

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 70 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 98 * + - col2 FROM tab0 cor0
----
-4606
-9702
-980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6829
SELECT + col2 AS col2 FROM tab2 AS cor0 WHERE NOT - col2 + - - 54 + + ( - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-6829
SELECT + col2 AS col2 FROM tab2 AS cor0 WHERE NOT - col2 + - - 54 + + ( - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT DISTINCT MAX( DISTINCT col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-6830
SELECT DISTINCT MAX ( DISTINCT col0 ) FROM tab1
----
91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6832
SELECT + 3 DIV 98 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6832
SELECT + 3 / 98 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6833
SELECT 49 * COUNT( * ) DIV - + 67 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-6833
SELECT 49 * COUNT ( * ) / - + 67 FROM tab1
----
-2

query III rowsort
SELECT ALL * FROM tab2 WHERE - + col1 > col0 / - col0 * + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6835
SELECT COUNT( * ) + + COUNT( DISTINCT 9 ) AS col1 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-6835
SELECT COUNT ( * ) + + COUNT ( DISTINCT 9 ) AS col1 FROM tab2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6836
SELECT ALL - ( - - COUNT( ALL col1 ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6836
SELECT ALL - ( - - COUNT ( ALL col1 ) ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT col2 + col2 + - 54 AS col2 FROM tab0
----
-34
144
40

query II rowsort
SELECT ALL - col0 AS col1, - 52 AS col2 FROM tab0 WHERE NOT col1 < - + col2
----
-15
-52
-87
-52
-97
-52

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 IS NULL OR NOT - + 2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6840
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 * + - CAST( NULL AS SIGNED ) NOT BETWEEN - - 13 AND - 41 * - col2
----

skipif mysql # not compatible
query III rowsort label-6840
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 * + - CAST ( NULL AS INTEGER ) NOT BETWEEN - - 13 AND - 41 * - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6841
SELECT DISTINCT + COUNT( * ) - + 30 AS col0, + MIN( DISTINCT - + col0 ) FROM tab0 AS cor0
----
-27
-97

skipif mysql # not compatible
query II rowsort label-6841
SELECT DISTINCT + COUNT ( * ) - + 30 AS col0, + MIN ( DISTINCT - + col0 ) FROM tab0 AS cor0
----
-27
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6842
SELECT DISTINCT - - col1 - col0 + - + 70 + + 66 * + - CAST( + - 28 AS SIGNED ) + + 26 + 30 * - + 99 FROM tab1 cor0
----
-1203
-1210
-1246

skipif mysql # not compatible
query I rowsort label-6842
SELECT DISTINCT - - col1 - col0 + - + 70 + + 66 * + - CAST ( + - 28 AS INTEGER ) + + 26 + 30 * - + 99 FROM tab1 cor0
----
-1203
-1210
-1246

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6843
SELECT DISTINCT + COUNT( * ) DIV + - COUNT( * ) - 80 FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-6843
SELECT DISTINCT + COUNT ( * ) / + - COUNT ( * ) - 80 FROM tab1 AS cor0
----
-81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6845
SELECT + AVG ( DISTINCT - 96 ) AS col1, MAX( - col0 ) - COUNT( * ) FROM tab1 WHERE NOT - ( - - col1 ) >= ( - 11 * col0 )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6845
SELECT + AVG ( DISTINCT - 96 ) AS col1, MAX ( - col0 ) - COUNT ( * ) FROM tab1 WHERE NOT - ( - - col1 ) >= ( - 11 * col0 )
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6846
SELECT + COUNT( * ) * + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6846
SELECT + COUNT ( * ) * + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query II rowsort
SELECT - 22, - 2 AS col1 FROM tab0
----
-22
-2
-22
-2
-22
-2

query I rowsort
SELECT - - col0 * + 81 + - 85 AS col0 FROM tab2 WHERE NOT - 36 NOT BETWEEN NULL AND 81 - - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - + 82 col1 FROM tab1
----
-4182
-6970
-7462

onlyif mysql # aggregate syntax: 
query II rowsort label-6850
SELECT DISTINCT 29 col2, COUNT( * ) FROM tab2
----
29
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6850
SELECT DISTINCT 29 col2, COUNT ( * ) FROM tab2
----
29
3

query I rowsort
SELECT DISTINCT - + 78 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + col0 * - - col2 + + col1 * + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, 92 col1 FROM tab0 AS cor0
----
-15
92
-87
92
-97
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT ALL + MAX( ALL + 55 ) FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-6853
SELECT ALL + MAX ( ALL + 55 ) FROM tab2 AS cor0
----
55

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6854
SELECT - - CAST( NULL AS DECIMAL ) AS col1, MAX( ALL col2 ) AS col1 FROM tab0 AS cor0
----
NULL
99

skipif mysql # not compatible
query II rowsort label-6854
SELECT - - CAST ( NULL AS REAL ) AS col1, MAX ( ALL col2 ) AS col1 FROM tab0 AS cor0
----
NULL
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6855
SELECT + - CAST( NULL AS SIGNED ), COUNT( * ) + COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL
6

skipif mysql # not compatible
query II rowsort label-6855
SELECT + - CAST ( NULL AS INTEGER ), COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL
6

query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 WHERE ( 36 ) > 59
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 21 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6858
SELECT ( + ( + COUNT( * ) ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6858
SELECT ( + ( + COUNT ( * ) ) ) AS col2 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 - + col0 * + col2 col0 FROM tab2
----
-1012
-2514
-4304

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + col2 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6861
SELECT DISTINCT + MIN( DISTINCT - col0 ) col1 FROM tab0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6861
SELECT DISTINCT + MIN ( DISTINCT - col0 ) col1 FROM tab0
----
-97

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND col2
----

query I rowsort
SELECT DISTINCT - col0 * ( 69 ) AS col0 FROM tab1
----
-3519
-5865
-6279

query I rowsort
SELECT ( + col1 ) + 40 FROM tab2
----
107
117
91

query III rowsort
SELECT * FROM tab0 WHERE ( col0 ) - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = + col1 + + 81
----

query III rowsort
SELECT * FROM tab2 WHERE col1 + + col0 IN ( + col0 + col0 )
----

query I rowsort
SELECT col2 FROM tab1 WHERE NOT - 14 IS NULL
----
59
68
96

query I rowsort
SELECT - 54 - 75 * col1 AS col1 FROM tab2
----
-3879
-5079
-5829

onlyif mysql # aggregate syntax: 
query I rowsort label-6870
SELECT SUM( + 99 ) AS col1 FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-6870
SELECT SUM ( + 99 ) AS col1 FROM tab0
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-6871
SELECT DISTINCT COUNT( DISTINCT 86 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6871
SELECT DISTINCT COUNT ( DISTINCT 86 ) AS col1 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6872
SELECT COUNT( DISTINCT col0 ) * 98 FROM tab2
----
294

skipif mysql # not compatible
query I rowsort label-6872
SELECT COUNT ( DISTINCT col0 ) * 98 FROM tab2
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-6873
SELECT MAX( - col2 ) * - 61 FROM tab0
----
610

skipif mysql # not compatible
query I rowsort label-6873
SELECT MAX ( - col2 ) * - 61 FROM tab0
----
610

onlyif mysql # aggregate syntax: 
query I rowsort label-6874
SELECT 98 * - COUNT( ALL col1 * + 8 ) AS col1 FROM tab1
----
-294

skipif mysql # not compatible
query I rowsort label-6874
SELECT 98 * - COUNT ( ALL col1 * + 8 ) AS col1 FROM tab1
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT - COUNT( * ) * 20 AS col2 FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-6875
SELECT - COUNT ( * ) * 20 AS col2 FROM tab1
----
-60

query I rowsort
SELECT + col1 * - 76 FROM tab2
----
-3876
-5092
-5852

query I rowsort
SELECT + 3 * col1 AS col1 FROM tab1
----
141
15
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6878
SELECT ALL - col1 / - CAST( NULL AS SIGNED ) + + ( col1 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6878
SELECT ALL - col1 / - CAST ( NULL AS INTEGER ) + + ( col1 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + 55 ) + col2 AS col2 FROM tab0 AS cor0
----
102
154
65

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6880
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( col0 AS SIGNED ) * + col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6880
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( col0 AS INTEGER ) * + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6881
SELECT ALL - CAST( + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6881
SELECT ALL - CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6882
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - CAST( NULL AS SIGNED ) + + col1 ) <> ( - col0 + 47 * col1 )
----

skipif mysql # not compatible
query III rowsort label-6882
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) + + col1 ) <> ( - col0 + 47 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6883
SELECT COUNT( * ) * + SUM( - col1 ) FROM tab2
----
-585

skipif mysql # not compatible
query I rowsort label-6883
SELECT COUNT ( * ) * + SUM ( - col1 ) FROM tab2
----
-585

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 WHERE NOT 58 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6885
SELECT - 37 + 52 * + COUNT( * ) FROM tab0
----
119

skipif mysql # not compatible
query I rowsort label-6885
SELECT - 37 + 52 * + COUNT ( * ) FROM tab0
----
119

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6886
SELECT ALL * FROM tab1 WHERE NOT ( - CAST( - col2 AS SIGNED ) * 52 ) <= ( NULL )
----

skipif mysql # not compatible
query III rowsort label-6886
SELECT ALL * FROM tab1 WHERE NOT ( - CAST ( - col2 AS INTEGER ) * 52 ) <= ( NULL )
----

query I rowsort
SELECT DISTINCT 16 - 60 FROM tab2 AS cor0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT DISTINCT COUNT( * ) + - 83 AS col2 FROM tab2 AS cor0 WHERE NOT + 92 <= NULL
----
-83

skipif mysql # not compatible
query I rowsort label-6888
SELECT DISTINCT COUNT ( * ) + - 83 AS col2 FROM tab2 AS cor0 WHERE NOT + 92 <= NULL
----
-83

query I rowsort
SELECT - + 15 + 5 * + col0 FROM tab1 AS cor0
----
240
410
440

onlyif mysql # aggregate syntax: 
query I rowsort label-6890
SELECT + + 55 * COUNT( * ) + + 73 FROM tab2 AS cor0
----
238

skipif mysql # not compatible
query I rowsort label-6890
SELECT + + 55 * COUNT ( * ) + + 73 FROM tab2 AS cor0
----
238

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL <> + col2
----

query I rowsort
SELECT col2 AS col2 FROM tab2 cor0 WHERE NULL < ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6893
SELECT + MIN( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6893
SELECT + MIN ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6895
SELECT + 77 DIV - col1 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6895
SELECT + 77 / - col1 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6896
SELECT DISTINCT CAST( + - col0 AS SIGNED ) FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-6896
SELECT DISTINCT CAST ( + - col0 AS INTEGER ) FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT ( MAX( col0 ) ) * COUNT( * ) FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-6897
SELECT ( MAX ( col0 ) ) * COUNT ( * ) FROM tab1
----
273

query I rowsort
SELECT + col2 AS col2 FROM tab0 WHERE NOT ( col1 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 99 NOT BETWEEN + ( col0 ) AND ( + 58 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( + 0 ) * 8 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6901
SELECT - CAST( - ( + 25 ) AS SIGNED ) * col2 AS col0 FROM tab2 AS cor0
----
1000
1450
575

skipif mysql # not compatible
query I rowsort label-6901
SELECT - CAST ( - ( + 25 ) AS INTEGER ) * col2 AS col0 FROM tab2 AS cor0
----
1000
1450
575

query I rowsort
SELECT ALL + AVG ( DISTINCT + 82 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + 84 )
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 94 + - col0 ) < ( col2 )
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6904
SELECT DISTINCT COUNT( col2 ) * + 52 AS col1 FROM tab1 AS cor0 WHERE NOT 11 NOT IN ( ( 72 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6904
SELECT DISTINCT COUNT ( col2 ) * + 52 AS col1 FROM tab1 AS cor0 WHERE NOT 11 NOT IN ( ( 72 ) )
----
0

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <> 31
----

query I rowsort
SELECT ALL 70 FROM tab2 WHERE + 59 - 26 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6907
SELECT col2 DIV - col0 AS col2 FROM tab0 WHERE NOT + - col2 IS NULL
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-6907
SELECT col2 / - col0 AS col2 FROM tab0 WHERE NOT + - col2 IS NULL
----
-1
-3
0

query I rowsort
SELECT ALL + col1 * col0 + - + 73 * - col2 AS col1 FROM tab2
----
4025
7848
9259

query I rowsort
SELECT 73 FROM tab2 AS cor0 WHERE NOT ( NOT ( + col2 ) IS NULL ) OR NOT NULL IS NOT NULL
----
73
73
73

query I rowsort
SELECT DISTINCT + col1 + 18 AS col1 FROM tab0 cor0
----
19
39
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col1 ) BETWEEN NULL AND + col0 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 14 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND 9 / + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 58 + col1 col1 FROM tab0 AS cor0 WHERE col0 + + col0 > ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col0, - col0 col2 FROM tab2 AS cor0
----
-46
-46
-64
-64
-75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT DISTINCT COUNT( DISTINCT - + 14 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6915
SELECT DISTINCT COUNT ( DISTINCT - + 14 ) FROM tab1
----
1

query I rowsort
SELECT ALL 61 * + 13 * 1 AS col1 FROM tab0
----
793
793
793

query I rowsort
SELECT 99 + - col1 FROM tab1 WHERE - - 77 + col2 IS NULL
----

query I rowsort
SELECT DISTINCT col2 + - + 47 FROM tab1
----
12
21
49

query II rowsort
SELECT col2 - - col0, col1 FROM tab0
----
196
1
62
81
97
21

query I rowsort
SELECT 30 * 83 - col0 FROM tab2
----
2415
2426
2444

query II rowsort
SELECT ALL - - col2 + col0, + 76 AS col2 FROM tab1 AS cor0
----
144
76
147
76
159
76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6922
SELECT - CAST( NULL AS DECIMAL ) + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6922
SELECT - CAST ( NULL AS REAL ) + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6923
SELECT DISTINCT - - 88 DIV 73 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
1

skipif mysql # not compatible
query I rowsort label-6923
SELECT DISTINCT - - 88 / 73 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6924
SELECT - + MIN( + - col0 ) FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-6924
SELECT - + MIN ( + - col0 ) FROM tab0 cor0
----
97

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT ( + col0 + - - 60 ) <= - ( - col2 ) + + col0
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 63 NOT IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 * - ( + + 27 ) FROM tab1 AS cor0
----
-1593
-1836
-2592

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6928
SELECT ALL + + CAST( NULL AS SIGNED ) / - - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6928
SELECT ALL + + CAST ( NULL AS INTEGER ) / - - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 21, col2 col0 FROM tab2
----
21
23
21
40
21
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6930
SELECT DISTINCT + 55, 90 + + CAST( NULL AS SIGNED ) - - COUNT( * ) + + 30 * COUNT( * ) AS col2 FROM tab0
----
55
NULL

skipif mysql # not compatible
query II rowsort label-6930
SELECT DISTINCT + 55, 90 + + CAST ( NULL AS INTEGER ) - - COUNT ( * ) + + 30 * COUNT ( * ) AS col2 FROM tab0
----
55
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - 47 NOT BETWEEN ( - col1 - + col0 ) AND + 85
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6932
SELECT + col2 AS col2, + col2 * - + col2 + + - CAST( NULL AS SIGNED ) + - CAST( col0 AS SIGNED ) FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-6932
SELECT + col2 AS col2, + col2 * - + col2 + + - CAST ( NULL AS INTEGER ) + - CAST ( col0 AS INTEGER ) FROM tab2
----
23
NULL
40
NULL
58
NULL

query II rowsort
SELECT col2, - col0 * - + col0 AS col0 FROM tab0
----
10
7569
47
225
99
9409

query I rowsort
SELECT col1 + - col1 * - col2 FROM tab0 WHERE NOT - col1 * + col2 + + + col1 + - + col2 + col0 * - col1 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + 4, + ( 86 ) AS col1 FROM tab1
----
4
86

query I rowsort
SELECT 22 * + - ( 6 ) FROM tab0
----
-132
-132
-132

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( ( 11 ) + 56 BETWEEN NULL AND NULL ) )
----

query I rowsort
SELECT DISTINCT 53 * 61 AS col1 FROM tab2
----
3233

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 90 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + - col2 + - col1 IS NULL OR NOT NULL IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - 5 AS col0, 32 FROM tab2 cor0
----
-5
32
-5
32
-5
32

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - - 69 ) IS NULL
----

query I rowsort
SELECT + - col1 + + 87 AS col2 FROM tab2 WHERE NOT NULL IN ( + col0 + + col2 * - col1, - 91 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 43 * + - col0 col1 FROM tab2 WHERE NULL IS NULL
----
1978
2752
3225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6945
SELECT + CAST( - + col1 AS SIGNED ) col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6945
SELECT + CAST ( - + col1 AS INTEGER ) col1 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6946
SELECT - - MIN( - 35 ) AS col2 FROM tab1 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-6946
SELECT - - MIN ( - 35 ) AS col2 FROM tab1 AS cor0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6947
SELECT + MIN( ( + + 13 ) ) FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-6947
SELECT + MIN ( ( + + 13 ) ) FROM tab2 AS cor0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6948
SELECT DISTINCT + COUNT( * ) + + 2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-6948
SELECT DISTINCT + COUNT ( * ) + + 2 FROM tab1 AS cor0
----
5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - + 59 * + 17 / + + col1 * + + col2 + + col1 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - + 33 col2 FROM tab1 AS cor0
----
26
35
63

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 <= ( + - 61 )
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6952
SELECT - col2 + ( - 63 ), CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-103
NULL
-121
NULL
-86
NULL

skipif mysql # not compatible
query II rowsort label-6952
SELECT - col2 + ( - 63 ), CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-103
NULL
-121
NULL
-86
NULL

query I rowsort
SELECT ALL + + 8 * - col2 * - ( + 33 ) AS col0 FROM tab2 AS cor0
----
10560
15312
6072

onlyif mysql # aggregate syntax: 
query I rowsort label-6954
SELECT + COUNT( * ) + - 65 FROM tab0 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-6954
SELECT + COUNT ( * ) + - 65 FROM tab0 AS cor0
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6955
SELECT ALL CAST( NULL AS SIGNED ) * + col2 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6955
SELECT ALL CAST ( NULL AS INTEGER ) * + col2 col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6956
SELECT DISTINCT 58 * + + CAST( NULL AS SIGNED ) * - col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6956
SELECT DISTINCT 58 * + + CAST ( NULL AS INTEGER ) * - col0 FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT - 10 AS col2, + col1 * - col2 FROM tab1
----
-10
-1344
-10
-295
-10
-3196

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 + - 80 + + - col2 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE 95 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6960
SELECT DISTINCT COUNT( DISTINCT - 78 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-6960
SELECT DISTINCT COUNT ( DISTINCT - 78 ) FROM tab2
----
1

query III rowsort
SELECT * FROM tab1 WHERE NULL > - col1 + col1 + - 8 + - 41 * - + col2 * + - col0
----

query I rowsort
SELECT ALL 10 + ( + col1 ) FROM tab1
----
15
24
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6963
SELECT - SUM( + 46 ) AS col0 FROM tab0 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-6963
SELECT - SUM ( + 46 ) AS col0 FROM tab0 AS cor0
----
-138

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL NOT IN ( col0, - col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6965
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( + col2 + - col1, + col0 + - CAST( + - ( - 52 ) AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-6965
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( + col2 + - col1, + col0 + - CAST ( + - ( - 52 ) AS REAL ) )
----

query II rowsort
SELECT col1 AS col2, 64 FROM tab1 AS cor0
----
14
64
47
64
5
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - col1 col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6968
SELECT DISTINCT - CAST( + 57 AS SIGNED ), + col2 AS col1 FROM tab1
----
-57
59
-57
68
-57
96

skipif mysql # not compatible
query II rowsort label-6968
SELECT DISTINCT - CAST ( + 57 AS INTEGER ), + col2 AS col1 FROM tab1
----
-57
59
-57
68
-57
96

query I rowsort
SELECT DISTINCT - + 8 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-8

query I rowsort
SELECT DISTINCT + col1 + - - col2 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT col0 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( - - col2 ) col2, 2 AS col2 FROM tab1 AS cor0
----
-59
2
-68
2
-96
2

query I rowsort
SELECT DISTINCT + + ( 63 ) * - 38 AS col1 FROM tab1 AS cor0
----
-2394

onlyif mysql # aggregate syntax: 
query I rowsort label-6974
SELECT DISTINCT COUNT( * ) * COUNT( * ) + - 61 AS col1 FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-6974
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) + - 61 AS col1 FROM tab0 AS cor0
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-6975
SELECT + ( ( - col1 ) ) DIV + col0 AS col2 FROM tab0 cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-6975
SELECT + ( ( - col1 ) ) / + col0 AS col2 FROM tab0 cor0
----
-5
0
0

query II rowsort
SELECT - col1 AS col1, + 34 + col1 * col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( 95 * 8 ) IS NULL
----
-14
230
-47
2243
-5
59

query I rowsort
SELECT - + ( - + 89 ) AS col2 FROM tab0 AS cor0
----
89
89
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6978
SELECT DISTINCT - - CAST( + - 59 AS SIGNED ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-6978
SELECT DISTINCT - - CAST ( + - 59 AS INTEGER ) FROM tab1 AS cor0
----
-59

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 * + - col1 / + + col1 + + - col2 >= 96
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT DISTINCT SUM( ALL - 30 ) FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-6980
SELECT DISTINCT SUM ( ALL - 30 ) FROM tab2
----
-90

query III rowsort
SELECT * FROM tab1 WHERE NOT - 98 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6982
SELECT DISTINCT - ( - COUNT( - - col0 ) ) + + + 33 FROM tab1 WHERE + 35 IS NOT NULL
----
36

skipif mysql # not compatible
query I rowsort label-6982
SELECT DISTINCT - ( - COUNT ( - - col0 ) ) + + + 33 FROM tab1 WHERE + 35 IS NOT NULL
----
36

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT NULL NOT BETWEEN 13 * - - col0 AND ( + - col1 * 42 )
----

query I rowsort
SELECT ALL col2 * - 28 FROM tab1
----
-1652
-1904
-2688

onlyif mysql # aggregate syntax: 
query I rowsort label-6985
SELECT COUNT( * ) * + + 56 AS col0 FROM tab1
----
168

skipif mysql # not compatible
query I rowsort label-6985
SELECT COUNT ( * ) * + + 56 AS col0 FROM tab1
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-6986
SELECT DISTINCT 50 * - ( - COUNT( * ) ) * + ( + + ( - 85 ) ) * - 50 AS col0 FROM tab1
----
637500

skipif mysql # not compatible
query I rowsort label-6986
SELECT DISTINCT 50 * - ( - COUNT ( * ) ) * + ( + + ( - 85 ) ) * - 50 AS col0 FROM tab1
----
637500

onlyif mysql # aggregate syntax: 
query I rowsort label-6987
SELECT + 2 * COUNT( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-6987
SELECT + 2 * COUNT ( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
6

query I rowsort
SELECT DISTINCT - - col2 + col0 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
144
147
159

onlyif mysql # DIV for integer division: 
query I rowsort label-6989
SELECT - 69 DIV 5 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-13
-13
-13

skipif mysql # not compatible
query I rowsort label-6989
SELECT - 69 / 5 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-13
-13
-13

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NOT - 10 / - col1 IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) * + + 1 + col0 + col1 col1 FROM tab2
----
120
181
200

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-6992
SELECT * FROM tab0 AS cor0 WHERE col0 NOT IN ( 85 - - 75 + col2 * col0 + - + col0 + 47 * - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6992
SELECT * FROM tab0 AS cor0 WHERE col0 NOT IN ( 85 - - 75 + col2 * col0 + - + col0 + 47 * - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6993
SELECT - + COUNT( * ) FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND + col0
----
0

skipif mysql # not compatible
query I rowsort label-6993
SELECT - + COUNT ( * ) FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND + col0
----
0

query I rowsort
SELECT DISTINCT col1 - - col1 AS col2 FROM tab2 cor0
----
102
134
154

onlyif mysql # aggregate syntax: 
query I rowsort label-6995
SELECT DISTINCT - SUM( ALL - + 38 ) FROM tab1 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-6995
SELECT DISTINCT - SUM ( ALL - + 38 ) FROM tab1 AS cor0
----
114

query I rowsort
SELECT ALL - col0 - - - col1 + + col1 AS col2 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6997
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) - + - col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6997
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) - + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6998
SELECT 74 - MIN( ALL + - col1 ) col1 FROM tab2
----
151

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6998
SELECT 74 - MIN ( ALL + - col1 ) col1 FROM tab2
----
151

query I rowsort
SELECT + 0 - - 42 AS col1 FROM tab2
----
42
42
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7000
SELECT 35 * - 10 * - ( 78 ) + + COUNT( * ) col0 FROM tab0 WHERE + col1 NOT BETWEEN - CAST( NULL AS SIGNED ) + + col1 + - col2 * 75 + + 97 AND ( NULL )
----
27300

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7000
SELECT 35 * - 10 * - ( 78 ) + + COUNT ( * ) col0 FROM tab0 WHERE + col1 NOT BETWEEN - CAST ( NULL AS INTEGER ) + + col1 + - col2 * 75 + + 97 AND ( NULL )
----
27300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7001
SELECT CAST( - + SUM( ALL - - col2 ) AS SIGNED ) + + - SUM( + 6 ) AS col1 FROM tab2
----
-139

skipif mysql # not compatible
query I rowsort label-7001
SELECT CAST ( - + SUM ( ALL - - col2 ) AS INTEGER ) + + - SUM ( + 6 ) AS col1 FROM tab2
----
-139

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN ( NULL ) AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7003
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 21 BETWEEN 91 AND + CAST( - col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7003
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 21 BETWEEN 91 AND + CAST ( - col1 AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7004
SELECT DISTINCT - COUNT( * ) + + MAX( col1 ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7004
SELECT DISTINCT - COUNT ( * ) + + MAX ( col1 ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7005
SELECT DISTINCT col0, - 29 DIV + 94 FROM tab1
----
51
0
85
0
91
0

skipif mysql # not compatible
query II rowsort label-7005
SELECT DISTINCT col0, - 29 / + 94 FROM tab1
----
51
0
85
0
91
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7006
SELECT + - SUM( DISTINCT col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-103

skipif mysql # not compatible
query I rowsort label-7006
SELECT + - SUM ( DISTINCT col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-103

query I rowsort
SELECT ALL ( + col1 ) * col0 AS col0 FROM tab2 cor0
----
2346
4928
5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - - col2 col0 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-7009
SELECT DISTINCT + SUM( DISTINCT + col0 ) FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-7009
SELECT DISTINCT + SUM ( DISTINCT + col0 ) FROM tab0 cor0
----
199

onlyif mysql # DIV for integer division: 
query I rowsort label-7010
SELECT col1 DIV col0 - - col2 FROM tab0 AS cor0
----
10
52
99

skipif mysql # not compatible
query I rowsort label-7010
SELECT col1 / col0 - - col2 FROM tab0 AS cor0
----
10
52
99

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL BETWEEN ( NULL ) AND col1 * - col2 * - 10 + ( - - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7012
SELECT - - 66 * + CAST( col0 AS SIGNED ) + - + CAST( NULL AS SIGNED ) 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-7012
SELECT - - 66 * + CAST ( col0 AS INTEGER ) + - + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7013
SELECT ( - - col0 ) DIV + 43 AS col0 FROM tab0 AS cor0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-7013
SELECT ( - - col0 ) / + 43 AS col0 FROM tab0 AS cor0
----
0
2
2

query I rowsort
SELECT ( - - 19 ) FROM tab0
----
19
19
19

query I rowsort
SELECT DISTINCT ( - 67 ) FROM tab1
----
-67

query I rowsort
SELECT + 79 AS col2 FROM tab2 WHERE NOT NULL < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col1 NOT IN ( + 38, - ( col1 ), - 40 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 + - + 55 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col0 + + col2 + - 36 AS col0 FROM tab0 AS cor0
----
-113
-34
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-7020
SELECT 21 DIV - 45 AS col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7020
SELECT 21 / - 45 AS col1 FROM tab0 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7021
SELECT DISTINCT CAST( - 65 AS SIGNED ) * 56 AS col1 FROM tab0 AS cor0
----
-3640

skipif mysql # not compatible
query I rowsort label-7021
SELECT DISTINCT CAST ( - 65 AS INTEGER ) * 56 AS col1 FROM tab0 AS cor0
----
-3640

onlyif mysql # DIV for integer division: 
query I rowsort label-7022
SELECT col1 DIV 34 AS col2 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-7022
SELECT col1 / 34 AS col2 FROM tab0 AS cor0
----
0
0
2

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7024
SELECT DISTINCT - 8 * + COUNT( * ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7024
SELECT DISTINCT - 8 * + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT + + 76 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query III rowsort
SELECT * FROM tab2 WHERE col1 + 58 * + 34 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 57 IS NULL
----

query I rowsort
SELECT 7 + - col0 AS col0 FROM tab0 cor0
----
-8
-80
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7029
SELECT ALL CAST( NULL AS SIGNED ) + 9 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7029
SELECT ALL CAST ( NULL AS INTEGER ) + 9 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7030
SELECT + col1 DIV col1 + + - col2 FROM tab1 AS cor0
----
-58
-67
-95

skipif mysql # not compatible
query I rowsort label-7030
SELECT + col1 / col1 + + - col2 FROM tab1 AS cor0
----
-58
-67
-95

query I rowsort
SELECT + - ( - + col1 ) * - + 24 + - - col0 AS col0 FROM tab2 AS cor0
----
-1178
-1533
-1784

onlyif mysql # aggregate syntax: 
query I rowsort label-7032
SELECT ALL - MAX( + - col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7032
SELECT ALL - MAX ( + - col1 ) FROM tab2 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7033
SELECT - CAST( NULL AS SIGNED ) + 17 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7033
SELECT - CAST ( NULL AS INTEGER ) + 17 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 11 * + col0 - + 83 FROM tab1 AS cor0
----
478
852
918

onlyif mysql # DIV for integer division: 
query I rowsort label-7035
SELECT DISTINCT col2 * col0 DIV + - col1 AS col2 FROM tab1
----
-1003
-131
-349

skipif mysql # not compatible
query I rowsort label-7035
SELECT DISTINCT col2 * col0 / + - col1 AS col2 FROM tab1
----
-1003
-131
-349

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 col2 FROM tab0 WHERE NULL = - col2
----

query I rowsort
SELECT ALL ( col2 ) + - - 3 FROM tab2
----
26
43
61

query I rowsort
SELECT ALL - ( - 26 ) AS col1 FROM tab1
----
26
26
26

query I rowsort
SELECT ( + - 36 ) AS col0 FROM tab2
----
-36
-36
-36

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 * - col1 * col1 + + + col2 + col2 * - col2 / - - 59 <= - + col2
----

query II rowsort
SELECT ALL - col1 AS col0, + col0 * + col1 - - col0 AS col0 FROM tab1
----
-14
765
-47
4368
-5
510

query I rowsort
SELECT DISTINCT - + ( - col0 ) + - 50 - - 8 + - + col0 FROM tab0 AS cor0
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7043
SELECT - CAST( - + col2 AS SIGNED ) FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-7043
SELECT - CAST ( - + col2 AS INTEGER ) FROM tab1 cor0
----
59
68
96

query I rowsort
SELECT - + 80 AS col0 FROM tab0 cor0
----
-80
-80
-80

query I rowsort
SELECT ALL + + 28 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 WHERE + col1 IN ( - ( 30 ), 56 + 92 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7047
SELECT - CAST( NULL AS SIGNED ) / + + 41 * - - col0 / + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7047
SELECT - CAST ( NULL AS INTEGER ) / + + 41 * - - col0 / + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( + + 59 ) FROM tab2 AS cor0
----
59
59
59

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + - col1 * + - 75 = - - col1 * col0 - 79 + - + ( + - ( + 14 ) ) AND col2 * - 5 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7050
SELECT * FROM tab2 WHERE NOT - ( + col2 ) = + CAST( NULL AS SIGNED ) / col0
----

skipif mysql # not compatible
query III rowsort label-7050
SELECT * FROM tab2 WHERE NOT - ( + col2 ) = + CAST ( NULL AS INTEGER ) / col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 36 NOT BETWEEN - 9 AND - + 71
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 * + + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 79 * - col0 FROM tab1
----
4029
6715
7189

onlyif mysql # aggregate syntax: 
query II rowsort label-7054
SELECT ALL 35 * - - SUM( + + col1 ), MAX( DISTINCT + col0 ) AS col2 FROM tab2
----
6825
75

skipif mysql # not compatible
query II rowsort label-7054
SELECT ALL 35 * - - SUM ( + + col1 ), MAX ( DISTINCT + col0 ) AS col2 FROM tab2
----
6825
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7055
SELECT ALL + col1 * - col0 FROM tab0 WHERE CAST( NULL AS SIGNED ) IN ( ( - 93 ), + 14 )
----

skipif mysql # not compatible
query I rowsort label-7055
SELECT ALL + col1 * - col0 FROM tab0 WHERE CAST ( NULL AS INTEGER ) IN ( ( - 93 ), + 14 )
----

query I rowsort
SELECT ALL 23 + - 69 FROM tab0
----
-46
-46
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7057
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 WHERE NOT - + col1 - 53 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7057
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 WHERE NOT - + col1 - 53 IS NULL
----
3

query II rowsort
SELECT + col1 AS col0, col0 AS col2 FROM tab2 AS cor0
----
51
46
67
75
77
64

query II rowsort
SELECT + + 44, col2 FROM tab0 AS cor0
----
44
10
44
47
44
99

query II rowsort
SELECT DISTINCT col0 AS col2, col0 + col2 FROM tab0 AS cor0
----
15
62
87
97
97
196

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 59 > NULL
----

query I rowsort
SELECT 29 + + - 69 FROM tab1
----
-40
-40
-40

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 IN ( - + col2 * - col1 * + - 25 + - - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7064
SELECT ALL + 56 DIV - ( - col0 ) FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7064
SELECT ALL + 56 / - ( - col0 ) FROM tab2
----
0
0
1

query III rowsort
SELECT * FROM tab0 WHERE + 83 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7066
SELECT col2 DIV - 27 AS col1 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-7066
SELECT col2 / - 27 AS col1 FROM tab2
----
-1
-2
0

query I rowsort
SELECT DISTINCT - 87 AS col0 FROM tab0 WHERE col2 NOT IN ( col1 * col2 - + 79 + - - col0 * + - col2, col1 / - col0, - ( - 75 ) - ( - col0 ) )
----
-87

query I rowsort
SELECT - col0 * col0 * 93 AS col0 FROM tab1 AS cor0
----
-241893
-671925
-770133

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7070
SELECT ALL COUNT( * ) + - COUNT( DISTINCT + + col0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7070
SELECT ALL COUNT ( * ) + - COUNT ( DISTINCT + + col0 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT - col2 - - + 8 FROM tab1 AS cor0
----
-51
-60
-88

query I rowsort
SELECT DISTINCT - col1 - + - col0 FROM tab2
----
-13
-5
8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7073
SELECT CAST( NULL AS DECIMAL ) * + col0 - - + 16 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7073
SELECT CAST ( NULL AS REAL ) * + col0 - - + 16 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < col2 + + col2 * + - 39
----

query III rowsort
SELECT * FROM tab1 WHERE - col1 NOT IN ( - col1, ( - col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7076
SELECT 5 + COUNT( ALL + 83 ) col0 FROM tab2
----
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7076
SELECT 5 + COUNT ( ALL + 83 ) col0 FROM tab2
----
8

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN NULL AND - + 66
----

query II rowsort
SELECT col0, col0 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
46
64
64
75
75

query II rowsort
SELECT ALL col2 * - col1, col1 * + + 82 AS col0 FROM tab2 WHERE NOT ( ( + col1 ) + col0 ) <= + col0
----
-1173
4182
-3080
6314
-3886
5494

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7080
SELECT ( - + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7080
SELECT ( - + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - + col1 ) FROM tab2
----
51
67
77

query I rowsort
SELECT + col0 * - + col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT col1 * 46 - - - 44 FROM tab0 AS cor0
----
2
3682
922

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN - - col1 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 89 * - ( - col0 ) * + - col2 < - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= col0 * - col0
----

query I rowsort
SELECT + col1 AS col2 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * + col2 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col0 col2, + col2 + col0 + + - col1 AS col0 FROM tab0 AS cor0
----
15
-19
87
76
97
195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7090
SELECT DISTINCT + - CAST( + - COUNT( DISTINCT - - col0 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7090
SELECT DISTINCT + - CAST ( + - COUNT ( DISTINCT - - col0 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - 43 * 9 FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN - + col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7092
SELECT - 47 DIV col1 DIV - col0 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7092
SELECT - 47 / col1 / - col0 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7093
SELECT COUNT( + col0 ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7093
SELECT COUNT ( + col0 ) AS col1 FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7094
SELECT ALL - col0 * + CAST( + col0 AS SIGNED ) FROM tab1
----
-2601
-7225
-8281

skipif mysql # not compatible
query I rowsort label-7094
SELECT ALL - col0 * + CAST ( + col0 AS INTEGER ) FROM tab1
----
-2601
-7225
-8281

query I rowsort
SELECT ALL - ( - 68 ) * - col0 + col2 AS col0 FROM tab2
----
-3105
-4312
-5042

onlyif mysql # aggregate syntax: 
query II rowsort label-7096
SELECT + ( + + COUNT( * ) ) AS col1, 46 FROM tab0 AS cor0
----
3
46

skipif mysql # not compatible
query II rowsort label-7096
SELECT + ( + + COUNT ( * ) ) AS col1, 46 FROM tab0 AS cor0
----
3
46

onlyif mysql # DIV for integer division: 
query I rowsort label-7097
SELECT DISTINCT col2 + 27 - - 63 DIV + col1 FROM tab2 AS cor0
----
51
67
85

skipif mysql # not compatible
query I rowsort label-7097
SELECT DISTINCT col2 + 27 - - 63 / + col1 FROM tab2 AS cor0
----
51
67
85

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + - col1 <> + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + 59 > - - 35
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 + + col1 + - col0 * col2 + - col1 AS col0 FROM tab1 AS cor0
----
-4882
-5010
-6141

onlyif mysql # aggregate syntax: 
query I rowsort label-7101
SELECT DISTINCT COUNT( * ) + + + 25 AS col1 FROM tab0 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-7101
SELECT DISTINCT COUNT ( * ) + + + 25 AS col1 FROM tab0 AS cor0
----
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col1 - - 80 col1 FROM tab0 AS cor0
----
-361
-6481
79

query I rowsort
SELECT + - 52 + - - 18 AS col0 FROM tab0 AS cor0
----
-34
-34
-34

query I rowsort
SELECT + - col2 FROM tab2 cor0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7105
SELECT DISTINCT COUNT( * ) + - SUM( ALL - col0 ) FROM tab2 AS cor0
----
188

skipif mysql # not compatible
query I rowsort label-7105
SELECT DISTINCT COUNT ( * ) + - SUM ( ALL - col0 ) FROM tab2 AS cor0
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-7106
SELECT MIN( col0 ) FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-7106
SELECT MIN ( col0 ) FROM tab1 cor0
----
51

query II rowsort
SELECT DISTINCT - 20 AS col1, + 64 FROM tab0 AS cor0
----
-20
64

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT 2 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7109
SELECT COUNT( ALL + + 65 ) AS col2 FROM tab1, tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-7109
SELECT COUNT ( ALL + + 65 ) AS col2 FROM tab1, tab2 cor0
----
9

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 - + ( + col1 ) IS NOT NULL
----

query I rowsort
SELECT - ( - + 16 ) FROM tab1
----
16
16
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT ALL + 12 * MIN( + col2 ) AS col1 FROM tab0
----
120

skipif mysql # not compatible
query I rowsort label-7112
SELECT ALL + 12 * MIN ( + col2 ) AS col1 FROM tab0
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-7113
SELECT 81 DIV + col2 AS col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7113
SELECT 81 / + col2 AS col0 FROM tab1
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7114
SELECT DISTINCT + + 38 * - - 17 AS col1, col1 * + col1 FROM tab2 WHERE NOT NULL < CAST( - ( - + col0 ) AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-7114
SELECT DISTINCT + + 38 * - - 17 AS col1, col1 * + col1 FROM tab2 WHERE NOT NULL < CAST ( - ( - + col0 ) AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * - 94 * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 93 * col1 AS col1 FROM tab0 AS cor0
----
1953
7533
93

onlyif mysql # DIV for integer division: 
query I rowsort label-7117
SELECT ALL 70 DIV - 89 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7117
SELECT ALL 70 / - 89 FROM tab1
----
0
0
0

query I rowsort
SELECT + 59 + - col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-16
-5
13

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 < + - col1
----

query I rowsort
SELECT - col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7121
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL >= col0
----
0

skipif mysql # not compatible
query I rowsort label-7121
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL >= col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7122
SELECT + 16 DIV + col1 FROM tab1 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-7122
SELECT + 16 / + col1 FROM tab1 AS cor0
----
0
1
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 23 - - col2 - - - 25 * - - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + 68 AS col1, - col2 FROM tab2
----
68
-23
68
-40
68
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7125
SELECT - COUNT( * ) DIV - 53 * - - 53 * + 92 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7125
SELECT - COUNT ( * ) / - 53 * - - 53 * + 92 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7126
SELECT + ( + COUNT( * ) ) AS col1 FROM tab0 WHERE - CAST( NULL AS SIGNED ) * + - col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7126
SELECT + ( + COUNT ( * ) ) AS col1 FROM tab0 WHERE - CAST ( NULL AS INTEGER ) * + - col1 IS NULL
----
3

query I rowsort
SELECT ALL 30 * - col2 FROM tab2
----
-1200
-1740
-690

query II rowsort
SELECT DISTINCT - col1 AS col2, col0 * + 24 AS col0 FROM tab1
----
-14
1224
-47
2184
-5
2040

query II rowsort
SELECT + 26 AS col1, + col0 + col1 * + + col1 + + col1 AS col0 FROM tab1
----
26
115
26
2347
26
261

query I rowsort
SELECT ( - - ( - 24 ) ) AS col2 FROM tab2
----
-24
-24
-24

query II rowsort
SELECT + col0, + 84 FROM tab0
----
15
84
87
84
97
84

query II rowsort
SELECT DISTINCT + 57 AS col1, col0 + + + 16 * + - 79 + + 27 * + + col1 FROM tab2
----
57
159
57
620
57
879

query I rowsort
SELECT DISTINCT 98 + ( + col0 ) AS col1 FROM tab1 AS cor0
----
149
183
189

query I rowsort
SELECT ALL + ( - + col1 ) FROM tab2 WHERE NOT - + ( + col1 ) <= NULL
----

query I rowsort
SELECT + - col1 * + col1 + - col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7136
SELECT CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7136
SELECT CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7137
SELECT DISTINCT + - COUNT( * ) * - - 7 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-63

skipif mysql # not compatible
query I rowsort label-7137
SELECT DISTINCT + - COUNT ( * ) * - - 7 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-63

query I rowsort
SELECT ALL + 0 * + - col1 * - 23 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7139
SELECT DISTINCT - SUM( + col2 ) * 87 FROM tab1 AS cor0
----
-19401

skipif mysql # not compatible
query I rowsort label-7139
SELECT DISTINCT - SUM ( + col2 ) * 87 FROM tab1 AS cor0
----
-19401

onlyif mysql # DIV for integer division: 
query I rowsort label-7140
SELECT ALL + col0 DIV col0 * 14 FROM tab2
----
14
14
14

skipif mysql # not compatible
query I rowsort label-7140
SELECT ALL + col0 / col0 * 14 FROM tab2
----
14
14
14

query I rowsort
SELECT ALL ( 0 ) AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL 82 * - col1 * - - col0 AS col1 FROM tab1
----
-34850
-350714
-58548

query II rowsort
SELECT - col2 AS col2, col1 AS col0 FROM tab0
----
-10
21
-47
81
-99
1

query II rowsort
SELECT 76 AS col2, 28 FROM tab1
----
76
28
76
28
76
28

query II rowsort
SELECT DISTINCT + col0, col1 * - - 31 * - ( - ( - - col0 ) ) FROM tab2
----
46
72726
64
152768
75
155775

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7146
SELECT DISTINCT + - MAX( + + col0 ) DIV 6 AS col2 FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-7146
SELECT DISTINCT + - MAX ( + + col0 ) / 6 AS col2 FROM tab2 AS cor0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT - 52 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-7147
SELECT - 52 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-156

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( ( 64 IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7149
SELECT ALL + SUM( DISTINCT - + 28 ) * COUNT( * ) DIV + COUNT( ALL + col1 ) FROM tab2
----
-28

skipif mysql # not compatible
query I rowsort label-7149
SELECT ALL + SUM ( DISTINCT - + 28 ) * COUNT ( * ) / + COUNT ( ALL + col1 ) FROM tab2
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7150
SELECT * FROM tab0 WHERE NOT - col1 * 23 / CAST( NULL AS SIGNED ) + - col0 <= + col2
----

skipif mysql # not compatible
query III rowsort label-7150
SELECT * FROM tab0 WHERE NOT - col1 * 23 / CAST ( NULL AS INTEGER ) + - col0 <= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7151
SELECT ALL + 45 + COUNT( * ) FROM tab1 cor0
----
48

skipif mysql # not compatible
query I rowsort label-7151
SELECT ALL + 45 + COUNT ( * ) FROM tab1 cor0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-7152
SELECT DISTINCT - + col0 DIV + + col0 AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7152
SELECT DISTINCT - + col0 / + + col0 AS col0 FROM tab1 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 23 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT 72 * + - col0 + col0 FROM tab0 AS cor0
----
-1065
-6177
-6887

onlyif mysql # aggregate syntax: 
query I rowsort label-7156
SELECT ALL ( - COUNT( * ) ) + + 3 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7156
SELECT ALL ( - COUNT ( * ) ) + + 3 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col1 * + 56 + + col0 FROM tab2 AS cor0
----
-2810
-3677
-4248

onlyif mysql # DIV for integer division: 
query I rowsort label-7158
SELECT col0 * col0 DIV col2 + + - col0 FROM tab0
----
-11
-2
669

skipif mysql # not compatible
query I rowsort label-7158
SELECT col0 * col0 / col2 + + - col0 FROM tab0
----
-11
-2
669

query I rowsort
SELECT - ( + - col2 ) + + + 2 AS col2 FROM tab2
----
25
42
60

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE NOT - 84 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + - 17 col1 FROM tab1
----
34
68
74

query I rowsort
SELECT DISTINCT 69 FROM tab0, tab0 AS cor0
----
69

query I rowsort
SELECT ALL 73 + - col0 * + col0 - + col1 FROM tab0
----
-233
-7517
-9337

query I rowsort
SELECT - + 69 AS col0 FROM tab0 WHERE NULL NOT BETWEEN 60 + col0 * - + col1 * - col0 AND - - 19
----

query I rowsort
SELECT ALL - col1 * + - col0 - col0 + - 54 FROM tab2 AS cor0
----
2246
4810
4896

query I rowsort
SELECT DISTINCT 9 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7167
SELECT DISTINCT + 84 DIV col0 + col0 FROM tab1
----
52
85
91

skipif mysql # not compatible
query I rowsort label-7167
SELECT DISTINCT + 84 / col0 + col0 FROM tab1
----
52
85
91

query I rowsort
SELECT + ( 12 ) FROM tab2 cor0
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7169
SELECT + MIN( ALL col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT + col1 + + - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7169
SELECT + MIN ( ALL col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT + col1 + + - col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7170
SELECT ( + COUNT( + ( - col0 ) ) ) * - + 46 col1 FROM tab0 AS cor0
----
-138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7170
SELECT ( + COUNT ( + ( - col0 ) ) ) * - + 46 col1 FROM tab0 AS cor0
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-7171
SELECT DISTINCT - + COUNT( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7171
SELECT DISTINCT - + COUNT ( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - + 13 * - + col1 AS col1 FROM tab2 AS cor0
----
1001
663
871

query I rowsort
SELECT DISTINCT - ( - col1 ) * - - col1 FROM tab2 AS cor0
----
2601
4489
5929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7174
SELECT + + CAST( - - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-7174
SELECT + + CAST ( - - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
15
87
97

query II rowsort
SELECT + + 9, 39 AS col1 FROM tab0 cor0
----
9
39
9
39
9
39

query I rowsort
SELECT DISTINCT + + col2 / + 62 - + 40 AS col0 FROM tab1 AS cor0 WHERE 54 + + + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7177
SELECT DISTINCT - col1 * col0 * + CAST( + ( - col2 ) AS SIGNED ), - 80 AS col1 FROM tab1
----
25075
-80
290836
-80
68544
-80

skipif mysql # not compatible
query II rowsort label-7177
SELECT DISTINCT - col1 * col0 * + CAST ( + ( - col2 ) AS INTEGER ), - 80 AS col1 FROM tab1
----
25075
-80
290836
-80
68544
-80

query I rowsort
SELECT DISTINCT 46 * - + col2 FROM tab0
----
-2162
-4554
-460

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT - col2 / col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col0 >= + + col2 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 * + + col1 FROM tab0 AS cor0
----
1
441
6561

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= + col2 * - 98
----

query I rowsort
SELECT + col2 * - 88 AS col0 FROM tab2
----
-2024
-3520
-5104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7184
SELECT + CAST( - 9 AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

skipif mysql # not compatible
query I rowsort label-7184
SELECT + CAST ( - 9 AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7185
SELECT * FROM tab1 WHERE col2 + ( + col1 ) NOT BETWEEN - 23 * - 55 AND + + col2 / col0 * + + col1 * + col0 / - 75 - CAST( NULL AS SIGNED ) * - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7185
SELECT * FROM tab1 WHERE col2 + ( + col1 ) NOT BETWEEN - 23 * - 55 AND + + col2 / col0 * + + col1 * + col0 / - 75 - CAST ( NULL AS INTEGER ) * - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7186
SELECT + - MIN( - col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-7186
SELECT + - MIN ( - col2 ) FROM tab2 AS cor0
----
58

query I rowsort
SELECT ALL - col1 + - 71 AS col1 FROM tab0 cor0
----
-152
-72
-92

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 68 * - ( + ( - ( - col2 ) ) ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 84 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + 44 * - - col0 + - 97 + - + col1 FROM tab0 cor0
----
-3946
-4366
-838

query I rowsort
SELECT DISTINCT ( - col0 ) + + - col1 - + 53 AS col2 FROM tab0 AS cor0
----
-149
-151
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-7192
SELECT ALL - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL = - col1
----
0

skipif mysql # not compatible
query I rowsort label-7192
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL = - col1
----
0

query I rowsort
SELECT col1 + 6 * - col0 * - 71 AS col0 FROM tab0 AS cor0 WHERE NULL >= + col2
----

query I rowsort
SELECT 24 * + + col2 * + 76 FROM tab1
----
107616
124032
175104

query III rowsort
SELECT * FROM tab2 WHERE col0 - 23 - + - col0 <> col1 + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7196
SELECT DISTINCT CAST( - col1 AS SIGNED ) * col0 AS col2 FROM tab1
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-7196
SELECT DISTINCT CAST ( - col1 AS INTEGER ) * col0 AS col2 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT ALL 83 * 12 FROM tab1
----
996
996
996

query III rowsort
SELECT * FROM tab0 WHERE NULL < + 6
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 - - col0 + col1 - - col2 col0 FROM tab1
----
214
226
271

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7200
SELECT DISTINCT + 74 + - col0 * - + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7200
SELECT DISTINCT + 74 + - col0 * - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7201
SELECT DISTINCT SUM( ALL - col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-7201
SELECT DISTINCT SUM ( ALL - col0 ) FROM tab2
----
-185

query I rowsort
SELECT 36 + + col2 * + + 17 FROM tab2
----
1022
427
716

query I rowsort
SELECT 53 * - - col0 + + col0 FROM tab0
----
4698
5238
810

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( - + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7205
SELECT + ( - SUM( ALL + col2 ) ) + + COUNT( * ) FROM tab2 AS cor0
----
-118

skipif mysql # not compatible
query I rowsort label-7205
SELECT + ( - SUM ( ALL + col2 ) ) + + COUNT ( * ) FROM tab2 AS cor0
----
-118

query I rowsort
SELECT DISTINCT - 94 + - - col1 AS col0 FROM tab0 cor0
----
-13
-73
-93

query I rowsort
SELECT col1 * + 54 AS col1 FROM tab0
----
1134
4374
54

query II rowsort
SELECT DISTINCT - col2 AS col2, + col1 FROM tab0 cor0
----
-10
21
-47
81
-99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT ( + + SUM( DISTINCT ( 98 ) ) ) AS col2 FROM tab0 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-7209
SELECT ( + + SUM ( DISTINCT ( 98 ) ) ) AS col2 FROM tab0 AS cor0
----
98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 >= - + ( + - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + col1, - ( 61 ) AS col0 FROM tab1 AS cor0
----
14
-61
47
-61
5
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7212
SELECT SUM( DISTINCT - - 9 ) AS col1 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-7212
SELECT SUM ( DISTINCT - - 9 ) AS col1 FROM tab2
----
9

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT ALL col1 * 68 * - - 4 AS col1 FROM tab2
----
13872
18224
20944

query I rowsort
SELECT - col0 * col0 AS col1 FROM tab1 WHERE NOT + + 11 + col0 * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7216
SELECT 25 * + COUNT( * ) FROM tab2, tab1 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-7216
SELECT 25 * + COUNT ( * ) FROM tab2, tab1 AS cor0
----
225

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 WHERE NOT NULL BETWEEN 24 * - col0 AND - 67
----

query II rowsort
SELECT - + 5 AS col1, - col2 AS col0 FROM tab2 AS cor0
----
-5
-23
-5
-40
-5
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7219
SELECT - - ( + 34 ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7219
SELECT - - ( + 34 ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 53 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7221
SELECT - COUNT( * ) FROM tab2 WHERE - + 70 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7221
SELECT - COUNT ( * ) FROM tab2 WHERE - + 70 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7222
SELECT COUNT( * ) + 0 col2 FROM tab1 cor0 WHERE + col1 + - ( + - col0 ) IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7222
SELECT COUNT ( * ) + 0 col2 FROM tab1 cor0 WHERE + col1 + - ( + - col0 ) IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 68 < NULL
----

query I rowsort
SELECT - + col2 * + - 50 + - + col2 AS col0 FROM tab1 AS cor0
----
2891
3332
4704

query II rowsort
SELECT DISTINCT + + col1 + - col0 AS col0, col0 AS col0 FROM tab2 AS cor0
----
-8
75
13
64
5
46

query I rowsort
SELECT + 73 + - ( + col0 ) AS col0 FROM tab0 cor0
----
-14
-24
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7227
SELECT + CAST( - COUNT( * ) AS SIGNED ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7227
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - - 48 + + 15 FROM tab0 cor0
----
63
63
63

onlyif mysql # DIV for integer division: 
query II rowsort label-7229
SELECT ALL + col1 * col2 DIV col0 AS col2, col1 FROM tab2
----
25
51
48
77
51
67

skipif mysql # not compatible
query II rowsort label-7229
SELECT ALL + col1 * col2 / col0 AS col2, col1 FROM tab2
----
25
51
48
77
51
67

onlyif mysql # aggregate syntax: 
query II rowsort label-7230
SELECT DISTINCT - COUNT( * ) + - MAX( ALL 83 ), 7 AS col0 FROM tab1
----
-86
7

skipif mysql # not compatible
query II rowsort label-7230
SELECT DISTINCT - COUNT ( * ) + - MAX ( ALL 83 ), 7 AS col0 FROM tab1
----
-86
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7231
SELECT - 93 + + ( - COUNT( * ) ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-7231
SELECT - 93 + + ( - COUNT ( * ) ) FROM tab1
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7232
SELECT DISTINCT COUNT( * ) DIV + 12 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7232
SELECT DISTINCT COUNT ( * ) / + 12 FROM tab2
----
0

query III rowsort
SELECT * FROM tab2 WHERE - col2 - col0 IS NULL
----

query I rowsort
SELECT ALL + 45 * + col0 FROM tab0
----
3915
4365
675

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT - COUNT( * ) * - 34 FROM tab1
----
102

skipif mysql # not compatible
query I rowsort label-7235
SELECT - COUNT ( * ) * - 34 FROM tab1
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7236
SELECT + CAST( NULL AS SIGNED ) * + MIN( + 84 ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7236
SELECT + CAST ( NULL AS INTEGER ) * + MIN ( + 84 ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col2 * - + col0 + col1 FROM tab0 AS cor0 WHERE NULL > - ( + - 89 ) * + col1 * + col0 + - 66 * - + ( col0 ) + + + col2 + col2
----

query I rowsort
SELECT + col1 - - 74 FROM tab2 AS cor0
----
125
141
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7239
SELECT ALL SUM( DISTINCT - col2 ) AS col0, CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL AND NULL > ( NULL )
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7239
SELECT ALL SUM ( DISTINCT - col2 ) AS col0, CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL AND NULL > ( NULL )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7240
SELECT ALL - COUNT( * ) * 91 * - 51 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
41769

skipif mysql # not compatible
query I rowsort label-7240
SELECT ALL - COUNT ( * ) * 91 * - 51 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
41769

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7241
SELECT CAST( NULL AS SIGNED ) * + - col2 * + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7241
SELECT CAST ( NULL AS INTEGER ) * + - col2 * + col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * 74 FROM tab1 AS cor0
----
3774
6290
6734

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN col0 / - - col1 AND NULL
----

query I rowsort
SELECT - ( + + 17 ) AS col1 FROM tab0 AS cor0
----
-17
-17
-17

query I rowsort
SELECT - 67 * 1 FROM tab2 AS cor0
----
-67
-67
-67

query II rowsort
SELECT - col0 AS col0, col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) > - col2 * + + 38 + + 83 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7247
SELECT + COUNT( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7247
SELECT + COUNT ( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7248
SELECT COUNT( * ) FROM tab1 WHERE NOT 35 / - ( col0 ) + - 59 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7248
SELECT COUNT ( * ) FROM tab1 WHERE NOT 35 / - ( col0 ) + - 59 IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE 5 IS NULL
----

query I rowsort
SELECT DISTINCT 51 AS col1 FROM tab2 WHERE NULL < col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * ( - 68 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <= + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7253
SELECT * FROM tab2 AS cor0 WHERE 0 * + 29 * CAST( 15 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7253
SELECT * FROM tab2 AS cor0 WHERE 0 * + 29 * CAST ( 15 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7254
SELECT COUNT( * ) + + COUNT( DISTINCT + ( col1 ) ) col2 FROM tab2
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7254
SELECT COUNT ( * ) + + COUNT ( DISTINCT + ( col1 ) ) col2 FROM tab2
----
6

query I rowsort
SELECT ALL 57 + + 40 + - col2 * col2 * - - 56 AS col2 FROM tab0
----
-123607
-548759
-5503

query I rowsort
SELECT - col1 + + - col2 FROM tab2
----
-117
-125
-74

query I rowsort
SELECT ALL - 8 + + - 78 - + col1 FROM tab0
----
-107
-167
-87

query I rowsort
SELECT ALL + 14 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT DISTINCT - + col1 FROM tab1 cor0 WHERE NULL <= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7260
SELECT - col0 DIV - col0 FROM tab1 cor0 WHERE + 40 * - col1 + col1 NOT BETWEEN - col2 AND NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7260
SELECT - col0 / - col0 FROM tab1 cor0 WHERE + 40 * - col1 + col1 NOT BETWEEN - col2 AND NULL
----
1
1
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7261
SELECT ALL - + col1 + + CAST( NULL AS DECIMAL ) / col0 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7261
SELECT ALL - + col1 + + CAST ( NULL AS REAL ) / col0 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7262
SELECT ALL + + 56 - - - MAX( DISTINCT + 92 ) AS col2 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-7262
SELECT ALL + + 56 - - - MAX ( DISTINCT + 92 ) AS col2 FROM tab0 AS cor0
----
-36

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 * col2 < col0
----

query I rowsort
SELECT DISTINCT - col2 + - - col1 * - + 59 AS col0 FROM tab0 AS cor0
----
-1249
-158
-4826

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col2 col0, col1 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 - + ( - col0 ) * ( - col0 ) AS col2 FROM tab2 cor0
----
-2167
-4173
-5692

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * - 57 * + - col2 * + - 16 NOT BETWEEN - col2 * + ( col2 ) / - col0 - + 63 * 36 AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 + + col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 44 - - + col2 AS col2 FROM tab1
----
103
112
140

query I rowsort
SELECT - col0 * + col0 FROM tab0 WHERE - col1 / - + 19 + 87 + - - col1 + + + col0 + col1 IS NOT NULL
----
-225
-7569
-9409

query I rowsort
SELECT DISTINCT - col0 - - 26 FROM tab0
----
-61
-71
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7273
SELECT COUNT( * ) - + 41 FROM tab0
----
-38

skipif mysql # not compatible
query I rowsort label-7273
SELECT COUNT ( * ) - + 41 FROM tab0
----
-38

query II rowsort
SELECT col0 * - - ( col2 ) * col2 + + col1, col1 AS col1 FROM tab2
----
102477
77
24385
51
252367
67

onlyif mysql # aggregate syntax: 
query II rowsort label-7275
SELECT - MAX( - + col0 ), + 52 AS col1 FROM tab1 AS cor0
----
51
52

skipif mysql # not compatible
query II rowsort label-7275
SELECT - MAX ( - + col0 ), + 52 AS col1 FROM tab1 AS cor0
----
51
52

query I rowsort
SELECT DISTINCT 86 * col2 AS col2 FROM tab1 AS cor0
----
5074
5848
8256

onlyif mysql # aggregate syntax: 
query I rowsort label-7277
SELECT SUM( col0 ) FROM tab2 cor0
----
185

skipif mysql # not compatible
query I rowsort label-7277
SELECT SUM ( col0 ) FROM tab2 cor0
----
185

query I rowsort
SELECT - + 71 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col2, col0 col2 FROM tab2
----
51
46
67
75
77
64

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7281
SELECT ALL + col0 DIV 98 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7281
SELECT ALL + col0 / 98 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7282
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT 70 NOT BETWEEN - col1 * - col1 * - - col0 AND CAST( - 62 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7282
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT 70 NOT BETWEEN - col1 * - col1 * - - col0 AND CAST ( - 62 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7283
SELECT - col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + col1 * - + CAST( - CAST( col1 AS SIGNED ) AS SIGNED ) * - col2 + + col2 AND col2
----

skipif mysql # not compatible
query I rowsort label-7283
SELECT - col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + col1 * - + CAST ( - CAST ( col1 AS INTEGER ) AS INTEGER ) * - col2 + + col2 AND col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 34 + + - 91 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 * + col0 + - col0 * + 7 * + 28 FROM tab0 AS cor0
----
-18879
-19109
-4155

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7286
SELECT 86 DIV - MIN( ALL - col1 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7286
SELECT 86 / - MIN ( ALL - col1 ) AS col1 FROM tab1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * - col2 col1, col1 FROM tab1
----
4896
14
5015
5
6188
47

query I rowsort
SELECT 85 * + 65 + col1 FROM tab1
----
5530
5539
5572

query I rowsort
SELECT ALL col2 + + - col2 * 64 AS col0 FROM tab0
----
-2961
-6237
-630

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7290
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) + + CAST( - 87 AS SIGNED ) + 4 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7290
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) + + CAST ( - 87 AS INTEGER ) + 4 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 + + 17 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - 57 AS col0 FROM tab2 AS cor0
----
-57
-57
-57

query II rowsort
SELECT + 90 AS col1, col2 AS col1 FROM tab0 WHERE ( ( NULL ) IS NOT NULL )
----

query I rowsort
SELECT - col1 * + col2 * - col2 * + col2 AS col0 FROM tab2
----
13072504
4928000
620517

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN - - 12 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7296
SELECT - + SUM( ALL + 16 ) + - - MIN( DISTINCT + - col1 ) AS col0 FROM tab1 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-7296
SELECT - + SUM ( ALL + 16 ) + - - MIN ( DISTINCT + - col1 ) AS col0 FROM tab1 AS cor0
----
-95

query I rowsort
SELECT ALL - 93 + + col1 + - - 70 FROM tab1 AS cor0
----
-18
-9
24

query I rowsort
SELECT col0 + + - 2 FROM tab2 AS cor0
----
44
62
73

onlyif mysql # DIV for integer division: 
query I rowsort label-7299
SELECT ALL - 23 + 88 + + col0 + - col2 DIV - 80 + + + col0 FROM tab1 AS cor0
----
168
235
247

skipif mysql # not compatible
query I rowsort label-7299
SELECT ALL - 23 + 88 + + col0 + - col2 / - 80 + + + col0 FROM tab1 AS cor0
----
168
235
247

onlyif mysql # aggregate syntax: 
query II rowsort label-7300
SELECT ALL COUNT( DISTINCT 82 ) AS col1, + ( + 80 ) AS col0 FROM tab0 AS cor0 WHERE + 22 + - + col0 > NULL
----
0
80

skipif mysql # not compatible
query II rowsort label-7300
SELECT ALL COUNT ( DISTINCT 82 ) AS col1, + ( + 80 ) AS col0 FROM tab0 AS cor0 WHERE + 22 + - + col0 > NULL
----
0
80

query I rowsort
SELECT DISTINCT - 92 * + 81 FROM tab1 AS cor0 WHERE + col2 + + col1 BETWEEN col2 AND + - 8 * + + col2
----

query I rowsort
SELECT 98 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
98
98
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7303
SELECT ALL COUNT( DISTINCT + - 32 ) - + - ( - CAST( NULL AS SIGNED ) ) + - AVG ( DISTINCT + - col0 ) - - COUNT( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7303
SELECT ALL COUNT ( DISTINCT + - 32 ) - + - ( - CAST ( NULL AS INTEGER ) ) + - AVG ( DISTINCT + - col0 ) - - COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7304
SELECT + SUM( ALL + + col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-7304
SELECT + SUM ( ALL + + col0 ) FROM tab1 AS cor0
----
227

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + 26 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 13 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7307
SELECT ALL MIN( DISTINCT + - col1 ) AS col0 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-7307
SELECT ALL MIN ( DISTINCT + - col1 ) AS col0 FROM tab0
----
-81

query I rowsort
SELECT ALL - - col0 FROM tab2 WHERE NOT col0 + + col0 < col0 * - col2 * col1
----
46
64
75

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) BETWEEN - col0 + - + 55 AND NULL AND + 25 - - + col1 - + ( col2 ) / - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7310
SELECT ( - - 84 ) * + + COUNT( * ) AS col0 FROM tab0
----
252

skipif mysql # not compatible
query I rowsort label-7310
SELECT ( - - 84 ) * + + COUNT ( * ) AS col0 FROM tab0
----
252

query II rowsort
SELECT ALL col1 * - 17, + col1 + - 73 * col0 AS col1 FROM tab0
----
-1377
-1014
-17
-7080
-357
-6330

query I rowsort
SELECT + + col1 * - 70 AS col0 FROM tab1 AS cor0
----
-3290
-350
-980

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 20 * - + col0 <> + - col2 + - 32
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7314
SELECT - ( col1 ) * + - CAST( NULL AS SIGNED ) + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7314
SELECT - ( col1 ) * + - CAST ( NULL AS INTEGER ) + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 69 * - col0 + - col1 AS col2 FROM tab1 cor0
----
-3533
-5870
-6326

query II rowsort
SELECT + col0 * + 75 AS col2, 8 FROM tab0 AS cor0
----
1125
8
6525
8
7275
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 42 col1 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col1 ) - - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + 85 AS col0 FROM tab2 cor0
----
-85

query I rowsort
SELECT DISTINCT 66 AS col2 FROM tab1, tab1 AS cor0
----
66

query I rowsort
SELECT DISTINCT 58 * 7 * - + 34 AS col0 FROM tab0
----
-13804

onlyif mysql # aggregate syntax: 
query I rowsort label-7322
SELECT SUM( + ( col0 ) ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-7322
SELECT SUM ( + ( col0 ) ) FROM tab1
----
227

query II rowsort
SELECT 36 AS col0, col0 * - - 18 + - - col1 FROM tab2
----
36
1229
36
1417
36
879

query II rowsort
SELECT - col1 AS col2, 41 FROM tab0
----
-1
41
-21
41
-81
41

query I rowsort
SELECT ALL 45 + - + 65 + 22 - + 4 * + col0 AS col0 FROM tab0
----
-346
-386
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-7326
SELECT DISTINCT col0 + - col1 DIV col2 AS col1 FROM tab2 AS cor0
----
44
63
74

skipif mysql # not compatible
query I rowsort label-7326
SELECT DISTINCT col0 + - col1 / col2 AS col1 FROM tab2 AS cor0
----
44
63
74

query I rowsort
SELECT ( - col2 ) + col0 AS col1 FROM tab2
----
17
23
24

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NOT col2 - col2 IS NULL
----
59
68
96

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 8 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 + + col2 FROM tab0 WHERE NOT ( - col0 * - col2 ) IS NOT NULL
----

query I rowsort
SELECT 44 + - col1 AS col1 FROM tab2
----
-23
-33
-7

query I rowsort
SELECT ALL 28 * - col0 FROM tab1
----
-1428
-2380
-2548

query I rowsort
SELECT - col2 FROM tab2 WHERE ( - col1 ) < col2 * - 19
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7334
SELECT DISTINCT col2 * - 36 FROM tab1 WHERE NOT CAST( + col2 AS SIGNED ) NOT IN ( + 80 )
----

skipif mysql # not compatible
query I rowsort label-7334
SELECT DISTINCT col2 * - 36 FROM tab1 WHERE NOT CAST ( + col2 AS INTEGER ) NOT IN ( + 80 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( col0 * - col1 + + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7336
SELECT - col2 DIV + ( col2 ) AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7336
SELECT - col2 / + ( col2 ) AS col2 FROM tab1
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7337
SELECT + 7 DIV + col2 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7337
SELECT + 7 / + col2 AS col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7338
SELECT + col2 DIV 4 AS col1 FROM tab0
----
11
2
24

skipif mysql # not compatible
query I rowsort label-7338
SELECT + col2 / 4 AS col1 FROM tab0
----
11
2
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7339
SELECT - 96 DIV COUNT( * ) FROM tab1
----
-32

skipif mysql # not compatible
query I rowsort label-7339
SELECT - 96 / COUNT ( * ) FROM tab1
----
-32

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 + col2 / col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col0 ) + col1 / col0 <= ( + 25 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7342
SELECT - col2 DIV ( + col1 ) FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-7342
SELECT - col2 / ( + col1 ) FROM tab1
----
-1
-11
-6

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN + col2 AND ( 49 - - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col1 ) NOT BETWEEN col2 AND - col0 * col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7345
SELECT - CAST( NULL AS SIGNED ) * + 36 - SUM( DISTINCT col1 ) AS col0 FROM tab0 WHERE NOT col0 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7345
SELECT - CAST ( NULL AS INTEGER ) * + 36 - SUM ( DISTINCT col1 ) AS col0 FROM tab0 WHERE NOT col0 < NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7346
SELECT - COUNT( * ) * - 71 FROM tab2 WHERE NOT NULL IS NOT NULL
----
213

skipif mysql # not compatible
query I rowsort label-7346
SELECT - COUNT ( * ) * - 71 FROM tab2 WHERE NOT NULL IS NOT NULL
----
213

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7347
SELECT ALL COUNT( * ) FROM tab0 WHERE NOT ( - CAST( col0 AS SIGNED ) * 67 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7347
SELECT ALL COUNT ( * ) FROM tab0 WHERE NOT ( - CAST ( col0 AS INTEGER ) * 67 ) IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 38 - - col2 NOT BETWEEN col2 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7349
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col2 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-7349
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col2 <> NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 35 ) IN ( col2 + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 / + col1 <> + 22
----

query I rowsort
SELECT + col0 * col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 92 ) col2 FROM tab0 AS cor0
----
92
92
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7354
SELECT DISTINCT SUM( ALL - 14 ) FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-7354
SELECT DISTINCT SUM ( ALL - 14 ) FROM tab2 AS cor0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7355
SELECT - SUM( 23 ) AS col0 FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-7355
SELECT - SUM ( 23 ) AS col0 FROM tab1 AS cor0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7356
SELECT - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1
----
-9

skipif mysql # not compatible
query I rowsort label-7356
SELECT - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1
----
-9

query I rowsort
SELECT 96 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

onlyif mysql # aggregate syntax: 
query I rowsort label-7358
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 WHERE col1 * - 85 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7358
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 WHERE col1 * - 85 NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7359
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < - 32 * CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-7359
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < - 32 * CAST ( NULL AS REAL )
----

query I rowsort
SELECT ALL 20 + + 15 FROM tab2 AS cor0 WHERE NOT NULL <> ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 59 col1 FROM tab0 AS cor0 WHERE NOT col2 / + col2 IS NOT NULL
----

query I rowsort
SELECT ALL - - col0 + 79 FROM tab2 AS cor0
----
125
143
154

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT - COUNT( * ) * - 23 FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-7363
SELECT - COUNT ( * ) * - 23 FROM tab0 AS cor0
----
69

query I rowsort
SELECT ALL - col0 - ( + 8 ) AS col0 FROM tab0 AS cor0 WHERE NOT - 8 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7365
SELECT + 75 DIV col2 + col2 FROM tab2 AS cor0
----
26
41
59

skipif mysql # not compatible
query I rowsort label-7365
SELECT + 75 / col2 + col2 FROM tab2 AS cor0
----
26
41
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 + col2 * - 74 col1 FROM tab2 AS cor0
----
197
2969
899

query I rowsort
SELECT + + col0 * col2 + - col2 AS col1 FROM tab0 cor0
----
658
860
9504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7368
SELECT + CAST( AVG ( ALL col1 ) AS SIGNED ) + 18 FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-7368
SELECT + CAST ( AVG ( ALL col1 ) AS INTEGER ) + 18 FROM tab0 AS cor0
----
52

query I rowsort
SELECT ALL col1 * + 93 AS col0 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7370
SELECT ALL + COUNT( * ) * 47 * 23 AS col0 FROM tab2
----
3243

skipif mysql # not compatible
query I rowsort label-7370
SELECT ALL + COUNT ( * ) * 47 * 23 AS col0 FROM tab2
----
3243

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7371
SELECT DISTINCT 55 * + - COUNT( * ) * CAST( COUNT( * ) AS SIGNED ) col2 FROM tab1
----
-495

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7371
SELECT DISTINCT 55 * + - COUNT ( * ) * CAST ( COUNT ( * ) AS INTEGER ) col2 FROM tab1
----
-495

query I rowsort
SELECT DISTINCT col0 + col0 * col1 AS col0 FROM tab0
----
1230
1914
194

query I rowsort
SELECT DISTINCT col2 * + 31 FROM tab2
----
1240
1798
713

query III rowsort
SELECT * FROM tab0 WHERE ( 20 ) IS NULL
----

query I rowsort
SELECT ALL - ( - col0 ) + - col0 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL 37 + - col2 AS col0 FROM tab0 AS cor0
----
-10
-62
27

query I rowsort
SELECT + 26 * col1 * - 95 + col2 AS col2 FROM tab0 AS cor0
----
-200023
-2371
-51860

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * 53 NOT BETWEEN ( NULL ) AND - 87
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( - col0 ) + + col0 FROM tab0 WHERE ( - 65 + col0 ) IS NOT NULL
----
0
0
0

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IN ( 28 )
----

query I rowsort
SELECT - 42 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9894093f29c0defae91347934f060329

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE 33 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7383
SELECT - 33 * - - COUNT( * ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7383
SELECT - 33 * - - COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT - 2 * - 68 - col0 AS col2 FROM tab1 AS cor0 WHERE ( - ( col0 ) * 81 + col1 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7385
SELECT - 70 DIV col1 + col1 AS col1 FROM tab2 AS cor0
----
50
66
77

skipif mysql # not compatible
query I rowsort label-7385
SELECT - 70 / col1 + col1 AS col1 FROM tab2 AS cor0
----
50
66
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7386
SELECT DISTINCT + - MAX( + col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-7386
SELECT DISTINCT + - MAX ( + col0 ) FROM tab2 AS cor0
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7387
SELECT - ( 7 ) * - - 40 + - CAST( 66 AS SIGNED ) FROM tab0 AS cor0
----
-346
-346
-346

skipif mysql # not compatible
query I rowsort label-7387
SELECT - ( 7 ) * - - 40 + - CAST ( 66 AS INTEGER ) FROM tab0 AS cor0
----
-346
-346
-346

query I rowsort
SELECT DISTINCT col0 - 92 AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= 19
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col0 ) <= col2
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7390
SELECT - - MAX( - 12 ) * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-7390
SELECT - - MAX ( - 12 ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
36

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT NULL >= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) < + - 4
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 45 < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col1 + + - col2 NOT IN ( - col0 )
----

query I rowsort
SELECT ALL - 48 * + 40 FROM tab0 WHERE ( - col0 ) BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7396
SELECT DISTINCT ( 96 ) AS col1, + SUM( + + col2 ) AS col2 FROM tab0
----
96
156

skipif mysql # not compatible
query II rowsort label-7396
SELECT DISTINCT ( 96 ) AS col1, + SUM ( + + col2 ) AS col2 FROM tab0
----
96
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7397
SELECT ALL + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * - MAX( col0 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7397
SELECT ALL + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * - MAX ( col0 ) AS col2 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col1 ) IN ( col2 * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-7399
SELECT MAX( DISTINCT + 53 ) AS col2, + COUNT( * ) + + 10 AS col0 FROM tab2
----
53
13

skipif mysql # not compatible
query II rowsort label-7399
SELECT MAX ( DISTINCT + 53 ) AS col2, + COUNT ( * ) + + 10 AS col0 FROM tab2
----
53
13

onlyif mysql # aggregate syntax: 
query II rowsort label-7400
SELECT DISTINCT - MIN( ALL + col2 ), - 27 * - 66 * 80 AS col1 FROM tab2
----
-23
142560

skipif mysql # not compatible
query II rowsort label-7400
SELECT DISTINCT - MIN ( ALL + col2 ), - 27 * - 66 * 80 AS col1 FROM tab2
----
-23
142560

query I rowsort
SELECT ALL + 3 + 32 AS col0 FROM tab1 WHERE NOT - col2 IN ( 92 )
----
35
35
35

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7402
SELECT * FROM tab2 WHERE NOT ( - - CAST( + + col0 AS SIGNED ) * - 76 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7402
SELECT * FROM tab2 WHERE NOT ( - - CAST ( + + col0 AS INTEGER ) * - 76 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7403
SELECT + COUNT( - col0 ) * + + 60 AS col2 FROM tab0
----
180

skipif mysql # not compatible
query I rowsort label-7403
SELECT + COUNT ( - col0 ) * + + 60 AS col2 FROM tab0
----
180

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) NOT IN ( + ( col2 ) - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7405
SELECT DISTINCT col0 col0 FROM tab2 cor0 WHERE NOT ( col2 ) > CAST( + col0 AS SIGNED )
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7405
SELECT DISTINCT col0 col0 FROM tab2 cor0 WHERE NOT ( col2 ) > CAST ( + col0 AS INTEGER )
----
46
64
75

query I rowsort
SELECT ( col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( - col2 BETWEEN ( col1 ) AND NULL )
----
46
64
75

onlyif mysql # aggregate syntax: 
query II rowsort label-7407
SELECT ALL + - MAX( ALL - col2 ) AS col0, 29 FROM tab0 AS cor0
----
10
29

skipif mysql # not compatible
query II rowsort label-7407
SELECT ALL + - MAX ( ALL - col2 ) AS col0, 29 FROM tab0 AS cor0
----
10
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT ALL - - COUNT( ALL - 37 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7408
SELECT ALL - - COUNT ( ALL - 37 ) FROM tab1 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 5 * + + 58 col1 FROM tab0 AS cor0
----
-290

query I rowsort
SELECT col1 FROM tab1 WHERE NOT NULL NOT IN ( + 94 + - col1 + + col2 + 62 * - col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) >= ( + 46 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7412
SELECT DISTINCT - ( col1 ) + + col2 + + col2 + + 67 DIV col2 AS col2 FROM tab2
----
-3
4
50

skipif mysql # not compatible
query I rowsort label-7412
SELECT DISTINCT - ( col1 ) + + col2 + + col2 + + 67 / col2 AS col2 FROM tab2
----
-3
4
50

query I rowsort
SELECT + 86 + - col2 - 25 + + 5 FROM tab0
----
-33
19
56

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE - 41 + col2 IN ( + 17 + + col1 * col0 )
----

query I rowsort
SELECT + 82 * + 11 + - ( - ( + 58 ) ) FROM tab2 cor0
----
960
960
960

onlyif mysql # DIV for integer division: 
query I rowsort label-7416
SELECT ALL - col2 + - col1 + + 25 DIV - col1 FROM tab1 AS cor0
----
-111
-115
-69

skipif mysql # not compatible
query I rowsort label-7416
SELECT ALL - col2 + - col1 + + 25 / - col1 FROM tab1 AS cor0
----
-111
-115
-69

query II rowsort
SELECT col2 * - col1 - - - col2 AS col0, + 37 + + + col2 FROM tab1 AS cor0
----
-1440
133
-3264
105
-354
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7418
SELECT 89 - - CAST( col0 AS SIGNED ) - - + ( 32 ) * col2 col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
2062
2356
3212

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7418
SELECT 89 - - CAST ( col0 AS INTEGER ) - - + ( 32 ) * col2 col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
2062
2356
3212

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + - col1 ) col0 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT + 59 * + col0 + + col0 FROM tab0 AS cor0
----
5220
5820
900

query I rowsort
SELECT + ( col2 ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT DISTINCT - + col0 * col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( - col2 ) >= col0 * col0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7423
SELECT ALL COUNT( * ) DIV 72 * - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7423
SELECT ALL COUNT ( * ) / 72 * - COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT DISTINCT + col2 * - 17 AS col1 FROM tab0
----
-1683
-170
-799

query III rowsort
SELECT * FROM tab0 WHERE - + 36 * - 24 NOT IN ( - col2 + + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7426
SELECT - col1 DIV + col0 * + 97 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7426
SELECT - col1 / + col0 * + 97 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7427
SELECT ALL + col1 DIV + - 9 AS col2 FROM tab2
----
-5
-7
-8

skipif mysql # not compatible
query I rowsort label-7427
SELECT ALL + col1 / + - 9 AS col2 FROM tab2
----
-5
-7
-8

query I rowsort
SELECT ALL - col2 * + + col2 AS col0 FROM tab2
----
-1600
-3364
-529

query II rowsort
SELECT 78, col0 FROM tab0
----
78
15
78
87
78
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT COUNT( * ) - ( + COUNT( DISTINCT + col0 ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7430
SELECT COUNT ( * ) - ( + COUNT ( DISTINCT + col0 ) ) FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 19 - - col2 col2 FROM tab1
----
115
78
87

query I rowsort
SELECT col1 * - 84 - + col0 AS col2 FROM tab2
----
-4330
-5703
-6532

query I rowsort
SELECT col0 * - 29 + - 88 AS col1 FROM tab0
----
-2611
-2901
-523

onlyif mysql # aggregate syntax: 
query I rowsort label-7434
SELECT ALL + ( - + COUNT( * ) ) - + COUNT( * ) AS col2 FROM tab0 WHERE + col2 * + 24 IS NOT NULL
----
-6

skipif mysql # not compatible
query I rowsort label-7434
SELECT ALL + ( - + COUNT ( * ) ) - + COUNT ( * ) AS col2 FROM tab0 WHERE + col2 * + 24 IS NOT NULL
----
-6

query I rowsort
SELECT + 13 * col0 + 17 FROM tab2
----
615
849
992

query I rowsort
SELECT - col2 + - - ( + 58 ) FROM tab2
----
0
18
35

query II rowsort
SELECT DISTINCT - col2 + - col1 AS col1, + 58 AS col0 FROM tab0 AS cor0
----
-100
58
-128
58
-31
58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 6 + col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 + + col1 + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7440
SELECT ALL 50 * col2 * - col0 + - + col1 + - CAST( + col0 AS SIGNED ) + col0 * CAST( - col1 AS SIGNED ) col0 FROM tab1 AS cor0
----
-245579
-251265
-313815

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7440
SELECT ALL 50 * col2 * - col0 + - + col1 + - CAST ( + col0 AS INTEGER ) + col0 * CAST ( - col1 AS INTEGER ) col0 FROM tab1 AS cor0
----
-245579
-251265
-313815

query I rowsort
SELECT col2 + - 57 + - col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7442
SELECT ALL 0 * + 57 + - 92 - col2 * + col2 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 DIV col1 <= col2 DIV - col1
----
-9893

skipif mysql # not compatible
query I rowsort label-7442
SELECT ALL 0 * + 57 + - 92 - col2 * + col2 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 / col1 <= col2 / - col1
----
-9893

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7443
SELECT DISTINCT - + ( + 52 ) DIV - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-7443
SELECT DISTINCT - + ( + 52 ) / - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE ( - 34 * - - 18 * - col1 * - 44 > col2 )
----
0

skipif mysql # not compatible
query I rowsort label-7444
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE ( - 34 * - - 18 * - col1 * - 44 > col2 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - + col1 ) NOT IN ( - col1 * + col2 * ( - + 38 ) * - col0 - + 12 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 91 IS NOT NULL
----

query II rowsort
SELECT col2 AS col1, - col1 AS col0 FROM tab0
----
10
-21
47
-81
99
-1

query III rowsort
SELECT * FROM tab2 WHERE NOT - - ( + col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-7449
SELECT COUNT( * ), 90 AS col2 FROM tab1
----
3
90

skipif mysql # not compatible
query II rowsort label-7449
SELECT COUNT ( * ), 90 AS col2 FROM tab1
----
3
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, - 20 col1 FROM tab0
----
1
-20
21
-20
81
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT ALL MAX( - 33 ) AS col2 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-7451
SELECT ALL MAX ( - 33 ) AS col2 FROM tab1
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7452
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7452
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7453
SELECT * FROM tab0 WHERE NOT + 60 * + ( - CAST( NULL AS SIGNED ) ) + + 30 + + 86 + + 67 IS NULL
----

skipif mysql # not compatible
query III rowsort label-7453
SELECT * FROM tab0 WHERE NOT + 60 * + ( - CAST ( NULL AS INTEGER ) ) + + 30 + + 86 + + 67 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7454
SELECT - CAST( - ( col0 ) AS SIGNED ) FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7454
SELECT - CAST ( - ( col0 ) AS INTEGER ) FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ALL + 32 + 4 FROM tab2 AS cor0
----
36
36
36

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 63 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - 32 + - - col2 FROM tab0 AS cor0
----
-22
15
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7458
SELECT 23 * - - 44 - - - COUNT( * ) DIV - + 86 + - COUNT( * ) + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
1012

skipif mysql # not compatible
query I rowsort label-7458
SELECT 23 * - - 44 - - - COUNT ( * ) / - + 86 + - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
1012

query I rowsort
SELECT - col2 + + - col2 * col2 + - col1 FROM tab1 AS cor0
----
-3545
-4739
-9326

query I rowsort
SELECT DISTINCT + col1 * + 10 FROM tab2 AS cor0
----
510
670
770

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT - + SUM( - 30 ) + + - 98 FROM tab0 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-7461
SELECT - + SUM ( - 30 ) + + - 98 FROM tab0 AS cor0
----
-8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7462
SELECT CAST( NULL AS DECIMAL ) * - 36 + - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7462
SELECT CAST ( NULL AS REAL ) * - 36 + - COUNT ( * ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT ( col1 ) * + ( - - 13 ), 47 AS col2 FROM tab2 AS cor0
----
1001
47
663
47
871
47

query I rowsort
SELECT col1 * + col2 + + - col1 AS col2 FROM tab1
----
1330
290
3149

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7465
SELECT + + COUNT( * ) DIV MAX( DISTINCT + - 53 ) * + - ( + ( - 30 ) ) * + - COUNT( - ( col2 ) ) AS col0 FROM tab2 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7465
SELECT + + COUNT ( * ) / MAX ( DISTINCT + - 53 ) * + - ( + ( - 30 ) ) * + - COUNT ( - ( col2 ) ) AS col0 FROM tab2 WHERE NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7466
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 + ( + ( + CAST( - + 67 AS SIGNED ) ) ) * + CAST( + 18 AS SIGNED ) IN ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7466
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 + ( + ( + CAST ( - + 67 AS INTEGER ) ) ) * + CAST ( + 18 AS INTEGER ) IN ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 38 AS col1 FROM tab1 WHERE + col1 + 51 IS NULL
----

query I rowsort
SELECT DISTINCT ( + 98 ) AS col2 FROM tab1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT SUM( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-7469
SELECT SUM ( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
-103

query II rowsort
SELECT col2 * - + col1, col1 * + + col2 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) = - ( - col1 ) + - + col1 / + 53
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7471
SELECT - MIN( - 94 ) - - 18 * CAST( - - ( + + 27 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
580

skipif mysql # not compatible
query I rowsort label-7471
SELECT - MIN ( - 94 ) - - 18 * CAST ( - - ( + + 27 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
580

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT - 68 - - COUNT( * ) FROM tab1 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-7472
SELECT - 68 - - COUNT ( * ) FROM tab1 AS cor0
----
-65

query I rowsort
SELECT DISTINCT - col0 * - - col1 * - 63 AS col2 FROM tab0
----
115101
6111
76545

query I rowsort
SELECT + 23 * - + col2 * + 72 FROM tab1 cor0
----
-112608
-158976
-97704

query II rowsort
SELECT col1 AS col1, col2 AS col2 FROM tab1 cor0
----
14
96
47
68
5
59

query I rowsort
SELECT ALL 21 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
21
21
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7477
SELECT ALL + + col2 AS col1 FROM tab2 cor0 WHERE + col2 + - col0 / - col1 NOT IN ( CAST( NULL AS SIGNED ), col2 + + + col2 )
----

skipif mysql # not compatible
query I rowsort label-7477
SELECT ALL + + col2 AS col1 FROM tab2 cor0 WHERE + col2 + - col0 / - col1 NOT IN ( CAST ( NULL AS INTEGER ), col2 + + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT MIN( DISTINCT - - col1 ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-7478
SELECT MIN ( DISTINCT - - col1 ) AS col2 FROM tab1 AS cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7479
SELECT - + CAST( + - 19 AS SIGNED ) FROM tab1 cor0
----
19
19
19

skipif mysql # not compatible
query I rowsort label-7479
SELECT - + CAST ( + - 19 AS INTEGER ) FROM tab1 cor0
----
19
19
19

query I rowsort
SELECT + col2 * 44 + 62 AS col2 FROM tab2 AS cor0
----
1074
1822
2614

onlyif mysql # DIV for integer division: 
query I rowsort label-7481
SELECT DISTINCT col0 DIV - + col2 FROM tab0
----
-8
0

skipif mysql # not compatible
query I rowsort label-7481
SELECT DISTINCT col0 / - + col2 FROM tab0
----
-8
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 / - col2 > NULL
----

query I rowsort
SELECT DISTINCT 25 FROM tab1, tab1 AS cor0
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7484
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL < + CAST( - 55 AS SIGNED ) * + col2
----
0

skipif mysql # not compatible
query I rowsort label-7484
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL < + CAST ( - 55 AS INTEGER ) * + col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT ( + MIN( ALL - - col0 ) ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-7485
SELECT ( + MIN ( ALL - - col0 ) ) FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT - COUNT( - col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7486
SELECT - COUNT ( - col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 > + 71
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7488
SELECT ALL MAX( ALL - 6 ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-7488
SELECT ALL MAX ( ALL - 6 ) FROM tab1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7489
SELECT 63 * + - 54 + - COUNT( * ) FROM tab1
----
-3405

skipif mysql # not compatible
query I rowsort label-7489
SELECT 63 * + - 54 + - COUNT ( * ) FROM tab1
----
-3405

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7490
SELECT - - CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7490
SELECT - - CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - 75 + + col1 * + col0 FROM tab1 AS cor0
----
350
4202
639

query I rowsort
SELECT DISTINCT - 95 + - + 56 FROM tab2 AS cor0
----
-151

onlyif mysql # aggregate syntax: 
query II rowsort label-7493
SELECT ALL ( - - COUNT( * ) ) + + ( - + 36 ) AS col2, COUNT( * ) AS col0 FROM tab0 cor0
----
-33
3

skipif mysql # not compatible
query II rowsort label-7493
SELECT ALL ( - - COUNT ( * ) ) + + ( - + 36 ) AS col2, COUNT ( * ) AS col0 FROM tab0 cor0
----
-33
3

query I rowsort
SELECT DISTINCT 90 * 44 - - col1 + + col0 - - - col0 - + col1 * - col1 FROM tab2 AS cor0
----
6612
8516
9966

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7495
SELECT DISTINCT + 89 DIV - + 62 + + + SUM( col1 ) FROM tab2 AS cor0
----
194

skipif mysql # not compatible
query I rowsort label-7495
SELECT DISTINCT + 89 / - + 62 + + + SUM ( col1 ) FROM tab2 AS cor0
----
194

query I rowsort
SELECT ALL - - col1 + + 82 AS col2 FROM tab1 AS cor0
----
129
87
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, 89 * col1 * + - col2 * col2 * - col1 - col2 col2 FROM tab0 AS cor0
----
15
1289899114
87
3924890
97
872190

query I rowsort
SELECT ALL + - 85 AS col1 FROM tab2 AS cor0
----
-85
-85
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT ALL MAX( + ( + 77 ) ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-7499
SELECT ALL MAX ( + ( + 77 ) ) FROM tab2
----
77

query I rowsort
SELECT + col2 - - + col1 * col2 + - col0 AS col0 FROM tab1
----
1389
269
3173

query I rowsort
SELECT - col0 - - + col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT DISTINCT - MAX( - + 10 ) FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-7502
SELECT DISTINCT - MAX ( - + 10 ) FROM tab1
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-7503
SELECT col2 DIV + 81 + 62 FROM tab1
----
62
62
63

skipif mysql # not compatible
query I rowsort label-7503
SELECT col2 / + 81 + 62 FROM tab1
----
62
62
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7504
SELECT - 64 + - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-7504
SELECT - 64 + - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-61

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( + col1 ) * - + col0 IS NULL
----

query I rowsort
SELECT ALL + col0 * - - col0 + + - ( - + col2 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
272
7579
9508

onlyif mysql # aggregate syntax: 
query I rowsort label-7507
SELECT DISTINCT + COUNT( + - 27 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7507
SELECT DISTINCT + COUNT ( + - 27 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + + 29 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

onlyif mysql # aggregate syntax: 
query I rowsort label-7509
SELECT ALL - COUNT( * ) FROM tab2 WHERE NULL IN ( - 42, col2 )
----
0

skipif mysql # not compatible
query I rowsort label-7509
SELECT ALL - COUNT ( * ) FROM tab2 WHERE NULL IN ( - 42, col2 )
----
0

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7511
SELECT DISTINCT + CAST( + 99 AS SIGNED ) + - + col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-7511
SELECT DISTINCT + CAST ( + 99 AS INTEGER ) + - + col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 90 FROM tab0 cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT DISTINCT - ( - COUNT( * ) ) * - COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7513
SELECT DISTINCT - ( - COUNT ( * ) ) * - COUNT ( * ) FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7514
SELECT ALL MIN( + + col1 ) FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-7514
SELECT ALL MIN ( + + col1 ) FROM tab2 cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-7515
SELECT DISTINCT - col0 DIV - col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
4
97

skipif mysql # not compatible
query I rowsort label-7515
SELECT DISTINCT - col0 / - col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
4
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7516
SELECT DISTINCT + COUNT( ALL 60 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7516
SELECT DISTINCT + COUNT ( ALL 60 ) AS col2 FROM tab2 AS cor0
----
3

query II rowsort
SELECT 6, col2 FROM tab1
----
6
59
6
68
6
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7518
SELECT + SUM( - - col1 ) AS col2 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-7518
SELECT + SUM ( - - col1 ) AS col2 FROM tab2
----
195

query I rowsort
SELECT DISTINCT + col0 / ( + col2 ) FROM tab1 WHERE NULL >= + + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7520
SELECT ALL col2 + - col0 DIV - + col1 col1 FROM tab2
----
23
40
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7520
SELECT ALL col2 + - col0 / - + col1 col1 FROM tab2
----
23
40
59

query I rowsort
SELECT col2 + - + col2 + + col1 FROM tab1
----
14
47
5

query I rowsort
SELECT DISTINCT col1 + + col1 + - col2 FROM tab1
----
-49
-68
26

query III rowsort
SELECT * FROM tab1 WHERE NOT - 64 > col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - ( + ( + 92 ) ) AS col1 FROM tab1
----
-92
-92
-92

query II rowsort
SELECT ALL - col1 AS col1, col0 + + col0 + - col1 FROM tab1 AS cor0
----
-14
88
-47
135
-5
165

query I rowsort
SELECT DISTINCT - + ( 46 ) FROM tab1 AS cor0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7527
SELECT - CAST( - 65 AS SIGNED ) * col2 + + 84 + CAST( - col2 AS SIGNED ) AS col0 FROM tab0
----
3092
6420
724

skipif mysql # not compatible
query I rowsort label-7527
SELECT - CAST ( - 65 AS INTEGER ) * col2 + + 84 + CAST ( - col2 AS INTEGER ) AS col0 FROM tab0
----
3092
6420
724

query I rowsort
SELECT ALL col1 + col2 - + col0 AS col1 FROM tab1
----
-21
24
59

query I rowsort
SELECT DISTINCT - col2 * - col0 + + col0 AS col0 FROM tab2
----
1104
2624
4425

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7530
SELECT * FROM tab0 AS cor0 WHERE CAST( - - col2 AS SIGNED ) NOT BETWEEN + col2 AND NULL AND NOT 40 = NULL
----

skipif mysql # not compatible
query III rowsort label-7530
SELECT * FROM tab0 AS cor0 WHERE CAST ( - - col2 AS INTEGER ) NOT BETWEEN + col2 AND NULL AND NOT 40 = NULL
----

query I rowsort
SELECT ALL col0 * - 60 * - col2 + - col2 AS col1 FROM tab1 cor0
----
293664
300841
371212

query I rowsort
SELECT + col0 + - ( + col2 ) * col1 AS col2 FROM tab0 AS cor0
----
-123
-2
-3792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7533
SELECT - col2 * col0 + - - col0 * + + CAST( NULL AS SIGNED ) + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7533
SELECT - col2 * col0 + - - col0 * + + CAST ( NULL AS INTEGER ) + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col0 + 60 AS col1 FROM tab1 AS cor0
----
-25
-31
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 32 col2 FROM tab0 AS cor0
----
32

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + ( col0 ) / - - col1 IS NULL
----

query II rowsort
SELECT DISTINCT + col1 AS col0, col1 AS col2 FROM tab0
----
1
1
21
21
81
81

query III rowsort
SELECT * FROM tab0 WHERE col0 = col1 * - - col2 + 85 + col1
----

query III rowsort
SELECT * FROM tab2 WHERE ( NOT + col2 NOT BETWEEN + - 56 AND - + col1 )
----

query I rowsort
SELECT DISTINCT 24 * + 73 AS col1 FROM tab1
----
1752

query I rowsort
SELECT DISTINCT + col0 + col2 FROM tab1 WHERE NOT NULL <> ( - 5 + - col1 )
----

query II rowsort
SELECT - col2, ( + 60 ) AS col1 FROM tab2
----
-23
60
-40
60
-58
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7544
SELECT DISTINCT - col2, CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-7544
SELECT DISTINCT - col2, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col2 ) col1 FROM tab0
----
-10
-47
-99

query II rowsort
SELECT ALL 88 * + + 63, + 9 AS col2 FROM tab2
----
5544
9
5544
9
5544
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT + 51 + - COUNT( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
42

skipif mysql # not compatible
query I rowsort label-7547
SELECT + 51 + - COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
42

query I rowsort
SELECT + - col1 * + col1 AS col1 FROM tab1 cor0
----
-196
-2209
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7549
SELECT ALL col2 * + CAST( NULL AS SIGNED ) * + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7549
SELECT ALL col2 * + CAST ( NULL AS INTEGER ) * + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 67 * col2 AS col1 FROM tab1 AS cor0
----
3953
4556
6432

onlyif mysql # aggregate syntax: 
query I rowsort label-7551
SELECT + ( + + MIN( ALL + col1 ) ) AS col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-7551
SELECT + ( + + MIN ( ALL + col1 ) ) AS col1 FROM tab1 AS cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7552
SELECT DISTINCT - + CAST( - + col0 AS SIGNED ) AS col2, ( col2 ) FROM tab2 AS cor0
----
46
23
64
40
75
58

skipif mysql # not compatible
query II rowsort label-7552
SELECT DISTINCT - + CAST ( - + col0 AS INTEGER ) AS col2, ( col2 ) FROM tab2 AS cor0
----
46
23
64
40
75
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7553
SELECT + col2 DIV + 46 col2 FROM tab1 AS cor0
----
1
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7553
SELECT + col2 / + 46 col2 FROM tab1 AS cor0
----
1
1
2

query I rowsort
SELECT ALL 2 FROM tab1 cor0
----
2
2
2

query I rowsort
SELECT ALL - 52 * - col1 - - col0 AS col1 FROM tab2 AS cor0
----
2698
3559
4068

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7556
SELECT ALL 61 * - col1 * CAST( NULL AS SIGNED ), + CAST( - col2 AS SIGNED ) col0 FROM tab2
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7556
SELECT ALL 61 * - col1 * CAST ( NULL AS INTEGER ), + CAST ( - col2 AS INTEGER ) col0 FROM tab2
----
NULL
-23
NULL
-40
NULL
-58

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > 68
----

query I rowsort
SELECT ALL - 10 * + col0 AS col2 FROM tab2
----
-460
-640
-750

query I rowsort
SELECT ALL + col0 + - + col1 FROM tab2
----
-13
-5
8

query II rowsort
SELECT + col0, col1 + + - 78 + - col0 FROM tab2
----
46
-73
64
-65
75
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7561
SELECT ALL + + COUNT( * ) + - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7561
SELECT ALL + + COUNT ( * ) + - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
0

query II rowsort
SELECT ALL 21 AS col0, - 18 AS col2 FROM tab1 AS cor0
----
21
-18
21
-18
21
-18

query I rowsort
SELECT ALL ( - 49 ) AS col1 FROM tab1 AS cor0
----
-49
-49
-49

query I rowsort
SELECT 84 * + 12 AS col1 FROM tab0
----
1008
1008
1008

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7565
SELECT ALL col1 + + col2 - CAST( - - col2 AS SIGNED ) FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7565
SELECT ALL col1 + + col2 - CAST ( - - col2 AS INTEGER ) FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT ALL ( + col1 ) + - 97 AS col2 FROM tab2 AS cor0
----
-20
-30
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7567
SELECT - COUNT( * ) * + + 34 FROM tab2 cor0
----
-102

skipif mysql # not compatible
query I rowsort label-7567
SELECT - COUNT ( * ) * + + 34 FROM tab2 cor0
----
-102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7568
SELECT DISTINCT + 6 + + ( CAST( NULL AS SIGNED ) ) * + + col2 col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7568
SELECT DISTINCT + 6 + + ( CAST ( NULL AS INTEGER ) ) * + + col2 col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE col0 + + 17 IS NULL
----

query I rowsort
SELECT DISTINCT col2 - - + col2 FROM tab2 cor0 WHERE NULL IS NULL
----
116
46
80

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT DISTINCT COUNT( * ) - + - 71 AS col2 FROM tab2 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-7572
SELECT DISTINCT COUNT ( * ) - + - 71 AS col2 FROM tab2 AS cor0
----
74

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 NOT IN ( + - 69 + + col2, col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IS NULL AND NOT col0 = - 69
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7575
SELECT ALL - col2 - - - 49 * - + col2 DIV - col2 AS col0 FROM tab1
----
-108
-117
-145

skipif mysql # not compatible
query I rowsort label-7575
SELECT ALL - col2 - - - 49 * - + col2 / - col2 AS col0 FROM tab1
----
-108
-117
-145

query I rowsort
SELECT col2 + 34 FROM tab2
----
57
74
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7577
SELECT + 98 DIV + COUNT( * ) AS col0 FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-7577
SELECT + 98 / + COUNT ( * ) AS col0 FROM tab1
----
32

onlyif mysql # DIV for integer division: 
query II rowsort label-7578
SELECT DISTINCT + col0 DIV - 43, col2 FROM tab0
----
-2
10
-2
99
0
47

skipif mysql # not compatible
query II rowsort label-7578
SELECT DISTINCT + col0 / - 43, col2 FROM tab0
----
-2
10
-2
99
0
47

query I rowsort
SELECT + 9 AS col0 FROM tab1 AS cor0 WHERE NOT ( - 25 IS NULL )
----
9
9
9

query I rowsort
SELECT DISTINCT + ( + 98 ) AS col1 FROM tab0 AS cor0 WHERE NOT - col1 + - col1 IN ( - + col1, ( - col2 ) * 88 )
----
98

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col2 + - 0 * + - 84 IS NOT NULL
----

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 WHERE NULL IS NULL
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 27 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 3 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL <= ( col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7586
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 * + 87 = + 92 * - - CAST( NULL AS DECIMAL ) * + 75 * - ( col2 )
----

skipif mysql # not compatible
query III rowsort label-7586
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 * + 87 = + 92 * - - CAST ( NULL AS REAL ) * + 75 * - ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7587
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col1 * - + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7587
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col1 * - + col0 IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 + + 92 + + col0 <= + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7589
SELECT - col0 DIV + 70 col1 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7589
SELECT - col0 / + 70 col1 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT - + col0 * - + col1 AS col0 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT DISTINCT - ( + COUNT( * ) ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7591
SELECT DISTINCT - ( + COUNT ( * ) ) col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL + 77 * - 45 AS col1 FROM tab1
----
-3465
-3465
-3465

query III rowsort
SELECT * FROM tab1 WHERE 30 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7594
SELECT COUNT( * ) + - 9 AS col0 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-7594
SELECT COUNT ( * ) + - 9 AS col0 FROM tab2
----
-6

query II rowsort
SELECT ALL col2 + + col2 AS col1, ( - - col0 ) * + col1 * - - 33 FROM tab0
----
198
3201
20
60291
94
40095

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7596
SELECT CAST( - - col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7596
SELECT CAST ( - - col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7597
SELECT ALL - MAX( - 21 ) AS col2 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-7597
SELECT ALL - MAX ( - 21 ) AS col2 FROM tab2
----
21

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NOT NULL > col0 )
----

query I rowsort
SELECT - 49 + - col0 FROM tab2 AS cor0
----
-113
-124
-95

query I rowsort
SELECT DISTINCT - 30 + + 52 AS col2 FROM tab2 AS cor0
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7601
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, col1 AS col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-7601
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, col1 AS col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7602
SELECT CAST( - - 67 AS SIGNED ) col0 FROM tab2 cor0
----
67
67
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7602
SELECT CAST ( - - 67 AS INTEGER ) col0 FROM tab2 cor0
----
67
67
67

query III rowsort
SELECT * FROM tab1 WHERE NOT - 10 / + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7604
SELECT ALL 62 * COUNT( * ) FROM tab2
----
186

skipif mysql # not compatible
query I rowsort label-7604
SELECT ALL 62 * COUNT ( * ) FROM tab2
----
186

query II rowsort
SELECT ALL - + col2 AS col2, 29 FROM tab1 WHERE NOT - col2 - + + col2 / 11 IS NULL
----
-59
29
-68
29
-96
29

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7606
SELECT - ( - + CAST( NULL AS DECIMAL ) ) / AVG ( 8 ) + + ( 81 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7606
SELECT - ( - + CAST ( NULL AS REAL ) ) / AVG ( 8 ) + + ( 81 ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7607
SELECT DISTINCT + COUNT( * ) AS col2, - 63 AS col1 FROM tab0
----
3
-63

skipif mysql # not compatible
query II rowsort label-7607
SELECT DISTINCT + COUNT ( * ) AS col2, - 63 AS col1 FROM tab0
----
3
-63

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col1 * - - col2 * + col0 < + - ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7609
SELECT - + 16 DIV - col0 + + 75 DIV - - col1 + col0 FROM tab0 cor0
----
16
172
90

skipif mysql # not compatible
query I rowsort label-7609
SELECT - + 16 / - col0 + + 75 / - - col1 + col0 FROM tab0 cor0
----
16
172
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT COUNT( * ) * - 31 AS col1 FROM tab2 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-7610
SELECT COUNT ( * ) * - 31 AS col1 FROM tab2 AS cor0
----
-93

query I rowsort
SELECT ALL col2 * + col0 FROM tab1 WHERE NOT + col2 >= - col1
----

query I rowsort
SELECT DISTINCT - - 48 AS col0 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
48

query I rowsort
SELECT DISTINCT - 69 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-69

query I rowsort
SELECT DISTINCT - 25 + + + col0 AS col0 FROM tab0 AS cor0
----
-10
62
72

query I rowsort
SELECT ALL + col2 * + col2 FROM tab0 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7616
SELECT ALL + COUNT( DISTINCT 95 ) AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7616
SELECT ALL + COUNT ( DISTINCT 95 ) AS col0 FROM tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 28 col0 FROM tab1 cor0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT SUM( ALL + col1 ) + + - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( 86 ) BETWEEN - col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7618
SELECT SUM ( ALL + col1 ) + + - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( 86 ) BETWEEN - col0 AND NULL
----
NULL

query I rowsort
SELECT DISTINCT 74 AS col2 FROM tab2 AS cor0 WHERE 22 IS NOT NULL
----
74

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7620
SELECT + 88 DIV CAST( - 66 AS SIGNED ) AS col1, - col0 FROM tab0
----
-1
-15
-1
-87
-1
-97

skipif mysql # not compatible
query II rowsort label-7620
SELECT + 88 / CAST ( - 66 AS INTEGER ) AS col1, - col0 FROM tab0
----
-1
-15
-1
-87
-1
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT + MIN( + 48 ) FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-7621
SELECT + MIN ( + 48 ) FROM tab1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7622
SELECT DISTINCT - MAX( DISTINCT + - col0 ) + - - 91 col0 FROM tab0
----
106

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7622
SELECT DISTINCT - MAX ( DISTINCT + - col0 ) + - - 91 col0 FROM tab0
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-7623
SELECT 90 DIV - col2 FROM tab0
----
-1
-9
0

skipif mysql # not compatible
query I rowsort label-7623
SELECT 90 / - col2 FROM tab0
----
-1
-9
0

query I rowsort
SELECT + ( - 99 ) AS col1 FROM tab2
----
-99
-99
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-7625
SELECT + col2 DIV - - 20 + - col1 AS col2 FROM tab1
----
-10
-3
-44

skipif mysql # not compatible
query I rowsort label-7625
SELECT + col2 / - - 20 + - col1 AS col2 FROM tab1
----
-10
-3
-44

query I rowsort
SELECT ALL + 53 * col0 FROM tab1 cor0
----
2703
4505
4823

query I rowsort
SELECT DISTINCT + - col1 FROM tab1 WHERE NOT NULL <= - col1
----

query I rowsort
SELECT ALL + 11 - - col1 + + col2 * + col0 AS col0 FROM tab2
----
1120
2648
4428

query I rowsort
SELECT + col0 * + - col2 * - - 16 FROM tab2
----
-16928
-40960
-69600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7630
SELECT ALL - COUNT( * ) DIV + MIN( + - 70 ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-7630
SELECT ALL - COUNT ( * ) / + MIN ( + - 70 ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
0

query I rowsort
SELECT DISTINCT - 37 + + col2 AS col2 FROM tab0
----
-27
10
62

query I rowsort
SELECT + col0 - 72 FROM tab2 AS cor0
----
-26
-8
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7633
SELECT ALL - 12 + + COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7633
SELECT ALL - 12 + + COUNT ( * ) FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7634
SELECT DISTINCT + COUNT( * ) DIV 84 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7634
SELECT DISTINCT + COUNT ( * ) / 84 FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 56 <> NULL
----

query I rowsort
SELECT ALL + + col1 * - - col1 FROM tab0 AS cor0
----
1
441
6561

query I rowsort
SELECT + col2 * - 5 FROM tab0
----
-235
-495
-50

query II rowsort
SELECT DISTINCT - 70, col2 FROM tab0
----
-70
10
-70
47
-70
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7639
SELECT ALL + MAX( col1 ) * + 54 FROM tab2
----
4158

skipif mysql # not compatible
query I rowsort label-7639
SELECT ALL + MAX ( col1 ) * + 54 FROM tab2
----
4158

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7640
SELECT DISTINCT * FROM tab2 WHERE + col2 > - ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7640
SELECT DISTINCT * FROM tab2 WHERE + col2 > - ( - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL col1 * - 90 AS col0 FROM tab2
----
-4590
-6030
-6930

query I rowsort
SELECT 56 FROM tab2 WHERE NOT ( NOT - 74 IS NOT NULL )
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7643
SELECT DISTINCT + COUNT( * ) * + + 37 FROM tab2 cor0
----
111

skipif mysql # not compatible
query I rowsort label-7643
SELECT DISTINCT + COUNT ( * ) * + + 37 FROM tab2 cor0
----
111

query I rowsort
SELECT DISTINCT col1 - - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
100
128
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7645
SELECT DISTINCT + - 4 DIV - COUNT( + col1 ), + 45 + - 67 AS col2 FROM tab0 AS cor0
----
1
-22

skipif mysql # not compatible
query II rowsort label-7645
SELECT DISTINCT + - 4 / - COUNT ( + col1 ), + 45 + - 67 AS col2 FROM tab0 AS cor0
----
1
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-7646
SELECT DISTINCT - SUM( - col1 ) AS col1, 70 FROM tab2 AS cor0
----
195
70

skipif mysql # not compatible
query II rowsort label-7646
SELECT DISTINCT - SUM ( - col1 ) AS col1, 70 FROM tab2 AS cor0
----
195
70

query I rowsort
SELECT + - 49 + + col1 AS col0 FROM tab0 AS cor0
----
-28
-48
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7648
SELECT DISTINCT CAST( NULL AS SIGNED ) * + - COUNT( * ) / - ( COUNT( * ) ) + AVG ( + CAST( - col2 AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7648
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - COUNT ( * ) / - ( COUNT ( * ) ) + AVG ( + CAST ( - col2 AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - - col2 + + - col1 AS col2 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT + ( - + col0 ) + - - ( - col1 ) FROM tab1
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7651
SELECT + COUNT( ALL - ( + col0 ) ) * + COUNT( * ) + + ( + 89 ) AS col0 FROM tab2
----
98

skipif mysql # not compatible
query I rowsort label-7651
SELECT + COUNT ( ALL - ( + col0 ) ) * + COUNT ( * ) + + ( + 89 ) AS col0 FROM tab2
----
98

query I rowsort
SELECT col1 * - col1 + - col1 AS col1 FROM tab0
----
-2
-462
-6642

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7653
SELECT DISTINCT + ( - - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7653
SELECT DISTINCT + ( - - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NOT col1 > col2
----
59
68
96

query I rowsort
SELECT ALL col2 FROM tab0 WHERE - - 77 < + - col2 * + col2 + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 / - + 3 * - ( - col0 ) col0, 64 FROM tab1 WHERE + + col2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7657
SELECT DISTINCT - col2 * + CAST( - - col0 AS SIGNED ) * - - col1 + + col1 AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
-18249
-57024
-9602

skipif mysql # not compatible
query I rowsort label-7657
SELECT DISTINCT - col2 * + CAST ( - - col0 AS INTEGER ) * - - col1 + + col1 AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
-18249
-57024
-9602

onlyif mysql # aggregate syntax: 
query I rowsort label-7658
SELECT DISTINCT ( + MIN( DISTINCT - 51 ) ) + MIN( DISTINCT - + col2 ) col2 FROM tab1 AS cor0
----
-147

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7658
SELECT DISTINCT ( + MIN ( DISTINCT - 51 ) ) + MIN ( DISTINCT - + col2 ) col2 FROM tab1 AS cor0
----
-147

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7659
SELECT CAST( NULL AS DECIMAL ), - COUNT( * ) + + ( + + 20 ) AS col2 FROM tab2 AS cor0
----
NULL
17

skipif mysql # not compatible
query II rowsort label-7659
SELECT CAST ( NULL AS REAL ), - COUNT ( * ) + + ( + + 20 ) AS col2 FROM tab2 AS cor0
----
NULL
17

query I rowsort
SELECT - - col1 * + 3 + col0 + + 98 FROM tab0 AS cor0
----
198
248
356

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT - 90 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-7661
SELECT - 90 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-270

query I rowsort
SELECT ALL + + ( + + col2 ) AS col0 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7663
SELECT + + 72 AS col0, SUM( CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
72
NULL

skipif mysql # not compatible
query II rowsort label-7663
SELECT + + 72 AS col0, SUM ( CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
72
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - 99 * 79 + + col0 / + col0 / + col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7664
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - 99 * 79 + + col0 / + col0 / + col0 IS NULL
----
-3

query I rowsort
SELECT DISTINCT + 46 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col2 AND NULL
----

query II rowsort
SELECT - - col2, col2 AS col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

query I rowsort
SELECT - + 21 * - 83 * - - col1 * - col2 * + 74 + + 54 FROM tab1 AS cor0
----
-173351754
-38049636
-412226418

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7668
SELECT ALL * FROM tab0 AS cor0 WHERE col2 - - col2 * + ( CAST( - col1 AS SIGNED ) ) <> + col1 + + ( 29 ) * + ( + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7668
SELECT ALL * FROM tab0 AS cor0 WHERE col2 - - col2 * + ( CAST ( - col1 AS INTEGER ) ) <> + col1 + + ( 29 ) * + ( + - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - col2 * + - ( + col2 ) AS col0 FROM tab0
----
100
2209
9801

query I rowsort
SELECT ALL 36 * - col2 FROM tab2
----
-1440
-2088
-828

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - ( - 59 ) ) col0 FROM tab0 AS cor0
----
59

query II rowsort
SELECT DISTINCT + col2, + 97 * 71 FROM tab0 cor0 WHERE NOT ( NOT + 94 IS NOT NULL )
----
10
6887
47
6887
99
6887

onlyif mysql # aggregate syntax: 
query II rowsort label-7673
SELECT 47 * SUM( + + 93 ) + 68 AS col1, + SUM( + 76 ) * + 95 FROM tab1 cor0
----
13181
21660

skipif mysql # not compatible
query II rowsort label-7673
SELECT 47 * SUM ( + + 93 ) + 68 AS col1, + SUM ( + 76 ) * + 95 FROM tab1 cor0
----
13181
21660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7674
SELECT DISTINCT + 81 * - COUNT( col1 ) + + + AVG ( DISTINCT - - CAST( NULL AS SIGNED ) ) FROM tab2 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7674
SELECT DISTINCT + 81 * - COUNT ( col1 ) + + + AVG ( DISTINCT - - CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7675
SELECT - - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7675
SELECT - - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NULL = - col2
----

query I rowsort
SELECT ALL - 56 + + 3 * col0 FROM tab0 WHERE - col2 + + 42 IS NOT NULL
----
-11
205
235

query I rowsort
SELECT ( - 26 ) + + col2 AS col1 FROM tab2
----
-3
14
32

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 61 + + col0 + + 13 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7680
SELECT - - MIN( DISTINCT + 14 ) AS col2 FROM tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-7680
SELECT - - MIN ( DISTINCT + 14 ) AS col2 FROM tab0 AS cor0
----
14

query I rowsort
SELECT DISTINCT - ( + + col0 ) AS col1 FROM tab0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7682
SELECT + CAST( + + 34 AS SIGNED ) AS col1, - 47 AS col1 FROM tab2
----
34
-47
34
-47
34
-47

skipif mysql # not compatible
query II rowsort label-7682
SELECT + CAST ( + + 34 AS INTEGER ) AS col1, - 47 AS col1 FROM tab2
----
34
-47
34
-47
34
-47

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 < + + 86
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7684
SELECT COUNT( * ) - + + 21 * COUNT( * ) AS col0 FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-7684
SELECT COUNT ( * ) - + + 21 * COUNT ( * ) AS col0 FROM tab1
----
-60

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT col0 IS NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE ( - 13 < NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT - + COUNT( + + 76 ) AS col1 FROM tab1 WHERE NULL >= col2
----
0

skipif mysql # not compatible
query I rowsort label-7687
SELECT - + COUNT ( + + 76 ) AS col1 FROM tab1 WHERE NULL >= col2
----
0

query I rowsort
SELECT col0 + + 54 + + col0 AS col1 FROM tab2
----
146
182
204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7689
SELECT ALL 27 + + ( + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7689
SELECT ALL 27 + + ( + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7690
SELECT DISTINCT col2 * - + col2 - CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7690
SELECT DISTINCT col2 * - + col2 - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT 20 - ( - - col1 ) AS col2 FROM tab0 AS cor0
----
-1
-61
19

onlyif mysql # DIV for integer division: 
query I rowsort label-7692
SELECT DISTINCT + col1 - + - 56 + - - col0 DIV col0 + - ( 99 ) AS col0 FROM tab0 AS cor0
----
-21
-41
39

skipif mysql # not compatible
query I rowsort label-7692
SELECT DISTINCT + col1 - + - 56 + - - col0 / col0 + - ( 99 ) AS col0 FROM tab0 AS cor0
----
-21
-41
39

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 65 / - - col2 IS NULL
----

query I rowsort
SELECT col0 * - - ( + + 14 ) AS col1 FROM tab1
----
1190
1274
714

query I rowsort
SELECT ALL - col1 * + 8 * - - col1 FROM tab2
----
-20808
-35912
-47432

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 + + 26 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT DISTINCT - COUNT( * ) col2 FROM tab0 AS cor0 WHERE NOT col2 + + + 50 - - col0 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7697
SELECT DISTINCT - COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NOT col2 + + + 50 - - col0 IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7699
SELECT MIN( 48 ) AS col1 FROM tab0 cor0
----
48

skipif mysql # not compatible
query I rowsort label-7699
SELECT MIN ( 48 ) AS col1 FROM tab0 cor0
----
48

query I rowsort
SELECT - - 44 * 72 * col0 * + col1 FROM tab2 AS cor0
----
15611904
15919200
7432128

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * 40 < - ( - + 65 ) + + 14
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-7702
SELECT + COUNT( * ) * - + MAX( DISTINCT + 28 ) AS col2, + 39 FROM tab0
----
-84
39

skipif mysql # not compatible
query II rowsort label-7702
SELECT + COUNT ( * ) * - + MAX ( DISTINCT + 28 ) AS col2, + 39 FROM tab0
----
-84
39

query I rowsort
SELECT DISTINCT + ( + col1 ) * - col0 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7704
SELECT * FROM tab1 WHERE NOT + - CAST( NULL AS SIGNED ) >= CAST( NULL AS SIGNED ) * - col2 - + col1
----

skipif mysql # not compatible
query III rowsort label-7704
SELECT * FROM tab1 WHERE NOT + - CAST ( NULL AS INTEGER ) >= CAST ( NULL AS INTEGER ) * - col2 - + col1
----

query I rowsort
SELECT ALL 18 * + 61 FROM tab0 WHERE NOT 49 >= NULL
----

query I rowsort
SELECT ALL col2 * - + 5 * + + col1 FROM tab0
----
-1050
-19035
-495

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 93 * - col1 * - col2 * col2 col0, col2 AS col2 FROM tab1 cor0
----
11999232
96
1618665
59
20211504
68

query I rowsort
SELECT - col1 AS col2 FROM tab1 WHERE NULL < col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT + COUNT( * ) FROM tab2 cor0 WHERE - 15 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7709
SELECT + COUNT ( * ) FROM tab2 cor0 WHERE - 15 IS NULL
----
0

query I rowsort
SELECT ALL + ( - ( + 68 ) ) + - col1 AS col1 FROM tab1 AS cor0
----
-115
-73
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7711
SELECT + + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE + 80 + + - CAST( NULL AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7711
SELECT + + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE + 80 + + - CAST ( NULL AS INTEGER ) IS NOT NULL
----
0

query II rowsort
SELECT - 34 + - 65 * + col1 + + col0 AS col2, col2 AS col2 FROM tab0 AS cor0
----
-1312
10
-2
99
-5284
47

query I rowsort
SELECT col2 + - col2 + + col0 AS col2 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ALL + col1 + ( + + 74 ) AS col1 FROM tab1 AS cor0
----
121
79
88

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col2 + col2 + - col2 >= - - col0
----
51
14
96

query I rowsort
SELECT ALL + + col1 AS col1 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT + - 41 IS NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7718
SELECT ALL col2 AS col2, col2 * CAST( + 58 AS SIGNED ) AS col0 FROM tab1
----
59
3422
68
3944
96
5568

skipif mysql # not compatible
query II rowsort label-7718
SELECT ALL col2 AS col2, col2 * CAST ( + 58 AS INTEGER ) AS col0 FROM tab1
----
59
3422
68
3944
96
5568

onlyif mysql # aggregate syntax: 
query I rowsort label-7719
SELECT ALL SUM( + 93 ) * - SUM( + col2 ) - + - ( + 79 ) AS col0 FROM tab1
----
-62138

skipif mysql # not compatible
query I rowsort label-7719
SELECT ALL SUM ( + 93 ) * - SUM ( + col2 ) - + - ( + 79 ) AS col0 FROM tab1
----
-62138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 68 ) * - - 67 col1 FROM tab0
----
-4556
-4556
-4556

onlyif mysql # aggregate syntax: 
query I rowsort label-7721
SELECT DISTINCT - COUNT( * ) + 95 AS col0 FROM tab0
----
92

skipif mysql # not compatible
query I rowsort label-7721
SELECT DISTINCT - COUNT ( * ) + 95 AS col0 FROM tab0
----
92

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( - - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 3 * - col2 FROM tab1
----
-177
-204
-288

query II rowsort
SELECT col2 AS col1, 85 FROM tab2 WHERE 3 + col1 IS NOT NULL
----
23
85
40
85
58
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT DISTINCT MAX( ALL - - 51 ) AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7725
SELECT DISTINCT MAX ( ALL - - 51 ) AS col0 FROM tab1 AS cor0
----
51

query I rowsort
SELECT - col0 - 56 + + col0 * - col1 FROM tab0 AS cor0
----
-1286
-1970
-250

query I rowsort
SELECT DISTINCT - ( + 49 ) FROM tab2 AS cor0
----
-49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - ( - - 48 ) BETWEEN NULL AND + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7729
SELECT + col2 DIV 86 - + - col1 AS col0 FROM tab2 WHERE NOT col1 * - ( + col2 ) + - + 82 * col0 + col2 + - col1 IS NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7729
SELECT + col2 / 86 - + - col1 AS col0 FROM tab2 WHERE NOT col1 * - ( + col2 ) + - + 82 * col0 + col2 + - col1 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query II rowsort label-7730
SELECT DISTINCT + COUNT( ALL - 1 ) AS col2, 4 FROM tab1 WHERE NOT NULL < NULL
----
0
4

skipif mysql # not compatible
query II rowsort label-7730
SELECT DISTINCT + COUNT ( ALL - 1 ) AS col2, 4 FROM tab1 WHERE NOT NULL < NULL
----
0
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT COUNT( * ) * + 28 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-7731
SELECT COUNT ( * ) * + 28 FROM tab0 AS cor0
----
84

query II rowsort
SELECT ALL col1 AS col1, - col2 FROM tab2 AS cor0
----
51
-23
67
-58
77
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-7733
SELECT - + COUNT( * ), + 62 AS col1 FROM tab2 AS cor0
----
-3
62

skipif mysql # not compatible
query II rowsort label-7733
SELECT - + COUNT ( * ), + 62 AS col1 FROM tab2 AS cor0
----
-3
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 35 AS col1, 23 col1 FROM tab2 AS cor0
----
-35
23
-35
23
-35
23

query II rowsort
SELECT ALL - - 16 AS col1, - ( + + col1 ) FROM tab2 cor0
----
16
-51
16
-67
16
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7736
SELECT ALL - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN + col2 AND - col1
----
0

skipif mysql # not compatible
query I rowsort label-7736
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN + col2 AND - col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT DISTINCT MAX( ALL 39 ) AS col0 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-7737
SELECT DISTINCT MAX ( ALL 39 ) AS col0 FROM tab0
----
39

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT ( NULL ) >= 33 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7739
SELECT - + col0, + col1 * - + 76 * + col2 * - col1 FROM tab1 WHERE NOT - col0 * + CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-7739
SELECT - + col0, + col1 * - + 76 * + col2 * - col1 FROM tab1 WHERE NOT - col0 * + CAST ( NULL AS REAL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7740
SELECT ALL - AVG ( ALL CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7740
SELECT ALL - AVG ( ALL CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT 15 + - ( - col0 ) FROM tab1
----
100
106
66

query I rowsort
SELECT - 49 + - ( + + 42 ) FROM tab1
----
-91
-91
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7743
SELECT ALL 63 * CAST( NULL AS DECIMAL ) * + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7743
SELECT ALL 63 * CAST ( NULL AS REAL ) * + col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7744
SELECT * FROM tab0 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7744
SELECT * FROM tab0 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT DISTINCT - - COUNT( + + 60 ) FROM tab2 WHERE NOT + col1 + - + col2 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7745
SELECT DISTINCT - - COUNT ( + + 60 ) FROM tab2 WHERE NOT + col1 + - + col2 BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7746
SELECT + + 87 + 32 AS col0 FROM tab2 WHERE + col1 + + CAST( col0 AS SIGNED ) + - + 79 * - col1 < + col2 * + CAST( NULL AS SIGNED ) + + ( + 41 )
----

skipif mysql # not compatible
query I rowsort label-7746
SELECT + + 87 + 32 AS col0 FROM tab2 WHERE + col1 + + CAST ( col0 AS INTEGER ) + - + 79 * - col1 < + col2 * + CAST ( NULL AS INTEGER ) + + ( + 41 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT + SUM( DISTINCT + - 46 ) FROM tab0 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-7747
SELECT + SUM ( DISTINCT + - 46 ) FROM tab0 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7748
SELECT DISTINCT + + COUNT( * ) + 14 FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-7748
SELECT DISTINCT + + COUNT ( * ) + 14 FROM tab1 AS cor0
----
17

query I rowsort
SELECT DISTINCT + 22 - - col1 AS col2 FROM tab0 AS cor0
----
103
23
43

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 36 * + 10 <= + - col0
----

query I rowsort
SELECT ALL - 73 + - - 66 AS col1 FROM tab0 cor0
----
-7
-7
-7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7752
SELECT + col0 AS col0, + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-7752
SELECT + col0 AS col0, + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

query I rowsort
SELECT DISTINCT 12 + + - 57 FROM tab2 cor0
----
-45

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - + col0 <> + - col2 * + 26 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7755
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - CAST( + - col2 AS DECIMAL ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7755
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - CAST ( + - col2 AS REAL ) AS col2 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT ALL - COUNT( * ) * - 50 - + SUM( - + 98 ) AS col0 FROM tab1 AS cor0
----
444

skipif mysql # not compatible
query I rowsort label-7756
SELECT ALL - COUNT ( * ) * - 50 - + SUM ( - + 98 ) AS col0 FROM tab1 AS cor0
----
444

onlyif mysql # aggregate syntax: 
query I rowsort label-7757
SELECT ALL - COUNT( DISTINCT - 16 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7757
SELECT ALL - COUNT ( DISTINCT - 16 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - 97 FROM tab0 WHERE NOT NULL BETWEEN col0 * + col1 AND NULL
----

query I rowsort
SELECT DISTINCT + col2 * col1 * - col2 - - - col0 + + col2 + - + col0 AS col1 FROM tab0
----
-178912
-2264
-9896

onlyif mysql # DIV for integer division: 
query I rowsort label-7760
SELECT + col2 * - 77 + + col0 DIV - + col0 - - 90 FROM tab1
----
-4454
-5147
-7303

skipif mysql # not compatible
query I rowsort label-7760
SELECT + col2 * - 77 + + col0 / - + col0 - - 90 FROM tab1
----
-4454
-5147
-7303

query II rowsort
SELECT ALL col1 - - col1, col1 + col1 FROM tab2
----
102
102
134
134
154
154

onlyif mysql # aggregate syntax: 
query I rowsort label-7762
SELECT + 1 + COUNT( * ) * ( COUNT( * ) ) FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-7762
SELECT + 1 + COUNT ( * ) * ( COUNT ( * ) ) FROM tab1
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7763
SELECT col1 * + - 97 + - col0 * + - CAST( - ( + col2 ) AS SIGNED ) AS col2 FROM tab0
----
-2907
-8562
-9700

skipif mysql # not compatible
query I rowsort label-7763
SELECT col1 * + - 97 + - col0 * + - CAST ( - ( + col2 ) AS INTEGER ) AS col2 FROM tab0
----
-2907
-8562
-9700

query III rowsort
SELECT * FROM tab2 WHERE ( - 58 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7765
SELECT + col2 * col1 * CAST( NULL AS SIGNED ) * col0 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7765
SELECT + col2 * col1 * CAST ( NULL AS INTEGER ) * col0 col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 80 * + + col1 * + col0 FROM tab1 AS cor0
----
-34000
-342160
-57120

query I rowsort
SELECT + + col0 FROM tab0 cor0 WHERE NOT col1 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 = col0
----

query II rowsort
SELECT DISTINCT col2 AS col0, + 13 AS col1 FROM tab0
----
10
13
47
13
99
13

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( 93 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7771
SELECT DISTINCT - ( - - COUNT( * ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7771
SELECT DISTINCT - ( - - COUNT ( * ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 18 col0 FROM tab0 cor0
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7773
SELECT ALL - + COUNT( ALL - col1 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7773
SELECT ALL - + COUNT ( ALL - col1 ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT DISTINCT + - ( ( + - 63 ) ) * - MAX( + - col1 ) - + - ( - COUNT( col0 ) ) AS col2 FROM tab2 AS cor0 WHERE NOT col2 >= + + ( + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7774
SELECT DISTINCT + - ( ( + - 63 ) ) * - MAX ( + - col1 ) - + - ( - COUNT ( col0 ) ) AS col2 FROM tab2 AS cor0 WHERE NOT col2 >= + + ( + col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7775
SELECT DISTINCT - MIN( DISTINCT - col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-7775
SELECT DISTINCT - MIN ( DISTINCT - col2 ) FROM tab0 AS cor0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7776
SELECT DISTINCT + + 47 DIV col1 FROM tab1 AS cor0
----
1
3
9

skipif mysql # not compatible
query I rowsort label-7776
SELECT DISTINCT + + 47 / col1 FROM tab1 AS cor0
----
1
3
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7777
SELECT - CAST( NULL AS SIGNED ) * + + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + col2 + + - 84 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7777
SELECT - CAST ( NULL AS INTEGER ) * + + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + col2 + + - 84 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT MIN( - - col0 ) * - 46 * 34 FROM tab2 AS cor0
----
-71944

skipif mysql # not compatible
query I rowsort label-7778
SELECT MIN ( - - col0 ) * - 46 * 34 FROM tab2 AS cor0
----
-71944

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7779
SELECT ALL + col1, + 54 * + col2 + - - 84 + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + + col0 + - 70 * - col0 * - col2 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-7779
SELECT ALL + col1, + 54 * + col2 + - - 84 + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + + col0 + - 70 * - col0 * - col2 FROM tab1
----
14
NULL
47
NULL
5
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( ( + col2 ) ) IS NULL
----

query II rowsort
SELECT - col1 + + col0 AS col0, col2 FROM tab2
----
-13
40
-5
23
8
58

onlyif mysql # aggregate syntax: 
query II rowsort label-7782
SELECT - + COUNT( * ), MIN( ALL - 30 ) AS col1 FROM tab1 WHERE NULL > col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-7782
SELECT - + COUNT ( * ), MIN ( ALL - 30 ) AS col1 FROM tab1 WHERE NULL > col1
----
0
NULL

query II rowsort
SELECT ALL + col2 AS col2, col1 AS col1 FROM tab1 WHERE NOT + 3 IS NULL
----
59
5
68
47
96
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7784
SELECT ALL COUNT( * ) * - - 70 * - ( - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7784
SELECT ALL COUNT ( * ) * - - 70 * - ( - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query II rowsort
SELECT - 42, col2 AS col0 FROM tab2 AS cor0
----
-42
23
-42
40
-42
58

query I rowsort
SELECT - - 24 AS col2 FROM tab0 AS cor0
----
24
24
24

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NOT - col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + + col2 AS col1, - 16 FROM tab1 AS cor0
----
59
-16
68
-16
96
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT DISTINCT - ( + 35 ) + + COUNT( * ) FROM tab0 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-7789
SELECT DISTINCT - ( + 35 ) + + COUNT ( * ) FROM tab0 AS cor0
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-7790
SELECT + col1 * + - col2 * - + col0 - col2 DIV col2 + col2 AS col0 FROM tab2 AS cor0
----
197159
291507
53980

skipif mysql # not compatible
query I rowsort label-7790
SELECT + col1 * + - col2 * - + col0 - col2 / col2 + col2 AS col0 FROM tab2 AS cor0
----
197159
291507
53980

query I rowsort
SELECT - ( - 91 ) * + 7 - - - col2 + - col1 FROM tab2 AS cor0
----
512
520
563

query I rowsort
SELECT DISTINCT - col0 / - col0 FROM tab1 AS cor0 WHERE ( NULL ) <= ( - 82 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7793
SELECT + col1 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7793
SELECT + col1 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NULL ) < + - 61 + col1 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7795
SELECT DISTINCT + 10 - + MAX( ALL col2 ) FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-7795
SELECT DISTINCT + 10 - + MAX ( ALL col2 ) FROM tab2
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7796
SELECT DISTINCT col0, - CAST( + col1 AS SIGNED ) FROM tab0
----
15
-81
87
-21
97
-1

skipif mysql # not compatible
query II rowsort label-7796
SELECT DISTINCT col0, - CAST ( + col1 AS INTEGER ) FROM tab0
----
15
-81
87
-21
97
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7797
SELECT 68 + - COUNT( * ) * + COUNT( * ) AS col1 FROM tab2, tab1 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-7797
SELECT 68 + - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab2, tab1 AS cor0
----
-13

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <= + + 51
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - - col2 col2 FROM tab0 AS cor0
----
-705
-870
-9603

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * + ( - 75 ) / - 93 NOT BETWEEN + - 72 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7801
SELECT ALL - 72 DIV col0 + - col2 FROM tab1 AS cor0
----
-59
-68
-97

skipif mysql # not compatible
query I rowsort label-7801
SELECT ALL - 72 / col0 + - col2 FROM tab1 AS cor0
----
-59
-68
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7802
SELECT - + COUNT( DISTINCT - col0 ) * ( + 98 ) FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
-294

skipif mysql # not compatible
query I rowsort label-7802
SELECT - + COUNT ( DISTINCT - col0 ) * ( + 98 ) FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
-294

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 38 * - col2 col2 FROM tab2 AS cor0
----
-1520
-2204
-874

query I rowsort
SELECT - col2 - + 7 FROM tab2
----
-30
-47
-65

query I rowsort
SELECT - col0 + 54 FROM tab0
----
-33
-43
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7806
SELECT DISTINCT - col1 FROM tab2 WHERE NOT - col1 / + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7806
SELECT DISTINCT - col1 FROM tab2 WHERE NOT - col1 / + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7807
SELECT DISTINCT - MIN( ALL CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7807
SELECT DISTINCT - MIN ( ALL CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT - 33 + - col2 FROM tab0 WHERE NOT - 5 IN ( + col0 + col0 )
----
-132
-43
-80

query I rowsort
SELECT ALL + 8 AS col0 FROM tab0 WHERE NULL BETWEEN 62 AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7810
SELECT + CAST( - col0 AS SIGNED ) * 35 AS col1 FROM tab1 WHERE NOT ( + col1 ) BETWEEN NULL AND + col1
----

skipif mysql # not compatible
query I rowsort label-7810
SELECT + CAST ( - col0 AS INTEGER ) * 35 AS col1 FROM tab1 WHERE NOT ( + col1 ) BETWEEN NULL AND + col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col0 + + col0 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT COUNT( * ) + - 55 FROM tab1
----
-52

skipif mysql # not compatible
query I rowsort label-7812
SELECT COUNT ( * ) + - 55 FROM tab1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7813
SELECT COUNT( * ) * 74 FROM tab0 WHERE - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7813
SELECT COUNT ( * ) * 74 FROM tab0 WHERE - col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT - SUM( + col0 ) AS col2 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-7814
SELECT - SUM ( + col0 ) AS col2 FROM tab0
----
-199

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 3 / 64 + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7816
SELECT DISTINCT 81 * COUNT( * ) FROM tab1
----
243

skipif mysql # not compatible
query I rowsort label-7816
SELECT DISTINCT 81 * COUNT ( * ) FROM tab1
----
243

onlyif mysql # DIV for integer division: 
query I rowsort label-7817
SELECT 77 - 44 DIV - 59 FROM tab1
----
77
77
77

skipif mysql # not compatible
query I rowsort label-7817
SELECT 77 - 44 / - 59 FROM tab1
----
77
77
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7818
SELECT ALL 87 * - ( 63 DIV + SUM( DISTINCT col0 ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7818
SELECT ALL 87 * - ( 63 / + SUM ( DISTINCT col0 ) ) FROM tab1
----
0

query I rowsort
SELECT - 70 + - col0 AS col1 FROM tab0 AS cor0
----
-157
-167
-85

query I rowsort
SELECT + col0 + - 73 FROM tab0 AS cor0 WHERE col0 / - col2 >= ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7821
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7821
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7822
SELECT DISTINCT CAST( NULL AS DECIMAL ) + ( col1 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7822
SELECT DISTINCT CAST ( NULL AS REAL ) + ( col1 ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL 56 + 59 AS col1 FROM tab0 AS cor0
----
115
115
115

query I rowsort
SELECT - col2 FROM tab2 WHERE + 69 < + 67
----

query I rowsort
SELECT + col2 FROM tab2 WHERE NULL NOT IN ( col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7826
SELECT + col0 DIV 99 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7826
SELECT + col0 / 99 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7827
SELECT DISTINCT + COUNT( DISTINCT - 95 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7827
SELECT DISTINCT + COUNT ( DISTINCT - 95 ) AS col0 FROM tab2
----
1

query I rowsort
SELECT DISTINCT + - col1 - 41 * - col0 AS col2 FROM tab0 AS cor0
----
3546
3976
534

query I rowsort
SELECT col1 - 50 AS col2 FROM tab0 cor0
----
-29
-49
31

query I rowsort
SELECT ALL - - 20 + - col0 FROM tab2 AS cor0
----
-26
-44
-55

query I rowsort
SELECT DISTINCT 61 + col0 AS col0 FROM tab2 AS cor0
----
107
125
136

query I rowsort
SELECT DISTINCT + 47 * + 77 + + col0 * - col0 FROM tab0 AS cor0
----
-3950
-5790
3394

query I rowsort
SELECT ALL col1 + 32 * - col1 AS col1 FROM tab2 cor0 WHERE ( - col2 ) IS NOT NULL
----
-1581
-2077
-2387

query I rowsort
SELECT ALL + - 57 * + col2 - ( - col0 - + col2 ) FROM tab1 AS cor0
----
-3219
-3717
-5325

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7835
SELECT ALL - 13 DIV COUNT( * ) + - 1 AS col0 FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7835
SELECT ALL - 13 / COUNT ( * ) + - 1 AS col0 FROM tab2 AS cor0
----
-5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 56 * 77 - + 13 / - 57 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7837
SELECT * FROM tab1 AS cor0 WHERE 41 + - ( CAST( NULL AS SIGNED ) + col1 * col0 ) * - col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7837
SELECT * FROM tab1 AS cor0 WHERE 41 + - ( CAST ( NULL AS INTEGER ) + col1 * col0 ) * - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7838
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 / CAST( col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7838
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 / CAST ( col0 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7839
SELECT - ( - SUM( ALL col0 ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7839
SELECT - ( - SUM ( ALL col0 ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT + 52 * + 82 FROM tab2 AS cor0
----
4264
4264
4264

onlyif mysql # aggregate syntax: 
query I rowsort label-7841
SELECT 46 * COUNT( * ) col2 FROM tab1
----
138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7841
SELECT 46 * COUNT ( * ) col2 FROM tab1
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-7842
SELECT + MAX( DISTINCT + + col0 ) AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-7842
SELECT + MAX ( DISTINCT + + col0 ) AS col1 FROM tab1
----
91

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 BETWEEN NULL AND 86
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7844
SELECT * FROM tab0 WHERE NOT ( NULL ) IS NULL OR NOT ( NULL ) < - CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7844
SELECT * FROM tab0 WHERE NOT ( NULL ) IS NULL OR NOT ( NULL ) < - CAST ( - col0 AS INTEGER )
----

query I rowsort
SELECT ALL - col1 AS col1 FROM tab0 WHERE NOT ( NULL ) <> + 39
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7846
SELECT DISTINCT + MAX( DISTINCT - col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-7846
SELECT DISTINCT + MAX ( DISTINCT - col0 ) FROM tab0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7847
SELECT + 7 * + COUNT( - CAST( 62 AS SIGNED ) ) FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-7847
SELECT + 7 * + COUNT ( - CAST ( 62 AS INTEGER ) ) FROM tab1
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7848
SELECT DISTINCT CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab2 WHERE NOT ( NULL ) > ( NULL )
----

skipif mysql # not compatible
query I rowsort label-7848
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab2 WHERE NOT ( NULL ) > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT + COUNT( * ) * - - 61 AS col0 FROM tab0
----
183

skipif mysql # not compatible
query I rowsort label-7849
SELECT + COUNT ( * ) * - - 61 AS col0 FROM tab0
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT ALL COUNT( * ) AS col1 FROM tab1 WHERE NOT - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7850
SELECT ALL COUNT ( * ) AS col1 FROM tab1 WHERE NOT - col1 IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 31 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 69 AS col0 FROM tab0, tab2 AS cor0
----
69

query I rowsort
SELECT - - 98 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

onlyif mysql # aggregate syntax: 
query I rowsort label-7854
SELECT DISTINCT SUM( - col2 ) AS col2 FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-7854
SELECT DISTINCT SUM ( - col2 ) AS col2 FROM tab2 cor0
----
-121

query II rowsort
SELECT DISTINCT + 9, col0 AS col2 FROM tab1 AS cor0
----
9
51
9
85
9
91

query I rowsort
SELECT - 43 FROM tab1 AS cor0 WHERE NOT ( + col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7857
SELECT - - COUNT( + + 87 ) * - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7857
SELECT - - COUNT ( + + 87 ) * - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT - - col1 / 19 AS col0 FROM tab0 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7859
SELECT DISTINCT col1, - 23 + CAST( + col0 AS SIGNED ) col0 FROM tab0 AS cor0
----
1
74
21
64
81
-8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7859
SELECT DISTINCT col1, - 23 + CAST ( + col0 AS INTEGER ) col0 FROM tab0 AS cor0
----
1
74
21
64
81
-8

query I rowsort
SELECT + - col0 + + - 78 FROM tab1 AS cor0
----
-129
-163
-169

onlyif mysql # DIV for integer division: 
query I rowsort label-7861
SELECT + 49 + - - col2 DIV + - ( + col1 ) FROM tab0 AS cor0
----
-50
49
49

skipif mysql # not compatible
query I rowsort label-7861
SELECT + 49 + - - col2 / + - ( + col1 ) FROM tab0 AS cor0
----
-50
49
49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 - + + col1 BETWEEN ( col0 ) AND ( 79 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 52 + + 71 FROM tab1 AS cor0
----
123
123
123

query I rowsort
SELECT ALL + 31 * - 68 * col1 AS col0 FROM tab1 AS cor0
----
-10540
-29512
-99076

query I rowsort
SELECT + col0 + - - col0 * - col0 FROM tab0
----
-210
-7482
-9312

onlyif mysql # aggregate syntax: 
query I rowsort label-7866
SELECT + ( - + SUM( ALL + col1 ) ) + - + COUNT( * ) FROM tab0
----
-106

skipif mysql # not compatible
query I rowsort label-7866
SELECT + ( - + SUM ( ALL + col1 ) ) + - + COUNT ( * ) FROM tab0
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-7867
SELECT DISTINCT 63 * COUNT( ALL - 62 ) FROM tab0 WHERE 82 + col2 IS NOT NULL
----
189

skipif mysql # not compatible
query I rowsort label-7867
SELECT DISTINCT 63 * COUNT ( ALL - 62 ) FROM tab0 WHERE 82 + col2 IS NOT NULL
----
189

query I rowsort
SELECT - ( + col1 ) + + 8 AS col0 FROM tab1
----
-39
-6
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT ALL COUNT( * ) * + ( - COUNT( * ) ) * - + MIN( DISTINCT - col1 ) AS col0 FROM tab0
----
-729

skipif mysql # not compatible
query I rowsort label-7869
SELECT ALL COUNT ( * ) * + ( - COUNT ( * ) ) * - + MIN ( DISTINCT - col1 ) AS col0 FROM tab0
----
-729

query II rowsort
SELECT DISTINCT col1 * + 77 AS col0, - col1 * + + 2 AS col0 FROM tab0
----
1617
-42
6237
-162
77
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7871
SELECT ALL - COUNT( * ) * + COUNT( * ) FROM tab1 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-7871
SELECT ALL - COUNT ( * ) * + COUNT ( * ) FROM tab1 WHERE NULL IS NULL
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7872
SELECT ALL + CAST( + 33 AS SIGNED ) + + - 92 AS col0 FROM tab2
----
-59
-59
-59

skipif mysql # not compatible
query I rowsort label-7872
SELECT ALL + CAST ( + 33 AS INTEGER ) + + - 92 AS col0 FROM tab2
----
-59
-59
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7873
SELECT SUM( ALL col0 ) DIV 18 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-7873
SELECT SUM ( ALL col0 ) / 18 FROM tab1
----
12

query I rowsort
SELECT DISTINCT col1 + - 73 * - - col2 * col0 FROM tab1 cor0
----
-357394
-366090
-451677

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7875
SELECT ALL * FROM tab2 AS cor0 WHERE NULL = col2 * - CAST( - col0 AS SIGNED ) / + ( - col2 )
----

skipif mysql # not compatible
query III rowsort label-7875
SELECT ALL * FROM tab2 AS cor0 WHERE NULL = col2 * - CAST ( - col0 AS INTEGER ) / + ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7876
SELECT DISTINCT CAST( NULL AS SIGNED ) - - - col1 / 97 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7876
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - - col1 / 97 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + 73 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT + - MAX( DISTINCT - - col0 ) + - COUNT( * ) FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-7878
SELECT + - MAX ( DISTINCT - - col0 ) + - COUNT ( * ) FROM tab1 AS cor0
----
-94

query I rowsort
SELECT col1 * - - col2 * + ( + 25 ) + - - col0 + 32 AS col2 FROM tab0 cor0
----
2604
5369
95222

onlyif mysql # aggregate syntax: 
query I rowsort label-7880
SELECT + COUNT( - col1 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7880
SELECT + COUNT ( - col1 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7881
SELECT ALL + + CAST( + + col1 AS SIGNED ) FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7881
SELECT ALL + + CAST ( + + col1 AS INTEGER ) FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7882
SELECT + SUM( + - 92 ) FROM tab0 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-7882
SELECT + SUM ( + - 92 ) FROM tab0 AS cor0
----
-276

query II rowsort
SELECT DISTINCT col0 AS col0, + col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
51
51
85
85
91
91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 99 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT + 22 + col1 + + 6 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7886
SELECT DISTINCT ( - SUM( DISTINCT 61 ) ) AS col2 FROM tab0
----
-61

skipif mysql # not compatible
query I rowsort label-7886
SELECT DISTINCT ( - SUM ( DISTINCT 61 ) ) AS col2 FROM tab0
----
-61

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 80 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 * + + 89 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 71 * 84 AS col0 FROM tab1 WHERE NOT ( NOT NULL NOT BETWEEN + 33 AND - col0 * 64 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7890
SELECT DISTINCT - COUNT( 96 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7890
SELECT DISTINCT - COUNT ( 96 ) AS col2 FROM tab0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7891
SELECT + col1 DIV + col2 - col1 AS col2 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-7891
SELECT + col1 / + col2 - col1 AS col2 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-7892
SELECT - col2 * + + col1 + - - col2 DIV - + col0 + + ( - - 10 ) * - ( col0 ) AS col0 FROM tab0 AS cor0
----
-1070
-1080
-3960

skipif mysql # not compatible
query I rowsort label-7892
SELECT - col2 * + + col1 + - - col2 / - + col0 + + ( - - 10 ) * - ( col0 ) AS col0 FROM tab0 AS cor0
----
-1070
-1080
-3960

query I rowsort
SELECT + - 16 AS col1 FROM tab2 AS cor0
----
-16
-16
-16

query I rowsort
SELECT DISTINCT + ( - + ( + - col1 ) ) AS col1 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 + 31 + col0 BETWEEN - - 14 + - + 36 + + col0 / 67 AND NULL
----

query I rowsort
SELECT ALL + 40 FROM tab0 WHERE col0 + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 11 col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7898
SELECT ALL 7 DIV - MIN( DISTINCT - col1 ) + + + 13 FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-7898
SELECT ALL 7 / - MIN ( DISTINCT - col1 ) + + + 13 FROM tab0 AS cor0
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - - ( 38 ) + 64 col1 FROM tab2 AS cor0
----
-1684
-2368
-2786

query I rowsort
SELECT - - col1 * 91 FROM tab1 AS cor0
----
1274
4277
455

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col1 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 * - + 44 AS col1 FROM tab0 AS cor0
----
-3564
-44
-924

onlyif mysql # aggregate syntax: 
query II rowsort label-7903
SELECT 25 AS col2, + COUNT( + col1 ) AS col2 FROM tab1
----
25
3

skipif mysql # not compatible
query II rowsort label-7903
SELECT 25 AS col2, + COUNT ( + col1 ) AS col2 FROM tab1
----
25
3

query III rowsort
SELECT * FROM tab0 WHERE - 98 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE 14 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT DISTINCT + ( SUM( DISTINCT + col0 ) ) * + 91 AS col1 FROM tab1
----
20657

skipif mysql # not compatible
query I rowsort label-7906
SELECT DISTINCT + ( SUM ( DISTINCT + col0 ) ) * + 91 AS col1 FROM tab1
----
20657

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7907
SELECT ALL - col0 * - - CAST( + col0 AS SIGNED ) AS col2, col1 AS col0 FROM tab1
----
-2601
14
-7225
5
-8281
47

skipif mysql # not compatible
query II rowsort label-7907
SELECT ALL - col0 * - - CAST ( + col0 AS INTEGER ) AS col2, col1 AS col0 FROM tab1
----
-2601
14
-7225
5
-8281
47

query I rowsort
SELECT - - 10 + + 6 FROM tab1 WHERE NULL IS NULL
----
16
16
16

query I rowsort
SELECT col0 * col2 * + col0 * col2 + - - col0 + ( - + col0 ) + + + col1 AS col0 FROM tab1
----
23970830
25150230
38291391

onlyif mysql # aggregate syntax: 
query I rowsort label-7910
SELECT ALL COUNT( * ) + 40 AS col0 FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-7910
SELECT ALL COUNT ( * ) + 40 AS col0 FROM tab2
----
43

query I rowsort
SELECT + - col0 * + col2 + - - 80 FROM tab0 AS cor0
----
-625
-790
-9523

query II rowsort
SELECT ALL + + col0 AS col2, col2 AS col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

query I rowsort
SELECT + + col0 * - + 22 AS col1 FROM tab0 AS cor0
----
-1914
-2134
-330

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - ( - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7915
SELECT 47 * + - COUNT( * ) * - 79 FROM ( tab0 cor0 CROSS JOIN tab2 cor1 )
----
33417

skipif mysql # not compatible
query I rowsort label-7915
SELECT 47 * + - COUNT ( * ) * - 79 FROM ( tab0 cor0 CROSS JOIN tab2 cor1 )
----
33417

query I rowsort
SELECT + - col2 * - col0 + col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col1 AND - + 32
----

query I rowsort
SELECT DISTINCT ( - + 88 ) AS col2 FROM tab1 AS cor0
----
-88

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 + - + col0 >= + + 7
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7919
SELECT COUNT( * ) * - MAX( + + col2 ) FROM tab0
----
-297

skipif mysql # not compatible
query I rowsort label-7919
SELECT COUNT ( * ) * - MAX ( + + col2 ) FROM tab0
----
-297

query I rowsort
SELECT DISTINCT - + 40 * 34 + + col1 AS col1 FROM tab1 WHERE NULL IS NULL
----
-1313
-1346
-1355

query I rowsort
SELECT - 51 + + - 23 FROM tab1 WHERE NOT ( col2 / - + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7922
SELECT 92 col1, COUNT( * ) AS col0 FROM tab0
----
92
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7922
SELECT 92 col1, COUNT ( * ) AS col0 FROM tab0
----
92
3

query I rowsort
SELECT col0 * + 68 * + 93 FROM tab0
----
550188
613428
94860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7924
SELECT CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7924
SELECT CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT + MIN( DISTINCT - 27 ) AS col0 FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-7925
SELECT + MIN ( DISTINCT - 27 ) AS col0 FROM tab2 AS cor0
----
-27

query II rowsort
SELECT col0 AS col1, col0 + + ( col0 ) AS col0 FROM tab0 AS cor0
----
15
30
87
174
97
194

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT DISTINCT SUM( 77 ) FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-7927
SELECT DISTINCT SUM ( 77 ) FROM tab2
----
231

query I rowsort
SELECT + 14 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query II rowsort
SELECT DISTINCT - - col2 - + col1, 87 AS col1 FROM tab0 WHERE NULL BETWEEN col0 * + - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT DISTINCT - COUNT( * ) + - + COUNT( * ) AS col0 FROM tab2 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7930
SELECT DISTINCT - COUNT ( * ) + - + COUNT ( * ) AS col0 FROM tab2 cor0
----
-6

query I rowsort
SELECT ALL ( ( - col2 ) ) + - col1 FROM tab1 AS cor0
----
-110
-115
-64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7932
SELECT + CAST( NULL AS SIGNED ) + + 25, col0 AS col2 FROM tab2 cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-7932
SELECT + CAST ( NULL AS INTEGER ) + + 25, col0 AS col2 FROM tab2 cor0
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT ALL - col0 + col2 * 12 - - - col2 + + 64 FROM tab1 AS cor0
----
1069
628
721

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NULL > + col1
----

query I rowsort
SELECT DISTINCT col2 * - col0 AS col0 FROM tab2 cor0
----
-1058
-2560
-4350

query I rowsort
SELECT col1 + + col0 + col2 + col2 * + - col0 * + 10 AS col0 FROM tab1 AS cor0
----
-48799
-50001
-61674

query I rowsort
SELECT col1 + - + col2 FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # aggregate syntax: 
query II rowsort label-7938
SELECT ALL - COUNT( * ), - 73 AS col2 FROM tab2 AS cor0
----
-3
-73

skipif mysql # not compatible
query II rowsort label-7938
SELECT ALL - COUNT ( * ), - 73 AS col2 FROM tab2 AS cor0
----
-3
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT + 85 + 1 + - - col2 * - 9 + 89 AS col2 FROM tab1 AS cor0
----
-356
-437
-689

query I rowsort
SELECT + + col0 + - col2 AS col1 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT + 88 + - 16 AS col1 FROM tab0 AS cor0
----
72
72
72

query I rowsort
SELECT ALL + col2 - - 33 + + + col0 FROM tab2
----
102
137
166

query III rowsort
SELECT * FROM tab1 WHERE 17 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - ( col0 ) * + + col1 col0 FROM tab2
----
-2300
-4864
-4950

query II rowsort
SELECT ALL + col1 + + col1 AS col1, col2 AS col0 FROM tab1 WHERE NOT + + col2 IS NULL
----
10
59
28
96
94
68

query I rowsort
SELECT ALL 35 FROM tab0 WHERE + col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN - col1 / 62 AND 8
----

query II rowsort
SELECT DISTINCT col0, col0 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
15
87
87
97
97

query I rowsort
SELECT + col1 * + col0 - col0 FROM tab0 AS cor0
----
0
1200
1740

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - col2 ) + - col2 col1 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * - - col2 + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 46 * + + 87 FROM tab2
----
-4002
-4002
-4002

query I rowsort
SELECT ALL 16 * + - col1 AS col0 FROM tab1 AS cor0
----
-224
-752
-80

query I rowsort
SELECT DISTINCT - col0 * + - col1 * + 58 AS col2 FROM tab1 AS cor0
----
24650
248066
41412

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - + 56
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7957
SELECT DISTINCT + SUM( DISTINCT - col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-7957
SELECT DISTINCT + SUM ( DISTINCT - col0 ) FROM tab0 AS cor0
----
-199

query II rowsort
SELECT ( + col0 ) * - col1, + ( col2 ) FROM tab0 AS cor0
----
-1215
47
-1827
10
-97
99

query I rowsort
SELECT ALL + - col1 * - + col0 AS col0 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # DIV for integer division: 
query I rowsort label-7960
SELECT DISTINCT + col1 DIV + - col0 AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7960
SELECT DISTINCT + col1 / + - col0 AS col1 FROM tab1 cor0
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( 38 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7962
SELECT ALL 31 DIV 30 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7962
SELECT ALL 31 / 30 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 60 * - col0 col1 FROM tab1
----
-293760
-300900
-371280

query I rowsort
SELECT ALL + 97 + 26 AS col2 FROM tab2 AS cor0
----
123
123
123

query I rowsort
SELECT ALL - 24 AS col1 FROM tab0 cor0
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT DISTINCT - - MAX( ALL col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-7966
SELECT DISTINCT - - MAX ( ALL col0 ) FROM tab2 AS cor0
----
75

query IIIIII rowsort
SELECT ALL * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7968
SELECT 1 + - CAST( - - col2 AS SIGNED ) FROM tab0
----
-46
-9
-98

skipif mysql # not compatible
query I rowsort label-7968
SELECT 1 + - CAST ( - - col2 AS INTEGER ) FROM tab0
----
-46
-9
-98

query I rowsort
SELECT + 84 + - + col1 + col1 FROM tab2
----
84
84
84

onlyif mysql # aggregate syntax: 
query II rowsort label-7970
SELECT DISTINCT - + 57 AS col2, + COUNT( * ) + + 48 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-57
57

skipif mysql # not compatible
query II rowsort label-7970
SELECT DISTINCT - + 57 AS col2, + COUNT ( * ) + + 48 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-57
57

query I rowsort
SELECT ALL + + col2 * col1 + + - col2 * - col2 FROM tab2 AS cor0
----
1702
4680
7250

onlyif mysql # DIV for integer division: 
query I rowsort label-7972
SELECT ALL + - 19 - col0 + + - col1 DIV + 99 FROM tab1 AS cor0
----
-104
-110
-70

skipif mysql # not compatible
query I rowsort label-7972
SELECT ALL + - 19 - col0 + + - col1 / + 99 FROM tab1 AS cor0
----
-104
-110
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7973
SELECT CAST( NULL AS SIGNED ) - + col1 * - col1 * - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7973
SELECT CAST ( NULL AS INTEGER ) - + col1 * - col1 * - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * - col1 - col1 AS col1 FROM tab1
----
-430
-4324
-728

query I rowsort
SELECT DISTINCT + 95 - col1 AS col1 FROM tab2
----
18
28
44

query I rowsort
SELECT 6 + ( + 86 ) FROM tab0
----
92
92
92

query III rowsort
SELECT * FROM tab2 WHERE - 13 + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( 85 ) + - - 73 + + col2 FROM tab0
----
168
205
257

query I rowsort
SELECT - col2 + - - col2 * - - 43 FROM tab1
----
2478
2856
4032

onlyif mysql # aggregate syntax: 
query II rowsort label-7980
SELECT ( + 83 ) + - + COUNT( DISTINCT + + 94 ) AS col1, COUNT( * ) col1 FROM tab1
----
82
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7980
SELECT ( + 83 ) + - + COUNT ( DISTINCT + + 94 ) AS col1, COUNT ( * ) col1 FROM tab1
----
82
3

query I rowsort
SELECT + col0 + + col1 - - col0 FROM tab0
----
111
195
195

onlyif mysql # aggregate syntax: 
query I rowsort label-7982
SELECT 54 + - COUNT( * ) * - COUNT( * ) FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-7982
SELECT 54 + - COUNT ( * ) * - COUNT ( * ) FROM tab1
----
63

query I rowsort
SELECT + + col2 + - - col2 AS col1 FROM tab1 AS cor0
----
118
136
192

query I rowsort
SELECT DISTINCT col1 * - 6 * + 96 FROM tab0 AS cor0
----
-12096
-46656
-576

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT DISTINCT MAX( ( + col0 ) ) AS col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-7985
SELECT DISTINCT MAX ( ( + col0 ) ) AS col0 FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7986
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-7986
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( - col2 )
----
0

query II rowsort
SELECT DISTINCT col1, col2 * + 80 FROM tab1 AS cor0
----
14
7680
47
5440
5
4720

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT DISTINCT + 56 * - MIN( - col0 ) AS col0 FROM tab0
----
5432

skipif mysql # not compatible
query I rowsort label-7988
SELECT DISTINCT + 56 * - MIN ( - col0 ) AS col0 FROM tab0
----
5432

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND - 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT DISTINCT COUNT( * ) * 3 FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-7990
SELECT DISTINCT COUNT ( * ) * 3 FROM tab1 cor0
----
9

query I rowsort
SELECT - 36 + col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + + 48 AS col1 FROM tab2 cor0
----
48
48
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 71 col1 FROM tab1
----
71
71
71

query I rowsort
SELECT 81 * - col2 * - 11 * + col0 * - col0 + col2 AS col0 FROM tab2
----
-145981400
-290688692
-43363165

onlyif mysql # aggregate syntax: 
query II rowsort label-7995
SELECT + 87, + MIN( - col2 ) AS col0 FROM tab1 WHERE NOT NULL <= NULL
----
87
NULL

skipif mysql # not compatible
query II rowsort label-7995
SELECT + 87, + MIN ( - col2 ) AS col0 FROM tab1 WHERE NOT NULL <= NULL
----
87
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT ALL - MAX( ALL + col2 ) AS col2 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-7996
SELECT ALL - MAX ( ALL + col2 ) AS col2 FROM tab2
----
-58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 0 IS NULL )
----

query I rowsort
SELECT + 60 * + + col2 AS col2 FROM tab0 WHERE NOT - col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7999
SELECT DISTINCT + + MIN( DISTINCT ( - col2 ) ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-7999
SELECT DISTINCT + + MIN ( DISTINCT ( - col2 ) ) FROM tab1 AS cor0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8000
SELECT + - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) * - ( - col0 ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8000
SELECT + - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) * - ( - col0 ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT ALL + + MIN( - 84 ) col2 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8001
SELECT ALL + + MIN ( - 84 ) col2 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT ALL + SUM( ALL + col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-8002
SELECT ALL + SUM ( ALL + col1 ) FROM tab0 AS cor0
----
103

query I rowsort
SELECT + col0 + + 76 * + 27 * - col1 AS col1 FROM tab2 cor0
----
-104606
-137409
-157940

query I rowsort
SELECT ALL 89 + - col0 AS col2 FROM tab1 AS cor0
----
-2
38
4

query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8006
SELECT + COUNT( * ) + + - 52 FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-8006
SELECT + COUNT ( * ) + + - 52 FROM tab2 AS cor0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT ALL + - COUNT( * ) + + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8007
SELECT ALL + - COUNT ( * ) + + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - - col2 * col1 col2 FROM tab2 AS cor0
----
1150
3040
3828

query I rowsort
SELECT ALL col1 - + col0 AS col2 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8010
SELECT DISTINCT + 38 - - COUNT( * ) * 36 FROM tab1 AS cor0
----
146

skipif mysql # not compatible
query I rowsort label-8010
SELECT DISTINCT + 38 - - COUNT ( * ) * 36 FROM tab1 AS cor0
----
146

query I rowsort
SELECT - - col2 AS col0 FROM tab0 cor0 WHERE 50 IS NULL
----

query I rowsort
SELECT + col0 * + 90 FROM tab2
----
4140
5760
6750

query I rowsort
SELECT ALL 46 - - - col2 AS col0 FROM tab0
----
-1
-53
36

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN - + col1 AND + col0 * - 31 * + + ( col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8015
SELECT ALL + - col0 AS col1, - col0 + 2 FROM tab0 WHERE NOT NULL IN ( - col0, - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query II rowsort label-8015
SELECT ALL + - col0 AS col1, - col0 + 2 FROM tab0 WHERE NOT NULL IN ( - col0, - CAST ( NULL AS REAL ) )
----

query II rowsort
SELECT ALL - 75 AS col2, col0 AS col0 FROM tab1
----
-75
51
-75
85
-75
91

query I rowsort
SELECT ALL + - 44 * col2 FROM tab1 AS cor0
----
-2596
-2992
-4224

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT DISTINCT - - COUNT( + col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8018
SELECT DISTINCT - - COUNT ( + col0 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT + - SUM( ALL - 37 ) AS col1 FROM tab0 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-8019
SELECT + - SUM ( ALL - 37 ) AS col1 FROM tab0 AS cor0
----
111

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 NOT BETWEEN NULL AND + - 63
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT ALL + COUNT( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8021
SELECT ALL + COUNT ( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - 68 + - 15 > - ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 44 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query II rowsort
SELECT DISTINCT + col1, 74 FROM tab0
----
1
74
21
74
81
74

onlyif mysql # DIV for integer division: 
query II rowsort label-8025
SELECT - col0 AS col2, col2 DIV - col2 AS col1 FROM tab2 AS cor0
----
-46
-1
-64
-1
-75
-1

skipif mysql # not compatible
query II rowsort label-8025
SELECT - col0 AS col2, col2 / - col2 AS col1 FROM tab2 AS cor0
----
-46
-1
-64
-1
-75
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8026
SELECT - col2 DIV 61 AS col2 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8026
SELECT - col2 / 61 AS col2 FROM tab1 AS cor0
----
-1
-1
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 29 + + ( - col2 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT - SUM( + - col1 ) - + + 2 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
64

skipif mysql # not compatible
query I rowsort label-8028
SELECT - SUM ( + - col1 ) - + + 2 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
64

query I rowsort
SELECT DISTINCT + col2 * + ( col2 ) AS col0 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8030
SELECT DISTINCT + CAST( + + COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8030
SELECT DISTINCT + CAST ( + + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 * + 61 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 33 AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8033
SELECT + + CAST( NULL AS SIGNED ) / 20 + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8033
SELECT + + CAST ( NULL AS INTEGER ) / 20 + COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + 75 * - col1 FROM tab2 cor0
----
-3825
-5025
-5775

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 76 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8036
SELECT ALL COUNT( * ) * - COUNT( * ) * 83 AS col2 FROM tab2
----
-747

skipif mysql # not compatible
query I rowsort label-8036
SELECT ALL COUNT ( * ) * - COUNT ( * ) * 83 AS col2 FROM tab2
----
-747

query I rowsort
SELECT - col1 * ( - + ( + col0 ) ) FROM tab0
----
1215
1827
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8038
SELECT - col0 DIV + - col1 FROM tab1 WHERE ( col1 ) <> - 10 + + + col2
----
1
17
3

skipif mysql # not compatible
query I rowsort label-8038
SELECT - col0 / + - col1 FROM tab1 WHERE ( col1 ) <> - 10 + + + col2
----
1
17
3

query II rowsort
SELECT ( + - col0 ) AS col2, + col1 AS col2 FROM tab2
----
-46
51
-64
77
-75
67

query II rowsort
SELECT ALL - col1 + + col2 AS col0, - 21 FROM tab2
----
-28
-21
-37
-21
-9
-21

query II rowsort
SELECT DISTINCT col1 * 23 + 18 AS col2, - col0 AS col2 FROM tab2
----
1191
-46
1559
-75
1789
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-8042
SELECT ALL + col1 DIV col1 + + col2 FROM tab2
----
24
41
59

skipif mysql # not compatible
query I rowsort label-8042
SELECT ALL + col1 / col1 + + col2 FROM tab2
----
24
41
59

query I rowsort
SELECT DISTINCT - col2 + - - col2 + + col2 AS col2 FROM tab1
----
59
68
96

query I rowsort
SELECT DISTINCT + + ( - - col0 ) * + 40 + + col1 + 77 AS col1 FROM tab1 AS cor0
----
2131
3482
3764

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8045
SELECT + - 83 * + 15 + - + CAST( - ( + - col2 ) AS SIGNED ) + + 59 + + 29 * - - col1 * col0 * - 23 col2 FROM tab1 AS cor0
----
-284720
-2854013
-477520

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8045
SELECT + - 83 * + 15 + - + CAST ( - ( + - col2 ) AS INTEGER ) + + 59 + + 29 * - - col1 * col0 * - 23 col2 FROM tab1 AS cor0
----
-284720
-2854013
-477520

query I rowsort
SELECT + col0 + col1 * - - col1 AS col2 FROM tab0 AS cor0
----
528
6576
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col0 ) col2 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8048
SELECT DISTINCT col2 DIV 30 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-8048
SELECT DISTINCT col2 / 30 FROM tab2
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8049
SELECT col0 / + + 44 + CAST( NULL AS SIGNED ) AS col0, CAST( - col0 AS SIGNED ) AS col1 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-8049
SELECT col0 / + + 44 + CAST ( NULL AS INTEGER ) AS col0, CAST ( - col0 AS INTEGER ) AS col1 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

query I rowsort
SELECT - 72 * 76 FROM tab0
----
-5472
-5472
-5472

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8051
SELECT DISTINCT - 1 - + AVG ( - CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8051
SELECT DISTINCT - 1 - + AVG ( - CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT col0 + + + col2 + + col1 FROM tab0
----
118
143
197

onlyif mysql # DIV for integer division: 
query I rowsort label-8053
SELECT DISTINCT col1 DIV 43 AS col2 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-8053
SELECT DISTINCT col1 / 43 AS col2 FROM tab0
----
0
1

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 > - ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8055
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE NOT + col1 * col0 * col0 BETWEEN - col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-8055
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NOT + col1 * col0 * col0 BETWEEN - col1 AND NULL
----

query I rowsort
SELECT - col1 * + - col1 AS col2 FROM tab0
----
1
441
6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8057
SELECT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8057
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * - + 66 AS col1 FROM tab0
----
-5742
-6402
-990

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT ALL - SUM( ALL 59 ) FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-8059
SELECT ALL - SUM ( ALL 59 ) FROM tab1
----
-177

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * col2 + col1 * - ( - col2 ) - - - 64 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8061
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8061
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL < ( NULL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 83 col1 FROM tab1 AS cor0
----
4233
7055
7553

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 30 + - + col0 * - + col0 BETWEEN 21 + + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT - - COUNT( * ) + MIN( DISTINCT + ( - 65 ) ) AS col2 FROM tab0 WHERE NOT + ( - + col2 ) = - col0 + col1
----
-62

skipif mysql # not compatible
query I rowsort label-8064
SELECT - - COUNT ( * ) + MIN ( DISTINCT + ( - 65 ) ) AS col2 FROM tab0 WHERE NOT + ( - + col2 ) = - col0 + col1
----
-62

query I rowsort
SELECT ALL + col1 * + - 85 AS col2 FROM tab1
----
-1190
-3995
-425

query I rowsort
SELECT DISTINCT - 5 + - col2 AS col0 FROM tab1 AS cor0
----
-101
-64
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT DISTINCT - COUNT( col2 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8067
SELECT DISTINCT - COUNT ( col2 ) FROM tab0 cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 69 * + 2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-8069
SELECT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col1 + - 25 col1 FROM tab2 AS cor0
----
-2371
-4953
-5050

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8071
SELECT ALL + col2 AS col1, CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-8071
SELECT ALL + col2 AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-8073
SELECT ( + 26 ) + + - 84, 40 * + COUNT( * ) - + 43 col2 FROM tab0 cor0
----
-58
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8073
SELECT ( + 26 ) + + - 84, 40 * + COUNT ( * ) - + 43 col2 FROM tab0 cor0
----
-58
77

query II rowsort
SELECT col2, col0 + + - ( - - col2 ) AS col1 FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND col2
----

query I rowsort
SELECT - col2 * + 6 AS col1 FROM tab1 AS cor0 WHERE - col0 + + ( + 93 ) IN ( col0 - col2 * + 33 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8076
SELECT ALL CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8076
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT DISTINCT - ( + MAX( - col2 ) ) FROM tab1 WHERE ( - + col2 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8077
SELECT DISTINCT - ( + MAX ( - col2 ) ) FROM tab1 WHERE ( - + col2 ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8078
SELECT 68 + + COUNT( DISTINCT - 72 ) AS col2 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-8078
SELECT 68 + + COUNT ( DISTINCT - 72 ) AS col2 FROM tab0
----
69

query I rowsort
SELECT ALL col0 * - 58 * + col0 AS col2 FROM tab2
----
-122728
-237568
-326250

query I rowsort
SELECT DISTINCT col1 + - - col2 + + 13 * + ( 67 ) + col0 FROM tab0
----
1014
1068
989

query I rowsort
SELECT ALL - col2 + col1 * - - col0 AS col1 FROM tab1 AS cor0
----
366
4209
618

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, - 10 FROM tab2 AS cor0
----
23
-10
40
-10
58
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT - + 28 - - - COUNT( * ) col1 FROM tab0 AS cor0
----
-31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8083
SELECT - + 28 - - - COUNT ( * ) col1 FROM tab0 AS cor0
----
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 17 col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT + COUNT( * ) * + + 89 + COUNT( * ) + + 63 FROM tab2 AS cor0
----
333

skipif mysql # not compatible
query I rowsort label-8085
SELECT + COUNT ( * ) * + + 89 + COUNT ( * ) + + 63 FROM tab2 AS cor0
----
333

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8086
SELECT DISTINCT - ( - + ( - COUNT( * ) ) ) DIV + 18 FROM tab1 AS cor0 WHERE - ( - col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8086
SELECT DISTINCT - ( - + ( - COUNT ( * ) ) ) / + 18 FROM tab1 AS cor0 WHERE - ( - col2 ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8087
SELECT CAST( NULL AS DECIMAL ) * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8087
SELECT CAST ( NULL AS REAL ) * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * 29 + - - col0 FROM tab0 AS cor0
----
1378
2968
377

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 50 AS col1, + 14 col0 FROM tab1
----
50
14
50
14
50
14

query II rowsort
SELECT ALL col1 AS col0, ( + col0 ) + - col0 FROM tab1
----
14
0
47
0
5
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8091
SELECT DISTINCT - 49 AS col1, col2 DIV - + 85 FROM tab0
----
-49
-1
-49
0

skipif mysql # not compatible
query II rowsort label-8091
SELECT DISTINCT - 49 AS col1, col2 / - + 85 FROM tab0
----
-49
-1
-49
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8092
SELECT ALL CAST( NULL AS SIGNED ) AS col2, 41 * + 21 col2 FROM tab2
----
NULL
861
NULL
861
NULL
861

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8092
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, 41 * + 21 col2 FROM tab2
----
NULL
861
NULL
861
NULL
861

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8093
SELECT - 45 * - col1 - 31 + - 94 + + CAST( NULL AS SIGNED ) + 14 + 27 * + 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-8093
SELECT - 45 * - col1 - 31 + - 94 + + CAST ( NULL AS INTEGER ) + 14 + 27 * + col1 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 37 AS col2 FROM tab0 AS cor0
----
-37
-37
-37

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8095
SELECT * FROM tab2 WHERE NOT col0 * - 48 - col2 + - 92 / + - 63 + - + ( - - col1 ) * + 40 * col2 / - CAST( + - col2 AS SIGNED ) * + CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-8095
SELECT * FROM tab2 WHERE NOT col0 * - 48 - col2 + - 92 / + - 63 + - + ( - - col1 ) * + 40 * col2 / - CAST ( + - col2 AS INTEGER ) * + CAST ( NULL AS INTEGER ) = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 * - 25 + - 91 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8097
SELECT col0 DIV - - col1 + - col0 AS col1 FROM tab2
----
-46
-64
-74

skipif mysql # not compatible
query I rowsort label-8097
SELECT col0 / - - col1 + - col0 AS col1 FROM tab2
----
-46
-64
-74

query I rowsort
SELECT DISTINCT + + 4 * col2 + + + col2 FROM tab0 AS cor0
----
235
495
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8099
SELECT DISTINCT + MIN( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8099
SELECT DISTINCT + MIN ( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8100
SELECT + - SUM( - col0 ) AS col1 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-8100
SELECT + - SUM ( - col0 ) AS col1 FROM tab1 AS cor0
----
227

query I rowsort
SELECT ALL 5 * + + col1 FROM tab0 AS cor0
----
105
405
5

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 AS cor0 WHERE NOT col0 * + col0 >= NULL
----

query II rowsort
SELECT DISTINCT - 84 + - 40 * - col1 AS col0, col0 FROM tab2
----
1956
46
2596
75
2996
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT - 27 * + COUNT( * ) + + - 68 col1 FROM tab0
----
-149

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8104
SELECT - 27 * + COUNT ( * ) + + - 68 col1 FROM tab0
----
-149

query I rowsort
SELECT ALL + col1 + - col1 + - + col2 / - - 93 AS col0 FROM tab1 WHERE NULL BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT + ( + 24 ) + MIN( ALL - - col0 ) AS col2 FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-8106
SELECT + ( + 24 ) + MIN ( ALL - - col0 ) AS col2 FROM tab2
----
70

query I rowsort
SELECT ALL + col2 + + 2 * col2 AS col2 FROM tab1
----
177
204
288

onlyif mysql # aggregate syntax: 
query I rowsort label-8108
SELECT MAX( + - col0 ) * COUNT( * ) + + COUNT( * ) + - ( - SUM( ALL - + col0 ) ) FROM tab2
----
-320

skipif mysql # not compatible
query I rowsort label-8108
SELECT MAX ( + - col0 ) * COUNT ( * ) + + COUNT ( * ) + - ( - SUM ( ALL - + col0 ) ) FROM tab2
----
-320

query I rowsort
SELECT ALL - 16 + + + col2 * col1 FROM tab0
----
194
3791
83

query I rowsort
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE NULL > 90
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col0 ) * + col1 col2 FROM tab1 cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-8112
SELECT DISTINCT + COUNT( * ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-8112
SELECT DISTINCT + COUNT ( * ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

query I rowsort
SELECT DISTINCT + - 19 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-8114
SELECT - 26 col1, COUNT( * ) AS col0 FROM tab1 AS cor0
----
-26
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8114
SELECT - 26 col1, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-26
3

query I rowsort
SELECT ALL + col2 * + 95 AS col0 FROM tab2 cor0
----
2185
3800
5510

query I rowsort
SELECT ( + col2 ) FROM tab1 AS cor0 WHERE NOT 2 + + 26 IS NOT NULL
----

query II rowsort
SELECT + - 48 AS col2, - col2 FROM tab2 cor0
----
-48
-23
-48
-40
-48
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8118
SELECT ALL + SUM( - col2 ) * COUNT( - 30 ) - + COUNT( * ) * + - 92 FROM tab1 AS cor0
----
-393

skipif mysql # not compatible
query I rowsort label-8118
SELECT ALL + SUM ( - col2 ) * COUNT ( - 30 ) - + COUNT ( * ) * + - 92 FROM tab1 AS cor0
----
-393

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8119
SELECT ( - 10 ) AS col2 FROM tab1 WHERE NOT - - CAST( NULL AS SIGNED ) IS NOT NULL
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-8119
SELECT ( - 10 ) AS col2 FROM tab1 WHERE NOT - - CAST ( NULL AS INTEGER ) IS NOT NULL
----
-10
-10
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8120
SELECT + SUM( - 64 ) col1 FROM tab2
----
-192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8120
SELECT + SUM ( - 64 ) col1 FROM tab2
----
-192

query II rowsort
SELECT ALL - col2 * - - col2, + col1 FROM tab0
----
-100
21
-2209
81
-9801
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col2 + - + 72 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( 6, - 29 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8124
SELECT DISTINCT + COUNT( DISTINCT + col2 ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8124
SELECT DISTINCT + COUNT ( DISTINCT + col2 ) AS col1 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8125
SELECT 84 DIV - COUNT( * ) FROM tab0 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-8125
SELECT 84 / - COUNT ( * ) FROM tab0 AS cor0
----
-28

query I rowsort
SELECT 56 + + col2 * + + col0 FROM tab1 AS cor0
----
4952
5071
6244

onlyif mysql # aggregate syntax: 
query I rowsort label-8127
SELECT ALL + - COUNT( * ) + ( + - 49 ) AS col2 FROM tab2 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-8127
SELECT ALL + - COUNT ( * ) + ( + - 49 ) AS col2 FROM tab2 AS cor0
----
-52

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8128
SELECT 92 + - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8128
SELECT 92 + - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 87 + + 96 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 + + - col0 FROM tab1
----
-144
-147
-159

query I rowsort
SELECT - col2 + 94 + - col1 FROM tab1
----
-16
-21
30

query I rowsort
SELECT + - 75 AS col0 FROM tab1 WHERE - col1 < - - col1
----
-75
-75
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8133
SELECT * FROM tab2 WHERE ( - + col1 + - - 97 - - + CAST( - + col1 AS SIGNED ) / col2 ) <> ( NULL )
----

skipif mysql # not compatible
query III rowsort label-8133
SELECT * FROM tab2 WHERE ( - + col1 + - - 97 - - + CAST ( - + col1 AS INTEGER ) / col2 ) <> ( NULL )
----

query I rowsort
SELECT ALL - col0 + + 85 AS col2 FROM tab1 AS cor0
----
-6
0
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT - COUNT( * ) - MIN( 20 ) AS col0 FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-8135
SELECT - COUNT ( * ) - MIN ( 20 ) AS col0 FROM tab2 cor0
----
-23

query I rowsort
SELECT DISTINCT - + col2 * + + 84 + col1 FROM tab0 AS cor0
----
-3867
-819
-8315

query I rowsort
SELECT col2 * + col1 + col1 - + col0 AS col1 FROM tab0 AS cor0
----
144
3
3873

query I rowsort
SELECT 96 + - - col1 AS col1 FROM tab1
----
101
110
143

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 5 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * 66 * - + col1 FROM tab0
----
-29106
-433026
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8141
SELECT DISTINCT COUNT( * ) * - AVG ( ALL + 59 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8141
SELECT DISTINCT COUNT ( * ) * - AVG ( ALL + 59 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT col2 * + + col2 AS col1 FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT - COUNT( DISTINCT + - 91 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8143
SELECT - COUNT ( DISTINCT + - 91 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - - 89 * - col1 FROM tab1 AS cor0
----
-1246
-4183
-445

query II rowsort
SELECT ALL - col1 AS col0, col1 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8146
SELECT col0 * CAST( + 2 AS SIGNED ) + - 92 - - 27 AS col0 FROM tab2 cor0
----
27
63
85

skipif mysql # not compatible
query I rowsort label-8146
SELECT col0 * CAST ( + 2 AS INTEGER ) + - 92 - - 27 AS col0 FROM tab2 cor0
----
27
63
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT DISTINCT + COUNT( DISTINCT - - col1 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8147
SELECT DISTINCT + COUNT ( DISTINCT - - col1 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + - 68 AS col0 FROM tab1 AS cor0
----
-68
-68
-68

query I rowsort
SELECT ALL 20 * - 34 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to d0fc6ca2ef4f3b185faf3eb002f09083

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT DISTINCT + SUM( DISTINCT + 70 ) FROM tab1
----
70

skipif mysql # not compatible
query I rowsort label-8150
SELECT DISTINCT + SUM ( DISTINCT + 70 ) FROM tab1
----
70

query I rowsort
SELECT DISTINCT - 22 * + - 6 AS col2 FROM tab2
----
132

query I rowsort
SELECT ALL 46 * - + 51 FROM tab1
----
-2346
-2346
-2346

onlyif mysql # aggregate syntax: 
query I rowsort label-8153
SELECT DISTINCT - COUNT( DISTINCT col2 ) * - SUM( ALL - - col2 ) FROM tab2
----
363

skipif mysql # not compatible
query I rowsort label-8153
SELECT DISTINCT - COUNT ( DISTINCT col2 ) * - SUM ( ALL - - col2 ) FROM tab2
----
363

query II rowsort
SELECT + 47, col1 FROM tab1 cor0
----
47
14
47
47
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT + - MAX( ALL - col0 ) col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8155
SELECT + - MAX ( ALL - col0 ) col2 FROM tab2 AS cor0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8156
SELECT ALL + + 90 / + CAST( NULL AS SIGNED ) + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8156
SELECT ALL + + 90 / + CAST ( NULL AS INTEGER ) + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT COUNT( ALL - col2 ) * + 46 FROM tab0 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-8157
SELECT COUNT ( ALL - col2 ) * + 46 FROM tab0 AS cor0
----
138

query II rowsort
SELECT ALL - + col1 AS col1, 58 * + 73 AS col2 FROM tab1 cor0
----
-14
4234
-47
4234
-5
4234

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8159
SELECT ALL - COUNT( * ) / - CAST( NULL AS DECIMAL ) + - 52 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8159
SELECT ALL - COUNT ( * ) / - CAST ( NULL AS REAL ) + - 52 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - - 1 AS col2 FROM tab1 WHERE NULL >= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT MIN( DISTINCT col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-8161
SELECT MIN ( DISTINCT col0 ) FROM tab2 AS cor0
----
46

query I rowsort
SELECT DISTINCT - 24 * - col1 * + col2 + 71 FROM tab1 AS cor0
----
32327
7151
76775

query I rowsort
SELECT ALL + + col2 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) <> + + col2
----

query II rowsort
SELECT ALL + col0, 76 FROM tab0
----
15
76
87
76
97
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - + 44 col1 FROM tab1
----
15
24
52

query I rowsort
SELECT 79 - col1 AS col1 FROM tab1
----
32
65
74

query III rowsort
SELECT * FROM tab1 WHERE - col2 * + + col2 * + col0 + - + col0 IN ( - col1 )
----

query II rowsort
SELECT ALL + col0, col0 AS col0 FROM tab2
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8169
SELECT + COUNT( * ) + 37 col2 FROM tab2
----
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8169
SELECT + COUNT ( * ) + 37 col2 FROM tab2
----
40

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE + 42 IN ( - col2 * 42, col2 * - col2 )
----

query I rowsort
SELECT 27 + col2 + - col0 AS col1 FROM tab2
----
10
3
4

query I rowsort
SELECT + col1 * - - ( col1 ) + + col0 FROM tab1
----
110
2300
247

query I rowsort
SELECT DISTINCT col1 * col2 * - col2 + - - 65 FROM tab0
----
-178864
-2035
-9736

query I rowsort
SELECT - ( + + col0 ) * 25 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-1275
-2125
-2275

query I rowsort
SELECT 65 * + col0 + col2 + col1 FROM tab2 AS cor0
----
3064
4277
5000

query I rowsort
SELECT ALL - ( - + col2 ) + - 10 + - col1 AS col1 FROM tab0 AS cor0
----
-21
-44
88

query I rowsort
SELECT DISTINCT - 5 FROM tab0 AS cor0 WHERE + 8 IS NOT NULL
----
-5

query I rowsort
SELECT - ( + col2 ) * - col1 - col2 FROM tab1
----
1248
236
3128

onlyif mysql # aggregate syntax: 
query I rowsort label-8179
SELECT DISTINCT - COUNT( * ) + - - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-8179
SELECT DISTINCT - COUNT ( * ) + - - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT ALL - + ( + MIN( ALL - col1 ) ) AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8180
SELECT ALL - + ( + MIN ( ALL - col1 ) ) AS col1 FROM tab0 AS cor0
----
81

query I rowsort
SELECT ALL + + 58 FROM tab2 AS cor0
----
58
58
58

query I rowsort
SELECT ALL + ( + + 53 ) FROM tab2 cor0
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT + COUNT( + + col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8183
SELECT + COUNT ( + + col0 ) FROM tab2
----
3

query I rowsort
SELECT - ( 91 ) FROM tab0
----
-91
-91
-91

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= + 66
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8186
SELECT ALL CAST( + - col0 AS SIGNED ) col2 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8186
SELECT ALL CAST ( + - col0 AS INTEGER ) col2 FROM tab0
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN 92 - 36 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 95 col0 FROM tab2
----
95
95
95

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8189
SELECT ALL col0 + 41 * col2 DIV - + CAST( col2 AS SIGNED ) + + col2 + - ( - col2 ) * col2 FROM tab1 AS cor0
----
3584
4742
9322

skipif mysql # not compatible
query I rowsort label-8189
SELECT ALL col0 + 41 * col2 / - + CAST ( col2 AS INTEGER ) + + col2 + - ( - col2 ) * col2 FROM tab1 AS cor0
----
3584
4742
9322

query II rowsort
SELECT 45 AS col2, col2 AS col0 FROM tab2
----
45
23
45
40
45
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8191
SELECT - - 72 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-8191
SELECT - - 72 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8192
SELECT DISTINCT col1 DIV + col2 + + col1 AS col1 FROM tab2 AS cor0
----
53
68
78

skipif mysql # not compatible
query I rowsort label-8192
SELECT DISTINCT col1 / + col2 + + col1 AS col1 FROM tab2 AS cor0
----
53
68
78

query I rowsort
SELECT ALL + ( + + col0 ) + + + 38 AS col0 FROM tab2 AS cor0
----
102
113
84

query II rowsort
SELECT ALL + col1 AS col2, + col0 / + - col2 * + 30 AS col1 FROM tab2 AS cor0 WHERE 46 * + col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT ALL + 80 * + 43 * - ( + - COUNT( ALL col1 ) ) + - 69 col0 FROM tab1 AS cor0
----
10251

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8195
SELECT ALL + 80 * + 43 * - ( + - COUNT ( ALL col1 ) ) + - 69 col0 FROM tab1 AS cor0
----
10251

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * - - col2 * col2 * - + ( + + ( - 82 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8197
SELECT DISTINCT * FROM tab0 cor0 WHERE + col2 + - col1 + + col0 <> 56 * 28 + - - col0 - col0 / + col1 + - ( + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8197
SELECT DISTINCT * FROM tab0 cor0 WHERE + col2 + - col1 + + col0 <> 56 * 28 + - - col0 - col0 / + col1 + - ( + - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8198
SELECT - 80 * + - CAST( NULL AS SIGNED ) / + 54 + 82 + + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8198
SELECT - 80 * + - CAST ( NULL AS INTEGER ) / + 54 + 82 + + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8199
SELECT DISTINCT COUNT( * ) * - - 34 + + 40 AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----
40

skipif mysql # not compatible
query I rowsort label-8199
SELECT DISTINCT COUNT ( * ) * - - 34 + + 40 AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----
40

query I rowsort
SELECT DISTINCT + 9 * - col2 * + col1 - - col0 AS col0 FROM tab2
----
-10511
-27656
-34899

query I rowsort
SELECT DISTINCT - col1 * - - col1 * - 92 AS col0 FROM tab1
----
18032
203228
2300

onlyif mysql # aggregate syntax: 
query I rowsort label-8202
SELECT - MAX( + + col1 ) * + 10 AS col0 FROM tab2
----
-770

skipif mysql # not compatible
query I rowsort label-8202
SELECT - MAX ( + + col1 ) * + 10 AS col0 FROM tab2
----
-770

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <= - 99
----

query I rowsort
SELECT col2 - col0 * col0 FROM tab2
----
-2093
-4056
-5567

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT COUNT( * ) - + - 47 FROM tab2 cor0
----
50

skipif mysql # not compatible
query I rowsort label-8205
SELECT COUNT ( * ) - + - 47 FROM tab2 cor0
----
50

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 / col0 * - 11 NOT BETWEEN NULL AND + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * - col2 IS NULL
----

query I rowsort
SELECT ALL - - ( 87 ) FROM tab0 AS cor0
----
87
87
87

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 * + col0 - - col2 IS NULL
----

query I rowsort
SELECT col1 FROM tab2 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT ALL 34 * col1 FROM tab1
----
1598
170
476

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, - 79 col1 FROM tab2
----
46
-79
64
-79
75
-79

query I rowsort
SELECT ALL - + 69 FROM tab2 AS cor0 WHERE NOT NULL <> col1
----

query I rowsort
SELECT - - 79 * 39 FROM tab2 AS cor0
----
3081
3081
3081

onlyif mysql # aggregate syntax: 
query I rowsort label-8215
SELECT ALL - SUM( ALL - 86 ) AS col0 FROM tab2 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-8215
SELECT ALL - SUM ( ALL - 86 ) AS col0 FROM tab2 AS cor0
----
258

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8216
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN CAST( + col0 AS SIGNED ) AND + + CAST( NULL AS DECIMAL ) * - col1 + - col1
----

skipif mysql # not compatible
query III rowsort label-8216
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN CAST ( + col0 AS INTEGER ) AND + + CAST ( NULL AS REAL ) * - col1 + - col1
----

query I rowsort
SELECT - + col0 FROM tab0 WHERE NOT NULL >= + col0 - - - col2
----

query I rowsort
SELECT DISTINCT col0 * - col0 FROM tab0 WHERE + - col2 <> col1
----
-225
-7569
-9409

query I rowsort
SELECT DISTINCT ( - col0 ) + + - 20 AS col0 FROM tab2
----
-66
-84
-95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8220
SELECT + CAST( - col0 AS SIGNED ), col2 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-8220
SELECT + CAST ( - col0 AS INTEGER ), col2 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 68 + + ( - col2 ) AS col1 FROM tab1
----
-28
0
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> 32 * col1
----

query I rowsort
SELECT + col2 * - ( 29 ) FROM tab1
----
-1711
-1972
-2784

query I rowsort
SELECT DISTINCT - 55 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8225
SELECT + CAST( - col0 AS SIGNED ) AS col2 FROM tab1 cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-8225
SELECT + CAST ( - col0 AS INTEGER ) AS col2 FROM tab1 cor0
----
-51
-85
-91

query I rowsort
SELECT ALL - - 93 * - 68 FROM tab0 AS cor0
----
-6324
-6324
-6324

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8227
SELECT DISTINCT + - 97 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8227
SELECT DISTINCT + - 97 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8228
SELECT DISTINCT - col1 * - CAST( + + col1 AS SIGNED ) FROM tab2 AS cor0
----
2601
4489
5929

skipif mysql # not compatible
query I rowsort label-8228
SELECT DISTINCT - col1 * - CAST ( + + col1 AS INTEGER ) FROM tab2 AS cor0
----
2601
4489
5929

onlyif mysql # DIV for integer division: 
query I rowsort label-8229
SELECT DISTINCT - col0 DIV - 40 AS col2 FROM tab1
----
1
2

skipif mysql # not compatible
query I rowsort label-8229
SELECT DISTINCT - col0 / - 40 AS col2 FROM tab1
----
1
2

query I rowsort
SELECT 35 + 49 * + + 66 AS col1 FROM tab2 WHERE ( NULL < - col1 )
----

query I rowsort
SELECT ALL col1 + + - col2 + + col0 * ( + col0 ) AS col2 FROM tab1
----
2519
7171
8260

query II rowsort
SELECT + 1 AS col2, + col0 + + + col1 * - + col0 * - + 62 FROM tab2 cor0
----
1
145498
1
305600
1
311625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8233
SELECT ALL + col1 + col0 / - CAST( NULL AS SIGNED ) * - col2 * - 85 / - + col0 + + 38 - - 14 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8233
SELECT ALL + col1 + col0 / - CAST ( NULL AS INTEGER ) * - col2 * - 85 / - + col0 + + 38 - - 14 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - col0 * + 51 * - col2 col0 FROM tab2 AS cor0
----
130520
221792
53935

query I rowsort
SELECT ALL - + 7 * - col1 + + - col0 FROM tab2 AS cor0
----
311
394
475

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8236
SELECT ALL + + col1 * - CAST( NULL AS SIGNED ) + - col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8236
SELECT ALL + + col1 * - CAST ( NULL AS INTEGER ) + - col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8237
SELECT ALL - ( - col1 ) - + - col0 DIV + col1 AS col0 FROM tab1 AS cor0
----
17
22
48

skipif mysql # not compatible
query I rowsort label-8237
SELECT ALL - ( - col1 ) - + - col0 / + col1 AS col0 FROM tab1 AS cor0
----
17
22
48

query I rowsort
SELECT + col0 AS col0 FROM tab1 AS cor0 WHERE - 39 / col1 * - 56 IN ( - ( col2 ) + + col2 * - + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) col1 FROM tab2 AS cor0 WHERE 59 IS NOT NULL
----
46
64
75

query I rowsort
SELECT DISTINCT + - 60 * - col1 + - col0 AS col1 FROM tab0 AS cor0
----
-37
1173
4845

query I rowsort
SELECT ( col1 ) * col1 + + col2 AS col2 FROM tab2
----
2624
4547
5969

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8242
SELECT - col0 * - + CAST( - + col1 AS SIGNED ) + - col2 AS col1 FROM tab0
----
-1262
-1837
-196

skipif mysql # not compatible
query I rowsort label-8242
SELECT - col0 * - + CAST ( - + col1 AS INTEGER ) + - col2 AS col1 FROM tab0
----
-1262
-1837
-196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + 77 ) * - - col0 col2 FROM tab0
----
-1155
-6699
-7469

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8244
SELECT DISTINCT + + CAST( col0 AS SIGNED ) FROM tab1 WHERE NOT - 48 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-8244
SELECT DISTINCT + + CAST ( col0 AS INTEGER ) FROM tab1 WHERE NOT - 48 BETWEEN NULL AND NULL
----

query II rowsort
SELECT - 67 * + col0, - col1 * col2 AS col0 FROM tab0 AS cor0
----
-1005
-3807
-5829
-210
-6499
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8246
SELECT - col2, col1 + - CAST( NULL AS DECIMAL ) + + col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 * + ( 84 ) AND ( - col0 )
----

skipif mysql # not compatible
query II rowsort label-8246
SELECT - col2, col1 + - CAST ( NULL AS REAL ) + + col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 * + ( 84 ) AND ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8247
SELECT ALL + - CAST( + - 53 AS SIGNED ) col0 FROM tab2 cor0
----
53
53
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8247
SELECT ALL + - CAST ( + - 53 AS INTEGER ) col0 FROM tab2 cor0
----
53
53
53

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < ( - - col2 )
----

query II rowsort
SELECT ALL col1 AS col1, - col2 * - - col0 * 58 FROM tab2 AS cor0
----
51
-61364
67
-252300
77
-148480

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 / col2 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 27 + + 13 <> + 70
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8253
SELECT ALL COUNT( * ) DIV - 80 AS col0, 47 FROM tab0 AS cor0
----
0
47

skipif mysql # not compatible
query II rowsort label-8253
SELECT ALL COUNT ( * ) / - 80 AS col0, 47 FROM tab0 AS cor0
----
0
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col2 * - - 15 col2 FROM tab0 AS cor0
----
-10575
-13050
-144045

query I rowsort
SELECT - + 13 + + 23 * - + col0 FROM tab0 AS cor0
----
-2014
-2244
-358

query I rowsort
SELECT - ( - - ( + + col1 ) ) + + - col0 FROM tab2 AS cor0
----
-141
-142
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8257
SELECT col2 * - 98 + CAST( col0 AS SIGNED ) col0 FROM tab0
----
-4591
-893
-9605

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8257
SELECT col2 * - 98 + CAST ( col0 AS INTEGER ) col0 FROM tab0
----
-4591
-893
-9605

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 91 col0 FROM tab1
----
44
77
86

query I rowsort
SELECT col1 + + ( + + col1 ) * + ( - col0 ) AS col2 FROM tab0
----
-1134
-1806
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8260
SELECT - CAST( NULL AS SIGNED ) + - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8260
SELECT - CAST ( NULL AS INTEGER ) + - col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8261
SELECT COUNT( * ) + CAST( NULL AS SIGNED ) col0, - COUNT( * ) AS col0 FROM tab1, tab1 AS cor0
----
NULL
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8261
SELECT COUNT ( * ) + CAST ( NULL AS INTEGER ) col0, - COUNT ( * ) AS col0 FROM tab1, tab1 AS cor0
----
NULL
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - - col0 * + + ( - - col1 ) + col0 + + + col1 col2 FROM tab0
----
18378
57201
9701

query II rowsort
SELECT - col0, - col0 + col2 AS col2 FROM tab1
----
-51
45
-85
-26
-91
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8264
SELECT + CAST( - SUM( ALL + - 51 ) AS SIGNED ) FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-8264
SELECT + CAST ( - SUM ( ALL + - 51 ) AS INTEGER ) FROM tab1 AS cor0
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-8265
SELECT 56 DIV + - col1 FROM tab1 AS cor0
----
-1
-11
-4

skipif mysql # not compatible
query I rowsort label-8265
SELECT 56 / + - col1 FROM tab1 AS cor0
----
-1
-11
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-8266
SELECT + col2 DIV 62 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8266
SELECT + col2 / 62 FROM tab0
----
0
0
1

query I rowsort
SELECT ( - col2 ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8268
SELECT - COUNT( * ) AS col2 FROM tab1 WHERE - CAST( NULL AS SIGNED ) + ( col0 ) / + CAST( - col1 AS DECIMAL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8268
SELECT - COUNT ( * ) AS col2 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) + ( col0 ) / + CAST ( - col1 AS REAL ) IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 31 col1 FROM tab2
----
31

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8271
SELECT col2 * CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8271
SELECT col2 * CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + ( col0 + col2 ) FROM tab0
----
184
293
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col2 ) + col2 col0 FROM tab1
----
118
136
192

query I rowsort
SELECT col2 FROM tab1 WHERE NOT col0 NOT IN ( + 35 )
----

query III rowsort
SELECT * FROM tab1 WHERE 75 NOT BETWEEN + ( col1 ) * - col2 - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT ALL + 20 * + MIN( col0 ) FROM tab0
----
300

skipif mysql # not compatible
query I rowsort label-8276
SELECT ALL + 20 * + MIN ( col0 ) FROM tab0
----
300

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 + - 7 < - 13
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + 63 col0 FROM tab1 WHERE NOT 97 + - ( col2 ) * col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8279
SELECT DISTINCT - col2 DIV + col0 col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8279
SELECT DISTINCT - col2 / + col0 col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8280
SELECT + 5 + - COUNT( * ) * 61 FROM tab1
----
-178

skipif mysql # not compatible
query I rowsort label-8280
SELECT + 5 + - COUNT ( * ) * 61 FROM tab1
----
-178

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 35 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8282
SELECT DISTINCT - col0 DIV 17 AS col2 FROM tab1
----
-3
-5

skipif mysql # not compatible
query I rowsort label-8282
SELECT DISTINCT - col0 / 17 AS col2 FROM tab1
----
-3
-5

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( 42 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8284
SELECT AVG ( ALL ( 13 ) ) FROM tab0 WHERE NOT NULL NOT IN ( + 52 / + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8284
SELECT AVG ( ALL ( 13 ) ) FROM tab0 WHERE NOT NULL NOT IN ( + 52 / + CAST ( NULL AS INTEGER ) )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 + + 23 < 87
----
51
14
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col0 ) = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8287
SELECT MIN( col1 ) AS col1 FROM tab0 WHERE ( - 32 ) IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-8287
SELECT MIN ( col1 ) AS col1 FROM tab0 WHERE ( - 32 ) IS NOT NULL
----
1

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 WHERE ( 83 ) IS NOT NULL
----
1
21
81

query I rowsort
SELECT ALL - col2 * + col2 + 16 AS col0 FROM tab0
----
-2193
-84
-9785

onlyif mysql # DIV for integer division: 
query I rowsort label-8290
SELECT - 68 DIV - col1 FROM tab1 AS cor0
----
1
13
4

skipif mysql # not compatible
query I rowsort label-8290
SELECT - 68 / - col1 FROM tab1 AS cor0
----
1
13
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8291
SELECT SUM( ALL + 78 ) AS col1 FROM tab0 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-8291
SELECT SUM ( ALL + 78 ) AS col1 FROM tab0 AS cor0
----
234

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 96 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 31 / + ( col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( - 21 ) FROM tab2 cor0
----
-21
-21
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT DISTINCT COUNT( + 25 ) * ( 87 ) AS col2 FROM tab1 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-8295
SELECT DISTINCT COUNT ( + 25 ) * ( 87 ) AS col2 FROM tab1 AS cor0
----
261

query I rowsort
SELECT + col0 * 57 FROM tab2 cor0
----
2622
3648
4275

onlyif mysql # aggregate syntax: 
query I rowsort label-8297
SELECT + + 39 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-8297
SELECT + + 39 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
117

onlyif mysql # DIV for integer division: 
query I rowsort label-8298
SELECT DISTINCT 61 DIV - col2 AS col1 FROM tab0 AS cor0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-8298
SELECT DISTINCT 61 / - col2 AS col1 FROM tab0 AS cor0
----
-1
-6
0

query I rowsort
SELECT DISTINCT - - col0 * 16 + 67 * col1 AS col0 FROM tab0 AS cor0
----
1619
2799
5667

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT COUNT( col1 ) * - ( - COUNT( DISTINCT col2 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT + col1 + + col0 BETWEEN col0 AND 23 + 10
----
9

skipif mysql # not compatible
query I rowsort label-8301
SELECT COUNT ( col1 ) * - ( - COUNT ( DISTINCT col2 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT + col1 + + col0 BETWEEN col0 AND 23 + 10
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT COUNT( DISTINCT + 94 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8302
SELECT COUNT ( DISTINCT + 94 ) AS col0 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8303
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col2 * CAST( 82 AS SIGNED ) ) <> - col1 * - col2
----

skipif mysql # not compatible
query III rowsort label-8303
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col2 * CAST ( 82 AS INTEGER ) ) <> - col1 * - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 14 col2 FROM tab1 WHERE + col0 + + ( col2 ) IS NOT NULL
----
14
14
14

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8305
SELECT 72 + - + col1 + - CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8305
SELECT 72 + - + col1 + - CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8306
SELECT - col1 + - col1 + col2 DIV col2 AS col1 FROM tab2
----
-101
-133
-153

skipif mysql # not compatible
query I rowsort label-8306
SELECT - col1 + - col1 + col2 / col2 AS col1 FROM tab2
----
-101
-133
-153

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN 73 + col1 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8308
SELECT - 13 + COUNT( * ) col0 FROM tab2 WHERE 25 >= NULL
----
-13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8308
SELECT - 13 + COUNT ( * ) col0 FROM tab2 WHERE 25 >= NULL
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT ALL COUNT( * ) + - 50 FROM tab2
----
-47

skipif mysql # not compatible
query I rowsort label-8309
SELECT ALL COUNT ( * ) + - 50 FROM tab2
----
-47

query I rowsort
SELECT 90 + + + col2 FROM tab2 AS cor0
----
113
130
148

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( col0 ) > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8312
SELECT DISTINCT 43 + + col1 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8312
SELECT DISTINCT 43 + + col1 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND ( - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= 2 * - col0
----

query III rowsort
SELECT * FROM tab2 WHERE + col0 / col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8315
SELECT COUNT( * ) * 15 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
135

skipif mysql # not compatible
query I rowsort label-8315
SELECT COUNT ( * ) * 15 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
135

query I rowsort
SELECT - col0 * - 12 FROM tab2
----
552
768
900

query I rowsort
SELECT + 99 - - col2 FROM tab0
----
109
146
198

query II rowsort
SELECT DISTINCT 73, 85 AS col1 FROM tab0 AS cor0
----
73
85

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 77 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8320
SELECT ALL 59 + + col0 DIV col0 col2 FROM tab0 AS cor0
----
60
60
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8320
SELECT ALL 59 + + col0 / col0 col2 FROM tab0 AS cor0
----
60
60
60

query I rowsort
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col0 AND 31
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT DISTINCT - col1 * - 87 FROM tab1 cor0
----
1218
4089
435

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE + col0 NOT IN ( + col0 + - col1 )
----
23
40
58

query I rowsort
SELECT col0 FROM tab2 WHERE NOT - col0 * 67 > ( NULL )
----

query I rowsort
SELECT - 32 * 74 FROM tab2
----
-2368
-2368
-2368

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - 48 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 WHERE NOT - - col1 / - 97 NOT IN ( + 71 )
----
0

skipif mysql # not compatible
query I rowsort label-8328
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 WHERE NOT - - col1 / - 97 NOT IN ( + 71 )
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - - ( + col1 ) NOT BETWEEN ( 16 ) AND - col1
----

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE NOT + col0 NOT BETWEEN 85 AND NULL
----

query I rowsort
SELECT ALL + + 92 * - 13 + - 80 + + ( col2 ) FROM tab1 AS cor0
----
-1180
-1208
-1217

onlyif mysql # DIV for integer division: 
query I rowsort label-8332
SELECT DISTINCT col1 DIV ( - - col0 ) + ( + col0 ) * - col0 AS col2 FROM tab0 cor0
----
-220
-7569
-9409

skipif mysql # not compatible
query I rowsort label-8332
SELECT DISTINCT col1 / ( - - col0 ) + ( + col0 ) * - col0 AS col2 FROM tab0 cor0
----
-220
-7569
-9409

query I rowsort
SELECT - ( 66 ) FROM tab0 AS cor0
----
-66
-66
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT DISTINCT + ( - + 71 ) FROM tab0
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-8336
SELECT DISTINCT col2 DIV col2 + col1 + col0 FROM tab1
----
139
66
91

skipif mysql # not compatible
query I rowsort label-8336
SELECT DISTINCT col2 / col2 + col1 + col0 FROM tab1
----
139
66
91

query I rowsort
SELECT + - 80 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query I rowsort
SELECT ALL 63 FROM tab2 AS cor0 WHERE col2 = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8339
SELECT DISTINCT + + col1 / + - CAST( NULL AS DECIMAL ) + + 86 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8339
SELECT DISTINCT + + col1 / + - CAST ( NULL AS REAL ) + + 86 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8340
SELECT DISTINCT 67 + - 4 + ( - + ( - - CAST( NULL AS SIGNED ) ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8340
SELECT DISTINCT 67 + - 4 + ( - + ( - - CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col0 + - 96 FROM tab2 AS cor0
----
-21
-32
-50

query I rowsort
SELECT ALL + 63 * + col2 FROM tab2 AS cor0
----
1449
2520
3654

query I rowsort
SELECT ALL - - ( - - 17 ) + + ( + col1 ) * - 74 AS col0 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
-1537
-57
-5977

query I rowsort
SELECT - + col1 + - 81 * - 75 + - ( col1 ) FROM tab2 AS cor0
----
5921
5941
5973

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT + 20 + - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-8345
SELECT + 20 + - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT DISTINCT - - SUM( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-8346
SELECT DISTINCT - - SUM ( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
227

query I rowsort
SELECT - 23 + col1 - - - 42 + - - col0 + col1 * + col1 FROM tab0 cor0
----
34
484
6592

query I rowsort
SELECT ALL + ( 34 ) * - + col1 AS col0 FROM tab0
----
-2754
-34
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT ALL COUNT( DISTINCT col0 ) * - + COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-8349
SELECT ALL COUNT ( DISTINCT col0 ) * - + COUNT ( * ) FROM tab0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8350
SELECT * FROM tab1 WHERE ( - CAST( + 70 AS SIGNED ) * - col2 - + col0 ) BETWEEN + col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8350
SELECT * FROM tab1 WHERE ( - CAST ( + 70 AS INTEGER ) * - col2 - + col0 ) BETWEEN + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT MAX( ALL + 62 ) FROM tab0
----
62

skipif mysql # not compatible
query I rowsort label-8351
SELECT MAX ( ALL + 62 ) FROM tab0
----
62

query I rowsort
SELECT DISTINCT ( + col1 ) * + + col0 AS col2 FROM tab2
----
2346
4928
5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col2, col1 * - col1 FROM tab1
----
-14
-196
-47
-2209
-5
-25

query I rowsort
SELECT - 31 AS col0 FROM tab0 AS cor0 WHERE NULL <= ( col1 + ( + + col1 ) )
----

query I rowsort
SELECT 51 - - col2 AS col2 FROM tab0 AS cor0
----
150
61
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8356
SELECT DISTINCT - + CAST( ( col1 ) AS SIGNED ) FROM tab2 WHERE NULL <> - - 65 + + col1 + + col2 * 47
----

skipif mysql # not compatible
query I rowsort label-8356
SELECT DISTINCT - + CAST ( ( col1 ) AS INTEGER ) FROM tab2 WHERE NULL <> - - 65 + + col1 + + col2 * 47
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8357
SELECT MIN( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 WHERE NOT ( ( NULL ) IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8357
SELECT MIN ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 WHERE NOT ( ( NULL ) IS NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8358
SELECT + col1 / + - CAST( NULL AS SIGNED ) / - + CAST( - + col0 AS DECIMAL ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8358
SELECT + col1 / + - CAST ( NULL AS INTEGER ) / - + CAST ( - + col0 AS REAL ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8359
SELECT ALL + CAST( NULL AS SIGNED ) / + - ( + COUNT( * ) ), + MIN( DISTINCT - col0 ) FROM tab2 AS cor0 WHERE col2 IS NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8359
SELECT ALL + CAST ( NULL AS INTEGER ) / + - ( + COUNT ( * ) ), + MIN ( DISTINCT - col0 ) FROM tab2 AS cor0 WHERE col2 IS NULL
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT + SUM( ALL + ( + 61 ) ) FROM tab1 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-8360
SELECT + SUM ( ALL + ( + 61 ) ) FROM tab1 AS cor0
----
183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col1 FROM tab1 AS cor0 WHERE + col1 * - col0 * 1 IS NOT NULL
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 38 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT 48 * col1 FROM tab1
----
2256
240
672

query I rowsort
SELECT - + 99 * col2 FROM tab1 AS cor0
----
-5841
-6732
-9504

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT - + MAX( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-8365
SELECT - + MAX ( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT ALL - + MIN( DISTINCT col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8366
SELECT ALL - + MIN ( DISTINCT col1 ) FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-8367
SELECT DISTINCT - - ( - MAX( - - col1 ) ) AS col0, - ( 68 ) col0 FROM tab0 AS cor0
----
-81
-68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8367
SELECT DISTINCT - - ( - MAX ( - - col1 ) ) AS col0, - ( 68 ) col0 FROM tab0 AS cor0
----
-81
-68

query II rowsort
SELECT ALL - col1, + col2 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

query II rowsort
SELECT DISTINCT col1 AS col2, col2 AS col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + - col2 + col2 ) IN ( ( + col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + 72 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

query I rowsort
SELECT DISTINCT + col0 + + 29 AS col0 FROM tab0
----
116
126
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8373
SELECT + MIN( ALL - ( 8 ) ) FROM tab1 AS cor0 WHERE col0 = - + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-8373
SELECT + MIN ( ALL - ( 8 ) ) FROM tab1 AS cor0 WHERE col0 = - + 99
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL <> - col0 + 84 + + 97 * + col1 + - 13 * - + col0 * col2
----

query I rowsort
SELECT ALL - - col2 * + - col2 + col2 AS col1 FROM tab0 AS cor0
----
-2162
-90
-9702

query I rowsort
SELECT + + ( + col1 ) + + col2 * - + col1 FROM tab1 AS cor0 WHERE 89 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8377
SELECT - - COUNT( * ) * + 53 + - - 70 * 45 AS col1 FROM tab1 cor0 WHERE 89 * 59 * + - 55 <= + ( 94 )
----
3309

skipif mysql # not compatible
query I rowsort label-8377
SELECT - - COUNT ( * ) * + 53 + - - 70 * 45 AS col1 FROM tab1 cor0 WHERE 89 * 59 * + - 55 <= + ( 94 )
----
3309

onlyif mysql # aggregate syntax: 
query I rowsort label-8378
SELECT DISTINCT - 22 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8378
SELECT DISTINCT - 22 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-66

query I rowsort
SELECT ALL col0 * - 11 AS col0 FROM tab2
----
-506
-704
-825

query I rowsort
SELECT DISTINCT 67 * + col0 AS col1 FROM tab2
----
3082
4288
5025

query I rowsort
SELECT DISTINCT ( + 53 ) * col2 AS col0 FROM tab1
----
3127
3604
5088

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8382
SELECT ALL - CAST( + CAST( + + col1 AS SIGNED ) AS SIGNED ) * + col2 * 51 + - 77 FROM tab2
----
-157157
-198263
-59900

skipif mysql # not compatible
query I rowsort label-8382
SELECT ALL - CAST ( + CAST ( + + col1 AS INTEGER ) AS INTEGER ) * + col2 * 51 + - 77 FROM tab2
----
-157157
-198263
-59900

query I rowsort
SELECT DISTINCT + col1 * + 46 AS col1 FROM tab1
----
2162
230
644

onlyif mysql # DIV for integer division: 
query I rowsort label-8384
SELECT DISTINCT + 13 DIV - col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8384
SELECT DISTINCT + 13 / - col0 FROM tab0
----
0

query I rowsort
SELECT + col2 * - - col2 + col2 AS col0 FROM tab1
----
3540
4692
9312

query I rowsort
SELECT ALL - ( - + col1 ) + + 64 AS col1 FROM tab1 AS cor0
----
111
69
78

query I rowsort
SELECT DISTINCT col2 - + 14 FROM tab0 AS cor0
----
-4
33
85

query I rowsort
SELECT DISTINCT + col1 + - col2 * - 67 AS col2 FROM tab2 AS cor0
----
1592
2757
3953

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8389
SELECT DISTINCT - col0 * - col0 + + 58 * col1 - CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8389
SELECT DISTINCT - col0 * - col0 + + 58 * col1 - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL + col2 * + col1 - + + col2 FROM tab0
----
0
200
3760

onlyif mysql # aggregate syntax: 
query II rowsort label-8391
SELECT DISTINCT 37 AS col2, - COUNT( * ) FROM tab1
----
37
-3

skipif mysql # not compatible
query II rowsort label-8391
SELECT DISTINCT 37 AS col2, - COUNT ( * ) FROM tab1
----
37
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT DISTINCT + COUNT( DISTINCT - - col0 ) FROM tab1 WHERE NOT + col0 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-8392
SELECT DISTINCT + COUNT ( DISTINCT - - col0 ) FROM tab1 WHERE NOT + col0 <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8393
SELECT ALL + COUNT( * ) FROM tab2 WHERE - 23 + 47 - + 91 * 18 NOT IN ( col0 )
----
3

skipif mysql # not compatible
query I rowsort label-8393
SELECT ALL + COUNT ( * ) FROM tab2 WHERE - 23 + 47 - + 91 * 18 NOT IN ( col0 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8394
SELECT + - CAST( - AVG ( + - col2 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-8394
SELECT + - CAST ( - AVG ( + - col2 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-74

query II rowsort
SELECT - col2 AS col1, + col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

query I rowsort
SELECT DISTINCT ( 61 ) AS col1 FROM tab2 AS cor0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT ALL + SUM( ALL + - 47 ) AS col1 FROM tab0 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-8397
SELECT ALL + SUM ( ALL + - 47 ) AS col1 FROM tab0 AS cor0
----
-141

onlyif mysql # DIV for integer division: 
query I rowsort label-8398
SELECT - - ( - 69 ) DIV + col0 AS col1 FROM tab2 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8398
SELECT - - ( - 69 ) / + col0 AS col1 FROM tab2 cor0
----
-1
-1
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 / 7 * - col2 NOT IN ( - 75 + + - 11, col1 / - col2 + - + 10 + - + 26 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8400
SELECT + col1 col1, - CAST( - 16 AS SIGNED ) + col2 AS col0 FROM tab2 AS cor0
----
51
39
67
74
77
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8400
SELECT + col1 col1, - CAST ( - 16 AS INTEGER ) + col2 AS col0 FROM tab2 AS cor0
----
51
39
67
74
77
56

query II rowsort
SELECT ALL - - 85 * ( - col1 ) AS col0, - ( col0 ) * - 45 - + - col0 + col0 AS col1 FROM tab2 AS cor0 WHERE NOT - 67 - + col0 IS NULL
----
-4335
2162
-5695
3525
-6545
3008

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8402
SELECT ALL * FROM tab1 WHERE NOT + - col1 IN ( + col0 * col2 + + CAST( - col0 AS SIGNED ) + - - CAST( + col2 AS DECIMAL ) * + + 73 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8402
SELECT ALL * FROM tab1 WHERE NOT + - col1 IN ( + col0 * col2 + + CAST ( - col0 AS INTEGER ) + - - CAST ( + col2 AS REAL ) * + + 73 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8403
SELECT ALL + - CAST( - 26 AS SIGNED ) FROM tab2 AS cor0
----
26
26
26

skipif mysql # not compatible
query I rowsort label-8403
SELECT ALL + - CAST ( - 26 AS INTEGER ) FROM tab2 AS cor0
----
26
26
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8404
SELECT + 25 / + CAST( NULL AS SIGNED ) / + MIN( DISTINCT ( + + col0 ) ) + - MAX( - - col1 ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8404
SELECT + 25 / + CAST ( NULL AS INTEGER ) / + MIN ( DISTINCT ( + + col0 ) ) + - MAX ( - - col1 ) FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8405
SELECT ALL + + CAST( - - 57 AS SIGNED ) FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

skipif mysql # not compatible
query I rowsort label-8405
SELECT ALL + + CAST ( - - 57 AS INTEGER ) FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query III rowsort
SELECT * FROM tab1 WHERE NOT - 75 IS NOT NULL AND NOT NULL > col0
----

query I rowsort
SELECT DISTINCT - - 96 + - + 93 AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8408
SELECT ALL - 28 + + - CAST( 55 AS SIGNED ) FROM tab1 AS cor0
----
-83
-83
-83

skipif mysql # not compatible
query I rowsort label-8408
SELECT ALL - 28 + + - CAST ( 55 AS INTEGER ) FROM tab1 AS cor0
----
-83
-83
-83

query I rowsort
SELECT DISTINCT - - col0 - + col0 FROM tab2 AS cor0 WHERE NOT ( NULL IN ( + col1, col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8410
SELECT ALL ( - CAST( NULL AS SIGNED ) ) + + col0 * + col2 + + col2 col2 FROM tab1 AS cor0 WHERE NOT - 30 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8410
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) + + col0 * + col2 + + col2 col2 FROM tab1 AS cor0 WHERE NOT - 30 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8411
SELECT - + 55 + + - CAST( NULL AS SIGNED ) * COUNT( * ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8411
SELECT - + 55 + + - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT ALL COUNT( * ) * + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8412
SELECT ALL COUNT ( * ) * + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8413
SELECT * FROM tab1 WHERE - CAST( NULL AS SIGNED ) + - 31 - - col2 - - 7 - + - col1 * col1 * + 30 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8413
SELECT * FROM tab1 WHERE - CAST ( NULL AS INTEGER ) + - 31 - - col2 - - 7 - + - col1 * col1 * + 30 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 * + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8415
SELECT - ( + 80 ) AS col1, + col0 * + - CAST( NULL AS SIGNED ) + - - 67 AS col1 FROM tab1
----
-80
NULL
-80
NULL
-80
NULL

skipif mysql # not compatible
query II rowsort label-8415
SELECT - ( + 80 ) AS col1, + col0 * + - CAST ( NULL AS INTEGER ) + - - 67 AS col1 FROM tab1
----
-80
NULL
-80
NULL
-80
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8416
SELECT ALL * FROM tab2 WHERE NULL IS NOT NULL OR NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8416
SELECT ALL * FROM tab2 WHERE NULL IS NOT NULL OR NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 * + + 71 - 15 + - - 38 + + 85 * + ( - col2 ) FROM tab0 WHERE NOT + + col0 IS NULL
----
-117
-1363
-635

query I rowsort
SELECT ALL - 3 + - 62 - + - ( col1 ) FROM tab2 AS cor0
----
-14
12
2

query I rowsort
SELECT - - 64 - - + col1 AS col1 FROM tab2 AS cor0
----
115
131
141

query II rowsort
SELECT + - col2 - 33, + col0 - + 45 AS col1 FROM tab0 AS cor0
----
-132
52
-43
42
-80
-30

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE ( NULL ) IN ( - col1, - 34 )
----

query II rowsort
SELECT DISTINCT 32 AS col0, - col2 AS col2 FROM tab2 cor0 WHERE NOT col2 + - - 85 IS NULL
----
32
-23
32
-40
32
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT ALL - 26 * + COUNT( * ) + + + 26 - + 6 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-214

skipif mysql # not compatible
query I rowsort label-8423
SELECT ALL - 26 * + COUNT ( * ) + + + 26 - + 6 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-214

query I rowsort
SELECT + 48 FROM tab1 AS cor0 WHERE NOT NULL < col0
----

query I rowsort
SELECT - 0 * - + 74 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8426
SELECT ALL col1 * 99 DIV - - col1 AS col1, col0 AS col2 FROM tab1 AS cor0
----
99
51
99
85
99
91

skipif mysql # not compatible
query II rowsort label-8426
SELECT ALL col1 * 99 / - - col1 AS col1, col0 AS col2 FROM tab1 AS cor0
----
99
51
99
85
99
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT ALL - - COUNT( * ) * + 85 AS col0 FROM tab1 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-8427
SELECT ALL - - COUNT ( * ) * + 85 AS col0 FROM tab1 AS cor0
----
255

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 95 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 56 * + col1 FROM tab2 cor0
----
2856
3752
4312

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 20 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col2 ) * - col0 + col1 > NULL
----

query II rowsort
SELECT DISTINCT + 6, col1 AS col2 FROM tab0
----
6
1
6
21
6
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8434
SELECT COUNT( * ) * - - 97 AS col1 FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-8434
SELECT COUNT ( * ) * - - 97 AS col1 FROM tab0
----
291

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT ALL COUNT( ALL ( + ( - col1 ) ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8435
SELECT ALL COUNT ( ALL ( + ( - col1 ) ) ) AS col1 FROM tab2
----
3

query I rowsort
SELECT DISTINCT + + 69 + col1 AS col1 FROM tab1 WHERE NOT - col1 + + col2 IS NULL
----
116
74
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT DISTINCT + 2 * COUNT( * ) + + COUNT( * ) AS col0 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-8437
SELECT DISTINCT + 2 * COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab2
----
9

query II rowsort
SELECT + col1, 79 FROM tab0
----
1
79
21
79
81
79

query II rowsort
SELECT + ( col0 ) AS col1, + col0 FROM tab2
----
46
46
64
64
75
75

query I rowsort
SELECT DISTINCT - 35 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 + + ( + col1 ), + col0 col0 FROM tab2 AS cor0
----
28
46
37
64
9
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT ALL + ( 83 ) - + - COUNT( * ) FROM tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-8442
SELECT ALL + ( 83 ) - + - COUNT ( * ) FROM tab1 AS cor0
----
86

query I rowsort
SELECT ALL + 27 + - ( + col0 ) * 49 AS col1 FROM tab1 AS cor0
----
-2472
-4138
-4432

query I rowsort
SELECT + col0 AS col2 FROM tab1 AS cor0 WHERE + ( - col0 ) IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT DISTINCT + 59 * - COUNT( * ) - + 83 FROM tab2 AS cor0
----
-260

skipif mysql # not compatible
query I rowsort label-8445
SELECT DISTINCT + 59 * - COUNT ( * ) - + 83 FROM tab2 AS cor0
----
-260

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, - col0 col2 FROM tab0 WHERE ( - 35 ) IS NOT NULL
----
15
-15
87
-87
97
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8447
SELECT * FROM tab2 WHERE ( NULL NOT BETWEEN col2 AND - - col1 * + CAST( ( - + col1 ) AS SIGNED ) * + 57 - + col0 * col0 )
----

skipif mysql # not compatible
query III rowsort label-8447
SELECT * FROM tab2 WHERE ( NULL NOT BETWEEN col2 AND - - col1 * + CAST ( ( - + col1 ) AS INTEGER ) * + 57 - + col0 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8448
SELECT * FROM tab2 WHERE + - CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-8448
SELECT * FROM tab2 WHERE + - CAST ( NULL AS INTEGER ) <> NULL
----

query I rowsort
SELECT + col2 * + col1 * + + col2 + + 92 AS col2 FROM tab0
----
179021
2192
9893

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + ( - 44 ) + + - 48 IS NOT NULL
----

query I rowsort
SELECT 2 + + ( + 54 ) FROM tab2
----
56
56
56

onlyif mysql # DIV for integer division: 
query II rowsort label-8452
SELECT + 94 + - + 43 DIV + 57, col1 col1 FROM tab0
----
94
1
94
21
94
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8452
SELECT + 94 + - + 43 / + 57, col1 col1 FROM tab0
----
94
1
94
21
94
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8453
SELECT CAST( + COUNT( * ) AS SIGNED ) + - SUM( - col1 ) col1 FROM tab2
----
198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8453
SELECT CAST ( + COUNT ( * ) AS INTEGER ) + - SUM ( - col1 ) col1 FROM tab2
----
198

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * + ( + 53 ) col1, + 84 FROM tab2 AS cor0
----
2438
84
3392
84
3975
84

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 / col2 * + col2 - - - 27 - + col1 + + col2 * + + 4 * - 64 NOT IN ( - - col1 * + 38 - - col1, col1, - 12 )
----

query I rowsort
SELECT ALL + 32 * 99 * - col0 AS col2 FROM tab1 AS cor0
----
-161568
-269280
-288288

query II rowsort
SELECT ALL col2 * col2 AS col2, - col2 * - 9 FROM tab0 AS cor0
----
100
90
2209
423
9801
891

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8458
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8458
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS REAL ) IS NULL
----

query I rowsort
SELECT 75 + + col2 AS col0 FROM tab0
----
122
174
85

query I rowsort
SELECT 83 * + - 50 FROM tab2
----
-4150
-4150
-4150

query I rowsort
SELECT DISTINCT 32 + + 7 * ( - col1 ) AS col0 FROM tab1
----
-297
-3
-66

query I rowsort
SELECT + + 37 FROM tab1 WHERE NOT + + 65 > NULL
----

query I rowsort
SELECT ALL col1 * + + 82 * + col2 FROM tab0 WHERE - + 6 IS NOT NULL
----
17220
312174
8118

onlyif mysql # aggregate syntax: 
query I rowsort label-8464
SELECT ALL + - 38 + - + 91 * + + COUNT( * ) AS col0 FROM tab0 cor0
----
-311

skipif mysql # not compatible
query I rowsort label-8464
SELECT ALL + - 38 + - + 91 * + + COUNT ( * ) AS col0 FROM tab0 cor0
----
-311

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE + 48 - col1 IS NOT NULL
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8466
SELECT ALL + ( - - CAST( + COUNT( * ) AS SIGNED ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8466
SELECT ALL + ( - - CAST ( + COUNT ( * ) AS INTEGER ) ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 + + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8468
SELECT MAX( ALL 52 ) + 36 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
88

skipif mysql # not compatible
query I rowsort label-8468
SELECT MAX ( ALL 52 ) + 36 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
88

query III rowsort
SELECT * FROM tab1 WHERE + - col1 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 1 * - col1 col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8471
SELECT DISTINCT - 64 - - - COUNT( * ) FROM tab0 AS cor0 WHERE + col1 BETWEEN NULL AND - 1 + - + col1
----
-64

skipif mysql # not compatible
query I rowsort label-8471
SELECT DISTINCT - 64 - - - COUNT ( * ) FROM tab0 AS cor0 WHERE + col1 BETWEEN NULL AND - 1 + - + col1
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8472
SELECT + + CAST( NULL AS SIGNED ) + + col0 * + 59 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8472
SELECT + + CAST ( NULL AS INTEGER ) + + col0 * + 59 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col1 - - col2 * 75 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
3444
729
7424

query I rowsort
SELECT 29 + col1 FROM tab1 AS cor0
----
34
43
76

query I rowsort
SELECT DISTINCT + + col0 + ( - 78 ) AS col0 FROM tab0 cor0
----
-63
19
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT DISTINCT - COUNT( * ) - 60 FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-8476
SELECT DISTINCT - COUNT ( * ) - 60 FROM tab2 AS cor0
----
-63

query I rowsort
SELECT - + 69 + - col2 AS col0 FROM tab1 AS cor0
----
-128
-137
-165

onlyif mysql # DIV for integer division: 
query I rowsort label-8478
SELECT ALL - - col0 - - 64 DIV - col1 FROM tab1 AS cor0
----
47
73
90

skipif mysql # not compatible
query I rowsort label-8478
SELECT ALL - - col0 - - 64 / - col1 FROM tab1 AS cor0
----
47
73
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8479
SELECT + col1 + + - col0 + - + col1 + - CAST( - - col2 AS SIGNED ) FROM tab0 AS cor0
----
-196
-62
-97

skipif mysql # not compatible
query I rowsort label-8479
SELECT + col1 + + - col0 + - + col1 + - CAST ( - - col2 AS INTEGER ) FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT DISTINCT + col2 + - + col2 + - - ( + col1 ) AS col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT + + 15 * + - col0 FROM tab2 AS cor0
----
-1125
-690
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-8482
SELECT + + COUNT( ALL col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8482
SELECT + + COUNT ( ALL col1 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8483
SELECT DISTINCT + 69 * COUNT( * ) * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8483
SELECT DISTINCT + 69 * COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8484
SELECT MAX( col0 ) DIV - MAX( + + col1 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8484
SELECT MAX ( col0 ) / - MAX ( + + col1 ) AS col1 FROM tab2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8485
SELECT DISTINCT + col0 * - - CAST( NULL AS DECIMAL ) / + + 61 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8485
SELECT DISTINCT + col0 * - - CAST ( NULL AS REAL ) / + + 61 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 82 col2 FROM tab1 AS cor0
----
-82
-82
-82

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NOT + 46 NOT BETWEEN + col0 * - col1 * + col2 * + ( col0 ) AND + col2
----
14
47
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8488
SELECT MIN( col2 ) DIV COUNT( * ) AS col1 FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-8488
SELECT MIN ( col2 ) / COUNT ( * ) AS col1 FROM tab2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT MIN( col0 ) AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8489
SELECT MIN ( col0 ) AS col0 FROM tab1 AS cor0
----
51

query I rowsort
SELECT - col2 * - 76 AS col2 FROM tab0 AS cor0
----
3572
7524
760

onlyif mysql # aggregate syntax: 
query II rowsort label-8491
SELECT ALL + 88, - COUNT( * ) AS col0 FROM tab1 AS cor0
----
88
-3

skipif mysql # not compatible
query II rowsort label-8491
SELECT ALL + 88, - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
88
-3

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - ( 74 ) IS NOT NULL
----

query II rowsort
SELECT ALL + col1, + col1 AS col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT DISTINCT - col0 / + col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8495
SELECT 14 * - COUNT( * ) AS col2, - COUNT( * ) AS col0 FROM tab1
----
-42
-3

skipif mysql # not compatible
query II rowsort label-8495
SELECT 14 * - COUNT ( * ) AS col2, - COUNT ( * ) AS col0 FROM tab1
----
-42
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT + col1 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT ALL - 52 * COUNT( * ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-8497
SELECT ALL - 52 * COUNT ( * ) FROM tab0
----
-156

query I rowsort
SELECT DISTINCT + col1 * col1 + + + 91 FROM tab0
----
532
6652
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT ALL + 25 + + 42 + - 80 + - - MIN( col1 ) AS col0 FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-8499
SELECT ALL + 25 + + 42 + - 80 + - - MIN ( col1 ) AS col0 FROM tab2
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8500
SELECT ALL * FROM tab2 WHERE ( - CAST( + + 89 AS SIGNED ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8500
SELECT ALL * FROM tab2 WHERE ( - CAST ( + + 89 AS INTEGER ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 * - 52 + + + col1 FROM tab1
----
-2397
-255
-714

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col0 = - 49
----

query I rowsort
SELECT DISTINCT - + 16 + + - col2 AS col1 FROM tab0 AS cor0
----
-115
-26
-63

query I rowsort
SELECT + + 32 + + 42 AS col0 FROM tab1 AS cor0
----
74
74
74

query I rowsort
SELECT + - col1 + + 13 FROM tab2 AS cor0
----
-38
-54
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8506
SELECT ALL COUNT( DISTINCT + + ( + + col0 ) ) - - - 92 + + - SUM( 9 ) DIV SUM( DISTINCT - 25 ) FROM tab0
----
-88

skipif mysql # not compatible
query I rowsort label-8506
SELECT ALL COUNT ( DISTINCT + + ( + + col0 ) ) - - - 92 + + - SUM ( 9 ) / SUM ( DISTINCT - 25 ) FROM tab0
----
-88

query I rowsort
SELECT ALL + col1 * + 20 AS col1 FROM tab1
----
100
280
940

onlyif mysql # aggregate syntax: 
query I rowsort label-8508
SELECT DISTINCT - 52 * - COUNT( * ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-8508
SELECT DISTINCT - 52 * - COUNT ( * ) FROM tab0
----
156

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8509
SELECT + CAST( col1 AS SIGNED ) - - col1 DIV - ( col1 ) + + col2 FROM tab1 AS cor0
----
109
114
63

skipif mysql # not compatible
query I rowsort label-8509
SELECT + CAST ( col1 AS INTEGER ) - - col1 / - ( col1 ) + + col2 FROM tab1 AS cor0
----
109
114
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8510
SELECT DISTINCT - 41 + + COUNT( * ) FROM tab2 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-8510
SELECT DISTINCT - 41 + + COUNT ( * ) FROM tab2 AS cor0
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8511
SELECT ALL * FROM tab0 AS cor0 WHERE 84 IN ( + col0, col1, + col0, - CAST( NULL AS SIGNED ) + + 46 * + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ), + - col0 + - 66, - col1 )
----

skipif mysql # not compatible
query III rowsort label-8511
SELECT ALL * FROM tab0 AS cor0 WHERE 84 IN ( + col0, col1, + col0, - CAST ( NULL AS INTEGER ) + + 46 * + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ), + - col0 + - 66, - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8512
SELECT - col2 - - 90 + - col0 + - col2 DIV col2 * + - col1 - - - 87 FROM tab1 AS cor0
----
-109
-130
-136

skipif mysql # not compatible
query I rowsort label-8512
SELECT - col2 - - 90 + - col0 + - col2 / col2 * + - col1 - - - 87 FROM tab1 AS cor0
----
-109
-130
-136

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 1 NOT BETWEEN NULL AND + + col1 + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col1 * col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT MIN( + col2 ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-8515
SELECT MIN ( + col2 ) AS col1 FROM tab2
----
23

query I rowsort
SELECT col0 * - col0 FROM tab0 WHERE NOT NULL BETWEEN - col0 AND - col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col0 < - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 48 FROM tab2 WHERE NOT NULL BETWEEN NULL AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 18 AS col1, + col0 - - 67 + - col0 col2 FROM tab1
----
18
67
18
67
18
67

onlyif mysql # aggregate syntax: 
query II rowsort label-8520
SELECT COUNT( * ) AS col0, 20 AS col1 FROM tab0
----
3
20

skipif mysql # not compatible
query II rowsort label-8520
SELECT COUNT ( * ) AS col0, 20 AS col1 FROM tab0
----
3
20

onlyif mysql # DIV for integer division: 
query I rowsort label-8521
SELECT - col2 DIV + + 17 FROM tab1
----
-3
-4
-5

skipif mysql # not compatible
query I rowsort label-8521
SELECT - col2 / + + 17 FROM tab1
----
-3
-4
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8522
SELECT * FROM tab2 WHERE NOT - CAST( + 78 AS SIGNED ) BETWEEN - col2 AND - col2 * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8522
SELECT * FROM tab2 WHERE NOT - CAST ( + 78 AS INTEGER ) BETWEEN - col2 AND - col2 * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT DISTINCT SUM( + 99 ) AS col0 FROM tab1
----
297

skipif mysql # not compatible
query I rowsort label-8523
SELECT DISTINCT SUM ( + 99 ) AS col0 FROM tab1
----
297

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT + 22 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8525
SELECT + 27 * COUNT( * ) + COUNT( * ) DIV - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
242

skipif mysql # not compatible
query I rowsort label-8525
SELECT + 27 * COUNT ( * ) + COUNT ( * ) / - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
242

query II rowsort
SELECT DISTINCT col0 + - + col0 AS col1, + 39 AS col1 FROM tab0 cor0
----
0
39

query II rowsort
SELECT + col2 + - col1 AS col1, - col2 AS col2 FROM tab1 cor0
----
21
-68
54
-59
82
-96

query I rowsort
SELECT - + 4 + + 4 AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT - col0 + - - 53 FROM tab1 AS cor0
----
-32
-38
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8530
SELECT + CAST( NULL AS SIGNED ) + MIN( ALL - + 76 ) AS col1, + 35 FROM tab0
----
NULL
35

skipif mysql # not compatible
query II rowsort label-8530
SELECT + CAST ( NULL AS INTEGER ) + MIN ( ALL - + 76 ) AS col1, + 35 FROM tab0
----
NULL
35

query I rowsort
SELECT DISTINCT - 91 * col1 * col2 AS col2 FROM tab0
----
-19110
-346437
-9009

query I rowsort
SELECT DISTINCT - ( - - ( + + 13 ) ) FROM tab2 WHERE NOT + + 69 / - + 86 IN ( - col0, col2 + col0 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8533
SELECT - SUM( 64 ) + - - COUNT( * ) - + 38 * + COUNT( * ) * 44 + - 12 AS col0 FROM tab1
----
-5217

skipif mysql # not compatible
query I rowsort label-8533
SELECT - SUM ( 64 ) + - - COUNT ( * ) - + 38 * + COUNT ( * ) * 44 + - 12 AS col0 FROM tab1
----
-5217

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 + + col1 col0 FROM tab2
----
101
111
85

query I rowsort
SELECT + col2 + - - col2 FROM tab0
----
198
20
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8536
SELECT ( + 24 ) DIV - COUNT( * ) AS col2 FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-8536
SELECT ( + 24 ) / - COUNT ( * ) AS col2 FROM tab0
----
-8

query I rowsort
SELECT DISTINCT + col0 + + 36 FROM tab0
----
123
133
51

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( - 74 + + 59, - col1 / + 2 )
----

query I rowsort
SELECT ALL + - col1 * + col2 * + + col1 + + 15 AS col2 FROM tab2 AS cor0
----
-237145
-260347
-59808

query I rowsort
SELECT ALL col2 - col2 * 12 AS col0 FROM tab2 AS cor0
----
-253
-440
-638

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8541
SELECT DISTINCT col0 + - CAST( - 13 AS SIGNED ) AS col0 FROM tab1
----
104
64
98

skipif mysql # not compatible
query I rowsort label-8541
SELECT DISTINCT col0 + - CAST ( - 13 AS INTEGER ) AS col0 FROM tab1
----
104
64
98

query I rowsort
SELECT ALL - + col2 FROM tab1 WHERE NOT col0 * + + 61 * + ( + col1 ) + + col0 + 87 * - + col1 * 27 - + col2 IS NULL
----
-59
-68
-96

query I rowsort
SELECT DISTINCT - 34 + - - col2 AS col2 FROM tab2 AS cor0
----
-11
24
6

query I rowsort
SELECT ALL - 19 FROM tab2 AS cor0 WHERE ( NULL ) < ( - 65 + + + 85 )
----

query I rowsort
SELECT col0 * + + col1 AS col0 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT ( - - col1 ) FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * col0 < col2 + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 61 * - col2 + col1 + - col1 + ( + 62 ) col1 FROM tab1 AS cor0
----
3661
4210
5918

onlyif mysql # aggregate syntax: 
query I rowsort label-8549
SELECT - 86 * - - COUNT( * ) * + - 18 AS col1 FROM tab2 AS cor0
----
4644

skipif mysql # not compatible
query I rowsort label-8549
SELECT - 86 * - - COUNT ( * ) * + - 18 AS col1 FROM tab2 AS cor0
----
4644

query I rowsort
SELECT ALL - col0 * - 4 FROM tab2 AS cor0
----
184
256
300

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT COUNT( ALL - - 85 ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8551
SELECT COUNT ( ALL - - 85 ) col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT col0 * col1 * + col0 AS col0 FROM tab1 WHERE NOT ( 41 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8553
SELECT DISTINCT 64 DIV + - 17 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8553
SELECT DISTINCT 64 / + - 17 FROM tab2
----
-3

query II rowsort
SELECT + col1 AS col0, - 12 * - + col2 + + + 37 AS col1 FROM tab1 AS cor0
----
14
1189
47
853
5
745

query I rowsort
SELECT 90 * ( + 18 ) AS col0 FROM tab0 AS cor0
----
1620
1620
1620

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( + col1 ) + + 87 IS NULL
----

query I rowsort
SELECT ALL - 63 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query II rowsort
SELECT + + col1, + col2 + - 71 FROM tab0 AS cor0
----
1
28
21
-61
81
-24

query I rowsort
SELECT DISTINCT - + 7 + col0 AS col0 FROM tab2 AS cor0
----
39
57
68

query I rowsort
SELECT - 88 * - col1 * + col2 * + + 11 AS col1 FROM tab0 AS cor0
----
203280
3685176
95832

onlyif mysql # aggregate syntax: 
query I rowsort label-8561
SELECT ALL - COUNT( DISTINCT - 73 ) FROM tab0 AS cor0 WHERE NOT + col1 IN ( + col2, ( - col0 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8561
SELECT ALL - COUNT ( DISTINCT - 73 ) FROM tab0 AS cor0 WHERE NOT + col1 IN ( + col2, ( - col0 ) )
----
-1

query II rowsort
SELECT - col1 AS col1, - 93 AS col1 FROM tab0 cor0
----
-1
-93
-21
-93
-81
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT DISTINCT - + COUNT( ALL col2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8563
SELECT DISTINCT - + COUNT ( ALL col2 ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 / + + col1 <= ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - 95 AS col2 FROM tab2 AS cor0 WHERE NOT ( ( - col2 + + ( - - 24 ) / + 18 IS NOT NULL ) )
----

query II rowsort
SELECT DISTINCT col0 AS col2, - col2 + - col1 * col2 AS col1 FROM tab0 cor0
----
15
-3854
87
-220
97
-198

query I rowsort
SELECT ALL + + ( + 40 ) AS col1 FROM tab2 AS cor0
----
40
40
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8568
SELECT - - MAX( DISTINCT - col1 ) DIV - 84 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8568
SELECT - - MAX ( DISTINCT - col1 ) / - 84 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL 49 AS col2 FROM tab2 cor0
----
49
49
49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( + - col1, col0, + - col0, + 72 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8572
SELECT ALL COUNT( * ) * + 82 FROM tab0
----
246

skipif mysql # not compatible
query I rowsort label-8572
SELECT ALL COUNT ( * ) * + 82 FROM tab0
----
246

onlyif mysql # aggregate syntax: 
query I rowsort label-8573
SELECT + MAX( col1 ) + + 18 AS col2 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-8573
SELECT + MAX ( col1 ) + + 18 AS col2 FROM tab0
----
99

query I rowsort
SELECT - 36 + - col1 + + 40 FROM tab1
----
-1
-10
-43

query I rowsort
SELECT DISTINCT + ( + col2 ) + 30 FROM tab2
----
53
70
88

query I rowsort
SELECT DISTINCT 26 FROM tab1 WHERE NULL IS NULL
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-8577
SELECT 68 DIV + + col2 + - - 66 * + col0 AS col2 FROM tab2
----
3038
4225
4951

skipif mysql # not compatible
query I rowsort label-8577
SELECT 68 / + + col2 + - - 66 * + col0 AS col2 FROM tab2
----
3038
4225
4951

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8578
SELECT + CAST( NULL AS SIGNED ) + - 94, COUNT( * ) AS col2 FROM tab1
----
NULL
3

skipif mysql # not compatible
query II rowsort label-8578
SELECT + CAST ( NULL AS INTEGER ) + - 94, COUNT ( * ) AS col2 FROM tab1
----
NULL
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN + col2 * - + 76 + + col0 * + col1 / + col2 AND + 25 * col1
----

query I rowsort
SELECT DISTINCT 82 + - 17 AS col1 FROM tab1
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8581
SELECT - 22 + CAST( MIN( ALL + - col1 ) AS SIGNED ) + + - 8 * + COUNT( + col2 ) FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-8581
SELECT - 22 + CAST ( MIN ( ALL + - col1 ) AS INTEGER ) + + - 8 * + COUNT ( + col2 ) FROM tab1
----
-93

query II rowsort
SELECT - col2 + - col1 AS col2, col2 FROM tab0 AS cor0
----
-100
99
-128
47
-31
10

query II rowsort
SELECT DISTINCT + + col2 + col1 + - + col1, col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE ( + ( col0 ) ) BETWEEN + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT DISTINCT - COUNT( + 77 ) FROM tab2 AS cor0 WHERE NOT 0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8585
SELECT DISTINCT - COUNT ( + 77 ) FROM tab2 AS cor0 WHERE NOT 0 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-8586
SELECT + - 14, SUM( DISTINCT + + ( + + 48 ) ) col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-14
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8586
SELECT + - 14, SUM ( DISTINCT + + ( + + 48 ) ) col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-14
48

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 * FROM tab2 WHERE - ( - col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8589
SELECT ALL * FROM tab0 cor0 WHERE NULL IN ( - col1, col2 * + col2, - col0 / - + CAST( col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8589
SELECT ALL * FROM tab0 cor0 WHERE NULL IN ( - col1, col2 * + col2, - col0 / - + CAST ( col2 AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - - 84 ) * 37 + col0 col1 FROM tab2 AS cor0
----
3154
3172
3183

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8591
SELECT * FROM tab2 cor0 WHERE NOT NULL = + CAST( NULL AS SIGNED ) - - CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8591
SELECT * FROM tab2 cor0 WHERE NOT NULL = + CAST ( NULL AS INTEGER ) - - CAST ( - col2 AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 33 * col2 * + col1 * - col0 col1 FROM tab0 AS cor0
----
1884465
316899
602910

query I rowsort
SELECT ALL - - ( col1 ) * + col2 * - 82 + col1 - + 53 AS col2 FROM tab0 AS cor0
----
-17252
-312146
-8170

query II rowsort
SELECT DISTINCT + col1 AS col1, - col0 * - col2 AS col1 FROM tab0 AS cor0
----
1
9603
21
870
81
705

query I rowsort
SELECT DISTINCT - ( + + col1 ) AS col2 FROM tab2
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 19 * + col2 * + - 3 * ( - 28 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8597
SELECT + ( - COUNT( + col1 ) ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8597
SELECT + ( - COUNT ( + col1 ) ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT - ( 50 ) AS col2 FROM tab0
----
-50

query I rowsort
SELECT ALL col1 * 45 * - col0 FROM tab0 AS cor0
----
-4365
-54675
-82215

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL <= + + 60 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + + col0 IS NOT NULL
----

query I rowsort
SELECT + 52 FROM tab1 WHERE NOT + + col0 IS NOT NULL
----

query I rowsort
SELECT + ( 51 ) FROM tab2
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8604
SELECT ALL MIN( - 23 ) col0 FROM tab1 cor0
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8604
SELECT ALL MIN ( - 23 ) col0 FROM tab1 cor0
----
-23

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * + col0 IS NULL
----

query I rowsort
SELECT ALL - - col0 - - + col0 + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> - col1
----

query I rowsort
SELECT DISTINCT 61 - + col0 * + col0 FROM tab0
----
-164
-7508
-9348

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8608
SELECT CAST( - col1 AS SIGNED ) * + - col0 AS col0 FROM tab1
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-8608
SELECT CAST ( - col1 AS INTEGER ) * + - col0 AS col0 FROM tab1
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-8609
SELECT - 45 * - + COUNT( * ) * + - 82 AS col2 FROM tab2
----
-11070

skipif mysql # not compatible
query I rowsort label-8609
SELECT - 45 * - + COUNT ( * ) * + - 82 AS col2 FROM tab2
----
-11070

query III rowsort
SELECT * FROM tab2 WHERE col2 - ( + col0 ) * - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 47 + col2 + - 66 * col0 * col0 FROM tab0
----
-14756
-499497
-620848

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8612
SELECT ALL - 62 * + 3 AS col1 FROM tab0 WHERE NOT + col0 + + ( + col1 ) / - col1 * + ( + 98 ) = - CAST( NULL AS SIGNED ) - - col0
----

skipif mysql # not compatible
query I rowsort label-8612
SELECT ALL - 62 * + 3 AS col1 FROM tab0 WHERE NOT + col0 + + ( + col1 ) / - col1 * + ( + 98 ) = - CAST ( NULL AS INTEGER ) - - col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8613
SELECT DISTINCT * FROM tab2 WHERE - CAST( NULL AS DECIMAL ) / col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8613
SELECT DISTINCT * FROM tab2 WHERE - CAST ( NULL AS REAL ) / col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8614
SELECT ALL - 22 * + - COUNT( * ) + - 38 FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-8614
SELECT ALL - 22 * + - COUNT ( * ) + - 38 FROM tab2
----
28

query I rowsort
SELECT - 67 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + 56 + + + ( - + col2 ) + col2, col0 + - col0, - col2 + + ( - col1 ), - col1, + col1, col2 + 73 )
----

query I rowsort
SELECT ALL - - col2 - col1 - 97 FROM tab0 AS cor0
----
-108
-131
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8617
SELECT DISTINCT + COUNT( * ) - - - 23 AS col2 FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-8617
SELECT DISTINCT + COUNT ( * ) - - - 23 AS col2 FROM tab2 AS cor0
----
-20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - + 18 col0 FROM tab1 AS cor0
----
114
77
86

query I rowsort
SELECT - - col0 + - 92 FROM tab1 AS cor0
----
-1
-41
-7

query I rowsort
SELECT DISTINCT + col1 - + - ( 27 ) * - col0 AS col2 FROM tab1 AS cor0
----
-1363
-2290
-2410

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 27 col1 FROM tab0 cor0
----
27

query I rowsort
SELECT DISTINCT 97 FROM tab1 AS cor0 WHERE 71 IS NOT NULL
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT - COUNT( * ) * 65 AS col2 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-8623
SELECT - COUNT ( * ) * 65 AS col2 FROM tab2
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT + COUNT( * ) * - 99 * 52 AS col1 FROM tab2
----
-15444

skipif mysql # not compatible
query I rowsort label-8624
SELECT + COUNT ( * ) * - 99 * 52 AS col1 FROM tab2
----
-15444

query I rowsort
SELECT ALL ( col0 ) * + 79 FROM tab1 AS cor0
----
4029
6715
7189

query I rowsort
SELECT DISTINCT - - 48 * - + 51 AS col2 FROM tab2 AS cor0
----
-2448

query I rowsort
SELECT - col1 * col2 * - 48 AS col2 FROM tab0 cor0
----
10080
182736
4752

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT - COUNT( DISTINCT + ( col2 ) ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8628
SELECT - COUNT ( DISTINCT + ( col2 ) ) col0 FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8629
SELECT DISTINCT + 37 DIV + - 66 * col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8629
SELECT DISTINCT + 37 / + - 66 * col2 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8630
SELECT - CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8630
SELECT - CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab2
----
-3

query II rowsort
SELECT DISTINCT + col1 AS col1, col0 + 51 AS col1 FROM tab1
----
14
102
47
142
5
136

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT ALL ( - COUNT( * ) ) col0 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8632
SELECT ALL ( - COUNT ( * ) ) col0 FROM tab0
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 13 + col1 ) BETWEEN - col0 + + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8634
SELECT DISTINCT + 80 * CAST( - - col1 AS SIGNED ) FROM tab2
----
4080
5360
6160

skipif mysql # not compatible
query I rowsort label-8634
SELECT DISTINCT + 80 * CAST ( - - col1 AS INTEGER ) FROM tab2
----
4080
5360
6160

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT NULL < - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col0 col2 FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-8637
SELECT ALL + - COUNT( ALL 74 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8637
SELECT ALL + - COUNT ( ALL 74 ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8638
SELECT col0 * + 84 / - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8638
SELECT col0 * + 84 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 74 AS col2 FROM tab2 AS cor0
----
-74
-74
-74

query I rowsort
SELECT ALL - col2 + - ( + - col1 ) AS col1 FROM tab0
----
-98
11
34

query I rowsort
SELECT + - AVG ( ALL - ( + ( col0 ) ) ) FROM tab1 WHERE NULL = NULL
----
NULL

query I rowsort
SELECT + 79 AS col0 FROM tab1 WHERE NULL NOT BETWEEN NULL AND + 42 / + col2 * 84
----

query I rowsort
SELECT 29 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

onlyif mysql # aggregate syntax: 
query I rowsort label-8644
SELECT - ( + COUNT( DISTINCT + col1 ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8644
SELECT - ( + COUNT ( DISTINCT + col1 ) ) AS col2 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * + + 48 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - - 44 ) IS NULL
----

query I rowsort
SELECT DISTINCT - 52 FROM tab1 AS cor0 WHERE NOT col0 * + 96 / col1 BETWEEN ( NULL ) AND + 96
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT DISTINCT 47 - + MAX( ALL + + col1 ) + + 33 * + 9 AS col0 FROM tab2 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-8648
SELECT DISTINCT 47 - + MAX ( ALL + + col1 ) + + 33 * + 9 AS col0 FROM tab2 AS cor0
----
267

query II rowsort
SELECT col2 - 88 - - ( - col2 ) AS col1, 3 FROM tab0 AS cor0
----
-88
3
-88
3
-88
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8650
SELECT ALL COUNT( * ), ( - + 46 ) AS col2 FROM tab2
----
3
-46

skipif mysql # not compatible
query II rowsort label-8650
SELECT ALL COUNT ( * ), ( - + 46 ) AS col2 FROM tab2
----
3
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8651
SELECT CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8651
SELECT CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) * - col1 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT + - COUNT( * ) AS col1 FROM tab2 WHERE + 43 * col2 - - col0 >= col2
----
-3

skipif mysql # not compatible
query I rowsort label-8652
SELECT + - COUNT ( * ) AS col1 FROM tab2 WHERE + 43 * col2 - - col0 >= col2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8653
SELECT 29 + + + COUNT( * ) * - ( ( CAST( - COUNT( * ) AS SIGNED ) ) ) FROM tab0
----
38

skipif mysql # not compatible
query I rowsort label-8653
SELECT 29 + + + COUNT ( * ) * - ( ( CAST ( - COUNT ( * ) AS INTEGER ) ) ) FROM tab0
----
38

query III rowsort
SELECT ALL col2, + col0 + - - 95 AS col0, + + col1 FROM tab0
----
9 values hashing to 20861d36a75be5d0ba6bce6ec7999af8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8655
SELECT - CAST( NULL AS SIGNED ) * - - col2 AS col0 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8655
SELECT - CAST ( NULL AS INTEGER ) * - - col2 AS col0 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 - + 76 * - - col1 FROM tab0 cor0
----
-1586
-6109
23

query II rowsort
SELECT ALL + col2, 82 * + col2 * - col2 FROM tab0 AS cor0
----
10
-8200
47
-181138
99
-803682

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT + - col0 <= + + 4
----

query I rowsort
SELECT DISTINCT + 99 AS col0 FROM tab2 cor0
----
99

query II rowsort
SELECT DISTINCT - + 6 AS col2, - 49 * + col1 AS col1 FROM tab1 cor0
----
-6
-2303
-6
-245
-6
-686

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT ALL + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT 47 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8661
SELECT ALL + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 47 IS NOT NULL
----
0

query II rowsort
SELECT + col0 AS col2, 88 FROM tab0 AS cor0 WHERE NOT + col0 * - + col1 IS NULL
----
15
88
87
88
97
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8663
SELECT - CAST( NULL AS SIGNED ) FROM tab2 cor0 WHERE NOT + CAST( NULL AS SIGNED ) * + col0 + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8663
SELECT - CAST ( NULL AS INTEGER ) FROM tab2 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * + col0 + col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 * - - 78 < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8665
SELECT DISTINCT - col0 FROM tab2 WHERE - CAST( NULL AS DECIMAL ) BETWEEN col2 + - col2 AND - - 91
----

skipif mysql # not compatible
query I rowsort label-8665
SELECT DISTINCT - col0 FROM tab2 WHERE - CAST ( NULL AS REAL ) BETWEEN col2 + - col2 AND - - 91
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8666
SELECT ( MAX( DISTINCT + 90 ) ) + + 98 AS col2 FROM tab0
----
188

skipif mysql # not compatible
query I rowsort label-8666
SELECT ( MAX ( DISTINCT + 90 ) ) + + 98 AS col2 FROM tab0
----
188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( 18 ) col0, + col1 FROM tab0
----
18
1
18
21
18
81

query I rowsort
SELECT ALL 35 * + - 69 FROM tab0
----
-2415
-2415
-2415

query I rowsort
SELECT DISTINCT col1 + + col0 + - - col1 * + col0 AS col0 FROM tab2
----
2443
5069
5167

query I rowsort
SELECT ALL 80 + + - col0 AS col0 FROM tab1
----
-11
-5
29

query I rowsort
SELECT + 0 * - col2 FROM tab0
----
0
0
0

query I rowsort
SELECT + col0 AS col0 FROM tab2 WHERE - col0 IS NOT NULL AND + col0 * + - ( - col2 ) = + col1
----

query I rowsort
SELECT - ( - 49 ) + + - col2 + - - col2 * + 51 AS col1 FROM tab1
----
2999
3449
4849

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 + + col1 + 77 + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8675
SELECT DISTINCT + MAX( - col2 ) + - SUM( + + col2 ) col2 FROM tab2 AS cor0
----
-144

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8675
SELECT DISTINCT + MAX ( - col2 ) + - SUM ( + + col2 ) col2 FROM tab2 AS cor0
----
-144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8676
SELECT ALL - + COUNT( * ) + - CAST( NULL AS SIGNED ) / - 0 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8676
SELECT ALL - + COUNT ( * ) + - CAST ( NULL AS INTEGER ) / - 0 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - + ( ( col1 ) ) * + 57 * - col2 AS col2 FROM tab2 AS cor0
----
175560
221502
66861

query I rowsort
SELECT DISTINCT 82 * - - 30 + + ( - 58 ) AS col0 FROM tab2 AS cor0
----
2402

query I rowsort
SELECT ALL - col0 - 65 AS col2 FROM tab2 AS cor0
----
-111
-129
-140

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + ( - - col1 ) col0 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT DISTINCT + + col0 * ( - + col1 ) * + - col0 FROM tab1 AS cor0
----
36125
36414
389207

onlyif mysql # DIV for integer division: 
query I rowsort label-8682
SELECT col1 DIV + - 34 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8682
SELECT col1 / + - 34 FROM tab1
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8683
SELECT ALL + COUNT( * ) - + + 97 AS col0 FROM tab1
----
-94

skipif mysql # not compatible
query I rowsort label-8683
SELECT ALL + COUNT ( * ) - + + 97 AS col0 FROM tab1
----
-94

query III rowsort
SELECT * FROM tab2 WHERE col0 * col1 + - col1 + + col1 * - col0 * + - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8685
SELECT CAST( - 45 AS SIGNED ) FROM tab1
----
-45
-45
-45

skipif mysql # not compatible
query I rowsort label-8685
SELECT CAST ( - 45 AS INTEGER ) FROM tab1
----
-45
-45
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8686
SELECT - + COUNT( * ) * 97 AS col2 FROM tab2 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-8686
SELECT - + COUNT ( * ) * 97 AS col2 FROM tab2 AS cor0
----
-291

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT - 97 * COUNT( * ) AS col0 FROM tab1 cor0
----
-291

skipif mysql # not compatible
query I rowsort label-8687
SELECT - 97 * COUNT ( * ) AS col0 FROM tab1 cor0
----
-291

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT ALL + + 12 + - MIN( - col2 ) FROM tab2 cor0 WHERE NOT - col1 IS NULL
----
70

skipif mysql # not compatible
query I rowsort label-8688
SELECT ALL + + 12 + - MIN ( - col2 ) FROM tab2 cor0 WHERE NOT - col1 IS NULL
----
70

query I rowsort
SELECT 3 FROM tab1 cor0 WHERE NOT + col0 + col0 * + - ( + - col2 ) < col0 * - 20 * - 23
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8690
SELECT DISTINCT + ( + SUM( ALL - ( + col0 ) ) ) * - COUNT( * ) * - MAX( + + CAST( col1 AS SIGNED ) ) AS col0 FROM tab0
----
-48357

skipif mysql # not compatible
query I rowsort label-8690
SELECT DISTINCT + ( + SUM ( ALL - ( + col0 ) ) ) * - COUNT ( * ) * - MAX ( + + CAST ( col1 AS INTEGER ) ) AS col0 FROM tab0
----
-48357

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8691
SELECT - CAST( + + 69 AS DECIMAL ), col2 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-8691
SELECT - CAST ( + + 69 AS REAL ), col2 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 96 * + 56 + - + 82 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 + ( col2 ) + col0 * - col0 + + - col0 * col1 * + col2 FROM tab1
----
-299140
-32326
-71100

query I rowsort
SELECT ALL 57 + col2 + - - col0 FROM tab0
----
119
154
253

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT + COUNT( 29 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8695
SELECT + COUNT ( 29 ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT DISTINCT + 91 + + + COUNT( * ) AS col2 FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-8696
SELECT DISTINCT + 91 + + + COUNT ( * ) AS col2 FROM tab1
----
94

query II rowsort
SELECT - 42, col2 * - - 6 AS col0 FROM tab1
----
-42
354
-42
408
-42
576

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT ALL COUNT( * ) + + + 28 AS col2 FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-8698
SELECT ALL COUNT ( * ) + + + 28 AS col2 FROM tab0
----
31

query I rowsort
SELECT + 0 * + col2 + col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT + 39 + + col1 + + + col1 - + ( + col2 ) FROM tab0 AS cor0
----
-58
154
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab1 AS cor0 WHERE - col2 / col2 <> + + ( + 54 )
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT COUNT( * ) + 79 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
88

skipif mysql # not compatible
query I rowsort label-8702
SELECT COUNT ( * ) + 79 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
88

query I rowsort
SELECT + ( + - col1 ) * col1 FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT ALL + col0 * + col2 - - col0 FROM tab2 WHERE NOT NULL IS NOT NULL OR + col2 * 40 <= - col1 * 67 * col0 * - ( + col1 )
----
1104
2624
4425

query I rowsort
SELECT ALL + + ( - 38 ) + 71 FROM tab0 AS cor0
----
33
33
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8706
SELECT - CAST( 19 AS SIGNED ) FROM tab0 AS cor0
----
-19
-19
-19

skipif mysql # not compatible
query I rowsort label-8706
SELECT - CAST ( 19 AS INTEGER ) FROM tab0 AS cor0
----
-19
-19
-19

query I rowsort
SELECT ALL col2 - - 3 + col0 * 41 FROM tab2 AS cor0
----
1912
2667
3136

onlyif mysql # aggregate syntax: 
query I rowsort label-8708
SELECT DISTINCT - + 23 - + SUM( DISTINCT col2 ) AS col0 FROM tab0 AS cor0
----
-179

skipif mysql # not compatible
query I rowsort label-8708
SELECT DISTINCT - + 23 - + SUM ( DISTINCT col2 ) AS col0 FROM tab0 AS cor0
----
-179

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8709
SELECT DISTINCT + 24 * + COUNT( * ) DIV + 82 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8709
SELECT DISTINCT + 24 * + COUNT ( * ) / + 82 FROM tab0 AS cor0
----
0

query I rowsort
SELECT col0 + col1 + - - col1 AS col1 FROM tab2
----
148
209
218

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8711
SELECT CAST( NULL AS SIGNED ) + 62 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8711
SELECT CAST ( NULL AS INTEGER ) + 62 AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 10 - - 25 - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + 44, col2 AS col0 FROM tab0
----
44
10
44
47
44
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT COUNT( * ) FROM tab0 WHERE NOT ( + col0 ) / - 38 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8714
SELECT COUNT ( * ) FROM tab0 WHERE NOT ( + col0 ) / - 38 IS NOT NULL
----
0

query II rowsort
SELECT ALL - ( - ( col1 ) ), 60 AS col2 FROM tab0
----
1
60
21
60
81
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + - col0 ) col2 FROM tab0 cor0
----
15
87
97

query I rowsort
SELECT DISTINCT - col0 / - 2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT - MIN( DISTINCT + + col2 ) AS col2 FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8718
SELECT - MIN ( DISTINCT + + col2 ) AS col2 FROM tab0 cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT MAX( + col2 ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8719
SELECT MAX ( + col2 ) AS col2 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8720
SELECT ALL + 60 * + SUM( DISTINCT - - 78 ) AS col0 FROM tab2 AS cor0
----
4680

skipif mysql # not compatible
query I rowsort label-8720
SELECT ALL + 60 * + SUM ( DISTINCT - - 78 ) AS col0 FROM tab2 AS cor0
----
4680

query II rowsort
SELECT col2 AS col0, 29 + - ( 11 ) FROM tab0 AS cor0
----
10
18
47
18
99
18

onlyif mysql # DIV for integer division: 
query I rowsort label-8722
SELECT ALL col1 DIV col0 + + 69 FROM tab0
----
69
69
74

skipif mysql # not compatible
query I rowsort label-8722
SELECT ALL col1 / col0 + + 69 FROM tab0
----
69
69
74

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= + col0 * - col1 + col1 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8724
SELECT - MAX( 18 ) FROM tab0 WHERE NOT col1 < 47 - + 35
----
-18

skipif mysql # not compatible
query I rowsort label-8724
SELECT - MAX ( 18 ) FROM tab0 WHERE NOT col1 < 47 - + 35
----
-18

query I rowsort
SELECT 35 + - col0 AS col2 FROM tab2 WHERE NOT col1 + - 52 / col0 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8726
SELECT DISTINCT + 67 DIV col1 FROM tab2 WHERE + col0 - + col2 <> - col0
----
0
1

skipif mysql # not compatible
query I rowsort label-8726
SELECT DISTINCT + 67 / col1 FROM tab2 WHERE + col0 - + col2 <> - col0
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8727
SELECT CAST( NULL AS SIGNED ) * col2 - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8727
SELECT CAST ( NULL AS INTEGER ) * col2 - col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT DISTINCT + MAX( ALL 31 ) AS col2 FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-8728
SELECT DISTINCT + MAX ( ALL 31 ) AS col2 FROM tab1
----
31

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 WHERE NOT ( - col0 + - col1 / ( col0 ) ) NOT IN ( col1 + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT COUNT( DISTINCT + 96 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8730
SELECT COUNT ( DISTINCT + 96 ) AS col1 FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8731
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) < - CAST( 68 AS SIGNED ) + col1
----

skipif mysql # not compatible
query III rowsort label-8731
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) < - CAST ( 68 AS INTEGER ) + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8732
SELECT DISTINCT col0 DIV 1 FROM tab1 WHERE NOT col0 IS NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8732
SELECT DISTINCT col0 / 1 FROM tab1 WHERE NOT col0 IS NULL
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8733
SELECT DISTINCT + COUNT( * ) col0 FROM tab0 WHERE NOT ( col1 * CAST( NULL AS DECIMAL ) ) IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8733
SELECT DISTINCT + COUNT ( * ) col0 FROM tab0 WHERE NOT ( col1 * CAST ( NULL AS REAL ) ) IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8734
SELECT DISTINCT * FROM tab0 WHERE NOT col0 + + 40 / - CAST( - 75 + 52 AS SIGNED ) > CAST( col2 AS SIGNED ) / + col1
----
97
1
99

skipif mysql # not compatible
query III rowsort label-8734
SELECT DISTINCT * FROM tab0 WHERE NOT col0 + + 40 / - CAST ( - 75 + 52 AS INTEGER ) > CAST ( col2 AS INTEGER ) / + col1
----
97
1
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8735
SELECT DISTINCT COUNT( * ) + COUNT( - col0 ) * CAST( - CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8735
SELECT DISTINCT COUNT ( * ) + COUNT ( - col0 ) * CAST ( - CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE NOT col1 * 9 IS NOT NULL
----

query I rowsort
SELECT ( col2 ) - 56 * col1 AS col2 FROM tab0
----
-1166
-4489
43

query I rowsort
SELECT - col0 AS col0 FROM tab1 WHERE NOT NULL <> - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8739
SELECT DISTINCT col2 AS col0 FROM tab1 WHERE + ( + col2 ) * + col0 + + col0 <= col1 + - CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8739
SELECT DISTINCT col2 AS col0 FROM tab1 WHERE + ( + col2 ) * + col0 + + col0 <= col1 + - CAST ( + col0 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT ALL + COUNT( * ) AS col2 FROM tab2 WHERE - 55 = ( + col2 + + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-8740
SELECT ALL + COUNT ( * ) AS col2 FROM tab2 WHERE - 55 = ( + col2 + + col2 )
----
0

query I rowsort
SELECT ALL 27 * col0 FROM tab2
----
1242
1728
2025

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE NOT NULL < ( col2 / + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8743
SELECT DISTINCT + ( COUNT( * ) ) FROM tab1 WHERE NOT NULL NOT BETWEEN col0 AND ( - 0 ) * CAST( - 37 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8743
SELECT DISTINCT + ( COUNT ( * ) ) FROM tab1 WHERE NOT NULL NOT BETWEEN col0 AND ( - 0 ) * CAST ( - 37 AS INTEGER )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col0 col2 FROM tab2
----
2116
4096
5625

query I rowsort
SELECT ALL - col2 + 28 FROM tab1
----
-31
-40
-68

query I rowsort
SELECT DISTINCT - col1 + 79 FROM tab2 AS cor0
----
12
2
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8747
SELECT 61 * + COUNT( * ) - + ( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8747
SELECT 61 * + COUNT ( * ) - + ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT DISTINCT + SUM( - ( 32 ) ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-8748
SELECT DISTINCT + SUM ( - ( 32 ) ) FROM tab1
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8749
SELECT 86 + COUNT( * ) AS col1 FROM tab0 AS cor0 JOIN tab2 ON NOT + ( - CAST( NULL AS SIGNED ) ) IS NULL
----
86

skipif mysql # not compatible
query I rowsort label-8749
SELECT 86 + COUNT ( * ) AS col1 FROM tab0 AS cor0 JOIN tab2 ON NOT + ( - CAST ( NULL AS INTEGER ) ) IS NULL
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 WHERE NOT ( - col2 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8750
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 WHERE NOT ( - col2 ) IS NULL
----
3

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8752
SELECT + col2 DIV - 99 + - ( - ( - col2 ) ) * col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

skipif mysql # not compatible
query I rowsort label-8752
SELECT + col2 / - 99 + - ( - ( - col2 ) ) * col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col2 - - col1 / 68 ) <= col1
----
15
81
47
87
21
10

query I rowsort
SELECT ALL col2 + + 67 AS col0 FROM tab1 AS cor0
----
126
135
163

onlyif mysql # aggregate syntax: 
query I rowsort label-8755
SELECT DISTINCT 70 - COUNT( * ) FROM tab2 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-8755
SELECT DISTINCT 70 - COUNT ( * ) FROM tab2 AS cor0
----
67

query I rowsort
SELECT ALL + col0 + + 10 AS col1 FROM tab2 AS cor0
----
56
74
85

query I rowsort
SELECT - ( + 33 ) * 83 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN ( - ( 26 ) ) AND ( col0 )
----

query I rowsort
SELECT - col2 AS col1 FROM tab1 cor0 WHERE - 2 IS NOT NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8759
SELECT ALL + col2 / + - 71 * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8759
SELECT ALL + col2 / + - 71 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT ALL SUM( + col1 ) AS col0 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-8760
SELECT ALL SUM ( + col1 ) AS col0 FROM tab0
----
103

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( 96 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8762
SELECT - 93 * - MIN( DISTINCT col1 * 48 ) FROM tab1 WHERE NOT - col2 + col1 IN ( + col1 - - col2 / CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8762
SELECT - 93 * - MIN ( DISTINCT col1 * 48 ) FROM tab1 WHERE NOT - col2 + col1 IN ( + col1 - - col2 / CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL ( - ( - col0 ) ) FROM tab2
----
46
64
75

query I rowsort
SELECT - col1 * + 27 FROM tab2
----
-1377
-1809
-2079

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8765
SELECT ALL AVG ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8765
SELECT ALL AVG ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL + ( - col1 ) * col2 AS col1 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT - col0 * + 41 * + col2 AS col2 FROM tab2
----
-104960
-178350
-43378

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT ALL COUNT( ALL - ( - 94 ) ) * + COUNT( * ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-8768
SELECT ALL COUNT ( ALL - ( - 94 ) ) * + COUNT ( * ) AS col2 FROM tab0
----
9

query I rowsort
SELECT - col1 * - col1 * col2 AS col0 FROM tab2
----
237160
260362
59823

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT DISTINCT + - COUNT( * ) * - SUM( 48 ) AS col2 FROM tab2 AS cor0
----
432

skipif mysql # not compatible
query I rowsort label-8770
SELECT DISTINCT + - COUNT ( * ) * - SUM ( 48 ) AS col2 FROM tab2 AS cor0
----
432

query I rowsort
SELECT 60 AS col1 FROM tab1 AS cor0 WHERE NOT ( col1 ) >= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col1 ) IN ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8773
SELECT ALL COUNT( * ) * - 1 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-8773
SELECT ALL COUNT ( * ) * - 1 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

query I rowsort
SELECT DISTINCT 52 + 85 FROM tab1
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT 41 * MIN( ALL + col2 ) AS col0 FROM tab1
----
2419

skipif mysql # not compatible
query I rowsort label-8775
SELECT 41 * MIN ( ALL + col2 ) AS col0 FROM tab1
----
2419

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 1 * + + 30 + + 27 * - col2 col1 FROM tab2 cor0
----
-1050
-1536
-591

query I rowsort
SELECT - ( - - 52 ) * + - 31 AS col1 FROM tab2 AS cor0
----
1612
1612
1612

query I rowsort
SELECT DISTINCT + - col2 + 49 AS col1 FROM tab0 AS cor0
----
-50
2
39

onlyif mysql # DIV for integer division: 
query II rowsort label-8779
SELECT col1 AS col2, col2 DIV + + col1 AS col2 FROM tab1 AS cor0
----
14
6
47
1
5
11

skipif mysql # not compatible
query II rowsort label-8779
SELECT col1 AS col2, col2 / + + col1 AS col2 FROM tab1 AS cor0
----
14
6
47
1
5
11

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( col1 * 61 * 86 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT ALL ( + 33 ) * - COUNT( * ) + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT 30 * - col1 * + col0 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8781
SELECT ALL ( + 33 ) * - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT 30 * - col1 * + col0 <= NULL
----
0

query II rowsort
SELECT DISTINCT 54 AS col0, - col2 - - col0 AS col2 FROM tab1 AS cor0
----
54
-45
54
23
54
26

query I rowsort
SELECT DISTINCT - ( + ( - + col0 ) ) AS col0 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT DISTINCT + COUNT( ALL - 71 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8784
SELECT DISTINCT + COUNT ( ALL - 71 ) AS col1 FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 >= + col1 - + 51
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-8786
SELECT - MAX( col0 ) AS col0, - 71 * 35 FROM tab2
----
-75
-2485

skipif mysql # not compatible
query II rowsort label-8786
SELECT - MAX ( col0 ) AS col0, - 71 * 35 FROM tab2
----
-75
-2485

query I rowsort
SELECT 70 * - 12 + - 48 FROM tab1
----
-888
-888
-888

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) IS NULL AND NOT NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT - 38 + + - COUNT( * ) * + 95 AS col2 FROM tab2
----
-323

skipif mysql # not compatible
query I rowsort label-8789
SELECT - 38 + + - COUNT ( * ) * + 95 AS col2 FROM tab2
----
-323

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 + + - 12 AS col0, - 60 col0 FROM tab1 AS cor0
----
-17
-60
-26
-60
-59
-60

query I rowsort
SELECT ALL - col1 * + col0 + - col1 + - + 57 + + col0 * col0 AS col2 FROM tab2 AS cor0
----
-338
-966
476

query I rowsort
SELECT - col1 / col0 - + col1 FROM tab1 cor0 WHERE NULL NOT IN ( col0 + + 30 - - + col0 * - col0 )
----

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 cor0 WHERE ( NOT NULL IS NOT NULL )
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col2 FROM tab1 AS cor0 WHERE 86 + - 63 < - 91 + - 31
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 * - col0 IS NULL
----

query I rowsort
SELECT ALL - + 25 * col2 + - col2 FROM tab0 cor0
----
-1222
-2574
-260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8797
SELECT DISTINCT - + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8797
SELECT DISTINCT - + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8798
SELECT DISTINCT - 27 - COUNT( * ) FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-8798
SELECT DISTINCT - 27 - COUNT ( * ) FROM tab0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8799
SELECT + col1 FROM tab1 WHERE ( - 74 * + CAST( NULL AS SIGNED ) ) <= ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-8799
SELECT + col1 FROM tab1 WHERE ( - 74 * + CAST ( NULL AS INTEGER ) ) <= ( + col1 )
----

query I rowsort
SELECT ALL - col2 + ( - 86 ) * + - 56 AS col0 FROM tab0 AS cor0
----
4717
4769
4806

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT 92 - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-8801
SELECT 92 - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
95

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 1 NOT BETWEEN col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - 42, + col1 FROM tab0 cor0
----
-42
1
-42
21
-42
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8804
SELECT ALL MIN( + - col0 ) AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8804
SELECT ALL MIN ( + - col0 ) AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT - 70 * - MAX( 83 ) col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8805
SELECT - 70 * - MAX ( 83 ) col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + col0 + + + col2 + - col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( col1 + + col2 )
----

query I rowsort
SELECT - col1 AS col2 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
-14
-47
-5

query I rowsort
SELECT ALL col1 FROM tab1 WHERE ( col0 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 AS col0, + col1 * + 36 * col2 - - 21 + + ( col2 ) col0 FROM tab1
----
-51
48501
-85
10700
-91
115145

query II rowsort
SELECT + 31 AS col1, col1 AS col1 FROM tab2
----
31
51
31
67
31
77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8811
SELECT 0 * MAX( ALL ( - ( - + CAST( NULL AS DECIMAL ) ) ) ) * + 51 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8811
SELECT 0 * MAX ( ALL ( - ( - + CAST ( NULL AS REAL ) ) ) ) * + 51 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 6 + + col0 BETWEEN ( NULL ) AND - col1 + + col2
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT DISTINCT + 21 * + ( + 7 ) * + - MAX( ALL - 18 ) FROM tab2
----
2646

skipif mysql # not compatible
query I rowsort label-8813
SELECT DISTINCT + 21 * + ( + 7 ) * + - MAX ( ALL - 18 ) FROM tab2
----
2646

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8814
SELECT DISTINCT 55 DIV - - MAX( - 61 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8814
SELECT DISTINCT 55 / - - MAX ( - 61 ) FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8815
SELECT + col0 * - - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8815
SELECT + col0 * - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 59 * + + col2 AS col2 FROM tab2
----
1357
2360
3422

query I rowsort
SELECT ALL + col1 * 7 FROM tab2 AS cor0
----
357
469
539

query I rowsort
SELECT ALL - - ( - + col1 ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT DISTINCT - + MAX( + - 72 ) col1 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8819
SELECT DISTINCT - + MAX ( + - 72 ) col1 FROM tab2 AS cor0
----
72

query II rowsort
SELECT DISTINCT ( + col2 ) AS col0, - col2 FROM tab0
----
10
-10
47
-47
99
-99

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT COUNT( * ) FROM tab2 WHERE NOT + - ( + col1 ) * col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8822
SELECT COUNT ( * ) FROM tab2 WHERE NOT + - ( + col1 ) * col1 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 52 col0 FROM tab0 cor0
----
52

query I rowsort
SELECT ALL - - col0 + 87 - - 96 + + col2 AS col2 FROM tab1 AS cor0
----
327
330
342

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8825
SELECT ( col0 ) + ( - + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8825
SELECT ( col0 ) + ( - + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 89 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8827
SELECT - 39 DIV 45 DIV col1 * 29 + 37 + + col0 + - col2 - col1 DIV + 24 FROM tab0 AS cor0
----
114
2
35

skipif mysql # not compatible
query I rowsort label-8827
SELECT - 39 / 45 / col1 * 29 + 37 + + col0 + - col2 - col1 / + 24 FROM tab0 AS cor0
----
114
2
35

query I rowsort
SELECT col0 + - - col2 + + - 91 * - - col1 * + col1 AS col2 FROM tab1
----
-17689
-200860
-2131

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT ( - + col2 ) IS NULL ) OR NOT NULL >= - col0 * - col1 * + 20
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - - 22 ) col2 FROM tab2 WHERE NOT col1 + - 99 IS NULL
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8831
SELECT CAST( + ( - AVG ( ALL - col0 ) ) AS SIGNED ) FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-8831
SELECT CAST ( + ( - AVG ( ALL - col0 ) ) AS INTEGER ) FROM tab0
----
66

query II rowsort
SELECT ALL + 71 * + 76 + + col2 AS col2, + col2 AS col2 FROM tab2
----
5419
23
5436
40
5454
58

onlyif mysql # DIV for integer division: 
query II rowsort label-8833
SELECT col0, + col0 + + col2 DIV - 52 FROM tab1
----
51
50
85
84
91
90

skipif mysql # not compatible
query II rowsort label-8833
SELECT col0, + col0 + + col2 / - 52 FROM tab1
----
51
50
85
84
91
90

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN NULL AND col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - 92 IS NULL
----

query I rowsort
SELECT ALL + col2 * + - 39 FROM tab0 WHERE - + 80 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8837
SELECT - 86 DIV col2 * - CAST( - col1 AS SIGNED ) - - - ( col0 ) + 89 + - col1 + col0 * - ( col1 + 9 * col0 ) col0 FROM tab0 AS cor0
----
-3328
-70135
-84787

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8837
SELECT - 86 / col2 * - CAST ( - col1 AS INTEGER ) - - - ( col0 ) + 89 + - col1 + col0 * - ( col1 + 9 * col0 ) col0 FROM tab0 AS cor0
----
-3328
-70135
-84787

query I rowsort
SELECT - - 3 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT DISTINCT - 62 / - 38 AS col2 FROM tab2 WHERE NOT - 93 * col2 = NULL
----

query I rowsort
SELECT DISTINCT - col0 * - col1 * + col1 FROM tab1 AS cor0
----
201019
2125
9996

onlyif mysql # aggregate syntax: 
query I rowsort label-8841
SELECT - + SUM( ALL - col1 ) col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8841
SELECT - + SUM ( ALL - col1 ) col2 FROM tab1 AS cor0
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8842
SELECT - CAST( - MIN( + - 63 ) AS SIGNED ) FROM tab0 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-8842
SELECT - CAST ( - MIN ( + - 63 ) AS INTEGER ) FROM tab0 AS cor0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8843
SELECT ALL COUNT( DISTINCT col1 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8843
SELECT ALL COUNT ( DISTINCT col1 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ( + col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT 80 + - 87 IS NOT NULL
----

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND - col0 + + 48 * - - col0 * 17
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8846
SELECT + - MAX( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-8846
SELECT + - MAX ( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0
----
46

query II rowsort
SELECT ALL + 13 AS col0, col2 FROM tab2 WHERE + 72 + col0 - + + col0 IS NOT NULL
----
13
23
13
40
13
58

query I rowsort
SELECT ALL col1 * - - col2 FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT - + ( - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8849
SELECT - + ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - 69 AS col0 FROM tab1 cor0
----
-69
-69
-69

query II rowsort
SELECT + 60 AS col1, 77 AS col0 FROM tab1 AS cor0
----
60
77
60
77
60
77

query II rowsort
SELECT DISTINCT col1 * 53, + col1 FROM tab0
----
1113
21
4293
81
53
1

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + 6 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL > + 48
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT + MAX( - col0 ) * - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-8855
SELECT + MAX ( - col0 ) * - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-138

query I rowsort
SELECT - - col0 AS col1 FROM tab2 AS cor0 WHERE 44 IS NULL
----

query I rowsort
SELECT ALL col1 * - 42 + - col2 * ( - + col1 ) AS col1 FROM tab0 AS cor0
----
-672
405
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT DISTINCT COUNT( * ) FROM tab2 cor0 WHERE NULL <> - col0 / - ( - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8858
SELECT DISTINCT COUNT ( * ) FROM tab2 cor0 WHERE NULL <> - col0 / - ( - col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8859
SELECT ALL + + 48 * + SUM( DISTINCT col0 ) FROM tab1 AS cor0
----
10896

skipif mysql # not compatible
query I rowsort label-8859
SELECT ALL + + 48 * + SUM ( DISTINCT col0 ) FROM tab1 AS cor0
----
10896

query I rowsort
SELECT ALL + col0 * - col1 + - + 60 FROM tab1 AS cor0
----
-4337
-485
-774

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 80 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * + 5 FROM tab1 cor0
----
295
340
480

query I rowsort
SELECT ALL ( - - col1 ) * 28 AS col2 FROM tab1 WHERE NOT ( NOT col1 * col2 <> - - 78 + + - ( - col2 ) + + ( + 99 ) )
----
1316
140
392

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - ( - col0 ) IS NOT NULL
----

query I rowsort
SELECT - col2 + 32 + - + col1 + + 96 * + + col2 FROM tab0
----
4416
9436
961

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8866
SELECT CAST( NULL AS SIGNED ) - - 31 + - ( COUNT( * ) ) AS col1 FROM tab1 WHERE ( NULL IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8866
SELECT CAST ( NULL AS INTEGER ) - - 31 + - ( COUNT ( * ) ) AS col1 FROM tab1 WHERE ( NULL IS NOT NULL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8867
SELECT col2 DIV 50 FROM tab0 WHERE + col1 NOT IN ( + col2 )
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8867
SELECT col2 / 50 FROM tab0 WHERE + col1 NOT IN ( + col2 )
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8868
SELECT ALL + col2 * + CAST( ( - + 21 ) AS SIGNED ) + - col0 + + col2 FROM tab2 WHERE NOT NULL IN ( + col1 + + - col2 / - col1 )
----

skipif mysql # not compatible
query I rowsort label-8868
SELECT ALL + col2 * + CAST ( ( - + 21 ) AS INTEGER ) + - col0 + + col2 FROM tab2 WHERE NOT NULL IN ( + col1 + + - col2 / - col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - - col1 ) <> - col1 + col1 + + - col0 / - col0 / + ( col1 ) + col1 * + col0 / - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8870
SELECT DISTINCT - 97 * + MAX( DISTINCT + col0 ) FROM tab0 cor0 WHERE CAST( NULL AS SIGNED ) + + col2 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8870
SELECT DISTINCT - 97 * + MAX ( DISTINCT + col0 ) FROM tab0 cor0 WHERE CAST ( NULL AS INTEGER ) + + col2 >= NULL
----
NULL

query I rowsort
SELECT DISTINCT - 94 - + - 9 FROM tab2 cor0
----
-85

query I rowsort
SELECT ALL - 35 - + 9 AS col2 FROM tab1 cor0
----
-44
-44
-44

query I rowsort
SELECT ALL col2 - 97 AS col0 FROM tab0
----
-50
-87
2

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 86 * - - col1 + + - ( - col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL + + ( - 63 ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query I rowsort
SELECT - 30 * + col0 FROM tab0
----
-2610
-2910
-450

query II rowsort
SELECT - col0 AS col0, - col0 * col1 FROM tab2 AS cor0
----
-46
-2346
-64
-4928
-75
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-8878
SELECT DISTINCT + COUNT( * ) * - - COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8878
SELECT DISTINCT + COUNT ( * ) * - - COUNT ( * ) FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-8879
SELECT + - 99, + SUM( + + col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 = NULL
----
-99
NULL

skipif mysql # not compatible
query II rowsort label-8879
SELECT + - 99, + SUM ( + + col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 = NULL
----
-99
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <= + col2 * - 39
----

query II rowsort
SELECT ALL + col0 + - - col0 AS col2, + col2 - col2 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
102
0
170
0
182
0

query I rowsort
SELECT ALL + 25 AS col0 FROM tab2 AS cor0 WHERE + col2 * + col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT DISTINCT + COUNT( * ) * + MIN( DISTINCT - 98 ) col0 FROM tab2 WHERE + col2 IS NOT NULL
----
-294

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8883
SELECT DISTINCT + COUNT ( * ) * + MIN ( DISTINCT - 98 ) col0 FROM tab2 WHERE + col2 IS NOT NULL
----
-294

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 + 73 - + + col2 + + col0 / - col2 * - col1 IS NULL
----

query I rowsort
SELECT DISTINCT - + col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN - col2 * - col2 * + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8886
SELECT * FROM tab1 AS cor0 WHERE NOT - 32 / - col1 < + 48 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8886
SELECT * FROM tab1 AS cor0 WHERE NOT - 32 / - col1 < + 48 + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT - MIN( ALL - + ( - col2 ) ) AS col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8887
SELECT - MIN ( ALL - + ( - col2 ) ) AS col0 FROM tab0 AS cor0
----
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 46 col2, + 95 * - + col0 col0 FROM tab0 AS cor0 WHERE + col2 >= + col0
----
46
-1425
46
-9215

query III rowsort
SELECT * FROM tab2 WHERE ( NULL NOT IN ( col2, 61 * + 43, + - col0 * - col1 + + 56 + + col2 ) )
----

query II rowsort
SELECT - col1, - ( - + 95 ) AS col1 FROM tab2
----
-51
95
-67
95
-77
95

query II rowsort
SELECT DISTINCT + - 24 AS col2, 80 * 83 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NULL
----
-24
6640

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8892
SELECT + ( - COUNT( * ) ) * - + 9 / + COUNT( * ) * 76 + SUM( + CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8892
SELECT + ( - COUNT ( * ) ) * - + 9 / + COUNT ( * ) * 76 + SUM ( + CAST ( NULL AS REAL ) ) FROM tab0
----
NULL

query I rowsort
SELECT ALL 59 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col0 col1 FROM tab2 AS cor0 WHERE - 97 + col1 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8895
SELECT 79 + col2 * + - col1 * + col1 + + ( - CAST( + col1 AS SIGNED ) ) FROM tab0 AS cor0
----
-21
-308369
-4352

skipif mysql # not compatible
query I rowsort label-8895
SELECT 79 + col2 * + - col1 * + col1 + + ( - CAST ( + col1 AS INTEGER ) ) FROM tab0 AS cor0
----
-21
-308369
-4352

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * - 64 + + col1 < col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8897
SELECT DISTINCT + 86 + COUNT( * ) FROM tab0 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-8897
SELECT DISTINCT + 86 + COUNT ( * ) FROM tab0 AS cor0
----
89

query I rowsort
SELECT ALL - - 25 + col2 AS col1 FROM tab0 AS cor0
----
124
35
72

query I rowsort
SELECT DISTINCT col2 - - 55 FROM tab2 AS cor0
----
113
78
95

query I rowsort
SELECT 30 * col1 AS col2 FROM tab1 AS cor0
----
1410
150
420

query I rowsort
SELECT + col1 * - ( + - col0 ) AS col1 FROM tab2 AS cor0
----
2346
4928
5025

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 * + + 55 + + + 83 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8903
SELECT ALL - 65 * - COUNT( * ) - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8903
SELECT ALL - 65 * - COUNT ( * ) - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query II rowsort
SELECT DISTINCT - 11 * col0, col1 AS col0 FROM tab0
----
-1067
1
-165
81
-957
21

query II rowsort
SELECT - 89, + col1 FROM tab2
----
-89
51
-89
67
-89
77

query I rowsort
SELECT DISTINCT 87 + 28 FROM tab2
----
115

query I rowsort
SELECT ALL + + col0 + 14 AS col1 FROM tab2 AS cor0
----
60
78
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT + COUNT( DISTINCT col1 ) - + 1 + + - 18 FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-8908
SELECT + COUNT ( DISTINCT col1 ) - + 1 + + - 18 FROM tab0 AS cor0
----
-16

query II rowsort
SELECT ALL - + col0 + + - col2 AS col1, col2 AS col1 FROM tab1 AS cor0
----
-144
59
-147
96
-159
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8910
SELECT DISTINCT + COUNT( * ) * - 55 FROM tab1 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-8910
SELECT DISTINCT + COUNT ( * ) * - 55 FROM tab1 AS cor0
----
-165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8911
SELECT col0 * - 35 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) NOT IN ( + 92 )
----

skipif mysql # not compatible
query I rowsort label-8911
SELECT col0 * - 35 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) NOT IN ( + 92 )
----

query I rowsort
SELECT + - col2 * + + ( + 5 ) * + col2 * col1 AS col1 FROM tab2 AS cor0
----
-1126940
-134895
-616000

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8913
SELECT + 68 DIV COUNT( * ) - + COUNT( * ) FROM tab1 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-8913
SELECT + 68 / COUNT ( * ) - + COUNT ( * ) FROM tab1 AS cor0
----
19

query I rowsort
SELECT ALL + + 88 * + 33 * - col0 * - 76 AS col2 FROM tab2 AS cor0
----
10152384
14125056
16552800

onlyif mysql # aggregate syntax: 
query II rowsort label-8915
SELECT + COUNT( * ) * - 69, COUNT( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
-207
3

skipif mysql # not compatible
query II rowsort label-8915
SELECT + COUNT ( * ) * - 69, COUNT ( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
-207
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8916
SELECT DISTINCT - COUNT( ALL + - col0 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8916
SELECT DISTINCT - COUNT ( ALL + - col0 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8917
SELECT + 27, CAST( - 57 AS SIGNED ) col0 FROM tab1
----
27
-57
27
-57
27
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8917
SELECT + 27, CAST ( - 57 AS INTEGER ) col0 FROM tab1
----
27
-57
27
-57
27
-57

query III rowsort
SELECT * FROM tab2 WHERE NOT - 83 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8919
SELECT DISTINCT 56 AS col2, MIN( ALL + 39 ) FROM tab1
----
56
39

skipif mysql # not compatible
query II rowsort label-8919
SELECT DISTINCT 56 AS col2, MIN ( ALL + 39 ) FROM tab1
----
56
39

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 BETWEEN - col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 78 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT MIN( ALL 60 ) AS col2 FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-8922
SELECT MIN ( ALL 60 ) AS col2 FROM tab0 AS cor0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8923
SELECT CAST( - col2 AS SIGNED ) col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8923
SELECT CAST ( - col2 AS INTEGER ) col2 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT ALL + - 1 * - - COUNT( * ) + 31 FROM tab1 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-8924
SELECT ALL + - 1 * - - COUNT ( * ) + 31 FROM tab1 AS cor0
----
28

query I rowsort
SELECT - col2 - - col2 * + + col0 * + + col0 * - - 50 + - col1 * ( + col2 ) * col0 AS col1 FROM tab0 cor0
----
3766220
46564848
471598

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8926
SELECT 35 - 29, 21 - - CAST( + + 86 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
6
107
6
107
6
107

skipif mysql # not compatible
query II rowsort label-8926
SELECT 35 - 29, 21 - - CAST ( + + 86 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
6
107
6
107
6
107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8927
SELECT DISTINCT 56 * - CAST( NULL AS SIGNED ) + - + col1 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8927
SELECT DISTINCT 56 * - CAST ( NULL AS INTEGER ) + - + col1 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8928
SELECT col2 DIV + + col0 + - 7 + + 13 + - - col1 + + 26 + 93 DIV + col0 col2 FROM tab0 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
122
34
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8928
SELECT col2 / + + col0 + - 7 + + 13 + - - col1 + + 26 + 93 / + col0 col2 FROM tab0 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
122
34
54

query I rowsort
SELECT - + ( - - col2 ) + 42 FROM tab0 cor0
----
-5
-57
32

query II rowsort
SELECT DISTINCT col1 AS col2, + 54 AS col0 FROM tab0
----
1
54
21
54
81
54

query I rowsort
SELECT - 18 + + col2 AS col1 FROM tab1
----
41
50
78

query II rowsort
SELECT ALL col1 AS col0, 12 FROM tab1 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8933
SELECT - COUNT( * ) + + COUNT( DISTINCT ( - col2 ) ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8933
SELECT - COUNT ( * ) + + COUNT ( DISTINCT ( - col2 ) ) AS col2 FROM tab0
----
0

query I rowsort
SELECT col1 + - + col2 AS col0 FROM tab0
----
-98
11
34

query I rowsort
SELECT col0 * - 68 FROM tab1
----
-3468
-5780
-6188

onlyif mysql # DIV for integer division: 
query I rowsort label-8936
SELECT DISTINCT - 44 + ( col2 ) DIV col0 AS col2 FROM tab0
----
-41
-43
-44

skipif mysql # not compatible
query I rowsort label-8936
SELECT DISTINCT - 44 + ( col2 ) / col0 AS col2 FROM tab0
----
-41
-43
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8937
SELECT ALL COUNT( * ) * - 36 FROM tab0
----
-108

skipif mysql # not compatible
query I rowsort label-8937
SELECT ALL COUNT ( * ) * - 36 FROM tab0
----
-108

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 AS cor0 WHERE NOT col2 * - 52 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8939
SELECT + - col1 DIV + 78 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8939
SELECT + - col1 / + 78 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * + - col1 AS col2 FROM tab2 cor0
----
2346
4928
5025

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 55 IS NOT NULL
----

query I rowsort
SELECT ALL - 43 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

query I rowsort
SELECT ALL - 71 * - 19 FROM tab1
----
1349
1349
1349

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > 11
----

query I rowsort
SELECT ALL - col2 * - 46 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 AS col0, + 1 + + + 94 col2 FROM tab2 AS cor0
----
23
95
40
95
58
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8947
SELECT + 37 DIV - COUNT( * ) FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-8947
SELECT + 37 / - COUNT ( * ) FROM tab2 AS cor0
----
-12

query I rowsort
SELECT DISTINCT ( - + 76 ) AS col0 FROM tab0 AS cor0
----
-76

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * + col2 + - - 48 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8950
SELECT ALL col1 DIV col0 + - col0 FROM tab1 cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-8950
SELECT ALL col1 / col0 + - col0 FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8951
SELECT DISTINCT + 44, col2 + + CAST( + + 57 AS SIGNED ) - + 46 AS col1 FROM tab0 AS cor0
----
44
110
44
21
44
58

skipif mysql # not compatible
query II rowsort label-8951
SELECT DISTINCT + 44, col2 + + CAST ( + + 57 AS INTEGER ) - + 46 AS col1 FROM tab0 AS cor0
----
44
110
44
21
44
58

query I rowsort
SELECT + 5 + - + 70 + - + col2 + 1 FROM tab2
----
-104
-122
-87

query I rowsort
SELECT 52 + + ( col0 ) - 19 AS col0 FROM tab0
----
120
130
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8954
SELECT CAST( + COUNT( * ) AS SIGNED ) + 47 AS col2 FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-8954
SELECT CAST ( + COUNT ( * ) AS INTEGER ) + 47 AS col2 FROM tab1
----
50

query I rowsort
SELECT - col1 + - col1 + + ( col1 ) + + col1 FROM tab1
----
0
0
0

query II rowsort
SELECT - col1 * + col2, + 25 AS col0 FROM tab0
----
-210
25
-3807
25
-99
25

query III rowsort
SELECT ALL * FROM tab1 WHERE - + 16 + 39 IN ( + col2, - col1 / col2 * 94 + - col0, 65, - - col2, 32 )
----

query I rowsort
SELECT col0 + + 36 - - ( - + col0 ) AS col0 FROM tab2
----
36
36
36

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT + col0 + + col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT 55 + + + col0 + col0 AS col1, col2 FROM tab0 AS cor0
----
229
10
249
99
85
47

query I rowsort
SELECT - col2 + - col0 * col1 * - - col2 FROM tab2 AS cor0
----
-197160
-291508
-53981

query I rowsort
SELECT ALL + + col2 + + + 86 FROM tab0 cor0
----
133
185
96

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8963
SELECT * FROM tab2 AS cor0 WHERE CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) + col0 * + 60 - + + 9 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8963
SELECT * FROM tab2 AS cor0 WHERE CAST ( CAST ( NULL AS INTEGER ) AS REAL ) + col0 * + 60 - + + 9 IS NOT NULL
----

query I rowsort
SELECT ALL - - col2 + - + col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT DISTINCT MAX( DISTINCT - col1 ) AS col2 FROM tab0 cor0 WHERE NOT ( NULL ) >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8965
SELECT DISTINCT MAX ( DISTINCT - col1 ) AS col2 FROM tab0 cor0 WHERE NOT ( NULL ) >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT + + MIN( - + 16 ) FROM tab2 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-8966
SELECT + + MIN ( - + 16 ) FROM tab2 AS cor0
----
-16

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 86 BETWEEN + - 28 + - - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT DISTINCT MIN( ALL ( - - col2 ) ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-8968
SELECT DISTINCT MIN ( ALL ( - - col2 ) ) AS col2 FROM tab2
----
23

query III rowsort
SELECT * FROM tab1 WHERE 8 >= - col0 * 36 - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8970
SELECT - 5 AS col0 FROM tab2 WHERE NOT ( NOT col1 * + + 8 + + 72 BETWEEN + - col0 * - CAST( NULL AS SIGNED ) + col1 AND NULL )
----

skipif mysql # not compatible
query I rowsort label-8970
SELECT - 5 AS col0 FROM tab2 WHERE NOT ( NOT col1 * + + 8 + + 72 BETWEEN + - col0 * - CAST ( NULL AS INTEGER ) + col1 AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8971
SELECT ALL - COUNT( * ) * - 92 FROM tab2
----
276

skipif mysql # not compatible
query I rowsort label-8971
SELECT ALL - COUNT ( * ) * - 92 FROM tab2
----
276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8972
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * ( + col1 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8972
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * ( + col1 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL 85 * - - 68 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 WHERE col1 * - col1 <> 52
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-8975
SELECT ALL + 58 DIV + col1 AS col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8975
SELECT ALL + 58 / + col1 AS col2 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT - 98 * - col1 AS col0 FROM tab2 AS cor0
----
4998
6566
7546

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT ALL + MAX( ALL + col2 ) * - 54 + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-3129

skipif mysql # not compatible
query I rowsort label-8977
SELECT ALL + MAX ( ALL + col2 ) * - 54 + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-3129

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8978
SELECT + + col1 / col0 * ( - CAST( NULL AS SIGNED ) ) + + + col2, + col1 FROM tab2 cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-8978
SELECT + + col1 / col0 * ( - CAST ( NULL AS INTEGER ) ) + + + col2, + col1 FROM tab2 cor0
----
NULL
51
NULL
67
NULL
77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < 73
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8980
SELECT ALL + COUNT( * ) * + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8980
SELECT ALL + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query II rowsort
SELECT ALL 50 AS col0, col2 * + + 93 * col0 FROM tab1
----
50
455328
50
466395
50
575484

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT MAX( + - 56 ) AS col2 FROM tab0
----
-56

skipif mysql # not compatible
query I rowsort label-8982
SELECT MAX ( + - 56 ) AS col2 FROM tab0
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8983
SELECT DISTINCT CAST( - + col0 AS SIGNED ) * + col1 FROM tab0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-8983
SELECT DISTINCT CAST ( - + col0 AS INTEGER ) * + col1 FROM tab0
----
-1215
-1827
-97

query III rowsort
SELECT * FROM tab2 WHERE - + 77 <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND + ( col1 )
----

query I rowsort
SELECT ALL - col0 + + ( + - col0 ) * - col2 * - 61 AS col0 FROM tab0
----
-43020
-53157
-585880

onlyif mysql # DIV for integer division: 
query I rowsort label-8987
SELECT 54 + - col1 DIV - + col1 AS col0 FROM tab1
----
55
55
55

skipif mysql # not compatible
query I rowsort label-8987
SELECT 54 + - col1 / - + col1 AS col0 FROM tab1
----
55
55
55

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8988
SELECT * FROM tab2 WHERE ( col0 - - + col2 + - + 87 + col1 ) NOT IN ( - CAST( - + 67 AS SIGNED ) * + 29 * - CAST( NULL AS SIGNED ), + 24 - ( col1 ) )
----

skipif mysql # not compatible
query III rowsort label-8988
SELECT * FROM tab2 WHERE ( col0 - - + col2 + - + 87 + col1 ) NOT IN ( - CAST ( - + 67 AS INTEGER ) * + 29 * - CAST ( NULL AS INTEGER ), + 24 - ( col1 ) )
----

query I rowsort
SELECT + + 20 FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT ALL + 74 + - + COUNT( * ) FROM tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-8990
SELECT ALL + 74 + - + COUNT ( * ) FROM tab0 AS cor0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8991
SELECT * FROM tab0 WHERE ( NOT col0 * + - CAST( + col0 AS SIGNED ) * + col2 + - 17 / + col2 + - ( - col1 ) IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-8991
SELECT * FROM tab0 WHERE ( NOT col0 * + - CAST ( + col0 AS INTEGER ) * + col2 + - 17 / + col2 + - ( - col1 ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8992
SELECT - SUM( DISTINCT 79 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-79

skipif mysql # not compatible
query I rowsort label-8992
SELECT - SUM ( DISTINCT 79 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-79

query I rowsort
SELECT - 7 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query I rowsort
SELECT ALL - col1 + ( + 81 ) AS col1 FROM tab1 AS cor0
----
34
67
76

query I rowsort
SELECT + col1 - + 7 FROM tab1 AS cor0
----
-2
40
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT DISTINCT + COUNT( * ) + SUM( + + col1 ) AS col1 FROM tab0 cor0 WHERE + 11 IS NOT NULL
----
106

skipif mysql # not compatible
query I rowsort label-8996
SELECT DISTINCT + COUNT ( * ) + SUM ( + + col1 ) AS col1 FROM tab0 cor0 WHERE + 11 IS NOT NULL
----
106

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 + - - col1 + + - 85 * - ( + + 68 ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8998
SELECT - CAST( NULL AS DECIMAL ) AS col0, - col1 - + - col2 + + + col1 AS col1 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-8998
SELECT - CAST ( NULL AS REAL ) AS col0, - col1 - + - col2 + + + col1 AS col1 FROM tab0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT - 11 * - 94 AS col0 FROM tab2
----
1034
1034
1034

onlyif mysql # aggregate syntax: 
query I rowsort label-9000
SELECT 83 * COUNT( * ) + - - COUNT( * ) FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9000
SELECT 83 * COUNT ( * ) + - - COUNT ( * ) FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT ALL - col0 * + 32 AS col0 FROM tab1
----
-1632
-2720
-2912

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT ALL - COUNT( - + col1 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9002
SELECT ALL - COUNT ( - + col1 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT DISTINCT - MAX( DISTINCT + + 9 ) AS col2 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9003
SELECT DISTINCT - MAX ( DISTINCT + + 9 ) AS col2 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT DISTINCT + col1 + - col1 + - 37 * - - col2 * - + col1 + + ( - col0 ) AS col2 FROM tab1
----
10830
118161
49677

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 31 / col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9006
SELECT + - CAST( + CAST( + col0 AS SIGNED ) AS SIGNED ) FROM tab2 cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9006
SELECT + - CAST ( + CAST ( + col0 AS INTEGER ) AS INTEGER ) FROM tab2 cor0
----
-46
-64
-75

query I rowsort
SELECT ALL - + 1 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + + col1 + - 4 * + + col0 FROM tab2 AS cor0
----
-133
-179
-233

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= - 64
----

query II rowsort
SELECT col1 + col1 AS col2, + col0 FROM tab2 AS cor0
----
102
46
134
75
154
64

query I rowsort
SELECT - 91 + col2 FROM tab0 AS cor0
----
-44
-81
8

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 50 NOT BETWEEN - 81 * - col1 AND + 75
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9013
SELECT COUNT( * ) DIV + 94 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9013
SELECT COUNT ( * ) / + 94 AS col2 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9014
SELECT + 15 DIV col1 AS col0 FROM tab0
----
0
0
15

skipif mysql # not compatible
query I rowsort label-9014
SELECT + 15 / col1 AS col0 FROM tab0
----
0
0
15

query I rowsort
SELECT DISTINCT 17 + + + 15 FROM tab0
----
32

query I rowsort
SELECT DISTINCT + 54 * - + 91 * + col2 FROM tab0
----
-230958
-486486
-49140

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9017
SELECT ALL * FROM tab1 WHERE CAST( - col1 AS SIGNED ) <= - - col2 / - - 79 + + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9017
SELECT ALL * FROM tab1 WHERE CAST ( - col1 AS INTEGER ) <= - - col2 / - - 79 + + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 - + 66 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 76 + + + col1 FROM tab1 AS cor0
----
-29
-62
-71

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9020
SELECT DISTINCT - col0 + + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9020
SELECT DISTINCT - col0 + + CAST ( NULL AS REAL ) AS col1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT + - 18 - - col0 FROM tab0 AS cor0
----
-3
69
79

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col1 < NULL
----

query I rowsort
SELECT - - col1 + - col0 FROM tab1 cor0
----
-37
-44
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9024
SELECT + CAST( + + 2 AS SIGNED ) AS col0 FROM tab2 WHERE NULL IN ( col0 * col2 )
----

skipif mysql # not compatible
query I rowsort label-9024
SELECT + CAST ( + + 2 AS INTEGER ) AS col0 FROM tab2 WHERE NULL IN ( col0 * col2 )
----

query I rowsort
SELECT ALL + - 39 - 5 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, + col1 AS col0 FROM tab2
----
46
51
64
77
75
67

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0 cor1 WHERE + 14 + - + 15 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT + + 92 * - + MAX( - col1 ) AS col0 FROM tab1 AS cor0
----
460

skipif mysql # not compatible
query I rowsort label-9028
SELECT + + 92 * - + MAX ( - col1 ) AS col0 FROM tab1 AS cor0
----
460

onlyif mysql # DIV for integer division: 
query I rowsort label-9029
SELECT ALL 72 DIV + - col0 FROM tab0 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-9029
SELECT ALL 72 / + - col0 FROM tab0 AS cor0
----
-4
0
0

query I rowsort
SELECT + col2 * - + 33 * - - col1 AS col1 FROM tab0 AS cor0
----
-125631
-3267
-6930

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT MIN( ALL 95 ) FROM tab0 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-9031
SELECT MIN ( ALL 95 ) FROM tab0 AS cor0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9032
SELECT ALL MIN( DISTINCT col1 ) col0 FROM tab0 cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9032
SELECT ALL MIN ( DISTINCT col1 ) col0 FROM tab0 cor0
----
1

query I rowsort
SELECT 34 FROM tab1 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT - 54 * + col2 FROM tab1
----
-3186
-3672
-5184

onlyif mysql # aggregate syntax: 
query II rowsort label-9035
SELECT DISTINCT + SUM( DISTINCT + - 34 ) AS col1, + MIN( + - 98 ) FROM tab0 AS cor0
----
-34
-98

skipif mysql # not compatible
query II rowsort label-9035
SELECT DISTINCT + SUM ( DISTINCT + - 34 ) AS col1, + MIN ( + - 98 ) FROM tab0 AS cor0
----
-34
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT ALL - ( + + COUNT( DISTINCT col1 ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9036
SELECT ALL - ( + + COUNT ( DISTINCT col1 ) ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT ALL - - MAX( DISTINCT - 1 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9037
SELECT ALL - - MAX ( DISTINCT - 1 ) FROM tab1 AS cor0
----
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 13 < NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( ( NULL IS NOT NULL ) )
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL > + 77
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT MAX( ALL 28 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
28

skipif mysql # not compatible
query I rowsort label-9041
SELECT MAX ( ALL 28 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
28

query I rowsort
SELECT - 99 FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

onlyif mysql # aggregate syntax: 
query II rowsort label-9043
SELECT + COUNT( * ) AS col1, - SUM( - col0 ) FROM tab2
----
3
185

skipif mysql # not compatible
query II rowsort label-9043
SELECT + COUNT ( * ) AS col1, - SUM ( - col0 ) FROM tab2
----
3
185

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - 31 - + 64 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 + col0 <= NULL
----

query II rowsort
SELECT - col2 AS col0, 29 FROM tab1 cor0
----
-59
29
-68
29
-96
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2, 68 col2 FROM tab2 AS cor0
----
23
68
40
68
58
68

query II rowsort
SELECT ALL 73, 47 AS col0 FROM tab2 AS cor0
----
73
47
73
47
73
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 1 >= NULL
----

query I rowsort
SELECT + - 34 FROM tab1 WHERE - + col1 + - col1 IS NOT NULL
----
-34
-34
-34

query II rowsort
SELECT col0 AS col0, - col1 FROM tab2 WHERE + + col0 + - + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT ALL + COUNT( * ) + + + 94 AS col2 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-9052
SELECT ALL + COUNT ( * ) + + + 94 AS col2 FROM tab0
----
97

query I rowsort
SELECT + 95 * + + 3 + 16 + + - ( - + 72 ) + 4 FROM tab0
----
377
377
377

onlyif mysql # aggregate syntax: 
query I rowsort label-9054
SELECT ALL 59 + - SUM( DISTINCT - col1 ) FROM tab0
----
162

skipif mysql # not compatible
query I rowsort label-9054
SELECT ALL 59 + - SUM ( DISTINCT - col1 ) FROM tab0
----
162

query I rowsort
SELECT DISTINCT - col2 - + + col2 + - col0 FROM tab1 cor0
----
-203
-227
-243

onlyif mysql # aggregate syntax: 
query I rowsort label-9056
SELECT ALL - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9056
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col1 IS NULL
----
0

query I rowsort
SELECT ALL - 19 + + col0 FROM tab2 AS cor0
----
27
45
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col1 FROM tab2 AS cor0 WHERE col2 = NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + col2 / + col1 * - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9060
SELECT ALL 9 * - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-9060
SELECT ALL 9 * - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT - - COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9061
SELECT - - COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9062
SELECT CAST( NULL AS SIGNED ) - 42 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9062
SELECT CAST ( NULL AS INTEGER ) - 42 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT COUNT( * ) * + 99 AS col1 FROM tab1
----
297

skipif mysql # not compatible
query I rowsort label-9063
SELECT COUNT ( * ) * + 99 AS col1 FROM tab1
----
297

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9064
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * - - col1 NOT BETWEEN col2 - - + col1 AND + CAST( 60 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-9064
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * - - col1 NOT BETWEEN col2 - - + col1 AND + CAST ( 60 AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT ALL + 95 * + + SUM( DISTINCT + 75 ) AS col0 FROM tab0 AS cor0
----
7125

skipif mysql # not compatible
query I rowsort label-9065
SELECT ALL + 95 * + + SUM ( DISTINCT + 75 ) AS col0 FROM tab0 AS cor0
----
7125

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 42 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9067
SELECT ALL * FROM tab1 AS cor0 WHERE 75 >= - CAST( NULL AS DECIMAL ) + + + col2 + - 5 - col2
----

skipif mysql # not compatible
query III rowsort label-9067
SELECT ALL * FROM tab1 AS cor0 WHERE 75 >= - CAST ( NULL AS REAL ) + + + col2 + - 5 - col2
----

query I rowsort
SELECT - 43 AS col0 FROM tab1 cor0
----
-43
-43
-43

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IN ( 36 * - col1, 91 )
----

query I rowsort
SELECT DISTINCT + 87 * - 12 * - - 8 AS col1 FROM tab0
----
-8352

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9071
SELECT ALL col0 AS col0, CAST( col0 AS SIGNED ) AS col2 FROM tab1
----
51
51
85
85
91
91

skipif mysql # not compatible
query II rowsort label-9071
SELECT ALL col0 AS col0, CAST ( col0 AS INTEGER ) AS col2 FROM tab1
----
51
51
85
85
91
91

query III rowsort
SELECT * FROM tab2 WHERE NOT 49 NOT IN ( col2, - 3, + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9073
SELECT DISTINCT SUM( - col0 ) col2 FROM tab1
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9073
SELECT DISTINCT SUM ( - col0 ) col2 FROM tab1
----
-227

query II rowsort
SELECT DISTINCT - col2, 75 AS col1 FROM tab0
----
-10
75
-47
75
-99
75

query I rowsort
SELECT - ( 41 ) FROM tab0
----
-41
-41
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9076
SELECT ALL - + col1 / + CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9076
SELECT ALL - + col1 / + CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * 81 col2 FROM tab0 AS cor0
----
-1701
-6561
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9078
SELECT DISTINCT 71 * + 84 * SUM( col1 ) + - 11 * 17 FROM tab1
----
393437

skipif mysql # not compatible
query I rowsort label-9078
SELECT DISTINCT 71 * + 84 * SUM ( col1 ) + - 11 * 17 FROM tab1
----
393437

query I rowsort
SELECT DISTINCT ( + + ( - col2 ) ) FROM tab1 cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9080
SELECT + 66 + + CAST( - - col1 AS SIGNED ) FROM tab1 AS cor0
----
113
71
80

skipif mysql # not compatible
query I rowsort label-9080
SELECT + 66 + + CAST ( - - col1 AS INTEGER ) FROM tab1 AS cor0
----
113
71
80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9081
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT ( - 44 <> + - col2 + CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-9081
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT ( - 44 <> + - col2 + CAST ( NULL AS INTEGER ) ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= + col1
----

query I rowsort
SELECT DISTINCT + - 65 * - col2 * - col1 FROM tab0 AS cor0
----
-13650
-247455
-6435

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9084
SELECT DISTINCT CAST( col1 AS SIGNED ) * col0 AS col0 FROM tab0 AS cor0 WHERE NOT - col2 - + - 26 = NULL
----

skipif mysql # not compatible
query I rowsort label-9084
SELECT DISTINCT CAST ( col1 AS INTEGER ) * col0 AS col0 FROM tab0 AS cor0 WHERE NOT - col2 - + - 26 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9085
SELECT ALL - 23 * - + CAST( NULL AS SIGNED ) / + COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9085
SELECT ALL - 23 * - + CAST ( NULL AS INTEGER ) / + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 + col0 * - + col1 + col1 - - 58 * col0 + col0 FROM tab0 AS cor0
----
-202
3337
5726

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT COUNT( * ) * ( - COUNT( * ) ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-9087
SELECT COUNT ( * ) * ( - COUNT ( * ) ) FROM tab0
----
-9

query I rowsort
SELECT - col2 * + col2 * 16 FROM tab2
----
-25600
-53824
-8464

onlyif mysql # DIV for integer division: 
query I rowsort label-9089
SELECT col1 DIV - + 28 col0 FROM tab0
----
-2
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9089
SELECT col1 / - + 28 col0 FROM tab0
----
-2
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9090
SELECT + CAST( - 83 AS SIGNED ) AS col2 FROM tab0
----
-83
-83
-83

skipif mysql # not compatible
query I rowsort label-9090
SELECT + CAST ( - 83 AS INTEGER ) AS col2 FROM tab0
----
-83
-83
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9091
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9091
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9092
SELECT DISTINCT - col1 DIV + + ( - col2 ) + + 97 FROM tab1
----
97

skipif mysql # not compatible
query I rowsort label-9092
SELECT DISTINCT - col1 / + + ( - col2 ) + + 97 FROM tab1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT - COUNT( - col2 ) - - - COUNT( * ) - - SUM( DISTINCT + 95 ) FROM tab2 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-9093
SELECT - COUNT ( - col2 ) - - - COUNT ( * ) - - SUM ( DISTINCT + 95 ) FROM tab2 AS cor0
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9094
SELECT - COUNT( * ) + - COUNT( col2 ), - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-6
NULL

skipif mysql # not compatible
query II rowsort label-9094
SELECT - COUNT ( * ) + - COUNT ( col2 ), - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-6
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9095
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + - ( - MIN( 30 ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9095
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + - ( - MIN ( 30 ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 35 FROM tab0 WHERE NOT NULL IS NOT NULL
----
35
35
35

query I rowsort
SELECT - + col1 * - col2 FROM tab2 WHERE NOT - col2 - col0 IS NULL
----
1173
3080
3886

query I rowsort
SELECT DISTINCT + 99 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9099
SELECT - col0 DIV - CAST( - + col1 AS SIGNED ) FROM tab0 cor0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-9099
SELECT - col0 / - CAST ( - + col1 AS INTEGER ) FROM tab0 cor0
----
-4
-97
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9100
SELECT ALL - col0 DIV col1 * col1 DIV col1 + - 58 FROM tab0 AS cor0
----
-155
-58
-62

skipif mysql # not compatible
query I rowsort label-9100
SELECT ALL - col0 / col1 * col1 / col1 + - 58 FROM tab0 AS cor0
----
-155
-58
-62

query II rowsort
SELECT DISTINCT col1, + col0 AS col2 FROM tab0 cor0 WHERE col1 * - - col0 IS NOT NULL
----
1
97
21
87
81
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9102
SELECT - + CAST( NULL AS SIGNED ) / + - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9102
SELECT - + CAST ( NULL AS INTEGER ) / + - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * - col0 + 28 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9104
SELECT + + COUNT( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9104
SELECT + + COUNT ( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col1, + col1 * + + 34 col1 FROM tab2
----
-23
1734
-40
2618
-58
2278

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT DISTINCT - COUNT( * ) * 30 AS col2 FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-9106
SELECT DISTINCT - COUNT ( * ) * 30 AS col2 FROM tab2
----
-90

query I rowsort
SELECT ALL ( - col1 ) FROM tab1 WHERE - col2 > + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT SUM( DISTINCT + - col1 ) AS col2 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-9108
SELECT SUM ( DISTINCT + - col1 ) AS col2 FROM tab2
----
-195

query III rowsort
SELECT * FROM tab1 WHERE NOT + 39 = NULL
----

query I rowsort
SELECT ALL ( + - 96 ) FROM tab1
----
-96
-96
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9111
SELECT ALL * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) * - + 3 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9111
SELECT ALL * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) * - + 3 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9112
SELECT DISTINCT - ( - CAST( col1 AS SIGNED ) ) + - + 63 AS col0 FROM tab0 AS cor0
----
-42
-62
18

skipif mysql # not compatible
query I rowsort label-9112
SELECT DISTINCT - ( - CAST ( col1 AS INTEGER ) ) + - + 63 AS col0 FROM tab0 AS cor0
----
-42
-62
18

query I rowsort
SELECT + col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( + col1 ) * - col0 / - col2 NOT BETWEEN NULL AND + + 65
----

query I rowsort
SELECT ALL - - col2 + + 31 FROM tab2 AS cor0
----
54
71
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT DISTINCT + MIN( + - 11 ) FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-9115
SELECT DISTINCT + MIN ( + - 11 ) FROM tab2
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-9116
SELECT ALL 45 AS col2, - COUNT( * ) * 30 FROM tab1
----
45
-90

skipif mysql # not compatible
query II rowsort label-9116
SELECT ALL 45 AS col2, - COUNT ( * ) * 30 FROM tab1
----
45
-90

query II rowsort
SELECT 66 AS col0, - col2 FROM tab1
----
66
-59
66
-68
66
-96

query I rowsort
SELECT ( 34 ) AS col1 FROM tab0 cor0
----
34
34
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9119
SELECT DISTINCT - col2 - - 29 * 24 / + CAST( NULL AS SIGNED ), + col2 AS col0 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-9119
SELECT DISTINCT - col2 - - 29 * 24 / + CAST ( NULL AS INTEGER ), + col2 AS col0 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT ALL + + col2 + + 68 FROM tab0 AS cor0
----
115
167
78

query I rowsort
SELECT DISTINCT - col0 + + - col2 AS col1 FROM tab2 cor0
----
-104
-133
-69

query II rowsort
SELECT ALL + col0 - 27, 85 AS col2 FROM tab1 AS cor0
----
24
85
58
85
64
85

query I rowsort
SELECT ALL 80 * 15 AS col0 FROM tab0
----
1200
1200
1200

query III rowsort
SELECT * FROM tab2 WHERE + 69 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - 17 * 48 + col0 + - 46 FROM tab2 AS cor0
----
-787
-798
-816

query I rowsort
SELECT DISTINCT 68 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9127
SELECT + COUNT( * ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9127
SELECT + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - 1 * - col2 * - - col0 * col2 AS col1 FROM tab2 AS cor0
----
102400
24334
252300

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT DISTINCT MAX( + col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-9129
SELECT DISTINCT MAX ( + col1 ) FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9130
SELECT ALL MIN( ALL col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9130
SELECT ALL MIN ( ALL col0 ) FROM tab0 AS cor0
----
15

query I rowsort
SELECT DISTINCT 61 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT - SUM( ALL - 20 ) AS col2 FROM tab2 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-9132
SELECT - SUM ( ALL - 20 ) AS col2 FROM tab2 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9133
SELECT ALL COUNT( ALL + col0 ) * + ( - - COUNT( * ) ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-9133
SELECT ALL COUNT ( ALL + col0 ) * + ( - - COUNT ( * ) ) FROM tab0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9134
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9134
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - + col2 col1 FROM tab0
----
210
3807
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9136
SELECT DISTINCT CAST( + col0 AS SIGNED ) * - - 31 - + - 22 FROM tab2
----
1448
2006
2347

skipif mysql # not compatible
query I rowsort label-9136
SELECT DISTINCT CAST ( + col0 AS INTEGER ) * - - 31 - + - 22 FROM tab2
----
1448
2006
2347

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 24 * + - col2 col0, col1 FROM tab2
----
-1392
67
-552
51
-960
77

query I rowsort
SELECT ALL - 77 * - col1 * - 24 AS col0 FROM tab1
----
-25872
-86856
-9240

onlyif mysql # aggregate syntax: 
query I rowsort label-9139
SELECT DISTINCT COUNT( * ) + + 61 FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-9139
SELECT DISTINCT COUNT ( * ) + + 61 FROM tab1
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9140
SELECT DISTINCT + + CAST( NULL AS SIGNED ), col2 AS col2 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) <> - col1
----

skipif mysql # not compatible
query II rowsort label-9140
SELECT DISTINCT + + CAST ( NULL AS INTEGER ), col2 AS col2 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) <> - col1
----

query I rowsort
SELECT ALL col1 * - col2 * - 71 + - ( + col2 ) AS col0 FROM tab0 AS cor0
----
14900
270250
6930

onlyif mysql # aggregate syntax: 
query I rowsort label-9142
SELECT + COUNT( * ) + 11 AS col2 FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-9142
SELECT + COUNT ( * ) + 11 AS col2 FROM tab0
----
14

query II rowsort
SELECT - 97, 1 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 8580bcbce059b7548a41e1025bf0c0b3

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT ALL - + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9144
SELECT ALL - + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT col0 * + 23 * - col0 FROM tab0 AS cor0
----
-174087
-216407
-5175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9146
SELECT ALL + - 66 - + - col1 * - CAST( NULL AS SIGNED ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9146
SELECT ALL + - 66 - + - col1 * - CAST ( NULL AS INTEGER ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9147
SELECT + 29 AS col0 FROM tab2 AS cor0 WHERE col0 > + CAST( - + 27 AS DECIMAL )
----
29
29
29

skipif mysql # not compatible
query I rowsort label-9147
SELECT + 29 AS col0 FROM tab2 AS cor0 WHERE col0 > + CAST ( - + 27 AS REAL )
----
29
29
29

onlyif mysql # DIV for integer division: 
query I rowsort label-9148
SELECT DISTINCT col2 * col2 DIV + 65 + + + 23 + - col1 - + 79 * col1 AS col0 FROM tab2 AS cor0
----
-4049
-5286
-6113

skipif mysql # not compatible
query I rowsort label-9148
SELECT DISTINCT col2 * col2 / + 65 + + + 23 + - col1 - + 79 * col1 AS col0 FROM tab2 AS cor0
----
-4049
-5286
-6113

onlyif mysql # aggregate syntax: 
query II rowsort label-9149
SELECT ALL 42, COUNT( * ) AS col0 FROM tab1 AS cor0
----
42
3

skipif mysql # not compatible
query II rowsort label-9149
SELECT ALL 42, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
42
3

query I rowsort
SELECT - - ( + - col2 ) FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT - col1 - - - col0 * + - col1 - 80 FROM tab2 AS cor0
----
2215
4771
4878

onlyif mysql # aggregate syntax: 
query II rowsort label-9152
SELECT MAX( + - col0 ), COUNT( * ) * - - ( COUNT( * ) ) AS col0 FROM tab0
----
-15
9

skipif mysql # not compatible
query II rowsort label-9152
SELECT MAX ( + - col0 ), COUNT ( * ) * - - ( COUNT ( * ) ) AS col0 FROM tab0
----
-15
9

query I rowsort
SELECT col2 - - + 83 * - 56 AS col0 FROM tab2
----
-4590
-4608
-4625

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IS NOT NULL AND NULL IS NOT NULL
----

query I rowsort
SELECT 46 * + col1 FROM tab1
----
2162
230
644

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 >= - col2 * - col2
----

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT ( NOT - + ( col0 ) IS NOT NULL )
----
14
47
5

onlyif mysql # DIV for integer division: 
query II rowsort label-9158
SELECT + 28 DIV + 82 AS col0, - 28 FROM tab1 cor0
----
0
-28
0
-28
0
-28

skipif mysql # not compatible
query II rowsort label-9158
SELECT + 28 / + 82 AS col0, - 28 FROM tab1 cor0
----
0
-28
0
-28
0
-28

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = + 79 + - + col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + ( + + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9161
SELECT - - 33 * + - CAST( NULL AS SIGNED ) * - 60 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9161
SELECT - - 33 * + - CAST ( NULL AS INTEGER ) * - 60 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - col0 * - 83 + - + col1 AS col2, col1 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1164
81
7200
21
8050
1

query I rowsort
SELECT + - ( + 69 ) * - col1 FROM tab1 AS cor0
----
3243
345
966

query I rowsort
SELECT + 2 * - ( - col0 ) AS col0 FROM tab2 AS cor0
----
128
150
92

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL > ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - col0 + 13 + 72 col0 FROM tab1 AS cor0
----
2686
7310
8366

query I rowsort
SELECT - col0 * - - 25 + + col2 * - - col1 FROM tab0 AS cor0
----
-1965
-2326
3432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9168
SELECT DISTINCT + + 34 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9168
SELECT DISTINCT + + 34 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 90 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 44 + col2 AS col2 FROM tab2
----
102
67
84

query I rowsort
SELECT - col1 * + col0 + 19 AS col1 FROM tab2
----
-2327
-4909
-5006

query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE ( col0 ) >= ( col2 )
----
87

query I rowsort
SELECT col0 - - 23 * - ( + 33 * + 57 + col1 * - col1 ) FROM tab1
----
-38704
-42603
7635

onlyif mysql # aggregate syntax: 
query I rowsort label-9174
SELECT - COUNT( * ) + 58 AS col2 FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-9174
SELECT - COUNT ( * ) + 58 AS col2 FROM tab1
----
55

query I rowsort
SELECT + col2 + - 67 AS col2 FROM tab2
----
-27
-44
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9176
SELECT DISTINCT + 23 * COUNT( + col1 ) AS col2 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-9176
SELECT DISTINCT + 23 * COUNT ( + col1 ) AS col2 FROM tab1
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9177
SELECT 98 * - 39 + + CAST( - col1 AS SIGNED ) AS col0 FROM tab1
----
-3827
-3836
-3869

skipif mysql # not compatible
query I rowsort label-9177
SELECT 98 * - 39 + + CAST ( - col1 AS INTEGER ) AS col0 FROM tab1
----
-3827
-3836
-3869

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( ( + 37 ) )
----

query I rowsort
SELECT DISTINCT + 46 * col2 AS col2 FROM tab0
----
2162
4554
460

onlyif mysql # DIV for integer division: 
query I rowsort label-9180
SELECT ALL + col1 - + 53 DIV 30 AS col1 FROM tab0
----
0
20
80

skipif mysql # not compatible
query I rowsort label-9180
SELECT ALL + col1 - + 53 / 30 AS col1 FROM tab0
----
0
20
80

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 WHERE NULL < col2
----

query I rowsort
SELECT ALL - ( + col0 ) * - col2 FROM tab0
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9183
SELECT + CAST( col2 AS SIGNED ) DIV 92 col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9183
SELECT + CAST ( col2 AS INTEGER ) / 92 col2 FROM tab0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9184
SELECT - 10 DIV - col1 AS col0 FROM tab1
----
0
0
2

skipif mysql # not compatible
query I rowsort label-9184
SELECT - 10 / - col1 AS col0 FROM tab1
----
0
0
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9185
SELECT DISTINCT + CAST( col0 AS SIGNED ) AS col2 FROM tab1 WHERE NULL BETWEEN 77 AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-9185
SELECT DISTINCT + CAST ( col0 AS INTEGER ) AS col2 FROM tab1 WHERE NULL BETWEEN 77 AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 - col1 NOT IN ( 58 + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - ( + 45 ) + 56 AS col1 FROM tab0
----
11

query I rowsort
SELECT col1 * + 62 FROM tab1
----
2914
310
868

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9189
SELECT COUNT( * ) * 60 - MAX( col2 ) DIV + 44 FROM tab2
----
179

skipif mysql # not compatible
query I rowsort label-9189
SELECT COUNT ( * ) * 60 - MAX ( col2 ) / + 44 FROM tab2
----
179

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9190
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9190
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT SUM( DISTINCT col2 ) - COUNT( * ) FROM tab1
----
220

skipif mysql # not compatible
query I rowsort label-9191
SELECT SUM ( DISTINCT col2 ) - COUNT ( * ) FROM tab1
----
220

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 IN ( 13 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 45 FROM tab2 WHERE NOT ( + 41 * + col0 ) IS NOT NULL
----

query I rowsort
SELECT 44 * + col0 FROM tab0 WHERE - 29 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 24 * 60 ) IS NOT NULL
----

query I rowsort
SELECT - ( 84 ) AS col2 FROM tab0
----
-84
-84
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT + COUNT( ALL 20 ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9197
SELECT + COUNT ( ALL 20 ) col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - ( - 36 ) + col0 AS col1 FROM tab0
----
123
133
51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 <= col1 - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT ALL - ( - SUM( ALL - col1 ) ) FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-9200
SELECT ALL - ( - SUM ( ALL - col1 ) ) FROM tab2 cor0
----
-195

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col0 ) + col2 * ( col1 * - col0 ) NOT BETWEEN + col0 AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 45 NOT IN ( + 41 )
----

query I rowsort
SELECT ALL - 92 + - col2 AS col2 FROM tab2 AS cor0
----
-115
-132
-150

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL < - col1 * col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col1 ) <= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT + 43 + MAX( ALL - 95 ) AS col0 FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-9206
SELECT + 43 + MAX ( ALL - 95 ) AS col0 FROM tab0 AS cor0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9207
SELECT MIN( DISTINCT col1 ) FROM tab0 AS cor0 WHERE NOT NULL IN ( - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9207
SELECT MIN ( DISTINCT col1 ) FROM tab0 AS cor0 WHERE NOT NULL IN ( - col2 )
----
NULL

query I rowsort
SELECT 23 + col1 AS col2 FROM tab2 AS cor0
----
100
74
90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9209
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 + col0 IN ( CAST( 60 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9209
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 + col0 IN ( CAST ( 60 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 63 * + col0 col0 FROM tab1 AS cor0
----
3213
5355
5733

query I rowsort
SELECT + col2 / col1 FROM tab0 WHERE NULL NOT IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT DISTINCT + ( 69 ) + COUNT( * ) AS col1 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-9212
SELECT DISTINCT + ( 69 ) + COUNT ( * ) AS col1 FROM tab0
----
72

query III rowsort
SELECT * FROM tab1 WHERE - col0 NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT - ( + 77 ) FROM tab1
----
-77
-77
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9215
SELECT * FROM tab1 WHERE col0 NOT IN ( - CAST( - 97 AS SIGNED ) + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9215
SELECT * FROM tab1 WHERE col0 NOT IN ( - CAST ( - 97 AS INTEGER ) + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 * - - 53 AS col2 FROM tab2
----
-2703
-3551
-4081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 44 ) + + col0 col0 FROM tab1
----
129
135
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9218
SELECT DISTINCT - CAST( MIN( 77 ) AS SIGNED ) FROM tab1 WHERE ( ( col2 ) ) > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9218
SELECT DISTINCT - CAST ( MIN ( 77 ) AS INTEGER ) FROM tab1 WHERE ( ( col2 ) ) > NULL
----
NULL

query I rowsort
SELECT 94 * - col1 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 + 5 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col1 * + ( 41 ) - 52
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9223
SELECT ALL + + col0 * - ( - col2 ) DIV + col2 AS col1 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-9223
SELECT ALL + + col0 * - ( - col2 ) / + col2 AS col1 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT - col2 + + col1 * col1 + + col2 AS col2 FROM tab0
----
1
441
6561

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9225
SELECT DISTINCT + + COUNT( ALL + 70 ) + + COUNT( * ) DIV + 24 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9225
SELECT DISTINCT + + COUNT ( ALL + 70 ) + + COUNT ( * ) / + 24 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT 92 IS NOT NULL
----

query I rowsort
SELECT ALL ( 20 ) AS col1 FROM tab0
----
20
20
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9228
SELECT ALL CAST( NULL AS SIGNED ) / - col0 + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9228
SELECT ALL CAST ( NULL AS INTEGER ) / - col0 + col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 + - + col1 <= ( + col1 / + 81 )
----
15
81
47

query II rowsort
SELECT + col0 AS col0, - ( + col1 ) AS col0 FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9231
SELECT + 95 DIV + COUNT( * ) AS col2 FROM tab2 cor0 WHERE col0 <= ( - - col0 )
----
31

skipif mysql # not compatible
query I rowsort label-9231
SELECT + 95 / + COUNT ( * ) AS col2 FROM tab2 cor0 WHERE col0 <= ( - - col0 )
----
31

query I rowsort
SELECT DISTINCT + - col2 * - col2 + + col2 * 90 FROM tab0 AS cor0
----
1000
18711
6439

query I rowsort
SELECT ALL 66 + + col1 AS col2 FROM tab0 cor0
----
147
67
87

onlyif mysql # DIV for integer division: 
query I rowsort label-9234
SELECT - 33 DIV col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9234
SELECT - 33 / col0 FROM tab1 cor0
----
0
0
0

query II rowsort
SELECT col0 AS col2, - col2 * + ( 23 ) + 41 FROM tab2 AS cor0
----
46
-488
64
-879
75
-1293

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 IN ( + 58 + - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9237
SELECT ALL + 10 DIV ( col0 ) AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9237
SELECT ALL + 10 / ( col0 ) AS col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( col1 ) IN ( col2 * + 99 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9239
SELECT + COUNT( ALL - - col2 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9239
SELECT + COUNT ( ALL - - col2 ) AS col0 FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 99 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9241
SELECT DISTINCT MIN( - col2 ), 42 col0 FROM tab0
----
-99
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9241
SELECT DISTINCT MIN ( - col2 ), 42 col0 FROM tab0
----
-99
42

query II rowsort
SELECT - ( - col0 ) AS col2, col0 FROM tab2 cor0
----
46
46
64
64
75
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9243
SELECT - - col2 DIV - 7 + + 56 * - 13 AS col2 FROM tab1 AS cor0
----
-736
-737
-741

skipif mysql # not compatible
query I rowsort label-9243
SELECT - - col2 / - 7 + + 56 * - 13 AS col2 FROM tab1 AS cor0
----
-736
-737
-741

query I rowsort
SELECT DISTINCT - 69 AS col0 FROM tab0 WHERE + 37 > - col1
----
-69

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 76 > + col2 + + + ( col0 ) + 58
----

query I rowsort
SELECT ALL - ( - ( ( col0 ) ) ) FROM tab2
----
46
64
75

query I rowsort
SELECT col2 * + + 77 FROM tab1 AS cor0
----
4543
5236
7392

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 - - - 62 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - 70 + + col0 AS col1 FROM tab2 AS cor0
----
116
134
145

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - col0 + 46 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9251
SELECT + MIN( - - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9251
SELECT + MIN ( - - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT DISTINCT - ( - - MAX( DISTINCT - 27 ) ) AS col1 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-9252
SELECT DISTINCT - ( - - MAX ( DISTINCT - 27 ) ) AS col1 FROM tab1 AS cor0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9253
SELECT 17 * + MAX( - ( + col0 ) ) FROM tab2 AS cor0 WHERE - col1 NOT BETWEEN 79 + - + col0 + - col1 AND 29
----
-782

skipif mysql # not compatible
query I rowsort label-9253
SELECT 17 * + MAX ( - ( + col0 ) ) FROM tab2 AS cor0 WHERE - col1 NOT BETWEEN 79 + - + col0 + - col1 AND 29
----
-782

query I rowsort
SELECT + col0 + + ( - col0 ) + 26 FROM tab0 AS cor0 WHERE col0 * col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col1 + col0 IN ( - ( + 13 ) + + col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE 81 IS NULL
----

query III rowsort
SELECT DISTINCT col2, col0, 9 FROM tab2
----
9 values hashing to 711c492cfb9a6aaf41e781a69a16a081

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT DISTINCT 43 + + + 23 * COUNT( * ) FROM tab1, tab0 cor0
----
250

skipif mysql # not compatible
query I rowsort label-9258
SELECT DISTINCT 43 + + + 23 * COUNT ( * ) FROM tab1, tab0 cor0
----
250

onlyif mysql # aggregate syntax: 
query II rowsort label-9259
SELECT ALL + COUNT( * ) AS col1, + SUM( DISTINCT - 32 ) * COUNT( DISTINCT - 50 ) FROM tab0
----
3
-32

skipif mysql # not compatible
query II rowsort label-9259
SELECT ALL + COUNT ( * ) AS col1, + SUM ( DISTINCT - 32 ) * COUNT ( DISTINCT - 50 ) FROM tab0
----
3
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT ALL COUNT( * ) + + SUM( + - col2 ) + MAX( + - col0 ) AS col0 FROM tab2
----
-164

skipif mysql # not compatible
query I rowsort label-9260
SELECT ALL COUNT ( * ) + + SUM ( + - col2 ) + MAX ( + - col0 ) AS col0 FROM tab2
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT DISTINCT COUNT( * ) col2 FROM tab2 WHERE ( ( NULL ) IN ( + 71 - - 52 - col2 * + 72 ) )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9261
SELECT DISTINCT COUNT ( * ) col2 FROM tab2 WHERE ( ( NULL ) IN ( + 71 - - 52 - col2 * + 72 ) )
----
0

query I rowsort
SELECT 24 * - + 65 + - col2 AS col1 FROM tab0
----
-1570
-1607
-1659

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT 44 + + COUNT( * ) * - + 53 FROM tab1
----
-115

skipif mysql # not compatible
query I rowsort label-9263
SELECT 44 + + COUNT ( * ) * - + 53 FROM tab1
----
-115

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 70 + - col0 col1, + col2 AS col0 FROM tab0 AS cor0
----
-17
10
-27
99
55
47

query I rowsort
SELECT DISTINCT - + col0 + + + col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 <= ( 82 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT ALL - MAX( DISTINCT + col1 ) - - 65 - - COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9267
SELECT ALL - MAX ( DISTINCT + col1 ) - - 65 - - COUNT ( * ) FROM tab2 AS cor0
----
-9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 73 * 55 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 - - 49 = + 26 / - col1 - + - col2
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 46 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col1 FROM tab2 AS cor0 WHERE ( + 68 * + 34 + ( 59 ) ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9272
SELECT - CAST( - col1 AS SIGNED ) - - col0 FROM tab2 AS cor0
----
141
142
97

skipif mysql # not compatible
query I rowsort label-9272
SELECT - CAST ( - col1 AS INTEGER ) - - col0 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9273
SELECT DISTINCT + 1 * 77 DIV COUNT( * ) FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-9273
SELECT DISTINCT + 1 * 77 / COUNT ( * ) FROM tab2 AS cor0
----
25

query II rowsort
SELECT ALL - - 30 * + - col0 AS col2, - col0 AS col1 FROM tab1 AS cor0
----
-1530
-51
-2550
-85
-2730
-91

query I rowsort
SELECT + 34 FROM tab2 AS cor0 WHERE NOT + col0 - + + col1 * 70 > - 47 + - + col0
----
34
34
34

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * + col0 + - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9277
SELECT col0 DIV col0 DIV + col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9277
SELECT col0 / col0 / + col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 AS col0 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
-46
-64
-75

query I rowsort
SELECT - col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT ALL + + SUM( ALL + col0 ) * + ( - 33 ) FROM tab2 AS cor0
----
-6105

skipif mysql # not compatible
query I rowsort label-9280
SELECT ALL + + SUM ( ALL + col0 ) * + ( - 33 ) FROM tab2 AS cor0
----
-6105

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT ALL + - COUNT( ALL + + col0 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9281
SELECT ALL + - COUNT ( ALL + + col0 ) FROM tab1 cor0
----
-3

query I rowsort
SELECT DISTINCT ( + ( col2 ) ) AS col1 FROM tab1 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT + col0 + - col0 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9284
SELECT + AVG ( + - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9284
SELECT + AVG ( + - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col1 ) = NULL
----

query II rowsort
SELECT DISTINCT col2 AS col2, - col1 FROM tab0
----
10
-21
47
-81
99
-1

query I rowsort
SELECT ALL - 90 * ( + 11 ) FROM tab2
----
-990
-990
-990

query I rowsort
SELECT DISTINCT 46 * + col0 FROM tab1
----
2346
3910
4186

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + - 58 ) * - col0 + + + col0 col2 FROM tab2
----
2714
3776
4425

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT - MAX( col0 ) * + COUNT( * ) FROM tab0
----
-291

skipif mysql # not compatible
query I rowsort label-9290
SELECT - MAX ( col0 ) * + COUNT ( * ) FROM tab0
----
-291

onlyif mysql # DIV for integer division: 
query I rowsort label-9291
SELECT - col1 * 24 * col1 DIV + 41 FROM tab0
----
-258
-3840
0

skipif mysql # not compatible
query I rowsort label-9291
SELECT - col1 * 24 * col1 / + 41 FROM tab0
----
-258
-3840
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = ( - col2 ) + + 13 + - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9293
SELECT ALL + COUNT( ALL - - col2 ) FROM tab1 AS cor0 WHERE NOT col0 - + + 71 + - col0 / - + CAST( - col0 AS SIGNED ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9293
SELECT ALL + COUNT ( ALL - - col2 ) FROM tab1 AS cor0 WHERE NOT col0 - + + 71 + - col0 / - + CAST ( - col0 AS INTEGER ) IS NULL
----
3

query I rowsort
SELECT DISTINCT + col1 * + 35 AS col1 FROM tab2 AS cor0
----
1785
2345
2695

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9295
SELECT ( + - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9295
SELECT ( + - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9296
SELECT ALL - - SUM( col0 ) + + MIN( DISTINCT + + col2 ) FROM tab1 AS cor0
----
286

skipif mysql # not compatible
query I rowsort label-9296
SELECT ALL - - SUM ( col0 ) + + MIN ( DISTINCT + + col2 ) FROM tab1 AS cor0
----
286

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + 35 * - + col0 col0 FROM tab2 AS cor0
----
-1656
-2304
-2700

query I rowsort
SELECT ALL 39 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 48 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-9300
SELECT ALL col1 + col2 AS col0, col2 DIV - - col0 AS col1 FROM tab0 cor0
----
100
1
128
3
31
0

skipif mysql # not compatible
query II rowsort label-9300
SELECT ALL col1 + col2 AS col0, col2 / - - col0 AS col1 FROM tab0 cor0
----
100
1
128
3
31
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9301
SELECT DISTINCT + 34 + - + ( COUNT( * ) ) * 50 AS col1 FROM tab2 AS cor0
----
-116

skipif mysql # not compatible
query I rowsort label-9301
SELECT DISTINCT + 34 + - + ( COUNT ( * ) ) * 50 AS col1 FROM tab2 AS cor0
----
-116

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 16 col0 FROM tab1 AS cor0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9303
SELECT ALL col1 * col2 * - CAST( NULL AS SIGNED ) * col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9303
SELECT ALL col1 * col2 * - CAST ( NULL AS INTEGER ) * col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9304
SELECT DISTINCT col1 DIV + col0 + - col1 * col0 - + col0 FROM tab0
----
-1225
-1914
-194

skipif mysql # not compatible
query I rowsort label-9304
SELECT DISTINCT col1 / + col0 + - col1 * col0 - + col0 FROM tab0
----
-1225
-1914
-194

query I rowsort
SELECT ALL - 95 * col0 + 7 * 89 FROM tab2 AS cor0
----
-3747
-5457
-6502

query I rowsort
SELECT ALL - 74 - col1 AS col0 FROM tab0 cor0
----
-155
-75
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT DISTINCT + COUNT( DISTINCT - col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9307
SELECT DISTINCT + COUNT ( DISTINCT - col0 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9308
SELECT DISTINCT + - 61 - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-9308
SELECT DISTINCT + - 61 - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9309
SELECT CAST( COUNT( * ) AS SIGNED ) + - 66 + - - 18 + COUNT( * ) + - 14 FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-9309
SELECT CAST ( COUNT ( * ) AS INTEGER ) + - 66 + - - 18 + COUNT ( * ) + - 14 FROM tab1 AS cor0
----
-56

query II rowsort
SELECT ALL - col2 AS col1, 3 * - - col1 FROM tab0 AS cor0
----
-10
63
-47
243
-99
3

query II rowsort
SELECT ALL col1 AS col0, + ( - 0 ) AS col0 FROM tab2 AS cor0
----
51
0
67
0
77
0

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
10
47
99

query II rowsort
SELECT + + col1 AS col2, 53 FROM tab0 cor0
----
1
53
21
53
81
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9314
SELECT + CAST( + + col2 AS SIGNED ) FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9314
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 + 8 col0 FROM tab2 AS cor0
----
8
8
8

query I rowsort
SELECT DISTINCT + 39 FROM tab1 WHERE - col2 IS NOT NULL
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9317
SELECT DISTINCT + 29 * + + SUM( col0 ) AS col1 FROM tab1
----
6583

skipif mysql # not compatible
query I rowsort label-9317
SELECT DISTINCT + 29 * + + SUM ( col0 ) AS col1 FROM tab1
----
6583

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9318
SELECT + - col0 FROM tab0 WHERE NOT - col2 NOT BETWEEN + ( - 75 ) + col2 + - CAST( NULL AS SIGNED ) AND + 51
----

skipif mysql # not compatible
query I rowsort label-9318
SELECT + - col0 FROM tab0 WHERE NOT - col2 NOT BETWEEN + ( - 75 ) + col2 + - CAST ( NULL AS INTEGER ) AND + 51
----

query I rowsort
SELECT - 31 * - - col2 * - + col1 FROM tab0
----
118017
3069
6510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9320
SELECT DISTINCT + MAX( ALL - - CAST( - col0 AS SIGNED ) ) FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9320
SELECT DISTINCT + MAX ( ALL - - CAST ( - col0 AS INTEGER ) ) FROM tab1 cor0
----
-51

query I rowsort
SELECT - col1 + - + col1 FROM tab1 AS cor0
----
-10
-28
-94

query I rowsort
SELECT + col1 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col0 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND - col0
----

query I rowsort
SELECT col1 + 11 AS col0 FROM tab1 AS cor0
----
16
25
58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 14 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9326
SELECT CAST( - col0 AS SIGNED ) DIV - 26 + + col1 FROM tab1
----
15
50
8

skipif mysql # not compatible
query I rowsort label-9326
SELECT CAST ( - col0 AS INTEGER ) / - 26 + + col1 FROM tab1
----
15
50
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT DISTINCT COUNT( * ) + 97 FROM tab2
----
100

skipif mysql # not compatible
query I rowsort label-9327
SELECT DISTINCT COUNT ( * ) + 97 FROM tab2
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT DISTINCT MAX( 49 ) + COUNT( DISTINCT - - col2 ) FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-9328
SELECT DISTINCT MAX ( 49 ) + COUNT ( DISTINCT - - col2 ) FROM tab0 AS cor0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT DISTINCT SUM( DISTINCT - 45 ) + COUNT( + + col2 ) + + + 61 + + 47 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-9329
SELECT DISTINCT SUM ( DISTINCT - 45 ) + COUNT ( + + col2 ) + + + 61 + + 47 FROM tab1 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9330
SELECT + CAST( NULL AS SIGNED ) * + col2 * col0 + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9330
SELECT + CAST ( NULL AS INTEGER ) * + col2 * col0 + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 + col2 * + + 57 * - col1 + col0 FROM tab1 AS cor0
----
-16671
-182013
-76461

query I rowsort
SELECT ALL + ( + col1 ) * 46 FROM tab2 AS cor0
----
2346
3082
3542

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT col0 / col2 + - - 72 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 28 * - col0 AS col2 FROM tab2 AS cor0
----
1288
1792
2100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9335
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9335
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9336
SELECT col0 + CAST( - col1 AS SIGNED ) + + + 59 * - col2 AS col1 FROM tab2
----
-1362
-2373
-3414

skipif mysql # not compatible
query I rowsort label-9336
SELECT col0 + CAST ( - col1 AS INTEGER ) + + + 59 * - col2 AS col1 FROM tab2
----
-1362
-2373
-3414

query II rowsort
SELECT ALL - col2 * - col0, col1 * - - 75 AS col0 FROM tab0
----
705
6075
870
1575
9603
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 + - col1 col0 FROM tab1
----
23
56
65

query I rowsort
SELECT + 69 + + col2 AS col1 FROM tab0
----
116
168
79

onlyif mysql # DIV for integer division: 
query I rowsort label-9340
SELECT DISTINCT col1 + + col2 DIV - ( - col2 ) FROM tab1
----
15
48
6

skipif mysql # not compatible
query I rowsort label-9340
SELECT DISTINCT col1 + + col2 / - ( - col2 ) FROM tab1
----
15
48
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9341
SELECT DISTINCT - CAST( + 30 AS SIGNED ) * - 49 * + + 29 + col0 + - col0 FROM tab2
----
42630

skipif mysql # not compatible
query I rowsort label-9341
SELECT DISTINCT - CAST ( + 30 AS INTEGER ) * - 49 * + + 29 + col0 + - col0 FROM tab2
----
42630

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 * + + 43 + + + col2 IN ( + 25 )
----

query I rowsort
SELECT ALL + ( + 4 ) FROM tab2 WHERE NOT + 68 + + col1 * - col1 * + col2 IS NULL
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9344
SELECT ALL + - COUNT( - col0 ) + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9344
SELECT ALL + - COUNT ( - col0 ) + COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9345
SELECT ALL + + ( + ( + COUNT( * ) ) ) - - + CAST( NULL AS SIGNED ) * - + ( + COUNT( * ) ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9345
SELECT ALL + + ( + ( + COUNT ( * ) ) ) - - + CAST ( NULL AS INTEGER ) * - + ( + COUNT ( * ) ) AS col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 * - + col0 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> 96 + + col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 >= ( 31 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9349
SELECT DISTINCT + ( - + COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9349
SELECT DISTINCT + ( - + COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-9350
SELECT DISTINCT + col2 AS col0, col2 DIV + - ( + 27 ) FROM tab2 AS cor0
----
23
0
40
-1
58
-2

skipif mysql # not compatible
query II rowsort label-9350
SELECT DISTINCT + col2 AS col0, col2 / + - ( + 27 ) FROM tab2 AS cor0
----
23
0
40
-1
58
-2

query I rowsort
SELECT DISTINCT + + 79 FROM tab2 cor0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT ( - SUM( ALL 92 ) ) FROM tab0
----
-276

skipif mysql # not compatible
query I rowsort label-9352
SELECT ( - SUM ( ALL 92 ) ) FROM tab0
----
-276

query II rowsort
SELECT DISTINCT col2, - col0 AS col0 FROM tab0
----
10
-87
47
-15
99
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT ALL + 63 * + + MIN( DISTINCT col0 ) AS col2 FROM tab2
----
2898

skipif mysql # not compatible
query I rowsort label-9354
SELECT ALL + 63 * + + MIN ( DISTINCT col0 ) AS col2 FROM tab2
----
2898

query II rowsort
SELECT DISTINCT - 17, col2 AS col2 FROM tab2
----
-17
23
-17
40
-17
58

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL >= + ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT MAX( ALL + col0 ) * - COUNT( * ) FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-9357
SELECT MAX ( ALL + col0 ) * - COUNT ( * ) FROM tab2
----
-225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9358
SELECT DISTINCT - - CAST( col2 AS SIGNED ) * ( ( + col2 ) ) / + + col0 + - 37 * - col1 + - col2 AS col0 FROM tab1 WHERE NOT NULL <> - col2
----

skipif mysql # not compatible
query I rowsort label-9358
SELECT DISTINCT - - CAST ( col2 AS INTEGER ) * ( ( + col2 ) ) / + + col0 + - 37 * - col1 + - col2 AS col0 FROM tab1 WHERE NOT NULL <> - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9359
SELECT ALL 87 * CAST( NULL AS SIGNED ) / - + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9359
SELECT ALL 87 * CAST ( NULL AS INTEGER ) / - + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col2 AS col0, col2 FROM tab0
----
10
10
47
47
99
99

query I rowsort
SELECT DISTINCT - 32 + - col1 AS col1 FROM tab0 WHERE NOT + col0 IS NULL
----
-113
-33
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-9362
SELECT ( COUNT( * ) ), COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-9362
SELECT ( COUNT ( * ) ), COUNT ( * ) FROM tab0
----
3
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 20 <> + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9364
SELECT 46 * CAST( NULL AS SIGNED ) + - - 54 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9364
SELECT 46 * CAST ( NULL AS INTEGER ) + - - 54 AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 7 * 86 <= + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9366
SELECT DISTINCT 87 + - - col2 DIV + - col0 AS col1 FROM tab0 cor0
----
84
86
87

skipif mysql # not compatible
query I rowsort label-9366
SELECT DISTINCT 87 + - - col2 / + - col0 AS col1 FROM tab0 cor0
----
84
86
87

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 13 = - col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - - col1 * - col1, + 13 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 0 + col2 col0 FROM tab2 AS cor0 WHERE NULL >= 89 + col2
----

query I rowsort
SELECT DISTINCT + - col1 * col2 + - - ( - + 59 ) FROM tab2 AS cor0
----
-1232
-3139
-3945

query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE col0 >= + col1
----
59
68
96

query I rowsort
SELECT ALL - 10 - - - col1 AS col1 FROM tab1 AS cor0
----
-15
-24
-57

onlyif mysql # DIV for integer division: 
query II rowsort label-9373
SELECT ALL + col1 DIV - 40 AS col2, col2 AS col0 FROM tab0 AS cor0
----
-2
47
0
10
0
99

skipif mysql # not compatible
query II rowsort label-9373
SELECT ALL + col1 / - 40 AS col2, col2 AS col0 FROM tab0 AS cor0
----
-2
47
0
10
0
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9374
SELECT DISTINCT - + CAST( NULL AS SIGNED ) - - + col2 * col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9374
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) - - + col2 * col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9375
SELECT 98 DIV - col1 AS col2 FROM tab0
----
-1
-4
-98

skipif mysql # not compatible
query I rowsort label-9375
SELECT 98 / - col1 AS col2 FROM tab0
----
-1
-4
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9376
SELECT ALL 58 * - 95 * - - COUNT( * ) FROM tab2
----
-16530

skipif mysql # not compatible
query I rowsort label-9376
SELECT ALL 58 * - 95 * - - COUNT ( * ) FROM tab2
----
-16530

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT - col2 * - 99 < + - 35
----
51
85
91

query II rowsort
SELECT + + 62 AS col2, - col0 AS col2 FROM tab0 cor0
----
62
-15
62
-87
62
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT ALL + SUM( col1 ) col1 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9379
SELECT ALL + SUM ( col1 ) col1 FROM tab0 AS cor0
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-9380
SELECT DISTINCT - + col1 DIV + col2 * + col1 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9380
SELECT DISTINCT - + col1 / + col2 * + col1 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col1 * + 43 FROM tab2
----
2193
2881
3311

onlyif mysql # DIV for integer division: 
query II rowsort label-9382
SELECT + - col2 DIV - col2 AS col1, 96 AS col1 FROM tab0 AS cor0
----
1
96
1
96
1
96

skipif mysql # not compatible
query II rowsort label-9382
SELECT + - col2 / - col2 AS col1, 96 AS col1 FROM tab0 AS cor0
----
1
96
1
96
1
96

query I rowsort
SELECT 24 FROM tab1 AS cor0 WHERE NOT 99 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9384
SELECT MIN( ALL - + col0 ) col1 FROM tab2 cor0
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9384
SELECT MIN ( ALL - + col0 ) col1 FROM tab2 cor0
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9385
SELECT + CAST( NULL AS SIGNED ) + 60 FROM tab1 AS cor0 WHERE NOT 67 NOT IN ( - - col0, + 33 * + - 73 )
----

skipif mysql # not compatible
query I rowsort label-9385
SELECT + CAST ( NULL AS INTEGER ) + 60 FROM tab1 AS cor0 WHERE NOT 67 NOT IN ( - - col0, + 33 * + - 73 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9386
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + - col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9386
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + - col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT ALL - MIN( ALL - col0 ) FROM tab0 WHERE + 95 + + - 70 * - - 77 < col2 * + + col1 * 49
----
97

skipif mysql # not compatible
query I rowsort label-9387
SELECT ALL - MIN ( ALL - col0 ) FROM tab0 WHERE + 95 + + - 70 * - - 77 < col2 * + + col1 * 49
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 35 + col2 col1 FROM tab1
----
24
33
61

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 57 * - col1 = - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-9390
SELECT col2 DIV + col2 + - 21 + - 84 + - + col1 + + 43 AS col0, - col2 col2 FROM tab2 AS cor0
----
-112
-23
-128
-58
-138
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9390
SELECT col2 / + col2 + - 21 + - 84 + - + col1 + + 43 AS col0, - col2 col2 FROM tab2 AS cor0
----
-112
-23
-128
-58
-138
-40

query I rowsort
SELECT - - 23 + col2 - + ( - 48 ) FROM tab1 AS cor0 WHERE 66 BETWEEN NULL AND - + 24 * - col0 * col0 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9392
SELECT ALL COUNT( * ) * + COUNT( * ) FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-9392
SELECT ALL COUNT ( * ) * + COUNT ( * ) FROM tab0 cor0
----
9

query I rowsort
SELECT ALL + 13 * col0 * + - 50 * - col1 AS col0 FROM tab0
----
1187550
63050
789750

onlyif mysql # DIV for integer division: 
query I rowsort label-9394
SELECT ALL col2 + + col2 DIV 61 * - col2 FROM tab1
----
0
0
59

skipif mysql # not compatible
query I rowsort label-9394
SELECT ALL col2 + + col2 / 61 * - col2 FROM tab1
----
0
0
59

query I rowsort
SELECT DISTINCT - + 49 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9396
SELECT + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9396
SELECT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT + SUM( - + 97 ) col1 FROM tab2 AS cor0
----
-291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9397
SELECT + SUM ( - + 97 ) col1 FROM tab2 AS cor0
----
-291

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 BETWEEN - col2 * + col2 * 11 + + col2 AND col2 - - - col1
----

query I rowsort
SELECT - col2 - + - col2 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - - 61 - + ( + col0 ) FROM tab2 AS cor0
----
-14
-3
15

query I rowsort
SELECT DISTINCT - col2 * - col1 + + col1 + - 27 + + 66 AS col0 FROM tab0 AS cor0
----
139
270
3927

query I rowsort
SELECT DISTINCT ( - col2 ) * + - col2 + - col2 FROM tab2 AS cor0
----
1560
3306
506

query I rowsort
SELECT + 39 - - + 47 FROM tab2 AS cor0
----
86
86
86

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9404
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( - + 69 AS DECIMAL ) = 74
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9404
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( - + 69 AS REAL ) = 74
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9405
SELECT ALL ( - 29 ) DIV col2 * + + col2 * + - col1 * - col1 + + 55 - col1 FROM tab1
----
41
50
8

skipif mysql # not compatible
query I rowsort label-9405
SELECT ALL ( - 29 ) / col2 * + + col2 * + - col1 * - col1 + + 55 - col1 FROM tab1
----
41
50
8

query I rowsort
SELECT 21 + + - col2 + + 35 - + + col0 FROM tab1
----
-103
-88
-91

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col0 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + col2 col0, - col0 AS col1 FROM tab0
----
196
-97
62
-15
97
-87

query III rowsort
SELECT * FROM tab2 WHERE + col0 + col0 IS NULL
----

query II rowsort
SELECT col2 * + col0 * + 31 + 2 * + + col1, - col0 AS col1 FROM tab0
----
22017
-15
27012
-87
297695
-97

query II rowsort
SELECT DISTINCT - ( - - col0 ), col1 FROM tab1
----
-51
14
-85
5
-91
47

onlyif mysql # DIV for integer division: 
query II rowsort label-9412
SELECT col0 DIV + col2 AS col1, - 73 + + 1 FROM tab1
----
0
-72
1
-72
1
-72

skipif mysql # not compatible
query II rowsort label-9412
SELECT col0 / + col2 AS col1, - 73 + + 1 FROM tab1
----
0
-72
1
-72
1
-72

query I rowsort
SELECT DISTINCT col1 * - 92 AS col0 FROM tab0
----
-1932
-7452
-92

query I rowsort
SELECT ALL - + col2 * + - col2 FROM tab2 AS cor0
----
1600
3364
529

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + ( - col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab1 AS cor0 WHERE NOT - col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT DISTINCT - ( - COUNT( * ) ) * + 45 * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-405

skipif mysql # not compatible
query I rowsort label-9417
SELECT DISTINCT - ( - COUNT ( * ) ) * + 45 * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-405

query I rowsort
SELECT ALL - - col2 * - 36 FROM tab0 cor0
----
-1692
-3564
-360

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT - 71 - - - col0 IN ( - col0 )
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9420
SELECT ALL 41 / - col2 * col0 - + + 10 + + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9420
SELECT ALL 41 / - col2 * col0 - + + 10 + + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9421
SELECT ALL 10 DIV + 7 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-9421
SELECT ALL 10 / + 7 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 28 * - + col2 col0 FROM tab2
----
1120
1624
644

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 69 col1 FROM tab0
----
69
69
69

query I rowsort
SELECT DISTINCT col1 * - + col1 FROM tab1
----
-196
-2209
-25

onlyif mysql # DIV for integer division: 
query II rowsort label-9425
SELECT DISTINCT + 57 * - col1 * 40, col0 DIV + 34 AS col1 FROM tab1 AS cor0
----
-107160
2
-11400
2
-31920
1

skipif mysql # not compatible
query II rowsort label-9425
SELECT DISTINCT + 57 * - col1 * 40, col0 / + 34 AS col1 FROM tab1 AS cor0
----
-107160
2
-11400
2
-31920
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 23 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9427
SELECT ALL - - col1 DIV - 21 FROM tab1 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-9427
SELECT ALL - - col1 / - 21 FROM tab1 AS cor0
----
-2
0
0

query I rowsort
SELECT - col1 + col1 * col1 * 53 - + col2 AS col2 FROM tab0 AS cor0
----
-47
23342
347605

query I rowsort
SELECT + 28 + col2 AS col0 FROM tab1
----
124
87
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9430
SELECT ALL - col2 DIV + col2 + 6 FROM tab0
----
5
5
5

skipif mysql # not compatible
query I rowsort label-9430
SELECT ALL - col2 / + col2 + 6 FROM tab0
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9431
SELECT SUM( ALL + 38 ) * - COUNT( * ) FROM tab2
----
-342

skipif mysql # not compatible
query I rowsort label-9431
SELECT SUM ( ALL + 38 ) * - COUNT ( * ) FROM tab2
----
-342

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9432
SELECT ( CAST( - - col2 AS SIGNED ) ) * + col0 - - + CAST( NULL AS SIGNED ), col2 AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col2
----

skipif mysql # not compatible
query II rowsort label-9432
SELECT ( CAST ( - - col2 AS INTEGER ) ) * + col0 - - + CAST ( NULL AS INTEGER ), col2 AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( + col2 ) col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT - ( - 56 ) * - col1 * + 3 + - 61 + col2 FROM tab0 AS cor0
----
-130
-13622
-3579

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9435
SELECT ALL - col0 + - + CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9435
SELECT ALL - col0 + - + CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9436
SELECT ALL - 94 + COUNT( * ) FROM tab2 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9436
SELECT ALL - 94 + COUNT ( * ) FROM tab2 cor0
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + - col2 col0 FROM tab2 AS cor0
----
17
23
24

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 * - 63 BETWEEN + col0 * - 29 * + col0 + + + 18 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 41 + - 65 col1 FROM tab2 AS cor0
----
-106
-106
-106

query I rowsort
SELECT DISTINCT - 54 - col1 AS col2 FROM tab1 AS cor0
----
-101
-59
-68

query I rowsort
SELECT ALL + col0 * + + 13 + + col0 FROM tab2 AS cor0
----
1050
644
896

onlyif mysql # DIV for integer division: 
query I rowsort label-9442
SELECT ALL - 40 - - ( + + 5 ) DIV - + col1 AS col0 FROM tab1 AS cor0
----
-40
-40
-41

skipif mysql # not compatible
query I rowsort label-9442
SELECT ALL - 40 - - ( + + 5 ) / - + col1 AS col0 FROM tab1 AS cor0
----
-40
-40
-41

query I rowsort
SELECT DISTINCT + col0 * + - 72 * + 75 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT - COUNT( DISTINCT - + col0 ) FROM tab1 AS cor0 WHERE col1 * - - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9444
SELECT - COUNT ( DISTINCT - + col0 ) FROM tab1 AS cor0 WHERE col1 * - - col2 IS NULL
----
0

query I rowsort
SELECT ALL - ( - col1 ) - col0 AS col0 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE + 75 * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT - MIN( DISTINCT - col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-9447
SELECT - MIN ( DISTINCT - col2 ) FROM tab0 AS cor0
----
99

query II rowsort
SELECT 98 - col0 AS col2, - 5 + - col0 + + - 97 AS col1 FROM tab1
----
13
-187
47
-153
7
-193

onlyif mysql # aggregate syntax: 
query II rowsort label-9449
SELECT DISTINCT - 90 AS col1, COUNT( * ) FROM tab0
----
-90
3

skipif mysql # not compatible
query II rowsort label-9449
SELECT DISTINCT - 90 AS col1, COUNT ( * ) FROM tab0
----
-90
3

query II rowsort
SELECT ALL + col1 AS col0, col2 FROM tab2
----
51
23
67
58
77
40

query I rowsort
SELECT DISTINCT + col1 * + 82 FROM tab0 cor0
----
1722
6642
82

query I rowsort
SELECT DISTINCT - - col0 FROM tab1 AS cor0 WHERE + col2 BETWEEN + + col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 61 col0 FROM tab2 AS cor0
----
61
61
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9454
SELECT COUNT( * ) AS col2 FROM tab0 WHERE NOT + 79 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9454
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE NOT + 79 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9455
SELECT - ( COUNT( DISTINCT + col1 ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9455
SELECT - ( COUNT ( DISTINCT + col1 ) ) AS col0 FROM tab1
----
-3

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE NOT + col2 > NULL
----

query I rowsort
SELECT ALL col1 * - 71 * col2 AS col1 FROM tab0
----
-14910
-270297
-7029

query I rowsort
SELECT 3 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT ALL - col2 + + 80 FROM tab1 AS cor0
----
-16
12
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9460
SELECT - col1 * - CAST( NULL AS SIGNED ) + 90 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9460
SELECT - col1 * - CAST ( NULL AS INTEGER ) + 90 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + 54 * + 36 FROM tab1 AS cor0
----
1944

query I rowsort
SELECT - 39 FROM tab0 AS cor0 WHERE NOT - 76 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 * col2 AS col2 FROM tab0 AS cor0 WHERE NOT col0 * col0 + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9464
SELECT ( - COUNT( * ) ) DIV + + COUNT( * ) col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9464
SELECT ( - COUNT ( * ) ) / + + COUNT ( * ) col2 FROM tab1 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 83 AS col0, + 67 * + - col0 * col1 + + + col0 col1 FROM tab1
----
83
-28390
83
-286468
83
-47787

onlyif mysql # aggregate syntax: 
query I rowsort label-9466
SELECT DISTINCT - COUNT( * ) * - + 14 FROM tab0 WHERE - col1 >= + col0
----
0

skipif mysql # not compatible
query I rowsort label-9466
SELECT DISTINCT - COUNT ( * ) * - + 14 FROM tab0 WHERE - col1 >= + col0
----
0

query I rowsort
SELECT + col0 + 22 AS col2 FROM tab0
----
109
119
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9468
SELECT ALL COUNT( * ) * - SUM( ALL - + col1 ) * - + 45 AS col2 FROM tab1
----
-8910

skipif mysql # not compatible
query I rowsort label-9468
SELECT ALL COUNT ( * ) * - SUM ( ALL - + col1 ) * - + 45 AS col2 FROM tab1
----
-8910

query I rowsort
SELECT DISTINCT - col2 + col0 * + + col2 FROM tab2
----
1035
2520
4292

query I rowsort
SELECT - 77 + col1 * + col2 - + col0 * + 49 FROM tab1
----
-1232
-1340
-3947

query II rowsort
SELECT ( 53 ) AS col0, - 5 * + ( + col0 ) + + col1 FROM tab2 cor0 WHERE NULL IS NULL
----
53
-179
53
-243
53
-308

query I rowsort
SELECT DISTINCT - + 31 AS col1 FROM tab0 cor0
----
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 34 AS col2, + ( - - col1 ) col0 FROM tab0 AS cor0
----
34
1
34
21
34
81

query I rowsort
SELECT DISTINCT + 93 * + col2 - col1 AS col1 FROM tab2 AS cor0
----
2088
3643
5327

query I rowsort
SELECT 87 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9476
SELECT + col0 - ( + ( CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9476
SELECT + col0 - ( + ( CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 - + 86 - col1 * ( - col1 ) + - - col1 + - + ( 68 ) + col0 - - col0 FROM tab2 AS cor0
----
2636
4627
6044

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - ( + col2 ) col2 FROM tab1 AS cor0
----
-144
-147
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-9479
SELECT - + ( + COUNT( * ) ) + + COUNT( * ) + + 39 FROM tab2 AS cor0 WHERE NOT 94 + + 78 > NULL
----
39

skipif mysql # not compatible
query I rowsort label-9479
SELECT - + ( + COUNT ( * ) ) + + COUNT ( * ) + + 39 FROM tab2 AS cor0 WHERE NOT 94 + + 78 > NULL
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-9480
SELECT ALL 39 + - + COUNT( * ) + - 93, + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL IN ( col0 * ( + - col2 ) )
----
-54
0

skipif mysql # not compatible
query II rowsort label-9480
SELECT ALL 39 + - + COUNT ( * ) + - 93, + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL IN ( col0 * ( + - col2 ) )
----
-54
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT DISTINCT + SUM( 52 ) AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-9481
SELECT DISTINCT + SUM ( 52 ) AS col2 FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query II rowsort label-9482
SELECT 30 AS col2, COUNT( * ) AS col0 FROM tab2
----
30
3

skipif mysql # not compatible
query II rowsort label-9482
SELECT 30 AS col2, COUNT ( * ) AS col0 FROM tab2
----
30
3

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - - 45 * + 7 AND + + col2 + - col1 / + + col2
----

query I rowsort
SELECT col0 * - col0 * + col2 AS col2 FROM tab2
----
-163840
-326250
-48668

onlyif mysql # aggregate syntax: 
query I rowsort label-9485
SELECT MIN( - + 30 ) FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-9485
SELECT MIN ( - + 30 ) FROM tab2
----
-30

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 + - ( - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( col0 ) * + + col1 + - 54 + - col0 * + col1 AS col2 FROM tab0
----
-54
-54
-54

query I rowsort
SELECT + 40 * 12 FROM tab2 AS cor0
----
480
480
480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 62 col0 FROM tab0 AS cor0
----
62
62
62

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 13 * - + 1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT - - COUNT( * ) - + ( - - COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-9491
SELECT - - COUNT ( * ) - + ( - - COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col2 + 85 + - - ( - col1 ) * 66 col1 FROM tab1
----
-5260
-5735
-9205

query I rowsort
SELECT ALL 11 AS col1 FROM tab0 cor0 WHERE NOT + col1 IN ( - col0, col1, + ( col0 ) * + - 66, + col1 )
----

query I rowsort
SELECT col0 + + 75 + + col2 - + col2 * - col0 AS col1 FROM tab1 AS cor0
----
5118
5234
6422

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT + COUNT( * ) + COUNT( * ) * + COUNT( * ) AS col0 FROM tab2 cor0
----
12

skipif mysql # not compatible
query I rowsort label-9495
SELECT + COUNT ( * ) + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab2 cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT DISTINCT - 20 * - - 86 + + COUNT( ALL 67 ) col2 FROM tab2 AS cor0
----
-1717

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9496
SELECT DISTINCT - 20 * - - 86 + + COUNT ( ALL 67 ) col2 FROM tab2 AS cor0
----
-1717

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 89 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9498
SELECT ALL 68 * + + CAST( NULL AS SIGNED ) * - 16 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9498
SELECT ALL 68 * + + CAST ( NULL AS INTEGER ) * - 16 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9499
SELECT ALL - MAX( 16 ) * 85 + - 77 FROM tab1
----
-1437

skipif mysql # not compatible
query I rowsort label-9499
SELECT ALL - MAX ( 16 ) * 85 + - 77 FROM tab1
----
-1437

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9500
SELECT COUNT( * ) DIV - COUNT( * ), - 82 AS col2 FROM tab1
----
-1
-82

skipif mysql # not compatible
query II rowsort label-9500
SELECT COUNT ( * ) / - COUNT ( * ), - 82 AS col2 FROM tab1
----
-1
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9501
SELECT - CAST( + - col1 AS SIGNED ) * + + col1 AS col2 FROM tab1
----
196
2209
25

skipif mysql # not compatible
query I rowsort label-9501
SELECT - CAST ( + - col1 AS INTEGER ) * + + col1 AS col2 FROM tab1
----
196
2209
25

query I rowsort
SELECT + 87 * + + col1 AS col2 FROM tab0
----
1827
7047
87

query I rowsort
SELECT ALL col2 * col2 + 94 FROM tab2
----
1694
3458
623

query I rowsort
SELECT DISTINCT - 49 - + col1 FROM tab0 cor0
----
-130
-50
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT DISTINCT COUNT( DISTINCT + + 47 ) + - + 31 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-9505
SELECT DISTINCT COUNT ( DISTINCT + + 47 ) + - + 31 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
94

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 <= - col0
----
15
81
47
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col1 + - col0 * col0 * - + 79 < NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9508
SELECT * FROM tab1 WHERE ( NOT ( NULL BETWEEN NULL AND - CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-9508
SELECT * FROM tab1 WHERE ( NOT ( NULL BETWEEN NULL AND - CAST ( NULL AS INTEGER ) ) )
----

query II rowsort
SELECT DISTINCT 84 * + col1 + + col1 AS col2, col2 + - col0 AS col1 FROM tab2
----
4335
-23
5695
-17
6545
-24

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 89 >= NULL
----

query I rowsort
SELECT - - ( col2 ) * - - 44 AS col0 FROM tab0 AS cor0
----
2068
4356
440

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9513
SELECT CAST( - 98 AS SIGNED ) FROM tab1 AS cor0
----
-98
-98
-98

skipif mysql # not compatible
query I rowsort label-9513
SELECT CAST ( - 98 AS INTEGER ) FROM tab1 AS cor0
----
-98
-98
-98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9514
SELECT DISTINCT - 15, + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-15
NULL

skipif mysql # not compatible
query II rowsort label-9514
SELECT DISTINCT - 15, + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-15
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9515
SELECT ALL - AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9515
SELECT ALL - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT - col1, + col1 + - + col0 AS col2 FROM tab1 AS cor0
----
-14
-37
-47
-44
-5
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 1 col1 FROM tab0 cor0 WHERE NOT NULL IN ( + col0, + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + col0 ) col0, 25 + - + 91 AS col1 FROM tab2
----
46
-66
64
-66
75
-66

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 * col2 * col1 + - + col1 + col0 + - col1 - col0 * - col1 + 59 + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 36 AS col2 FROM tab1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9521
SELECT DISTINCT - MAX( ALL + 51 ) AS col0 FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-9521
SELECT DISTINCT - MAX ( ALL + 51 ) AS col0 FROM tab0
----
-51

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 > + 53
----
46
51
23

query I rowsort
SELECT + + col0 AS col0 FROM tab2 cor0 WHERE NOT ( - - col1 + col0 IS NULL )
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9524
SELECT 83 + - + 8 AS col1, CAST( - col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
75
-15
75
-87
75
-97

skipif mysql # not compatible
query II rowsort label-9524
SELECT 83 + - + 8 AS col1, CAST ( - col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
75
-15
75
-87
75
-97

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 58 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9526
SELECT DISTINCT + col0 + 83 DIV col1 FROM tab0
----
16
180
90

skipif mysql # not compatible
query I rowsort label-9526
SELECT DISTINCT + col0 + 83 / col1 FROM tab0
----
16
180
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT DISTINCT 18 + + COUNT( * ) + + COUNT( 61 ) FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-9527
SELECT DISTINCT 18 + + COUNT ( * ) + + COUNT ( 61 ) FROM tab2
----
24

query II rowsort
SELECT + col1 AS col0, col2 FROM tab1
----
14
96
47
68
5
59

onlyif mysql # aggregate syntax: 
query II rowsort label-9529
SELECT + + 34 AS col0, COUNT( * ) AS col1 FROM tab0 AS cor0
----
34
3

skipif mysql # not compatible
query II rowsort label-9529
SELECT + + 34 AS col0, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
34
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 53 <> + - ( col2 ) + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9531
SELECT - col1 * - - CAST( col0 AS SIGNED ) + - 24 AS col2 FROM tab0 cor0
----
-121
-1239
-1851

skipif mysql # not compatible
query I rowsort label-9531
SELECT - col1 * - - CAST ( col0 AS INTEGER ) + - 24 AS col2 FROM tab0 cor0
----
-121
-1239
-1851

query II rowsort
SELECT col1 AS col2, col2 AS col1 FROM tab1 AS cor0
----
14
96
47
68
5
59

onlyif mysql # DIV for integer division: 
query II rowsort label-9533
SELECT - + col2 AS col2, + 59 DIV - 27 AS col0 FROM tab2 AS cor0
----
-23
-2
-40
-2
-58
-2

skipif mysql # not compatible
query II rowsort label-9533
SELECT - + col2 AS col2, + 59 / - 27 AS col0 FROM tab2 AS cor0
----
-23
-2
-40
-2
-58
-2

query I rowsort
SELECT ALL + col2 * - 74 - - col2 FROM tab2 AS cor0
----
-1679
-2920
-4234

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT DISTINCT + 3 * + col1 AS col2 FROM tab1 AS cor0
----
141
15
42

query I rowsort
SELECT + col1 + - 94 FROM tab2 AS cor0
----
-17
-27
-43

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9538
SELECT DISTINCT * FROM tab2 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9538
SELECT DISTINCT * FROM tab2 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9539
SELECT DISTINCT COUNT( * ) * + + 61 FROM tab2
----
183

skipif mysql # not compatible
query I rowsort label-9539
SELECT DISTINCT COUNT ( * ) * + + 61 FROM tab2
----
183

query I rowsort
SELECT 53 + - col1 FROM tab1
----
39
48
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col2 FROM tab0 WHERE + 59 + - - col1 IS NULL
----

query II rowsort
SELECT ALL - 50 AS col2, col2 - col1 + - ( col1 ) * - 78 FROM tab1
----
-50
1174
-50
3687
-50
444

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT DISTINCT - COUNT( * ) * + + 86 FROM tab0, tab2 AS cor0
----
-774

skipif mysql # not compatible
query I rowsort label-9543
SELECT DISTINCT - COUNT ( * ) * + + 86 FROM tab0, tab2 AS cor0
----
-774

query I rowsort
SELECT DISTINCT col2 + col1 + + 22 AS col1 FROM tab0
----
122
150
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9545
SELECT - 38 + + col1 + + CAST( NULL AS SIGNED ) * col1 * - - col0 * + 26 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9545
SELECT - 38 + + col1 + + CAST ( NULL AS INTEGER ) * col1 * - - col0 * + 26 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + - ( + 23 ) + - 26 FROM tab2 AS cor0
----
-49
-49
-49

query I rowsort
SELECT - ( + ( + 2 ) ) FROM tab2 AS cor0
----
-2
-2
-2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9548
SELECT * FROM tab0 AS cor0 WHERE + 58 * - col0 BETWEEN NULL AND - ( + - CAST( + col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9548
SELECT * FROM tab0 AS cor0 WHERE + 58 * - col0 BETWEEN NULL AND - ( + - CAST ( + col1 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9549
SELECT * FROM tab2 AS cor0 WHERE col2 = CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9549
SELECT * FROM tab2 AS cor0 WHERE col2 = CAST ( col0 AS INTEGER )
----

query II rowsort
SELECT ALL - - 75, col1 AS col2 FROM tab1 AS cor0
----
75
14
75
47
75
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT - MAX( 3 ) FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
-3

skipif mysql # not compatible
query I rowsort label-9551
SELECT - MAX ( 3 ) FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9552
SELECT ALL CAST( col0 AS SIGNED ) * - 72 + 12 + - col1 * + ( - col2 ) + col0 * col0 FROM tab0
----
1527
2536
2964

skipif mysql # not compatible
query I rowsort label-9552
SELECT ALL CAST ( col0 AS INTEGER ) * - 72 + 12 + - col1 * + ( - col2 ) + col0 * col0 FROM tab0
----
1527
2536
2964

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 <> - col0
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT - - COUNT( * ) * 12 FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-9555
SELECT - - COUNT ( * ) * 12 FROM tab0 AS cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9556
SELECT DISTINCT - ( + ( - + SUM( + + 67 ) ) ) AS col2 FROM tab2 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-9556
SELECT DISTINCT - ( + ( - + SUM ( + + 67 ) ) ) AS col2 FROM tab2 AS cor0
----
201

query I rowsort
SELECT ALL + 4 * ( col1 ) - - + col2 FROM tab1 AS cor0
----
152
256
79

onlyif mysql # DIV for integer division: 
query I rowsort label-9558
SELECT ALL + 75 DIV + col2 + col2 * - col2 FROM tab0 AS cor0
----
-2208
-93
-9801

skipif mysql # not compatible
query I rowsort label-9558
SELECT ALL + 75 / + col2 + col2 * - col2 FROM tab0 AS cor0
----
-2208
-93
-9801

query II rowsort
SELECT col2, + col2 * + col2 AS col0 FROM tab1
----
59
3481
68
4624
96
9216

query II rowsort
SELECT ALL - col1, + 79 AS col2 FROM tab1
----
-14
79
-47
79
-5
79

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9562
SELECT DISTINCT - col0 AS col1, - CAST( NULL AS SIGNED ) FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-9562
SELECT DISTINCT - col0 AS col1, - CAST ( NULL AS INTEGER ) FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

query I rowsort
SELECT + col1 FROM tab2 cor0 WHERE NOT + col1 = NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9564
SELECT + col0 DIV - + col0, + 29 AS col2 FROM tab2
----
-1
29
-1
29
-1
29

skipif mysql # not compatible
query II rowsort label-9564
SELECT + col0 / - + col0, + 29 AS col2 FROM tab2
----
-1
29
-1
29
-1
29

onlyif mysql # DIV for integer division: 
query I rowsort label-9565
SELECT ALL col0 DIV + - 77 + - col1 AS col0 FROM tab1
----
-14
-48
-6

skipif mysql # not compatible
query I rowsort label-9565
SELECT ALL col0 / + - 77 + - col1 AS col0 FROM tab1
----
-14
-48
-6

query I rowsort
SELECT - ( + 31 ) + + + col2 AS col1 FROM tab0 AS cor0
----
-21
16
68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) <= - col0 + + col1
----

query I rowsort
SELECT - col2 + - - col2 * + 97 * - col2 FROM tab1 cor0
----
-337716
-448596
-894048

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col2 ) * + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 27 * col1 AS col0, - col1 - - col2 + col2 col1 FROM tab0 AS cor0
----
2187
13
27
197
567
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9571
SELECT - + 76 / COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9571
SELECT - + 76 / COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL 60 * + col1 FROM tab1
----
2820
300
840

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT ALL SUM( - + col0 ) AS col1 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-9573
SELECT ALL SUM ( - + col0 ) AS col1 FROM tab0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT DISTINCT MIN( ALL col1 ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-9574
SELECT DISTINCT MIN ( ALL col1 ) AS col0 FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9575
SELECT COUNT( * ) + - 12 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9575
SELECT COUNT ( * ) + - 12 FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT SUM( ALL - col2 ) FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-9576
SELECT SUM ( ALL - col2 ) FROM tab0 cor0
----
-156

query II rowsort
SELECT ALL - col1, - col0 AS col2 FROM tab0 AS cor0
----
-1
-97
-21
-87
-81
-15

query II rowsort
SELECT ALL - 39 AS col2, + col2 * - col2 + col1 FROM tab2 AS cor0
----
-39
-1523
-39
-3297
-39
-478

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 99 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9581
SELECT - SUM( + 74 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9581
SELECT - SUM ( + 74 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col1 >= + 98
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + - 27 AS col2 FROM tab1 WHERE NULL IS NULL
----
-27

query I rowsort
SELECT ALL ( + col0 ) * + 65 * + col1 + col2 AS col1 FROM tab2
----
152513
320360
326683

query I rowsort
SELECT + col1 - - - col2 AS col2 FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN + 64 AND + + col0 + ( - col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9586
SELECT DISTINCT * FROM tab2 cor0 WHERE - 27 * col1 + ( + - col1 ) * + col0 * - col1 = + ( CAST( - + col0 AS DECIMAL ) ) + - - 24 - - ( - col2 )
----

skipif mysql # not compatible
query III rowsort label-9586
SELECT DISTINCT * FROM tab2 cor0 WHERE - 27 * col1 + ( + - col1 ) * + col0 * - col1 = + ( CAST ( - + col0 AS REAL ) ) + - - 24 - - ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9587
SELECT + col0 * - 96 + - - col1 - ( 86 ) - + + CAST( col2 AS DECIMAL ) / CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) - col1 + + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9587
SELECT + col0 * - 96 + - - col1 - ( 86 ) - + + CAST ( col2 AS REAL ) / CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) - col1 + + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9588
SELECT - + MIN( + col0 ) FROM tab2 WHERE - 11 * + col2 IS NOT NULL
----
-46

skipif mysql # not compatible
query I rowsort label-9588
SELECT - + MIN ( + col0 ) FROM tab2 WHERE - 11 * + col2 IS NOT NULL
----
-46

query III rowsort
SELECT * FROM tab2 WHERE - - 28 <= - 58
----

query I rowsort
SELECT DISTINCT 64 * - col2 + - 94 + + 18 + - + col1 FROM tab0
----
-3165
-6413
-737

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col1 ) col1 FROM tab0 cor0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT - 37 + - + col2 AS col1 FROM tab0 AS cor0
----
-136
-47
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9593
SELECT + COUNT( + ( col0 ) ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9593
SELECT + COUNT ( + ( col0 ) ) AS col0 FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9594
SELECT - col0 * + 2 - - + CAST( col2 AS SIGNED ) AS col1 FROM tab0 cor0
----
-164
-95
17

skipif mysql # not compatible
query I rowsort label-9594
SELECT - col0 * + 2 - - + CAST ( col2 AS INTEGER ) AS col1 FROM tab0 cor0
----
-164
-95
17

query I rowsort
SELECT ALL + col1 + - - col1 FROM tab2 AS cor0
----
102
134
154

query I rowsort
SELECT DISTINCT - col1 * - col0 + + col2 AS col1 FROM tab1 AS cor0
----
4345
484
810

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9598
SELECT DISTINCT col0 * - + col1 - - + CAST( NULL AS SIGNED ) + - - 70 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9598
SELECT DISTINCT col0 * - + col1 - - + CAST ( NULL AS INTEGER ) + - - 70 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 94 col0 FROM tab1
----
-94
-94
-94

query II rowsort
SELECT + col0 + - col1, - col0 * - + ( 81 ) AS col1 FROM tab0
----
-66
1215
66
7047
96
7857

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT COUNT( ALL + + col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9601
SELECT COUNT ( ALL + + col0 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9602
SELECT ( + - col0 ) * - ( - + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9602
SELECT ( + - col0 ) * - ( - + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9603
SELECT ALL * FROM tab1 WHERE - CAST( NULL AS SIGNED ) / col1 >= NULL OR + col1 BETWEEN - 31 + - col1 AND ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9603
SELECT ALL * FROM tab1 WHERE - CAST ( NULL AS INTEGER ) / col1 >= NULL OR + col1 BETWEEN - 31 + - col1 AND ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9604
SELECT ALL - CAST( NULL AS SIGNED ) * - - 80 * + + ( - col2 ) - - col0 * - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9604
SELECT ALL - CAST ( NULL AS INTEGER ) * - - 80 * + + ( - col2 ) - - col0 * - col0 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT + col2 AS col1, - col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col2 AND - 48
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 78 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9608
SELECT * FROM tab1 AS cor0 WHERE NOT ( + - CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9608
SELECT * FROM tab1 AS cor0 WHERE NOT ( + - CAST ( NULL AS INTEGER ) ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9609
SELECT DISTINCT ( col2 ) * + ( CAST( + col0 AS SIGNED ) ) AS col1 FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-9609
SELECT DISTINCT ( col2 ) * + ( CAST ( + col0 AS INTEGER ) ) AS col1 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT DISTINCT + col2 * - - 92 AS col2 FROM tab2 AS cor0
----
2116
3680
5336

onlyif mysql # aggregate syntax: 
query I rowsort label-9611
SELECT DISTINCT MIN( - + 35 ) FROM tab0 cor0
----
-35

skipif mysql # not compatible
query I rowsort label-9611
SELECT DISTINCT MIN ( - + 35 ) FROM tab0 cor0
----
-35

query II rowsort
SELECT col0 AS col0, + col0 AS col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

query I rowsort
SELECT ALL ( + 65 ) FROM tab1 AS cor0
----
65
65
65

query II rowsort
SELECT DISTINCT + 8, - 88 AS col1 FROM tab2 AS cor0
----
8
-88

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 * - - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT DISTINCT MIN( - 66 ) * + ( 7 ) AS col1 FROM tab1
----
-462

skipif mysql # not compatible
query I rowsort label-9616
SELECT DISTINCT MIN ( - 66 ) * + ( 7 ) AS col1 FROM tab1
----
-462

onlyif mysql # aggregate syntax: 
query II rowsort label-9617
SELECT COUNT( * ), - 47 col0 FROM tab1
----
3
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9617
SELECT COUNT ( * ), - 47 col0 FROM tab1
----
3
-47

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 * - col1 * - 97 <> NULL
----

query II rowsort
SELECT + 64 AS col2, + col1 AS col1 FROM tab1
----
64
14
64
47
64
5

onlyif mysql # aggregate syntax: 
query II rowsort label-9620
SELECT 63, 35 * 76 + + COUNT( * ) AS col2 FROM tab0
----
63
2663

skipif mysql # not compatible
query II rowsort label-9620
SELECT 63, 35 * 76 + + COUNT ( * ) AS col2 FROM tab0
----
63
2663

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9621
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 WHERE NULL IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col1 FROM tab1 WHERE NOT - + col2 NOT BETWEEN col0 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND + 90
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col2 ) * - ( col1 ) + - col2 + - col2 + - col2 col2 FROM tab0 AS cor0
----
-198
180
3666

query I rowsort
SELECT ALL + - col1 * col1 + - col1 AS col0 FROM tab1 AS cor0
----
-210
-2256
-30

onlyif mysql # DIV for integer division: 
query II rowsort label-9626
SELECT DISTINCT + col2 + - col0 AS col0, col2 DIV + - col2 FROM tab1 AS cor0
----
-23
-1
-26
-1
45
-1

skipif mysql # not compatible
query II rowsort label-9626
SELECT DISTINCT + col2 + - col0 AS col0, col2 / + - col2 FROM tab1 AS cor0
----
-23
-1
-26
-1
45
-1

query I rowsort
SELECT DISTINCT + + 29 + col1 FROM tab0 AS cor0
----
110
30
50

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT DISTINCT - - COUNT( * ) - 80 AS col2 FROM tab1 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-9629
SELECT DISTINCT - - COUNT ( * ) - 80 AS col2 FROM tab1 AS cor0
----
-77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9630
SELECT ALL + col0 * - + col0 + + col2 + + CAST( NULL AS DECIMAL ) * + col2 - - + 90 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9630
SELECT ALL + col0 * - + col0 + + col2 + + CAST ( NULL AS REAL ) * + col2 - - + 90 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 95 < - + 62
----

query II rowsort
SELECT + col0, + 75 AS col1 FROM tab1
----
51
75
85
75
91
75

query I rowsort
SELECT 32 - - + 43 FROM tab1
----
75
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT + 1 - - 50 * + COUNT( DISTINCT - + 10 ) AS col2 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-9634
SELECT + 1 - - 50 * + COUNT ( DISTINCT - + 10 ) AS col2 FROM tab2
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-9635
SELECT DISTINCT ( ( + col2 ) ) DIV - + col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-9635
SELECT DISTINCT ( ( + col2 ) ) / - + col2 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT DISTINCT - COUNT( * ) * - 26 AS col0 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-9636
SELECT DISTINCT - COUNT ( * ) * - 26 AS col0 FROM tab2
----
78

query I rowsort
SELECT - - col1 * col2 + - 76 - - - 30 + - 87 AS col2 FROM tab2 WHERE + + col0 NOT IN ( - col2, + 71, - ( - col1 ) * - ( - col2 ) * + col1 )
----
2887
3693
980

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 WHERE NOT ( NULL NOT BETWEEN NULL AND NULL )
----

query I rowsort
SELECT 99 AS col1 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9640
SELECT ALL + 89 AS col0 FROM tab0 WHERE ( NULL ) IN ( 89 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9640
SELECT ALL + 89 AS col0 FROM tab0 WHERE ( NULL ) IN ( 89 + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 * - col2 NOT BETWEEN ( col2 ) AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - 79 / 4 BETWEEN 27 AND 88 * 71
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col1 + - col0 col2 FROM tab2
----
2300
4864
4950

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL >= - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9645
SELECT ALL * FROM tab1 WHERE col0 <= col0 + CAST( 83 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9645
SELECT ALL * FROM tab1 WHERE col0 <= col0 + CAST ( 83 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 23 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( col0 * - col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 + + 64 * + col2 AS col2 FROM tab2
----
1518
2624
3787

query I rowsort
SELECT - 16 AS col1 FROM tab1 WHERE NULL IS NULL
----
-16
-16
-16

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 63 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE NOT ( 65 ) IS NULL
----
46
64
75

query I rowsort
SELECT ALL 86 + col2 * - ( + col1 ) AS col0 FROM tab2
----
-1087
-2994
-3800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9654
SELECT - ( - CAST( NULL AS SIGNED ) ) + + 60 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9654
SELECT - ( - CAST ( NULL AS INTEGER ) ) + + 60 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT ALL 0 * col2 AS col1 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE - 5 IN ( - col1 * 65 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9658
SELECT DISTINCT COUNT( * ) * - MAX( col0 ) FROM tab0
----
-291

skipif mysql # not compatible
query I rowsort label-9658
SELECT DISTINCT COUNT ( * ) * - MAX ( col0 ) FROM tab0
----
-291

query I rowsort
SELECT DISTINCT + col0 * + col1 FROM tab1 WHERE NULL IS NULL
----
425
4277
714

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 11 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9661
SELECT + ( col1 ) FROM tab2 WHERE NOT - col1 BETWEEN col2 - CAST( + 76 AS SIGNED ) AND ( col1 )
----
67
77

skipif mysql # not compatible
query I rowsort label-9661
SELECT + ( col1 ) FROM tab2 WHERE NOT - col1 BETWEEN col2 - CAST ( + 76 AS INTEGER ) AND ( col1 )
----
67
77

query I rowsort
SELECT DISTINCT 46 FROM tab2 WHERE 86 BETWEEN ( + 2 ) AND ( - 9 )
----

query I rowsort
SELECT - 63 * 35 AS col0 FROM tab1
----
-2205
-2205
-2205

query I rowsort
SELECT + 80 - + 1 AS col1 FROM tab1
----
79
79
79

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 63 * + col2 BETWEEN NULL AND + col0
----

query I rowsort
SELECT + 88 + 13 AS col0 FROM tab1 AS cor0 WHERE - 77 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9667
SELECT ALL - 25 * CAST( - col0 AS SIGNED ) + 48 FROM tab0 AS cor0
----
2223
2473
423

skipif mysql # not compatible
query I rowsort label-9667
SELECT ALL - 25 * CAST ( - col0 AS INTEGER ) + 48 FROM tab0 AS cor0
----
2223
2473
423

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + 62 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 + 98 * 13 FROM tab0 AS cor0
----
1289
1361
1371

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 58 NOT BETWEEN ( col2 * 21 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + ( 74 ) * - col2 FROM tab1
----
-4366
-5032
-7104

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 39 ) > NULL
----

query I rowsort
SELECT - + 85 * + col2 - + 2 FROM tab0 AS cor0
----
-3997
-8417
-852

onlyif mysql # DIV for integer division: 
query I rowsort label-9674
SELECT ALL + - 36 DIV col1 + + col2 AS col1 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9674
SELECT ALL + - 36 / col1 + + col2 AS col1 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT + 0 * + 98 + col1 * 52 AS col1 FROM tab2 AS cor0
----
2652
3484
4004

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 - - ( col1 ) col2 FROM tab1 AS cor0
----
10
28
94

query I rowsort
SELECT - col0 AS col1 FROM tab2 AS cor0 WHERE ( 58 ) >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) IN ( + ( ( - 8 ) ) + col0 / + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9679
SELECT - CAST( NULL AS SIGNED ) * - 82 + + 71 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9679
SELECT - CAST ( NULL AS INTEGER ) * - 82 + + 71 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN 5 AND + 48
----

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT 45 + - col1 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9682
SELECT - MIN( ALL + ( col0 ) ) * - SUM( + col0 * 79 ) FROM tab0
----
235815

skipif mysql # not compatible
query I rowsort label-9682
SELECT - MIN ( ALL + ( col0 ) ) * - SUM ( + col0 * 79 ) FROM tab0
----
235815

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT DISTINCT + ( - ( + 36 ) ) * COUNT( ALL col2 ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-108

skipif mysql # not compatible
query I rowsort label-9683
SELECT DISTINCT + ( - ( + 36 ) ) * COUNT ( ALL col2 ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-108

query I rowsort
SELECT + col2 * 16 * 46 FROM tab0
----
34592
72864
7360

query I rowsort
SELECT col1 * - - col0 * - col1 FROM tab2
----
-119646
-336675
-379456

onlyif mysql # aggregate syntax: 
query I rowsort label-9686
SELECT - COUNT( DISTINCT 97 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-9686
SELECT - COUNT ( DISTINCT 97 ) FROM tab2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9687
SELECT * FROM tab1 WHERE NOT - CAST( + col2 AS SIGNED ) * + col1 - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9687
SELECT * FROM tab1 WHERE NOT - CAST ( + col2 AS INTEGER ) * + col1 - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 * - 32 * - col2 AS col0 FROM tab1
----
156672
160480
198016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col1 FROM tab1 WHERE NOT col2 NOT IN ( + col2 )
----
59
68
96

query I rowsort
SELECT - col1 * + - 90 AS col2 FROM tab2
----
4590
6030
6930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9691
SELECT + 84 * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9691
SELECT + 84 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 AS col0 FROM tab2 WHERE NOT 99 < NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col0 ) > - col2 * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9694
SELECT DISTINCT - ( 98 ) / - col2 FROM tab2 AS cor0 WHERE NOT NULL = - CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9694
SELECT DISTINCT - ( 98 ) / - col2 FROM tab2 AS cor0 WHERE NOT NULL = - CAST ( col0 AS INTEGER )
----

query I rowsort
SELECT ALL + 73 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9696
SELECT + col0 / + - col2 + CAST( NULL AS SIGNED ) * - 98 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9696
SELECT + col0 / + - col2 + CAST ( NULL AS INTEGER ) * - 98 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT - COUNT( * ) * 30 AS col1 FROM tab1 WHERE NOT + col0 IN ( col2 )
----
-90

skipif mysql # not compatible
query I rowsort label-9697
SELECT - COUNT ( * ) * 30 AS col1 FROM tab1 WHERE NOT + col0 IN ( col2 )
----
-90

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 + - col2 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + + 54 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9700
SELECT ALL COUNT( * ) DIV + - 17 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9700
SELECT ALL COUNT ( * ) / + - 17 FROM tab1
----
0

query I rowsort
SELECT 1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query II rowsort
SELECT 65 AS col0, col1 FROM tab2
----
65
51
65
67
65
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * + + col1 * - 88 >= col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 41 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN col0 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 97 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9706
SELECT ALL SUM( DISTINCT + + 11 ) FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-9706
SELECT ALL SUM ( DISTINCT + + 11 ) FROM tab0
----
11

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= + col2 + - - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9708
SELECT + 36 DIV - col2 AS col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9708
SELECT + 36 / - col2 AS col2 FROM tab2
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9709
SELECT ALL + col2 * + CAST( NULL AS SIGNED ) col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9709
SELECT ALL + col2 * + CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - - col1 ) AS col2 FROM tab1
----
14
47
5

query I rowsort
SELECT DISTINCT ( - 11 ) AS col1 FROM tab1 WHERE ( col0 ) * - ( 7 + + 69 ) IS NOT NULL
----
-11

query I rowsort
SELECT + - ( + col0 ) + - col2 / + 52 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9713
SELECT ALL MIN( - 88 ) AS col2, CAST( - 46 AS SIGNED ) AS col0 FROM tab1
----
-88
-46

skipif mysql # not compatible
query II rowsort label-9713
SELECT ALL MIN ( - 88 ) AS col2, CAST ( - 46 AS INTEGER ) AS col0 FROM tab1
----
-88
-46

query I rowsort
SELECT DISTINCT col1 + - - 73 FROM tab1
----
120
78
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 15 * - 49 col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col0 - - - 51 FROM tab1 AS cor0
----
0
34
40

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + 44 ) BETWEEN 60 AND NULL
----

query I rowsort
SELECT DISTINCT + col0 * - 16 AS col2 FROM tab2 AS cor0
----
-1024
-1200
-736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9719
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT - col2 + + + CAST( + + 20 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9719
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT - col2 + + + CAST ( + + 20 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( - 12 ) + - col1 + + + col1 + + - col2 * col1 * - col0 FROM tab0 cor0
----
18258
57093
9591

query I rowsort
SELECT ALL - ( - - col0 ) * + col0 * + col0 - 48 AS col2 FROM tab2 AS cor0
----
-262192
-421923
-97384

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 27 >= + col2
----
46
51
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9723
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE 10 - CAST( NULL AS SIGNED ) + - 74 <> ( + + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9723
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE 10 - CAST ( NULL AS INTEGER ) + - 74 <> ( + + col1 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9724
SELECT DISTINCT + - COUNT( * ) DIV + - 81 + 55 AS col1 FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-9724
SELECT DISTINCT + - COUNT ( * ) / + - 81 + 55 AS col1 FROM tab2 AS cor0
----
55

query I rowsort
SELECT - 22 * 21 * col1 * - col0 FROM tab2 AS cor0
----
1083852
2276736
2321550

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9726
SELECT DISTINCT * FROM tab0 cor0 WHERE 26 NOT BETWEEN - ( - - col2 ) * 67 - 48 * col2 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9726
SELECT DISTINCT * FROM tab0 cor0 WHERE 26 NOT BETWEEN - ( - - col2 ) * 67 - 48 * col2 AND CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - 18 * + 96 FROM tab0 AS cor0
----
-1728
-1728
-1728

query II rowsort
SELECT DISTINCT + 61 AS col2, col1 AS col0 FROM tab2 AS cor0
----
61
51
61
67
61
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, col0 col0 FROM tab1
----
14
51
47
91
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9730
SELECT DISTINCT + ( SUM( - col2 ) ) AS col2 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-9730
SELECT DISTINCT + ( SUM ( - col2 ) ) AS col2 FROM tab2
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9731
SELECT 48 * CAST( NULL AS SIGNED ) + - col2 AS col2 FROM tab0 WHERE NOT ( - col1 / - col1 IN ( - - col1 / - col2 ) )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9731
SELECT 48 * CAST ( NULL AS INTEGER ) + - col2 AS col2 FROM tab0 WHERE NOT ( - col1 / - col1 IN ( - - col1 / - col2 ) )
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 2 FROM tab2, tab1 AS cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9733
SELECT DISTINCT + col2 DIV ( - CAST( - - col1 AS SIGNED ) ) + + 32 - + col1 * + col0 FROM tab0 AS cor0
----
-1183
-164
-1795

skipif mysql # not compatible
query I rowsort label-9733
SELECT DISTINCT + col2 / ( - CAST ( - - col1 AS INTEGER ) ) + + 32 - + col1 * + col0 FROM tab0 AS cor0
----
-1183
-164
-1795

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 = - + col2 + ( - 43 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 66 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-66

query I rowsort
SELECT + ( - col2 ) * - ( - - col1 ) - - ( + - col0 ) AS col2 FROM tab2
----
1127
3016
3811

onlyif mysql # aggregate syntax: 
query I rowsort label-9737
SELECT DISTINCT - 37 + - MAX( + col0 ) AS col1 FROM tab0 AS cor0
----
-134

skipif mysql # not compatible
query I rowsort label-9737
SELECT DISTINCT - 37 + - MAX ( + col0 ) AS col1 FROM tab0 AS cor0
----
-134

onlyif mysql # DIV for integer division: 
query II rowsort label-9738
SELECT ALL + col0 + + 60 AS col2, 27 DIV col0 AS col2 FROM tab2 AS cor0
----
106
0
124
0
135
0

skipif mysql # not compatible
query II rowsort label-9738
SELECT ALL + col0 + + 60 AS col2, 27 / col0 AS col2 FROM tab2 AS cor0
----
106
0
124
0
135
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN - + 59 AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9740
SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE CAST( - col1 AS SIGNED ) * col0 < ( + - col0 )
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-9740
SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE CAST ( - col1 AS INTEGER ) * col0 < ( + - col0 )
----
-59
-68
-96

query I rowsort
SELECT 56 AS col2 FROM tab2 cor0
----
56
56
56

query I rowsort
SELECT + col2 * col1 + - - col0 - + 85 FROM tab0 AS cor0
----
111
212
3737

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9743
SELECT col1 DIV + + 74 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) DIV + col2 DIV + col2 IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9743
SELECT col1 / + + 74 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) / + col2 / + col2 IS NULL
----
0
0
0

query I rowsort
SELECT DISTINCT + + 91 AS col2 FROM tab2 cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9745
SELECT DISTINCT + COUNT( * ) + - 42 - - 45 AS col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9745
SELECT DISTINCT + COUNT ( * ) + - 42 - - 45 AS col2 FROM tab1 AS cor0
----
6

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT ( NULL ) IS NULL ) OR NOT ( + 52 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( - - col2 ) AS col0 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT ALL 20 + + col2 AS col2 FROM tab0
----
119
30
67

query I rowsort
SELECT col1 + - 1 FROM tab2
----
50
66
76

query II rowsort
SELECT ALL + col0 + + + col0 * - 42 AS col0, col2 AS col2 FROM tab1 AS cor0
----
-2091
96
-3485
59
-3731
68

onlyif mysql # DIV for integer division: 
query I rowsort label-9751
SELECT DISTINCT - col0 DIV - - 49 + + - ( - col2 ) AS col2 FROM tab0 AS cor0
----
47
9
98

skipif mysql # not compatible
query I rowsort label-9751
SELECT DISTINCT - col0 / - - 49 + + - ( - col2 ) AS col2 FROM tab0 AS cor0
----
47
9
98

query I rowsort
SELECT DISTINCT - ( - ( 25 ) ) * + col1 - - 31 + col1 FROM tab2 AS cor0
----
1357
1773
2033

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9753
SELECT DISTINCT 10 / + 23 * - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE 63 * - - ( + + 18 ) NOT BETWEEN + col2 AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9753
SELECT DISTINCT 10 / + 23 * - CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE 63 * - - ( + + 18 ) NOT BETWEEN + col2 AND col1
----
NULL

query I rowsort
SELECT DISTINCT col2 - - 36 FROM tab1 AS cor0
----
104
132
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT DISTINCT COUNT( * ) + + + 19 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
19

skipif mysql # not compatible
query I rowsort label-9755
SELECT DISTINCT COUNT ( * ) + + + 19 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT ALL + COUNT( * ) + + + COUNT( col2 ) AS col1 FROM tab0 WHERE NOT - col1 / + + 22 IS NULL
----
6

skipif mysql # not compatible
query I rowsort label-9756
SELECT ALL + COUNT ( * ) + + + COUNT ( col2 ) AS col1 FROM tab0 WHERE NOT - col1 / + + 22 IS NULL
----
6

query I rowsort
SELECT - 46 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

onlyif mysql # DIV for integer division: 
query I rowsort label-9758
SELECT ALL - + col2 DIV 12 * + 22 AS col2 FROM tab1 cor0
----
-110
-176
-88

skipif mysql # not compatible
query I rowsort label-9758
SELECT ALL - + col2 / 12 * + 22 AS col2 FROM tab1 cor0
----
-110
-176
-88

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 * - - col0 NOT BETWEEN NULL AND - ( col2 ) / + col0 + + + col2 + + 3 + + + 79 * + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * + - 28 + - + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( 68 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT ALL + - ( - COUNT( * ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9762
SELECT ALL + - ( - COUNT ( * ) ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9763
SELECT * FROM tab1 AS cor0 WHERE NOT + 12 NOT IN ( col2, col1 * - col2 * CAST( + col0 AS DECIMAL ) * col2 + - col2 )
----

skipif mysql # not compatible
query III rowsort label-9763
SELECT * FROM tab1 AS cor0 WHERE NOT + 12 NOT IN ( col2, col1 * - col2 * CAST ( + col0 AS REAL ) * col2 + - col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9764
SELECT - CAST( NULL AS DECIMAL ), + col1 AS col2 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-9764
SELECT - CAST ( NULL AS REAL ), + col1 AS col2 FROM tab2
----
NULL
51
NULL
67
NULL
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9765
SELECT CAST( NULL AS SIGNED ) * + - col1 / 16 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9765
SELECT CAST ( NULL AS INTEGER ) * + - col1 / 16 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col0 AS col1, col2 FROM tab2
----
46
23
64
40
75
58

query III rowsort
SELECT + col1, - col2 - 54 * + 10 * 42 + - - 49, + col1 FROM tab2
----
9 values hashing to 6f34e1d0ad332d9fcc9e00bb1eefa584

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT COUNT( * ) * 73 FROM tab1
----
219

skipif mysql # not compatible
query I rowsort label-9768
SELECT COUNT ( * ) * 73 FROM tab1
----
219

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 33 + - 24 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9770
SELECT * FROM tab1 AS cor0 WHERE NOT ( - CAST( - ( + + col2 ) AS SIGNED ) * - col0 < NULL )
----

skipif mysql # not compatible
query III rowsort label-9770
SELECT * FROM tab1 AS cor0 WHERE NOT ( - CAST ( - ( + + col2 ) AS INTEGER ) * - col0 < NULL )
----

query I rowsort
SELECT ALL - col2 * + col1 * - col2 + - col1 AS col1 FROM tab2 AS cor0
----
123123
225321
26928

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9772
SELECT DISTINCT + + col1 DIV 94 * - CAST( 77 AS SIGNED ) AS col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9772
SELECT DISTINCT + + col1 / 94 * - CAST ( 77 AS INTEGER ) AS col0 FROM tab1 cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 27 / + 53 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 69 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 col1 FROM tab0
----
-52
-52
-52

query II rowsort
SELECT ALL + col2 AS col1, 19 AS col1 FROM tab1
----
59
19
68
19
96
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9777
SELECT + CAST( - + 36 AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

skipif mysql # not compatible
query I rowsort label-9777
SELECT + CAST ( - + 36 AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9778
SELECT DISTINCT * FROM tab2 WHERE NULL <> ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9778
SELECT DISTINCT * FROM tab2 WHERE NULL <> ( + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL - - col1 * 1 + + col2 FROM tab0 AS cor0
----
100
128
31

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + ( - 85 ) * + 60 / col0, - ( 5 ) )
----

query I rowsort
SELECT + + 56 + col1 AS col1 FROM tab1 AS cor0
----
103
61
70

query II rowsort
SELECT + - col0 AS col0, + col2 FROM tab0 cor0
----
-15
47
-87
10
-97
99

query I rowsort
SELECT - 93 * + - col0 * - 27 FROM tab1 cor0
----
-128061
-213435
-228501

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT + 98 * + + COUNT( + col1 ) FROM tab2
----
294

skipif mysql # not compatible
query I rowsort label-9784
SELECT + 98 * + + COUNT ( + col1 ) FROM tab2
----
294

onlyif mysql # DIV for integer division: 
query I rowsort label-9785
SELECT col0 DIV + + col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9785
SELECT col0 / + + col1 FROM tab2
----
0
0
1

query I rowsort
SELECT + 96 FROM tab0 WHERE ( NOT + col0 IS NOT NULL )
----

query I rowsort
SELECT + col0 * 51 * + 37 FROM tab0
----
164169
183039
28305

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9788
SELECT 64 DIV + + COUNT( ALL col1 ) FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-9788
SELECT 64 / + + COUNT ( ALL col1 ) FROM tab1
----
21

query I rowsort
SELECT ALL col0 * - - ( + + col0 ) FROM tab1
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query II rowsort label-9790
SELECT ALL - 2 + + COUNT( * ) AS col2, MIN( DISTINCT + col0 ) FROM tab0
----
1
15

skipif mysql # not compatible
query II rowsort label-9790
SELECT ALL - 2 + + COUNT ( * ) AS col2, MIN ( DISTINCT + col0 ) FROM tab0
----
1
15

query I rowsort
SELECT ALL col2 + - + 61 AS col0 FROM tab2
----
-21
-3
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT DISTINCT + ( + COUNT( * ) ) col0 FROM tab1 AS cor0 WHERE col1 BETWEEN - 12 + + col0 AND 33 * + col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9792
SELECT DISTINCT + ( + COUNT ( * ) ) col0 FROM tab1 AS cor0 WHERE col1 BETWEEN - 12 + + col0 AND 33 * + col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9793
SELECT COUNT( * ), + 85 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0
85

skipif mysql # not compatible
query II rowsort label-9793
SELECT COUNT ( * ), + 85 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0
85

query I rowsort
SELECT - col1 + + col1 + - 30 FROM tab0 AS cor0
----
-30
-30
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col0 col2 FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
-225
-7569
-9409

query I rowsort
SELECT DISTINCT col1 - ( - col2 ) FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT ( - col2 ) * col0 + - 1 FROM tab0
----
-706
-871
-9604

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT DISTINCT + 31 - + SUM( DISTINCT - col1 ) FROM tab0
----
134

skipif mysql # not compatible
query I rowsort label-9798
SELECT DISTINCT + 31 - + SUM ( DISTINCT - col1 ) FROM tab0
----
134

query I rowsort
SELECT + - 61 + 52 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 + - - 12 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-9801
SELECT + 54, col0 DIV + 6 AS col1 FROM tab2 AS cor0
----
54
10
54
12
54
7

skipif mysql # not compatible
query II rowsort label-9801
SELECT + 54, col0 / + 6 AS col1 FROM tab2 AS cor0
----
54
10
54
12
54
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9802
SELECT + ( - - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9802
SELECT + ( - - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col0 AS col2, + col2 AS col0 FROM tab0 AS cor0
----
15
47
87
10
97
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9804
SELECT DISTINCT - + CAST( - 48 AS SIGNED ) FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-9804
SELECT DISTINCT - + CAST ( - 48 AS INTEGER ) FROM tab2 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-9805
SELECT DISTINCT + - COUNT( * ) col1, 27 col2 FROM tab0 AS cor0
----
-3
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9805
SELECT DISTINCT + - COUNT ( * ) col1, 27 col2 FROM tab0 AS cor0
----
-3
27

query II rowsort
SELECT + col0 AS col1, + col0 AS col2 FROM tab2 AS cor0
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT DISTINCT - MAX( DISTINCT - + col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9807
SELECT DISTINCT - MAX ( DISTINCT - + col1 ) FROM tab2 AS cor0
----
51

query I rowsort
SELECT ALL + 87 * + col2 AS col2 FROM tab1
----
5133
5916
8352

onlyif mysql # aggregate syntax: 
query I rowsort label-9809
SELECT ALL + COUNT( 14 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9809
SELECT ALL + COUNT ( 14 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT ALL + col2 * + 39 FROM tab2
----
1560
2262
897

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 * - + ( 62 ) + - 98 + - 30 ) IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-9812
SELECT DISTINCT + 92 * - + 72 AS col2, + 1 DIV - 12 + - - col1 + - + col2 AS col0 FROM tab2
----
-6624
28
-6624
37
-6624
9

skipif mysql # not compatible
query II rowsort label-9812
SELECT DISTINCT + 92 * - + 72 AS col2, + 1 / - 12 + - - col1 + - + col2 AS col0 FROM tab2
----
-6624
28
-6624
37
-6624
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT DISTINCT ( + + COUNT( * ) ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9813
SELECT DISTINCT ( + + COUNT ( * ) ) col1 FROM tab0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9814
SELECT * FROM tab0 cor0 WHERE NOT + CAST( NULL AS DECIMAL ) + - + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9814
SELECT * FROM tab0 cor0 WHERE NOT + CAST ( NULL AS REAL ) + - + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 88 * col0 * - col2 + ( + col1 ) FROM tab1 AS cor0
----
-430834
-441315
-544497

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT - 84 > - + ( + col0 )
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT - + COUNT( * ) + + COUNT( * ) * + 30 FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-9817
SELECT - + COUNT ( * ) + + COUNT ( * ) * + 30 FROM tab0 AS cor0
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-9818
SELECT DISTINCT col1 + - col2 DIV + - 67 FROM tab1
----
15
48
5

skipif mysql # not compatible
query I rowsort label-9818
SELECT DISTINCT col1 + - col2 / + - 67 FROM tab1
----
15
48
5

query I rowsort
SELECT ( ( + col2 ) ) AS col0 FROM tab0
----
10
47
99

query I rowsort
SELECT DISTINCT - col2 + - 92 AS col0 FROM tab1 AS cor0
----
-151
-160
-188

query II rowsort
SELECT 58, + col2 FROM tab1 AS cor0
----
58
59
58
68
58
96

query I rowsort
SELECT col0 * + col1 - - 35 + + col2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 72 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 > col1 + col1
----
97
1
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9825
SELECT - COUNT( * ) DIV + COUNT( * ) + + COUNT( * ) col2 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9825
SELECT - COUNT ( * ) / + COUNT ( * ) + + COUNT ( * ) col2 FROM tab1 AS cor0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9826
SELECT ALL - col2 * col2 DIV - - 90 FROM tab0
----
-1
-108
-24

skipif mysql # not compatible
query I rowsort label-9826
SELECT ALL - col2 * col2 / - - 90 FROM tab0
----
-1
-108
-24

query I rowsort
SELECT 54 + + 88 + - col1 * + col1 AS col2 FROM tab2
----
-2459
-4347
-5787

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT - COUNT( * ) FROM tab1 WHERE - col2 BETWEEN - col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9828
SELECT - COUNT ( * ) FROM tab1 WHERE - col2 BETWEEN - col1 AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9829
SELECT * FROM tab0 WHERE - + col0 + - 46 + + CAST( NULL AS SIGNED ) - 12 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9829
SELECT * FROM tab0 WHERE - + col0 + - 46 + + CAST ( NULL AS INTEGER ) - 12 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9830
SELECT SUM( - ( + col0 ) ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-9830
SELECT SUM ( - ( + col0 ) ) FROM tab2
----
-185

onlyif mysql # aggregate syntax: 
query II rowsort label-9831
SELECT + COUNT( * ), - 32 AS col0 FROM tab0
----
3
-32

skipif mysql # not compatible
query II rowsort label-9831
SELECT + COUNT ( * ), - 32 AS col0 FROM tab0
----
3
-32

query I rowsort
SELECT DISTINCT + ( + - 72 ) FROM tab0 cor0
----
-72

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + 42 NOT BETWEEN - - col2 AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9834
SELECT DISTINCT ( + col0 ) AS col2, + col2 + col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-9834
SELECT DISTINCT ( + col0 ) AS col2, + col2 + col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( col1 ) col1, - col0 AS col1 FROM tab0 AS cor0
----
-1
-97
-21
-87
-81
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT ALL - MAX( DISTINCT + + 14 ) FROM tab1 cor0
----
-14

skipif mysql # not compatible
query I rowsort label-9836
SELECT ALL - MAX ( DISTINCT + + 14 ) FROM tab1 cor0
----
-14

query II rowsort
SELECT DISTINCT + + col1, 72 AS col0 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
1
72
21
72
81
72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9838
SELECT * FROM tab2 cor0 WHERE NOT - 25 <= - col1 * - CAST( NULL AS SIGNED ) / - - 96
----

skipif mysql # not compatible
query III rowsort label-9838
SELECT * FROM tab2 cor0 WHERE NOT - 25 <= - col1 * - CAST ( NULL AS INTEGER ) / - - 96
----

query II rowsort
SELECT col0, + 20 FROM tab2
----
46
20
64
20
75
20

query I rowsort
SELECT + 60 FROM tab1, tab0 cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query III rowsort
SELECT * FROM tab1 WHERE NOT 83 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9842
SELECT DISTINCT CAST( col2 AS SIGNED ) AS col0 FROM tab0 cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-9842
SELECT DISTINCT CAST ( col2 AS INTEGER ) AS col0 FROM tab0 cor0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9843
SELECT DISTINCT + 21 AS col0 FROM tab2 AS cor0 WHERE NOT col0 * + - col0 * CAST( NULL AS SIGNED ) IS NOT NULL
----
21

skipif mysql # not compatible
query I rowsort label-9843
SELECT DISTINCT + 21 AS col0 FROM tab2 AS cor0 WHERE NOT col0 * + - col0 * CAST ( NULL AS INTEGER ) IS NOT NULL
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9844
SELECT DISTINCT + SUM( 82 ) * - 7 FROM tab1 AS cor0
----
-1722

skipif mysql # not compatible
query I rowsort label-9844
SELECT DISTINCT + SUM ( 82 ) * - 7 FROM tab1 AS cor0
----
-1722

query I rowsort
SELECT ALL 36 * - - col0 FROM tab1
----
1836
3060
3276

query I rowsort
SELECT col1 + - + 31 + - 99 AS col2 FROM tab0
----
-109
-129
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9847
SELECT DISTINCT - - CAST( - - 16 AS SIGNED ) + 7 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
23

skipif mysql # not compatible
query I rowsort label-9847
SELECT DISTINCT - - CAST ( - - 16 AS INTEGER ) + 7 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
23

query II rowsort
SELECT ALL - col2 + - col1 AS col2, 71 * + 26 AS col1 FROM tab1
----
-110
1846
-115
1846
-64
1846

query I rowsort
SELECT ALL 49 - + col0 + col0 FROM tab2
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT DISTINCT - + MIN( + 35 ) + + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-9850
SELECT DISTINCT - + MIN ( + 35 ) + + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-38

query I rowsort
SELECT DISTINCT col2 + col1 AS col1 FROM tab2 AS cor0 WHERE - col1 NOT IN ( + ( col1 ) + col1 )
----
117
125
74

query I rowsort
SELECT ALL - 42 + + 30 + - - col0 * - 90 + 74 FROM tab2 cor0
----
-4078
-5698
-6688

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9853
SELECT DISTINCT - 39 DIV + COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-9853
SELECT DISTINCT - 39 / + COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9854
SELECT DISTINCT COUNT( * ) DIV + + SUM( ALL - + col1 ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9854
SELECT DISTINCT COUNT ( * ) / + + SUM ( ALL - + col1 ) AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT + SUM( DISTINCT - col0 ) AS col1 FROM tab2 cor0
----
-185

skipif mysql # not compatible
query I rowsort label-9855
SELECT + SUM ( DISTINCT - col0 ) AS col1 FROM tab2 cor0
----
-185

query I rowsort
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE NULL >= col1
----

query I rowsort
SELECT 15 * 73 AS col0 FROM tab2
----
1095
1095
1095

query I rowsort
SELECT DISTINCT - 58 - - col2 * + - 99 FROM tab2
----
-2335
-4018
-5800

query I rowsort
SELECT ALL + 25 * 8 AS col1 FROM tab2
----
200
200
200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9860
SELECT + ( + - col2 ) - + 66 + + CAST( NULL AS SIGNED ) / + - 2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9860
SELECT + ( + - col2 ) - + 66 + + CAST ( NULL AS INTEGER ) / + - 2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col1 + + col1 AS col1 FROM tab2 WHERE NOT ( NULL ) IS NULL OR - + 43 IS NULL
----

query I rowsort
SELECT + + col1 AS col1 FROM tab2 WHERE + col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - - col1 / - col0 + - col2 * - - 3 + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 40 * - 64 - ( col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9865
SELECT ALL + - CAST( NULL AS SIGNED ) + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9865
SELECT ALL + - CAST ( NULL AS INTEGER ) + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col0, + col1 * 94 * - - 54 AS col1 FROM tab1 AS cor0
----
51
71064
85
25380
91
238572

query I rowsort
SELECT ALL - + 25 * - + 93 AS col2 FROM tab2 AS cor0
----
2325
2325
2325

query I rowsort
SELECT - + 41 AS col0 FROM tab2 AS cor0
----
-41
-41
-41

query I rowsort
SELECT - + 94 * + col2 + 54 AS col2 FROM tab0 cor0 WHERE NOT col0 > col0 * + col0 - + 86
----
-4364
-886
-9252

query I rowsort
SELECT - 32 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

onlyif mysql # aggregate syntax: 
query II rowsort label-9871
SELECT DISTINCT - COUNT( * ), COUNT( * ) AS col0 FROM tab0
----
-3
3

skipif mysql # not compatible
query II rowsort label-9871
SELECT DISTINCT - COUNT ( * ), COUNT ( * ) AS col0 FROM tab0
----
-3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9872
SELECT DISTINCT + CAST( - + 35 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-9872
SELECT DISTINCT + CAST ( - + 35 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-35

query I rowsort
SELECT + 30 * + 11 AS col1 FROM tab2 AS cor0
----
330
330
330

query I rowsort
SELECT DISTINCT - + ( - ( + + col1 ) ) AS col1 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9875
SELECT - - CAST( - + col1 AS SIGNED ) DIV - col2 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-9875
SELECT - - CAST ( - + col1 AS INTEGER ) / - col2 FROM tab2 AS cor0
----
1
1
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9876
SELECT - - CAST( - 99 AS SIGNED ) * - SUM( ALL - + 45 ) FROM tab1 AS cor0
----
-13365

skipif mysql # not compatible
query I rowsort label-9876
SELECT - - CAST ( - 99 AS INTEGER ) * - SUM ( ALL - + 45 ) FROM tab1 AS cor0
----
-13365

onlyif mysql # aggregate syntax: 
query I rowsort label-9877
SELECT ALL + ( + COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9877
SELECT ALL + ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col2 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9879
SELECT ALL + col2 * + 30, - 67 * CAST( + 53 AS SIGNED ) AS col2 FROM tab0
----
1410
-3551
2970
-3551
300
-3551

skipif mysql # not compatible
query II rowsort label-9879
SELECT ALL + col2 * + 30, - 67 * CAST ( + 53 AS INTEGER ) AS col2 FROM tab0
----
1410
-3551
2970
-3551
300
-3551

query I rowsort
SELECT - + col1 FROM tab0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL AND NOT NULL BETWEEN - 99 AND NULL
----

query I rowsort
SELECT ALL col1 + + - 60 AS col0 FROM tab1
----
-13
-46
-55

query I rowsort
SELECT ALL + + 72 + col1 + + + col2 AS col1 FROM tab1 AS cor0
----
136
182
187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9883
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + col1 + ( + col0 ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9883
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col1 + ( + col0 ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL 81 + - col1 * + - 14 + + col2 AS col2 FROM tab2 AS cor0
----
1077
1199
818

onlyif mysql # aggregate syntax: 
query I rowsort label-9885
SELECT + SUM( + col0 ) FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-9885
SELECT + SUM ( + col0 ) FROM tab0 cor0
----
199

query I rowsort
SELECT ALL + ( + 5 ) FROM tab2
----
5
5
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 90 col2, - 47 FROM tab1
----
-90
-47

query I rowsort
SELECT ALL - ( 66 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9889
SELECT DISTINCT - + col0 * - col0 * + + 92 + col0 + - - CAST( NULL AS SIGNED ) + col1 + col0 * + + col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9889
SELECT DISTINCT - + col0 * - col0 * + + 92 + col0 + - - CAST ( NULL AS INTEGER ) + col1 + col0 * + + col1 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL + - col2 - - col1 + + col2, 36 + - + col0 AS col0 FROM tab0 AS cor0
----
1
-61
21
-51
81
21

query I rowsort
SELECT col2 + 55 - - ( - 87 ) AS col2 FROM tab2 AS cor0
----
-9
26
8

query I rowsort
SELECT + 53 FROM tab0 AS cor0 WHERE NOT - + col2 < col1 AND NOT ( col1 - - + col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9893
SELECT - CAST( NULL AS DECIMAL ) + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9893
SELECT - CAST ( NULL AS REAL ) + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 - + ( - - 12 ) FROM tab2 AS cor0
----
39
55
65

query I rowsort
SELECT + col2 * + - col0 + - 4 FROM tab1
----
-4900
-5019
-6192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9896
SELECT + col2 + - col2 + + - col0 FROM tab0 WHERE - + CAST( NULL AS SIGNED ) IS NULL
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-9896
SELECT + col2 + - col2 + + - col0 FROM tab0 WHERE - + CAST ( NULL AS INTEGER ) IS NULL
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NOT - 56 IS NOT NULL
----

query I rowsort
SELECT ALL ( - 17 ) FROM tab2
----
-17
-17
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-9899
SELECT 18 DIV + col1 * - + col1 FROM tab0
----
-18
0
0

skipif mysql # not compatible
query I rowsort label-9899
SELECT 18 / + col1 * - + col1 FROM tab0
----
-18
0
0

query I rowsort
SELECT ( + - 53 ) * + 93 FROM tab2
----
-4929
-4929
-4929

query I rowsort
SELECT ALL + ( 94 ) AS col1 FROM tab0 WHERE NOT - col2 BETWEEN - col2 * + col2 AND NULL
----

query II rowsort
SELECT DISTINCT + col1 * 39 AS col0, - 32 FROM tab2
----
1989
-32
2613
-32
3003
-32

query II rowsort
SELECT 65 * col0 AS col1, 42 AS col0 FROM tab2 AS cor0
----
2990
42
4160
42
4875
42

onlyif mysql # aggregate syntax: 
query II rowsort label-9904
SELECT - COUNT( * ), - COUNT( * ) AS col1 FROM tab0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-9904
SELECT - COUNT ( * ), - COUNT ( * ) AS col1 FROM tab0
----
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9905
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9905
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 WHERE NULL IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9906
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT CAST( + + col0 AS SIGNED ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9906
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT CAST ( + + col0 AS INTEGER ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( + + col0 ) col1 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT - COUNT( * ) * - COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-9909
SELECT - COUNT ( * ) * - COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL < NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9910
SELECT + + 52 + col1 + col1 + - + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9910
SELECT + + 52 + col1 + col1 + - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 - - col1 + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 * ( + col1 ) AS col1 FROM tab2
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT DISTINCT MAX( ALL ( 1 ) ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9913
SELECT DISTINCT MAX ( ALL ( 1 ) ) FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9914
SELECT + CAST( col2 AS SIGNED ) col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9914
SELECT + CAST ( col2 AS INTEGER ) col0 FROM tab2
----
23
40
58

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN + col1 AND + col1
----

query II rowsort
SELECT col2 AS col2, + ( - col2 ) AS col1 FROM tab1
----
59
-59
68
-68
96
-96

query I rowsort
SELECT ALL ( + 43 ) * + col1 + - col0 FROM tab0
----
-54
3468
816

query I rowsort
SELECT DISTINCT 50 + + - col1 AS col0 FROM tab0 AS cor0
----
-31
29
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT SUM( DISTINCT - + 37 ) FROM tab2 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-9919
SELECT SUM ( DISTINCT - + 37 ) FROM tab2 AS cor0
----
-37

query II rowsort
SELECT ALL col1 * - + col2 AS col2, col0 * + col1 AS col0 FROM tab2 AS cor0
----
-1173
2346
-3080
4928
-3886
5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9921
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col1 - col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9921
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col1 - col2 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + 8 col2 FROM tab0
----
105
23
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 col2 FROM tab2 AS cor0 WHERE col0 >= - 28
----
92
92
92

query I rowsort
SELECT DISTINCT col1 - + col0 * + ( + - 24 ) FROM tab0 AS cor0
----
2109
2329
441

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col1 - col1 col0 FROM tab0 AS cor0
----
189
3726
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + - 57 col2, 97 * col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-108
4462
-124
7275
-134
6208

query II rowsort
SELECT DISTINCT + 64, - col2 AS col1 FROM tab0 WHERE NOT 15 > + col1 * - + 93
----

query II rowsort
SELECT ALL 71 AS col2, 0 AS col0 FROM tab2
----
71
0
71
0
71
0

query I rowsort
SELECT ALL + col2 * - col0 - ( col2 ) * - col0 + + + col1 + + - 22 * - col1 * col2 + + + col0 AS col0 FROM tab2 cor0
----
25903
67901
85634

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9930
SELECT + - CAST( - MAX( 43 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-9930
SELECT + - CAST ( - MAX ( 43 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
43

query I rowsort
SELECT 79 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT ( + MIN( DISTINCT - + 69 ) ) AS col1 FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-9932
SELECT ( + MIN ( DISTINCT - + 69 ) ) AS col1 FROM tab1 AS cor0
----
-69

query II rowsort
SELECT ALL col0 AS col2, - 78 AS col2 FROM tab1 AS cor0
----
51
-78
85
-78
91
-78

query I rowsort
SELECT ALL col1 * - - 45 AS col0 FROM tab0
----
3645
45
945

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 56 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 * 26 FROM tab2 AS cor0
----
1040
1508
598

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9937
SELECT DISTINCT - CAST( CAST( 66 AS SIGNED ) AS SIGNED ) * - 17 AS col1, + COUNT( * ) + SUM( - + col2 ) FROM tab0 AS cor0
----
1122
-153

skipif mysql # not compatible
query II rowsort label-9937
SELECT DISTINCT - CAST ( CAST ( 66 AS INTEGER ) AS INTEGER ) * - 17 AS col1, + COUNT ( * ) + SUM ( - + col2 ) FROM tab0 AS cor0
----
1122
-153

query I rowsort
SELECT col0 / + 0 / + col2 * col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9939
SELECT DISTINCT + 49 / - col2 + + CAST( NULL AS SIGNED ) + - col1 + 29 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9939
SELECT DISTINCT + 49 / - col2 + + CAST ( NULL AS INTEGER ) + - col1 + 29 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9940
SELECT CAST( NULL AS SIGNED ) * ( - COUNT( * ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9940
SELECT CAST ( NULL AS INTEGER ) * ( - COUNT ( * ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9941
SELECT - 80 DIV col2 * - + 79 FROM tab2 AS cor0
----
158
237
79

skipif mysql # not compatible
query I rowsort label-9941
SELECT - 80 / col2 * - + 79 FROM tab2 AS cor0
----
158
237
79

query I rowsort
SELECT - + col1 AS col2 FROM tab0 AS cor0 WHERE NULL IN ( + col2, col2 / col2 )
----

query II rowsort
SELECT DISTINCT 94 * col0 + + col1 AS col2, 62 AS col0 FROM tab1
----
4808
62
7995
62
8601
62

query I rowsort
SELECT col1 + 93 FROM tab2
----
144
160
170

query I rowsort
SELECT + col0 + - - 89 FROM tab1
----
140
174
180

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT - 40 + + + 77 * + - COUNT( * ) FROM tab1 AS cor0
----
-271

skipif mysql # not compatible
query I rowsort label-9946
SELECT - 40 + + + 77 * + - COUNT ( * ) FROM tab1 AS cor0
----
-271

query I rowsort
SELECT DISTINCT - 29 + 6 FROM tab1 AS cor0
----
-23

query I rowsort
SELECT DISTINCT + 12 * + - col2 + - - 64 AS col2 FROM tab2 AS cor0
----
-212
-416
-632

query I rowsort
SELECT - col2 - - 65 AS col1 FROM tab0
----
-34
18
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9950
SELECT - COUNT( * ) + + 0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9950
SELECT - COUNT ( * ) + + 0 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT ( - 84 ) * ( + col2 ) + ( - col1 ) FROM tab0 AS cor0
----
-4029
-8317
-861

query I rowsort
SELECT DISTINCT + 95 - - 28 + col1 FROM tab2 AS cor0
----
174
190
200

query I rowsort
SELECT ALL - ( - - col2 ) - - - col0 AS col1 FROM tab2 AS cor0
----
-104
-133
-69

query I rowsort
SELECT + col2 * - + col2 + col1 AS col1 FROM tab2 AS cor0
----
-1523
-3297
-478

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND + ( 43 )
----

query I rowsort
SELECT ALL - 20 AS col1 FROM tab1 cor0
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT DISTINCT + SUM( 33 ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-9957
SELECT DISTINCT + SUM ( 33 ) AS col1 FROM tab0 AS cor0
----
99

query I rowsort
SELECT ALL col1 / + col1 / + 93 FROM tab2 WHERE NOT - 68 < + col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN + col2 * - + 96 AND + - col0
----

query I rowsort
SELECT DISTINCT col1 * - + ( - + col1 ) FROM tab2
----
2601
4489
5929

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 = - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col0 * - + col0 * + + col0 * + + col1 FROM tab2
----
-20185088
-28265625
-4964136

query I rowsort
SELECT + ( - col1 ) * - 89 FROM tab1 AS cor0
----
1246
4183
445

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN + + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT DISTINCT - MIN( DISTINCT + 46 ) FROM tab1 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9965
SELECT DISTINCT - MIN ( DISTINCT + 46 ) FROM tab1 cor0
----
-46

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + col1 AND - col2
----

query I rowsort
SELECT ALL - - 40 + - 73 AS col0 FROM tab0 AS cor0
----
-33
-33
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9968
SELECT ALL - SUM( DISTINCT 43 ) FROM tab0 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-9968
SELECT ALL - SUM ( DISTINCT 43 ) FROM tab0 AS cor0
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9969
SELECT - 49 DIV + + COUNT( + 25 ) AS col1, + SUM( - col2 ) FROM tab0 AS cor0
----
-16
-156

skipif mysql # not compatible
query II rowsort label-9969
SELECT - 49 / + + COUNT ( + 25 ) AS col1, + SUM ( - col2 ) FROM tab0 AS cor0
----
-16
-156

query II rowsort
SELECT DISTINCT + col0, + col0 AS col1 FROM tab0 cor0
----
15
15
87
87
97
97

query I rowsort
SELECT - ( - col0 ) * - col2 + col2 FROM tab1 cor0
----
-4800
-4956
-6120

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN - col2 * col1 AND + 57
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9973
SELECT ALL + 81 + col0 DIV + col2 FROM tab0
----
81
81
89

skipif mysql # not compatible
query I rowsort label-9973
SELECT ALL + 81 + col0 / + col2 FROM tab0
----
81
81
89

onlyif mysql # DIV for integer division: 
query I rowsort label-9974
SELECT ( - + col0 ) * - + col1 + + + col0 DIV col1 AS col0 FROM tab1
----
4278
442
717

skipif mysql # not compatible
query I rowsort label-9974
SELECT ( - + col0 ) * - + col1 + + + col0 / col1 AS col0 FROM tab1
----
4278
442
717

onlyif mysql # DIV for integer division: 
query I rowsort label-9975
SELECT ALL col2 * col1 DIV - - col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9975
SELECT ALL col2 * col1 / - - col2 FROM tab0
----
1
21
81

query I rowsort
SELECT DISTINCT + col2 + 65 AS col0 FROM tab2
----
105
123
88

onlyif mysql # aggregate syntax: 
query II rowsort label-9977
SELECT COUNT( * ) * - COUNT( * ) AS col1, - 0 + 37 FROM tab0
----
-9
37

skipif mysql # not compatible
query II rowsort label-9977
SELECT COUNT ( * ) * - COUNT ( * ) AS col1, - 0 + 37 FROM tab0
----
-9
37

onlyif mysql # DIV for integer division: 
query I rowsort label-9978
SELECT DISTINCT col2 DIV - 55 AS col1 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-9978
SELECT DISTINCT col2 / - 55 AS col1 FROM tab2
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9979
SELECT DISTINCT - col0 DIV + + ( col1 ) + - 4 FROM tab1
----
-21
-5
-7

skipif mysql # not compatible
query I rowsort label-9979
SELECT DISTINCT - col0 / + + ( col1 ) + - 4 FROM tab1
----
-21
-5
-7

query I rowsort
SELECT - col2 + - 14 FROM tab0 WHERE + + col0 IS NOT NULL
----
-113
-24
-61

query I rowsort
SELECT ALL col1 + - col2 + - col0 FROM tab2 AS cor0
----
-18
-27
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9982
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + col1 * - 32 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9982
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + col1 * - 32 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col1 + + col1 + - col1 FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT * FROM tab2 WHERE + ( col2 ) <= NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9986
SELECT + ( - + ( - COUNT( * ) ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9986
SELECT + ( - + ( - COUNT ( * ) ) ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9987
SELECT ( - ( + + MIN( - + 53 ) ) ) FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-9987
SELECT ( - ( + + MIN ( - + 53 ) ) ) FROM tab0 AS cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT DISTINCT - COUNT( - col1 ) FROM tab0 cor0 WHERE + 48 / col1 * + + col0 * - 90 + - - 54 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9988
SELECT DISTINCT - COUNT ( - col1 ) FROM tab0 cor0 WHERE + 48 / col1 * + + col0 * - 90 + - - 54 IS NULL
----
0

query II rowsort
SELECT ALL - col1, col0 - + col1 AS col0 FROM tab0
----
-1
96
-21
66
-81
-66

query I rowsort
SELECT DISTINCT - - col0 FROM tab2 WHERE ( col0 IS NOT NULL )
----
46
64
75

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT - col2 * col1 + - 18 IS NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9992
SELECT ALL CAST( + ( 46 ) AS SIGNED ) AS col2 FROM tab1
----
46
46
46

skipif mysql # not compatible
query I rowsort label-9992
SELECT ALL CAST ( + ( 46 ) AS INTEGER ) AS col2 FROM tab1
----
46
46
46

query II rowsort
SELECT DISTINCT col0 AS col0, 54 FROM tab2
----
46
54
64
54
75
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9994
SELECT DISTINCT CAST( + 0 AS SIGNED ) FROM tab1, tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9994
SELECT DISTINCT CAST ( + 0 AS INTEGER ) FROM tab1, tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col2 > NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 41 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col0, 18 AS col1 FROM tab0
----
15
18
87
18
97
18

query II rowsort
SELECT - - 76 AS col1, col1 FROM tab1 AS cor0
----
76
14
76
47
76
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1 + + col2 col1, + col2 FROM tab2 cor0
----
-28
23
-37
40
-9
58

