sqllogictest
Artifact Content
Not logged in

Artifact 30c570ee917247f2e13e855aa1acf84ccbcbf1f8:


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