hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-0
SELECT + + col2 + 58 * - - col1 + + col0 - - col0 DIV - + 76 FROM tab2 AS cor0
----
3027
4019
4570

skipif mysql # not compatible
query I rowsort label-0
SELECT + + col2 + 58 * - - col1 + + col0 - - col0 / - + 76 FROM tab2 AS cor0
----
3027
4019
4570

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

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

skipif mysql # not compatible
query I rowsort label-2
SELECT + col1 - - CAST ( NULL AS INTEGER ) + + + ( col1 ) FROM tab0 WHERE - + 22 IS NULL
----

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

query I rowsort
SELECT + ( + + col1 ) * - + col1 + + col1 FROM tab0 AS cor0
----
-420
-6480
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <> - col0 * - col0
----

query I rowsort
SELECT ALL + col1 + ( + col1 ) + col0 FROM tab1 AS cor0
----
185
79
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7
SELECT ALL + - ( + SUM( ALL col2 ) ) FROM tab0 cor0 WHERE NOT 66 / col1 BETWEEN - ( + col0 ) AND + - col1
----
-156

skipif mysql # not compatible
query I rowsort label-7
SELECT ALL + - ( + SUM ( ALL col2 ) ) FROM tab0 cor0 WHERE NOT 66 / col1 BETWEEN - ( + col0 ) AND + - col1
----
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-8
SELECT col1 DIV + 1 + + col1 + + - col2 * - + 18 AS col2 FROM tab2
----
1178
516
874

skipif mysql # not compatible
query I rowsort label-8
SELECT col1 / + 1 + + col1 + + - col2 * - + 18 AS col2 FROM tab2
----
1178
516
874

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 80 + - + COUNT( * ) + COUNT( * ) + - - 0 * + 24 * ( + 20 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 80 + - + COUNT ( * ) + COUNT ( * ) + - - 0 * + 24 * ( + 20 ) AS col0 FROM tab0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-11
SELECT + ( - + COUNT( * ) ) AS col1 FROM tab0 AS cor0 WHERE + 93 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-11
SELECT + ( - + COUNT ( * ) ) AS col1 FROM tab0 AS cor0 WHERE + 93 IS NOT NULL
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 20 <> + + ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-14
SELECT DISTINCT + MAX( + 21 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
21

skipif mysql # not compatible
query I rowsort label-14
SELECT DISTINCT + MAX ( + 21 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
21

query I rowsort
SELECT ALL - col2 * - - 33 + + col1 FROM tab1 AS cor0
----
-1942
-2197
-3154

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-16
SELECT DISTINCT + - col2 * + col0 AS col2, CAST( - + 84 AS SIGNED ) col2 FROM tab0 AS cor0
----
-705
-84
-870
-84
-9603
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-16
SELECT DISTINCT + - col2 * + col0 AS col2, CAST ( - + 84 AS INTEGER ) col2 FROM tab0 AS cor0
----
-705
-84
-870
-84
-9603
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-17
SELECT + COUNT( - - col1 ) FROM tab2 AS cor0 WHERE NOT col1 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-17
SELECT + COUNT ( - - col1 ) FROM tab2 AS cor0 WHERE NOT col1 = NULL
----
0

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 58 * - - col1 * + 81 IS NULL
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 * - col2 col2 FROM tab2
----
-1357
-2360
-3422

query I rowsort
SELECT + ( + 40 ) AS col0 FROM tab1
----
40
40
40

query I rowsort
SELECT 30 * + col2 * - 41 FROM tab0
----
-121770
-12300
-57810

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

onlyif mysql # DIV for integer division: 
query I rowsort label-26
SELECT DISTINCT + col0 + + - 36 - - col0 DIV + 74 FROM tab0 AS cor0
----
-21
52
62

skipif mysql # not compatible
query I rowsort label-26
SELECT DISTINCT + col0 + + - 36 - - col0 / + 74 FROM tab0 AS cor0
----
-21
52
62

query I rowsort
SELECT ALL - 56 AS col2 FROM tab1 WHERE NOT - ( + + col1 ) * - 15 + - + col0 IS NULL OR NULL <> + 38
----
-56
-56
-56

query II rowsort
SELECT - col0 AS col2, - col2 * 54 FROM tab2
----
-46
-1242
-64
-2160
-75
-3132

query I rowsort
SELECT 90 AS col1 FROM tab1 cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-31
SELECT * FROM tab2 cor0 WHERE CAST( NULL AS SIGNED ) <= - 34
----

skipif mysql # not compatible
query III rowsort label-31
SELECT * FROM tab2 cor0 WHERE CAST ( NULL AS INTEGER ) <= - 34
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= 66 * + + col2 + + - col1
----

query I rowsort
SELECT - - 8 * 90 + ( - col0 ) + col1 - + 84 + - col0 AS col1 FROM tab0 AS cor0
----
443
483
687

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( + col0 ) * col0 + col1 BETWEEN 89 AND - 42
----

query I rowsort
SELECT DISTINCT - + 33 * - + ( - col2 ) + + col1 FROM tab2 AS cor0
----
-1243
-1847
-708

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 24 * - + col2 col2 FROM tab2 AS cor0
----
-1392
-552
-960

query I rowsort
SELECT + 18 * - + col0 FROM tab1
----
-1530
-1638
-918

query I rowsort
SELECT ALL + ( col1 ) * 71 + - col1 FROM tab0
----
1470
5670
70

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 61 NOT IN ( - 52 * col0, - col2 + + 67 )
----

query I rowsort
SELECT DISTINCT - col0 + + - 68 + + 98 AS col0 FROM tab2
----
-16
-34
-45

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-43
SELECT ALL - ( - MAX( + ( - col2 ) ) ) AS col1 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-43
SELECT ALL - ( - MAX ( + ( - col2 ) ) ) AS col1 FROM tab1
----
-59

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

onlyif mysql # DIV for integer division: 
query II rowsort label-45
SELECT ALL - 85 DIV + 48 + 79, + col0 FROM tab2 AS cor0
----
78
46
78
64
78
75

skipif mysql # not compatible
query II rowsort label-45
SELECT ALL - 85 / + 48 + 79, + col0 FROM tab2 AS cor0
----
78
46
78
64
78
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-46
SELECT ( + ( - 63 ) ) AS col2, CAST( NULL AS SIGNED ) / - - SUM( ALL - col1 ) FROM tab0 AS cor0
----
-63
NULL

skipif mysql # not compatible
query II rowsort label-46
SELECT ( + ( - 63 ) ) AS col2, CAST ( NULL AS INTEGER ) / - - SUM ( ALL - col1 ) FROM tab0 AS cor0
----
-63
NULL

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

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

query I rowsort
SELECT col1 * - + 19 AS col0 FROM tab1 AS cor0
----
-266
-893
-95

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

query I rowsort
SELECT DISTINCT - ( + ( + col1 ) ) * - + 5 FROM tab2 AS cor0
----
255
335
385

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

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

query II rowsort
SELECT DISTINCT + col1 * - 81 * - col0 AS col2, col2 AS col1 FROM tab2 AS cor0
----
190026
23
399168
40
407025
58

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-54
SELECT - + CAST( NULL AS SIGNED ), + col2 AS col0 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-54
SELECT - + CAST ( NULL AS INTEGER ), + col2 AS col0 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 WHERE - col0 > + 26 OR - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-56
SELECT ALL CAST( - - 87 AS SIGNED ) FROM tab2
----
87
87
87

skipif mysql # not compatible
query I rowsort label-56
SELECT ALL CAST ( - - 87 AS INTEGER ) FROM tab2
----
87
87
87

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= - ( col0 )
----

query I rowsort
SELECT + 40 FROM tab1 WHERE NOT - ( + - col0 ) BETWEEN NULL AND - col0
----
40
40
40

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

query II rowsort
SELECT 31, ( + - col2 ) + col0 AS col2 FROM tab1 WHERE NOT NULL < col0
----

query I rowsort
SELECT DISTINCT + - 9 + - - 49 * + col2 FROM tab2 cor0
----
1118
1951
2833

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

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

query I rowsort
SELECT ALL + col0 - + + 40 AS col2 FROM tab0 cor0 WHERE NOT col2 * col2 IS NULL
----
-25
47
57

query I rowsort
SELECT + 24 * + ( + + col1 ) + ( 17 ) AS col1 FROM tab1 AS cor0
----
1145
137
353

query II rowsort
SELECT + + col2 AS col2, - col2 + + + ( col1 ) FROM tab1 WHERE + + col2 > + + 14
----
59
-54
68
-21
96
-82

query I rowsort
SELECT + - 84 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

onlyif mysql # aggregate syntax: 
query I rowsort label-67
SELECT - SUM( ALL + ( + ( 59 ) ) ) - - 69 AS col2 FROM tab1 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-67
SELECT - SUM ( ALL + ( + ( 59 ) ) ) - - 69 AS col2 FROM tab1 AS cor0
----
-108

query I rowsort
SELECT DISTINCT + - 75 + - ( - - col0 ) - + col1 FROM tab1 AS cor0
----
-140
-165
-213

query I rowsort
SELECT ALL + ( + 35 ) - + - 34 AS col0 FROM tab1 AS cor0
----
69
69
69

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

onlyif mysql # DIV for integer division: 
query I rowsort label-71
SELECT DISTINCT col2 - - col2 - + - ( - - col2 ) - + col2 DIV + col1 - col2 FROM tab0 AS cor0
----
20
94
99

skipif mysql # not compatible
query I rowsort label-71
SELECT DISTINCT col2 - - col2 - + - ( - - col2 ) - + col2 / + col1 - col2 FROM tab0 AS cor0
----
20
94
99

query I rowsort
SELECT DISTINCT + 17 - + col1 AS col1 FROM tab0 cor0
----
-4
-64
16

query I rowsort
SELECT + 70 * col2 FROM tab2
----
1610
2800
4060

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, col1 FROM tab1
----
59
5
68
47
96
14

query II rowsort
SELECT DISTINCT col2, 1 AS col1 FROM tab2
----
23
1
40
1
58
1

query I rowsort
SELECT ALL - col1 + + 23 + + 8 AS col0 FROM tab1
----
-16
17
26

query II rowsort
SELECT col0, col1 * - + 12 FROM tab1
----
51
-168
85
-60
91
-564

query II rowsort
SELECT 36 AS col1, + 13 FROM tab0
----
36
13
36
13
36
13

query I rowsort
SELECT - 68 * - - col1 AS col0 FROM tab1
----
-3196
-340
-952

query II rowsort
SELECT DISTINCT col2 AS col2, 53 + - col2 * - - 17 FROM tab1 AS cor0
----
59
-950
68
-1103
96
-1579

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

onlyif mysql # aggregate syntax: 
query II rowsort label-82
SELECT - COUNT( * ), 58 col1 FROM tab0 AS cor0
----
-3
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-82
SELECT - COUNT ( * ), 58 col1 FROM tab0 AS cor0
----
-3
58

query II rowsort
SELECT DISTINCT col0, ( - + col1 ) AS col0 FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

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

query I rowsort
SELECT + col2 * + - 37 AS col1 FROM tab2
----
-1480
-2146
-851

query I rowsort
SELECT + 98 * + + 3 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 410d0e7544c6b578053333349ab42a03

query I rowsort
SELECT ALL - 16 AS col2 FROM tab0 AS cor0 WHERE NOT 1 = + col1
----
-16
-16

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 63 + + col0 IS NOT NULL
----

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) < col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 49 <= col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-92
SELECT ALL CAST( + 24 AS SIGNED ) FROM tab1
----
24
24
24

skipif mysql # not compatible
query I rowsort label-92
SELECT ALL CAST ( + 24 AS INTEGER ) FROM tab1
----
24
24
24

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

onlyif mysql # aggregate syntax: 
query I rowsort label-94
SELECT COUNT( - col0 ) AS col1 FROM tab2 WHERE NOT NULL = ( - 64 )
----
0

skipif mysql # not compatible
query I rowsort label-94
SELECT COUNT ( - col0 ) AS col1 FROM tab2 WHERE NOT NULL = ( - 64 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-95
SELECT ALL 26 * - COUNT( * ) AS col1 FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-95
SELECT ALL 26 * - COUNT ( * ) AS col1 FROM tab2
----
-78

query I rowsort
SELECT DISTINCT + col1 * 70 AS col2 FROM tab2
----
3570
4690
5390

query I rowsort
SELECT ALL 53 + + + 21 FROM tab1
----
74
74
74

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-99
SELECT DISTINCT - 81 / - - 1 * 2 + + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-99
SELECT DISTINCT - 81 / - - 1 * 2 + + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 5 NOT BETWEEN NULL AND + col0 * + 47
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-103
SELECT ALL + 98 * col1 + col1 * + - ( - CAST( col0 AS SIGNED ) ) + - col0 FROM tab2 AS cor0
----
11516
12410
7298

skipif mysql # not compatible
query I rowsort label-103
SELECT ALL + 98 * col1 + col1 * + - ( - CAST ( col0 AS INTEGER ) ) + - col0 FROM tab2 AS cor0
----
11516
12410
7298

onlyif mysql # aggregate syntax: 
query I rowsort label-104
SELECT + MIN( DISTINCT col1 ) * + COUNT( * ) - - COUNT( * ) AS col0 FROM tab2
----
156

skipif mysql # not compatible
query I rowsort label-104
SELECT + MIN ( DISTINCT col1 ) * + COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab2
----
156

query I rowsort
SELECT - col0 * col0 + - col2 AS col2 FROM tab0
----
-272
-7579
-9508

onlyif mysql # aggregate syntax: 
query I rowsort label-106
SELECT DISTINCT MAX( ALL col1 ) * 79 FROM tab1 WHERE NULL IS NULL
----
3713

skipif mysql # not compatible
query I rowsort label-106
SELECT DISTINCT MAX ( ALL col1 ) * 79 FROM tab1 WHERE NULL IS NULL
----
3713

query I rowsort
SELECT - 69 * col2 FROM tab2
----
-1587
-2760
-4002

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - ( 17 ) <= NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + 20 col2 FROM tab0
----
1980
200
940

onlyif mysql # aggregate syntax: 
query I rowsort label-111
SELECT + COUNT( * ) col2 FROM tab1 WHERE NULL > - col2 * - col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-111
SELECT + COUNT ( * ) col2 FROM tab1 WHERE NULL > - col2 * - col0
----
0

query I rowsort
SELECT col2 * 34 AS col2 FROM tab1
----
2006
2312
3264

onlyif mysql # aggregate syntax: 
query I rowsort label-113
SELECT ( 71 ) * ( COUNT( * ) + COUNT( * ) ) col0 FROM tab2
----
426

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

onlyif mysql # aggregate syntax: 
query I rowsort label-114
SELECT MIN( ( 65 ) ) * + MAX( ALL + col1 ) FROM tab2
----
5005

skipif mysql # not compatible
query I rowsort label-114
SELECT MIN ( ( 65 ) ) * + MAX ( ALL + col1 ) FROM tab2
----
5005

onlyif mysql # DIV for integer division: 
query I rowsort label-115
SELECT col0 + - col1 DIV col1 AS col0 FROM tab1
----
50
84
90

skipif mysql # not compatible
query I rowsort label-115
SELECT col0 + - col1 / col1 AS col0 FROM tab1
----
50
84
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-116
SELECT DISTINCT CAST( NULL AS SIGNED ) / + 54 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-116
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + 54 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-117
SELECT + COUNT( * ) FROM tab2 WHERE NOT NULL = + ( col0 ) * CAST( NULL AS DECIMAL )
----
0

skipif mysql # not compatible
query I rowsort label-117
SELECT + COUNT ( * ) FROM tab2 WHERE NOT NULL = + ( col0 ) * CAST ( NULL AS REAL )
----
0

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 NOT BETWEEN NULL AND - 43
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-121
SELECT - COUNT( * ) - - CAST( ( - 34 ) AS SIGNED ) AS col1 FROM tab0
----
-37

skipif mysql # not compatible
query I rowsort label-121
SELECT - COUNT ( * ) - - CAST ( ( - 34 ) AS INTEGER ) AS col1 FROM tab0
----
-37

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

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

query I rowsort
SELECT DISTINCT 23 + + 13 FROM tab1 WHERE NOT ( + col0 ) BETWEEN - col2 AND 19
----
36

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

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

query I rowsort
SELECT + col1 + ( - col1 - col1 ) FROM tab2 WHERE - 5 IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT ALL + 47 + + col1 AS col1 FROM tab0
----
128
48
68

onlyif mysql # DIV for integer division: 
query I rowsort label-128
SELECT 34 DIV - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-128
SELECT 34 / - col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col1 + col1 FROM tab1 WHERE ( NULL ) IS NULL
----
10
28
94

onlyif mysql # DIV for integer division: 
query I rowsort label-130
SELECT 40 DIV 71 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-130
SELECT 40 / 71 AS col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-131
SELECT ALL * FROM tab2 WHERE + col1 * - ( + CAST( NULL AS DECIMAL ) ) + + 34 > col0
----

skipif mysql # not compatible
query III rowsort label-131
SELECT ALL * FROM tab2 WHERE + col1 * - ( + CAST ( NULL AS REAL ) ) + + 34 > col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-132
SELECT - 81 DIV + col1 AS col0 FROM tab0
----
-1
-3
-81

skipif mysql # not compatible
query I rowsort label-132
SELECT - 81 / + col1 AS col0 FROM tab0
----
-1
-3
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-133
SELECT ( AVG ( ALL col0 ) ) / - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-133
SELECT ( AVG ( ALL col0 ) ) / - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT ALL col2 + + 17 AS col1 FROM tab1
----
113
76
85

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

query I rowsort
SELECT + 50 - 35 FROM tab1
----
15
15
15

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

skipif mysql # not compatible
query I rowsort label-137
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + AVG ( ALL - 11 * + 37 ) FROM tab2 cor0
----
NULL

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col1 * + 76 AS col1 FROM tab0
----
1596
6156
76

query I rowsort
SELECT ALL - + 5 * + col1 + col2 FROM tab0 AS cor0
----
-358
-95
94

onlyif mysql # aggregate syntax: 
query I rowsort label-144
SELECT - COUNT( * ) * 27 AS col1 FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-144
SELECT - COUNT ( * ) * 27 AS col1 FROM tab2 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-145
SELECT + - 95 * + MIN( 43 ) FROM tab1 AS cor0
----
-4085

skipif mysql # not compatible
query I rowsort label-145
SELECT + - 95 * + MIN ( 43 ) FROM tab1 AS cor0
----
-4085

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

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

query I rowsort
SELECT - - 77 FROM tab0 cor0
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-148
SELECT - - COUNT( * ) * + 98 AS col0 FROM tab2 cor0
----
294

skipif mysql # not compatible
query I rowsort label-148
SELECT - - COUNT ( * ) * + 98 AS col0 FROM tab2 cor0
----
294

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( col2 ) BETWEEN col1 AND ( NULL )
----
-15
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-150
SELECT + SUM( DISTINCT - col2 ) DIV + 23 FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-150
SELECT + SUM ( DISTINCT - col2 ) / + 23 FROM tab2 AS cor0
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 68 col0 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN ( 88 ) AND NULL
----

query I rowsort
SELECT DISTINCT + col1 * 18 AS col2 FROM tab2 WHERE NOT + col0 * 24 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-153
SELECT COUNT( * ) FROM tab1 WHERE - col0 NOT BETWEEN ( 91 ) AND ( col0 * - col2 )
----
3

skipif mysql # not compatible
query I rowsort label-153
SELECT COUNT ( * ) FROM tab1 WHERE - col0 NOT BETWEEN ( 91 ) AND ( col0 * - col2 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-154
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE NULL <> ( NULL )
----

skipif mysql # not compatible
query I rowsort label-154
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NULL <> ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 83 * - col2 col0 FROM tab0
----
-3901
-8217
-830

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

query I rowsort
SELECT DISTINCT - ( - + ( col2 ) ) * - col2 + col1 FROM tab2
----
-1523
-3297
-478

query I rowsort
SELECT + 84 * + 43 * - col2 + 15 * + col2 AS col0 FROM tab1
----
-212223
-244596
-345312

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col2 ) <> col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 * - col2 col0 FROM tab0 AS cor0 WHERE ( - col0 ) IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-162
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NULL <> ( col0 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-163
SELECT - CAST( NULL AS SIGNED ) / - AVG ( + col2 ) - MIN( ALL - col1 ) col1 FROM tab1 AS cor0 WHERE col2 + + 61 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-163
SELECT - CAST ( NULL AS INTEGER ) / - AVG ( + col2 ) - MIN ( ALL - col1 ) col1 FROM tab1 AS cor0 WHERE col2 + + 61 IS NULL
----
NULL

query I rowsort
SELECT - + 70 + + 30 + - 44 FROM tab2 AS cor0
----
-84
-84
-84

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

query I rowsort
SELECT col1 - 20 * col2 AS col2 FROM tab2 AS cor0 WHERE + col1 IS NULL
----

query I rowsort
SELECT DISTINCT - ( - + 65 ) AS col0 FROM tab2 AS cor0
----
65

query I rowsort
SELECT 71 + 25 FROM tab2 AS cor0 WHERE - 96 * col1 <> - 92 + - col1
----
96
96
96

query I rowsort
SELECT ALL + 92 * col0 AS col0 FROM tab1 AS cor0
----
4692
7820
8372

onlyif mysql # aggregate syntax: 
query I rowsort label-170
SELECT + ( 60 ) - - 68 * COUNT( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
672

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-170
SELECT + ( 60 ) - - 68 * COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
672

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

query I rowsort
SELECT ALL - ( col1 ) + col2 AS col0 FROM tab1
----
21
54
82

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

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

query I rowsort
SELECT ALL ( + col1 ) + - col2 FROM tab1 cor0 WHERE - 0 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-175
SELECT + - 30 * - 82 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-175
SELECT + - 30 * - 82 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE ( + 33 ) <= ( col0 )
----
-87
-97

query I rowsort
SELECT ALL 8 + + col0 FROM tab1 AS cor0
----
59
93
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - 40 ) > col0
----

query I rowsort
SELECT + 45 + col2 FROM tab2 AS cor0
----
103
68
85

onlyif mysql # aggregate syntax: 
query I rowsort label-180
SELECT DISTINCT - 17 * - - MAX( ALL + + col1 ) FROM tab1 cor0
----
-799

skipif mysql # not compatible
query I rowsort label-180
SELECT DISTINCT - 17 * - - MAX ( ALL + + col1 ) FROM tab1 cor0
----
-799

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 12 > - 12 + + 50
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 BETWEEN ( + col0 * + col2 ) AND ( 72 )
----

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 52 * + 80 + + col0 IS NOT NULL
----

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

query I rowsort
SELECT col1 FROM tab0 WHERE NOT NULL NOT BETWEEN + col2 AND - col0 * col2 + 31
----

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

query I rowsort
SELECT col0 * - 43 * - + col0 AS col2 FROM tab0
----
325467
404587
9675

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( 87 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-191
SELECT DISTINCT + col1 * - CAST( NULL AS DECIMAL ) FROM tab2 cor0 WHERE NOT NULL IN ( col2 * col1 )
----

skipif mysql # not compatible
query I rowsort label-191
SELECT DISTINCT + col1 * - CAST ( NULL AS REAL ) FROM tab2 cor0 WHERE NOT NULL IN ( col2 * col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-192
SELECT DISTINCT - + CAST( - SUM( ALL + - 88 ) AS SIGNED ) FROM tab1 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-192
SELECT DISTINCT - + CAST ( - SUM ( ALL + - 88 ) AS INTEGER ) FROM tab1 AS cor0
----
-264

query I rowsort
SELECT + - 74 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5a567947d14593676e3825756f8e6130

query I rowsort
SELECT ALL - 86 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

query I rowsort
SELECT ALL 75 + + col2 AS col2 FROM tab1
----
134
143
171

onlyif mysql # aggregate syntax: 
query I rowsort label-196
SELECT 46 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-196
SELECT 46 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
49

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 27 * - col0 col0 FROM tab2 AS cor0
----
1242
1728
2025

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 >= ( - ( - col0 ) * + 64 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT + 15 + - 54 FROM tab0 AS cor0
----
-39
-39
-39

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col1 + + col2 ) IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT COUNT( * ) * - COUNT( * ) col0 FROM tab0 AS cor0 WHERE 47 <= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-204
SELECT COUNT ( * ) * - COUNT ( * ) col0 FROM tab0 AS cor0 WHERE 47 <= NULL
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-206
SELECT + - col0 DIV col1 FROM tab0 cor0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-206
SELECT + - col0 / col1 FROM tab0 cor0
----
-4
-97
0

query I rowsort
SELECT - col1 * col1 * - 94 AS col0 FROM tab0 AS cor0
----
41454
616734
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + + 82 col2 FROM tab0
----
1722
6642
82

query II rowsort
SELECT + col2, 91 + ( col2 ) AS col1 FROM tab0
----
10
101
47
138
99
190

query I rowsort
SELECT col0 FROM tab1 WHERE - col1 NOT IN ( + col1 )
----
51
85
91

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-212
SELECT DISTINCT 12 FROM tab0 WHERE ( - + CAST( NULL AS SIGNED ) / + col0 + - col0 ) IS NULL
----
12

skipif mysql # not compatible
query I rowsort label-212
SELECT DISTINCT 12 FROM tab0 WHERE ( - + CAST ( NULL AS INTEGER ) / + col0 + - col0 ) IS NULL
----
12

query II rowsort
SELECT + 98 AS col1, + col2 AS col2 FROM tab1
----
98
59
98
68
98
96

query I rowsort
SELECT DISTINCT + col1 + 51 FROM tab2
----
102
118
128

query I rowsort
SELECT + - 3 AS col2 FROM tab2 AS cor0
----
-3
-3
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= col2 + col1 * col0 * - col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 85 <= ( + 0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-218
SELECT + 36 + SUM( ALL ( + col2 ) ) + - - COUNT( * ) + + 2 FROM tab0 AS cor0
----
197

skipif mysql # not compatible
query I rowsort label-218
SELECT + 36 + SUM ( ALL ( + col2 ) ) + - - COUNT ( * ) + + 2 FROM tab0 AS cor0
----
197

query I rowsort
SELECT - col1 + col0 * ( col0 ) FROM tab2 AS cor0
----
2065
4019
5558

onlyif mysql # aggregate syntax: 
query II rowsort label-220
SELECT 27 + + - SUM( col2 ) AS col2, + 21 + COUNT( * ) FROM tab0
----
-129
24

skipif mysql # not compatible
query II rowsort label-220
SELECT 27 + + - SUM ( col2 ) AS col2, + 21 + COUNT ( * ) FROM tab0
----
-129
24

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-221
SELECT DISTINCT - ( + MAX ( ALL col2 ) ) col0 FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-222
SELECT ALL + ( ( MIN( DISTINCT + 97 ) ) ) AS col0 FROM tab1
----
97

skipif mysql # not compatible
query I rowsort label-222
SELECT ALL + ( ( MIN ( DISTINCT + 97 ) ) ) AS col0 FROM tab1
----
97

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

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

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

query I rowsort
SELECT - col0 * col0 + + 34 FROM tab1 AS cor0
----
-2567
-7191
-8247

query I rowsort
SELECT 26 FROM tab0 cor0
----
26
26
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 99 * col2 col2 FROM tab1 AS cor0
----
-5841
-6732
-9504

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

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

query I rowsort
SELECT ALL 85 * + col0 FROM tab1 AS cor0
----
4335
7225
7735

onlyif mysql # aggregate syntax: 
query I rowsort label-231
SELECT - COUNT( - 67 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-231
SELECT - COUNT ( - 67 ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + ( - col1 ) * + - col2 FROM tab0 AS cor0
----
210
3807
99

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

skipif mysql # not compatible
query I rowsort label-233
SELECT + col0 * - col0 - + 25 / - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-234
SELECT ALL + + CAST( - 75 AS SIGNED ) + - + col2 FROM tab1 WHERE NOT + col0 + + + col2 + - 90 IS NULL
----
-134
-143
-171

skipif mysql # not compatible
query I rowsort label-234
SELECT ALL + + CAST ( - 75 AS INTEGER ) + - + col2 FROM tab1 WHERE NOT + col0 + + + col2 + - 90 IS NULL
----
-134
-143
-171

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

query II rowsort
SELECT col1, + 22 AS col0 FROM tab2 AS cor0
----
51
22
67
22
77
22

query I rowsort
SELECT ALL 20 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-238
SELECT * FROM tab2 AS cor0 WHERE NULL <= 68 * - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-238
SELECT * FROM tab2 AS cor0 WHERE NULL <= 68 * - - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-239
SELECT + ( + + MAX( + + CAST( + 77 AS SIGNED ) ) ) AS col0, 62 FROM tab1 cor0
----
77
62

skipif mysql # not compatible
query II rowsort label-239
SELECT + ( + + MAX ( + + CAST ( + 77 AS INTEGER ) ) ) AS col0, 62 FROM tab1 cor0
----
77
62

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 * 98 * - + col2 + - col0 NOT IN ( - 71 )
----

query I rowsort
SELECT - col0 + col1 * - + col2 FROM tab1 AS cor0
----
-1395
-3287
-380

onlyif mysql # aggregate syntax: 
query I rowsort label-243
SELECT ALL + MAX( + + 76 ) col1 FROM tab0
----
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-243
SELECT ALL + MAX ( + + 76 ) col1 FROM tab0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-244
SELECT - MAX( ALL + col1 ) FROM tab0 WHERE NULL IS NULL
----
-81

skipif mysql # not compatible
query I rowsort label-244
SELECT - MAX ( ALL + col1 ) FROM tab0 WHERE NULL IS NULL
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 83 ) * + col0 col2 FROM tab1
----
4233
7055
7553

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

query I rowsort
SELECT col2 + 6 FROM tab2 WHERE - - 28 / - - col1 - - 23 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-248
SELECT ( - COUNT( * ) ) * + 29 AS col2 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-248
SELECT ( - COUNT ( * ) ) * + 29 AS col2 FROM tab1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT COUNT( DISTINCT 19 ) AS col1 FROM tab1 AS cor0 WHERE col2 * + col2 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-249
SELECT COUNT ( DISTINCT 19 ) AS col1 FROM tab1 AS cor0 WHERE col2 * + col2 <> NULL
----
0

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

query I rowsort
SELECT - 7 * + - 63 FROM tab0 AS cor0
----
441
441
441

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT NULL = 68
----

query I rowsort
SELECT DISTINCT - + ( col0 ) - + + col2 * - + 85 AS col1 FROM tab0 AS cor0
----
3980
763
8318

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-254
SELECT 64 DIV - CAST( - - MAX( + col2 ) AS SIGNED ) - 81 * + - COUNT( * ) FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-254
SELECT 64 / - CAST ( - - MAX ( + col2 ) AS INTEGER ) - 81 * + - COUNT ( * ) FROM tab0
----
243

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 <> - 2
----

query I rowsort
SELECT - 75 * + - ( + col2 ) AS col2 FROM tab0
----
3525
7425
750

onlyif mysql # aggregate syntax: 
query I rowsort label-257
SELECT ALL + COUNT( * ) * 11 + - - 68 FROM tab0 AS cor0
----
101

skipif mysql # not compatible
query I rowsort label-257
SELECT ALL + COUNT ( * ) * 11 + - - 68 FROM tab0 AS cor0
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-258
SELECT DISTINCT + + MAX( - + col1 ) col0 FROM tab2 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-258
SELECT DISTINCT + + MAX ( - + col1 ) col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query II rowsort
SELECT DISTINCT + + col0 * - - 36 AS col2, + col0 AS col1 FROM tab0 AS cor0
----
3132
87
3492
97
540
15

query I rowsort
SELECT + col2 * - - col0 + + + col1 FROM tab1 AS cor0
----
4910
5020
6235

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-262
SELECT DISTINCT col0 DIV + 26 FROM tab2 cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-262
SELECT DISTINCT col0 / + 26 FROM tab2 cor0
----
1
2

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

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

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 WHERE 27 * col2 IS NULL
----

query I rowsort
SELECT DISTINCT + 5 * + col0 FROM tab0
----
435
485
75

onlyif mysql # aggregate syntax: 
query I rowsort label-267
SELECT + 82 * - COUNT( * ) FROM tab0
----
-246

skipif mysql # not compatible
query I rowsort label-267
SELECT + 82 * - COUNT ( * ) FROM tab0
----
-246

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

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

query I rowsort
SELECT ALL 90 AS col0 FROM tab1 cor0
----
90
90
90

query I rowsort
SELECT - + col0 + + + 26 * + - col2 * + col1 FROM tab0 AS cor0 WHERE NOT 87 IS NULL
----
-2671
-5547
-98997

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 49 + col2 * - col1 * + - col1 / ( - ( + col1 ) ) NOT IN ( + col1 )
----

query I rowsort
SELECT DISTINCT ( + + col0 ) + - - col2 AS col0 FROM tab2 cor0
----
104
133
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 14 col2, + col0 + col2 AS col1 FROM tab1 AS cor0
----
14
144
14
147
14
159

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NOT + col1 < - 85
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 * - - 84 col2 FROM tab0 AS cor0
----
-5040
-5040
-5040

query I rowsort
SELECT ALL + col0 + - + col1 AS col1 FROM tab0
----
-66
66
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-279
SELECT 50 * + COUNT( * ) + - MIN( + 64 ) + + 94 FROM tab0 cor0
----
180

skipif mysql # not compatible
query I rowsort label-279
SELECT 50 * + COUNT ( * ) + - MIN ( + 64 ) + + 94 FROM tab0 cor0
----
180

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT col0 <> ( NULL )
----

query I rowsort
SELECT ALL 55 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # aggregate syntax: 
query I rowsort label-282
SELECT ALL MAX( - + col2 ) AS col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-282
SELECT ALL MAX ( - + col2 ) AS col1 FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-283
SELECT + MIN( - + col0 ) FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-283
SELECT + MIN ( - + col0 ) FROM tab1 cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-284
SELECT SUM( - col2 ) AS col1 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-284
SELECT SUM ( - col2 ) AS col1 FROM tab2 AS cor0
----
-121

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-287
SELECT ALL + MAX ( + + 46 ) col2 FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-288
SELECT ALL MIN( ALL col2 ) FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
23

skipif mysql # not compatible
query I rowsort label-288
SELECT ALL MIN ( ALL col2 ) FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-289
SELECT + MAX( - + 69 ) AS col1 FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-289
SELECT + MAX ( - + 69 ) AS col1 FROM tab2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-290
SELECT DISTINCT - COUNT( - 81 ) col1 FROM tab1
----
-3

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

query II rowsort
SELECT col1, - ( 78 ) FROM tab1
----
14
-78
47
-78
5
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-292
SELECT ALL - 44 * + - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-292
SELECT ALL - 44 * + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT - COUNT( * ) * - COUNT( * ) col2 FROM tab1
----
9

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

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

query II rowsort
SELECT ALL - col2 AS col1, 57 AS col2 FROM tab1 AS cor0
----
-59
57
-68
57
-96
57

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-298
SELECT - COUNT( * ) DIV - SUM( ALL col0 ) col0 FROM tab2 AS cor0
----
0

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

query I rowsort
SELECT - 58 * col1 * - col0 FROM tab2
----
136068
285824
291450

onlyif mysql # aggregate syntax: 
query II rowsort label-300
SELECT + MAX( + col2 ) AS col1, - MIN( DISTINCT - col1 ) AS col0 FROM tab1 WHERE NULL <= + 44
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-300
SELECT + MAX ( + col2 ) AS col1, - MIN ( DISTINCT - col1 ) AS col0 FROM tab1 WHERE NULL <= + 44
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT DISTINCT 90 * - MIN( - + 16 ) + COUNT( * ) FROM tab0
----
1443

skipif mysql # not compatible
query I rowsort label-301
SELECT DISTINCT 90 * - MIN ( - + 16 ) + COUNT ( * ) FROM tab0
----
1443

query I rowsort
SELECT + col2 * - - 90 AS col1 FROM tab1
----
5310
6120
8640

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 99 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-304
SELECT ALL COUNT( * ) + SUM( ALL - col2 ) AS col1 FROM tab2 AS cor0
----
-118

skipif mysql # not compatible
query I rowsort label-304
SELECT ALL COUNT ( * ) + SUM ( ALL - col2 ) AS col1 FROM tab2 AS cor0
----
-118

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

query I rowsort
SELECT 74 + + 57 + - col0 FROM tab0 AS cor0
----
116
34
44

query I rowsort
SELECT DISTINCT - 17 * + + col0 AS col0 FROM tab1 AS cor0
----
-1445
-1547
-867

query I rowsort
SELECT DISTINCT ( col2 ) - + + col0 AS col1 FROM tab0
----
-77
2
32

query I rowsort
SELECT - col0 + + col2 - - col0 FROM tab0
----
10
47
99

query I rowsort
SELECT - col1 * - 21 * + - col0 * + + 25 + - + col1 FROM tab1 WHERE ( - 51 * - col1 IS NOT NULL )
----
-223130
-2245472
-374864

query II rowsort
SELECT col0 * col0 AS col1, - col1 * + col2 FROM tab2
----
2116
-1173
4096
-3080
5625
-3886

onlyif mysql # DIV for integer division: 
query I rowsort label-312
SELECT - - 32 DIV col1 col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-312
SELECT - - 32 / col1 col0 FROM tab2 AS cor0
----
0
0
0

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-316
SELECT MIN ( col0 ) AS col0 FROM tab2
----
46

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

skipif mysql # not compatible
query I rowsort label-317
SELECT DISTINCT + COUNT ( * ) * + CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL

query II rowsort
SELECT col1 * + col1 * - col2 AS col2, 69 FROM tab0
----
-308367
69
-4410
69
-99
69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-319
SELECT ALL col1 * - CAST( NULL AS SIGNED ) + - + 25 - 31 * + - col1 AS col2, col0 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-319
SELECT ALL col1 * - CAST ( NULL AS INTEGER ) + - + 25 - 31 * + - col1 AS col2, col0 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-320
SELECT DISTINCT 55 * - + COUNT( * ) FROM tab1
----
-165

skipif mysql # not compatible
query I rowsort label-320
SELECT DISTINCT 55 * - + COUNT ( * ) FROM tab1
----
-165

query I rowsort
SELECT DISTINCT + col0 + + + col1 AS col1 FROM tab2
----
141
142
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 39 <> NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-324
SELECT ALL + 15 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-324
SELECT ALL + 15 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
45

query I rowsort
SELECT + col0 + - 70 AS col0 FROM tab0
----
-55
17
27

query I rowsort
SELECT ALL col2 + + ( 87 ) AS col2 FROM tab2 AS cor0
----
110
127
145

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-327
SELECT ALL col1 - - ( + CAST( NULL AS DECIMAL ) ) FROM tab1 cor0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-328
SELECT DISTINCT col0 AS col0 FROM tab1 AS cor0 WHERE col2 NOT IN ( col0 * col1, col2 / - + col1, + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-328
SELECT DISTINCT col0 AS col0 FROM tab1 AS cor0 WHERE col2 NOT IN ( col0 * col1, col2 / - + col1, + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE - col1 + - - col0 + + 97 + + - col1 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-330
SELECT - col1 * + col0 - - 38 + - col0 / ( + CAST( NULL AS SIGNED ) ) * 97 * + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-330
SELECT - col1 * + col0 - - 38 + - col0 / ( + CAST ( NULL AS INTEGER ) ) * 97 * + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col1 * + + ( + 94 ) AS col1 FROM tab2 AS cor0
----
4794
6298
7238

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - + 36 col1 FROM tab2 AS cor0
----
1836
2412
2772

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

onlyif mysql # aggregate syntax: 
query I rowsort label-334
SELECT - 92 * + MAX( 76 ) AS col0 FROM tab2 AS cor0
----
-6992

skipif mysql # not compatible
query I rowsort label-334
SELECT - 92 * + MAX ( 76 ) AS col0 FROM tab2 AS cor0
----
-6992

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

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

query I rowsort
SELECT - 14 - + + 4 FROM tab0
----
-18
-18
-18

query I rowsort
SELECT ( + col0 ) - - + 21 * 59 FROM tab2
----
1285
1303
1314

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

query I rowsort
SELECT + 41 - + - col0 FROM tab0
----
128
138
56

query II rowsort
SELECT DISTINCT - col2 - - - col0, + ( 83 ) AS col1 FROM tab1
----
-144
83
-147
83
-159
83

query I rowsort
SELECT DISTINCT + col2 + - - 7 AS col1 FROM tab1
----
103
66
75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-343
SELECT COUNT( ALL + + col2 ) FROM tab0
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-345
SELECT + - COUNT( DISTINCT 15 ) AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-345
SELECT + - COUNT ( DISTINCT 15 ) AS col1 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-346
SELECT - SUM( + 44 ) DIV - - 12 FROM tab0 cor0
----
-11

skipif mysql # not compatible
query I rowsort label-346
SELECT - SUM ( + 44 ) / - - 12 FROM tab0 cor0
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-347
SELECT - - 55 DIV + 30 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-347
SELECT - - 55 / + 30 FROM tab2 AS cor0
----
1
1
1

query II rowsort
SELECT col1 * - + ( - + 63 ) AS col0, - 11 - + + col0 FROM tab1 AS cor0 WHERE NOT - 33 = + col1
----
2961
-102
315
-96
882
-62

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

onlyif mysql # aggregate syntax: 
query I rowsort label-350
SELECT + + MIN( ALL + 65 ) col0 FROM tab0 AS cor0
----
65

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

query I rowsort
SELECT + ( col1 ) * - 20 FROM tab2 AS cor0
----
-1020
-1340
-1540

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
23
40
58

query I rowsort
SELECT DISTINCT + 84 AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
84

query II rowsort
SELECT ALL - 77 AS col2, col2 AS col1 FROM tab1 AS cor0
----
-77
59
-77
68
-77
96

query I rowsort
SELECT 78 * - - 21 AS col2 FROM tab2 AS cor0
----
1638
1638
1638

query I rowsort
SELECT 83 AS col0 FROM tab2 cor0
----
83
83
83

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 80 / - 10 * + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 * + 20 * - col1 AS col0 FROM tab0
----
131220
20
8820

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-361
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - 61 * - col2 + - 30 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-361
SELECT DISTINCT + CAST ( NULL AS REAL ) * - 61 * - col2 + - 30 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-362
SELECT + CAST( + col2 AS SIGNED ) * - col0 * 90 + - - col2 * - col2 * - - col2 FROM tab2
----
-107387
-294400
-586612

skipif mysql # not compatible
query I rowsort label-362
SELECT + CAST ( + col2 AS INTEGER ) * - col0 * 90 + - - col2 * - col2 * - - col2 FROM tab2
----
-107387
-294400
-586612

onlyif mysql # DIV for integer division: 
query II rowsort label-363
SELECT col2 + 23 AS col1, + 11 + + - 22 DIV - - col0 FROM tab1 AS cor0
----
119
11
82
11
91
11

skipif mysql # not compatible
query II rowsort label-363
SELECT col2 + 23 AS col1, + 11 + + - 22 / - - col0 FROM tab1 AS cor0
----
119
11
82
11
91
11

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

skipif mysql # not compatible
query I rowsort label-364
SELECT + MIN ( col1 ) FROM tab2 cor0
----
51

query I rowsort
SELECT + ( - 32 ) AS col2 FROM tab1
----
-32
-32
-32

query I rowsort
SELECT ALL 38 + - col0 AS col1 FROM tab1
----
-13
-47
-53

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 * col1 - - + col2 col2, col0 AS col0 FROM tab2 AS cor0
----
-2578
46
-4431
75
-5889
64

onlyif mysql # aggregate syntax: 
query I rowsort label-370
SELECT ALL COUNT( * ) * - 17 AS col0 FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-370
SELECT ALL COUNT ( * ) * - 17 AS col0 FROM tab1 cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-371
SELECT DISTINCT MIN( ALL - col1 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-371
SELECT DISTINCT MIN ( ALL - col1 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT ALL 82, 85 AS col0 FROM tab0 AS cor0
----
82
85
82
85
82
85

query I rowsort
SELECT DISTINCT + ( - col2 ) - + col1 * + col2 AS col2 FROM tab0
----
-198
-220
-3854

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-374
SELECT ALL 41 * + 31 - - - 68 + + + 86 * + 65 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-374
SELECT ALL 41 * + 31 - - - 68 + + + 86 * + 65 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT + col1, + 61 * col0 + + 79 AS col0 FROM tab0
----
1
5996
21
5386
81
994

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

query I rowsort
SELECT ALL col2 * + - 33 FROM tab2
----
-1320
-1914
-759

query II rowsort
SELECT ALL col0, + 38 * + col1 AS col1 FROM tab0
----
15
3078
87
798
97
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col1 ) col2 FROM tab1
----
14
47
5

query I rowsort
SELECT 6 FROM tab0 WHERE NOT ( + col2 * - + col0 - col1 + - + col1 + + col2 ) IS NULL
----
6
6
6

query I rowsort
SELECT + col0 * + + 53 * + 19 AS col2 FROM tab0
----
15105
87609
97679

query II rowsort
SELECT ALL ( + 8 ), col2 AS col2 FROM tab2 AS cor0
----
8
23
8
40
8
58

query I rowsort
SELECT - + col1 FROM tab0 cor0 WHERE NOT - col2 * - col2 * + + 64 + + + col1 < col2
----
-1
-21
-81

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 68 * - 21 * + 48 * + 6 + + 80 col1 FROM tab1 cor0
----
411344
411344
411344

query I rowsort
SELECT DISTINCT - + col2 * 38 AS col2 FROM tab2 cor0
----
-1520
-2204
-874

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 22 < + col1
----
91
47
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-388
SELECT + - COUNT( * ) + + + COUNT( * ) DIV + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-2

skipif mysql # not compatible
query I rowsort label-388
SELECT + - COUNT ( * ) + + + COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-389
SELECT ALL - CAST( + - col1 AS SIGNED ) FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-389
SELECT ALL - CAST ( + - col1 AS INTEGER ) FROM tab2
----
51
67
77

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

query I rowsort
SELECT ALL + - 63 * col2 AS col2 FROM tab0 AS cor0
----
-2961
-6237
-630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-392
SELECT ALL - - CAST( - + 4 AS SIGNED ) DIV COUNT( * ) AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-392
SELECT ALL - - CAST ( - + 4 AS INTEGER ) / COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * col2 - 22 + - 52 NOT IN ( - + 0, col0 - - col0, - 51 )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-395
SELECT ( - 92 ) DIV - col0 AS col2 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-395
SELECT ( - 92 ) / - col0 AS col2 FROM tab2 AS cor0
----
1
1
2

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

skipif mysql # not compatible
query I rowsort label-396
SELECT + 60 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-397
SELECT col2 DIV - 93 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-397
SELECT col2 / - 93 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-398
SELECT + MIN( 95 ) FROM tab2
----
95

skipif mysql # not compatible
query I rowsort label-398
SELECT + MIN ( 95 ) FROM tab2
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-399
SELECT DISTINCT col1 DIV - 36 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-399
SELECT DISTINCT col1 / - 36 FROM tab1
----
-1
0

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

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

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

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

query I rowsort
SELECT ALL - col2 + + - 92 FROM tab2
----
-115
-132
-150

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

query III rowsort
SELECT * FROM tab1 WHERE - + 24 = + + col1 + + + 23
----

onlyif mysql # aggregate syntax: 
query I rowsort label-405
SELECT MIN( 47 ) FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-405
SELECT MIN ( 47 ) FROM tab0
----
47

query I rowsort
SELECT + - col0 + - + 51 AS col0 FROM tab0 AS cor0
----
-138
-148
-66

query III rowsort
SELECT * FROM tab1 WHERE NULL < - - col2
----

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

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

query I rowsort
SELECT ALL - col1 - - + col2 - col1 AS col2 FROM tab0 AS cor0
----
-115
-32
97

query I rowsort
SELECT ALL col1 - col0 * + + 0 * + col1 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT 60 AS col2 FROM tab1 AS cor0 WHERE col2 - ( 39 ) BETWEEN ( - col1 + - col0 ) AND ( NULL )
----

query I rowsort
SELECT 55 - + 42 + col0 FROM tab0 AS cor0
----
100
110
28

query I rowsort
SELECT DISTINCT + 66 - col2 + 14 FROM tab2 AS cor0
----
22
40
57

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT + MAX( + 71 ) AS col0 FROM tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-414
SELECT + MAX ( + 71 ) AS col0 FROM tab0 AS cor0
----
71

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

query I rowsort
SELECT DISTINCT + col2 * - - 45 FROM tab1
----
2655
3060
4320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-417
SELECT - ( - - CAST( + + AVG ( ALL - col1 ) AS SIGNED ) ) AS col1 FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-417
SELECT - ( - - CAST ( + + AVG ( ALL - col1 ) AS INTEGER ) ) AS col1 FROM tab0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-418
SELECT - MIN( ALL - 36 ) FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-418
SELECT - MIN ( ALL - 36 ) FROM tab1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-419
SELECT ALL + SUM( ALL + 3 ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-419
SELECT ALL + SUM ( ALL + 3 ) FROM tab2
----
9

query I rowsort
SELECT DISTINCT + col1 * + 68 FROM tab1
----
3196
340
952

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-421
SELECT - COUNT( * ) DIV - MAX( ALL - - col0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-421
SELECT - COUNT ( * ) / - MAX ( ALL - - col0 ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-422
SELECT + - COUNT( * ) * - 28 - - 35 * + 45 FROM tab0 AS cor0
----
1659

skipif mysql # not compatible
query I rowsort label-422
SELECT + - COUNT ( * ) * - 28 - - 35 * + 45 FROM tab0 AS cor0
----
1659

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 91 * + col2 col1 FROM tab1 cor0
----
5369
6188
8736

query I rowsort
SELECT ALL - - 84 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

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

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

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

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

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

query I rowsort
SELECT - + col0 * + 93 FROM tab1 AS cor0
----
-4743
-7905
-8463

query I rowsort
SELECT DISTINCT 47 FROM tab1 AS cor0 WHERE NOT NULL <> ( NULL )
----

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

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

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

skipif mysql # not compatible
query I rowsort label-434
SELECT DISTINCT COUNT ( * ) * + 42 / - COUNT ( * ) FROM tab2 AS cor0
----
-42

query III rowsort
SELECT * FROM tab0 WHERE - 49 > NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 12 col2 FROM tab2
----
35
52
70

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

skipif mysql # not compatible
query I rowsort label-438
SELECT - 45 + + 94 - + COUNT ( * ) FROM tab0
----
46

query II rowsort
SELECT ALL - col2 + - col1, col2 FROM tab0
----
-100
99
-128
47
-31
10

onlyif mysql # DIV for integer division: 
query I rowsort label-440
SELECT ALL - ( - col1 ) + - col1 DIV - ( + - col0 ) AS col1 FROM tab2
----
50
67
76

skipif mysql # not compatible
query I rowsort label-440
SELECT ALL - ( - col1 ) + - col1 / - ( + - col0 ) AS col1 FROM tab2
----
50
67
76

query I rowsort
SELECT + col1 + + 3 + + 33 * + col0 FROM tab2
----
1572
2192
2545

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 57 + 19 AS col2 FROM tab0 AS cor0
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-447
SELECT - - col2 + + CAST( col2 AS SIGNED ) FROM tab1 AS cor0 WHERE 70 - - col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-447
SELECT - - col2 + + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0 WHERE 70 - - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT DISTINCT + COUNT( * ) * + 8 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-448
SELECT DISTINCT + COUNT ( * ) * + 8 FROM tab2 AS cor0
----
24

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-451
SELECT DISTINCT - MAX( ALL + 11 ) FROM tab1 AS cor0 WHERE + 61 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-451
SELECT DISTINCT - MAX ( ALL + 11 ) FROM tab1 AS cor0 WHERE + 61 IS NULL
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-454
SELECT 7 * MAX( - + col0 ) AS col2 FROM tab1
----
-357

skipif mysql # not compatible
query I rowsort label-454
SELECT 7 * MAX ( - + col0 ) AS col2 FROM tab1
----
-357

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-455
SELECT DISTINCT - CAST( 13 AS SIGNED ) * + col1 FROM tab0
----
-1053
-13
-273

skipif mysql # not compatible
query I rowsort label-455
SELECT DISTINCT - CAST ( 13 AS INTEGER ) * + col1 FROM tab0
----
-1053
-13
-273

query I rowsort
SELECT ALL + - ( + 58 ) FROM tab2 WHERE - 66 >= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-457
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT NULL <= - col2
----
0

skipif mysql # not compatible
query I rowsort label-457
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT NULL <= - col2
----
0

query II rowsort
SELECT ALL + col1 * + col0, ( - - 88 ) AS col0 FROM tab2
----
2346
88
4928
88
5025
88

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 + + col0 = - 96 * + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

query I rowsort
SELECT - + 67 AS col1 FROM tab1 AS cor0
----
-67
-67
-67

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

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

query I rowsort
SELECT - - 9 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

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

skipif mysql # not compatible
query I rowsort label-465
SELECT DISTINCT COUNT ( * ) + 66 FROM tab0
----
69

query II rowsort
SELECT - 58 + + 33 * - 24 + - col1 - + ( + col1 ) AS col2, - col2 FROM tab0 AS cor0
----
-1012
-47
-852
-99
-892
-10

query I rowsort
SELECT ALL - 44 + - 82 FROM tab2 cor0
----
-126
-126
-126

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 21 * + + ( - 41 ) + + + 81 col0 FROM tab0 AS cor0
----
-780
-780
-780

onlyif mysql # aggregate syntax: 
query I rowsort label-470
SELECT ALL + - COUNT( DISTINCT + 65 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-470
SELECT ALL + - COUNT ( DISTINCT + 65 ) AS col0 FROM tab0 AS cor0
----
-1

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

query I rowsort
SELECT + + col1 * + 6 FROM tab2 AS cor0
----
306
402
462

onlyif mysql # aggregate syntax: 
query I rowsort label-473
SELECT - - 71 * + + 91 * + - 27 - - + COUNT( * ) FROM tab0 AS cor0
----
-174444

skipif mysql # not compatible
query I rowsort label-473
SELECT - - 71 * + + 91 * + - 27 - - + COUNT ( * ) FROM tab0 AS cor0
----
-174444

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-474
SELECT DISTINCT - col2 AS col0 FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-474
SELECT DISTINCT - col2 AS col0 FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 86 * - 12 - 49 + col2 - - - 89 + + - col2 * - col2 col0 FROM tab0 AS cor0
----
1004
10794
3150

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

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

query II rowsort
SELECT col1 AS col0, col0 - 99 AS col2 FROM tab2
----
51
-53
67
-24
77
-35

query I rowsort
SELECT ALL - col0 + - ( + col1 ) FROM tab2
----
-141
-142
-97

query I rowsort
SELECT DISTINCT col2 * 9 * - col1 - col1 AS col2 FROM tab2 AS cor0
----
-10608
-27797
-35041

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-483
SELECT DISTINCT col0 - - 98 DIV + col0 AS col0 FROM tab0 AS cor0
----
21
88
98

skipif mysql # not compatible
query I rowsort label-483
SELECT DISTINCT col0 - - 98 / + col0 AS col0 FROM tab0 AS cor0
----
21
88
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-484
SELECT ( + 40 ) DIV - SUM( 93 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-484
SELECT ( + 40 ) / - SUM ( 93 ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-485
SELECT ALL - COUNT( * ) * + + COUNT( * ) AS col0 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-485
SELECT ALL - COUNT ( * ) * + + COUNT ( * ) AS col0 FROM tab1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-486
SELECT DISTINCT CAST( + + ( + - 44 ) AS SIGNED ) FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-486
SELECT DISTINCT CAST ( + + ( + - 44 ) AS INTEGER ) FROM tab0
----
-44

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

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

query I rowsort
SELECT - - col2 * - - 54 - + col1 FROM tab1 AS cor0
----
3181
3625
5170

query II rowsort
SELECT col2, - col2 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN - 61 AND NULL
----

query I rowsort
SELECT + 58 AS col2 FROM tab1 cor0
----
58
58
58

query II rowsort
SELECT ALL col1, 66 AS col0 FROM tab2
----
51
66
67
66
77
66

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

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

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

query I rowsort
SELECT DISTINCT 61 * - + col1 FROM tab1
----
-2867
-305
-854

query I rowsort
SELECT ALL - col0 * - col1 * - col2 FROM tab1
----
-25075
-290836
-68544

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

onlyif mysql # aggregate syntax: 
query II rowsort label-498
SELECT ALL 94, - SUM( - ( - ( - - 3 ) ) ) AS col1 FROM tab0
----
94
-9

skipif mysql # not compatible
query II rowsort label-498
SELECT ALL 94, - SUM ( - ( - ( - - 3 ) ) ) AS col1 FROM tab0
----
94
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, + 22 col0 FROM tab1
----
-51
22
-85
22
-91
22

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-501
SELECT ALL - CAST( - col0 AS SIGNED ) AS col2 FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-501
SELECT ALL - CAST ( - col0 AS INTEGER ) AS col2 FROM tab1 cor0
----
51
85
91

onlyif mysql # DIV for integer division: 
query II rowsort label-502
SELECT ALL col2 + - col1 AS col1, col1 DIV + col2 + + col0 FROM tab2
----
-28
48
-37
65
-9
76

skipif mysql # not compatible
query II rowsort label-502
SELECT ALL col2 + - col1 AS col1, col1 / + col2 + + col0 FROM tab2
----
-28
48
-37
65
-9
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-503
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - - COUNT( * ) AS col0, + COUNT( * ) FROM tab1
----
NULL
3

skipif mysql # not compatible
query II rowsort label-503
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - - COUNT ( * ) AS col0, + COUNT ( * ) FROM tab1
----
NULL
3

query I rowsort
SELECT ALL col1 * + 32 * - col0 FROM tab2
----
-157696
-160800
-75072

query I rowsort
SELECT DISTINCT + 21 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
21

query I rowsort
SELECT ALL 79 + col2 - - col2 * col1 FROM tab0
----
277
299
3933

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

query II rowsort
SELECT ALL + 46 + col0, col2 AS col2 FROM tab0 AS cor0
----
133
10
143
99
61
47

onlyif mysql # aggregate syntax: 
query I rowsort label-509
SELECT + MIN( ALL - 69 ) + + ( COUNT( * ) ) FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-509
SELECT + MIN ( ALL - 69 ) + + ( COUNT ( * ) ) FROM tab2 AS cor0
----
-66

query I rowsort
SELECT DISTINCT + col2 + + + 50 + + col2 AS col2 FROM tab2 AS cor0
----
130
166
96

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

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

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

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

query I rowsort
SELECT ALL - col2 * 79 AS col2 FROM tab2
----
-1817
-3160
-4582

query I rowsort
SELECT ALL - ( + 85 ) + - + 61 FROM tab1
----
-146
-146
-146

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

skipif mysql # not compatible
query I rowsort label-516
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-517
SELECT DISTINCT + - COUNT( * ) FROM tab1 WHERE NOT 75 > + + col0
----
-2

skipif mysql # not compatible
query I rowsort label-517
SELECT DISTINCT + - COUNT ( * ) FROM tab1 WHERE NOT 75 > + + col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-518
SELECT + MIN( ALL 26 ) FROM tab0 WHERE NULL IS NULL
----
26

skipif mysql # not compatible
query I rowsort label-518
SELECT + MIN ( ALL 26 ) FROM tab0 WHERE NULL IS NULL
----
26

query I rowsort
SELECT col0 + + - col0 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - AVG ( - 51 ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL - 83 * col1 * + - col0 FROM tab0
----
100845
151641
8051

onlyif mysql # aggregate syntax: 
query I rowsort label-522
SELECT - COUNT( * ) * + 21 AS col2 FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-522
SELECT - COUNT ( * ) * + 21 AS col2 FROM tab1
----
-63

query I rowsort
SELECT ALL - ( + col0 ) FROM tab0 AS cor0 WHERE ( NULL ) > NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-525
SELECT + SUM ( ALL - + col2 ) / + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query II rowsort
SELECT DISTINCT col1, ( + col1 ) * - col1 * - + col0 - - 20 AS col2 FROM tab1
----
14
10016
47
201039
5
2145

query I rowsort
SELECT ALL - + 5 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-528
SELECT - CAST( - 13 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
13
13
13

skipif mysql # not compatible
query I rowsort label-528
SELECT - CAST ( - 13 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
13
13
13

query I rowsort
SELECT ALL + 84 * + col2 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
4956
5712
8064

onlyif mysql # DIV for integer division: 
query I rowsort label-530
SELECT DISTINCT - - col0 * - col1 * col0 DIV - + col0 + 77 AS col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
1292
174
1904

skipif mysql # not compatible
query I rowsort label-530
SELECT DISTINCT - - col0 * - col1 * col0 / - + col0 + 77 AS col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
1292
174
1904

query II rowsort
SELECT ALL + col2 AS col2, col0 FROM tab2 cor0
----
23
46
40
64
58
75

query II rowsort
SELECT ALL - col1, col1 * - 54 - + col2 AS col2 FROM tab1 AS cor0
----
-14
-852
-47
-2606
-5
-329

query I rowsort
SELECT DISTINCT 12 * col0 AS col2 FROM tab1 WHERE ( NULL IS NULL )
----
1020
1092
612

onlyif mysql # DIV for integer division: 
query I rowsort label-534
SELECT ALL ( - 29 ) DIV + + col1 FROM tab0
----
-1
-29
0

skipif mysql # not compatible
query I rowsort label-534
SELECT ALL ( - 29 ) / + + col1 FROM tab0
----
-1
-29
0

query I rowsort
SELECT - 58 FROM tab1 WHERE NOT - col1 * col0 IS NULL
----
-58
-58
-58

onlyif mysql # DIV for integer division: 
query II rowsort label-536
SELECT DISTINCT + col2 DIV + col2, col0 AS col1 FROM tab0
----
1
15
1
87
1
97

skipif mysql # not compatible
query II rowsort label-536
SELECT DISTINCT + col2 / + col2, col0 AS col1 FROM tab0
----
1
15
1
87
1
97

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL >= + 51 + col2 + - col1 + + ( + + col0 ) / + - 36 * - + ( + col0 ) + - 9 + + - col1
----

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

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

query II rowsort
SELECT ALL + col1 * col0 * col1 AS col1, + col2 + - 21 + + - 96 * - + col2 FROM tab2 AS cor0
----
119646
2210
336675
5605
379456
3859

query I rowsort
SELECT DISTINCT - col2 + - col1 + - col2 FROM tab2 AS cor0
----
-157
-183
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-543
SELECT + 56 * - COUNT( ALL - col0 ) col1 FROM tab2 AS cor0
----
-168

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

query I rowsort
SELECT 63 * + - 63 * 28 FROM tab2 AS cor0
----
-111132
-111132
-111132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * + col2 col2, + col0 FROM tab0
----
210
87
3807
15
99
97

onlyif mysql # aggregate syntax: 
query II rowsort label-546
SELECT 97 * + COUNT( * ) AS col0, COUNT( * ) FROM tab2
----
291
3

skipif mysql # not compatible
query II rowsort label-546
SELECT 97 * + COUNT ( * ) AS col0, COUNT ( * ) FROM tab2
----
291
3

query I rowsort
SELECT - col1 * + col1 - + + col2 FROM tab1
----
-2277
-292
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-548
SELECT ALL ( - - CAST( - + MIN( ALL + 32 ) AS SIGNED ) ) * COUNT( * ) FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-548
SELECT ALL ( - - CAST ( - + MIN ( ALL + 32 ) AS INTEGER ) ) * COUNT ( * ) FROM tab2
----
-96

query I rowsort
SELECT 5 - col2 + - col2 AS col0 FROM tab1
----
-113
-131
-187

onlyif mysql # aggregate syntax: 
query I rowsort label-550
SELECT - 75 - - - SUM( 29 ) col0 FROM tab2
----
-162

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-550
SELECT - 75 - - - SUM ( 29 ) col0 FROM tab2
----
-162

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

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

skipif mysql # not compatible
query I rowsort label-552
SELECT DISTINCT + + COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

query I rowsort
SELECT ALL - col0 * + - 11 FROM tab2
----
506
704
825

query I rowsort
SELECT DISTINCT - 73 AS col1 FROM tab1, tab1 AS cor0
----
-73

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-555
SELECT ALL COUNT( ALL + CAST( NULL AS DECIMAL ) ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE 85 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-555
SELECT ALL COUNT ( ALL + CAST ( NULL AS REAL ) ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE 85 IS NULL
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-558
SELECT ALL + + col2 DIV + col0 * 62 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-558
SELECT ALL + + col2 / + col0 * 62 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ( - 97 ) AS col1 FROM tab2 AS cor0
----
-97
-97
-97

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

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

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

query I rowsort
SELECT DISTINCT col0 * + 78 AS col0 FROM tab2 cor0 WHERE + ( - - col1 ) NOT IN ( - + col1, - col1 * - 35, col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 65 col1 FROM tab0
----
65
65
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-564
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1, - 69 AS col0 FROM tab2
----
NULL
-69

skipif mysql # not compatible
query II rowsort label-564
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, - 69 AS col0 FROM tab2
----
NULL
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-565
SELECT + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL = - + col1
----

skipif mysql # not compatible
query I rowsort label-565
SELECT + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL = - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-566
SELECT ALL - col0 FROM tab2 WHERE + - CAST( + col0 AS SIGNED ) IS NOT NULL
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-566
SELECT ALL - col0 FROM tab2 WHERE + - CAST ( + col0 AS INTEGER ) IS NOT NULL
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 * - col0 <= - 49
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-568
SELECT - COUNT( * ) + + COUNT( * ) * + 44 + - + COUNT( * ) * COUNT( * ) FROM tab1
----
120

skipif mysql # not compatible
query I rowsort label-568
SELECT - COUNT ( * ) + + COUNT ( * ) * + 44 + - + COUNT ( * ) * COUNT ( * ) FROM tab1
----
120

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + col2 * col1 * 18 * - 74 AND - 41
----

query II rowsort
SELECT ALL col0 AS col1, + col0 * + col2 AS col1 FROM tab1
----
51
4896
85
5015
91
6188

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

skipif mysql # not compatible
query I rowsort label-571
SELECT ALL + + SUM ( - + col2 ) FROM tab1 AS cor0
----
-223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-572
SELECT DISTINCT COUNT( * ) + - 58, CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-55
NULL

skipif mysql # not compatible
query II rowsort label-572
SELECT DISTINCT COUNT ( * ) + - 58, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-55
NULL

query I rowsort
SELECT DISTINCT col2 - + 41 FROM tab1 AS cor0
----
18
27
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-574
SELECT ALL + col1 + - + 9 - CAST( - col0 AS SIGNED ) * + + col1 FROM tab2 AS cor0
----
2388
4996
5083

skipif mysql # not compatible
query I rowsort label-574
SELECT ALL + col1 + - + 9 - CAST ( - col0 AS INTEGER ) * + + col1 FROM tab2 AS cor0
----
2388
4996
5083

query I rowsort
SELECT - - col1 + + + col0 AS col2 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT - ( MIN( ALL col0 ) ) + 79 col2 FROM tab0 AS cor0
----
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-576
SELECT - ( MIN ( ALL col0 ) ) + 79 col2 FROM tab0 AS cor0
----
64

query II rowsort
SELECT col0 + - 25 AS col1, col2 AS col0 FROM tab2 cor0
----
21
23
39
40
50
58

onlyif mysql # aggregate syntax: 
query I rowsort label-578
SELECT - 61 + COUNT( + col2 ) AS col0 FROM tab1 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-578
SELECT - 61 + COUNT ( + col2 ) AS col0 FROM tab1 AS cor0
----
-58

query I rowsort
SELECT col0 * + 0 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT + col2 * + 62 FROM tab1
----
3658
4216
5952

query I rowsort
SELECT - 59 * col0 AS col1 FROM tab2
----
-2714
-3776
-4425

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

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

query II rowsort
SELECT DISTINCT col0, 66 + - + col0 * + col1 AS col1 FROM tab1 AS cor0
----
51
-648
85
-359
91
-4211

query II rowsort
SELECT ALL - col2 AS col2, col1 * - 4 FROM tab2 AS cor0
----
-23
-204
-40
-308
-58
-268

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN ( NULL ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + 24 * col1 col2 FROM tab1
----
1081
115
322

query I rowsort
SELECT + 56 + col0 AS col2 FROM tab2
----
102
120
131

query I rowsort
SELECT ( 24 ) * + col0 + 65 FROM tab0
----
2153
2393
425

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 NOT IN ( - col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE col2 * - ( + 54 ) IS NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE NOT NULL = - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-593
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 0 FROM tab1 WHERE NOT ( col2 ) < col2
----
NULL

skipif mysql # not compatible
query I rowsort label-593
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 0 FROM tab1 WHERE NOT ( col2 ) < col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-594
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 WHERE NOT ( - 43 + ( col1 ) ) NOT BETWEEN ( col2 * - 87 + 5 ) AND ( ( + col0 ) )
----
3

skipif mysql # not compatible
query I rowsort label-594
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 WHERE NOT ( - 43 + ( col1 ) ) NOT BETWEEN ( col2 * - 87 + 5 ) AND ( ( + col0 ) )
----
3

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE + col1 IN ( 38 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) + 74 AS col0 FROM tab0
----
65

skipif mysql # not compatible
query I rowsort label-596
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) + 74 AS col0 FROM tab0
----
65

query III rowsort
SELECT * FROM tab1 WHERE ( - 17 ) < ( - 62 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + 52 * + col1 col0 FROM tab1
----
2397
255
714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-599
SELECT CAST( - MIN( DISTINCT ( 40 ) ) AS SIGNED ) FROM tab0
----
-40

skipif mysql # not compatible
query I rowsort label-599
SELECT CAST ( - MIN ( DISTINCT ( 40 ) ) AS INTEGER ) FROM tab0
----
-40

query I rowsort
SELECT DISTINCT col1 * + 5 AS col2 FROM tab1
----
235
25
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-601
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) * - col0 FROM tab1 WHERE NOT + 42 IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT 33 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 64 * col0 FROM tab1
----
3264
5440
5824

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

skipif mysql # not compatible
query III rowsort label-604
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( + CAST ( col2 AS REAL ) )
----

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

query I rowsort
SELECT 13 AS col0 FROM tab2 AS cor0 WHERE col2 * - col1 + 19 / col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-607
SELECT DISTINCT MAX( - 58 ) FROM tab2 AS cor0 WHERE NOT col2 * col2 IS NULL
----
-58

skipif mysql # not compatible
query I rowsort label-607
SELECT DISTINCT MAX ( - 58 ) FROM tab2 AS cor0 WHERE NOT col2 * col2 IS NULL
----
-58

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-610
SELECT 82 + - MIN( + 42 ) FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-610
SELECT 82 + - MIN ( + 42 ) FROM tab2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-611
SELECT DISTINCT 63 + MIN( col0 ) AS col0 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-611
SELECT DISTINCT 63 + MIN ( col0 ) AS col0 FROM tab0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-612
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE + ( col2 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-612
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE + ( col2 ) IS NOT NULL
----
3

query I rowsort
SELECT ALL + col0 * - col0 + col1 * col0 AS col1 FROM tab0 AS cor0
----
-5742
-9312
990

query I rowsort
SELECT DISTINCT + col0 - - 45 FROM tab1 AS cor0
----
130
136
96

query I rowsort
SELECT ALL - col2 * + 69 FROM tab0 AS cor0 WHERE col1 + 14 IS NOT NULL
----
-3243
-6831
-690

query I rowsort
SELECT + - 56 * - 42 - - col2 FROM tab2 AS cor0
----
2375
2392
2410

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT COUNT( * ) + + SUM( 84 ) AS col1 FROM tab2 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-617
SELECT COUNT ( * ) + + SUM ( 84 ) AS col1 FROM tab2 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND + col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-618
SELECT DISTINCT + col0 + 39 AS col1 FROM tab0 WHERE NOT ( ( - CAST( NULL AS SIGNED ) ) * 60 ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-618
SELECT DISTINCT + col0 + 39 AS col1 FROM tab0 WHERE NOT ( ( - CAST ( NULL AS INTEGER ) ) * 60 ) >= NULL
----

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

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

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

query I rowsort
SELECT - col1 * + + 6 FROM tab0
----
-126
-486
-6

query I rowsort
SELECT DISTINCT + col1 * + col2 * - ( col1 * 43 ) AS col2 FROM tab0
----
-13259781
-189630
-4257

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

query I rowsort
SELECT DISTINCT ( 57 ) * + 50 FROM tab2 WHERE NOT NULL IN ( + 66 * col2 - 46 * + col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col2 ) > ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-626
SELECT 63 DIV + 80 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-626
SELECT 63 / + 80 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-627
SELECT col2 DIV - col0 FROM tab2 AS cor0 WHERE NOT ( + col2 ) IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-627
SELECT col2 / - col0 FROM tab2 AS cor0 WHERE NOT ( + col2 ) IS NULL
----
0
0
0

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

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

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

query I rowsort
SELECT - + 50 + ( 20 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE ( NULL ) IS NULL
----
14
47
5

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

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

query I rowsort
SELECT + 4 * - 48 AS col0 FROM tab0 AS cor0 WHERE NOT - 55 IS NULL
----
-192
-192
-192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col2, 8 AS col0 FROM tab0 cor0
----
-15
8
-87
8
-97
8

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

onlyif mysql # DIV for integer division: 
query I rowsort label-636
SELECT + col1 DIV ( col1 ) FROM tab0 AS cor0
----
1
1
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-637
SELECT + COUNT( DISTINCT + 74 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-637
SELECT + COUNT ( DISTINCT + 74 ) FROM tab2 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-638
SELECT + - 72 AS col0, + col2 DIV + col2 FROM tab0 AS cor0
----
-72
1
-72
1
-72
1

skipif mysql # not compatible
query II rowsort label-638
SELECT + - 72 AS col0, + col2 / + col2 FROM tab0 AS cor0
----
-72
1
-72
1
-72
1

query I rowsort
SELECT col0 FROM tab0 WHERE ( - + col2 * - 58 ) = ( 80 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-640
SELECT ALL col0 DIV - 2 - col1 * col1 AS col0 FROM tab0 WHERE NULL IS NULL
----
-484
-49
-6568

skipif mysql # not compatible
query I rowsort label-640
SELECT ALL col0 / - 2 - col1 * col1 AS col0 FROM tab0 WHERE NULL IS NULL
----
-484
-49
-6568

onlyif mysql # aggregate syntax: 
query I rowsort label-641
SELECT - 87 + - COUNT( * ) FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-641
SELECT - 87 + - COUNT ( * ) FROM tab1
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-642
SELECT ALL ( + - CAST( 15 AS SIGNED ) ) * - col0 * 19 AS col2 FROM tab1
----
14535
24225
25935

skipif mysql # not compatible
query I rowsort label-642
SELECT ALL ( + - CAST ( 15 AS INTEGER ) ) * - col0 * 19 AS col2 FROM tab1
----
14535
24225
25935

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-643
SELECT DISTINCT 27 + + - CAST( - - CAST( - 71 AS SIGNED ) AS SIGNED ) FROM tab0
----
98

skipif mysql # not compatible
query I rowsort label-643
SELECT DISTINCT 27 + + - CAST ( - - CAST ( - 71 AS INTEGER ) AS INTEGER ) FROM tab0
----
98

query I rowsort
SELECT DISTINCT 75 * + - col1 * + 5 FROM tab0
----
-30375
-375
-7875

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

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

query I rowsort
SELECT + col2 - col2 * - 71 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN col0 * + ( 19 ) * - col1 AND + col1
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-649
SELECT col0 - + 89 DIV + + col0 col2 FROM tab1
----
50
84
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-649
SELECT col0 - + 89 / + + col0 col2 FROM tab1
----
50
84
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-650
SELECT * FROM tab1 WHERE 14 < - - CAST( NULL AS SIGNED ) + + 74
----

skipif mysql # not compatible
query III rowsort label-650
SELECT * FROM tab1 WHERE 14 < - - CAST ( NULL AS INTEGER ) + + 74
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 86 + + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-652
SELECT + 79 - - ( - CAST( NULL AS SIGNED ) ) AS col0, - 97 * - 93 AS col1 FROM tab0
----
NULL
9021
NULL
9021
NULL
9021

skipif mysql # not compatible
query II rowsort label-652
SELECT + 79 - - ( - CAST ( NULL AS INTEGER ) ) AS col0, - 97 * - 93 AS col1 FROM tab0
----
NULL
9021
NULL
9021
NULL
9021

onlyif mysql # aggregate syntax: 
query I rowsort label-653
SELECT + - MAX( ALL 72 ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-72

skipif mysql # not compatible
query I rowsort label-653
SELECT + - MAX ( ALL 72 ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-72

query I rowsort
SELECT 47 * + + col0 * + + col1 + + col1 FROM tab0
----
4560
57186
85890

query I rowsort
SELECT DISTINCT + - 39 - - col2 + + col2 * - + col1 * - col2 FROM tab0 AS cor0
----
178937
2071
9861

onlyif mysql # DIV for integer division: 
query I rowsort label-656
SELECT col0 + + - col2 DIV col2 AS col2 FROM tab1 cor0
----
50
84
90

skipif mysql # not compatible
query I rowsort label-656
SELECT col0 + + - col2 / col2 AS col2 FROM tab1 cor0
----
50
84
90

query I rowsort
SELECT DISTINCT + + 40 + - col1 FROM tab1 AS cor0
----
-7
26
35

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

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

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

query I rowsort
SELECT DISTINCT 89 * - col0 AS col0 FROM tab1 AS cor0 WHERE ( - col2 ) < NULL
----

query II rowsort
SELECT DISTINCT + col1, 98 + 4 * col2 AS col2 FROM tab1 AS cor0
----
14
482
47
370
5
334

query I rowsort
SELECT DISTINCT ( + - 29 ) FROM tab2
----
-29

query II rowsort
SELECT + col2 * 52, col0 FROM tab0
----
2444
15
5148
97
520
87

onlyif mysql # DIV for integer division: 
query I rowsort label-664
SELECT + 86 DIV col2 FROM tab0
----
0
1
8

skipif mysql # not compatible
query I rowsort label-664
SELECT + 86 / col2 FROM tab0
----
0
1
8

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE NOT ( 23 ) IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT ALL + MAX( DISTINCT - - col0 ) FROM tab1 AS cor0 WHERE ( - col0 * col0 ) > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-668
SELECT ALL + MAX ( DISTINCT - - col0 ) FROM tab1 AS cor0 WHERE ( - col0 * col0 ) > NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-669
SELECT DISTINCT - + 55 AS col1, + 2 DIV + COUNT( * ) AS col2 FROM tab1 cor0
----
-55
0

skipif mysql # not compatible
query II rowsort label-669
SELECT DISTINCT - + 55 AS col1, + 2 / + COUNT ( * ) AS col2 FROM tab1 cor0
----
-55
0

query I rowsort
SELECT + col1 - 59 AS col2 FROM tab0 AS cor0 WHERE ( - 9 ) BETWEEN NULL AND NULL OR + 78 + + col2 + col2 NOT BETWEEN + 17 AND + 80 + 64
----
-58
22

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-671
SELECT * FROM tab0 AS cor0 WHERE NOT 61 * CAST( NULL AS DECIMAL ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-671
SELECT * FROM tab0 AS cor0 WHERE NOT 61 * CAST ( NULL AS REAL ) NOT BETWEEN NULL AND NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-673
SELECT ALL - col1 DIV - col1 + - 9 FROM tab1 cor0
----
-8
-8
-8

skipif mysql # not compatible
query I rowsort label-673
SELECT ALL - col1 / - col1 + - 9 FROM tab1 cor0
----
-8
-8
-8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-674
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 IN ( - col2 / + CAST( - 31 AS SIGNED ), 74 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-674
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 IN ( - col2 / + CAST ( - 31 AS INTEGER ), 74 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT DISTINCT - 55 AS col1 FROM tab1 cor0
----
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col0, - col1 * + col1 col0 FROM tab1
----
59
-25
68
-2209
96
-196

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

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

query I rowsort
SELECT ALL - 19 * + - col1 AS col0 FROM tab0
----
1539
19
399

query I rowsort
SELECT DISTINCT col2 + - col2 * - ( + col2 ) FROM tab1
----
3540
4692
9312

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col2, + col0 - + 77 * 59 * + - col2 col2 FROM tab0
----
-10
45517
-47
213536
-99
449854

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

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

query II rowsort
SELECT ( col1 ) + - - col0 AS col0, - ( - + col1 ) FROM tab0 AS cor0
----
108
21
96
81
98
1

query I rowsort
SELECT + + col0 + + 78 AS col2 FROM tab0 AS cor0
----
165
175
93

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-689
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-689
SELECT CAST ( COUNT ( * ) AS INTEGER ) col0 FROM tab1
----
3

query II rowsort
SELECT DISTINCT + col1 AS col0, 72 * col1 FROM tab0
----
1
72
21
1512
81
5832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 79 * - col1 col1 FROM tab2
----
4029
5293
6083

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

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

skipif mysql # not compatible
query III rowsort label-693
SELECT ALL * FROM tab1 WHERE NOT + - col0 + + CAST ( NULL AS INTEGER ) * col0 * col1 * - col2 - + - 39 + - col2 + - col0 + CAST ( NULL AS INTEGER ) <= col1 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-694
SELECT + MAX( - 16 ) AS col2 FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-694
SELECT + MAX ( - 16 ) AS col2 FROM tab1 AS cor0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-695
SELECT DISTINCT COUNT( * ) * 56 FROM tab2 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-695
SELECT DISTINCT COUNT ( * ) * 56 FROM tab2 AS cor0
----
168

query II rowsort
SELECT ALL col1, 15 + - col1 FROM tab1
----
14
1
47
-32
5
10

query I rowsort
SELECT ALL 47 + + - col0 FROM tab2
----
-17
-28
1

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

onlyif mysql # DIV for integer division: 
query II rowsort label-699
SELECT + col1 AS col0, - 46 DIV 91 AS col1 FROM tab2 AS cor0
----
51
0
67
0
77
0

skipif mysql # not compatible
query II rowsort label-699
SELECT + col1 AS col0, - 46 / 91 AS col1 FROM tab2 AS cor0
----
51
0
67
0
77
0

onlyif mysql # DIV for integer division: 
query I rowsort label-700
SELECT DISTINCT - col0 DIV + + ( - 42 ) - 69 + - col1 AS col0 FROM tab1 AS cor0
----
-114
-72
-82

skipif mysql # not compatible
query I rowsort label-700
SELECT DISTINCT - col0 / + + ( - 42 ) - 69 + - col1 AS col0 FROM tab1 AS cor0
----
-114
-72
-82

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-701
SELECT * FROM tab0 AS cor0 WHERE - 15 NOT IN ( - CAST( NULL AS SIGNED ), 66, + 84 )
----

skipif mysql # not compatible
query III rowsort label-701
SELECT * FROM tab0 AS cor0 WHERE - 15 NOT IN ( - CAST ( NULL AS INTEGER ), 66, + 84 )
----

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

query II rowsort
SELECT ALL - + col1 * col1, + col1 AS col1 FROM tab2 AS cor0
----
-2601
51
-4489
67
-5929
77

query I rowsort
SELECT DISTINCT 54 * + col0 * col1 AS col2 FROM tab2 AS cor0
----
126684
266112
271350

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-706
SELECT ALL - MIN( DISTINCT + col0 ) * + - COUNT( DISTINCT + col2 ) AS col1 FROM tab2 cor0
----
138

skipif mysql # not compatible
query I rowsort label-706
SELECT ALL - MIN ( DISTINCT + col0 ) * + - COUNT ( DISTINCT + col2 ) AS col1 FROM tab2 cor0
----
138

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-707
SELECT CAST( col0 AS SIGNED ) + 83 DIV + + col2 AS col1 FROM tab0 AS cor0
----
16
95
97

skipif mysql # not compatible
query I rowsort label-707
SELECT CAST ( col0 AS INTEGER ) + 83 / + + col2 AS col1 FROM tab0 AS cor0
----
16
95
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 64 col2, - col2 AS col1 FROM tab1 AS cor0
----
-64
-59
-64
-68
-64
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-709
SELECT ALL COUNT( * ) AS col0, + COUNT( * ) FROM tab0, tab0 AS cor0
----
9
9

skipif mysql # not compatible
query II rowsort label-709
SELECT ALL COUNT ( * ) AS col0, + COUNT ( * ) FROM tab0, tab0 AS cor0
----
9
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = - 58
----

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

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

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

query I rowsort
SELECT DISTINCT 73 FROM tab0 WHERE col2 IS NULL
----

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col0 ) <= col2 - - 77
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT DISTINCT + 14 + 34 AS col0 FROM tab1 cor0
----
48

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-721
SELECT + 7 AS col2, 58 + + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
7
67

skipif mysql # not compatible
query II rowsort label-721
SELECT + 7 AS col2, 58 + + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
7
67

query I rowsort
SELECT ALL + + ( - 92 ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

onlyif mysql # aggregate syntax: 
query I rowsort label-723
SELECT ALL COUNT( ALL - 20 ) AS col1 FROM tab1 cor0 WHERE NOT + 83 + + col2 + col2 - - col1 + col1 + + 77 NOT BETWEEN ( - 74 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-723
SELECT ALL COUNT ( ALL - 20 ) AS col1 FROM tab1 cor0 WHERE NOT + 83 + + col2 + col2 - - col1 + col1 + + 77 NOT BETWEEN ( - 74 ) AND NULL
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-726
SELECT + COUNT ( * ) / + MAX ( + col1 ) FROM tab2 cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < 58
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-729
SELECT + MAX( - 81 ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-729
SELECT + MAX ( - 81 ) AS col0 FROM tab0 AS cor0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-730
SELECT ALL - col1 DIV + col0 - col2 + - col1 FROM tab1 AS cor0
----
-110
-115
-64

skipif mysql # not compatible
query I rowsort label-730
SELECT ALL - col1 / + col0 - col2 + - col1 FROM tab1 AS cor0
----
-110
-115
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-731
SELECT DISTINCT + MAX( 15 ) FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-731
SELECT DISTINCT + MAX ( 15 ) FROM tab0 cor0
----
15

query I rowsort
SELECT DISTINCT - col0 * - + col1 * - 85 AS col1 FROM tab0
----
-103275
-155295
-8245

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

query I rowsort
SELECT ALL 86 * + col1 AS col1 FROM tab1
----
1204
4042
430

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 * + 57 col0 FROM tab1
----
3306
3306
3306

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * - 10 AS col2, + col1 col0 FROM tab1
----
-510
14
-850
5
-910
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 43 * + + 55 col1 FROM tab1 AS cor0
----
2365

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

skipif mysql # not compatible
query I rowsort label-738
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * col1 + + 63 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-739
SELECT ALL + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT 16 / + - 53 + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-739
SELECT ALL + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 16 / + - 53 + col0 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-740
SELECT ALL - - ( - col0 ) DIV - - col2 AS col1 FROM tab0 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-740
SELECT ALL - - ( - col0 ) / - - col2 AS col1 FROM tab0 AS cor0
----
-8
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-741
SELECT + ( col2 ) AS col0, col0 + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-741
SELECT + ( col2 ) AS col0, col0 + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-742
SELECT DISTINCT - MIN( DISTINCT + col0 ) col1, - 30 + - - 42 FROM tab1 AS cor0
----
-51
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-742
SELECT DISTINCT - MIN ( DISTINCT + col0 ) col1, - 30 + - - 42 FROM tab1 AS cor0
----
-51
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-743
SELECT DISTINCT - 92 AS col1, CAST( NULL AS SIGNED ) * COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-92
NULL

skipif mysql # not compatible
query II rowsort label-743
SELECT DISTINCT - 92 AS col1, CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-92
NULL

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE - 37 <= - + 78
----

query I rowsort
SELECT - col2 + - - col0 FROM tab1 AS cor0
----
-45
23
26

query I rowsort
SELECT DISTINCT + + col0 * - col0 + - col0 * + col2 * col0 * + + 46 * + 52 FROM tab2 AS cor0
----
-116415972
-391909376
-780395625

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT 2 * + MIN( DISTINCT + + 51 ) + + 44 AS col2 FROM tab1 AS cor0
----
146

skipif mysql # not compatible
query I rowsort label-751
SELECT 2 * + MIN ( DISTINCT + + 51 ) + + 44 AS col2 FROM tab1 AS cor0
----
146

query I rowsort
SELECT DISTINCT + col1 + - 25 + col0 FROM tab0 AS cor0
----
71
73
83

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-755
SELECT - col2 DIV + 90 * - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-755
SELECT - col2 / + 90 * - col0 FROM tab2
----
0
0
0

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-758
SELECT - - CAST( - col0 AS SIGNED ) + - col2 FROM tab2 AS cor0
----
-104
-133
-69

skipif mysql # not compatible
query I rowsort label-758
SELECT - - CAST ( - col0 AS INTEGER ) + - col2 FROM tab2 AS cor0
----
-104
-133
-69

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 66 + - + col2 - 37 NOT BETWEEN ( col0 ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 91 AS col0 FROM tab2 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE ( col0 ) IN ( 82, + col0 + 28, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-763
SELECT - COUNT( * ) * - - 4 * + COUNT( * ) FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-763
SELECT - COUNT ( * ) * - - 4 * + COUNT ( * ) FROM tab2 AS cor0
----
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col1 col0 FROM tab2 WHERE NOT + 38 + + 85 BETWEEN + col2 + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-765
SELECT ALL + ( MAX( DISTINCT 42 ) ) FROM tab0 cor0
----
42

skipif mysql # not compatible
query I rowsort label-765
SELECT ALL + ( MAX ( DISTINCT 42 ) ) FROM tab0 cor0
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-766
SELECT 92 DIV COUNT( * ), + COUNT( ALL + + col2 ) AS col2 FROM tab2 AS cor0
----
30
3

skipif mysql # not compatible
query II rowsort label-766
SELECT 92 / COUNT ( * ), + COUNT ( ALL + + col2 ) AS col2 FROM tab2 AS cor0
----
30
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - col1 col1 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT ALL + ( + col1 ) * - + col1 FROM tab0 AS cor0
----
-1
-441
-6561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-769
SELECT + SUM( CAST( + col2 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-769
SELECT + SUM ( CAST ( + col2 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
223

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-771
SELECT ALL + COUNT( DISTINCT - - 91 ) col2 FROM tab2 AS cor0
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-772
SELECT - COUNT( * ) FROM tab1, tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-772
SELECT - COUNT ( * ) FROM tab1, tab0 cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-773
SELECT ALL * FROM tab1 WHERE ( + ( - col1 ) NOT BETWEEN NULL AND - CAST( + + CAST( NULL AS DECIMAL ) AS SIGNED ) + - - col1 + col2 )
----

skipif mysql # not compatible
query III rowsort label-773
SELECT ALL * FROM tab1 WHERE ( + ( - col1 ) NOT BETWEEN NULL AND - CAST ( + + CAST ( NULL AS REAL ) AS INTEGER ) + - - col1 + col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 71 + 14 * 37 + col2 BETWEEN + + col1 AND NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col2 col0, - 48 FROM tab0 AS cor0
----
-10
-48
-47
-48
-99
-48

query II rowsort
SELECT ALL col1 + - col2, - ( 34 ) AS col0 FROM tab2
----
28
-34
37
-34
9
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-778
SELECT - - 58 DIV - 94 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-778
SELECT - - 58 / - 94 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

query I rowsort
SELECT - ( - col1 ) + 70 FROM tab1 AS cor0
----
117
75
84

query I rowsort
SELECT ALL 38 + + 44 FROM tab0 AS cor0
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-782
SELECT - 27 + + SUM( + col2 ) * - - 83 FROM tab2 AS cor0
----
10016

skipif mysql # not compatible
query I rowsort label-782
SELECT - 27 + + SUM ( + col2 ) * - - 83 FROM tab2 AS cor0
----
10016

query II rowsort
SELECT col1 AS col2, + 93 FROM tab1 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-784
SELECT - CAST( NULL AS SIGNED ) / + 52 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-784
SELECT - CAST ( NULL AS INTEGER ) / + 52 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 65 FROM tab1 WHERE NOT - + col2 + - col1 NOT BETWEEN col1 AND + - col2
----

query I rowsort
SELECT ALL - 25 * - + col0 + - ( 71 ) FROM tab1
----
1204
2054
2204

query I rowsort
SELECT DISTINCT 88 * 89 * 65 AS col1 FROM tab1
----
509080

onlyif mysql # DIV for integer division: 
query I rowsort label-788
SELECT ALL - col0 DIV + - 37 FROM tab0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-788
SELECT ALL - col0 / + - 37 FROM tab0
----
0
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-789
SELECT - MAX( + 63 ) AS col1 FROM tab0 WHERE NULL IS NULL
----
-63

skipif mysql # not compatible
query I rowsort label-789
SELECT - MAX ( + 63 ) AS col1 FROM tab0 WHERE NULL IS NULL
----
-63

query I rowsort
SELECT DISTINCT + 74 + + 42 FROM tab2
----
116

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

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col0 + + 77 NOT BETWEEN + 45 AND + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
query I rowsort label-793
SELECT + - MIN ( + 86 ) FROM tab2 AS cor0
----
-86

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + ( col0 ) * + ( - col1 ) + - 2 FROM tab1 AS cor0
----
-427
-4279
-716

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-800
SELECT DISTINCT - col2 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( col1 + - col1, + col1, CAST( NULL AS SIGNED ) * - ( + - 35 ) + + 55 )
----

skipif mysql # not compatible
query I rowsort label-800
SELECT DISTINCT - col2 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( col1 + - col1, + col1, CAST ( NULL AS INTEGER ) * - ( + - 35 ) + + 55 )
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 BETWEEN NULL AND - col0 * + 45 * - col1 * 58
----

query II rowsort
SELECT + ( 53 ) AS col1, - col0 FROM tab1 AS cor0
----
53
-51
53
-85
53
-91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-805
SELECT ALL - MIN( - 58 ) * + + 90 AS col2 FROM tab1
----
5220

skipif mysql # not compatible
query I rowsort label-805
SELECT ALL - MIN ( - 58 ) * + + 90 AS col2 FROM tab1
----
5220

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-806
SELECT * FROM tab2 WHERE NOT + 21 > ( + + CAST( NULL AS SIGNED ) ) + + col1
----

skipif mysql # not compatible
query III rowsort label-806
SELECT * FROM tab2 WHERE NOT + 21 > ( + + CAST ( NULL AS INTEGER ) ) + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-807
SELECT DISTINCT + 42 * 17 * - SUM( DISTINCT - ( + 40 ) ) FROM tab1
----
28560

skipif mysql # not compatible
query I rowsort label-807
SELECT DISTINCT + 42 * 17 * - SUM ( DISTINCT - ( + 40 ) ) FROM tab1
----
28560

query II rowsort
SELECT ALL 47 * col0, - ( - 79 ) AS col2 FROM tab1
----
2397
79
3995
79
4277
79

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 col0 FROM tab1 WHERE NOT + + col0 IS NULL
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 <= - - col2 + + + 23
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT DISTINCT + col1 + - + col2 + col1 AS col2 FROM tab1
----
-49
-68
26

query I rowsort
SELECT ALL + col2 * col2 + col0 * - - col1 FROM tab2
----
2875
6528
8389

query I rowsort
SELECT DISTINCT + + col2 * - col0 + + col1 AS col0 FROM tab1 AS cor0
----
-4882
-5010
-6141

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

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

query I rowsort
SELECT ALL + col1 + + + 96 FROM tab1
----
101
110
143

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

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

query II rowsort
SELECT DISTINCT 10 + - col1 + 90, - col2 * + + col2 AS col2 FROM tab1 AS cor0
----
53
-4624
86
-9216
95
-3481

query I rowsort
SELECT DISTINCT - col2 * - 14 * 77 AS col1 FROM tab2 AS cor0
----
24794
43120
62524

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

query I rowsort
SELECT DISTINCT - 40 * - col1 * + 72 AS col0 FROM tab0
----
233280
2880
60480

query I rowsort
SELECT ALL - col2 * 8 + 48 AS col1 FROM tab2
----
-136
-272
-416

query I rowsort
SELECT + 17 - - + 11 + - col0 AS col1 FROM tab1
----
-23
-57
-63

query III rowsort
SELECT * FROM tab0 WHERE ( col2 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-827
SELECT DISTINCT - 41 + + MAX( - 79 ) FROM tab1
----
-120

skipif mysql # not compatible
query I rowsort label-827
SELECT DISTINCT - 41 + + MAX ( - 79 ) FROM tab1
----
-120

query II rowsort
SELECT - col2 + - col2, - col1 AS col0 FROM tab2
----
-116
-67
-46
-51
-80
-77

query I rowsort
SELECT - 17 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

query I rowsort
SELECT 76 FROM tab2 cor0 WHERE NOT ( NULL > NULL )
----

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

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

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

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

skipif mysql # not compatible
query II rowsort label-833
SELECT - COUNT ( * ) AS col2, + MIN ( ALL - 10 ) AS col0 FROM tab1 cor0
----
-3
-10

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col2 + + 27 col0 FROM tab1 cor0
----
-1317
-268
-3169

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-836
SELECT DISTINCT 43 + 54 DIV - SUM( ALL + - col0 ) * + COUNT( * ) AS col2 FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-836
SELECT DISTINCT 43 + 54 / - SUM ( ALL + - col0 ) * + COUNT ( * ) AS col2 FROM tab2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT + 21 + + + ( + COUNT( * ) ) FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-837
SELECT + 21 + + + ( + COUNT ( * ) ) FROM tab2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-838
SELECT - 60 * 78 + COUNT( * ) AS col2 FROM tab0
----
-4677

skipif mysql # not compatible
query I rowsort label-838
SELECT - 60 * 78 + COUNT ( * ) AS col2 FROM tab0
----
-4677

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

query I rowsort
SELECT + ( ( col0 ) ) + - col2 FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT ALL - ( - col0 ) + col2 FROM tab1
----
144
147
159

query III rowsort
SELECT * FROM tab1 WHERE ( NOT 3 * + - 32 IS NOT NULL )
----

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-844
SELECT ALL - CAST( NULL AS SIGNED ) - 92 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL IN ( - 14 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-847
SELECT + col2 + CAST( + col0 AS SIGNED ) AS col2, - 41 - col1 AS col1 FROM tab1 AS cor0
----
144
-46
147
-55
159
-88

skipif mysql # not compatible
query II rowsort label-847
SELECT + col2 + CAST ( + col0 AS INTEGER ) AS col2, - 41 - col1 AS col1 FROM tab1 AS cor0
----
144
-46
147
-55
159
-88

query II rowsort
SELECT + + col0 + + - 74, - ( + - col1 ) AS col1 FROM tab0 cor0
----
-59
81
13
21
23
1

query I rowsort
SELECT ALL - - col2 - + 60 AS col1 FROM tab1 AS cor0
----
-1
36
8

onlyif mysql # aggregate syntax: 
query I rowsort label-850
SELECT DISTINCT - ( + 61 ) + COUNT( * ) + + 24 AS col2 FROM tab1 cor0
----
-34

skipif mysql # not compatible
query I rowsort label-850
SELECT DISTINCT - ( + 61 ) + COUNT ( * ) + + 24 AS col2 FROM tab1 cor0
----
-34

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

query II rowsort
SELECT DISTINCT ( + 47 ) * col0 AS col1, + col2 AS col1 FROM tab2
----
2162
23
3008
40
3525
58

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-854
SELECT 31 DIV + COUNT( * ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-854
SELECT 31 / + COUNT ( * ) FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-855
SELECT ALL + + COUNT( 62 ) - + COUNT( * ) AS col2 FROM tab2 WHERE NOT + - col1 BETWEEN - + col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-855
SELECT ALL + + COUNT ( 62 ) - + COUNT ( * ) AS col2 FROM tab2 WHERE NOT + - col1 BETWEEN - + col2 AND NULL
----
0

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

query I rowsort
SELECT + 29 * - col2 AS col1 FROM tab2
----
-1160
-1682
-667

onlyif mysql # aggregate syntax: 
query I rowsort label-858
SELECT ALL MIN( + - 9 ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-858
SELECT ALL MIN ( + - 9 ) FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-859
SELECT ALL - 3 * + 67 + + + 41 + SUM( + - 73 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-817

skipif mysql # not compatible
query I rowsort label-859
SELECT ALL - 3 * + 67 + + + 41 + SUM ( + - 73 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-817

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col2 > - + 25
----
15
81
47
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-861
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-861
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NOT ( + 34 * + 41 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + 54 - - 43 <= - col1
----

query II rowsort
SELECT col1 AS col2, col2 FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL col0, col2 + + + col2 FROM tab0
----
15
94
87
20
97
198

query II rowsort
SELECT DISTINCT + - col2 AS col1, + col1 AS col2 FROM tab1 WHERE ( NOT - 93 = + col2 )
----
-59
5
-68
47
-96
14

query I rowsort
SELECT ALL col1 + ( - 70 ) AS col0 FROM tab0
----
-49
-69
11

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 72 * - col0 col0 FROM tab2
----
3312
4608
5400

onlyif mysql # aggregate syntax: 
query I rowsort label-870
SELECT MIN( + + col2 ) AS col0 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-870
SELECT MIN ( + + col2 ) AS col0 FROM tab0
----
10

onlyif mysql # DIV for integer division: 
query III rowsort label-871
SELECT * FROM tab0 AS cor0 WHERE col2 > + + col0 DIV col0 DIV + + 62 * + + col1 * col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-871
SELECT * FROM tab0 AS cor0 WHERE col2 > + + col0 / col0 / + + 62 * + + col1 * col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT DISTINCT - - MAX( + col0 ) + COUNT( * ) AS col2 FROM tab1 cor0
----
94

skipif mysql # not compatible
query I rowsort label-872
SELECT DISTINCT - - MAX ( + col0 ) + COUNT ( * ) AS col2 FROM tab1 cor0
----
94

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 9 * 14 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-874
SELECT ALL col2 - - - col0 + - - col1 * - CAST( NULL AS SIGNED ) + - + 67 * col2 - col2 col2 FROM tab2 AS cor0 WHERE - 0 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-874
SELECT ALL col2 - - - col0 + - - col1 * - CAST ( NULL AS INTEGER ) + - + 67 * col2 - col2 col2 FROM tab2 AS cor0 WHERE - 0 IS NULL
----

query I rowsort
SELECT - 43 - + + col0 FROM tab1 AS cor0
----
-128
-134
-94

query II rowsort
SELECT ALL col1 AS col1, col0 FROM tab2 AS cor0 WHERE ( + col2 * + 7 <= NULL )
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-879
SELECT + - 28 * COUNT( * ) DIV + + COUNT( * ) FROM tab0 AS cor0
----
-28

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

onlyif mysql # aggregate syntax: 
query I rowsort label-880
SELECT ALL - + SUM( - col2 ) * 49 + 54 AS col2 FROM tab2 AS cor0
----
5983

skipif mysql # not compatible
query I rowsort label-880
SELECT ALL - + SUM ( - col2 ) * 49 + 54 AS col2 FROM tab2 AS cor0
----
5983

query I rowsort
SELECT + + 98 + - - 73 AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
171
171
171

query I rowsort
SELECT + col2 * + - 32 FROM tab2
----
-1280
-1856
-736

onlyif mysql # aggregate syntax: 
query I rowsort label-883
SELECT ALL - SUM( - col2 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
121

skipif mysql # not compatible
query I rowsort label-883
SELECT ALL - SUM ( - col2 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
121

query I rowsort
SELECT col2 + + col2 FROM tab1 WHERE NOT NULL < + col2 + + 4 * 93
----

query I rowsort
SELECT DISTINCT + ( + col1 ) * - ( 6 ) + + col1 * - + 52 FROM tab0
----
-1218
-4698
-58

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

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

query I rowsort
SELECT + + 90 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 70 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT + MAX( ALL - col2 ) + - - 0 + + 82 AS col0 FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-891
SELECT + MAX ( ALL - col2 ) + - - 0 + + 82 AS col0 FROM tab1 AS cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-892
SELECT CAST( + 21 AS SIGNED ) + + col1 FROM tab0
----
102
22
42

skipif mysql # not compatible
query I rowsort label-892
SELECT CAST ( + 21 AS INTEGER ) + + col1 FROM tab0
----
102
22
42

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-895
SELECT - MIN( ALL - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-895
SELECT - MIN ( ALL - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-896
SELECT DISTINCT + - COUNT( * ) - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-896
SELECT DISTINCT + - COUNT ( * ) - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-897
SELECT ALL + 51 - COUNT( - col2 ) FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-897
SELECT ALL + 51 - COUNT ( - col2 ) FROM tab1 AS cor0
----
48

query I rowsort
SELECT + 89 + col2 FROM tab0
----
136
188
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + 35 ) = + col2 * ( 50 ) + 85 + col1 + + 25
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NOT 78 + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-903
SELECT ALL COUNT( * ) * - 65 FROM tab0
----
-195

skipif mysql # not compatible
query I rowsort label-903
SELECT ALL COUNT ( * ) * - 65 FROM tab0
----
-195

query I rowsort
SELECT DISTINCT ( + + 93 ) AS col2 FROM tab0
----
93

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

query I rowsort
SELECT - 55 * + col1 FROM tab0
----
-1155
-4455
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-907
SELECT DISTINCT + MAX( + - col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-907
SELECT DISTINCT + MAX ( + - col1 ) FROM tab1
----
-5

query I rowsort
SELECT ALL + - 77 * - col0 * ( + col0 ) FROM tab0 AS cor0
----
17325
582813
724493

query I rowsort
SELECT ALL - col0 * - 1 * - col0 + + col1 AS col2 FROM tab1 cor0
----
-2587
-7220
-8234

query I rowsort
SELECT + 21 * + - col1 * + - col1 AS col2 FROM tab0 AS cor0
----
137781
21
9261

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

query I rowsort
SELECT ALL + - 91 AS col2 FROM tab1 AS cor0
----
-91
-91
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-913
SELECT - col0 DIV col0 + col2 AS col1 FROM tab0 cor0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-913
SELECT - col0 / col0 + col2 AS col1 FROM tab0 cor0
----
46
9
98

query I rowsort
SELECT DISTINCT col1 + - col0 AS col2 FROM tab0 WHERE NOT 41 IS NULL
----
-66
-96
66

query I rowsort
SELECT DISTINCT + col2 + - - col1 FROM tab2
----
117
125
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 22 * + col0 * + 36 col0, col1 col2 FROM tab1
----
40392
14
67320
5
72072
47

onlyif mysql # aggregate syntax: 
query I rowsort label-917
SELECT + - COUNT( * ) * - 55 AS col1 FROM tab0 WHERE NULL <> - + col1
----
0

skipif mysql # not compatible
query I rowsort label-917
SELECT + - COUNT ( * ) * - 55 AS col1 FROM tab0 WHERE NULL <> - + col1
----
0

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

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

query I rowsort
SELECT + col2 - + - col1 AS col0 FROM tab0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-920
SELECT ALL MIN( DISTINCT + - ( - 75 ) ) * + + SUM( DISTINCT col0 ) AS col2 FROM tab1
----
17025

skipif mysql # not compatible
query I rowsort label-920
SELECT ALL MIN ( DISTINCT + - ( - 75 ) ) * + + SUM ( DISTINCT col0 ) AS col2 FROM tab1
----
17025

query I rowsort
SELECT + 26 + - 94 AS col2 FROM tab1
----
-68
-68
-68

query I rowsort
SELECT ALL - + 83 * col2 * + + col2 - + 92 * - - 66 FROM tab0 AS cor0
----
-14372
-189419
-819555

query I rowsort
SELECT - 38 + + + col1 FROM tab1 AS cor0
----
-24
-33
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-924
SELECT DISTINCT 32 - + 14 * - + CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-924
SELECT DISTINCT 32 - + 14 * - + CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-925
SELECT + SUM( ALL 2 ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-925
SELECT + SUM ( ALL 2 ) FROM tab2 AS cor0
----
6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT - COUNT( - 93 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-927
SELECT - COUNT ( - 93 ) FROM tab1 cor0
----
-3

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

query I rowsort
SELECT ALL ( 21 ) AS col1 FROM tab1 WHERE col1 + col1 - + col0 / + col0 IS NOT NULL
----
21
21
21

query I rowsort
SELECT + + col2 AS col1 FROM tab2 WHERE NOT + col0 * - + col2 * + col1 IS NULL
----
23
40
58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-932
SELECT MIN( - col0 ) FROM tab1 WHERE NOT + - col2 * + col2 IS NULL
----
-91

skipif mysql # not compatible
query I rowsort label-932
SELECT MIN ( - col0 ) FROM tab1 WHERE NOT + - col2 * + col2 IS NULL
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-933
SELECT 77 * + + 47 * + COUNT( * ) + + COUNT( * ) * + 96 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-933
SELECT 77 * + + 47 * + COUNT ( * ) + + COUNT ( * ) * + 96 FROM tab0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL + ( + - 59 ) * - 95 FROM tab2
----
5605
5605
5605

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

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

query I rowsort
SELECT - col0 + - - 31 FROM tab2 cor0
----
-15
-33
-44

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

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

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

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

query I rowsort
SELECT + + col0 * - - 32 FROM tab1 AS cor0
----
1632
2720
2912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-941
SELECT - col1 AS col0 FROM tab0 WHERE + col1 * + CAST( + - col0 AS SIGNED ) * - col0 * 23 NOT BETWEEN col2 / - + 94 AND + col2
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-941
SELECT - col1 AS col0 FROM tab0 WHERE + col1 * + CAST ( + - col0 AS INTEGER ) * - col0 * 23 NOT BETWEEN col2 / - + 94 AND + col2
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-942
SELECT DISTINCT 22 + - CAST( 96 AS SIGNED ) col2 FROM tab0
----
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-942
SELECT DISTINCT 22 + - CAST ( 96 AS INTEGER ) col2 FROM tab0
----
-74

query I rowsort
SELECT - 81 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query I rowsort
SELECT col1 + - 40 AS col1 FROM tab2 AS cor0
----
11
27
37

query I rowsort
SELECT + - 5 + + col2 FROM tab0 AS cor0
----
42
5
94

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

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

query I rowsort
SELECT ALL - + 75 - + col0 FROM tab0 AS cor0
----
-162
-172
-90

onlyif mysql # DIV for integer division: 
query II rowsort label-948
SELECT DISTINCT + + 79 DIV + col2 AS col1, - 84 AS col1 FROM tab1 AS cor0
----
0
-84
1
-84

skipif mysql # not compatible
query II rowsort label-948
SELECT DISTINCT + + 79 / + col2 AS col1, - 84 AS col1 FROM tab1 AS cor0
----
0
-84
1
-84

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

query I rowsort
SELECT DISTINCT col1 + col0 * + - 2 FROM tab2
----
-41
-51
-83

query I rowsort
SELECT ( + + col1 ) AS col0 FROM tab1
----
14
47
5

onlyif mysql # DIV for integer division: 
query II rowsort label-952
SELECT col1 DIV - + col0, col1 AS col2 FROM tab0
----
-5
81
0
1
0
21

skipif mysql # not compatible
query II rowsort label-952
SELECT col1 / - + col0, col1 AS col2 FROM tab0
----
-5
81
0
1
0
21

query I rowsort
SELECT - ( + + 92 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

query I rowsort
SELECT DISTINCT - - col2 * - - 66 * - + col2 * + 50 - - - col0 FROM tab2 AS cor0
----
-11101275
-1745746
-5280064

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-956
SELECT DISTINCT COUNT( 45 ) - 53 * + COUNT( * ) FROM tab1 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-956
SELECT DISTINCT COUNT ( 45 ) - 53 * + COUNT ( * ) FROM tab1 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-957
SELECT DISTINCT + 12 * + MAX( + col2 ) AS col0 FROM tab1 AS cor0
----
1152

skipif mysql # not compatible
query I rowsort label-957
SELECT DISTINCT + 12 * + MAX ( + col2 ) AS col0 FROM tab1 AS cor0
----
1152

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-959
SELECT COUNT( * ) DIV - - MIN( DISTINCT + - 25 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-959
SELECT COUNT ( * ) / - - MIN ( DISTINCT + - 25 ) AS col0 FROM tab2
----
0

query I rowsort
SELECT ALL - col0 * - - col0 AS col0 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-961
SELECT DISTINCT - 82 AS col1, - 59 * + CAST( NULL AS SIGNED ) * + col1 + + 19 + + col2 AS col1 FROM tab1 AS cor0
----
-82
NULL

skipif mysql # not compatible
query II rowsort label-961
SELECT DISTINCT - 82 AS col1, - 59 * + CAST ( NULL AS INTEGER ) * + col1 + + 19 + + col2 AS col1 FROM tab1 AS cor0
----
-82
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-962
SELECT - col1 * - col1 + col0 DIV + col2 AS col0 FROM tab1 cor0
----
196
2210
26

skipif mysql # not compatible
query I rowsort label-962
SELECT - col1 * - col1 + col0 / + col2 AS col0 FROM tab1 cor0
----
196
2210
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-963
SELECT CAST( 56 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
56
56
56

skipif mysql # not compatible
query I rowsort label-963
SELECT CAST ( 56 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
56
56
56

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 + - + ( - + col1 ) ) NOT IN ( ( col2 ) * - col1, - col1, + ( col0 ), - + col0 + - 13 )
----

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

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

query I rowsort
SELECT ALL col1 + - + 7 * col0 * 33 FROM tab1
----
-11767
-19630
-20974

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 <= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-970
SELECT 65 / + 75 + + MAX( ALL + col0 ) + ( SUM( ALL - 21 ) ) FROM tab1 WHERE NOT + 78 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-970
SELECT 65 / + 75 + + MAX ( ALL + col0 ) + ( SUM ( ALL - 21 ) ) FROM tab1 WHERE NOT + 78 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-971
SELECT + ( - 15 ) DIV + + col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-971
SELECT + ( - 15 ) / + + col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 51 + col2 FROM tab1
----
110
119
147

query I rowsort
SELECT ALL + 84 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT - col1 * - 78 + - - col1 AS col2 FROM tab1
----
1106
3713
395

onlyif mysql # aggregate syntax: 
query I rowsort label-975
SELECT ALL - COUNT( * ) + + 57 AS col1 FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-975
SELECT ALL - COUNT ( * ) + + 57 AS col1 FROM tab0 AS cor0
----
54

query I rowsort
SELECT DISTINCT col1 * ( 67 ) + - col1 AS col2 FROM tab1 AS cor0
----
3102
330
924

query I rowsort
SELECT DISTINCT - col1 * + + col1 * 88 * col1 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
-46766808
-814968
-88

query I rowsort
SELECT ALL + col1 + + 51 AS col1 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
56
65
98

query I rowsort
SELECT ALL col2 * + 7 FROM tab0
----
329
693
70

query I rowsort
SELECT col1 - + - col1 AS col2 FROM tab2
----
102
134
154

onlyif mysql # aggregate syntax: 
query II rowsort label-981
SELECT DISTINCT - ( + MIN( - - col0 ) ) * + 33, 50 * + 10 AS col0 FROM tab2
----
-1518
500

skipif mysql # not compatible
query II rowsort label-981
SELECT DISTINCT - ( + MIN ( - - col0 ) ) * + 33, 50 * + 10 AS col0 FROM tab2
----
-1518
500

query I rowsort
SELECT 45 - - col0 + + ( + col1 ) * + col0 AS col0 FROM tab0
----
1275
1959
239

query I rowsort
SELECT DISTINCT 54 * + col0 FROM tab2
----
2484
3456
4050

query I rowsort
SELECT ALL + col0 + + 42 + col2 FROM tab1
----
186
189
201

query I rowsort
SELECT ALL - col0 * - col1 * col1 AS col0 FROM tab1
----
201019
2125
9996

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

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

query I rowsort
SELECT - col1 FROM tab1 WHERE + 20 IS NULL AND NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-988
SELECT DISTINCT - 47 DIV + 96 + + col1 AS col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-988
SELECT DISTINCT - 47 / + 96 + + col1 AS col2 FROM tab0
----
1
21
81

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

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

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

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

query I rowsort
SELECT ALL - 74 * 28 * - col2 AS col1 FROM tab2 AS cor0
----
120176
47656
82880

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 + - 74 + 33 IS NOT NULL
----

query II rowsort
SELECT 85 AS col2, + col1 * + col1 AS col0 FROM tab1 AS cor0 WHERE NOT col1 + - col1 BETWEEN ( - col1 ) AND + col0
----

query I rowsort
SELECT DISTINCT - + 54 AS col2 FROM tab2 AS cor0
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-996
SELECT DISTINCT + ( + SUM( + col2 ) ) DIV + 12 FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-996
SELECT DISTINCT + ( + SUM ( + col2 ) ) / + 12 FROM tab0 AS cor0
----
13

query I rowsort
SELECT 28 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-999
SELECT + CAST ( NULL AS REAL ) / - ( + - ( col0 ) ) AS col2 FROM tab2
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT DISTINCT - 75 * col1 + - col2 FROM tab0
----
-1585
-174
-6122

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

query I rowsort
SELECT ALL 57 + - + col0 FROM tab2
----
-18
-7
11

query I rowsort
SELECT 85 + 94 * col1 AS col2 FROM tab0
----
179
2059
7699

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col2 < 41
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 >= + + 53
----

query I rowsort
SELECT + col1 + - + 4 FROM tab1 AS cor0
----
1
10
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1010
SELECT MAX( + 4 ) col2 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1010
SELECT MAX ( + 4 ) col2 FROM tab0 AS cor0
----
4

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 IN ( - col0, + col1 )
----

query I rowsort
SELECT DISTINCT col1 + + - col2 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1014
SELECT ALL - SUM( - - col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-1014
SELECT ALL - SUM ( - - col2 ) FROM tab2 AS cor0
----
-121

query II rowsort
SELECT col1 * + col1 + + 79 - 79 + col1 * + - 27 * - + 84 * + - 68 * 15 AS col0, col2 AS col0 FROM tab0 AS cor0
----
-187375599
47
-2313359
99
-48580119
10

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1017
SELECT DISTINCT - 71 * - MAX( DISTINCT col1 DIV + col1 ) FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-1017
SELECT DISTINCT - 71 * - MAX ( DISTINCT col1 / + col1 ) FROM tab1
----
71

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

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

query III rowsort
SELECT * FROM tab2 WHERE col2 * col2 = col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1020
SELECT 65 DIV - COUNT( * ) AS col1 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-1020
SELECT 65 / - COUNT ( * ) AS col1 FROM tab2
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1021
SELECT 77 + + CAST( - CAST( CAST( - MAX( DISTINCT - col0 ) AS DECIMAL ) AS SIGNED ) AS SIGNED ) AS col2 FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-1021
SELECT 77 + + CAST ( - CAST ( CAST ( - MAX ( DISTINCT - col0 ) AS REAL ) AS INTEGER ) AS INTEGER ) AS col2 FROM tab1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1022
SELECT DISTINCT COUNT( * ) + + 36 AS col1 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-1022
SELECT DISTINCT COUNT ( * ) + + 36 AS col1 FROM tab1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1023
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE + col1 >= 18
----
-2

skipif mysql # not compatible
query I rowsort label-1023
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE + col1 >= 18
----
-2

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

skipif mysql # not compatible
query I rowsort label-1024
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE ( col0 + - 93 ) IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT COUNT( * ) * - 42 col2 FROM tab0
----
-126

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1025
SELECT COUNT ( * ) * - 42 col2 FROM tab0
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-1026
SELECT - 92 * + SUM( ALL col2 ) AS col2 FROM tab2
----
-11132

skipif mysql # not compatible
query I rowsort label-1026
SELECT - 92 * + SUM ( ALL col2 ) AS col2 FROM tab2
----
-11132

query I rowsort
SELECT 44 * col0 AS col0 FROM tab2
----
2024
2816
3300

query I rowsort
SELECT - 18 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-18
-18
-18

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - 8 NOT IN ( + 48 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1031
SELECT - 47 DIV col0 + col0 FROM tab0 WHERE ( - 79 ) IS NOT NULL
----
12
87
97

skipif mysql # not compatible
query I rowsort label-1031
SELECT - 47 / col0 + col0 FROM tab0 WHERE ( - 79 ) IS NOT NULL
----
12
87
97

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

query I rowsort
SELECT - col1 - 67 AS col2 FROM tab2
----
-118
-134
-144

query I rowsort
SELECT ALL ( - col2 ) * 14 + col0 AS col0 FROM tab1
----
-1293
-741
-861

query I rowsort
SELECT DISTINCT + col2 - 55 * + col2 AS col1 FROM tab0
----
-2538
-5346
-540

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1037
SELECT DISTINCT 64 * COUNT( * ) FROM tab2 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-1037
SELECT DISTINCT 64 * COUNT ( * ) FROM tab2 AS cor0
----
192

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1039
SELECT + CAST( col1 AS SIGNED ) * col1 + ( + CAST( - col0 AS SIGNED ) + 16 ) AS col2 FROM tab0 cor0 WHERE NOT col2 IS NULL
----
-80
370
6562

skipif mysql # not compatible
query I rowsort label-1039
SELECT + CAST ( col1 AS INTEGER ) * col1 + ( + CAST ( - col0 AS INTEGER ) + 16 ) AS col2 FROM tab0 cor0 WHERE NOT col2 IS NULL
----
-80
370
6562

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1040
SELECT * FROM tab0 WHERE NOT + 69 * col1 + + CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1040
SELECT * FROM tab0 WHERE NOT + 69 * col1 + + CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 89 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT 34 + ( + col1 ) * - 46 AS col0 FROM tab1 WHERE NOT ( col1 ) < ( - col0 )
----
-196
-2128
-610

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1043
SELECT ALL - + MIN( ALL 27 ) DIV 37 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1043
SELECT ALL - + MIN ( ALL 27 ) / 37 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 6 * - col2 col1 FROM tab0 cor0
----
-282
-594
-60

query I rowsort
SELECT ALL + ( 70 ) * 72 FROM tab1 AS cor0
----
5040
5040
5040

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - col0 + 47 NOT BETWEEN - 86 * 96 + 26 * - col0 AND NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1048
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1048
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

query I rowsort
SELECT DISTINCT col2 * + col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1058
2560
4350

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1053
SELECT DISTINCT - 93 DIV col2 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1053
SELECT DISTINCT - 93 / col2 FROM tab1 AS cor0
----
-1
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1056
SELECT DISTINCT + MIN( + col0 ) + 27 AS col2 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-1056
SELECT DISTINCT + MIN ( + col0 ) + 27 AS col2 FROM tab1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1057
SELECT ALL COUNT( col2 ) * 72 + - 86 AS col1 FROM tab0
----
130

skipif mysql # not compatible
query I rowsort label-1057
SELECT ALL COUNT ( col2 ) * 72 + - 86 AS col1 FROM tab0
----
130

query III rowsort
SELECT * FROM tab2 WHERE 16 <> + 27
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 1 * - ( col0 ) FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1060
SELECT ALL col2 + CAST( 71 AS SIGNED ) col2 FROM tab2
----
111
129
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1060
SELECT ALL col2 + CAST ( 71 AS INTEGER ) col2 FROM tab2
----
111
129
94

query I rowsort
SELECT DISTINCT 15 FROM tab0 WHERE - col1 <> col2 + col0
----
15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1062
SELECT DISTINCT + CAST( col1 AS SIGNED ) DIV - 79 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1062
SELECT DISTINCT + CAST ( col1 AS INTEGER ) / - 79 FROM tab2
----
0

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE - col2 IN ( + col1 )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1066
SELECT 59 + + COUNT( * ) FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-1066
SELECT 59 + + COUNT ( * ) FROM tab1
----
62

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1067
SELECT 14 + AVG ( + col1 ) AS col2 FROM tab1 WHERE NULL BETWEEN ( NULL ) AND + col1 * + 68 + col0 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1067
SELECT 14 + AVG ( + col1 ) AS col2 FROM tab1 WHERE NULL BETWEEN ( NULL ) AND + col1 * + 68 + col0 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1068
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( + ( - CAST( + 9 AS SIGNED ) ) ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-1068
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( + ( - CAST ( + 9 AS INTEGER ) ) ) BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT ALL + col1 + + - 43 AS col0 FROM tab2 cor0
----
24
34
8

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1072
SELECT ALL 8 + - - col0 + 40 DIV col0 FROM tab2 AS cor0
----
54
72
83

skipif mysql # not compatible
query I rowsort label-1072
SELECT ALL 8 + - - col0 + 40 / col0 FROM tab2 AS cor0
----
54
72
83

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

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

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

query I rowsort
SELECT - + 91 * + col0 - - 2 AS col0 FROM tab1 AS cor0
----
-4639
-7733
-8279

query II rowsort
SELECT + ( + - col2 ) AS col1, - 50 FROM tab0
----
-10
-50
-47
-50
-99
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * ( col1 ) col0 FROM tab0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT ALL - MIN( DISTINCT col2 ) FROM tab1 WHERE NOT col2 IN ( + 7 + + col0 * col1 )
----
-59

skipif mysql # not compatible
query I rowsort label-1078
SELECT ALL - MIN ( DISTINCT col2 ) FROM tab1 WHERE NOT col2 IN ( + 7 + + col0 * col1 )
----
-59

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE - 39 > - col0 / + col1 * col2 - col1 OR 23 / + 74 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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-1083
SELECT DISTINCT - + COUNT( * ) + + - 29 * 93 FROM tab2 AS cor0
----
-2700

skipif mysql # not compatible
query I rowsort label-1083
SELECT DISTINCT - + COUNT ( * ) + + - 29 * 93 FROM tab2 AS cor0
----
-2700

onlyif mysql # aggregate syntax: 
query I rowsort label-1084
SELECT - 4 * - 91 + - COUNT( + - 99 ) FROM tab2 AS cor0
----
361

skipif mysql # not compatible
query I rowsort label-1084
SELECT - 4 * - 91 + - COUNT ( + - 99 ) FROM tab2 AS cor0
----
361

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

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

query I rowsort
SELECT - col1 * + 46 FROM tab2 AS cor0
----
-2346
-3082
-3542

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

query I rowsort
SELECT DISTINCT + - 25 FROM tab2 AS cor0 WHERE NOT + col1 <> + 85
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1090
SELECT - SUM( ALL + 14 ) AS col2 FROM tab1, tab1 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-1090
SELECT - SUM ( ALL + 14 ) AS col2 FROM tab1, tab1 AS cor0
----
-126

query I rowsort
SELECT DISTINCT ( + col2 ) AS col2 FROM tab1 WHERE - + 74 <> ( + col0 )
----
59
68
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1092
SELECT DISTINCT COUNT( * ) DIV + 64 + - COUNT( col0 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1092
SELECT DISTINCT COUNT ( * ) / + 64 + - COUNT ( col0 ) FROM tab2
----
-3

query I rowsort
SELECT - col1 + - - col1 + col0 FROM tab2
----
46
64
75

query I rowsort
SELECT + 27 AS col2 FROM tab2 WHERE NULL IS NULL
----
27
27
27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1095
SELECT CAST( NULL AS DECIMAL ) + + - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1095
SELECT CAST ( NULL AS REAL ) + + - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1097
SELECT ALL col2 * - ( col1 ) + CAST( + + 97 AS SIGNED ) FROM tab0
----
-113
-2
-3710

skipif mysql # not compatible
query I rowsort label-1097
SELECT ALL col2 * - ( col1 ) + CAST ( + + 97 AS INTEGER ) FROM tab0
----
-113
-2
-3710

query II rowsort
SELECT ALL + 52, col2 FROM tab2 cor0
----
52
23
52
40
52
58

query I rowsort
SELECT - col2 * - col2 * - col2 AS col0 FROM tab1 AS cor0
----
-205379
-314432
-884736

query I rowsort
SELECT ALL - - 52 + + ( col1 ) FROM tab2 AS cor0
----
103
119
129

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1102
SELECT ALL - - col1 - + CAST( - + col0 AS SIGNED ) DIV 50 FROM tab1 AS cor0
----
15
48
6

skipif mysql # not compatible
query I rowsort label-1102
SELECT ALL - - col1 - + CAST ( - + col0 AS INTEGER ) / 50 FROM tab1 AS cor0
----
15
48
6

query I rowsort
SELECT - col2 * - 60 * col0 FROM tab2 cor0
----
153600
261000
63480

query I rowsort
SELECT DISTINCT + 62 * col0 * - 17 - - col0 * + col0 * col2 * col0 AS col0 FROM tab0 AS cor0
----
142815
6493332
90252389

onlyif mysql # aggregate syntax: 
query I rowsort label-1105
SELECT DISTINCT - COUNT( * ) * + 78 + - SUM( ALL - 26 ) FROM tab2 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-1105
SELECT DISTINCT - COUNT ( * ) * + 78 + - SUM ( ALL - 26 ) FROM tab2 AS cor0
----
-156

query I rowsort
SELECT 29 * - - col2 * + + col2 + 8 + - col2 * - col0 FROM tab1 AS cor0 WHERE NULL BETWEEN - col2 AND + col0
----

query I rowsort
SELECT DISTINCT col0 * - - col2 - 52 + + + col1 * + 93 + col2 AS col0 FROM tab1 AS cor0
----
10575
5487
6242

onlyif mysql # aggregate syntax: 
query II rowsort label-1108
SELECT COUNT( * ) + COUNT( * ) AS col2, ( + 77 ) AS col1 FROM tab2 AS cor0
----
6
77

skipif mysql # not compatible
query II rowsort label-1108
SELECT COUNT ( * ) + COUNT ( * ) AS col2, ( + 77 ) AS col1 FROM tab2 AS cor0
----
6
77

query I rowsort
SELECT + - AVG ( DISTINCT 73 ) AS col0 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1110
SELECT + 4 + + + COUNT( * ) FROM tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-1110
SELECT + 4 + + + COUNT ( * ) FROM tab1 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT ( + COUNT( * ) ) + 50 col0 FROM tab0 AS cor0
----
53

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

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

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

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

query I rowsort
SELECT ALL - col0 * - 66 FROM tab0
----
5742
6402
990

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 + + + col0 * - 76 + col2 - - - col2 * + 31 NOT BETWEEN NULL AND NULL
----

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

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

query I rowsort
SELECT + 91 * - col1 AS col2 FROM tab0
----
-1911
-7371
-91

query I rowsort
SELECT - 24 * - + AVG ( col0 ) FROM tab1 WHERE NOT col1 IS NOT NULL
----
NULL

query II rowsort
SELECT ALL + col0 AS col1, + 79 * + col1 AS col2 FROM tab1
----
51
1106
85
395
91
3713

onlyif mysql # aggregate syntax: 
query I rowsort label-1120
SELECT - 57 * SUM( ALL col0 ) FROM tab0
----
-11343

skipif mysql # not compatible
query I rowsort label-1120
SELECT - 57 * SUM ( ALL col0 ) FROM tab0
----
-11343

query I rowsort
SELECT 65 * + 22 AS col2 FROM tab1
----
1430
1430
1430

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 88 - - - col0 = - col2 - + col2 - - col1 + - + col1 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1123
SELECT + CAST( - + 10 AS SIGNED ) AS col0 FROM tab1
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-1123
SELECT + CAST ( - + 10 AS INTEGER ) AS col0 FROM tab1
----
-10
-10
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-1124
SELECT DISTINCT + 47, + 87 + + COUNT( * ) AS col2 FROM tab1
----
47
90

skipif mysql # not compatible
query II rowsort label-1124
SELECT DISTINCT + 47, + 87 + + COUNT ( * ) AS col2 FROM tab1
----
47
90

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

query I rowsort
SELECT DISTINCT ( + 5 ) + - 92 + 94 * + 98 AS col2 FROM tab0 AS cor0 WHERE col1 = NULL
----

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

query I rowsort
SELECT 2 * - col1 * - 33 + + 33 * 9 FROM tab1 cor0
----
1221
3399
627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 98 + 60 col0 FROM tab2 AS cor0
----
158

query I rowsort
SELECT - col2 AS col1 FROM tab1 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT - - 17 FROM tab1 AS cor0 WHERE NULL >= - 30
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 84 * + col1 col2 FROM tab0 cor0
----
1764
6804
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab1 AS cor0 WHERE ( NULL ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1134
SELECT + 22 - - COUNT( * ) FROM tab1 WHERE NULL BETWEEN NULL AND col1 * + col1 * - - col1 + + + 67 * - - col1
----
22

skipif mysql # not compatible
query I rowsort label-1134
SELECT + 22 - - COUNT ( * ) FROM tab1 WHERE NULL BETWEEN NULL AND col1 * + col1 * - - col1 + + + 67 * - - col1
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1135
SELECT - CAST( NULL AS SIGNED ) + + col1 - col0, + 32 AS col0 FROM tab0 WHERE NULL IS NULL
----
NULL
32
NULL
32
NULL
32

skipif mysql # not compatible
query II rowsort label-1135
SELECT - CAST ( NULL AS INTEGER ) + + col1 - col0, + 32 AS col0 FROM tab0 WHERE NULL IS NULL
----
NULL
32
NULL
32
NULL
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1136
SELECT MAX( - 39 ) FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-1136
SELECT MAX ( - 39 ) FROM tab0
----
-39

query I rowsort
SELECT ALL + col2 * - - col2 FROM tab1
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT ALL - SUM( DISTINCT - + 98 ) + 4 FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-1138
SELECT ALL - SUM ( DISTINCT - + 98 ) + 4 FROM tab0
----
102

query I rowsort
SELECT - col1 - + 25 - + col0 + + - col2 + + col1 FROM tab1
----
-169
-172
-184

query II rowsort
SELECT ALL col0 + + col1 + + 30 AS col1, - col0 AS col2 FROM tab0
----
126
-15
128
-97
138
-87

query I rowsort
SELECT ALL + 14 * + col1 + + 44 AS col1 FROM tab1 cor0
----
114
240
702

query I rowsort
SELECT - + col0 / - col1 + - col2 FROM tab0 AS cor0 WHERE - 89 > - - col0 / - col2
----

query I rowsort
SELECT - 13 + - 31 - - - 46 FROM tab0 cor0
----
-90
-90
-90

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

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

query I rowsort
SELECT ALL - col0 * 12 AS col2 FROM tab2
----
-552
-768
-900

query II rowsort
SELECT + - 48 - - col1 + ( col1 ) * 4, col0 AS col2 FROM tab2 WHERE NULL NOT IN ( - col2, col0 )
----

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1149
SELECT ALL 52, + ( + + 8 ) DIV ( - col0 ) AS col2 FROM tab2 AS cor0
----
52
0
52
0
52
0

skipif mysql # not compatible
query II rowsort label-1149
SELECT ALL 52, + ( + + 8 ) / ( - col0 ) AS col2 FROM tab2 AS cor0
----
52
0
52
0
52
0

query I rowsort
SELECT ALL + - col0 * - ( + 64 ) AS col1 FROM tab1 AS cor0
----
3264
5440
5824

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1152
SELECT - ( - SUM( ALL + + 56 ) ) AS col1 FROM tab1 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-1152
SELECT - ( - SUM ( ALL + + 56 ) ) AS col1 FROM tab1 AS cor0
----
168

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1154
SELECT ALL 20 DIV - 42, - col0 AS col0 FROM tab0
----
0
-15
0
-87
0
-97

skipif mysql # not compatible
query II rowsort label-1154
SELECT ALL 20 / - 42, - col0 AS col0 FROM tab0
----
0
-15
0
-87
0
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1155
SELECT - 5 * SUM( ALL - - col0 ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-1135

skipif mysql # not compatible
query I rowsort label-1155
SELECT - 5 * SUM ( ALL - - col0 ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-1135

query I rowsort
SELECT DISTINCT col2 + - col2 AS col1 FROM tab2 WHERE NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1157
SELECT DISTINCT SUM( - - 38 ) FROM tab1
----
114

skipif mysql # not compatible
query I rowsort label-1157
SELECT DISTINCT SUM ( - - 38 ) FROM tab1
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1158
SELECT - CAST( NULL AS SIGNED ) - - 23 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-1158
SELECT - CAST ( NULL AS INTEGER ) - - 23 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT - COUNT( - - 3 ) FROM tab2 WHERE NOT col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1159
SELECT - COUNT ( - - 3 ) FROM tab2 WHERE NOT col1 IS NULL
----
-3

query I rowsort
SELECT ALL - - 42 AS col2 FROM tab2 AS cor0
----
42
42
42

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT 39 <= - + col0 / - col1
----
23
40
58

query I rowsort
SELECT - - 35 * 76 AS col0 FROM tab2 AS cor0
----
2660
2660
2660

query I rowsort
SELECT + ( + col0 ) AS col0 FROM tab1 WHERE NOT + + 42 / 71 + - col2 / ( - 36 ) IS NOT NULL
----

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

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

query II rowsort
SELECT - + col0, col1 * - 89 AS col1 FROM tab0 AS cor0
----
-15
-7209
-87
-1869
-97
-89

query I rowsort
SELECT ALL 65 + - col2 FROM tab1 AS cor0
----
-3
-31
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * + 69 col2 FROM tab2 AS cor0
----
-3519
-4623
-5313

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

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

query I rowsort
SELECT DISTINCT + col0 + - 23 AS col2 FROM tab0 AS cor0
----
-8
64
74

query I rowsort
SELECT - 49 + 83 FROM tab2 AS cor0
----
34
34
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1172
SELECT - 53 + - CAST( col1 AS SIGNED ) * - + col0 AS col2 FROM tab1 AS cor0
----
372
4224
661

skipif mysql # not compatible
query I rowsort label-1172
SELECT - 53 + - CAST ( col1 AS INTEGER ) * - + col0 AS col2 FROM tab1 AS cor0
----
372
4224
661

query I rowsort
SELECT ALL - - 21 AS col0 FROM tab1 AS cor0
----
21
21
21

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1174
SELECT + + CAST ( NULL AS INTEGER ) + + 40 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1175
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1175
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

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

query II rowsort
SELECT ALL + 52 AS col0, col0 AS col0 FROM tab0 WHERE + 11 IS NOT NULL
----
52
15
52
87
52
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1178
SELECT ALL + CAST( NULL AS DECIMAL ) + + 43 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1178
SELECT ALL + CAST ( NULL AS REAL ) + + 43 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1179
SELECT CAST( NULL AS DECIMAL ) - - col1 + - 28 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1179
SELECT CAST ( NULL AS REAL ) - - col1 + - 28 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT - 10 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-10

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 17 * + 79 * + - 35 - - + col2 col1 FROM tab0 AS cor0
----
47015
47052
47104

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1185
SELECT ALL 35 DIV CAST( - col2 AS SIGNED ) * - + col0 * 81 * 39 AS col2 FROM tab2 AS cor0
----
0
0
145314

skipif mysql # not compatible
query I rowsort label-1185
SELECT ALL 35 / CAST ( - col2 AS INTEGER ) * - + col0 * 81 * 39 AS col2 FROM tab2 AS cor0
----
0
0
145314

query II rowsort
SELECT DISTINCT + + 40, 58 AS col2 FROM tab1 AS cor0
----
40
58

query I rowsort
SELECT DISTINCT - 93 * col2 + col2 FROM tab1 AS cor0
----
-5428
-6256
-8832

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

query I rowsort
SELECT ALL + - 25 * + col2 * - 51 FROM tab0 AS cor0
----
126225
12750
59925

query I rowsort
SELECT + 60 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT + col2 * - - col0 * 33 FROM tab1
----
161568
165495
204204

query I rowsort
SELECT - 17 * col0 * 93 AS col1 FROM tab1
----
-134385
-143871
-80631

query II rowsort
SELECT DISTINCT 78, 87 * col0 * + col2 AS col1 FROM tab0
----
78
61335
78
75690
78
835461

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1195
SELECT ALL 34 AS col2, - MIN( ALL + 99 ) FROM tab1
----
34
-99

skipif mysql # not compatible
query II rowsort label-1195
SELECT ALL 34 AS col2, - MIN ( ALL + 99 ) FROM tab1
----
34
-99

query II rowsort
SELECT ALL col1 AS col2, + 90 AS col2 FROM tab0
----
1
90
21
90
81
90

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

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

query II rowsort
SELECT col1 AS col2, + col1 * + col0 FROM tab1
----
14
714
47
4277
5
425

query I rowsort
SELECT ALL + - col0 * 14 AS col0 FROM tab1 AS cor0
----
-1190
-1274
-714

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1200
SELECT DISTINCT 15 DIV MAX( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1200
SELECT DISTINCT 15 / MAX ( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 / + 64 < + - 46
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1204
SELECT * FROM tab0 WHERE + 9 * + col0 / + - col2 + - + 36 < - col0 - - CAST( - 42 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-1204
SELECT * FROM tab0 WHERE + 9 * + col0 / + - col2 + - + 36 < - col0 - - CAST ( - 42 AS REAL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1205
SELECT - COUNT( * ) DIV COUNT( * ) + + - SUM( - col2 ) AS col2 FROM tab0
----
155

skipif mysql # not compatible
query I rowsort label-1205
SELECT - COUNT ( * ) / COUNT ( * ) + + - SUM ( - col2 ) AS col2 FROM tab0
----
155

query I rowsort
SELECT ALL col1 * - 68 + col0 * + col0 + col2 FROM tab2
----
-1100
-1329
1127

query II rowsort
SELECT ALL + col1 + + 55, + 81 + ( 58 ) AS col1 FROM tab2 AS cor0
----
106
139
122
139
132
139

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1209
SELECT ALL - COUNT( * ) + + MAX( 82 ) FROM tab1 cor0
----
79

skipif mysql # not compatible
query I rowsort label-1209
SELECT ALL - COUNT ( * ) + + MAX ( 82 ) FROM tab1 cor0
----
79

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1211
SELECT ALL + SUM( ALL + - 38 ) + 16 AS col1 FROM tab1 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-1211
SELECT ALL + SUM ( ALL + - 38 ) + 16 AS col1 FROM tab1 AS cor0
----
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 45 * + col2 col2, - col2 FROM tab0 AS cor0
----
-2115
-47
-4455
-99
-450
-10

query I rowsort
SELECT + 78 * - 12 * + + 31 * + - ( 66 ) - - 28 AS col1 FROM tab0
----
1915084
1915084
1915084

query I rowsort
SELECT col0 - + + 99 * - col2 AS col1 FROM tab2
----
2323
4024
5817

query I rowsort
SELECT + col0 - col2 * 53 AS col1 FROM tab2
----
-1173
-2056
-2999

query I rowsort
SELECT col2 + + ( col0 ) * + + ( - col1 ) AS col1 FROM tab2
----
-2323
-4888
-4967

query I rowsort
SELECT 28 + - - col2 AS col2 FROM tab1
----
124
87
96

query I rowsort
SELECT ALL + + ( + + col2 ) AS col0 FROM tab0 WHERE - col1 * col2 NOT BETWEEN + + col1 AND NULL
----
10
47
99

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

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

query I rowsort
SELECT ALL 79 * - col2 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 88 + + col1 FROM tab1 AS cor0
----
-41
-74
-83

query I rowsort
SELECT ALL + 40 + 99 AS col2 FROM tab2 AS cor0
----
139
139
139

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1224
SELECT ALL 87 * ( + - COUNT( * ) ) AS col0 FROM tab2
----
-261

skipif mysql # not compatible
query I rowsort label-1224
SELECT ALL 87 * ( + - COUNT ( * ) ) AS col0 FROM tab2
----
-261

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 0 >= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1226
SELECT - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0 WHERE NOT - 61 IN ( 56, + 88, + - col1 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1226
SELECT - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0 WHERE NOT - 61 IN ( 56, + 88, + - col1 )
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 38 * col1 FROM tab1 AS cor0
----
1786
190
532

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1228
SELECT DISTINCT + COUNT( * ) * 15 DIV + 65 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1228
SELECT DISTINCT + COUNT ( * ) * 15 / + 65 FROM tab0 AS cor0
----
0

query II rowsort
SELECT - 13 * 43, + 11 AS col0 FROM tab0 AS cor0
----
-559
11
-559
11
-559
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT - SUM( ALL 3 ) AS col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1230
SELECT - SUM ( ALL 3 ) AS col0 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT - + col0 * + ( + col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-2116
-4096
-5625

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

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

query I rowsort
SELECT + ( - + 4 ) FROM tab0 cor0
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1234
SELECT - MAX( - 15 ) FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-1234
SELECT - MAX ( - 15 ) FROM tab2
----
15

query I rowsort
SELECT DISTINCT 26 * 23 AS col1 FROM tab2
----
598

query I rowsort
SELECT - - col2 AS col1 FROM tab0 WHERE NOT ( + 77 ) * - col0 * + col0 > col0 + - col2
----
10
47
99

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL <> + col0 / - 59 * + + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1239
SELECT + - col1 DIV + 29 FROM tab2 AS cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-1239
SELECT + - col1 / + 29 FROM tab2 AS cor0
----
-1
-2
-2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1240
SELECT ALL + MIN( ALL + - CAST( NULL AS DECIMAL ) ) FROM tab1, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1240
SELECT ALL + MIN ( ALL + - CAST ( NULL AS REAL ) ) FROM tab1, tab2 AS cor0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1242
SELECT - col1 + - 2 DIV col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-1242
SELECT - col1 + - 2 / col0 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1243
SELECT ALL COUNT( * ) + + 57 + - 37 FROM tab0 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-1243
SELECT ALL COUNT ( * ) + + 57 + - 37 FROM tab0 AS cor0
----
23

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1244
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1244
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE ( + col0 ) NOT IN ( - 78 * - 55 * + col0 * col2 - + col2, - col2 + col0 )
----
10
47
99

query I rowsort
SELECT ALL 9 - + 74 FROM tab2 AS cor0
----
-65
-65
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT COUNT( * ) + 87 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-1247
SELECT COUNT ( * ) + 87 FROM tab1 AS cor0
----
90

query III rowsort
SELECT * FROM tab2 WHERE 56 * + col1 > + + 67 * + + ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1249
SELECT ALL 79 * + - COUNT( * ) FROM tab1
----
-237

skipif mysql # not compatible
query I rowsort label-1249
SELECT ALL 79 * + - COUNT ( * ) FROM tab1
----
-237

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1251
SELECT COUNT( - col0 ) FROM tab0 WHERE + - ( - col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1251
SELECT COUNT ( - col0 ) FROM tab0 WHERE + - ( - col2 ) IS NULL
----
0

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

skipif mysql # not compatible
query I rowsort label-1252
SELECT COUNT ( * ) / COUNT ( * ) AS col1 FROM tab2
----
1

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

query I rowsort
SELECT + + 8 * + col1 + - col1 AS col2 FROM tab1 AS cor0
----
329
35
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1255
SELECT ALL ( + - ( + + SUM( ALL - 39 ) ) ) FROM tab1
----
117

skipif mysql # not compatible
query I rowsort label-1255
SELECT ALL ( + - ( + + SUM ( ALL - 39 ) ) ) FROM tab1
----
117

query I rowsort
SELECT DISTINCT 9 * + 68 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1257
SELECT col0 DIV col2 * - col2 * + col1 FROM tab0 AS cor0
----
-1680
0
0

skipif mysql # not compatible
query I rowsort label-1257
SELECT col0 / col2 * - col2 * + col1 FROM tab0 AS cor0
----
-1680
0
0

query II rowsort
SELECT ALL 20 AS col1, 60 + col1 FROM tab1 cor0
----
20
107
20
65
20
74

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> + + col2 AND + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1261
SELECT ALL MIN( 30 ) col0 FROM tab2
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1261
SELECT ALL MIN ( 30 ) col0 FROM tab2
----
30

query I rowsort
SELECT DISTINCT - 64 AS col0 FROM tab0 WHERE + 38 * col1 IS NOT NULL
----
-64

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

skipif mysql # not compatible
query I rowsort label-1263
SELECT 47 * COUNT ( * ) AS col2 FROM tab2
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-1264
SELECT SUM( ALL 70 ) FROM tab0
----
210

skipif mysql # not compatible
query I rowsort label-1264
SELECT SUM ( ALL 70 ) FROM tab0
----
210

query I rowsort
SELECT DISTINCT + ( + col2 ) + - col0 AS col1 FROM tab2
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT 96 * - COUNT( - col0 ) AS col2 FROM tab0
----
-288

skipif mysql # not compatible
query I rowsort label-1266
SELECT 96 * - COUNT ( - col0 ) AS col2 FROM tab0
----
-288

onlyif mysql # DIV for integer division: 
query I rowsort label-1267
SELECT ALL col1 DIV + col2 * - col0 + - - 14 FROM tab1
----
14
14
14

skipif mysql # not compatible
query I rowsort label-1267
SELECT ALL col1 / + col2 * - col0 + - - 14 FROM tab1
----
14
14
14

query I rowsort
SELECT DISTINCT - + col2 AS col2 FROM tab2 AS cor0 WHERE NOT 81 * - - 23 + - + col2 IS NOT NULL
----

query I rowsort
SELECT + 76 + - - col1 + + - col0 - + col1 + col1 - col0 * 73 * 7 AS col1 FROM tab2
----
-23425
-32615
-38257

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 55 col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1273
SELECT DISTINCT col0 / + CAST ( NULL AS INTEGER ) * + col1 + + + 50 col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 78 / + col1 * col0 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1275
SELECT + 5 AS col0, + MAX( + 62 ) AS col2 FROM tab2 cor0
----
5
62

skipif mysql # not compatible
query II rowsort label-1275
SELECT + 5 AS col0, + MAX ( + 62 ) AS col2 FROM tab2 cor0
----
5
62

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1277
SELECT ALL col2 - + col1 + + col0 DIV + col0 AS col1 FROM tab2 AS cor0
----
-27
-36
-8

skipif mysql # not compatible
query I rowsort label-1277
SELECT ALL col2 - + col1 + + col0 / + col0 AS col1 FROM tab2 AS cor0
----
-27
-36
-8

query I rowsort
SELECT + col1 + 41 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1279
SELECT - SUM( + col0 ) - - 49 AS col1 FROM tab0
----
-150

skipif mysql # not compatible
query I rowsort label-1279
SELECT - SUM ( + col0 ) - - 49 AS col1 FROM tab0
----
-150

query I rowsort
SELECT ALL 43 * - - col2 FROM tab0
----
2021
4257
430

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1283
SELECT DISTINCT COUNT( * ) / + MAX( DISTINCT + - col1 ) / + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1283
SELECT DISTINCT COUNT ( * ) / + MAX ( DISTINCT + - col1 ) / + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 <= NULL OR NOT + col0 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-1285
SELECT - COUNT ( - - col1 ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1286
SELECT * FROM tab0 WHERE NOT - CAST( 33 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-1286
SELECT * FROM tab0 WHERE NOT - CAST ( 33 AS INTEGER ) <= NULL
----

query I rowsort
SELECT ALL - 74 * + + 52 * + 1 FROM tab1 WHERE ( NOT + 70 <= NULL )
----

query I rowsort
SELECT ALL - - 97 * + col2 + + - col1 AS col1 FROM tab1 WHERE ( NOT ( NULL ) > NULL )
----

query I rowsort
SELECT ALL 75 AS col2 FROM tab1 cor0
----
75
75
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1290
SELECT - SUM( col2 ) DIV - 13 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-1290
SELECT - SUM ( col2 ) / - 13 FROM tab0 AS cor0
----
12

query I rowsort
SELECT - 75 * + col1 * - 70 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
246750
26250
73500

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1293
SELECT + ( - ( + - col2 ) ) DIV col2 + 27 FROM tab0 AS cor0
----
28
28
28

skipif mysql # not compatible
query I rowsort label-1293
SELECT + ( - ( + - col2 ) ) / col2 + 27 FROM tab0 AS cor0
----
28
28
28

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1295
SELECT col2 * + - col2, + 99 + - 42 + - 47 DIV + 94 AS col2 FROM tab2 AS cor0
----
-1600
57
-3364
57
-529
57

skipif mysql # not compatible
query II rowsort label-1295
SELECT col2 * + - col2, + 99 + - 42 + - 47 / + 94 AS col2 FROM tab2 AS cor0
----
-1600
57
-3364
57
-529
57

onlyif mysql # aggregate syntax: 
query II rowsort label-1296
SELECT MAX( DISTINCT + col1 ) + - 22 + - 58 AS col1, + 7 AS col2 FROM tab0
----
1
7

skipif mysql # not compatible
query II rowsort label-1296
SELECT MAX ( DISTINCT + col1 ) + - 22 + - 58 AS col1, + 7 AS col2 FROM tab0
----
1
7

query I rowsort
SELECT DISTINCT ( + 91 ) FROM tab2
----
91

query I rowsort
SELECT DISTINCT 80 + col1 FROM tab0
----
101
161
81

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1300
SELECT DISTINCT ( + COUNT( * ) ) + - - CAST( + 5 AS SIGNED ) + - 63 FROM tab2
----
-55

skipif mysql # not compatible
query I rowsort label-1300
SELECT DISTINCT ( + COUNT ( * ) ) + - - CAST ( + 5 AS INTEGER ) + - 63 FROM tab2
----
-55

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1303
SELECT ALL + col2 / + - col1 FROM tab0
----
-99
0
0

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 LEFT OUTER JOIN tab0 AS cor1 ON - ( - 11 ) + + 4 IS NULL
----
18 values hashing to 3bb2bca130a6dfa84e4c44460040062d

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1305
SELECT DISTINCT + ( + col1 ) / + CAST( + + 96 AS SIGNED ) + - ( + - col2 ) * 17 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-1305
SELECT DISTINCT + ( + col1 ) / + CAST ( + + 96 AS INTEGER ) + - ( + - col2 ) * 17 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 + 27 AS col1 FROM tab1 AS cor0
----
32
41
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1307
SELECT ALL - 67 + 24 AS col1, - CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
-43
NULL
-43
NULL
-43
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1307
SELECT ALL - 67 + 24 AS col1, - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
-43
NULL
-43
NULL
-43
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1309
SELECT ALL + col2 DIV + - 78 col0, + col1 * col1 * + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-1
NULL
0
NULL
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1309
SELECT ALL + col2 / + - 78 col0, + col1 * col1 * + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-1
NULL
0
NULL
0
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1311
SELECT DISTINCT + + CAST( + col2 AS SIGNED ), col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

skipif mysql # not compatible
query II rowsort label-1311
SELECT DISTINCT + + CAST ( + col2 AS INTEGER ), col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1312
SELECT DISTINCT + COUNT( * ) DIV + + SUM( DISTINCT - + 1 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1312
SELECT DISTINCT + COUNT ( * ) / + + SUM ( DISTINCT - + 1 ) FROM tab1
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT - col1 * + col2 >= 76 * 2 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1314
SELECT ALL + ( - col0 ) DIV 14, + col2 AS col0 FROM tab0
----
-1
47
-6
10
-6
99

skipif mysql # not compatible
query II rowsort label-1314
SELECT ALL + ( - col0 ) / 14, + col2 AS col0 FROM tab0
----
-1
47
-6
10
-6
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1315
SELECT - CAST( + - 56 AS SIGNED ), + col1 FROM tab0 WHERE NOT + col1 IS NULL
----
56
1
56
21
56
81

skipif mysql # not compatible
query II rowsort label-1315
SELECT - CAST ( + - 56 AS INTEGER ), + col1 FROM tab0 WHERE NOT + col1 IS NULL
----
56
1
56
21
56
81

query I rowsort
SELECT + 5 * + col2 * - - 29 AS col0 FROM tab0
----
14355
1450
6815

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1320
SELECT ALL 77 + + 5 DIV 40 FROM tab0
----
77
77
77

skipif mysql # not compatible
query I rowsort label-1320
SELECT ALL 77 + + 5 / 40 FROM tab0
----
77
77
77

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

query II rowsort
SELECT ALL col0 AS col2, col0 - + col2 * + col0 * 4 FROM tab2 cor0
----
46
-4186
64
-10176
75
-17325

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

query II rowsort
SELECT col2 * col0 AS col1, 2 FROM tab2
----
1058
2
2560
2
4350
2

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

skipif mysql # not compatible
query I rowsort label-1325
SELECT ALL CAST ( + + 1 AS INTEGER ) + COUNT ( * ) AS col2 FROM tab0
----
4

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 WHERE + col2 IS NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1328
SELECT + COUNT( DISTINCT - - CAST( - - col2 AS SIGNED ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1328
SELECT + COUNT ( DISTINCT - - CAST ( - - col2 AS INTEGER ) ) FROM tab1
----
3

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1330
SELECT DISTINCT CAST( - - col0 AS SIGNED ) * - + 75 + + - 72 FROM tab2
----
-3522
-4872
-5697

skipif mysql # not compatible
query I rowsort label-1330
SELECT DISTINCT CAST ( - - col0 AS INTEGER ) * - + 75 + + - 72 FROM tab2
----
-3522
-4872
-5697

query I rowsort
SELECT - ( - col0 ) * 4 AS col0 FROM tab1
----
204
340
364

onlyif mysql # aggregate syntax: 
query I rowsort label-1332
SELECT ALL + COUNT( - ( - ( - col0 ) ) ) * - 85 + SUM( col2 ) + - COUNT( * ) FROM tab1
----
-35

skipif mysql # not compatible
query I rowsort label-1332
SELECT ALL + COUNT ( - ( - ( - col0 ) ) ) * - 85 + SUM ( col2 ) + - COUNT ( * ) FROM tab1
----
-35

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1333
SELECT - COUNT( * ) / - - CAST( NULL AS DECIMAL ) + - + SUM( col2 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1333
SELECT - COUNT ( * ) / - - CAST ( NULL AS REAL ) + - + SUM ( col2 ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1334
SELECT ALL 44 + + 26 + - COUNT( * ) AS col2 FROM tab2
----
67

skipif mysql # not compatible
query I rowsort label-1334
SELECT ALL 44 + + 26 + - COUNT ( * ) AS col2 FROM tab2
----
67

query I rowsort
SELECT ALL 61 * col1 + - 13 AS col0 FROM tab2 AS cor0
----
3098
4074
4684

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

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

query I rowsort
SELECT + col2 + + + ( + + col2 ) FROM tab1 AS cor0
----
118
136
192

query II rowsort
SELECT ALL + 17 AS col2, - 65 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 7ead11533dec739499d4d963fa3d3a43

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <> + - col1 / + 26 - col2
----

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

query I rowsort
SELECT 28 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 14 * + - col0 NOT IN ( + 95, - 63, + 78, - + 76 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 + + + 86 FROM tab0 AS cor0
----
5
65
85

query II rowsort
SELECT 79 AS col0, col0 * - col0 AS col2 FROM tab0 AS cor0
----
79
-225
79
-7569
79
-9409

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

query I rowsort
SELECT - ( - col1 ) FROM tab1 WHERE NOT col2 IS NOT NULL
----

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

query I rowsort
SELECT - ( 59 ) FROM tab1
----
-59
-59
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-1349
SELECT - ( col1 ) DIV 10 AS col0 FROM tab0
----
-2
-8
0

skipif mysql # not compatible
query I rowsort label-1349
SELECT - ( col1 ) / 10 AS col0 FROM tab0
----
-2
-8
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1350
SELECT ALL + + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col2 * + col0 * + 89 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1350
SELECT ALL + + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col2 * + col0 * + 89 IS NULL
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1353
SELECT - + MAX( - col0 ) AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-1353
SELECT - + MAX ( - col0 ) AS col2 FROM tab0 AS cor0
----
15

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1354
SELECT - + MAX ( col2 ) col1 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT DISTINCT + ( + - col1 ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT DISTINCT 44 * + col1 AS col1 FROM tab2 AS cor0
----
2244
2948
3388

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT ALL - - COUNT( * ) FROM tab0 cor0 WHERE - 4 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-1357
SELECT ALL - - COUNT ( * ) FROM tab0 cor0 WHERE - 4 > NULL
----
0

query I rowsort
SELECT DISTINCT + 51 * - - 44 AS col2 FROM tab2 AS cor0
----
2244

query II rowsort
SELECT ALL + col0 * col2 * - ( - 86 ) - col1 + 18 + - 81 + - 60, col0 AS col2 FROM tab2 AS cor0
----
219960
64
373910
75
90814
46

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1360
SELECT ALL - COUNT( * ) / + MIN( DISTINCT - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1360
SELECT ALL - COUNT ( * ) / + MIN ( DISTINCT - CAST ( NULL AS REAL ) ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 82 * + col2 * 78 AS col2 FROM tab2 AS cor0
----
-147108
-255840
-370968

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1362
SELECT ALL + + MIN( + col0 ) DIV - COUNT( * ) FROM tab1 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-1362
SELECT ALL + + MIN ( + col0 ) / - COUNT ( * ) FROM tab1 AS cor0
----
-17

query II rowsort
SELECT - col2 * col1 + - + col0, col0 FROM tab0 AS cor0
----
-196
97
-297
87
-3822
15

query I rowsort
SELECT - col1 * - 76 + - 93 AS col2 FROM tab1 AS cor0
----
287
3479
971

query III rowsort
SELECT * FROM tab2 WHERE ( NOT + col2 > 13 )
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1367
SELECT ALL COUNT( * ) AS col0, + 83 FROM tab0
----
3
83

skipif mysql # not compatible
query II rowsort label-1367
SELECT ALL COUNT ( * ) AS col0, + 83 FROM tab0
----
3
83

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

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

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

query I rowsort
SELECT ALL - - col2 - 96 AS col2 FROM tab0 AS cor0
----
-49
-86
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1371
SELECT ALL + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE + 15 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1371
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE + 15 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT - - 94 - - + col1 FROM tab2 AS cor0
----
145
161
171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1373
SELECT MIN( ALL CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1373
SELECT MIN ( ALL CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL 35 AS col2, 42 FROM tab1 cor0
----
35
42
35
42
35
42

query I rowsort
SELECT DISTINCT col0 - - 50 FROM tab1 AS cor0
----
101
135
141

onlyif mysql # aggregate syntax: 
query I rowsort label-1376
SELECT MAX( - col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-1376
SELECT MAX ( - col1 ) FROM tab1 AS cor0
----
-5

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( col0 + + col2, col2 - 99, - - col0 - ( col0 ), - 83, + - 66 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1378
SELECT - + SUM( + - col2 ), COUNT( * ) col0 FROM tab2 cor0
----
121
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1378
SELECT - + SUM ( + - col2 ), COUNT ( * ) col0 FROM tab2 cor0
----
121
3

query I rowsort
SELECT ALL - 93 * + 22 * + 55 + - 2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1382
SELECT DISTINCT MAX( - col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-1382
SELECT DISTINCT MAX ( - col2 ) FROM tab2
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-1383
SELECT col1 DIV - ( 67 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1383
SELECT col1 / - ( 67 ) FROM tab1
----
0
0
0

query I rowsort
SELECT col0 * - 4 AS col0 FROM tab2
----
-184
-256
-300

query II rowsort
SELECT DISTINCT col1 * - ( - col0 ), - col2 AS col0 FROM tab0
----
1215
-47
1827
-10
97
-99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT ALL + COUNT( DISTINCT - 43 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1387
SELECT ALL + COUNT ( DISTINCT - 43 ) FROM tab0
----
1

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

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

query I rowsort
SELECT DISTINCT - col1 * 36 AS col1 FROM tab0 AS cor0
----
-2916
-36
-756

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1392
SELECT DISTINCT - COUNT ( * ) / + 82 AS col0 FROM tab1 cor0
----
0

query II rowsort
SELECT DISTINCT 40 AS col0, - col2 FROM tab0 AS cor0
----
40
-10
40
-47
40
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1394
SELECT - COUNT( * ) * - 0 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-1394
SELECT - COUNT ( * ) * - 0 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1396
SELECT DISTINCT - SUM( col2 ) FROM tab2 WHERE NOT - col1 + + col2 IS NULL
----
-121

skipif mysql # not compatible
query I rowsort label-1396
SELECT DISTINCT - SUM ( col2 ) FROM tab2 WHERE NOT - col1 + + col2 IS NULL
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT - 66 + + COUNT( * ) - + 49 AS col2 FROM tab0
----
-112

skipif mysql # not compatible
query I rowsort label-1397
SELECT - 66 + + COUNT ( * ) - + 49 AS col2 FROM tab0
----
-112

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

query I rowsort
SELECT 32 + + + ( - - col0 ) FROM tab2
----
107
78
96

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

skipif mysql # not compatible
query I rowsort label-1400
SELECT - ( + MIN ( - col1 ) ) FROM tab2 cor0
----
77

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1404
SELECT - + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1404
SELECT - + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-3

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

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

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

query I rowsort
SELECT + col0 * + + ( - + col2 ) AS col2 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT 63 * - col0 AS col0 FROM tab0
----
-5481
-6111
-945

query I rowsort
SELECT ALL + col1 + - - 77 AS col1 FROM tab1
----
124
82
91

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1410
SELECT + CAST ( + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS INTEGER ) - col2 col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 51 * + col2 AS col0 FROM tab2
----
1173
2040
2958

query I rowsort
SELECT col2 - + 35 AS col0 FROM tab0
----
-25
12
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1413
SELECT ALL 69 * - + SUM( ALL + + col2 ) * + 9 * + 92 * + - ( + 26 ) AS col0 FROM tab1
----
331251336

skipif mysql # not compatible
query I rowsort label-1413
SELECT ALL 69 * - + SUM ( ALL + + col2 ) * + 9 * + 92 * + - ( + 26 ) AS col0 FROM tab1
----
331251336

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

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

query I rowsort
SELECT DISTINCT 57 + + 78 AS col0 FROM tab2
----
135

query I rowsort
SELECT DISTINCT col1 * 86 + - col1 AS col0 FROM tab2
----
4335
5695
6545

query I rowsort
SELECT ALL + + col0 + - col0 + 30 - col0 FROM tab1 AS cor0
----
-21
-55
-61

query I rowsort
SELECT + col2 * + col2 FROM tab0 cor0 WHERE NULL IS NULL
----
100
2209
9801

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

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

query I rowsort
SELECT + 4 * + col0 FROM tab0
----
348
388
60

query I rowsort
SELECT ALL - 74 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 5a567947d14593676e3825756f8e6130

onlyif mysql # aggregate syntax: 
query II rowsort label-1422
SELECT - - COUNT( * ) AS col1, COUNT( * ) AS col1 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-1422
SELECT - - COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
3
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1423
SELECT ALL CAST( NULL AS SIGNED ) AS col0, + COUNT( * ) * CAST( NULL AS SIGNED ) * - - MIN( ALL + col0 ) FROM tab1 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1423
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) * CAST ( NULL AS INTEGER ) * - - MIN ( ALL + col0 ) FROM tab1 AS cor0
----
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1425
SELECT - COUNT( * ) AS col0, + SUM( - 6 ) + + 91 AS col0 FROM tab2 cor0
----
-3
73

skipif mysql # not compatible
query II rowsort label-1425
SELECT - COUNT ( * ) AS col0, + SUM ( - 6 ) + + 91 AS col0 FROM tab2 cor0
----
-3
73

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 72 ) * - - col1 col2 FROM tab2
----
-3672
-4824
-5544

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT DISTINCT - 39 + - COUNT( * ) FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-1430
SELECT DISTINCT - 39 + - COUNT ( * ) FROM tab2
----
-42

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1432
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 2 < - CAST( - col0 AS SIGNED ) * - + col1 + 91
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1432
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 2 < - CAST ( - col0 AS INTEGER ) * - + col1 + 91
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 + + col1 AS col0 FROM tab2 AS cor0 WHERE NOT + 64 * col1 * - - col1 IS NOT NULL
----

query I rowsort
SELECT ALL 79 + + col2 AS col1 FROM tab2 cor0 WHERE NOT NULL < NULL
----

query II rowsort
SELECT DISTINCT 54 AS col1, col0 AS col1 FROM tab0 WHERE col2 IS NOT NULL
----
54
15
54
87
54
97

query I rowsort
SELECT col1 + col0 AS col2 FROM tab0 WHERE NULL IS NULL
----
108
96
98

query II rowsort
SELECT 97, - col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

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

query II rowsort
SELECT DISTINCT - 99 - 20 AS col1, col0 AS col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1440
SELECT DISTINCT ( - CAST ( - MIN ( ALL - col2 ) AS INTEGER ) ) + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 75 FROM tab1 AS cor0 WHERE + col1 >= - + col0
----
75
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1442
SELECT DISTINCT + ( 6 ) + - MAX( DISTINCT ( + - 31 ) ) AS col1 FROM tab0
----
37

skipif mysql # not compatible
query I rowsort label-1442
SELECT DISTINCT + ( 6 ) + - MAX ( DISTINCT ( + - 31 ) ) AS col1 FROM tab0
----
37

query I rowsort
SELECT col0 * - col1 * + + col0 FROM tab2
----
-107916
-315392
-376875

query I rowsort
SELECT 80 * + col2 * + 51 FROM tab2
----
163200
236640
93840

query I rowsort
SELECT ALL ( - col0 ) + + col1 FROM tab0
----
-66
-96
66

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1448
SELECT - col1 DIV - col1 - ( + col1 ), - col0 col0 FROM tab0 AS cor0
----
-20
-87
-80
-15
0
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1448
SELECT - col1 / - col1 - ( + col1 ), - col0 col0 FROM tab0 AS cor0
----
-20
-87
-80
-15
0
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1449
SELECT ALL SUM( ALL - col1 ) + + 55 FROM tab2 AS cor0
----
-140

skipif mysql # not compatible
query I rowsort label-1449
SELECT ALL SUM ( ALL - col1 ) + + 55 FROM tab2 AS cor0
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT DISTINCT - + SUM( DISTINCT - col2 ) - + COUNT( * ) FROM tab1 AS cor0
----
220

skipif mysql # not compatible
query I rowsort label-1450
SELECT DISTINCT - + SUM ( DISTINCT - col2 ) - + COUNT ( * ) FROM tab1 AS cor0
----
220

query I rowsort
SELECT DISTINCT - col0 * - col2 + - col2 + - col0 FROM tab1 AS cor0
----
4749
4871
6029

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT - col1 BETWEEN - col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN col1 / col0 AND NULL
----

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

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

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

query I rowsort
SELECT + - 32 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

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

query II rowsort
SELECT ALL + + 32 AS col1, 74 AS col1 FROM tab0 AS cor0
----
32
74
32
74
32
74

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

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

query I rowsort
SELECT DISTINCT - 60 AS col2 FROM tab1 WHERE NULL IS NULL
----
-60

query I rowsort
SELECT - 53 * + col1 AS col0 FROM tab2
----
-2703
-3551
-4081

onlyif mysql # aggregate syntax: 
query II rowsort label-1463
SELECT + COUNT( * ) AS col0, + 73 FROM tab2
----
3
73

skipif mysql # not compatible
query II rowsort label-1463
SELECT + COUNT ( * ) AS col0, + 73 FROM tab2
----
3
73

query III rowsort
SELECT DISTINCT + + col1, 51 AS col0, - + col2 FROM tab1 AS cor0
----
9 values hashing to c00c7b0a91ae4d284bac9a8806f15904

query I rowsort
SELECT DISTINCT + + 63 * + + 22 FROM tab2 AS cor0
----
1386

query II rowsort
SELECT - 78 + - col1 AS col1, - col1 AS col2 FROM tab0 AS cor0
----
-159
-81
-79
-1
-99
-21

query I rowsort
SELECT ALL + - 71 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

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

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

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

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

query I rowsort
SELECT DISTINCT col1 - + 45 * + ( + 25 ) AS col0 FROM tab1 AS cor0
----
-1078
-1111
-1120

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 43 <= ( NULL )
----

query I rowsort
SELECT col1 - 63 * 70 FROM tab1
----
-4363
-4396
-4405

query I rowsort
SELECT ALL + 73 * + 35 FROM tab2
----
2555
2555
2555

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1475
SELECT ALL 16 * - 70 + COUNT( * ) AS col2 FROM tab0
----
-1117

skipif mysql # not compatible
query I rowsort label-1475
SELECT ALL 16 * - 70 + COUNT ( * ) AS col2 FROM tab0
----
-1117

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1476
SELECT DISTINCT * FROM tab0 WHERE CAST( col0 AS SIGNED ) >= - CAST( NULL AS SIGNED ) / - col0
----

skipif mysql # not compatible
query III rowsort label-1476
SELECT DISTINCT * FROM tab0 WHERE CAST ( col0 AS INTEGER ) >= - CAST ( NULL AS INTEGER ) / - col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 IN ( col1 )
----

query I rowsort
SELECT + ( + col1 ) + 72 FROM tab1
----
119
77
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1479
SELECT COUNT( DISTINCT ( + ( - CAST( + 53 AS SIGNED ) ) ) ) * CAST( NULL AS DECIMAL ) AS col1 FROM tab1 WHERE NOT ( col1 * + col1 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1479
SELECT COUNT ( DISTINCT ( + ( - CAST ( + 53 AS INTEGER ) ) ) ) * CAST ( NULL AS REAL ) AS col1 FROM tab1 WHERE NOT ( col1 * + col1 ) IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1480
SELECT DISTINCT CAST( 52 AS SIGNED ) + - col2 * - col2 FROM tab0
----
152
2261
9853

skipif mysql # not compatible
query I rowsort label-1480
SELECT DISTINCT CAST ( 52 AS INTEGER ) + - col2 * - col2 FROM tab0
----
152
2261
9853

onlyif mysql # aggregate syntax: 
query I rowsort label-1481
SELECT ALL + COUNT( * ) AS col0 FROM tab2 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1481
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 WHERE ( NULL ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1482
SELECT 46 * ( 87 ) - - 79 * MIN( DISTINCT - col2 ) FROM tab0
----
-3819

skipif mysql # not compatible
query I rowsort label-1482
SELECT 46 * ( 87 ) - - 79 * MIN ( DISTINCT - col2 ) FROM tab0
----
-3819

onlyif mysql # aggregate syntax: 
query I rowsort label-1483
SELECT - MIN( 66 ) AS col0 FROM tab1 WHERE NOT ( col1 * 32 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1483
SELECT - MIN ( 66 ) AS col0 FROM tab1 WHERE NOT ( col1 * 32 ) IS NOT NULL
----
NULL

query I rowsort
SELECT col2 * - col0 - + col1 * ( + col2 + col0 ) AS col1 FROM tab2
----
-10568
-13261
-4577

query I rowsort
SELECT ALL 50 * - col0 + 51 FROM tab1
----
-2499
-4199
-4499

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1486
SELECT ( CAST( - COUNT( * ) AS SIGNED ) ) FROM tab0 WHERE NULL <> + col0
----
0

skipif mysql # not compatible
query I rowsort label-1486
SELECT ( CAST ( - COUNT ( * ) AS INTEGER ) ) FROM tab0 WHERE NULL <> + col0
----
0

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

query I rowsort
SELECT ALL + 86 + + col0 AS col0 FROM tab1 WHERE NOT NULL < ( + col2 / col2 )
----

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

skipif mysql # not compatible
query I rowsort label-1489
SELECT DISTINCT CAST ( 99 AS INTEGER ) AS col0 FROM tab2
----
99

query I rowsort
SELECT ALL ( - 60 ) * + col1 FROM tab2 WHERE NOT ( + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1491
SELECT ALL + COUNT( * ) col2 FROM tab1 WHERE NOT NULL <> NULL
----
0

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 NOT BETWEEN NULL AND ( + col1 )
----
97
1
99

query I rowsort
SELECT + ( 55 ) * + col0 FROM tab2
----
2530
3520
4125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1495
SELECT CAST( CAST( + ( + col0 ) AS SIGNED ) AS SIGNED ) col0 FROM tab2 WHERE col2 + + col1 <= ( ( col1 ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1495
SELECT CAST ( CAST ( + ( + col0 ) AS INTEGER ) AS INTEGER ) col0 FROM tab2 WHERE col2 + + col1 <= ( ( col1 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 92 * + 62 col1 FROM tab0
----
-5704
-5704
-5704

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 IN ( + 29 + 84 )
----

query I rowsort
SELECT - 76 * - 83 FROM tab0
----
6308
6308
6308

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 47 col1 FROM tab1
----
-2773
-3196
-4512

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

query I rowsort
SELECT ( - 52 ) AS col2 FROM tab2 AS cor0
----
-52
-52
-52

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

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

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

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT col0 <> + 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1505
SELECT ALL 55 + SUM( DISTINCT + col2 ) FROM tab0
----
211

skipif mysql # not compatible
query I rowsort label-1505
SELECT ALL 55 + SUM ( DISTINCT + col2 ) FROM tab0
----
211

query I rowsort
SELECT DISTINCT + 34 + + 17 * - col0 AS col0 FROM tab0
----
-1445
-1615
-221

query I rowsort
SELECT 59 + + col1 AS col2 FROM tab1 AS cor0
----
106
64
73

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 <= ( col1 * col0 + + 73 * ( 6 + col0 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 + + 97 * - col0 FROM tab1 cor0
----
-4851
-8186
-8759

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1510
SELECT ALL - + 97 DIV col1 - CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
-16
-194
-91

skipif mysql # not compatible
query I rowsort label-1510
SELECT ALL - + 97 / col1 - CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
-16
-194
-91

query I rowsort
SELECT col1 + col1 FROM tab1 cor0 WHERE ( col0 ) NOT BETWEEN - col1 * - 44 AND + col1 * + col0 + col0
----
10
28
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1512
SELECT - MAX( 25 ) + - COUNT( * ) FROM tab0 cor0
----
-28

skipif mysql # not compatible
query I rowsort label-1512
SELECT - MAX ( 25 ) + - COUNT ( * ) FROM tab0 cor0
----
-28

query I rowsort
SELECT ALL + + 39 + col0 FROM tab0 AS cor0
----
126
136
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 29 - col2 * 68 col0 FROM tab2 AS cor0
----
-1535
-2691
-3915

onlyif mysql # aggregate syntax: 
query I rowsort label-1515
SELECT + COUNT( ALL + col1 ) * - MIN( 61 ) FROM tab1 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-1515
SELECT + COUNT ( ALL + col1 ) * - MIN ( 61 ) FROM tab1 AS cor0
----
-183

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1517
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( col2 ) AND CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-1517
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( col2 ) AND CAST ( NULL AS REAL )
----

query I rowsort
SELECT ALL col2 FROM tab1 cor0 WHERE NOT + 73 > NULL
----

query I rowsort
SELECT ALL 58 FROM tab0 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT ALL col2 * - col0 - col2 FROM tab0
----
-752
-880
-9702

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT - ( - COUNT( * ) ) * - COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-1521
SELECT - ( - COUNT ( * ) ) * - COUNT ( * ) FROM tab1
----
-9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT MAX( ALL 70 ) FROM tab0 WHERE NOT col0 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1523
SELECT MAX ( ALL 70 ) FROM tab0 WHERE NOT col0 > NULL
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1526
SELECT ALL - COUNT( * ) * 89 AS col1 FROM tab1 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-1526
SELECT ALL - COUNT ( * ) * 89 AS col1 FROM tab1 AS cor0
----
-267

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

query I rowsort
SELECT col1 * - col1 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL 73 * + 71 FROM tab1
----
5183
5183
5183

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

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

query I rowsort
SELECT 7 * 6 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1533
SELECT DISTINCT + COUNT( * ) * - 90 FROM tab0 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-1533
SELECT DISTINCT + COUNT ( * ) * - 90 FROM tab0 AS cor0
----
-270

query I rowsort
SELECT col0 * + + 21 AS col2 FROM tab1 AS cor0
----
1071
1785
1911

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

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

query I rowsort
SELECT ALL + col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( - col1 ) * - ( + col2 + col2 ) - 34 <= ( NULL )
----

query I rowsort
SELECT + 35 * col0 * - 67 AS col0 FROM tab2 AS cor0
----
-107870
-150080
-175875

query I rowsort
SELECT DISTINCT + AVG ( ALL 15 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( 78 * + 13 + + 23 * 17 ) NOT BETWEEN col2 AND NULL
----
NULL

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1541
SELECT DISTINCT + - col2 DIV - ( + col0 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1541
SELECT DISTINCT + - col2 / - ( + col0 ) FROM tab2 cor0
----
0

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

query I rowsort
SELECT ALL - + col1 FROM tab0 AS cor0 WHERE col0 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1544
SELECT MAX( col1 ) FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
77

skipif mysql # not compatible
query I rowsort label-1544
SELECT MAX ( col1 ) FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
77

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1546
SELECT + AVG ( ALL - 8 ) / + + CAST( NULL AS SIGNED ) + - 23 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1546
SELECT + AVG ( ALL - 8 ) / + + CAST ( NULL AS INTEGER ) + - 23 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1547
SELECT DISTINCT 44 + - col1 col2, + 84 + + CAST( col0 AS SIGNED ) + + col1 FROM tab0
----
-37
180
23
192
43
182

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1547
SELECT DISTINCT 44 + - col1 col2, + 84 + + CAST ( col0 AS INTEGER ) + + col1 FROM tab0
----
-37
180
23
192
43
182

query I rowsort
SELECT - 66 FROM tab1 WHERE + - col2 <= ( + 62 )
----
-66
-66
-66

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 = ( col2 * 67 )
----

query I rowsort
SELECT ALL + col0 + + + 65 AS col0 FROM tab1 cor0
----
116
150
156

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1553
SELECT + col0 DIV col1 * + 16 + - col1 + - col0 * col0 AS col0 FROM tab2 AS cor0
----
-2167
-4173
-5676

skipif mysql # not compatible
query I rowsort label-1553
SELECT + col0 / col1 * + 16 + - col1 + - col0 * col0 AS col0 FROM tab2 AS cor0
----
-2167
-4173
-5676

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1555
SELECT ALL + ( + + MIN( - 12 ) ) + - 54 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-66

skipif mysql # not compatible
query I rowsort label-1555
SELECT ALL + ( + + MIN ( - 12 ) ) + - 54 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-1556
SELECT + col0 DIV col0 * - col1 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-1556
SELECT + col0 / col0 * - col1 FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1557
SELECT COUNT( * ) * COUNT( * ) col0 FROM tab0 WHERE col0 = NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1557
SELECT COUNT ( * ) * COUNT ( * ) col0 FROM tab0 WHERE col0 = NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1558
SELECT ALL COUNT( * ) * CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0 WHERE ( col1 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1558
SELECT ALL COUNT ( * ) * CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0 WHERE ( col1 ) IS NULL
----
NULL

query II rowsort
SELECT - col2, 79 * + col1 AS col1 FROM tab1 AS cor0
----
-59
395
-68
3713
-96
1106

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

skipif mysql # not compatible
query I rowsort label-1560
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( - + col0 ) IS NOT NULL AND col2 * col1 = + 17 - col1 * ( col0 )
----
0

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

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

query I rowsort
SELECT - col1 * ( - - col0 ) - col0 FROM tab0 cor0
----
-1230
-1914
-194

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT DISTINCT 84 - + - COUNT( * ) FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-1564
SELECT DISTINCT 84 - + - COUNT ( * ) FROM tab0 AS cor0
----
87

query I rowsort
SELECT ALL - + 67 + - col2 - - + col0 * - 94 + - col2 AS col0 FROM tab0 AS cor0
----
-1571
-8265
-9383

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT 96 * + ( COUNT( * ) ) AS col2 FROM tab0
----
288

skipif mysql # not compatible
query I rowsort label-1567
SELECT 96 * + ( COUNT ( * ) ) AS col2 FROM tab0
----
288

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1570
SELECT + COUNT( DISTINCT 36 ) AS col0, + 58 FROM tab1
----
1
58

skipif mysql # not compatible
query II rowsort label-1570
SELECT + COUNT ( DISTINCT 36 ) AS col0, + 58 FROM tab1
----
1
58

query I rowsort
SELECT + col0 * 3 FROM tab0
----
261
291
45

onlyif mysql # DIV for integer division: 
query II rowsort label-1572
SELECT ALL + col0 AS col2, col1 DIV + 45 + - col2 + + col1 - 89 + col0 FROM tab0
----
15
-39
87
9
97
-90

skipif mysql # not compatible
query II rowsort label-1572
SELECT ALL + col0 AS col2, col1 / + 45 + - col2 + + col1 - 89 + col0 FROM tab0
----
15
-39
87
9
97
-90

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

query I rowsort
SELECT - col1 * + 12 AS col1 FROM tab1
----
-168
-564
-60

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT - col1 <= NULL )
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - 18 ) NOT IN ( col2 )
----

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 / + ( + - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1580
SELECT + MIN( - + col2 ) * COUNT( * ) FROM tab2 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-1580
SELECT + MIN ( - + col2 ) * COUNT ( * ) FROM tab2 AS cor0
----
-174

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1582
SELECT ALL - col2 FROM tab1 WHERE NOT 7 + + CAST( - col1 AS SIGNED ) + - + col0 NOT IN ( col2 + col2 )
----

skipif mysql # not compatible
query I rowsort label-1582
SELECT ALL - col2 FROM tab1 WHERE NOT 7 + + CAST ( - col1 AS INTEGER ) + - + col0 NOT IN ( col2 + col2 )
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 15 = NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1586
SELECT + + 69 + + - COUNT( * ) AS col1 FROM tab0 cor0
----
66

skipif mysql # not compatible
query I rowsort label-1586
SELECT + + 69 + + - COUNT ( * ) AS col1 FROM tab0 cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1587
SELECT DISTINCT - MAX( ALL - - col1 ) * + MAX( DISTINCT + - col0 ) FROM tab1 AS cor0
----
2397

skipif mysql # not compatible
query I rowsort label-1587
SELECT DISTINCT - MAX ( ALL - - col1 ) * + MAX ( DISTINCT + - col0 ) FROM tab1 AS cor0
----
2397

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( - ( + + ( + - ( 87 ) ) ) - ( - col0 ) ) >= ( NULL )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 40 col1, ( col2 ) * + col0 * col0 + + col1 - - 43 + 83 FROM tab0 WHERE NULL IS NULL
----
40
10782
40
75837
40
931618

query I rowsort
SELECT ALL 42 * - - col2 + - ( col1 ) AS col1 FROM tab0
----
1893
399
4157

query I rowsort
SELECT ALL - col1 + - 97 AS col1 FROM tab0
----
-118
-178
-98

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

skipif mysql # not compatible
query I rowsort label-1593
SELECT CAST ( + SUM ( + - col2 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-156

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1595
SELECT DISTINCT - - 77 + - COUNT( 69 ) FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-1595
SELECT DISTINCT - - 77 + - COUNT ( 69 ) FROM tab1 AS cor0
----
74

query I rowsort
SELECT + 39 * - 29 FROM tab1 cor0
----
-1131
-1131
-1131

query I rowsort
SELECT + 10 - 84 FROM tab1 AS cor0
----
-74
-74
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1598
SELECT ALL + CAST( MIN( - 76 ) AS SIGNED ) AS col0 FROM tab2
----
-76

skipif mysql # not compatible
query I rowsort label-1598
SELECT ALL + CAST ( MIN ( - 76 ) AS INTEGER ) AS col0 FROM tab2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1599
SELECT SUM( ( - + 23 ) ) * + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-1863

skipif mysql # not compatible
query I rowsort label-1599
SELECT SUM ( ( - + 23 ) ) * + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-1863

onlyif mysql # DIV for integer division: 
query I rowsort label-1600
SELECT - col1 + + col0 DIV - col2 + + 96 AS col0 FROM tab2
----
18
28
43

skipif mysql # not compatible
query I rowsort label-1600
SELECT - col1 + + col0 / - col2 + + 96 AS col0 FROM tab2
----
18
28
43

query I rowsort
SELECT ALL col0 * - ( + col2 ) * + col1 * col1 * 34 FROM tab0
----
-13044780
-157267170
-326502

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1602
SELECT + CAST( col0 AS SIGNED ) + + col1 * 4 FROM tab0
----
101
171
339

skipif mysql # not compatible
query I rowsort label-1602
SELECT + CAST ( col0 AS INTEGER ) + + col1 * 4 FROM tab0
----
101
171
339

query II rowsort
SELECT DISTINCT 75 + 96 - ( + 49 ) AS col1, + col1 AS col2 FROM tab1
----
122
14
122
47
122
5

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 * + col0 + - col2 * col2 BETWEEN ( - col0 ) AND NULL
----
51
14
96

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1609
SELECT + col2 * col0 * + - col0 DIV - - col0 col1 FROM tab1
----
-4896
-5015
-6188

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1609
SELECT + col2 * col0 * + - col0 / - - col0 col1 FROM tab1
----
-4896
-5015
-6188

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1611
SELECT DISTINCT - COUNT( * ) * - 9 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-1611
SELECT DISTINCT - COUNT ( * ) * - 9 FROM tab0
----
27

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - + 44 ) <= + col0
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1614
SELECT DISTINCT MIN( 37 ) FROM tab2 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-1614
SELECT DISTINCT MIN ( 37 ) FROM tab2 AS cor0
----
37

query II rowsort
SELECT DISTINCT 3, + 29 AS col0 FROM tab1 AS cor0
----
3
29

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 <= NULL
----

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

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

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

query I rowsort
SELECT DISTINCT col1 * + + 33 FROM tab0
----
2673
33
693

query III rowsort
SELECT * FROM tab2 WHERE NOT 42 + + 5 + - col0 + + col2 BETWEEN 64 AND ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 + + 74 + 45 FROM tab0 AS cor0
----
129
166
218

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 95 / + col0 > NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1627
SELECT ALL COUNT( * ) + 79 AS col0 FROM tab1 cor0
----
82

skipif mysql # not compatible
query I rowsort label-1627
SELECT ALL COUNT ( * ) + 79 AS col0 FROM tab1 cor0
----
82

query I rowsort
SELECT ALL + + 52 AS col0 FROM tab1 cor0
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1629
SELECT DISTINCT COUNT( * ) * - 76 FROM tab2 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-1629
SELECT DISTINCT COUNT ( * ) * - 76 FROM tab2 AS cor0
----
-228

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

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

query I rowsort
SELECT + 33 + - ( + col1 ) AS col0 FROM tab1
----
-14
19
28

query I rowsort
SELECT DISTINCT - - 2 - + col2 + - 53 FROM tab2 AS cor0
----
-109
-74
-91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1634
SELECT 70 * + - COUNT( * ) * - COUNT( * ) + - 43 FROM tab2 AS cor0
----
587

skipif mysql # not compatible
query I rowsort label-1634
SELECT 70 * + - COUNT ( * ) * - COUNT ( * ) + - 43 FROM tab2 AS cor0
----
587

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

skipif mysql # not compatible
query I rowsort label-1635
SELECT COUNT ( * ) * ( 79 ) AS col2 FROM tab2
----
237

query I rowsort
SELECT DISTINCT 59 AS col2 FROM tab1 WHERE NOT - + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1637
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-1637
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
14
47
5

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

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

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

skipif mysql # not compatible
query I rowsort label-1639
SELECT ALL - SUM ( col0 ) FROM tab1 cor0
----
-227

query I rowsort
SELECT DISTINCT + col1 * + col0 * - 13 AS col1 FROM tab0 AS cor0
----
-1261
-15795
-23751

query II rowsort
SELECT + col1, + col0 * + 53 FROM tab2 AS cor0
----
51
2438
67
3975
77
3392

query I rowsort
SELECT 58 * + + col1 FROM tab2 cor0
----
2958
3886
4466

onlyif mysql # aggregate syntax: 
query I rowsort label-1643
SELECT COUNT( * ) * 23 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-1643
SELECT COUNT ( * ) * 23 FROM tab0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1644
SELECT CAST( + + 44 AS SIGNED ) * - - col1 + - 78 + col1 * col1 FROM tab0
----
-33
10047
1287

skipif mysql # not compatible
query I rowsort label-1644
SELECT CAST ( + + 44 AS INTEGER ) * - - col1 + - 78 + col1 * col1 FROM tab0
----
-33
10047
1287

query I rowsort
SELECT ALL col0 FROM tab2 WHERE ( + col2 ) IS NOT NULL
----
46
64
75

query I rowsort
SELECT ALL - + ( + - ( + + col0 ) ) FROM tab2 AS cor0
----
46
64
75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT 66 + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-1648
SELECT 66 + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT + 41 + + 67 + + + MAX( ALL + col2 ) FROM tab2 AS cor0
----
166

skipif mysql # not compatible
query I rowsort label-1649
SELECT + 41 + + 67 + + + MAX ( ALL + col2 ) FROM tab2 AS cor0
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT DISTINCT + + MAX( ALL + col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 AND col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1650
SELECT DISTINCT + + MAX ( ALL + col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 AND col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1651
SELECT 2 + SUM( ALL + + ( 55 ) ) - + 52 FROM tab2 AS cor0
----
115

skipif mysql # not compatible
query I rowsort label-1651
SELECT 2 + SUM ( ALL + + ( 55 ) ) - + 52 FROM tab2 AS cor0
----
115

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 66 col0, + col0 AS col1 FROM tab2 AS cor0
----
66
46
66
64
66
75

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

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

query I rowsort
SELECT 37 + - col0 AS col2 FROM tab1 AS cor0
----
-14
-48
-54

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

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

query II rowsort
SELECT ALL col2 * - - col0 + 27 + - + 28 * + - col1 AS col2, + col0 AS col1 FROM tab0 AS cor0
----
1485
87
3000
15
9658
97

query I rowsort
SELECT - 1 + + col0 AS col1 FROM tab2 AS cor0
----
45
63
74

query I rowsort
SELECT + + ( + + 59 ) FROM tab1 WHERE + 51 IS NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-1661
SELECT ALL COUNT ( * ) + 73 FROM tab0
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1662
SELECT COUNT( * ) DIV 70 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1662
SELECT COUNT ( * ) / 70 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1663
SELECT 91 DIV + + col2 FROM tab0
----
0
1
9

skipif mysql # not compatible
query I rowsort label-1663
SELECT 91 / + + col2 FROM tab0
----
0
1
9

onlyif mysql # aggregate syntax: 
query II rowsort label-1664
SELECT + COUNT( * ) AS col0, - ( - 76 ) col0 FROM tab1 AS cor0
----
3
76

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

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

query I rowsort
SELECT + ( + - col1 ) - 27 FROM tab1 AS cor0
----
-32
-41
-74

query I rowsort
SELECT - - ( - + col1 ) - col0 + col1 + + ( col2 ) + 69 + + 15 AS col0 FROM tab1 AS cor0
----
129
58
61

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1669
SELECT ALL + - 35 DIV - COUNT( * ) FROM tab1 cor0
----
11

skipif mysql # not compatible
query I rowsort label-1669
SELECT ALL + - 35 / - COUNT ( * ) FROM tab1 cor0
----
11

query I rowsort
SELECT ALL + + 32 AS col1 FROM tab2 AS cor0
----
32
32
32

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1672
SELECT 92 * COUNT( * ) FROM tab0 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-1672
SELECT 92 * COUNT ( * ) FROM tab0 AS cor0
----
276

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

query I rowsort
SELECT DISTINCT + + col2 * + + 91 * + - col0 AS col2 FROM tab1 AS cor0
----
-445536
-456365
-563108

query I rowsort
SELECT + - col0 * 97 FROM tab2 WHERE NOT col1 IS NOT NULL
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1678
SELECT ALL - CAST( - + ( + ( AVG ( + col1 ) ) ) AS SIGNED ) AS col2 FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-1678
SELECT ALL - CAST ( - + ( + ( AVG ( + col1 ) ) ) AS INTEGER ) AS col2 FROM tab0
----
34

query I rowsort
SELECT 72 * + 52 AS col2 FROM tab0
----
3744
3744
3744

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 * + + col0 BETWEEN NULL AND - col0 + - 93 + + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1681
SELECT - 95 AS col0, + CAST( NULL AS SIGNED ) * COUNT( * ) AS col2 FROM tab2
----
-95
NULL

skipif mysql # not compatible
query II rowsort label-1681
SELECT - 95 AS col0, + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2 FROM tab2
----
-95
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT ( COUNT( * ) ) * - COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-1682
SELECT ( COUNT ( * ) ) * - COUNT ( * ) FROM tab1
----
-9

query I rowsort
SELECT ALL - 50 * ( col2 ) * + col1 AS col2 FROM tab1
----
-14750
-159800
-67200

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT 13 * - + MAX( + col1 ) AS col2 FROM tab0
----
-1053

skipif mysql # not compatible
query I rowsort label-1684
SELECT 13 * - + MAX ( + col1 ) AS col2 FROM tab0
----
-1053

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

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

query I rowsort
SELECT - col1 AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) = + 33 - + col0 * - col2 * col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, - 59 * + 58 * + col0 + col1 * + 58 * + 46 AS col1 FROM tab1 AS cor0
----
51
-137170
85
-277530
91
-186006

onlyif mysql # DIV for integer division: 
query I rowsort label-1689
SELECT DISTINCT - col0 DIV col2 + + 42 + + col1 col1 FROM tab2 AS cor0
----
108
118
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1689
SELECT DISTINCT - col0 / col2 + + 42 + + col1 col1 FROM tab2 AS cor0
----
108
118
91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1691
SELECT - MIN( DISTINCT 41 ) FROM tab2 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-1691
SELECT - MIN ( DISTINCT 41 ) FROM tab2 AS cor0
----
-41

query I rowsort
SELECT col1 + - + col2 + col1 FROM tab1
----
-49
-68
26

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

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

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

query I rowsort
SELECT DISTINCT + - 45 AS col0 FROM tab2 AS cor0
----
-45

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT DISTINCT - 97 * + MAX( col0 ) FROM tab0 AS cor0
----
-9409

skipif mysql # not compatible
query I rowsort label-1697
SELECT DISTINCT - 97 * + MAX ( col0 ) FROM tab0 AS cor0
----
-9409

query I rowsort
SELECT DISTINCT 1 * col0 AS col1 FROM tab0 AS cor0
----
15
87
97

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1704
SELECT - col0 FROM tab1 cor0 WHERE NOT - col1 NOT IN ( CAST( + col1 AS SIGNED ), 62, - col1, col1 )
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-1704
SELECT - col0 FROM tab1 cor0 WHERE NOT - col1 NOT IN ( CAST ( + col1 AS INTEGER ), 62, - col1, col1 )
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 33 ) * + col2 col2 FROM tab1 cor0
----
1947
2244
3168

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

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

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

query I rowsort
SELECT - col2 + + col1 * + - 17 AS col2 FROM tab0
----
-116
-1424
-367

query II rowsort
SELECT DISTINCT - - col0 AS col2, 95 + + - col2 - + col2 * - col2 * + col2 - - 59 FROM tab1 AS cor0 WHERE NOT ( NOT - + col1 IS NULL )
----

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

query I rowsort
SELECT ALL - - col1 + - 49 + - col1 - - col2 + - 88 AS col2 FROM tab1 AS cor0
----
-41
-69
-78

query II rowsort
SELECT + col2 * + + col2 AS col0, + 19 + col0 * col1 FROM tab0 AS cor0
----
100
1846
2209
1234
9801
116

query I rowsort
SELECT ALL 26 * col2 AS col0 FROM tab1 cor0 WHERE NULL <> NULL
----

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

query I rowsort
SELECT DISTINCT col1 + + 1 + + ( - col0 ) * + col0 * - - 73 FROM tab2
----
-154416
-298930
-410557

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

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

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

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

query I rowsort
SELECT + + 10 + - col1 AS col0 FROM tab1 AS cor0
----
-37
-4
5

query I rowsort
SELECT - 90 + + col0 FROM tab1 cor0
----
-39
-5
1

query II rowsort
SELECT 6 AS col0, + 12 + + col1 + + 27 FROM tab1 AS cor0
----
6
44
6
53
6
86

query I rowsort
SELECT ALL + - col1 * ( - - 99 ) AS col2 FROM tab2 AS cor0
----
-5049
-6633
-7623

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1722
SELECT - 42 DIV + COUNT( * ) FROM tab0
----
-14

skipif mysql # not compatible
query I rowsort label-1722
SELECT - 42 / + COUNT ( * ) FROM tab0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1723
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1723
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1, tab0 AS cor0
----
9

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1725
SELECT + COUNT( * ) DIV + 46 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1725
SELECT + COUNT ( * ) / + 46 FROM tab0
----
0

query I rowsort
SELECT - 38 AS col2 FROM tab1 WHERE ( NULL IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col0 ) * col1 col2 FROM tab2
----
2346
4928
5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 6 * col1 * - col0, - col0 + - - col2 col0 FROM tab2 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT col1 AS col2, col2 * ( col1 ) AS col1 FROM tab2
----
51
1173
67
3886
77
3080

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1731
SELECT DISTINCT - MAX ( - - 12 ) col0 FROM tab1 AS cor0
----
-12

query I rowsort
SELECT ALL - - 72 AS col1 FROM tab1 AS cor0
----
72
72
72

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

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

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 + + - col1 >= + - 64
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1735
SELECT DISTINCT + SUM( - 94 ) * - - COUNT( + + col1 ) AS col1 FROM tab0
----
-846

skipif mysql # not compatible
query I rowsort label-1735
SELECT DISTINCT + SUM ( - 94 ) * - - COUNT ( + + col1 ) AS col1 FROM tab0
----
-846

query II rowsort
SELECT col2, col0 AS col0 FROM tab1
----
59
85
68
91
96
51

query I rowsort
SELECT ALL col1 + + col1 - + col0 FROM tab2
----
56
59
90

query I rowsort
SELECT - + 68 + col2 / + - 86 FROM tab1 WHERE col2 * col1 > NULL
----

query II rowsort
SELECT - 51 AS col0, + 90 + - col0 + - 15 FROM tab0
----
-51
-12
-51
-22
-51
60

query II rowsort
SELECT col0, 81 * col1 AS col1 FROM tab1
----
51
1134
85
405
91
3807

query I rowsort
SELECT DISTINCT 49 + - - col2 AS col0 FROM tab1
----
108
117
145

query I rowsort
SELECT ALL - col2 * 25 FROM tab2 cor0
----
-1000
-1450
-575

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1743
SELECT - + col0 / + + 96 + + - 39 + - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1743
SELECT - + col0 / + + 96 + + - 39 + - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1744
SELECT + COUNT( * ) DIV COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-1744
SELECT + COUNT ( * ) / COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1745
SELECT COUNT( ALL - + col1 ) FROM tab2 WHERE NULL = ( - col1 - - 68 )
----
0

skipif mysql # not compatible
query I rowsort label-1745
SELECT COUNT ( ALL - + col1 ) FROM tab2 WHERE NULL = ( - col1 - - 68 )
----
0

query I rowsort
SELECT DISTINCT + - ( + - 18 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1747
SELECT + 2 * + + CAST( NULL AS SIGNED ) + 74 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1747
SELECT + 2 * + + CAST ( NULL AS INTEGER ) + 74 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1749
SELECT DISTINCT + SUM( + 35 ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
315

skipif mysql # not compatible
query I rowsort label-1749
SELECT DISTINCT + SUM ( + 35 ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
315

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

query I rowsort
SELECT DISTINCT - col0 + col0 * + ( - ( - col2 ) ) * - 90 FROM tab0 cor0
----
-63465
-78387
-864367

query I rowsort
SELECT + 54 - - col2 FROM tab2 AS cor0 WHERE col0 * - 65 * col0 IS NULL
----

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

query I rowsort
SELECT DISTINCT + + col1 - - + 38 AS col0 FROM tab1 AS cor0
----
43
52
85

onlyif mysql # aggregate syntax: 
query II rowsort label-1755
SELECT + 59 - 81 AS col1, - COUNT( * ) FROM tab2 AS cor0
----
-22
-3

skipif mysql # not compatible
query II rowsort label-1755
SELECT + 59 - 81 AS col1, - COUNT ( * ) FROM tab2 AS cor0
----
-22
-3

query II rowsort
SELECT ALL - 84 * - + 84 AS col0, - col0 * - col0 FROM tab0 AS cor0
----
7056
225
7056
7569
7056
9409

query I rowsort
SELECT DISTINCT col1 * - + col2 AS col0 FROM tab0
----
-210
-3807
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-1758
SELECT ALL col2 DIV - col2 - + + ( - - col0 ) AS col2 FROM tab0
----
-16
-88
-98

skipif mysql # not compatible
query I rowsort label-1758
SELECT ALL col2 / - col2 - + + ( - - col0 ) AS col2 FROM tab0
----
-16
-88
-98

onlyif mysql # DIV for integer division: 
query II rowsort label-1759
SELECT - col1 + + + 8 DIV - + col0, col2 FROM tab2
----
-51
23
-67
58
-77
40

skipif mysql # not compatible
query II rowsort label-1759
SELECT - col1 + + + 8 / - + col0, col2 FROM tab2
----
-51
23
-67
58
-77
40

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1761
SELECT CAST( NULL AS DECIMAL ) / - - 26 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1761
SELECT CAST ( NULL AS REAL ) / - - 26 col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1762
SELECT col2 DIV - 88 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1762
SELECT col2 / - 88 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1763
SELECT MAX( + col2 ) * + 81 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1763
SELECT MAX ( + col2 ) * + 81 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - col1 )
----
NULL

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT DISTINCT MIN( 40 ) FROM tab1 cor0
----
40

skipif mysql # not compatible
query I rowsort label-1767
SELECT DISTINCT MIN ( 40 ) FROM tab1 cor0
----
40

query I rowsort
SELECT + + ( - col0 ) * 37 FROM tab0 cor0
----
-3219
-3589
-555

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

query I rowsort
SELECT DISTINCT col1 * ( 3 ) FROM tab2 AS cor0
----
153
201
231

query I rowsort
SELECT ALL - 10 + + col2 AS col1 FROM tab2 AS cor0
----
13
30
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1772
SELECT DISTINCT + col2 + + + col2 * + CAST( - col0 AS SIGNED ) + + 66 - 25, 17 AS col0 FROM tab2 WHERE NOT NULL = NULL
----

skipif mysql # not compatible
query II rowsort label-1772
SELECT DISTINCT + col2 + + + col2 * + CAST ( - col0 AS INTEGER ) + + 66 - 25, 17 AS col0 FROM tab2 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT DISTINCT - COUNT( * ) + 39 * - - 47 + - 37 AS col1 FROM tab1
----
1793

skipif mysql # not compatible
query I rowsort label-1773
SELECT DISTINCT - COUNT ( * ) + 39 * - - 47 + - 37 AS col1 FROM tab1
----
1793

query I rowsort
SELECT + ( + 60 ) FROM tab2 WHERE - col1 IS NULL
----

query I rowsort
SELECT DISTINCT col0 + - 41 * 18 * 16 FROM tab0
----
-11711
-11721
-11793

query I rowsort
SELECT ALL col1 + - 64 AS col1 FROM tab2
----
-13
13
3

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

query I rowsort
SELECT ALL + - col0 + + 78 FROM tab2 AS cor0
----
14
3
32

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 AS cor0 WHERE NOT - col2 <= col1
----

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

query I rowsort
SELECT - col2 - - + 27 + + - ( - col1 ) FROM tab1
----
-27
-55
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1782
SELECT + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT NULL NOT BETWEEN 33 AND + col2 AND NOT - col1 BETWEEN NULL AND 88
----

skipif mysql # not compatible
query I rowsort label-1782
SELECT + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL NOT BETWEEN 33 AND + col2 AND NOT - col1 BETWEEN NULL AND 88
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - - col1 col1 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT ALL - MAX( + 32 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-32

skipif mysql # not compatible
query I rowsort label-1784
SELECT ALL - MAX ( + 32 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 94 col2 FROM tab1 WHERE - + col1 / 81 IS NOT NULL
----
-94
-94
-94

query I rowsort
SELECT ALL ( 84 ) + 70 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7cf925cdea37533e5028b2ea0c580358

query I rowsort
SELECT ALL - col2 + col1 + - col1 * 81 * + col2 FROM tab2 AS cor0
----
-249443
-314757
-94985

query I rowsort
SELECT col1 + - 67 AS col1 FROM tab1 AS cor0
----
-20
-53
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1789
SELECT + COUNT( * ) + + COUNT( * ) + + MAX( + col2 ) AS col1 FROM tab2 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-1789
SELECT + COUNT ( * ) + + COUNT ( * ) + + MAX ( + col2 ) AS col1 FROM tab2 AS cor0
----
64

query I rowsort
SELECT + 41 + col1 FROM tab1 AS cor0
----
46
55
88

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

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

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

query I rowsort
SELECT ALL - col0 - - ( + col1 ) + 71 + + + 82 FROM tab2 AS cor0
----
145
158
166

onlyif mysql # DIV for integer division: 
query I rowsort label-1794
SELECT DISTINCT - - 79 DIV - col1 FROM tab1 AS cor0
----
-1
-15
-5

skipif mysql # not compatible
query I rowsort label-1794
SELECT DISTINCT - - 79 / - col1 FROM tab1 AS cor0
----
-1
-15
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-1795
SELECT DISTINCT - 27 DIV - ( - col1 ) AS col2 FROM tab1 AS cor0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-1795
SELECT DISTINCT - 27 / - ( - col1 ) AS col2 FROM tab1 AS cor0
----
-1
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1796
SELECT DISTINCT ( + 69 ) - - MAX( DISTINCT col2 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1796
SELECT DISTINCT ( + 69 ) - - MAX ( DISTINCT col2 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT 25 * + 85 AS col0 FROM tab0
----
2125
2125
2125

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

query I rowsort
SELECT ALL 63 * + - ( - 67 ) FROM tab0
----
4221
4221
4221

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1800
SELECT MAX( ALL - 53 ) DIV COUNT( * ) AS col1 FROM tab0
----
-17

skipif mysql # not compatible
query I rowsort label-1800
SELECT MAX ( ALL - 53 ) / COUNT ( * ) AS col1 FROM tab0
----
-17

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1801
SELECT col2 DIV col0 AS col1, col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-1801
SELECT col2 / col0 AS col1, col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
0
NULL
0
NULL
0
NULL

query II rowsort
SELECT DISTINCT + col2, 8 FROM tab2
----
23
8
40
8
58
8

onlyif mysql # DIV for integer division: 
query I rowsort label-1803
SELECT ALL - col1 + + - col0 * col1 DIV - - col2 FROM tab2
----
-153
-153
-200

skipif mysql # not compatible
query I rowsort label-1803
SELECT ALL - col1 + + - col0 * col1 / - - col2 FROM tab2
----
-153
-153
-200

onlyif mysql # DIV for integer division: 
query I rowsort label-1804
SELECT - col2 DIV col1 AS col0 FROM tab0 cor0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-1804
SELECT - col2 / col1 AS col0 FROM tab0 cor0
----
-99
0
0

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

query I rowsort
SELECT ALL + 18 * 7 + + col2 AS col2 FROM tab2 AS cor0 WHERE NOT - col1 BETWEEN ( - col1 ) AND NULL
----

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

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

query II rowsort
SELECT + 1 AS col1, - col2 AS col1 FROM tab1 AS cor0
----
1
-59
1
-68
1
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1809
SELECT COUNT( * ) * - - 86 AS col0 FROM tab2
----
258

skipif mysql # not compatible
query I rowsort label-1809
SELECT COUNT ( * ) * - - 86 AS col0 FROM tab2
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-1810
SELECT ALL + COUNT( * ) FROM tab0 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-1810
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NOT NULL < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1811
SELECT + MAX( + 44 ) AS col1 FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-1811
SELECT + MAX ( + 44 ) AS col1 FROM tab1
----
44

query I rowsort
SELECT - - col1 + + - col0 AS col1 FROM tab2 WHERE - 75 IS NOT NULL
----
-8
13
5

query I rowsort
SELECT DISTINCT - col0 + + - 95 FROM tab0
----
-110
-182
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-1814
SELECT COUNT( * ) * - COUNT( * ) + - 42 + + - MIN( col0 ) FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-1814
SELECT COUNT ( * ) * - COUNT ( * ) + - 42 + + - MIN ( col0 ) FROM tab0
----
-66

query I rowsort
SELECT 0 + - col0 AS col2 FROM tab2 AS cor0
----
-46
-64
-75

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1817
SELECT DISTINCT + CAST( - col0 AS SIGNED ) col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1817
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) col2 FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 > + 42
----

query I rowsort
SELECT 64 * + - col0 FROM tab0
----
-5568
-6208
-960

query II rowsort
SELECT ALL - 85 AS col0, 55 - - - 66 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 885b324d32cddd5c810b3290c172cc97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1821
SELECT DISTINCT - CAST( - col2 AS SIGNED ) + + + col0 + col0 FROM tab1
----
198
229
250

skipif mysql # not compatible
query I rowsort label-1821
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) + + + col0 + col0 FROM tab1
----
198
229
250

onlyif mysql # aggregate syntax: 
query I rowsort label-1822
SELECT ALL + SUM( + - 70 ) FROM tab0 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-1822
SELECT ALL + SUM ( + - 70 ) FROM tab0 AS cor0
----
-210

query I rowsort
SELECT ALL - col2 + + col1 FROM tab2 AS cor0 WHERE - 1 + - + col1 * col2 + + col1 - - 71 * col0 > + + col1
----
28
37
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN - col1 AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query II rowsort
SELECT - 71 AS col0, + ( + col1 ) + ( - + col0 ) AS col1 FROM tab2 AS cor0
----
-71
-8
-71
13
-71
5

onlyif mysql # DIV for integer division: 
query I rowsort label-1827
SELECT DISTINCT - + 8 DIV + 4 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-1827
SELECT DISTINCT - + 8 / + 4 FROM tab0 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1828
SELECT ALL - MIN( ALL + 5 ) FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-1828
SELECT ALL - MIN ( ALL + 5 ) FROM tab2
----
-5

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 12 * + col2 col2, col1 FROM tab2
----
276
51
480
77
696
67

query II rowsort
SELECT ALL 85 AS col0, col1 - - 22 FROM tab1
----
85
27
85
36
85
69

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT - SUM( - 75 ) AS col1 FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-1833
SELECT - SUM ( - 75 ) AS col1 FROM tab2
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-1834
SELECT - COUNT( * ) col0 FROM tab0 WHERE NOT NULL <= col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1834
SELECT - COUNT ( * ) col0 FROM tab0 WHERE NOT NULL <= col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT DISTINCT - MIN( DISTINCT - 21 ) col0 FROM tab2
----
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1835
SELECT DISTINCT - MIN ( DISTINCT - 21 ) col0 FROM tab2
----
21

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1837
SELECT DISTINCT + - MAX( DISTINCT + col1 ) * - COUNT( * ) - - + 39 DIV + 93 FROM tab2 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-1837
SELECT DISTINCT + - MAX ( DISTINCT + col1 ) * - COUNT ( * ) - - + 39 / + 93 FROM tab2 AS cor0
----
231

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1838
SELECT DISTINCT - + CAST( - 72 AS SIGNED ) FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-1838
SELECT DISTINCT - + CAST ( - 72 AS INTEGER ) FROM tab1 AS cor0
----
72

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

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

skipif mysql # not compatible
query I rowsort label-1840
SELECT + MAX ( col1 ) AS col0 FROM tab2 AS cor0
----
77

query II rowsort
SELECT DISTINCT col1 + - col0 AS col0, - col0 AS col1 FROM tab1
----
-37
-51
-44
-91
-80
-85

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

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

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

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

query I rowsort
SELECT + - col1 + + + col1 + + 12 FROM tab1 cor0
----
12
12
12

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

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

query I rowsort
SELECT - - col2 + - + ( 93 ) + + col1 + - - 70 FROM tab1 AS cor0
----
41
87
92

query I rowsort
SELECT DISTINCT - 89 * + col0 - - col1 FROM tab0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT ALL - COUNT( ALL + - col2 ) + - ( + - COUNT( - col0 ) ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1849
SELECT ALL - COUNT ( ALL + - col2 ) + - ( + - COUNT ( - col0 ) ) AS col2 FROM tab0
----
0

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

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

query I rowsort
SELECT DISTINCT + col1 - - + 38 AS col1 FROM tab0 AS cor0
----
119
39
59

query I rowsort
SELECT DISTINCT + col2 * + col1 FROM tab1 AS cor0 WHERE NOT 52 - - col2 - - 59 IS NOT NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1854
SELECT ALL + - ( col1 ) DIV ( + 33 ) FROM tab2 AS cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-1854
SELECT ALL + - ( col1 ) / ( + 33 ) FROM tab2 AS cor0
----
-1
-2
-2

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

query I rowsort
SELECT DISTINCT ( + col0 ) * + + col2 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT + 6 FROM tab2 WHERE NOT - col1 > NULL
----

query I rowsort
SELECT DISTINCT - col0 * - + col0 FROM tab1
----
2601
7225
8281

onlyif mysql # DIV for integer division: 
query I rowsort label-1859
SELECT - col2 DIV + 63 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1859
SELECT - col2 / + 63 FROM tab0
----
-1
0
0

query I rowsort
SELECT DISTINCT 42 * + col2 AS col0 FROM tab0
----
1974
4158
420

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

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

query I rowsort
SELECT ALL col1 * - + col2 + - col1 * + col2 AS col2 FROM tab2
----
-2346
-6160
-7772

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

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

query I rowsort
SELECT 63 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1866
SELECT DISTINCT - COUNT( * ) + 45 FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-1866
SELECT DISTINCT - COUNT ( * ) + 45 FROM tab2 AS cor0
----
42

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1869
SELECT + col0 * 71 DIV + - 85 + ( + 63 ) FROM tab2 AS cor0
----
1
10
25

skipif mysql # not compatible
query I rowsort label-1869
SELECT + col0 * 71 / + - 85 + ( + 63 ) FROM tab2 AS cor0
----
1
10
25

query I rowsort
SELECT DISTINCT - ( + ( 30 ) ) * ( + col0 ) FROM tab2
----
-1380
-1920
-2250

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

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

query I rowsort
SELECT 77 + - + col2 + - + 89 FROM tab1
----
-108
-71
-80

query II rowsort
SELECT + 27 + - col2 * + col0 + - + ( - ( - 47 ) ) + col1, col2 FROM tab0
----
-644
47
-869
10
-9622
99

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

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

query I rowsort
SELECT 85 + + 10 FROM tab2
----
95
95
95

query I rowsort
SELECT DISTINCT + 42 + - 98 AS col2 FROM tab2
----
-56

query I rowsort
SELECT DISTINCT + col2 + + + 12 + - - ( + + col1 ) FROM tab2
----
129
137
86

query I rowsort
SELECT col0 * 36 + 52 AS col0 FROM tab2
----
1708
2356
2752

query I rowsort
SELECT ALL 7 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
7
7
7

query III rowsort
SELECT * FROM tab0 WHERE + col0 BETWEEN - col2 AND + 38 / - col0 AND 25 * + 86 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 AS col1, - 42 * - col0 col2 FROM tab1
----
-14
2142
-47
3822
-5
3570

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 >= - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( - + col1 ) + col2 * - 72 * - - 73 FROM tab0
----
-246951
-520343
-52539

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT COUNT( * ) AS col0 FROM tab0 WHERE NOT - 59 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1887
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE NOT - 59 NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1888
SELECT ALL + CAST( + + col1 AS SIGNED ), + 75 * col2 + + col1 AS col2 FROM tab1
----
14
7214
47
5147
5
4430

skipif mysql # not compatible
query II rowsort label-1888
SELECT ALL + CAST ( + + col1 AS INTEGER ), + 75 * col2 + + col1 AS col2 FROM tab1
----
14
7214
47
5147
5
4430

query I rowsort
SELECT + - 94 + + + 59 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-35
-35
-35

query I rowsort
SELECT - 21 * col1 * + col2 * + 73 AS col0 FROM tab1
----
-2060352
-452235
-4899468

onlyif mysql # aggregate syntax: 
query I rowsort label-1891
SELECT DISTINCT - COUNT( * ) * - COUNT( - col0 ) FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-1891
SELECT DISTINCT - COUNT ( * ) * - COUNT ( - col0 ) FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-1892
SELECT col0, 56 DIV 89 * + ( - col1 ) AS col2 FROM tab2
----
46
0
64
0
75
0

skipif mysql # not compatible
query II rowsort label-1892
SELECT col0, 56 / 89 * + ( - col1 ) AS col2 FROM tab2
----
46
0
64
0
75
0

query I rowsort
SELECT + ( - + col0 ) + + - col0 FROM tab2 cor0
----
-128
-150
-92

query I rowsort
SELECT DISTINCT - ( 32 ) + + col1 FROM tab1 AS cor0
----
-18
-27
15

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

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

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

query I rowsort
SELECT + 60 + + ( - 35 ) + + + 63 FROM tab0 AS cor0
----
88
88
88

query I rowsort
SELECT ALL - 27 * + 80 * + - col1 AS col1 FROM tab1 cor0
----
101520
10800
30240

query I rowsort
SELECT - 86 * 26 AS col1 FROM tab1
----
-2236
-2236
-2236

onlyif mysql # DIV for integer division: 
query I rowsort label-1900
SELECT DISTINCT + col2 DIV + col1 * 49 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1900
SELECT DISTINCT + col2 / + col1 * 49 FROM tab2
----
0

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

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

query II rowsort
SELECT ALL col0, + col2 * 32 FROM tab0 AS cor0
----
15
1504
87
320
97
3168

onlyif mysql # DIV for integer division: 
query I rowsort label-1904
SELECT col2 * col2 DIV - ( + 69 ) AS col1 FROM tab2
----
-23
-48
-7

skipif mysql # not compatible
query I rowsort label-1904
SELECT col2 * col2 / - ( + 69 ) AS col1 FROM tab2
----
-23
-48
-7

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1906
SELECT 61 * + CAST( + col0 AS SIGNED ) AS col2 FROM tab0
----
5307
5917
915

skipif mysql # not compatible
query I rowsort label-1906
SELECT 61 * + CAST ( + col0 AS INTEGER ) AS col2 FROM tab0
----
5307
5917
915

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 50 + + col1 AS col2 FROM tab0
----
131
51
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT DISTINCT + MIN( 2 ) FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-1913
SELECT DISTINCT + MIN ( 2 ) FROM tab2
----
2

query I rowsort
SELECT DISTINCT col0 + 34 AS col1 FROM tab0
----
121
131
49

query II rowsort
SELECT col2, - 10 * - - col0 AS col2 FROM tab0
----
10
-870
47
-150
99
-970

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, + 21 col2 FROM tab1
----
-14
21
-47
21
-5
21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT - 17 + COUNT( * ) * - 10 AS col0 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-1918
SELECT - 17 + COUNT ( * ) * - 10 AS col0 FROM tab1
----
-47

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

skipif mysql # not compatible
query I rowsort label-1919
SELECT COUNT ( * ) - + 11 FROM tab2
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1920
SELECT ALL - col2 AS col0 FROM tab1 WHERE NOT + col1 <> + col1 / + CAST( + ( col0 ) * col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1920
SELECT ALL - col2 AS col0 FROM tab1 WHERE NOT + col1 <> + col1 / + CAST ( + ( col0 ) * col0 AS INTEGER )
----

query I rowsort
SELECT DISTINCT 62 + ( + ( + col2 ) + + 5 ) AS col1 FROM tab1
----
126
135
163

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 + col1 / + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) <> col2 + col1 * 81
----

query I rowsort
SELECT ALL col0 * + 98 AS col1 FROM tab1
----
4998
8330
8918

query I rowsort
SELECT ALL 52 * - col0 FROM tab0
----
-4524
-5044
-780

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE NOT 59 < NULL
----

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

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

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

query I rowsort
SELECT DISTINCT 75 * - col2 FROM tab2
----
-1725
-3000
-4350

query III rowsort
SELECT * FROM tab0 WHERE - 63 IN ( + col2 )
----

query I rowsort
SELECT DISTINCT 17 * col0 FROM tab1 WHERE NOT 88 IS NOT NULL
----

query I rowsort
SELECT - col2 + 79 FROM tab1
----
-17
11
20

query I rowsort
SELECT ALL col1 * - ( + col1 * 31 ) FROM tab0 WHERE NULL IS NULL
----
-13671
-203391
-31

query III rowsort
SELECT * FROM tab1 WHERE NOT 21 NOT IN ( col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1935
SELECT ALL + 95 / MAX( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1935
SELECT ALL + 95 / MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1936
SELECT DISTINCT 70 * - col0 AS col2 FROM tab0 WHERE CAST( - col1 AS SIGNED ) NOT BETWEEN + col2 AND + col0
----
-1050
-6090
-6790

skipif mysql # not compatible
query I rowsort label-1936
SELECT DISTINCT 70 * - col0 AS col2 FROM tab0 WHERE CAST ( - col1 AS INTEGER ) NOT BETWEEN + col2 AND + col0
----
-1050
-6090
-6790

query I rowsort
SELECT ALL col1 * col2 FROM tab1 WHERE ( + col1 ) BETWEEN 28 + col0 AND col0 * 75
----

query I rowsort
SELECT 17 - + 51 FROM tab0
----
-34
-34
-34

query I rowsort
SELECT ALL - col1 + col1 * col2 FROM tab2
----
1122
3003
3819

onlyif mysql # DIV for integer division: 
query I rowsort label-1940
SELECT 23 DIV - 82 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1940
SELECT 23 / - 82 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT ( SUM( - 29 ) ) * + MIN( ALL col0 * + 86 ) FROM tab1
----
-381582

skipif mysql # not compatible
query I rowsort label-1941
SELECT ( SUM ( - 29 ) ) * + MIN ( ALL col0 * + 86 ) FROM tab1
----
-381582

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

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

query I rowsort
SELECT ALL + col1 + + 81 FROM tab2
----
132
148
158

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

query I rowsort
SELECT + 79 * col1 AS col0 FROM tab1
----
1106
3713
395

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT ALL COUNT( ALL + 42 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1948
SELECT ALL COUNT ( ALL + 42 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1949
SELECT MIN( 55 ) + - SUM( + col2 + + 43 ) FROM tab1 AS cor0 WHERE NOT ( col1 ) = ( col2 )
----
-297

skipif mysql # not compatible
query I rowsort label-1949
SELECT MIN ( 55 ) + - SUM ( + col2 + + 43 ) FROM tab1 AS cor0 WHERE NOT ( col1 ) = ( col2 )
----
-297

query I rowsort
SELECT + 75 FROM tab0 cor0 WHERE NOT - 32 BETWEEN NULL AND NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1952
SELECT ALL - col0 DIV ( - 15 * + col2 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1952
SELECT ALL - col0 / ( - 15 * + col2 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0
0
0

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

query I rowsort
SELECT DISTINCT - + col1 * + 77 AS col0 FROM tab1 AS cor0
----
-1078
-3619
-385

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

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

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

query I rowsort
SELECT DISTINCT 50 AS col0 FROM tab2 AS cor0 WHERE 7 + col1 <= col2 * col0
----
50

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 cor0 WHERE col0 > NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT ALL + 20 * + + COUNT( * ) AS col1 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-1960
SELECT ALL + 20 * + + COUNT ( * ) AS col1 FROM tab1
----
60

query I rowsort
SELECT 83 FROM tab2 WHERE NOT col1 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT ALL SUM( - - 16 ) + - 42 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-1963
SELECT ALL SUM ( - - 16 ) + - 42 FROM tab2
----
6

query I rowsort
SELECT 45 FROM tab2 WHERE ( col1 / - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT - COUNT( * ) * - SUM( DISTINCT + col1 ) AS col1 FROM tab1 WHERE 83 / 89 + - 8 IS NOT NULL
----
198

skipif mysql # not compatible
query I rowsort label-1965
SELECT - COUNT ( * ) * - SUM ( DISTINCT + col1 ) AS col1 FROM tab1 WHERE 83 / 89 + - 8 IS NOT NULL
----
198

query I rowsort
SELECT 99 + 24 FROM tab0
----
123
123
123

query I rowsort
SELECT - + 95 * col0 FROM tab0 cor0
----
-1425
-8265
-9215

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT DISTINCT ( - 34 ) * COUNT( * ) FROM tab1 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-1968
SELECT DISTINCT ( - 34 ) * COUNT ( * ) FROM tab1 AS cor0
----
-102

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + 95 * col1 NOT BETWEEN ( col2 * + col2 ) AND 99
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT DISTINCT - + col0 - - col2 * 60 FROM tab1 WHERE NOT NULL < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1972
SELECT 28 * - CAST( + MIN( DISTINCT col1 ) AS SIGNED ) - 96 AS col1 FROM tab2 WHERE + + CAST( - col2 AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1972
SELECT 28 * - CAST ( + MIN ( DISTINCT col1 ) AS INTEGER ) - 96 AS col1 FROM tab2 WHERE + + CAST ( - col2 AS INTEGER ) IS NULL
----
NULL

query I rowsort
SELECT - 46 + - 32 FROM tab0
----
-78
-78
-78

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

query I rowsort
SELECT - 98 + - + col1 FROM tab0 AS cor0
----
-119
-179
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT ALL - + 96 + + + MAX( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
-106

skipif mysql # not compatible
query I rowsort label-1976
SELECT ALL - + 96 + + + MAX ( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
-106

query I rowsort
SELECT DISTINCT + + 98 - - 27 AS col0 FROM tab0 AS cor0
----
125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 + - - 22 col1 FROM tab1 AS cor0
----
61
61
61

query I rowsort
SELECT ALL - + col0 - col0 AS col1 FROM tab2 AS cor0
----
-128
-150
-92

query I rowsort
SELECT + ( + col0 ) + + 10 FROM tab1 AS cor0
----
101
61
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1981
SELECT MIN( + 19 ) + - CAST( NULL AS SIGNED ) * 24 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1981
SELECT MIN ( + 19 ) + - CAST ( NULL AS INTEGER ) * 24 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + col2 = 93 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 15 - - col1 FROM tab2 AS cor0
----
66
82
92

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

query I rowsort
SELECT - col1 + - 44 AS col1 FROM tab2 AS cor0 WHERE - col2 * + col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( ( 73 ) ) NOT BETWEEN - col2 * 60 AND + 92
----

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

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

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

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

query I rowsort
SELECT ALL 20 * + col2 - + - 50 + 0 FROM tab0 cor0
----
2030
250
990

query I rowsort
SELECT 90 * + col2 FROM tab0
----
4230
8910
900

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

skipif mysql # not compatible
query I rowsort label-1991
SELECT DISTINCT - 53 * - col0 + CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab0 WHERE NOT - col1 = + col0
----
NULL

query I rowsort
SELECT col0 * + col0 * - + col2 AS col2 FROM tab2
----
-163840
-326250
-48668

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT DISTINCT 65 * COUNT( * ) AS col0 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-1993
SELECT DISTINCT 65 * COUNT ( * ) AS col0 FROM tab2
----
195

query I rowsort
SELECT ALL + 86 * - col1 FROM tab2
----
-4386
-5762
-6622

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 * 81 ) BETWEEN NULL AND - col0 + - 95
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT - 10 * - 9 NOT IN ( + + col0 )
----

query I rowsort
SELECT ALL + 28 * + ( + - 89 ) FROM tab2 AS cor0
----
-2492
-2492
-2492

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

skipif mysql # not compatible
query I rowsort label-1998
SELECT - COUNT ( - - col1 ) * - + COUNT ( * ) AS col0 FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1999
SELECT - COUNT( * ) AS col0 FROM tab1 WHERE NOT + 20 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-1999
SELECT - COUNT ( * ) AS col0 FROM tab1 WHERE NOT + 20 < NULL
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2001
SELECT 0, col2 * 74 * CAST( + col1 AS SIGNED ) AS col0 FROM tab2
----
0
227920
0
287564
0
86802

skipif mysql # not compatible
query II rowsort label-2001
SELECT 0, col2 * 74 * CAST ( + col1 AS INTEGER ) AS col0 FROM tab2
----
0
227920
0
287564
0
86802

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2003
SELECT DISTINCT + 77 DIV - MIN( DISTINCT 35 ) col0, 50 AS col0 FROM tab2 AS cor0
----
-2
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2003
SELECT DISTINCT + 77 / - MIN ( DISTINCT 35 ) col0, 50 AS col0 FROM tab2 AS cor0
----
-2
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2004
SELECT - - COUNT( * ) * + - 9 + - + 42 * + 51 FROM tab0 AS cor0
----
-2169

skipif mysql # not compatible
query I rowsort label-2004
SELECT - - COUNT ( * ) * + - 9 + - + 42 * + 51 FROM tab0 AS cor0
----
-2169

query I rowsort
SELECT DISTINCT + 37 * - + col0 FROM tab0 cor0
----
-3219
-3589
-555

onlyif mysql # DIV for integer division: 
query I rowsort label-2006
SELECT ALL - + 61 DIV - - 58 + - 9 * ( + + 76 ) DIV + col1 FROM tab1 AS cor0
----
-137
-15
-49

skipif mysql # not compatible
query I rowsort label-2006
SELECT ALL - + 61 / - - 58 + - 9 * ( + + 76 ) / + col1 FROM tab1 AS cor0
----
-137
-15
-49

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2008
SELECT DISTINCT + COUNT( * ) DIV + + 65 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2008
SELECT DISTINCT + COUNT ( * ) / + + 65 AS col2 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> + col0 * + - 46
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2012
SELECT DISTINCT - col2, col1 * col1 + - CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-10
431
-47
6514
-99
-98

skipif mysql # not compatible
query II rowsort label-2012
SELECT DISTINCT - col2, col1 * col1 + - CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-10
431
-47
6514
-99
-98

query I rowsort
SELECT DISTINCT 5 AS col2 FROM tab2 cor0
----
5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( - 13 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2016
SELECT + col1, CAST( - 72 AS SIGNED ) FROM tab2
----
51
-72
67
-72
77
-72

skipif mysql # not compatible
query II rowsort label-2016
SELECT + col1, CAST ( - 72 AS INTEGER ) FROM tab2
----
51
-72
67
-72
77
-72

query I rowsort
SELECT ALL 67 * + col1 + 40 AS col0 FROM tab1
----
3189
375
978

query II rowsort
SELECT + 5 AS col1, 87 AS col1 FROM tab0
----
5
87
5
87
5
87

query I rowsort
SELECT DISTINCT AVG ( + col0 ) + 2 AS col0 FROM tab0 WHERE ( col2 * + ( - + col2 ) ) = NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2020
SELECT ALL + 96, col1 * - - 37 + 21 + - + CAST( - col0 AS SIGNED ) + col1 * ( - col0 ) * col1 AS col0 FROM tab0
----
96
-37482
96
-95382
96
58

skipif mysql # not compatible
query II rowsort label-2020
SELECT ALL + 96, col1 * - - 37 + 21 + - + CAST ( - col0 AS INTEGER ) + col1 * ( - col0 ) * col1 AS col0 FROM tab0
----
96
-37482
96
-95382
96
58

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

query I rowsort
SELECT ALL col1 + + col2 + + + col0 AS col0 FROM tab2
----
120
181
200

onlyif mysql # aggregate syntax: 
query I rowsort label-2023
SELECT + 42 * - COUNT( * ) + - - COUNT( * ) FROM tab1
----
-123

skipif mysql # not compatible
query I rowsort label-2023
SELECT + 42 * - COUNT ( * ) + - - COUNT ( * ) FROM tab1
----
-123

query I rowsort
SELECT DISTINCT 56 + + + col1 FROM tab1
----
103
61
70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2025
SELECT DISTINCT - col0 AS col1 FROM tab0 WHERE NOT + + CAST( NULL AS DECIMAL ) * 48 = ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-2025
SELECT DISTINCT - col0 AS col1 FROM tab0 WHERE NOT + + CAST ( NULL AS REAL ) * 48 = ( + col1 )
----

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

skipif mysql # not compatible
query I rowsort label-2026
SELECT col0 + 68 - - 41 * CAST ( NULL AS INTEGER ) + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col2 - - 77 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + + ( + 50 ) * + 6 FROM tab0 AS cor0 WHERE - col2 - - - ( - 48 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 NOT IN ( - + ( + 82 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT + 8 * - 83 * + ( - COUNT( * ) ) FROM tab2
----
1992

skipif mysql # not compatible
query I rowsort label-2030
SELECT + 8 * - 83 * + ( - COUNT ( * ) ) FROM tab2
----
1992

query I rowsort
SELECT ALL col0 * + col0 + + col2 AS col2 FROM tab1
----
2697
7284
8349

query II rowsort
SELECT ( + + col2 ), - 53 AS col0 FROM tab2
----
23
-53
40
-53
58
-53

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col2 ) IN ( col0, 87 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT DISTINCT - COUNT( * ) * + 77 FROM tab1 AS cor0 WHERE - 71 NOT BETWEEN NULL AND - 57
----
0

skipif mysql # not compatible
query I rowsort label-2037
SELECT DISTINCT - COUNT ( * ) * + 77 FROM tab1 AS cor0 WHERE - 71 NOT BETWEEN NULL AND - 57
----
0

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

query I rowsort
SELECT DISTINCT + 16 * - - col1 * col2 - - col2 FROM tab0 AS cor0
----
1683
3370
60959

query I rowsort
SELECT + + 5 * + col1 + - 98 FROM tab1 AS cor0
----
-28
-73
137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2041
SELECT col2 * - col0 * + + CAST( + 91 AS SIGNED ) + + col0 AS col0 FROM tab1 AS cor0
----
-445485
-456280
-563017

skipif mysql # not compatible
query I rowsort label-2041
SELECT col2 * - col0 * + + CAST ( + 91 AS INTEGER ) + + col0 AS col0 FROM tab1 AS cor0
----
-445485
-456280
-563017

query II rowsort
SELECT ALL col1 AS col0, ( + col2 ) * - 83 + + col1 FROM tab2
----
51
-1858
67
-4747
77
-3243

query II rowsort
SELECT DISTINCT - col0 AS col0, col2 * col1 AS col0 FROM tab0
----
-15
3807
-87
210
-97
99

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2045
SELECT CAST( NULL AS SIGNED ) * + ( + col0 ), 84 + + col1 AS col2 FROM tab2
----
NULL
135
NULL
151
NULL
161

skipif mysql # not compatible
query II rowsort label-2045
SELECT CAST ( NULL AS INTEGER ) * + ( + col0 ), 84 + + col1 AS col2 FROM tab2
----
NULL
135
NULL
151
NULL
161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2046
SELECT DISTINCT MAX( DISTINCT + CAST( NULL AS SIGNED ) ) col0 FROM tab2 WHERE NOT + col1 IS NOT NULL OR NOT + col2 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2046
SELECT DISTINCT MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) col0 FROM tab2 WHERE NOT + col1 IS NOT NULL OR NOT + col2 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + col0 * + ( - + 65 ) AS col0 FROM tab1
----
-3315
-5525
-5915

query I rowsort
SELECT ALL 14 * - col2 FROM tab0
----
-1386
-140
-658

onlyif mysql # aggregate syntax: 
query I rowsort label-2049
SELECT ALL - MAX( col2 ) AS col2 FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2049
SELECT ALL - MAX ( col2 ) AS col2 FROM tab1 cor0
----
-96

query I rowsort
SELECT ALL - 60 * + - col0 FROM tab1 AS cor0
----
3060
5100
5460

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

skipif mysql # not compatible
query I rowsort label-2051
SELECT DISTINCT + - MIN ( ALL - 52 ) FROM tab1 AS cor0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2052
SELECT + - ( COUNT( * ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2052
SELECT + - ( COUNT ( * ) ) FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col2 col1, - 30 * - col0 FROM tab2 AS cor0
----
-23
1380
-40
1920
-58
2250

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT + + MIN( - col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-2054
SELECT + + MIN ( - col1 ) FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2055
SELECT + - COUNT( * ) FROM tab1 WHERE NOT - + 41 * - 13 * - + 69 + + - col1 > col2
----
-3

skipif mysql # not compatible
query I rowsort label-2055
SELECT + - COUNT ( * ) FROM tab1 WHERE NOT - + 41 * - 13 * - + 69 + + - col1 > col2
----
-3

query I rowsort
SELECT 47 AS col0 FROM tab2 WHERE NOT NULL <> ( 6 + - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2057
SELECT ALL - + 90 DIV + col0 AS col0 FROM tab0 AS cor0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-2057
SELECT ALL - + 90 / + col0 AS col0 FROM tab0 AS cor0
----
-1
-6
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > NULL OR ( NULL ) NOT IN ( col2 + + 11, col1 * - 98 )
----

query I rowsort
SELECT DISTINCT - + 47 FROM tab2 AS cor0
----
-47

query I rowsort
SELECT ( + col0 ) * - ( - col1 ) + - - 71 FROM tab1 cor0
----
4348
496
785

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT + + 31 + - - COUNT( * ) FROM tab2 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-2061
SELECT + + 31 + - - COUNT ( * ) FROM tab2 AS cor0
----
34

query I rowsort
SELECT ALL 66 * - - col1 AS col2 FROM tab2
----
3366
4422
5082

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT + COUNT( * ) + - 34 FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-2063
SELECT + COUNT ( * ) + - 34 FROM tab0
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2064
SELECT + + 7 FROM tab2 WHERE + col1 * CAST( NULL AS SIGNED ) + 16 * col1 < NULL
----

skipif mysql # not compatible
query I rowsort label-2064
SELECT + + 7 FROM tab2 WHERE + col1 * CAST ( NULL AS INTEGER ) + 16 * col1 < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - - 71 <= col0
----
75
67
58

query III rowsort
SELECT * FROM tab1 WHERE ( + + ( 66 ) ) IN ( + col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL >= - 35
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT + MAX( + 14 ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2068
SELECT + MAX ( + 14 ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2069
SELECT - + MIN( DISTINCT + - col2 ) * + MAX( + - col2 ) FROM tab1 AS cor0
----
-5664

skipif mysql # not compatible
query I rowsort label-2069
SELECT - + MIN ( DISTINCT + - col2 ) * + MAX ( + - col2 ) FROM tab1 AS cor0
----
-5664

query I rowsort
SELECT ALL - col0 - - + col1 AS col0 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT ALL + 47 + - - col1 FROM tab0 cor0
----
128
48
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT DISTINCT + MIN( DISTINCT - + col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-2072
SELECT DISTINCT + MIN ( DISTINCT - + col1 ) FROM tab2 AS cor0
----
-77

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL >= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2074
SELECT DISTINCT 29 + + COUNT( * ) FROM tab0 WHERE NOT - + col0 * + + 4 - - + col0 * + - 76 = 16 * + col0
----
32

skipif mysql # not compatible
query I rowsort label-2074
SELECT DISTINCT 29 + + COUNT ( * ) FROM tab0 WHERE NOT - + col0 * + + 4 - - + col0 * + - 76 = 16 * + col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2075
SELECT DISTINCT MIN( ALL col2 ) + COUNT( * ) FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-2075
SELECT DISTINCT MIN ( ALL col2 ) + COUNT ( * ) FROM tab1
----
62

query I rowsort
SELECT DISTINCT - col0 * + col2 + + col1 AS col2 FROM tab0 AS cor0
----
-624
-849
-9602

query II rowsort
SELECT + col2, ( + 72 ) AS col1 FROM tab1 cor0
----
59
72
68
72
96
72

query II rowsort
SELECT + + col0, + col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

query II rowsort
SELECT + 15 AS col1, - 43 AS col1 FROM tab1 AS cor0
----
15
-43
15
-43
15
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT MAX( 83 ) FROM tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-2080
SELECT MAX ( 83 ) FROM tab2 AS cor0
----
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 * 87 col1 FROM tab2
----
5133
5133
5133

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT 19 * + 71 + + 14 = NULL )
----

query II rowsort
SELECT - col1 * 62 AS col0, - 63 AS col1 FROM tab0
----
-1302
-63
-5022
-63
-62
-63

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT ( NULL ) < NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2085
SELECT - col1 * - CAST( + col0 AS SIGNED ) + - + col1 * CAST( - col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
2268
7776
98

skipif mysql # not compatible
query I rowsort label-2085
SELECT - col1 * - CAST ( + col0 AS INTEGER ) + - + col1 * CAST ( - col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
2268
7776
98

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT DISTINCT - COUNT( ALL - 41 ) col1 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2087
SELECT DISTINCT - COUNT ( ALL - 41 ) col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2088
SELECT ALL + 32, + COUNT( * ) AS col2 FROM tab2
----
32
3

skipif mysql # not compatible
query II rowsort label-2088
SELECT ALL + 32, + COUNT ( * ) AS col2 FROM tab2
----
32
3

query I rowsort
SELECT + 23 + - - col0 + + col0 * + 92 FROM tab0
----
1418
8114
9044

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2090
SELECT - col2 AS col2, + col0 * + CAST( 95 AS SIGNED ) + - col1 + - 24 * - - col1 * - - col2 FROM tab1
----
-59
990
-68
-68106
-96
-27425

skipif mysql # not compatible
query II rowsort label-2090
SELECT - col2 AS col2, + col0 * + CAST ( 95 AS INTEGER ) + - col1 + - 24 * - - col1 * - - col2 FROM tab1
----
-59
990
-68
-68106
-96
-27425

onlyif mysql # aggregate syntax: 
query I rowsort label-2091
SELECT + + MIN( - 4 ) AS col1 FROM tab2 WHERE + 82 * + + ( - col0 ) - + ( - ( + + col0 ) ) + col0 * + - 99 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2091
SELECT + + MIN ( - 4 ) AS col1 FROM tab2 WHERE + 82 * + + ( - col0 ) - + ( - ( + + col0 ) ) + col0 * + - 99 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2092
SELECT 54 AS col2, COUNT( * ) AS col2 FROM tab0
----
54
3

skipif mysql # not compatible
query II rowsort label-2092
SELECT 54 AS col2, COUNT ( * ) AS col2 FROM tab0
----
54
3

query I rowsort
SELECT + col1 * + col1 * + - 30 FROM tab1 AS cor0
----
-5880
-66270
-750

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 65 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT DISTINCT MAX( + col1 ) AS col1 FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-2095
SELECT DISTINCT MAX ( + col1 ) AS col1 FROM tab2 cor0
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 77 col2 FROM tab2 cor0
----
77
77
77

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 99 IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 27 + - + col2 * + 23 IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 - 36 AS col0 FROM tab0
----
-117
-37
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT DISTINCT COUNT( * ) * + COUNT( * ) * 64 col0 FROM tab0
----
576

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2100
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) * 64 col0 FROM tab0
----
576

query I rowsort
SELECT + col2 - 81 AS col2 FROM tab1
----
-13
-22
15

query III rowsort
SELECT * FROM tab1 WHERE + 57 + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2103
SELECT ( - + 58 ) + + CAST( NULL AS SIGNED ) + 58 * ( - col1 ) + + - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2103
SELECT ( - + 58 ) + + CAST ( NULL AS INTEGER ) + 58 * ( - col1 ) + + - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 30 + + 5 FROM tab0
----
-25
-25
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + 38 col1 FROM tab2
----
1938
2546
2926

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2106
SELECT + 94 * - - CAST( 80 AS SIGNED ) + + col0 AS col1 FROM tab1
----
7571
7605
7611

skipif mysql # not compatible
query I rowsort label-2106
SELECT + 94 * - - CAST ( 80 AS INTEGER ) + + col0 AS col1 FROM tab1
----
7571
7605
7611

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT ALL 49 + + + ( - + ( + + MIN( DISTINCT + col1 ) ) ) + + 77 AS col2 FROM tab1
----
121

skipif mysql # not compatible
query I rowsort label-2107
SELECT ALL 49 + + + ( - + ( + + MIN ( DISTINCT + col1 ) ) ) + + 77 AS col2 FROM tab1
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2108
SELECT + 56 * 38 + - + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2108
SELECT + 56 * 38 + - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2109
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) - + col0 = NULL
----

skipif mysql # not compatible
query III rowsort label-2109
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) - + col0 = NULL
----

query II rowsort
SELECT + col2 * - 51, col0 AS col1 FROM tab1 AS cor0
----
-3009
85
-3468
91
-4896
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 11 AS col1, + 14 * + col0 * + ( + - 13 ) * - 43 col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-11
359996
-11
500864
-11
586950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2112
SELECT + - CAST( - + COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2112
SELECT + - CAST ( - + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT 2 * col0 + + 6 / + 37 IS NULL
----
51
85
91

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab2 AS cor0 WHERE NULL <= col2
----

query II rowsort
SELECT ALL col0, ( 74 ) FROM tab1 AS cor0
----
51
74
85
74
91
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2116
SELECT DISTINCT - + SUM( - col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-2116
SELECT DISTINCT - + SUM ( - col1 ) FROM tab0 AS cor0
----
103

query I rowsort
SELECT + col0 * - col1 * + col2 FROM tab1
----
-25075
-290836
-68544

query I rowsort
SELECT + col0 * - 20 AS col0 FROM tab1
----
-1020
-1700
-1820

onlyif mysql # DIV for integer division: 
query I rowsort label-2119
SELECT DISTINCT - col1 DIV - 15 AS col0 FROM tab2
----
3
4
5

skipif mysql # not compatible
query I rowsort label-2119
SELECT DISTINCT - col1 / - 15 AS col0 FROM tab2
----
3
4
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 > + - 23
----
15
81
47

query III rowsort
SELECT ALL col2, col2, - col1 FROM tab0
----
9 values hashing to 566949e9266f7ac727c99ab7d4b96a6f

query II rowsort
SELECT + + col0 AS col2, - col2 AS col0 FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-2123
SELECT + 91 DIV + + col2 AS col1 FROM tab0 cor0
----
0
1
9

skipif mysql # not compatible
query I rowsort label-2123
SELECT + 91 / + + col2 AS col1 FROM tab0 cor0
----
0
1
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, + 15 AS col2 FROM tab0 AS cor0
----
-15
15
-87
15
-97
15

query I rowsort
SELECT ALL - 89 * col0 + - - col2 FROM tab0 AS cor0
----
-1288
-7733
-8534

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * + - col0 + - - 82, col2 col2 FROM tab0 AS cor0
----
-1133
47
-15
99
-1745
10

query I rowsort
SELECT + 67 FROM tab2 AS cor0 WHERE - col2 * 41 BETWEEN NULL AND - - 96 * - + 47 * - 9
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2128
SELECT ALL + ( 29 ) AS col1, - SUM( - col1 ) FROM tab2 AS cor0
----
29
195

skipif mysql # not compatible
query II rowsort label-2128
SELECT ALL + ( 29 ) AS col1, - SUM ( - col1 ) FROM tab2 AS cor0
----
29
195

onlyif mysql # aggregate syntax: 
query I rowsort label-2129
SELECT DISTINCT - - 38 * COUNT( * ) * + COUNT( * ) + - 3 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
333

skipif mysql # not compatible
query I rowsort label-2129
SELECT DISTINCT - - 38 * COUNT ( * ) * + COUNT ( * ) + - 3 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
333

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT DISTINCT + COUNT( ALL + - col1 ) * COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2130
SELECT DISTINCT + COUNT ( ALL + - col1 ) * COUNT ( * ) FROM tab1 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2131
SELECT + col0 + + ( - 57 ) DIV - ( + 15 ) + - col2 FROM tab2 cor0
----
20
26
27

skipif mysql # not compatible
query I rowsort label-2131
SELECT + col0 + + ( - 57 ) / - ( + 15 ) + - col2 FROM tab2 cor0
----
20
26
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT - - COUNT( * ) FROM tab1 cor0 WHERE ( col0 ) > col2
----
2

skipif mysql # not compatible
query I rowsort label-2132
SELECT - - COUNT ( * ) FROM tab1 cor0 WHERE ( col0 ) > col2
----
2

query I rowsort
SELECT 66 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - - ( + col2 ) + + 83 AS col0 FROM tab1 AS cor0
----
142
151
179

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2135
SELECT DISTINCT col1 * col1 + - CAST( - ( - + col0 ) AS SIGNED ) FROM tab1
----
-60
145
2118

skipif mysql # not compatible
query I rowsort label-2135
SELECT DISTINCT col1 * col1 + - CAST ( - ( - + col0 ) AS INTEGER ) FROM tab1
----
-60
145
2118

query III rowsort
SELECT * FROM tab2 WHERE col1 - + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col1 AS col0, + 83 + + col0 * + col1 AS col1 FROM tab2
----
-51
2429
-67
5108
-77
5011

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2138
SELECT CAST( + - 12 AS SIGNED ) * + - COUNT( * ) FROM tab1 WHERE ( NULL IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2138
SELECT CAST ( + - 12 AS INTEGER ) * + - COUNT ( * ) FROM tab1 WHERE ( NULL IS NOT NULL )
----
0

query I rowsort
SELECT DISTINCT - + col2 + col0 AS col1 FROM tab1 AS cor0
----
-45
23
26

onlyif mysql # aggregate syntax: 
query II rowsort label-2140
SELECT - 53 - - 30 * - + 10, - MAX( col0 ) AS col2 FROM tab2 AS cor0
----
-353
-75

skipif mysql # not compatible
query II rowsort label-2140
SELECT - 53 - - 30 * - + 10, - MAX ( col0 ) AS col2 FROM tab2 AS cor0
----
-353
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 col0 FROM tab2 AS cor0 WHERE + col2 <= + 94 + - col1
----
23

query I rowsort
SELECT + ( - col2 ) - - col1 AS col0 FROM tab1 AS cor0
----
-21
-54
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-2143
SELECT + - 87 DIV 56 col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2143
SELECT + - 87 / 56 col2 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2144
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( - 55 AS SIGNED ) >= - col0
----
15
81
47

skipif mysql # not compatible
query III rowsort label-2144
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( - 55 AS INTEGER ) >= - col0
----
15
81
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2145
SELECT DISTINCT - 68 DIV + 98 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2145
SELECT DISTINCT - 68 / + 98 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - 41 AS col0 FROM tab0 AS cor0 WHERE NOT col0 + + + col1 + - - col1 + + + 48 * + 29 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2147
SELECT DISTINCT - COUNT( * ) AS col0, 32 AS col2 FROM tab0
----
-3
32

skipif mysql # not compatible
query II rowsort label-2147
SELECT DISTINCT - COUNT ( * ) AS col0, 32 AS col2 FROM tab0
----
-3
32

query I rowsort
SELECT DISTINCT + AVG ( ALL + col1 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2149
SELECT COUNT( * ) * - 57 AS col0, COUNT( * ) * + SUM( - 12 ) AS col2 FROM tab2 WHERE NOT ( + col2 ) IS NOT NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2149
SELECT COUNT ( * ) * - 57 AS col0, COUNT ( * ) * + SUM ( - 12 ) AS col2 FROM tab2 WHERE NOT ( + col2 ) IS NOT NULL
----
0
NULL

query I rowsort
SELECT + ( - 48 ) AS col1 FROM tab1
----
-48
-48
-48

query I rowsort
SELECT col1 * - col1 * + 29 FROM tab0
----
-12789
-190269
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2152
SELECT + COUNT( * ) + + 58 AS col2 FROM tab0 cor0
----
61

skipif mysql # not compatible
query I rowsort label-2152
SELECT + COUNT ( * ) + + 58 AS col2 FROM tab0 cor0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT ALL + COUNT( * ) + - 52 FROM tab0
----
-49

skipif mysql # not compatible
query I rowsort label-2153
SELECT ALL + COUNT ( * ) + - 52 FROM tab0
----
-49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 < + col1
----

query I rowsort
SELECT DISTINCT - - col0 + - + col1 AS col1 FROM tab1 cor0
----
37
44
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 * - col2 + - ( - + col2 ) col1, + col2 AS col2 FROM tab1 AS cor0
----
-4800
96
-4956
59
-6120
68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2157
SELECT + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2157
SELECT + CAST ( NULL AS REAL ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col0 * + col0 - - + 68 AS col0 FROM tab2 AS cor0
----
2184
4164
5693

query I rowsort
SELECT + col1 + - col1 FROM tab1 WHERE NOT + col2 + + + col0 <> NULL AND NOT col2 IS NULL
----

query II rowsort
SELECT - col2 * + col2 + 97, + col1 AS col2 FROM tab2
----
-1503
77
-3267
67
-432
51

query I rowsort
SELECT col2 + + col0 * + col2 * + 84 FROM tab1
----
411360
421319
519860

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2162
SELECT CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2162
SELECT CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + + col2 * + 29 + col1 AS col2 FROM tab1
----
1801
2110
2849

onlyif mysql # DIV for integer division: 
query I rowsort label-2164
SELECT ALL - col1 DIV col1 + + col2 + - col1 AS col2 FROM tab0
----
-12
-35
97

skipif mysql # not compatible
query I rowsort label-2164
SELECT ALL - col1 / col1 + + col2 + - col1 AS col2 FROM tab0
----
-12
-35
97

query I rowsort
SELECT ALL col0 - - 26 AS col2 FROM tab2
----
101
72
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 34 * - 41 - + 39 col1 FROM tab1 AS cor0
----
-1433
-1433
-1433

query I rowsort
SELECT ALL + - col2 * 81 AS col2 FROM tab0 AS cor0
----
-3807
-8019
-810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - + 72 col1 FROM tab1
----
-3672
-6120
-6552

query II rowsort
SELECT ALL col1 AS col0, - 14 FROM tab1
----
14
-14
47
-14
5
-14

query I rowsort
SELECT DISTINCT - - col1 AS col1 FROM tab2 WHERE NOT ( + 96 + + col1 + + col2 + - 31 * 62 ) > col1 * + 79 - 56 * - col0 * - - col0 * ( + col1 ) * - col2 - - + 23 + col0 * col2 - ( col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2171
SELECT ALL col0 DIV col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2171
SELECT ALL col0 / col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2172
SELECT + + COUNT( * ) DIV + - 7 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2172
SELECT + + COUNT ( * ) / + - 7 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2173
SELECT DISTINCT col0 DIV - 9 AS col0 FROM tab2 cor0
----
-5
-7
-8

skipif mysql # not compatible
query I rowsort label-2173
SELECT DISTINCT col0 / - 9 AS col0 FROM tab2 cor0
----
-5
-7
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2174
SELECT - MIN( ALL + 7 ) FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-2174
SELECT - MIN ( ALL + 7 ) FROM tab0 AS cor0
----
-7

query I rowsort
SELECT ALL 65 * col2 FROM tab0 AS cor0
----
3055
6435
650

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT - 13 * ( + 5 ) + + - 48 * + - COUNT( * ) FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-2176
SELECT - 13 * ( + 5 ) + + - 48 * + - COUNT ( * ) FROM tab1
----
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + - ( + 56 ) + - col1 col2 FROM tab1
----
3299
3761
5362

query I rowsort
SELECT DISTINCT + 32 AS col0 FROM tab0, tab1 AS cor0
----
32

query I rowsort
SELECT DISTINCT + - col2 FROM tab2 AS cor0 WHERE ( NULL ) >= - col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2180
SELECT - 36 DIV - col1, + col1 FROM tab0 AS cor0
----
0
81
1
21
36
1

skipif mysql # not compatible
query II rowsort label-2180
SELECT - 36 / - col1, + col1 FROM tab0 AS cor0
----
0
81
1
21
36
1

onlyif mysql # DIV for integer division: 
query II rowsort label-2181
SELECT DISTINCT - 85 * - 51 + + + 5 * ( + col1 ) + + ( - - col1 ) DIV col0 AS col2, 9 FROM tab1
----
4360
9
4405
9
4570
9

skipif mysql # not compatible
query II rowsort label-2181
SELECT DISTINCT - 85 * - 51 + + + 5 * ( + col1 ) + + ( - - col1 ) / col0 AS col2, 9 FROM tab1
----
4360
9
4405
9
4570
9

query I rowsort
SELECT ALL - ( + + 39 ) * col0 + col1 * + col0 FROM tab0
----
-1566
-3686
630

query I rowsort
SELECT ALL + 46 + + 46 FROM tab0 cor0
----
92
92
92

query I rowsort
SELECT ALL - col2 - - - 95 FROM tab2 AS cor0
----
-118
-135
-153

onlyif mysql # DIV for integer division: 
query I rowsort label-2185
SELECT DISTINCT + 88 DIV ( - - 1 ) AS col1 FROM tab2 AS cor0 WHERE ( + 83 IS NOT NULL )
----
88

skipif mysql # not compatible
query I rowsort label-2185
SELECT DISTINCT + 88 / ( - - 1 ) AS col1 FROM tab2 AS cor0 WHERE ( + 83 IS NOT NULL )
----
88

query I rowsort
SELECT - col0 + + + 84 * + col0 FROM tab1 AS cor0
----
4233
7055
7553

query III rowsort
SELECT * FROM tab2 cor0 WHERE - ( - col2 ) / - 91 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 44 + + col0 AS col1 FROM tab0 AS cor0
----
-29
43
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2189
SELECT ALL COUNT( * ) - 27 FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-2189
SELECT ALL COUNT ( * ) - 27 FROM tab0 AS cor0
----
-24

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col0 BETWEEN - col0 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 * + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT DISTINCT MAX( ALL + col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-2192
SELECT DISTINCT MAX ( ALL + col1 ) FROM tab1
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col0, - ( + col2 ) + + + col2 AS col2 FROM tab0
----
15
0
87
0
97
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col2, + 29 + - col0 + + col0 FROM tab1
----
14
29
47
29
5
29

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2195
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + ( + + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-2195
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + ( + + CAST ( NULL AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT - COUNT( - - 79 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2196
SELECT - COUNT ( - - 79 ) AS col1 FROM tab2 AS cor0
----
-3

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 57 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT + MAX( - 65 ) - 19 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-84

skipif mysql # not compatible
query I rowsort label-2198
SELECT + MAX ( - 65 ) - 19 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-84

query II rowsort
SELECT DISTINCT 64 AS col1, 0 FROM tab1, tab0 AS cor0
----
64
0

query I rowsort
SELECT - 38 * - + col2 FROM tab2
----
1520
2204
874

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT DISTINCT 66 * COUNT( * ) FROM tab0
----
198

skipif mysql # not compatible
query I rowsort label-2201
SELECT DISTINCT 66 * COUNT ( * ) FROM tab0
----
198

onlyif mysql # aggregate syntax: 
query II rowsort label-2202
SELECT ALL - + 92 * - - COUNT( * ) AS col2, + MIN( ALL - col0 ) FROM tab1 AS cor0
----
-276
-91

skipif mysql # not compatible
query II rowsort label-2202
SELECT ALL - + 92 * - - COUNT ( * ) AS col2, + MIN ( ALL - col0 ) FROM tab1 AS cor0
----
-276
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-2203
SELECT col0 DIV - 35 - + 48 * col2 AS col0 FROM tab0 AS cor0
----
-2256
-4754
-482

skipif mysql # not compatible
query I rowsort label-2203
SELECT col0 / - 35 - + 48 * col2 AS col0 FROM tab0 AS cor0
----
-2256
-4754
-482

query I rowsort
SELECT ALL - 5 FROM tab1 cor0 WHERE NOT 74 * + col1 * col2 IS NULL
----
-5
-5
-5

onlyif mysql # DIV for integer division: 
query II rowsort label-2205
SELECT - col0 DIV - - col2 AS col1, + col0 col0 FROM tab0 cor0
----
-8
87
0
15
0
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2205
SELECT - col0 / - - col2 AS col1, + col0 col0 FROM tab0 cor0
----
-8
87
0
15
0
97

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( col2 ) / + 13 + + - col0 + - ( - ( - ( - col2 ) ) ) - - col1 BETWEEN col1 + - 18 AND NULL
----
21

query I rowsort
SELECT DISTINCT 1 * - col1 * - col2 + - col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 NOT IN ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 + ( - ( + 61 ) ) FROM tab2 WHERE NOT - col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2210
SELECT COUNT( DISTINCT + + 44 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2210
SELECT COUNT ( DISTINCT + + 44 ) AS col0 FROM tab2
----
1

query I rowsort
SELECT ALL col1 * + + col2 FROM tab2
----
1173
3080
3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2212
SELECT DISTINCT + ( + col2 ) + col1 + - CAST( + col2 AS SIGNED ) - + ( + - col0 ) AS col1 FROM tab2
----
141
142
97

skipif mysql # not compatible
query I rowsort label-2212
SELECT DISTINCT + ( + col2 ) + col1 + - CAST ( + col2 AS INTEGER ) - + ( + - col0 ) AS col1 FROM tab2
----
141
142
97

query I rowsort
SELECT DISTINCT col1 * - - 60 AS col2 FROM tab2
----
3060
4020
4620

query II rowsort
SELECT DISTINCT - 53, ( + + col2 ) FROM tab0
----
-53
10
-53
47
-53
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT - MAX( DISTINCT + col1 ) + + COUNT( DISTINCT col0 ) * + 27 AS col1 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-2215
SELECT - MAX ( DISTINCT + col1 ) + + COUNT ( DISTINCT col0 ) * + 27 AS col1 FROM tab2
----
4

query I rowsort
SELECT col2 * 90 + col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
4277
9009
910

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT - COUNT( * ) AS col1 FROM tab2 cor0 WHERE ( col0 IS NOT NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-2217
SELECT - COUNT ( * ) AS col1 FROM tab2 cor0 WHERE ( col0 IS NOT NULL )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT DISTINCT - + COUNT( ALL col1 ) col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2218
SELECT DISTINCT - + COUNT ( ALL col1 ) col2 FROM tab2 cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - - col0 * - + 4 col0 FROM tab0
----
388
4860
7308

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT DISTINCT - 41 * SUM( + + col0 ) FROM tab1
----
-9307

skipif mysql # not compatible
query I rowsort label-2220
SELECT DISTINCT - 41 * SUM ( + + col0 ) FROM tab1
----
-9307

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 24 * - col1 * col0 col2 FROM tab1
----
-10200
-102648
-17136

query I rowsort
SELECT - 64 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT col0 * 61 + - ( col2 ) AS col1, col2 AS col0 FROM tab1
----
3015
96
5126
59
5483
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 col2 FROM tab0
----
13
13
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ( - col2 ) AS col0, col1 + + ( - - 62 ) AS col0, + + col1 * col1 - + col2 col2 FROM tab0 AS cor0
----
9 values hashing to 7cc9c0585e427277873bf963a4d353a9

onlyif mysql # DIV for integer division: 
query I rowsort label-2226
SELECT ALL + col0 DIV col1 + + 92 AS col1 FROM tab0 cor0
----
189
92
96

skipif mysql # not compatible
query I rowsort label-2226
SELECT ALL + col0 / col1 + + 92 AS col1 FROM tab0 cor0
----
189
92
96

query I rowsort
SELECT ALL col0 * - 60 - + - 98 AS col1 FROM tab1 cor0
----
-2962
-5002
-5362

onlyif mysql # DIV for integer division: 
query I rowsort label-2228
SELECT - col0 * - col1 - - + col1 DIV - + col0 + + 69 DIV - col1 FROM tab0 AS cor0
----
1210
1824
28

skipif mysql # not compatible
query I rowsort label-2228
SELECT - col0 * - col1 - - + col1 / - + col0 + + 69 / - col1 FROM tab0 AS cor0
----
1210
1824
28

query I rowsort
SELECT ALL - 46 - - 74 FROM tab1 AS cor0
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT DISTINCT - + 27 - + + COUNT( * ) FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-2230
SELECT DISTINCT - + 27 - + + COUNT ( * ) FROM tab1 AS cor0
----
-30

query I rowsort
SELECT - + col2 + 97 AS col1 FROM tab2 AS cor0
----
39
57
74

query I rowsort
SELECT ALL + col0 - + ( - col2 ) AS col0 FROM tab0 AS cor0
----
196
62
97

query II rowsort
SELECT - 90 + - + 0 * - col2 AS col1, 11 FROM tab0
----
-90
11
-90
11
-90
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2234
SELECT col0 + + col2 * + + 90 * - 99 + + CAST( - col0 AS SIGNED ) FROM tab2
----
-204930
-356400
-516780

skipif mysql # not compatible
query I rowsort label-2234
SELECT col0 + + col2 * + + 90 * - 99 + + CAST ( - col0 AS INTEGER ) FROM tab2
----
-204930
-356400
-516780

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT + MIN( + col1 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2235
SELECT + MIN ( + col1 ) AS col1 FROM tab0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2236
SELECT + 91 DIV - + MIN( + + col1 ) FROM tab0
----
-91

skipif mysql # not compatible
query I rowsort label-2236
SELECT + 91 / - + MIN ( + + col1 ) FROM tab0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2237
SELECT DISTINCT - COUNT( ALL + + col2 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2237
SELECT DISTINCT - COUNT ( ALL + + col2 ) FROM tab2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2238
SELECT COUNT( ALL - CAST( NULL AS SIGNED ) ) col0 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2238
SELECT COUNT ( ALL - CAST ( NULL AS INTEGER ) ) col0 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2239
SELECT ALL COUNT( * ) AS col0, 5 * - ( + CAST( NULL AS SIGNED ) ) FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-2239
SELECT ALL COUNT ( * ) AS col0, 5 * - ( + CAST ( NULL AS INTEGER ) ) FROM tab2
----
3
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2240
SELECT DISTINCT - COUNT( ALL - CAST( + col2 AS SIGNED ) ) col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2240
SELECT DISTINCT - COUNT ( ALL - CAST ( + col2 AS INTEGER ) ) col1 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 46 AS col1, col0 col2 FROM tab2 AS cor0
----
46
46
46
64
46
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2242
SELECT CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2242
SELECT CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT DISTINCT + col0 AS col1, + ( - col0 ) AS col0 FROM tab2
----
46
-46
64
-64
75
-75

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT ALL - 93 * + COUNT( * ) + + COUNT( * ) AS col0 FROM tab0
----
-276

skipif mysql # not compatible
query I rowsort label-2245
SELECT ALL - 93 * + COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab0
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT DISTINCT + - MAX( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-2246
SELECT DISTINCT + - MAX ( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT - 37 * - - col0 FROM tab1 AS cor0
----
-1887
-3145
-3367

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2248
SELECT DISTINCT - col0, ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-2248
SELECT DISTINCT - col0, ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

query I rowsort
SELECT + 54 FROM tab0 AS cor0 WHERE NOT ( NULL IS NULL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 11 < 40
----

query I rowsort
SELECT DISTINCT + col1 * - + 89 FROM tab2 AS cor0
----
-4539
-5963
-6853

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col2 * + col1 / + - col2 + - col0 + + 59 BETWEEN NULL AND col1
----

query I rowsort
SELECT + col0 + - 64 FROM tab1
----
-13
21
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT - + MAX( ALL - + 45 ) / - 78 FROM tab2 WHERE + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2254
SELECT - + MAX ( ALL - + 45 ) / - 78 FROM tab2 WHERE + col1 IS NULL
----
NULL

query I rowsort
SELECT ALL - col0 * - col2 + - - 60 AS col2 FROM tab2
----
1118
2620
4410

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT + SUM( + - col0 ) AS col1 FROM tab2 WHERE - - 90 IS NOT NULL
----
-185

skipif mysql # not compatible
query I rowsort label-2256
SELECT + SUM ( + - col0 ) AS col1 FROM tab2 WHERE - - 90 IS NOT NULL
----
-185

query I rowsort
SELECT + col2 AS col2 FROM tab2 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2258
SELECT DISTINCT + CAST( + col1 AS SIGNED ) * 9 * - 96 * 4 FROM tab2 AS cor0
----
-176256
-231552
-266112

skipif mysql # not compatible
query I rowsort label-2258
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) * 9 * - 96 * 4 FROM tab2 AS cor0
----
-176256
-231552
-266112

onlyif mysql # DIV for integer division: 
query I rowsort label-2259
SELECT ALL - col0 + - ( - col2 ) + + col2 + 31 DIV col2 AS col2 FROM tab2 AS cor0
----
1
16
41

skipif mysql # not compatible
query I rowsort label-2259
SELECT ALL - col0 + - ( - col2 ) + + col2 + 31 / col2 AS col2 FROM tab2 AS cor0
----
1
16
41

onlyif mysql # DIV for integer division: 
query I rowsort label-2260
SELECT 11 DIV - + col2 + + ( + col2 ) AS col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-2260
SELECT 11 / - + col2 + + ( + col2 ) AS col2 FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= 81
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - + + col2 + - + col1 col2 FROM tab0 AS cor0
----
-175
-199
-41

query I rowsort
SELECT ALL + - col1 AS col2 FROM tab0 WHERE NOT NULL > 36 + + col1
----

query I rowsort
SELECT 61 + col1 + col0 * 48 FROM tab2 AS cor0
----
2320
3210
3728

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT - COUNT( * ) + - 17 FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-2265
SELECT - COUNT ( * ) + - 17 FROM tab2 AS cor0
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2266
SELECT * FROM tab1 cor0 WHERE CAST( NULL AS SIGNED ) + col0 > col2
----

skipif mysql # not compatible
query III rowsort label-2266
SELECT * FROM tab1 cor0 WHERE CAST ( NULL AS INTEGER ) + col0 > col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2267
SELECT DISTINCT 19 * - 96 + - CAST( NULL AS SIGNED ) * - col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2267
SELECT DISTINCT 19 * - 96 + - CAST ( NULL AS INTEGER ) * - col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2268
SELECT DISTINCT - col0 AS col1 FROM tab2 AS cor0 WHERE - CAST( col0 AS SIGNED ) - + 43 >= NULL
----

skipif mysql # not compatible
query I rowsort label-2268
SELECT DISTINCT - col0 AS col1 FROM tab2 AS cor0 WHERE - CAST ( col0 AS INTEGER ) - + 43 >= NULL
----

query I rowsort
SELECT ALL col2 - + - 48 AS col0 FROM tab1 WHERE col1 * - col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2270
SELECT col0 * - 79 FROM tab0 WHERE NOT ( - CAST( + - col0 AS SIGNED ) ) IS NULL
----
-1185
-6873
-7663

skipif mysql # not compatible
query I rowsort label-2270
SELECT col0 * - 79 FROM tab0 WHERE NOT ( - CAST ( + - col0 AS INTEGER ) ) IS NULL
----
-1185
-6873
-7663

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2271
SELECT - COUNT( * ) DIV - COUNT( + ( + col0 ) ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2271
SELECT - COUNT ( * ) / - COUNT ( + ( + col0 ) ) FROM tab1
----
1

query I rowsort
SELECT - ( - 91 ) * col1 FROM tab2
----
4641
6097
7007

onlyif mysql # DIV for integer division: 
query I rowsort label-2273
SELECT 13 * - col2 DIV + col2 FROM tab0
----
-13
-13
-13

skipif mysql # not compatible
query I rowsort label-2273
SELECT 13 * - col2 / + col2 FROM tab0
----
-13
-13
-13

query I rowsort
SELECT - 67 * - + col2 FROM tab2 AS cor0
----
1541
2680
3886

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2275
SELECT ALL 90 AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col2 * - - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-2275
SELECT ALL 90 AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col2 * - - CAST ( NULL AS REAL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 + + 36 + - + col1 IS NULL
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) <> NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL = 86
----

query II rowsort
SELECT DISTINCT + - 29, - col1 AS col0 FROM tab0 AS cor0
----
-29
-1
-29
-21
-29
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT ALL + + MAX( + 79 ) FROM tab2 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-2280
SELECT ALL + + MAX ( + 79 ) FROM tab2 AS cor0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2281
SELECT - COUNT( + 2 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2281
SELECT - COUNT ( + 2 ) FROM tab1
----
-3

query III rowsort
SELECT * FROM tab1 WHERE ( NOT col2 / + col2 * col1 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT DISTINCT 6 + + COUNT( * ) FROM tab2 WHERE NOT + col2 + - 47 NOT BETWEEN NULL AND + 47
----
6

skipif mysql # not compatible
query I rowsort label-2283
SELECT DISTINCT 6 + + COUNT ( * ) FROM tab2 WHERE NOT + col2 + - 47 NOT BETWEEN NULL AND + 47
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2284
SELECT - CAST( NULL AS SIGNED ) * col2 / - col2 + 30 / + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2284
SELECT - CAST ( NULL AS INTEGER ) * col2 / - col2 + 30 / + col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + - col2 + - - col2 AS col2 FROM tab1
----
14
47
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2286
SELECT ( - col1 ) + - + col2 + - CAST( NULL AS DECIMAL ) * - col0 col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2286
SELECT ( - col1 ) + - + col2 + - CAST ( NULL AS REAL ) * - col0 col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2287
SELECT - col1 + + + ( col2 ) + + CAST( NULL AS SIGNED ) * col1 - - col2 * + + col2 + + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2287
SELECT - col1 + + + ( col2 ) + + CAST ( NULL AS INTEGER ) * col1 - - col2 * + + col2 + + col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 30 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT - - 23 + 89 AS col1 FROM tab0 cor0 WHERE ( + col2 ) NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT + + col1 - + + 92 FROM tab2 AS cor0
----
-15
-25
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2291
SELECT + CAST( + ( + col0 ) AS SIGNED ) FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2291
SELECT + CAST ( + ( + col0 ) AS INTEGER ) FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2292
SELECT DISTINCT + COUNT( * ) + + 71 FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-2292
SELECT DISTINCT + COUNT ( * ) + + 71 FROM tab1
----
74

query I rowsort
SELECT ALL 46 FROM tab0 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2294
SELECT ALL - CAST( NULL AS DECIMAL ) * + 13 AS col2, + col1 * - col0 AS col1 FROM tab2 AS cor0
----
NULL
-2346
NULL
-4928
NULL
-5025

skipif mysql # not compatible
query II rowsort label-2294
SELECT ALL - CAST ( NULL AS REAL ) * + 13 AS col2, + col1 * - col0 AS col1 FROM tab2 AS cor0
----
NULL
-2346
NULL
-4928
NULL
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2295
SELECT ALL - CAST( NULL AS SIGNED ) * + ( 25 ) AS col2, col0 + + - 12 AS col0 FROM tab1 cor0
----
NULL
39
NULL
73
NULL
79

skipif mysql # not compatible
query II rowsort label-2295
SELECT ALL - CAST ( NULL AS INTEGER ) * + ( 25 ) AS col2, col0 + + - 12 AS col0 FROM tab1 cor0
----
NULL
39
NULL
73
NULL
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT ALL + - MIN( DISTINCT - ( + ( - + col1 ) ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2296
SELECT ALL + - MIN ( DISTINCT - ( + ( - + col1 ) ) ) FROM tab0 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 70 <> 52
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 17 * 10 * - col2 + - 42 AS col2 FROM tab0 AS cor0
----
1658
16788
7948

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL NOT BETWEEN - 70 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2300
SELECT DISTINCT - col2 * + ( CAST( + col1 AS SIGNED ) ) FROM tab2
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-2300
SELECT DISTINCT - col2 * + ( CAST ( + col1 AS INTEGER ) ) FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT col0 FROM tab0 WHERE NOT ( + 47 ) NOT IN ( + 8, + col0, + - col0, - col1, 90 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + - 12 * + + ( 77 ) FROM tab0 cor0
----
-924
-924
-924

query II rowsort
SELECT + 59 * + 35 AS col2, 47 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + 61 - - - col0 col1 FROM tab2 AS cor0
----
61
61
61

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 19 BETWEEN col0 AND - col0 + - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 / + col1 FROM tab2 AS cor0 WHERE NULL <= - col2 + - 96
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2308
SELECT + - ( col1 ) + - + 66 + 43 + CAST( NULL AS SIGNED ) + + 2 * - - col0 / + - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2308
SELECT + - ( col1 ) + - + 66 + 43 + CAST ( NULL AS INTEGER ) + + 2 * - - col0 / + - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 82 col1 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL - 7 + + col2 + col1 FROM tab1 cor0
----
103
108
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 73 + col0 col2, col2 AS col2 FROM tab2 AS cor0
----
119
23
137
40
148
58

query I rowsort
SELECT + + 52 + + col1 * + 25 AS col2 FROM tab1 AS cor0
----
1227
177
402

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT + 78 + - + COUNT( * ) AS col0 FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-2313
SELECT + 78 + - + COUNT ( * ) AS col0 FROM tab2 cor0
----
75

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NULL <> - 95
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2315
SELECT DISTINCT + - 31 * + COUNT( * ) * + - MIN( DISTINCT + CAST( + col2 AS SIGNED ) ) - - + MAX( + - ( + + 4 ) ) col0 FROM tab2 AS cor0
----
2135

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2315
SELECT DISTINCT + - 31 * + COUNT ( * ) * + - MIN ( DISTINCT + CAST ( + col2 AS INTEGER ) ) - - + MAX ( + - ( + + 4 ) ) col0 FROM tab2 AS cor0
----
2135

query I rowsort
SELECT col1 + + 52 + col2 AS col2 FROM tab2 AS cor0
----
126
169
177

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
15
87
97

query I rowsort
SELECT DISTINCT col0 + - - 66 * - col0 FROM tab2
----
-2990
-4160
-4875

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 89 BETWEEN col1 + - + 81 AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2320
SELECT - 56 - col2 - col2 + col1 * col0 * - + CAST( NULL AS SIGNED ) + 97 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2320
SELECT - 56 - col2 - col2 + col1 * col0 * - + CAST ( NULL AS INTEGER ) + 97 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2321
SELECT - col2 - - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2321
SELECT - col2 - - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2322
SELECT - CAST( NULL AS SIGNED ) * + col1 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2322
SELECT - CAST ( NULL AS INTEGER ) * + col1 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - col1 * ( + + col1 ) col0 FROM tab1 AS cor0
----
-2277
-292
-84

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT NULL <> col0 - col0 + - col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 BETWEEN NULL AND - col2 * col1 * - col1 + - + col1
----

query I rowsort
SELECT DISTINCT - 64 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-64

query I rowsort
SELECT DISTINCT - col0 * + - ( + + 74 ) * - 24 FROM tab0 AS cor0
----
-154512
-172272
-26640

query I rowsort
SELECT ( - 14 ) AS col0 FROM tab2 AS cor0
----
-14
-14
-14

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 / col0 - - - 67 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT + + ( + - COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2330
SELECT + + ( + - COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT - col2, + col0 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT DISTINCT + COUNT( col2 ) * + COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2332
SELECT DISTINCT + COUNT ( col2 ) * + COUNT ( * ) FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-2333
SELECT ALL - - COUNT( * ), + 75 AS col0 FROM tab1 AS cor0
----
3
75

skipif mysql # not compatible
query II rowsort label-2333
SELECT ALL - - COUNT ( * ), + 75 AS col0 FROM tab1 AS cor0
----
3
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT DISTINCT + MAX( ALL 74 ) AS col2 FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-2334
SELECT DISTINCT + MAX ( ALL 74 ) AS col2 FROM tab1 AS cor0
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2335
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * - 81 * - ( - col2 ) * - col1 - + 51 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2335
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - 81 * - ( - col2 ) * - col1 - + 51 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 45 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT MAX( ALL - - col1 ) AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2337
SELECT MAX ( ALL - - col1 ) AS col1 FROM tab0 AS cor0
----
81

query I rowsort
SELECT DISTINCT 97 * - 18 * - 11 FROM tab2, tab2 AS cor0
----
19206

onlyif mysql # DIV for integer division: 
query II rowsort label-2339
SELECT ALL col1 * 39, col0 DIV col0 AS col2 FROM tab2
----
1989
1
2613
1
3003
1

skipif mysql # not compatible
query II rowsort label-2339
SELECT ALL col1 * 39, col0 / col0 AS col2 FROM tab2
----
1989
1
2613
1
3003
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT + 14 * + MIN( + col0 ) AS col0 FROM tab0 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-2340
SELECT + 14 * + MIN ( + col0 ) AS col0 FROM tab0 AS cor0
----
210

query I rowsort
SELECT + col1 * - ( + - col1 ) AS col2 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # DIV for integer division: 
query II rowsort label-2342
SELECT ALL - 40 DIV 70 AS col1, col1 AS col2 FROM tab0 AS cor0
----
0
1
0
21
0
81

skipif mysql # not compatible
query II rowsort label-2342
SELECT ALL - 40 / 70 AS col1, col1 AS col2 FROM tab0 AS cor0
----
0
1
0
21
0
81

query I rowsort
SELECT DISTINCT - - 4 AS col2 FROM tab2 AS cor0
----
4

query I rowsort
SELECT + col0 + + - col2 FROM tab2
----
17
23
24

query II rowsort
SELECT col2, - col0 * - col2 AS col0 FROM tab1
----
59
5015
68
6188
96
4896

query I rowsort
SELECT DISTINCT + col1 * col0 + + - col0 * col1 + - - 2 FROM tab0 AS cor0
----
2

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND - 87
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2348
SELECT ALL col1 DIV - - 44 + - + col2 - - + col2 * - + 28 + - - col1 AS col0 FROM tab0 AS cor0
----
-1281
-269
-2870

skipif mysql # not compatible
query I rowsort label-2348
SELECT ALL col1 / - - 44 + - + col2 - - + col2 * - + 28 + - - col1 AS col0 FROM tab0 AS cor0
----
-1281
-269
-2870

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2349
SELECT ALL 50 / + ( CAST( NULL AS SIGNED ) ) / - col2 * + - col0 AS col2 FROM tab0 AS cor0 WHERE NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-2349
SELECT ALL 50 / + ( CAST ( NULL AS INTEGER ) ) / - col2 * + - col0 AS col2 FROM tab0 AS cor0 WHERE NULL >= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 82 + - - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT ALL - MAX( ALL + - col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2351
SELECT ALL - MAX ( ALL + - col0 ) FROM tab0 AS cor0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 71 col2 FROM tab2 AS cor0
----
-3621
-4757
-5467

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2353
SELECT ALL - 36 AS col2, + 63 DIV - - COUNT( * ) AS col1 FROM tab0 cor0
----
-36
21

skipif mysql # not compatible
query II rowsort label-2353
SELECT ALL - 36 AS col2, + 63 / - - COUNT ( * ) AS col1 FROM tab0 cor0
----
-36
21

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( - - col0, 40, - col2 * - + col0 )
----

query II rowsort
SELECT + col0 + + col1 AS col1, col0 FROM tab2
----
141
64
142
75
97
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2356
SELECT DISTINCT - col1 * + + CAST( col1 AS SIGNED ) * - 68 col2 FROM tab1 WHERE NOT + col0 <= - ( - col1 ) + + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2356
SELECT DISTINCT - col1 * + + CAST ( col1 AS INTEGER ) * - 68 col2 FROM tab1 WHERE NOT + col0 <= - ( - col1 ) + + - CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2357
SELECT DISTINCT + col0 DIV - col0 + 42 AS col2 FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-2357
SELECT DISTINCT + col0 / - col0 + 42 AS col2 FROM tab1
----
41

query I rowsort
SELECT col0 + - - ( - col0 ) FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE + col0 > + ( + col2 )
----
87
21
10

query I rowsort
SELECT DISTINCT + col0 + ( - 81 ) AS col0 FROM tab0
----
-66
16
6

query I rowsort
SELECT - 99 + + ( col2 ) AS col0 FROM tab0
----
-52
-89
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT 86 + + + COUNT( * ) + + COUNT( * ) AS col2 FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-2362
SELECT 86 + + + COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab1
----
92

query I rowsort
SELECT ALL - ( + col1 ) + - col2 FROM tab2
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2364
SELECT - 65 + COUNT( * ) FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-2364
SELECT - 65 + COUNT ( * ) FROM tab1
----
-62

query I rowsort
SELECT col0 + + - ( - 83 ) FROM tab0
----
170
180
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2366
SELECT - COUNT( * ) * 75 AS col1 FROM tab2 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2366
SELECT - COUNT ( * ) * 75 AS col1 FROM tab2 WHERE col2 IS NULL
----
0

query I rowsort
SELECT DISTINCT - col0 - + + col1 FROM tab2 AS cor0
----
-141
-142
-97

query I rowsort
SELECT col1 * - col0 * + + 26 AS col2 FROM tab1
----
-11050
-111202
-18564

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT - col1 >= NULL )
----

query I rowsort
SELECT DISTINCT - col2 * - 58 FROM tab0
----
2726
5742
580

query I rowsort
SELECT ALL 66 * col1 * col2 * + 86 FROM tab2 AS cor0
----
17482080
22056936
6657948

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 AS col0, + col2 + ( - + col1 ) + + + col0 col2 FROM tab0 AS cor0
----
-1
195
-21
76
-81
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2373
SELECT ALL + COUNT( - 27 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2373
SELECT ALL + COUNT ( - 27 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT + ( - COUNT( DISTINCT - ( col0 ) ) ) col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2374
SELECT + ( - COUNT ( DISTINCT - ( col0 ) ) ) col0 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT - + col2 AS col2, col1 * + col2 AS col2 FROM tab2 AS cor0
----
-23
1173
-40
3080
-58
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-2376
SELECT - MIN( + - col2 ) AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-2376
SELECT - MIN ( + - col2 ) AS col0 FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT + SUM( - + col2 ) AS col0 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-2377
SELECT + SUM ( - + col2 ) AS col0 FROM tab0
----
-156

query II rowsort
SELECT col0, + 85 AS col0 FROM tab1
----
51
85
85
85
91
85

query II rowsort
SELECT ALL col0, - col1 * 71 - - 83 AS col0 FROM tab2 AS cor0
----
46
-3538
64
-5384
75
-4674

query I rowsort
SELECT + 82 * - 87 FROM tab2 cor0
----
-7134
-7134
-7134

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2381
SELECT * FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) <= + col1
----

skipif mysql # not compatible
query III rowsort label-2381
SELECT * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) <= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2382
SELECT + MIN( DISTINCT - - 44 ) FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-2382
SELECT + MIN ( DISTINCT - - 44 ) FROM tab0 AS cor0
----
44

query IIIIII rowsort
SELECT * FROM tab2 cor0 JOIN tab1 AS cor1 ON NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2384
SELECT ALL - col1 * CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2384
SELECT ALL - col1 * CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT + 27 + COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
36

skipif mysql # not compatible
query I rowsort label-2385
SELECT + 27 + COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
36

query I rowsort
SELECT DISTINCT + col0 + - 10 FROM tab0
----
5
77
87

query II rowsort
SELECT DISTINCT + col2 + col1, col0 FROM tab1 AS cor0
----
110
51
115
91
64
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2388
SELECT + col0 + - CAST( 88 AS SIGNED ) FROM tab2 AS cor0
----
-13
-24
-42

skipif mysql # not compatible
query I rowsort label-2388
SELECT + col0 + - CAST ( 88 AS INTEGER ) FROM tab2 AS cor0
----
-13
-24
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT ALL - COUNT( * ) - 15 FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-2389
SELECT ALL - COUNT ( * ) - 15 FROM tab0 AS cor0
----
-18

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 / + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 98 + - col1 col0 FROM tab0 AS cor0
----
-119
-179
-99

query I rowsort
SELECT ALL 48 * 42 FROM tab2 AS cor0
----
2016
2016
2016

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT DISTINCT - + COUNT( * ) - - - COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2393
SELECT DISTINCT - + COUNT ( * ) - - - COUNT ( * ) FROM tab2 AS cor0
----
-6

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 10 * ( col1 ) > + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 40 + 63 FROM tab1 AS cor0
----
103
103
103

query II rowsort
SELECT DISTINCT + ( - col2 ) * + - 22 AS col2, 7 AS col1 FROM tab1 AS cor0
----
1298
7
1496
7
2112
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT DISTINCT SUM( + + col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-2397
SELECT DISTINCT SUM ( + + col0 ) FROM tab0 AS cor0
----
199

query I rowsort
SELECT col0 * - 68 * + col2 FROM tab0
----
-47940
-59160
-653004

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2399
SELECT + col2 - - col2 * - col2 * col0 + + ( - CAST( - ( - - col1 ) AS SIGNED ) ) FROM tab2
----
-102283
-24260
-252175

skipif mysql # not compatible
query I rowsort label-2399
SELECT + col2 - - col2 * - col2 * col0 + + ( - CAST ( - ( - - col1 ) AS INTEGER ) ) FROM tab2
----
-102283
-24260
-252175

query I rowsort
SELECT + + 96 * + 24 * - col1 - + col0 - - 13 FROM tab1 AS cor0
----
-108366
-11592
-32294

query II rowsort
SELECT + + col2 AS col2, - col0 FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2402
SELECT ALL + MIN( ALL - ( + 79 ) ) col2 FROM tab1 AS cor0
----
-79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2402
SELECT ALL + MIN ( ALL - ( + 79 ) ) col2 FROM tab1 AS cor0
----
-79

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL >= col0 / - col1 * - - col1 + - - col2
----

query I rowsort
SELECT + 12 * + col0 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col0 * + col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2406
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2406
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
3

query I rowsort
SELECT 42 * col0 + 13 * col2 FROM tab2
----
2231
3208
3904

query I rowsort
SELECT ALL + 6 - col2 FROM tab0
----
-4
-41
-93

query III rowsort
SELECT ALL * FROM tab0 WHERE - 79 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2410
SELECT ALL COUNT( - col1 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2410
SELECT ALL COUNT ( - col1 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT DISTINCT - col1 + - 39 FROM tab2
----
-106
-116
-90

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN ( 12 ) AND ( col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 85 >= + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 / - ( - 41 ) + + col2 NOT BETWEEN + col1 AND 31 + + 68
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2415
SELECT DISTINCT 87 FROM tab1 WHERE NOT ( NULL ) <> col2 * - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-2415
SELECT DISTINCT 87 FROM tab1 WHERE NOT ( NULL ) <> col2 * - CAST ( NULL AS REAL )
----

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE 86 NOT BETWEEN - 14 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT ALL + MAX( + 25 ) AS col2 FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-2417
SELECT ALL + MAX ( + 25 ) AS col2 FROM tab1
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2418
SELECT * FROM tab0 WHERE - CAST( + col1 AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-2418
SELECT * FROM tab0 WHERE - CAST ( + col1 AS INTEGER ) BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2419
SELECT CAST( + col0 AS SIGNED ) FROM tab0 WHERE NOT NULL > ( NULL )
----

skipif mysql # not compatible
query I rowsort label-2419
SELECT CAST ( + col0 AS INTEGER ) FROM tab0 WHERE NOT NULL > ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - 44 * col0 AS col0 FROM tab2
----
-2024
-2816
-3300

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT MAX( DISTINCT 81 ) AS col1 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-2422
SELECT MAX ( DISTINCT 81 ) AS col1 FROM tab1
----
81

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 94 / col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( col1 ) FROM tab2 AS cor0 WHERE ( - 78 + col0 ) <= ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN col0 AND - 14
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2426
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col1 / - col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2426
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col1 / - col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT DISTINCT + + 35 * COUNT( * ) - 91 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-2427
SELECT DISTINCT + + 35 * COUNT ( * ) - 91 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-168

query I rowsort
SELECT DISTINCT 7 - col1 * + col0 AS col1 FROM tab1 cor0
----
-418
-4270
-707

query I rowsort
SELECT - col0 / + 2 AS col1 FROM tab2 AS cor0 WHERE - col1 / 6 + - col0 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2430
SELECT ALL + 22 DIV + col2 AS col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2430
SELECT ALL + 22 / + col2 AS col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT + + MIN( ALL - 88 ) - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-2431
SELECT + + MIN ( ALL - 88 ) - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-2432
SELECT ALL + 52 DIV + 3 FROM tab1 cor0
----
17
17
17

skipif mysql # not compatible
query I rowsort label-2432
SELECT ALL + 52 / + 3 FROM tab1 cor0
----
17
17
17

query I rowsort
SELECT - - col2 + 10 FROM tab2 AS cor0
----
33
50
68

query I rowsort
SELECT ALL 45 - 16 AS col0 FROM tab1
----
29
29
29

query I rowsort
SELECT ALL 0 + + col2 FROM tab0 WHERE NOT - 65 IS NOT NULL
----

query I rowsort
SELECT + 37 AS col1 FROM tab2 WHERE ( 22 ) IN ( col1 + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2437
SELECT ALL 84 DIV - col0 + - col1 FROM tab0
----
-1
-21
-86

skipif mysql # not compatible
query I rowsort label-2437
SELECT ALL 84 / - col0 + - col1 FROM tab0
----
-1
-21
-86

query I rowsort
SELECT DISTINCT - 87 * + + ( - col1 ) FROM tab0
----
1827
7047
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2439
SELECT DISTINCT 72 * - COUNT( * ) AS col1 FROM tab0
----
-216

skipif mysql # not compatible
query I rowsort label-2439
SELECT DISTINCT 72 * - COUNT ( * ) AS col1 FROM tab0
----
-216

query I rowsort
SELECT - col1 + - col1 - 2 AS col2 FROM tab1
----
-12
-30
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col0 col2 FROM tab2 WHERE NOT NULL BETWEEN NULL AND + 1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2442
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) BETWEEN ( 73 * + CAST( NULL AS SIGNED ) ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-2442
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) BETWEEN ( 73 * + CAST ( NULL AS INTEGER ) ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT ALL - COUNT( * ) AS col2 FROM tab1 WHERE NOT ( - 95 ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2443
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 WHERE NOT ( - 95 ) IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2444
SELECT ALL - 30 FROM tab0 WHERE col0 * - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2444
SELECT ALL - 30 FROM tab0 WHERE col0 * - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT col0 + + col0 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2446
SELECT ALL col1 * - CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab2 AS cor0 WHERE + ( + 95 ) > ( + ( - 85 ) + col1 * + ( + 34 ) )
----

skipif mysql # not compatible
query I rowsort label-2446
SELECT ALL col1 * - CAST ( NULL AS INTEGER ) + col2 AS col0 FROM tab2 AS cor0 WHERE + ( + 95 ) > ( + ( - 85 ) + col1 * + ( + 34 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2447
SELECT DISTINCT + MAX( col1 ) AS col1 FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-2447
SELECT DISTINCT + MAX ( col1 ) AS col1 FROM tab2 cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT + ( - MAX( col2 ) ) AS col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2448
SELECT + ( - MAX ( col2 ) ) AS col1 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT ALL ( - - 65 ) FROM tab1
----
65
65
65

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE NOT 28 BETWEEN + 15 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2451
SELECT ALL + + COUNT( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-2451
SELECT ALL + + COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2452
SELECT ALL col1 DIV ( - col1 ) AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2452
SELECT ALL col1 / ( - col1 ) AS col1 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT - 99 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 + + + col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( 10 ) <= col1 + col2 * 40
----

query I rowsort
SELECT DISTINCT - - 74 * col2 FROM tab0 AS cor0 WHERE NOT NULL = 34
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2457
SELECT DISTINCT + 87 + ( + CAST( NULL AS SIGNED ) ) / - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( col1 * - - col1 * + 46 ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2457
SELECT DISTINCT + 87 + ( + CAST ( NULL AS INTEGER ) ) / - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( col1 * - - col1 * + 46 ) < NULL
----
NULL

query I rowsort
SELECT - 90 * - 54 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( + 73 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2459
SELECT SUM( DISTINCT + - col0 ) AS col2 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-2459
SELECT SUM ( DISTINCT + - col0 ) AS col2 FROM tab1 AS cor0
----
-227

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( + - col0 ) ) > ( 31 / - col1 + 53 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT + + SUM( + ( - col1 ) ) + - 25 AS col1 FROM tab2 AS cor0
----
-220

skipif mysql # not compatible
query I rowsort label-2461
SELECT + + SUM ( + ( - col1 ) ) + - 25 AS col1 FROM tab2 AS cor0
----
-220

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 5 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT DISTINCT - SUM( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-2463
SELECT DISTINCT - SUM ( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT DISTINCT - 9 * 28 AS col1 FROM tab1 AS cor0
----
-252

query I rowsort
SELECT - - col0 + - + col2 - - 70 * - col0 AS col2 FROM tab0 cor0
----
-1082
-6013
-6792

query I rowsort
SELECT col1 + - col1 * + col1 FROM tab2
----
-2550
-4422
-5852

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 * + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( 42 ) + + + 2 FROM tab1
----
-40
-40
-40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2469
SELECT * FROM tab2 WHERE NOT ( - + CAST( NULL AS SIGNED ) ) BETWEEN + 23 AND ( ( 11 ) )
----

skipif mysql # not compatible
query III rowsort label-2469
SELECT * FROM tab2 WHERE NOT ( - + CAST ( NULL AS INTEGER ) ) BETWEEN + 23 AND ( ( 11 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2470
SELECT COUNT( - + col2 ) * - 28 + - COUNT( * ) - COUNT( * ) FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-2470
SELECT COUNT ( - + col2 ) * - 28 + - COUNT ( * ) - COUNT ( * ) FROM tab1
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2471
SELECT + CAST( NULL AS SIGNED ) + + col0 + - col1 - - 49 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2471
SELECT + CAST ( NULL AS INTEGER ) + + col0 + - col1 - - 49 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2472
SELECT ALL + MAX( DISTINCT col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-2472
SELECT ALL + MAX ( DISTINCT col2 ) FROM tab2
----
58

query I rowsort
SELECT ALL + col2 + + 57 + 15 FROM tab1
----
131
140
168

query II rowsort
SELECT DISTINCT col1 + + col0 AS col2, - 1 AS col1 FROM tab1
----
138
-1
65
-1
90
-1

query I rowsort
SELECT DISTINCT - col1 + + - col2 + 47 AS col0 FROM tab0
----
-53
-81
16

query I rowsort
SELECT ALL ( 16 ) + - col2 FROM tab1
----
-43
-52
-80

query III rowsort
SELECT * FROM tab1 WHERE ( 96 * + - ( 53 ) ) = + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2478
SELECT DISTINCT + ( SUM( - col1 ) ) FROM tab2 cor0 WHERE NOT col2 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2478
SELECT DISTINCT + ( SUM ( - col1 ) ) FROM tab2 cor0 WHERE NOT col2 BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT ALL - 60 AS col0 FROM tab0 AS cor0
----
-60
-60
-60

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( - col1 )
----

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT + col2 IS NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - + 23 < NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2483
SELECT ALL + COUNT( * ) * + - ( - COUNT( * ) ) + - 78 FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-2483
SELECT ALL + COUNT ( * ) * + - ( - COUNT ( * ) ) + - 78 FROM tab2 AS cor0
----
-69

query III rowsort
SELECT * FROM tab1 WHERE col0 BETWEEN - col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2485
SELECT 83 * + 80 FROM tab2 WHERE - - CAST( - 15 AS SIGNED ) NOT IN ( - 66 )
----
6640
6640
6640

skipif mysql # not compatible
query I rowsort label-2485
SELECT 83 * + 80 FROM tab2 WHERE - - CAST ( - 15 AS INTEGER ) NOT IN ( - 66 )
----
6640
6640
6640

query I rowsort
SELECT DISTINCT col1 + - ( - col2 ) AS col2 FROM tab0
----
100
128
31

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 * - - col0 NOT BETWEEN NULL AND ( col0 ) * - 52 + - 77
----
51
14
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2488
SELECT - - col2 FROM tab0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2488
SELECT - - col2 FROM tab0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2489
SELECT ALL - 48 + - COUNT( * ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-2489
SELECT ALL - 48 + - COUNT ( * ) FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-2490
SELECT ALL - 73 + - SUM( ALL - col2 ) AS col2, 84 AS col0 FROM tab0 AS cor0
----
83
84

skipif mysql # not compatible
query II rowsort label-2490
SELECT ALL - 73 + - SUM ( ALL - col2 ) AS col2, 84 AS col0 FROM tab0 AS cor0
----
83
84

query II rowsort
SELECT 72 AS col0, ( - + 18 ) + - - col1 AS col1 FROM tab1 AS cor0
----
72
-13
72
-4
72
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT ALL + COUNT( * ) - COUNT( * ) - - + 50 FROM tab2 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-2492
SELECT ALL + COUNT ( * ) - COUNT ( * ) - - + 50 FROM tab2 AS cor0
----
50

query II rowsort
SELECT + 88 AS col2, col1 FROM tab2 AS cor0
----
88
51
88
67
88
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2494
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - col2 + - + col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2494
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - col2 + - + col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2495
SELECT ALL 88 DIV + col2 AS col1 FROM tab0 AS cor0
----
0
1
8

skipif mysql # not compatible
query I rowsort label-2495
SELECT ALL 88 / + col2 AS col1 FROM tab0 AS cor0
----
0
1
8

query I rowsort
SELECT DISTINCT + 31 FROM tab0 AS cor0 WHERE NOT NULL < - 19 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT + 58 * COUNT( * ) AS col1 FROM tab2 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-2497
SELECT + 58 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
174

query I rowsort
SELECT + + 85 * + col0 AS col0 FROM tab1 AS cor0
----
4335
7225
7735

query I rowsort
SELECT ALL + col0 - - + 15 AS col0 FROM tab0 AS cor0
----
102
112
30

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col2 * col2 + - + col2 ) IS NULL
----

query II rowsort
SELECT col2 AS col2, col0 AS col2 FROM tab2
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2502
SELECT DISTINCT - COUNT( * ) col2 FROM tab2, tab1 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2502
SELECT DISTINCT - COUNT ( * ) col2 FROM tab2, tab1 AS cor0
----
-9

query II rowsort
SELECT DISTINCT col2, col1 AS col0 FROM tab1
----
59
5
68
47
96
14

query I rowsort
SELECT - col1 * - + 80 AS col0 FROM tab1
----
1120
3760
400

query II rowsort
SELECT col1 AS col2, + ( + 1 ) AS col1 FROM tab1
----
14
1
47
1
5
1

query I rowsort
SELECT - col1 * - + col2 * - 49 FROM tab2
----
-150920
-190414
-57477

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT ALL MIN( ALL - col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( + col0 - col0 ) NOT IN ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2507
SELECT ALL MIN ( ALL - col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( + col0 - col0 ) NOT IN ( col1 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2508
SELECT - CAST( SUM( + 74 ) AS SIGNED ) FROM tab2 cor0
----
-222

skipif mysql # not compatible
query I rowsort label-2508
SELECT - CAST ( SUM ( + 74 ) AS INTEGER ) FROM tab2 cor0
----
-222

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT MAX( ALL col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-2509
SELECT MAX ( ALL col1 ) FROM tab1 AS cor0
----
47

query II rowsort
SELECT col2 * col1, col2 FROM tab0 AS cor0
----
210
10
3807
47
99
99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT DISTINCT - SUM( - - 74 ) FROM tab1 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-2512
SELECT DISTINCT - SUM ( - - 74 ) FROM tab1 AS cor0
----
-222

onlyif mysql # DIV for integer division: 
query I rowsort label-2513
SELECT ALL - col0 DIV - 13 + - - ( - col0 ) FROM tab1 cor0
----
-48
-79
-84

skipif mysql # not compatible
query I rowsort label-2513
SELECT ALL - col0 / - 13 + - - ( - col0 ) FROM tab1 cor0
----
-48
-79
-84

query II rowsort
SELECT DISTINCT - + 18 AS col2, + col2 AS col2 FROM tab0 AS cor0
----
-18
10
-18
47
-18
99

query I rowsort
SELECT + 76 * + 83 FROM tab1
----
6308
6308
6308

query I rowsort
SELECT - + ( ( - col1 ) ) * - col0 FROM tab2 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2517
SELECT + + SUM( + col2 ) * + - COUNT( * ) FROM tab2 AS cor0
----
-363

skipif mysql # not compatible
query I rowsort label-2517
SELECT + + SUM ( + col2 ) * + - COUNT ( * ) FROM tab2 AS cor0
----
-363

query I rowsort
SELECT - col0 * col1 * - col0 - col2 AS col1 FROM tab0 AS cor0
----
158939
18178
9310

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( 75 * col0 + + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2520
SELECT ALL COUNT( * ) / CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2520
SELECT ALL COUNT ( * ) / CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2521
SELECT + 70 DIV - - col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2521
SELECT + 70 / - - col0 FROM tab1 AS cor0
----
0
0
1

query II rowsort
SELECT ALL 82, col2 FROM tab1
----
82
59
82
68
82
96

query I rowsort
SELECT ALL ( col1 ) + - col1 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2524
SELECT ALL 24 DIV - col0 + + 31 * - col2 AS col1 FROM tab0
----
-1458
-3069
-310

skipif mysql # not compatible
query I rowsort label-2524
SELECT ALL 24 / - col0 + + 31 * - col2 AS col1 FROM tab0
----
-1458
-3069
-310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2525
SELECT CAST( - col1 AS SIGNED ) AS col0 FROM tab2 WHERE + 15 > col1
----

skipif mysql # not compatible
query I rowsort label-2525
SELECT CAST ( - col1 AS INTEGER ) AS col0 FROM tab2 WHERE + 15 > col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2526
SELECT COUNT( * ) + 83 * - SUM( ALL 33 ) AS col2 FROM tab0
----
-8214

skipif mysql # not compatible
query I rowsort label-2526
SELECT COUNT ( * ) + 83 * - SUM ( ALL 33 ) AS col2 FROM tab0
----
-8214

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab2 AS cor0 WHERE NOT ( - + col0 ) IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT - SUM( DISTINCT + col0 ) col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col0 * 55 - + 50 + + col1 + col0 - - - 59 * 52 * - col2 * - col2 * 83 AND ( - col2 + - col1 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2528
SELECT - SUM ( DISTINCT + col0 ) col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col0 * 55 - + 50 + + col1 + col0 - - - 59 * 52 * - col2 * - col2 * 83 AND ( - col2 + - col1 )
----
NULL

query I rowsort
SELECT DISTINCT + 81 * - + col2 + - col0 AS col1 FROM tab0 cor0
----
-3822
-8116
-897

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT ( - COUNT( * ) ) + + COUNT( * ) FROM tab0 cor0 WHERE + col0 * ( + col2 ) NOT IN ( + 79, - 41 )
----
0

skipif mysql # not compatible
query I rowsort label-2530
SELECT ( - COUNT ( * ) ) + + COUNT ( * ) FROM tab0 cor0 WHERE + col0 * ( + col2 ) NOT IN ( + 79, - 41 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT + - MIN( ALL - 19 ) AS col0 FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-2531
SELECT + - MIN ( ALL - 19 ) AS col0 FROM tab0 AS cor0
----
19

query I rowsort
SELECT DISTINCT - ( + 62 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2533
SELECT * FROM tab2 WHERE - CAST( + CAST( col2 AS SIGNED ) AS SIGNED ) < col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2533
SELECT * FROM tab2 WHERE - CAST ( + CAST ( col2 AS INTEGER ) AS INTEGER ) < col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2534
SELECT ALL + COUNT( * ) + 12 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
21

skipif mysql # not compatible
query I rowsort label-2534
SELECT ALL + COUNT ( * ) + 12 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
21

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col2 + - + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - - + col1 * + 88 col1 FROM tab1 AS cor0
----
1283
4227
525

onlyif mysql # DIV for integer division: 
query I rowsort label-2537
SELECT + + col2 - col1 DIV + 50 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-2537
SELECT + + col2 - col1 / + 50 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2538
SELECT ALL - col0 - - + col1 - CAST( NULL AS DECIMAL ) / - - CAST( - + col0 AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2538
SELECT ALL - col0 - - + col1 - CAST ( NULL AS REAL ) / - - CAST ( - + col0 AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2539
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( + - col0 ) * 38 * + col0 + 27 + CAST( + - col0 AS SIGNED ) + col1 + col1 * - 30 * 95 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2539
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( + - col0 ) * 38 * + col0 + 27 + CAST ( + - col0 AS INTEGER ) + col1 + col1 * - 30 * 95 IS NULL
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * + + ( - 38 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + ( - - 23 ) AS col1 FROM tab0 AS cor0
----
-23
-23
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 62 col1 FROM tab1 AS cor0
----
62
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 5 col1 FROM tab0 AS cor0
----
5
5
5

query I rowsort
SELECT + 37 * 56 AS col1 FROM tab2 cor0
----
2072
2072
2072

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT 50 * COUNT( * ) AS col1 FROM tab0
----
150

skipif mysql # not compatible
query I rowsort label-2545
SELECT 50 * COUNT ( * ) AS col1 FROM tab0
----
150

onlyif mysql # aggregate syntax: 
query II rowsort label-2546
SELECT - COUNT( * ) col2, MIN( ALL - ( - + col2 ) ) FROM tab2
----
-3
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2546
SELECT - COUNT ( * ) col2, MIN ( ALL - ( - + col2 ) ) FROM tab2
----
-3
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2547
SELECT DISTINCT - 28 * - COUNT( DISTINCT ( - col2 ) ) AS col2 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-2547
SELECT DISTINCT - 28 * - COUNT ( DISTINCT ( - col2 ) ) AS col2 FROM tab1
----
84

query II rowsort
SELECT 3 AS col1, + 9 FROM tab2
----
3
9
3
9
3
9

query I rowsort
SELECT DISTINCT ( - 94 ) FROM tab0
----
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 60 col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2551
SELECT ALL - - COUNT( * ) DIV + 9 * + 70 * + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2551
SELECT ALL - - COUNT ( * ) / + 9 * + 70 * + COUNT ( * ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE 43 * - col0 / + - col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2552
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE 43 * - col0 / + - col1 IS NOT NULL
----
-3

query III rowsort
SELECT * FROM tab0 WHERE + 38 * + 3 + + - 71 = ( 24 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 63 col2 FROM tab1
----
63
63
63

query I rowsort
SELECT ALL 70 + + col2 * - - col0 FROM tab1
----
4966
5085
6258

query I rowsort
SELECT DISTINCT col0 + + 77 AS col2 FROM tab2
----
123
141
152

onlyif mysql # DIV for integer division: 
query I rowsort label-2557
SELECT DISTINCT - col0 DIV + col0 + + + 40 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-2557
SELECT DISTINCT - col0 / + col0 + + + 40 FROM tab0
----
39

query I rowsort
SELECT ALL 31 - - 22 AS col1 FROM tab0
----
53
53
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2559
SELECT - CAST( NULL AS SIGNED ) / + col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2559
SELECT - CAST ( NULL AS INTEGER ) / + col0 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2560
SELECT - MAX( col1 ) AS col2 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-2560
SELECT - MAX ( col1 ) AS col2 FROM tab0
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2561
SELECT - 30 DIV + COUNT( * ) + 87 col1 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2561
SELECT - 30 / + COUNT ( * ) + 87 col1 FROM tab1 AS cor0
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 67, + 85 * - col1 col2 FROM tab2 AS cor0
----
67
-4335
67
-5695
67
-6545

onlyif mysql # aggregate syntax: 
query II rowsort label-2563
SELECT + COUNT( * ) AS col2, + 1 * SUM( ALL col2 ) col0 FROM tab0 AS cor0
----
3
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2563
SELECT + COUNT ( * ) AS col2, + 1 * SUM ( ALL col2 ) col0 FROM tab0 AS cor0
----
3
156

query I rowsort
SELECT ALL + AVG ( DISTINCT - 97 ) + - 95 AS col1 FROM tab2 AS cor0 WHERE NULL IN ( - 62 )
----
NULL

query II rowsort
SELECT ALL + - col1, col0 AS col1 FROM tab0 cor0
----
-1
97
-21
87
-81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT SUM( DISTINCT col1 ) * - 47 AS col0 FROM tab1
----
-3102

skipif mysql # not compatible
query I rowsort label-2566
SELECT SUM ( DISTINCT col1 ) * - 47 AS col0 FROM tab1
----
-3102

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = - - ( + col1 )
----

query I rowsort
SELECT - - 73 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
73
73
73

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT + - 8 + + 55 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 94 <> + col1
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) > - 66
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2573
SELECT - COUNT( * ) AS col1, - MIN( DISTINCT - col0 ) FROM tab1 AS cor0
----
-3
91

skipif mysql # not compatible
query II rowsort label-2573
SELECT - COUNT ( * ) AS col1, - MIN ( DISTINCT - col0 ) FROM tab1 AS cor0
----
-3
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2574
SELECT DISTINCT - SUM( ALL - - 25 ) AS col1 FROM tab0 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2574
SELECT DISTINCT - SUM ( ALL - - 25 ) AS col1 FROM tab0 cor0
----
-75

query I rowsort
SELECT - col1 * - - 31 * - col1 FROM tab0 cor0
----
13671
203391
31

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * - - 10 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2577
SELECT 28 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2577
SELECT 28 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2578
SELECT 36 + - CAST( + col0 AS SIGNED ) AS col2 FROM tab0
----
-51
-61
21

skipif mysql # not compatible
query I rowsort label-2578
SELECT 36 + - CAST ( + col0 AS INTEGER ) AS col2 FROM tab0
----
-51
-61
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2579
SELECT ( + + COUNT( ALL + CAST( + col1 AS SIGNED ) ) ) + - 12 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-2579
SELECT ( + + COUNT ( ALL + CAST ( + col1 AS INTEGER ) ) ) + - 12 FROM tab0
----
-9

query I rowsort
SELECT ALL 59 * + + 80 + col0 FROM tab1
----
4771
4805
4811

query I rowsort
SELECT 77 + - + 44 + + 31 FROM tab0
----
64
64
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2582
SELECT ALL 7 + 36 DIV COUNT( * ) FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-2582
SELECT ALL 7 + 36 / COUNT ( * ) FROM tab1
----
19

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + 61 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 56 - + - col1 AS col0 FROM tab2 AS cor0
----
107
123
133

query II rowsort
SELECT - 89, + col0 FROM tab0 AS cor0
----
-89
15
-89
87
-89
97

query I rowsort
SELECT ALL ( + - 60 ) FROM tab1
----
-60
-60
-60

query I rowsort
SELECT ( + 93 ) AS col1 FROM tab1
----
93
93
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2588
SELECT 24 * - col0 + + col2 * 65 col1 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
-1438
2695
4107

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2588
SELECT 24 * - col0 + + col2 * 65 col1 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
-1438
2695
4107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2589
SELECT ALL MIN( DISTINCT 90 ) col1, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
90
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2589
SELECT ALL MIN ( DISTINCT 90 ) col1, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
90
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2590
SELECT - COUNT( * ) FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND - CAST( + + ( - - col1 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-2590
SELECT - COUNT ( * ) FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND - CAST ( + + ( - - col1 ) AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT COUNT( * ) * - ( + + SUM( DISTINCT + - col1 ) ) + ( + 25 ) + - 5 + - + 15 * + 33 * - 99 FROM tab2 AS cor0
----
49610

skipif mysql # not compatible
query I rowsort label-2591
SELECT COUNT ( * ) * - ( + + SUM ( DISTINCT + - col1 ) ) + ( + 25 ) + - 5 + - + 15 * + 33 * - 99 FROM tab2 AS cor0
----
49610

query I rowsort
SELECT DISTINCT + 96 FROM tab0 AS cor0 WHERE NULL > col0
----

query I rowsort
SELECT + - col2 - + + ( col0 ) FROM tab2 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2594
SELECT DISTINCT * FROM tab1 WHERE + col0 BETWEEN CAST( NULL AS SIGNED ) * 61 + 58 AND - col1
----

skipif mysql # not compatible
query III rowsort label-2594
SELECT DISTINCT * FROM tab1 WHERE + col0 BETWEEN CAST ( NULL AS INTEGER ) * 61 + 58 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT ALL COUNT( + + col0 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2595
SELECT ALL COUNT ( + + col0 ) AS col1 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2596
SELECT + 78 + - col1 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2596
SELECT + 78 + - col1 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2597
SELECT DISTINCT + COUNT( * ) AS col1, - 12 + + 41 AS col0 FROM tab1 cor0
----
3
29

skipif mysql # not compatible
query II rowsort label-2597
SELECT DISTINCT + COUNT ( * ) AS col1, - 12 + + 41 AS col0 FROM tab1 cor0
----
3
29

query I rowsort
SELECT 68 * - 11 AS col1 FROM tab1 AS cor0
----
-748
-748
-748

onlyif mysql # DIV for integer division: 
query I rowsort label-2599
SELECT - 47 DIV - col1 AS col0 FROM tab0 AS cor0
----
0
2
47

skipif mysql # not compatible
query I rowsort label-2599
SELECT - 47 / - col1 AS col0 FROM tab0 AS cor0
----
0
2
47

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 * - + col1 + + + ( + col1 ) / + 19 <= - col0 / - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT + MAX( DISTINCT col2 ) FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-2601
SELECT + MAX ( DISTINCT col2 ) FROM tab2 cor0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2602
SELECT ALL - col0 + - - CAST( NULL AS SIGNED ) * + - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2602
SELECT ALL - col0 + - - CAST ( NULL AS INTEGER ) * + - col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 73 + - + col0 AS col1 FROM tab0 AS cor0
----
-160
-170
-88

query I rowsort
SELECT ALL + + 54 + col2 AS col1 FROM tab2 AS cor0
----
112
77
94

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 + + col0 + + 46 + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 7 * + + col2 col1 FROM tab1 cor0
----
413
476
672

query I rowsort
SELECT ALL - 69 * + 85 FROM tab1 AS cor0 WHERE NOT + col2 * col2 = + 27
----
-5865
-5865
-5865

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 4 * - + 76 col0 FROM tab1 AS cor0
----
304

query I rowsort
SELECT - col0 + - + 22 FROM tab1 AS cor0
----
-107
-113
-73

query I rowsort
SELECT + col2 FROM tab2 cor0 WHERE NULL = col1
----

query I rowsort
SELECT DISTINCT - col1 * + + ( + ( + col0 ) ) AS col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - ( - col0 ) = col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2614
SELECT ALL - COUNT( * ) * + - ( - CAST( - - 13 AS SIGNED ) ) * ( - 21 ) FROM tab0 AS cor0
----
819

skipif mysql # not compatible
query I rowsort label-2614
SELECT ALL - COUNT ( * ) * + - ( - CAST ( - - 13 AS INTEGER ) ) * ( - 21 ) FROM tab0 AS cor0
----
819

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT ALL 78 * - COUNT( * ) FROM tab1
----
-234

skipif mysql # not compatible
query I rowsort label-2615
SELECT ALL 78 * - COUNT ( * ) FROM tab1
----
-234

query I rowsort
SELECT - 51 AS col1 FROM tab0 WHERE ( + col1 ) IS NOT NULL
----
-51
-51
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT DISTINCT + COUNT( * ) + - SUM( ALL - ( - 47 ) ) FROM tab0
----
-138

skipif mysql # not compatible
query I rowsort label-2617
SELECT DISTINCT + COUNT ( * ) + - SUM ( ALL - ( - 47 ) ) FROM tab0
----
-138

query III rowsort
SELECT * FROM tab1 WHERE col1 IN ( + col0, col0 )
----

query I rowsort
SELECT DISTINCT col1 * 39 AS col0 FROM tab1
----
1833
195
546

query I rowsort
SELECT DISTINCT - col0 * + - col0 + - col0 + - + col2 * - + col1 + + col0 FROM tab0 AS cor0
----
4032
7779
9508

query II rowsort
SELECT + col1 - col1 + col0 AS col1, + 31 * col2 AS col1 FROM tab1 AS cor0
----
51
2976
85
1829
91
2108

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2622
SELECT ALL - 91 DIV CAST( - col1 AS SIGNED ) + - 14 - + 74 * 60 FROM tab2 AS cor0
----
-4453
-4453
-4453

skipif mysql # not compatible
query I rowsort label-2622
SELECT ALL - 91 / CAST ( - col1 AS INTEGER ) + - 14 - + 74 * 60 FROM tab2 AS cor0
----
-4453
-4453
-4453

query I rowsort
SELECT + + col0 + + 67 + + ( - - col1 ) AS col0 FROM tab0 AS cor0
----
163
165
175

query I rowsort
SELECT - 42 + - + 77 AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 889c1e493d5975e9cd2cf41f90342a92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2625
SELECT DISTINCT - + COUNT( * ) * 87 DIV - - 29 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2625
SELECT DISTINCT - + COUNT ( * ) * 87 / - - 29 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2626
SELECT DISTINCT - + COUNT( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2626
SELECT DISTINCT - + COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2627
SELECT + MAX( ALL + ( + 64 ) ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
64

skipif mysql # not compatible
query I rowsort label-2627
SELECT + MAX ( ALL + ( + 64 ) ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
64

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE + 57 IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query II rowsort
SELECT DISTINCT - col0 AS col2, col0 + + col2 FROM tab0
----
-15
62
-87
97
-97
196

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <= - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2631
SELECT + - 68 AS col2, + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-68
3

skipif mysql # not compatible
query II rowsort label-2631
SELECT + - 68 AS col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-68
3

query I rowsort
SELECT DISTINCT + col1 * 98 * - 52 FROM tab0 cor0 WHERE 68 - - col2 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2633
SELECT ALL MAX( + col1 ) + CAST( NULL AS SIGNED ) + 54 col2, COUNT( * ) * COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE col0 NOT IN ( + ( - col2 ) * 4 )
----
NULL
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2633
SELECT ALL MAX ( + col1 ) + CAST ( NULL AS INTEGER ) + 54 col2, COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE col0 NOT IN ( + ( - col2 ) * 4 )
----
NULL
9

onlyif mysql # aggregate syntax: 
query II rowsort label-2634
SELECT - ( - + 40 ), COUNT( * ) AS col1 FROM tab2 AS cor0
----
40
3

skipif mysql # not compatible
query II rowsort label-2634
SELECT - ( - + 40 ), COUNT ( * ) AS col1 FROM tab2 AS cor0
----
40
3

query I rowsort
SELECT ALL - ( col0 ) * - - 81 AS col2 FROM tab2 cor0
----
-3726
-5184
-6075

onlyif mysql # aggregate syntax: 
query I rowsort label-2636
SELECT - MIN( DISTINCT + 72 ) col1 FROM tab0
----
-72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2636
SELECT - MIN ( DISTINCT + 72 ) col1 FROM tab0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT - SUM( - 95 ) AS col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2637
SELECT - SUM ( - 95 ) AS col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - 15 * + - 60 + col0 FROM tab1
----
951
985
991

query I rowsort
SELECT ALL col2 * - + col2 + 45 FROM tab1
----
-3436
-4579
-9171

onlyif mysql # aggregate syntax: 
query I rowsort label-2640
SELECT DISTINCT + SUM( col1 ) * + - COUNT( * ) FROM tab2 AS cor0
----
-585

skipif mysql # not compatible
query I rowsort label-2640
SELECT DISTINCT + SUM ( col1 ) * + - COUNT ( * ) FROM tab2 AS cor0
----
-585

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2641
SELECT + COUNT( * ) DIV ( 54 ) + - ( COUNT( * ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2641
SELECT + COUNT ( * ) / ( 54 ) + - ( COUNT ( * ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2642
SELECT - COUNT( * ) + + + 24 DIV + - CAST( - SUM( ALL col1 ) AS SIGNED ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2642
SELECT - COUNT ( * ) + + + 24 / + - CAST ( - SUM ( ALL col1 ) AS INTEGER ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT 65 + + 50 AS col0 FROM tab2
----
115
115
115

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT DISTINCT - COUNT( DISTINCT + 83 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-2644
SELECT DISTINCT - COUNT ( DISTINCT + 83 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

query II rowsort
SELECT col0 * col1, col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - ( col0 ) + + col1 + + col0 * + col0 * + - col2 FROM tab1
----
-249733
-426355
-563152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 28 + 8 col1, 88 col1 FROM tab1
----
-20
88
-20
88
-20
88

query II rowsort
SELECT DISTINCT col2 + col1 AS col2, 86 + - 33 FROM tab0
----
100
53
128
53
31
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT DISTINCT - MAX( - - col0 ) AS col0 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-2649
SELECT DISTINCT - MAX ( - - col0 ) AS col0 FROM tab0
----
-97

query III rowsort
SELECT * FROM tab0 WHERE NULL <> + ( 60 )
----

query II rowsort
SELECT ( col1 ), 50 FROM tab1
----
14
50
47
50
5
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2652
SELECT CAST( + AVG ( - 96 ) AS SIGNED ) AS col2 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-2652
SELECT CAST ( + AVG ( - 96 ) AS INTEGER ) AS col2 FROM tab0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT ALL + SUM( DISTINCT + col0 ) * + 5 FROM tab1 AS cor0 WHERE col0 NOT BETWEEN - col2 AND + ( - col2 )
----
1135

skipif mysql # not compatible
query I rowsort label-2653
SELECT ALL + SUM ( DISTINCT + col0 ) * + 5 FROM tab1 AS cor0 WHERE col0 NOT BETWEEN - col2 AND + ( - col2 )
----
1135

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) > + + 53
----

query I rowsort
SELECT 40 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
40
40
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2656
SELECT ALL + - col1 * - col0 * col0 * CAST( NULL AS SIGNED ) + col0 + + - col0 * + 22 + col1 / - col1 / + + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2656
SELECT ALL + - col1 * - col0 * col0 * CAST ( NULL AS INTEGER ) + col0 + + - col0 * + 22 + col1 / - col1 / + + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 7 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT DISTINCT + + COUNT( * ) * + 17 AS col0 FROM tab0 cor0
----
51

skipif mysql # not compatible
query I rowsort label-2658
SELECT DISTINCT + + COUNT ( * ) * + 17 AS col0 FROM tab0 cor0
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2659
SELECT DISTINCT + - COUNT( * ) DIV - COUNT( * ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2659
SELECT DISTINCT + - COUNT ( * ) / - COUNT ( * ) FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT + 23 AS col2 FROM tab2 cor0
----
23

query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 AS cor0 WHERE NOT col2 / - + col1 IS NULL
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 19 * + 31 - + col1 col0, + col0 AS col1 FROM tab0 cor0
----
-590
97
-610
87
-670
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT DISTINCT - + SUM( ALL + 27 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( - col0 ) + - col2 * col2 IS NULL
----
-81

skipif mysql # not compatible
query I rowsort label-2663
SELECT DISTINCT - + SUM ( ALL + 27 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( - col0 ) + - col2 * col2 IS NULL
----
-81

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 59 + - - 68 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2665
SELECT ALL COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2665
SELECT ALL COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT + col1 + - 1 + + col1 * col0 FROM tab0 AS cor0
----
1295
1847
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2667
SELECT + COUNT( * ) * + 33 + 36 AS col2 FROM tab2 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-2667
SELECT + COUNT ( * ) * + 33 + 36 AS col2 FROM tab2 AS cor0
----
135

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + - col1 col1 FROM tab1
----
37
44
80

query II rowsort
SELECT ALL 28 AS col1, - col1 AS col0 FROM tab1
----
28
-14
28
-47
28
-5

query I rowsort
SELECT + + col1 AS col0 FROM tab2 WHERE NOT - + col2 * + 73 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2671
SELECT - COUNT( col0 ) + + 24 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-2671
SELECT - COUNT ( col0 ) + + 24 FROM tab0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT ALL MIN( ALL + col1 ) AS col2 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-2672
SELECT ALL MIN ( ALL + col1 ) AS col2 FROM tab2
----
51

query II rowsort
SELECT ALL col0 + + 89 * + + 81 * - col2 AS col2, - 94 AS col2 FROM tab0
----
-338808
-94
-713594
-94
-72003
-94

query I rowsort
SELECT DISTINCT col1 * - - col2 AS col2 FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT ALL - COUNT( * ) + + COUNT( * ) AS col2 FROM tab0 WHERE NOT col2 >= - - 28
----
0

skipif mysql # not compatible
query I rowsort label-2675
SELECT ALL - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab0 WHERE NOT col2 >= - - 28
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2676
SELECT ALL - 28 DIV + COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2676
SELECT ALL - 28 / + COUNT ( * ) FROM tab1 AS cor0
----
-9

query I rowsort
SELECT 89 AS col1 FROM tab1 cor0
----
89
89
89

onlyif mysql # aggregate syntax: 
query II rowsort label-2678
SELECT - 89, + MAX( + col0 ) AS col2 FROM tab1 AS cor0
----
-89
91

skipif mysql # not compatible
query II rowsort label-2678
SELECT - 89, + MAX ( + col0 ) AS col2 FROM tab1 AS cor0
----
-89
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT ALL + + SUM( + col2 ) AS col0 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-2679
SELECT ALL + + SUM ( + col2 ) AS col0 FROM tab2 AS cor0
----
121

query II rowsort
SELECT DISTINCT - - col2 AS col1, 41 * 39 AS col0 FROM tab1 AS cor0
----
59
1599
68
1599
96
1599

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 / ( - 1 ) * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * - + col2 / - col1 FROM tab1 WHERE + col2 = 62 + - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2683
SELECT DISTINCT - col1 * + + col1 + col2 + - + 14 + + col2 DIV - + col2 col1 FROM tab0
----
-446
-6529
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2683
SELECT DISTINCT - col1 * + + col1 + col2 + - + 14 + + col2 / - + col2 col1 FROM tab0
----
-446
-6529
83

query II rowsort
SELECT - + 11 * - + col2 + + 74, + ( + col1 ) AS col1 FROM tab1 AS cor0
----
1130
14
723
5
822
47

query I rowsort
SELECT - col0 + 55 * - + col1 AS col2 FROM tab2 AS cor0
----
-2851
-3760
-4299

query I rowsort
SELECT DISTINCT + col1 * + ( - + 73 ) + 78 + + col0 * - col0 + - - col2 FROM tab1 AS cor0
----
-11566
-3449
-7453

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 + + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT DISTINCT SUM( DISTINCT + col2 ) - 16 AS col2 FROM tab2 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-2688
SELECT DISTINCT SUM ( DISTINCT + col2 ) - 16 AS col2 FROM tab2 AS cor0
----
105

query I rowsort
SELECT DISTINCT col2 * - 41 - col0 AS col0 FROM tab2 AS cor0
----
-1704
-2453
-989

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2690
SELECT DISTINCT CAST( + col0 AS SIGNED ) col0 FROM tab0
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2690
SELECT DISTINCT CAST ( + col0 AS INTEGER ) col0 FROM tab0
----
15
87
97

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 + - col1 > col2 + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col0, col1 AS col1 FROM tab2
----
46
51
64
77
75
67

onlyif mysql # DIV for integer division: 
query II rowsort label-2693
SELECT ALL + col1, + 76 DIV + col0 FROM tab2 AS cor0
----
51
1
67
1
77
1

skipif mysql # not compatible
query II rowsort label-2693
SELECT ALL + col1, + 76 / + col0 FROM tab2 AS cor0
----
51
1
67
1
77
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2694
SELECT 9 AS col2, - CAST( + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
9
-46
9
-64
9
-75

skipif mysql # not compatible
query II rowsort label-2694
SELECT 9 AS col2, - CAST ( + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
9
-46
9
-64
9
-75

query II rowsort
SELECT ALL - 15 * - - 32 + col0 AS col0, - col2 + - + col1 AS col0 FROM tab2 AS cor0
----
-405
-125
-416
-117
-434
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, col1 * + col1 AS col2 FROM tab1 AS cor0
----
14
196
47
2209
5
25

query I rowsort
SELECT DISTINCT + col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + - 21 FROM tab2 cor0
----
-21
-21
-21

query II rowsort
SELECT ALL col2 * col1 AS col1, - col1 FROM tab2
----
1173
-51
3080
-77
3886
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( + col1 ) * - + ( + - col0 ), col2 col1 FROM tab2
----
2346
23
4928
40
5025
58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col0 * 87 AND + col1 / + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2702
SELECT DISTINCT - - SUM( 28 ) FROM tab1 cor0
----
84

skipif mysql # not compatible
query I rowsort label-2702
SELECT DISTINCT - - SUM ( 28 ) FROM tab1 cor0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2703
SELECT DISTINCT COUNT( * ) * MAX( - CAST( - col2 AS SIGNED ) ) FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-2703
SELECT DISTINCT COUNT ( * ) * MAX ( - CAST ( - col2 AS INTEGER ) ) FROM tab0
----
297

query III rowsort
SELECT col0 AS col0, col0 * + + col1, - + col1 AS col1 FROM tab0
----
9 values hashing to f00ffd7b95182fbb41694fc5216a7c6a

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 WHERE - col0 IN ( - col2, 14, - col0, - col0, col1 )
----
3

skipif mysql # not compatible
query I rowsort label-2705
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 WHERE - col0 IN ( - col2, 14, - col0, - col0, col1 )
----
3

query III rowsort
SELECT * FROM tab2 WHERE ( + - col2 ) * + col2 + - col1 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + 78 col1 FROM tab1
----
125
83
92

query I rowsort
SELECT 11 + col0 FROM tab1
----
102
62
96

query I rowsort
SELECT DISTINCT + col0 * 98 + 38 - - + ( - 10 ) * - 12 + - 9 FROM tab0
----
1619
8675
9655

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 49 + - 33 col0 FROM tab0
----
16
16
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT 95 + - SUM( DISTINCT + 12 ) FROM tab0 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-2711
SELECT 95 + - SUM ( DISTINCT + 12 ) FROM tab0 AS cor0
----
83

query I rowsort
SELECT ALL 70 + - col1 AS col2 FROM tab0 AS cor0
----
-11
49
69

onlyif mysql # DIV for integer division: 
query I rowsort label-2713
SELECT ALL + ( 30 ) * + col1 DIV + col1 + - - col0 - col0 + + col1 * - 61 + + ( + 18 ) FROM tab0 AS cor0
----
-1233
-13
-4893

skipif mysql # not compatible
query I rowsort label-2713
SELECT ALL + ( 30 ) * + col1 / + col1 + - - col0 - col0 + + col1 * - 61 + + ( + 18 ) FROM tab0 AS cor0
----
-1233
-13
-4893

query I rowsort
SELECT DISTINCT + ( + col0 ) * col1 + - + 21 + col0 FROM tab1 cor0
----
4347
489
744

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 10 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2716
SELECT ALL col1 - - - 95 DIV 74 * - + 82 AS col2 FROM tab2 cor0
----
133
149
159

skipif mysql # not compatible
query I rowsort label-2716
SELECT ALL col1 - - - 95 / 74 * - + 82 AS col2 FROM tab2 cor0
----
133
149
159

query II rowsort
SELECT ALL + col2, 40 AS col0 FROM tab1 AS cor0
----
59
40
68
40
96
40

query I rowsort
SELECT ( - - 77 ) FROM tab2 AS cor0
----
77
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 77 col0 FROM tab2
----
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 * - col2 + - col2 / - - col2 * col1 * - + 81 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + col2 * - col2 AS col2, - 61 * + - col0 AS col2 FROM tab2
----
-1600
3904
-3364
4575
-529
2806

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2722
SELECT col1 * - - CAST( + 87 AS SIGNED ) * - col1 AS col2 FROM tab0
----
-38367
-570807
-87

skipif mysql # not compatible
query I rowsort label-2722
SELECT col1 * - - CAST ( + 87 AS INTEGER ) * - col1 AS col2 FROM tab0
----
-38367
-570807
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-2723
SELECT SUM( DISTINCT - col1 ) col0 FROM tab1
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2723
SELECT SUM ( DISTINCT - col1 ) col0 FROM tab1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2724
SELECT 10 * - + ( - COUNT( * ) ) * + COUNT( * ) FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-2724
SELECT 10 * - + ( - COUNT ( * ) ) * + COUNT ( * ) FROM tab2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE NOT + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2725
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE NOT + col1 IS NULL
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT - 69 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + 86 * + 46 FROM tab1 AS cor0
----
3956

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 15 BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT DISTINCT - + ( - - MIN( + ( + col0 ) ) ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2729
SELECT DISTINCT - + ( - - MIN ( + ( + col0 ) ) ) FROM tab2 AS cor0
----
-46

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT NULL < 6
----

query I rowsort
SELECT - col1 + + 58 FROM tab2 AS cor0
----
-19
-9
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT SUM( + col0 ) + + ( + - 59 ) AS col1 FROM tab1 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-2732
SELECT SUM ( + col0 ) + + ( + - 59 ) AS col1 FROM tab1 AS cor0
----
168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2733
SELECT - CAST( NULL AS SIGNED ) * + + col2 + col0 + + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2733
SELECT - CAST ( NULL AS INTEGER ) * + + col2 + col0 + + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - ( + ( + - col2 ) ) + - col2 + - - col2 * - 64 AS col2 FROM tab0 AS cor0
----
-3008
-6336
-640

query I rowsort
SELECT DISTINCT col2 * + 36 * - col0 AS col1 FROM tab2 AS cor0
----
-156600
-38088
-92160

query I rowsort
SELECT DISTINCT 53 + col2 FROM tab0
----
100
152
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2737
SELECT CAST( - col0 AS SIGNED ) * + col2 + + col1 FROM tab2
----
-1007
-2483
-4283

skipif mysql # not compatible
query I rowsort label-2737
SELECT CAST ( - col0 AS INTEGER ) * + col2 + + col1 FROM tab2
----
-1007
-2483
-4283

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT DISTINCT + MIN( - 14 ) * COUNT( * ) + - 11 col2 FROM tab0 WHERE - + 94 <= NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2738
SELECT DISTINCT + MIN ( - 14 ) * COUNT ( * ) + - 11 col2 FROM tab0 WHERE - + 94 <= NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN + 2 - col2 + + col0 * 41 * + 19 * - 67 AND NULL
----

query I rowsort
SELECT ( + col0 ) AS col0 FROM tab0 cor0 WHERE 42 * - - col2 >= ( + col2 * 55 )
----

query I rowsort
SELECT + col2 - + col2 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2742
SELECT DISTINCT 30 + + COUNT( * ) FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-2742
SELECT DISTINCT 30 + + COUNT ( * ) FROM tab0
----
33

query I rowsort
SELECT + - 25 * + 85 FROM tab2 AS cor0
----
-2125
-2125
-2125

query I rowsort
SELECT ( + 11 ) AS col2 FROM tab1 AS cor0
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT DISTINCT - - MAX( - col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2745
SELECT DISTINCT - - MAX ( - col1 ) FROM tab1 AS cor0
----
-5

query I rowsort
SELECT DISTINCT + 1 FROM tab0 AS cor0 WHERE 31 <> - - col2
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, - col1 col1 FROM tab0
----
10
-21
47
-81
99
-1

query II rowsort
SELECT ALL col2, + col2 * col2 AS col0 FROM tab2 AS cor0
----
23
529
40
1600
58
3364

onlyif mysql # aggregate syntax: 
query II rowsort label-2749
SELECT 57 * 97, 11 + + - 29 + + SUM( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
5529
205

skipif mysql # not compatible
query II rowsort label-2749
SELECT 57 * 97, 11 + + - 29 + + SUM ( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
5529
205

query I rowsort
SELECT DISTINCT + ( - 56 ) AS col0 FROM tab2 AS cor0
----
-56

query I rowsort
SELECT DISTINCT - 97 * - col1 FROM tab1 AS cor0
----
1358
4559
485

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 * - + 33 + - col0 col1 FROM tab2
----
1575
1586
1604

query I rowsort
SELECT DISTINCT 50 * 96 AS col1 FROM tab2
----
4800

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT COUNT( ALL - + col0 ) + - SUM( col2 ) FROM tab2
----
-118

skipif mysql # not compatible
query I rowsort label-2754
SELECT COUNT ( ALL - + col0 ) + - SUM ( col2 ) FROM tab2
----
-118

query II rowsort
SELECT - 8 * - col2 * + ( + 34 ) * col0 * + - col1 + - col2 + + + 39, col1 AS col1 FROM tab2
----
-14676560
51
-53616641
77
-79274419
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT - 69 + COUNT( * ) AS col1 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-2756
SELECT - 69 + COUNT ( * ) AS col1 FROM tab1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2757
SELECT DISTINCT ( + 60 ) + - - COUNT( * ) col1 FROM tab0
----
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2757
SELECT DISTINCT ( + 60 ) + - - COUNT ( * ) col1 FROM tab0
----
63

query I rowsort
SELECT DISTINCT 22 + - + col0 AS col1 FROM tab2
----
-24
-42
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2759
SELECT ALL 70 + + CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2759
SELECT ALL 70 + + CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2760
SELECT ALL - 38 DIV 17 * - col1 - CAST( + col0 AS SIGNED ) AS col2 FROM tab1
----
-23
-75
3

skipif mysql # not compatible
query I rowsort label-2760
SELECT ALL - 38 / 17 * - col1 - CAST ( + col0 AS INTEGER ) AS col2 FROM tab1
----
-23
-75
3

query I rowsort
SELECT DISTINCT - col0 + - + col2 + + col0 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT ALL - 83 * + MIN( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
-4233

skipif mysql # not compatible
query I rowsort label-2762
SELECT ALL - 83 * + MIN ( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
-4233

onlyif mysql # aggregate syntax: 
query I rowsort label-2763
SELECT ALL + COUNT( * ) - - ( 60 ) AS col2 FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-2763
SELECT ALL + COUNT ( * ) - - ( 60 ) AS col2 FROM tab2 AS cor0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT + COUNT( * ) FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN - + col0 + col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2764
SELECT + COUNT ( * ) FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN - + col0 + col2 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT ALL - - MIN( + col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-2765
SELECT ALL - - MIN ( + col2 ) FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT COUNT( * ) * - 25 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-2766
SELECT COUNT ( * ) * - 25 FROM tab2
----
-75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( - 98 * + 65 * - + col2 * - 86 ) IS NOT NULL ) OR NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 - + col2 IS NOT NULL
----

query II rowsort
SELECT col0 * + - col1 * - - col1, + col2 FROM tab0 AS cor0 WHERE NOT 61 * col2 <> - + col0 + - 96 * 24
----

query I rowsort
SELECT + ( 61 ) FROM tab1 AS cor0
----
61
61
61

onlyif mysql # aggregate syntax: 
query II rowsort label-2771
SELECT - MIN( - col1 ) col1, + COUNT( + 99 ) AS col2 FROM tab2 AS cor0
----
77
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2771
SELECT - MIN ( - col1 ) col1, + COUNT ( + 99 ) AS col2 FROM tab2 AS cor0
----
77
3

query I rowsort
SELECT - col2 * - 35 AS col0 FROM tab2
----
1400
2030
805

onlyif mysql # aggregate syntax: 
query I rowsort label-2773
SELECT SUM( ALL + + 63 ) FROM tab1
----
189

skipif mysql # not compatible
query I rowsort label-2773
SELECT SUM ( ALL + + 63 ) FROM tab1
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-2774
SELECT + COUNT( DISTINCT col2 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2774
SELECT + COUNT ( DISTINCT col2 ) col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2775
SELECT + MAX( - + col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-2775
SELECT + MAX ( - + col0 ) FROM tab2
----
-46

query I rowsort
SELECT ALL - 89 * - col2 AS col1 FROM tab2 AS cor0
----
2047
3560
5162

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2777
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) + col1 <> - col1 * - col2
----

skipif mysql # not compatible
query III rowsort label-2777
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS REAL ) + col1 <> - col1 * - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2778
SELECT ALL - - CAST( NULL AS SIGNED ) col0, - COUNT( * ) FROM tab0 AS cor0
----
NULL
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2778
SELECT ALL - - CAST ( NULL AS INTEGER ) col0, - COUNT ( * ) FROM tab0 AS cor0
----
NULL
-3

query I rowsort
SELECT - 28 AS col2 FROM tab1 cor0
----
-28
-28
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2780
SELECT DISTINCT - + COUNT( * ) + - 26 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-35

skipif mysql # not compatible
query I rowsort label-2780
SELECT DISTINCT - + COUNT ( * ) + - 26 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2781
SELECT DISTINCT * FROM tab2 WHERE - CAST( NULL AS SIGNED ) IN ( col0 + - col2, - col1 * - + col1 * + + col1 - - + col2 )
----

skipif mysql # not compatible
query III rowsort label-2781
SELECT DISTINCT * FROM tab2 WHERE - CAST ( NULL AS INTEGER ) IN ( col0 + - col2, - col1 * - + col1 * + + col1 - - + col2 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col0 + + col1 NOT BETWEEN - col2 * col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2783
SELECT - 88 DIV + col1 + - - col2 AS col1 FROM tab1 AS cor0
----
42
67
90

skipif mysql # not compatible
query I rowsort label-2783
SELECT - 88 / + col1 + - - col2 AS col1 FROM tab1 AS cor0
----
42
67
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT - 74 + - + SUM( DISTINCT + col1 ) + + MAX( ALL col1 ) FROM tab1 cor0
----
-93

skipif mysql # not compatible
query I rowsort label-2784
SELECT - 74 + - + SUM ( DISTINCT + col1 ) + + MAX ( ALL col1 ) FROM tab1 cor0
----
-93

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2785
SELECT CAST( NULL AS DECIMAL ), col0 + + 98 * + 46 * col1 / - 67 AS col0 FROM tab0 AS cor0 WHERE - 27 IN ( 55, - col1, ( + 66 ) )
----

skipif mysql # not compatible
query II rowsort label-2785
SELECT CAST ( NULL AS REAL ), col0 + + 98 * + 46 * col1 / - 67 AS col0 FROM tab0 AS cor0 WHERE - 27 IN ( 55, - col1, ( + 66 ) )
----

query I rowsort
SELECT - - 91 + col0 AS col1 FROM tab1 AS cor0
----
142
176
182

query I rowsort
SELECT + + col0 * - col0 + + 85 AS col1 FROM tab0 AS cor0
----
-140
-7484
-9324

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 57 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2789
SELECT ALL * FROM tab0 WHERE NOT - col0 = + + CAST( NULL AS SIGNED ) + - col0
----

skipif mysql # not compatible
query III rowsort label-2789
SELECT ALL * FROM tab0 WHERE NOT - col0 = + + CAST ( NULL AS INTEGER ) + - col0
----

query I rowsort
SELECT DISTINCT 80 * + col1 AS col1 FROM tab0
----
1680
6480
80

query I rowsort
SELECT + col0 * - - col1 FROM tab1
----
425
4277
714

query II rowsort
SELECT ALL col1 + - + col1 AS col2, + col1 FROM tab1
----
0
14
0
47
0
5

query I rowsort
SELECT DISTINCT - col1 - - - ( 80 ) FROM tab2
----
-131
-147
-157

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 46 - + + 45 col2 FROM tab0 AS cor0
----
-91
-91
-91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2795
SELECT + + 92 + + CAST( NULL AS SIGNED ), col0 + + - col1 DIV + - 91 * 90 + - col1 * - col2 AS col0 FROM tab1 AS cor0
----
NULL
1395
NULL
3287
NULL
380

skipif mysql # not compatible
query II rowsort label-2795
SELECT + + 92 + + CAST ( NULL AS INTEGER ), col0 + + - col1 / + - 91 * 90 + - col1 * - col2 AS col0 FROM tab1 AS cor0
----
NULL
1395
NULL
3287
NULL
380

query I rowsort
SELECT + + col2 FROM tab2 WHERE NOT + + 11 IS NULL
----
23
40
58

query I rowsort
SELECT 18 * - - col2 * - + col0 * + col1 FROM tab2
----
-3548160
-5246100
-971244

query I rowsort
SELECT ALL - + ( + 28 ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

query II rowsort
SELECT col2 AS col1, 18 FROM tab0
----
10
18
47
18
99
18

query II rowsort
SELECT col2, col2 + + col0 FROM tab0 cor0
----
10
97
47
62
99
196

onlyif mysql # aggregate syntax: 
query I rowsort label-2801
SELECT DISTINCT - MIN( col2 ) * + - MAX( ALL col0 ) + - COUNT( * ) + + - 23 FROM tab0 AS cor0
----
944

skipif mysql # not compatible
query I rowsort label-2801
SELECT DISTINCT - MIN ( col2 ) * + - MAX ( ALL col0 ) + - COUNT ( * ) + + - 23 FROM tab0 AS cor0
----
944

onlyif mysql # DIV for integer division: 
query I rowsort label-2802
SELECT - + col2 DIV col2 col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2802
SELECT - + col2 / col2 col2 FROM tab0 AS cor0
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NOT ( NOT - 84 / col2 - + + col2 IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * - col2 * + + 4 col0 FROM tab1 AS cor0
----
1180
12784
5376

onlyif mysql # DIV for integer division: 
query I rowsort label-2805
SELECT - + 56 DIV - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2805
SELECT - + 56 / - col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT DISTINCT MAX( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2806
SELECT DISTINCT MAX ( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT ALL COUNT( * ) * - - 24 AS col2 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-2807
SELECT ALL COUNT ( * ) * - - 24 AS col2 FROM tab2 AS cor0
----
72

query I rowsort
SELECT + ( + 20 ) AS col1 FROM tab2 cor0 WHERE NOT + ( + + col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2809
SELECT ALL col2 DIV - 44 FROM tab0 cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-2809
SELECT ALL col2 / - 44 FROM tab0 cor0
----
-1
-2
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 1 * + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2812
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) * + - col1 + - col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2812
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) * + - col1 + - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 57 * - + col0 col1 FROM tab2
----
-2622
-3648
-4275

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT MIN( + ( + col2 ) ) * - 12 * + 61 + 46 FROM tab1
----
-43142

skipif mysql # not compatible
query I rowsort label-2814
SELECT MIN ( + ( + col2 ) ) * - 12 * + 61 + 46 FROM tab1
----
-43142

query I rowsort
SELECT - 72 * + col1 AS col0 FROM tab0
----
-1512
-5832
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT ALL COUNT( * ) * + 76 FROM tab1
----
228

skipif mysql # not compatible
query I rowsort label-2816
SELECT ALL COUNT ( * ) * + 76 FROM tab1
----
228

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( col2 / - 25 )
----

query I rowsort
SELECT - + col1 * - 69 * 13 * col1 - + col2 FROM tab1 AS cor0
----
175716
1981405
22366

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + col1 * col0 AND - col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + col0 * + 9 * - + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT DISTINCT COUNT( - 5 ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2821
SELECT DISTINCT COUNT ( - 5 ) col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + 59 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT DISTINCT 72 + - ( + - col2 ) FROM tab2
----
112
130
95

query I rowsort
SELECT DISTINCT + 78 * + col2 + - col1 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2825
SELECT DISTINCT - COUNT( DISTINCT - - col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2825
SELECT DISTINCT - COUNT ( DISTINCT - - col1 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT NULL = + col1
----

query I rowsort
SELECT DISTINCT + + 31 AS col2 FROM tab2 AS cor0
----
31

query II rowsort
SELECT DISTINCT col1 AS col1, + col2 AS col1 FROM tab1
----
14
96
47
68
5
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2829
SELECT ALL + CAST( NULL AS SIGNED ) + + - COUNT( + col1 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2829
SELECT ALL + CAST ( NULL AS INTEGER ) + + - COUNT ( + col1 ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT - + col2 AS col0 FROM tab2 WHERE - - 62 NOT BETWEEN NULL AND col2
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL = - - 78
----

query I rowsort
SELECT ALL col0 + 94 AS col2 FROM tab1
----
145
179
185

query I rowsort
SELECT ALL - col0 + - - 34 AS col2 FROM tab1
----
-17
-51
-57

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 / col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT DISTINCT MIN( ALL + + col2 ) - + 93 FROM tab1 cor0
----
-34

skipif mysql # not compatible
query I rowsort label-2835
SELECT DISTINCT MIN ( ALL + + col2 ) - + 93 FROM tab1 cor0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2836
SELECT ALL + + COUNT( ALL + - col0 ) AS col2 FROM tab1 WHERE NOT NULL NOT IN ( - + 37, 76, - col2, + - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2836
SELECT ALL + + COUNT ( ALL + - col0 ) AS col2 FROM tab1 WHERE NOT NULL NOT IN ( - + 37, 76, - col2, + - col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT 46 * COUNT( * ) AS col1 FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-2837
SELECT 46 * COUNT ( * ) AS col1 FROM tab2
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT ( ( + 64 ) ) * + - COUNT( * ) * + - MIN( DISTINCT + + ( - + ( + - col1 ) ) ) FROM tab2
----
9792

skipif mysql # not compatible
query I rowsort label-2838
SELECT ( ( + 64 ) ) * + - COUNT ( * ) * + - MIN ( DISTINCT + + ( - + ( + - col1 ) ) ) FROM tab2
----
9792

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT DISTINCT + COUNT( ALL + + col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2839
SELECT DISTINCT + COUNT ( ALL + + col2 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT ( + + 99 ) FROM tab1 AS cor0
----
99

query II rowsort
SELECT ALL 28 AS col1, col0 AS col2 FROM tab0
----
28
15
28
87
28
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT - SUM( + col1 ) AS col0 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-2842
SELECT - SUM ( + col1 ) AS col0 FROM tab2
----
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 9 col2 FROM tab1 WHERE NULL NOT BETWEEN - col1 AND + col0
----

query I rowsort
SELECT ALL + 60 + + 61 AS col2 FROM tab1 WHERE NOT NULL >= + col0 * + - col1 + + 94
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2845
SELECT ALL CAST( NULL AS SIGNED ) * - - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2845
SELECT ALL CAST ( NULL AS INTEGER ) * - - col0 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT col0, - col2 * + 54 FROM tab2
----
46
-1242
64
-2160
75
-3132

onlyif mysql # aggregate syntax: 
query I rowsort label-2847
SELECT DISTINCT 54 + + COUNT( * ) AS col2 FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-2847
SELECT DISTINCT 54 + + COUNT ( * ) AS col2 FROM tab1
----
57

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NOT NULL <> - - 30
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> - 15
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2850
SELECT COUNT( * ) * 67 AS col1 FROM tab1
----
201

skipif mysql # not compatible
query I rowsort label-2850
SELECT COUNT ( * ) * 67 AS col1 FROM tab1
----
201

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT - - COUNT( * ) * - SUM( ALL - col2 ) * + COUNT( * ) FROM tab2 AS cor0
----
1089

skipif mysql # not compatible
query I rowsort label-2851
SELECT - - COUNT ( * ) * - SUM ( ALL - col2 ) * + COUNT ( * ) FROM tab2 AS cor0
----
1089

onlyif mysql # aggregate syntax: 
query I rowsort label-2852
SELECT DISTINCT COUNT( ALL 0 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2852
SELECT DISTINCT COUNT ( ALL 0 ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT + COUNT( ALL + col2 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2853
SELECT + COUNT ( ALL + col2 ) col0 FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN - col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2855
SELECT - 46 + CAST( - 68 + 57 * + COUNT( * ) AS SIGNED ) col0 FROM tab2
----
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2855
SELECT - 46 + CAST ( - 68 + 57 * + COUNT ( * ) AS INTEGER ) col0 FROM tab2
----
57

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 IN ( + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2857
SELECT DISTINCT + col0 DIV + col2 - 74 AS col2 FROM tab0
----
-66
-74

skipif mysql # not compatible
query I rowsort label-2857
SELECT DISTINCT + col0 / + col2 - 74 AS col2 FROM tab0
----
-66
-74

query I rowsort
SELECT 11 - - 82 FROM tab0
----
93
93
93

query I rowsort
SELECT col1 + - 50 FROM tab0
----
-29
-49
31

query I rowsort
SELECT ALL col2 + col2 * col2 AS col0 FROM tab2
----
1640
3422
552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col0 FROM tab1 WHERE + col2 + ( col2 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + ( + col1 + 6 ) col0 FROM tab2
----
108
140
160

onlyif mysql # aggregate syntax: 
query I rowsort label-2863
SELECT 23 * COUNT( * ) FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-2863
SELECT 23 * COUNT ( * ) FROM tab0
----
69

query I rowsort
SELECT 60 * - col2 FROM tab1
----
-3540
-4080
-5760

query I rowsort
SELECT ALL col0 * - 31 + + 37 FROM tab1
----
-1544
-2598
-2784

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 NOT IN ( - 66 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 5 * col0 FROM tab1
----
255
425
455

query I rowsort
SELECT - col1 * 26 AS col2 FROM tab1
----
-1222
-130
-364

query I rowsort
SELECT - col1 + 37 AS col0 FROM tab2
----
-14
-30
-40

query I rowsort
SELECT ALL col1 / ( col0 ) AS col2 FROM tab1 WHERE NOT - col0 * 74 IS NOT NULL
----

query I rowsort
SELECT + col1 + + 22 AS col0 FROM tab2
----
73
89
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2872
SELECT ALL + 58 * + COUNT( * ) AS col1 FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-2872
SELECT ALL + 58 * + COUNT ( * ) AS col1 FROM tab2
----
174

query I rowsort
SELECT ALL col0 * ( 15 ) + col1 * - 8 FROM tab1 WHERE NOT 16 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 * + col1 > - ( + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT - COUNT( * ) AS col0 FROM tab2 WHERE NOT ( - 27 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2876
SELECT - COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( - 27 ) IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2877
SELECT ALL - col2 DIV + col1 + col1 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-6
46
8

skipif mysql # not compatible
query I rowsort label-2877
SELECT ALL - col2 / + col1 + col1 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-6
46
8

query I rowsort
SELECT - 21 AS col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-21
-21
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT COUNT( * ) * MIN( col1 ) FROM tab2 WHERE + col0 + - 58 NOT IN ( - col0 )
----
153

skipif mysql # not compatible
query I rowsort label-2879
SELECT COUNT ( * ) * MIN ( col1 ) FROM tab2 WHERE + col0 + - 58 NOT IN ( - col0 )
----
153

query I rowsort
SELECT - col0 FROM tab0 WHERE NULL IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT ALL - COUNT( * ) * - ( COUNT( * ) ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-2881
SELECT ALL - COUNT ( * ) * - ( COUNT ( * ) ) AS col1 FROM tab1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2882
SELECT + SUM( ALL CAST( NULL AS SIGNED ) ) / + COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2882
SELECT + SUM ( ALL CAST ( NULL AS INTEGER ) ) / + COUNT ( * ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col1 * col1 + col0 * col2 FROM tab2
----
3659
8489
8839

query I rowsort
SELECT ALL + col2 * + col0 - 45 AS col1 FROM tab0
----
660
825
9558

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 40 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2886
SELECT - MAX( DISTINCT 15 ) col0 FROM tab2 cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2886
SELECT - MAX ( DISTINCT 15 ) col0 FROM tab2 cor0
----
-15

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 WHERE NOT + col2 IS NULL
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 40 col1 FROM tab2
----
-2040
-2680
-3080

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT - + MAX( DISTINCT 36 ) FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-2889
SELECT - + MAX ( DISTINCT 36 ) FROM tab1 AS cor0
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2890
SELECT - + COUNT( * ) DIV MAX( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2890
SELECT - + COUNT ( * ) / MAX ( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2891
SELECT DISTINCT - col1 * + CAST( - 80 * + col0 + 90 * - CAST( col1 AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0
----
421770
806010
927850

skipif mysql # not compatible
query I rowsort label-2891
SELECT DISTINCT - col1 * + CAST ( - 80 * + col0 + 90 * - CAST ( col1 AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0
----
421770
806010
927850

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT ( COUNT( * ) ) FROM tab0 AS cor0 WHERE NOT col0 <= ( col2 )
----
1

skipif mysql # not compatible
query I rowsort label-2892
SELECT ( COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT col0 <= ( col2 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT DISTINCT + COUNT( col0 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2893
SELECT DISTINCT + COUNT ( col0 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2894
SELECT MIN( col2 ) FROM tab2 WHERE NOT + col1 NOT IN ( col2 - 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2894
SELECT MIN ( col2 ) FROM tab2 WHERE NOT + col1 NOT IN ( col2 - 14 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 + col1 IS NULL
----

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2897
SELECT ALL - 35 * col2 + - ( CAST( NULL AS SIGNED ) + col1 ) * + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2897
SELECT ALL - 35 * col2 + - ( CAST ( NULL AS INTEGER ) + col1 ) * + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT COUNT( * ) FROM tab0 WHERE NOT + 27 IN ( col0 * + col1 )
----
3

skipif mysql # not compatible
query I rowsort label-2898
SELECT COUNT ( * ) FROM tab0 WHERE NOT + 27 IN ( col0 * + col1 )
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 + - 36 + col0 col1 FROM tab1
----
25
59
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2900
SELECT ALL COUNT( * ) + MIN( - 21 ) + ( COUNT( - col0 ) ) AS col2 FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-2900
SELECT ALL COUNT ( * ) + MIN ( - 21 ) + ( COUNT ( - col0 ) ) AS col2 FROM tab1
----
-15

query I rowsort
SELECT + 5 * - 70 + col2 * - col2 FROM tab0 AS cor0
----
-10151
-2559
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT ALL AVG ( DISTINCT col0 ) * COUNT( * ) FROM tab0 cor0 WHERE NOT ( - col0 ) > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2902
SELECT ALL AVG ( DISTINCT col0 ) * COUNT ( * ) FROM tab0 cor0 WHERE NOT ( - col0 ) > NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 6 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 86 + - col1 col2 FROM tab2 AS cor0 WHERE NOT 70 + 67 > col2
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 78 <= ( NULL )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 5 < NULL
----

query I rowsort
SELECT - - 97 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2908
SELECT ( + CAST( NULL AS DECIMAL ) ) FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2908
SELECT ( + CAST ( NULL AS REAL ) ) FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 17 * + + 66 FROM tab2
----
1122
1122
1122

query I rowsort
SELECT DISTINCT + col1 + - + 42 FROM tab1
----
-28
-37
5

query I rowsort
SELECT + + 16 + 86 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 792cf560743b7eec398ed5c7e48d1343

query I rowsort
SELECT ALL + col1 + + 93 * - ( col2 ) * col0 FROM tab0
----
-65484
-80889
-893078

query I rowsort
SELECT DISTINCT 18 + 54 FROM tab2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT ALL + COUNT( * ) + + - 81 FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-2914
SELECT ALL + COUNT ( * ) + + - 81 FROM tab1 AS cor0
----
-78

query I rowsort
SELECT DISTINCT + col1 + + - 56 FROM tab2 AS cor0
----
-5
11
21

query I rowsort
SELECT + + col0 - col1 FROM tab0 cor0
----
-66
66
96

query I rowsort
SELECT ALL - - col0 + - ( + col2 ) * 21 FROM tab1 AS cor0
----
-1154
-1337
-1965

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT + + 44 + - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-2918
SELECT + + 44 + - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2919
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - CAST( - col2 AS SIGNED ) * col2 + 5 )
----

skipif mysql # not compatible
query III rowsort label-2919
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - CAST ( - col2 AS INTEGER ) * col2 + 5 )
----

query II rowsort
SELECT ALL - - col0 AS col1, - col1 AS col2 FROM tab2 AS cor0
----
46
-51
64
-77
75
-67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2921
SELECT * FROM tab1 WHERE - CAST( col0 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-2921
SELECT * FROM tab1 WHERE - CAST ( col0 AS INTEGER ) <= NULL
----

query I rowsort
SELECT DISTINCT col1 * + 69 FROM tab0
----
1449
5589
69

query I rowsort
SELECT 85 + col0 + + + 20 * col0 FROM tab2
----
1051
1429
1660

query I rowsort
SELECT - 21 + - col1 AS col0 FROM tab0
----
-102
-22
-42

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col2 BETWEEN col1 AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-2926
SELECT DISTINCT - col1 DIV + 79 col2, - 12 - - + col0 * col1 AS col1 FROM tab2
----
0
2334
0
4916
0
5013

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2926
SELECT DISTINCT - col1 / + 79 col2, - 12 - - + col0 * col1 AS col1 FROM tab2
----
0
2334
0
4916
0
5013

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT COUNT( 21 ) AS col1 FROM tab2 WHERE NOT NULL NOT IN ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2927
SELECT COUNT ( 21 ) AS col1 FROM tab2 WHERE NOT NULL NOT IN ( col1 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2928
SELECT ALL 49 DIV + col2 FROM tab0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-2928
SELECT ALL 49 / + col2 FROM tab0
----
0
1
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2929
SELECT - ( + CAST( NULL AS SIGNED ) ) + col2 FROM tab0 WHERE NOT + - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2929
SELECT - ( + CAST ( NULL AS INTEGER ) ) + col2 FROM tab0 WHERE NOT + - col1 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + ( - 97 ) AS col0, - col0 FROM tab1
----
-97
-51
-97
-85
-97
-91

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 29 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT ALL SUM( - - col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-2932
SELECT ALL SUM ( - - col0 ) FROM tab0
----
199

query I rowsort
SELECT col0 + + 47 FROM tab1 AS cor0 WHERE NOT ( - col1 ) * + col1 / - col2 + 85 * col0 NOT BETWEEN 72 * - ( 88 / - 67 ) AND - col0 - col1 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2934
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT - 89 + col1 + col2 >= 33
----
2

skipif mysql # not compatible
query I rowsort label-2934
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT - 89 + col1 + col2 >= 33
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2935
SELECT MIN( DISTINCT + ( - + col0 ) ) AS col0 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2935
SELECT MIN ( DISTINCT + ( - + col0 ) ) AS col0 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT + ( + - 21 ) FROM tab0 AS cor0
----
-21
-21
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-2937
SELECT ALL 55 DIV + - 83 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2937
SELECT ALL 55 / + - 83 AS col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2938
SELECT DISTINCT + 51 * - 11 * + MAX( DISTINCT + 47 ) AS col0 FROM tab2
----
-26367

skipif mysql # not compatible
query I rowsort label-2938
SELECT DISTINCT + 51 * - 11 * + MAX ( DISTINCT + 47 ) AS col0 FROM tab2
----
-26367

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col0 + + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL = - ( + - 85 ) + col2 + 43
----
0

skipif mysql # not compatible
query I rowsort label-2940
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL = - ( + - 85 ) + col2 + 43
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col2 + + - col1 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2941
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col2 + + - col1 NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2942
SELECT COUNT( * ) + + ( + + 16 ), CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
19
NULL

skipif mysql # not compatible
query II rowsort label-2942
SELECT COUNT ( * ) + + ( + + 16 ), CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
19
NULL

query I rowsort
SELECT - + 16 + + col0 - + col2 FROM tab0 AS cor0
----
-18
-48
61

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 + col0 = ( 75 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col2 > NULL AND NOT ( NULL ) IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT - MAX( DISTINCT - 81 ) FROM tab0 WHERE NOT col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2946
SELECT - MAX ( DISTINCT - 81 ) FROM tab0 WHERE NOT col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2947
SELECT + 79 AS col1, + COUNT( * ) * - SUM( ALL + col2 ) AS col1 FROM tab1
----
79
-669

skipif mysql # not compatible
query II rowsort label-2947
SELECT + 79 AS col1, + COUNT ( * ) * - SUM ( ALL + col2 ) AS col1 FROM tab1
----
79
-669

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col2 / ( + col2 ) + - col0 ) < - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2949
SELECT ALL CAST( 50 AS SIGNED ) + + col1 AS col2 FROM tab0
----
131
51
71

skipif mysql # not compatible
query I rowsort label-2949
SELECT ALL CAST ( 50 AS INTEGER ) + + col1 AS col2 FROM tab0
----
131
51
71

query II rowsort
SELECT DISTINCT + col0, col1 AS col1 FROM tab2
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query II rowsort label-2951
SELECT + 20 col1, - MIN( DISTINCT + 79 ) FROM tab0
----
20
-79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2951
SELECT + 20 col1, - MIN ( DISTINCT + 79 ) FROM tab0
----
20
-79

query I rowsort
SELECT ALL 47 + - 37 + col0 - + 69 + - 25 AS col1 FROM tab2 AS cor0
----
-20
-38
-9

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 * - - col2 >= 6 * + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 83 IS NOT NULL
----

query II rowsort
SELECT col1 AS col1, + col1 AS col2 FROM tab1 cor0
----
14
14
47
47
5
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2956
SELECT - col1 - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2956
SELECT - col1 - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = ( col2 + col0 * + - col1 / col1 )
----

query I rowsort
SELECT DISTINCT - ( + ( + - ( - - col0 ) ) ) AS col2 FROM tab1
----
51
85
91

query I rowsort
SELECT - col1 * + col2 + 75 AS col0 FROM tab2
----
-1098
-3005
-3811

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2960
SELECT - CAST( - - 57 AS SIGNED ) DIV - 55 + - col2 col0 FROM tab0 cor0
----
-46
-9
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2960
SELECT - CAST ( - - 57 AS INTEGER ) / - 55 + - col2 col0 FROM tab0 cor0
----
-46
-9
-98

query I rowsort
SELECT DISTINCT - col2 * - ( - col2 ) - + col2 AS col2 FROM tab1 AS cor0
----
-3540
-4692
-9312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2962
SELECT - CAST( + + COUNT( DISTINCT + col0 ) AS SIGNED ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2962
SELECT - CAST ( + + COUNT ( DISTINCT + col0 ) AS INTEGER ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT ( + SUM( - col1 ) ) AS col1 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-2963
SELECT ( + SUM ( - col1 ) ) AS col1 FROM tab0 AS cor0
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2964
SELECT * FROM tab2 AS cor0 WHERE - 84 / CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2964
SELECT * FROM tab2 AS cor0 WHERE - 84 / CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT ALL COUNT( * ) * COUNT( - ( - col1 ) ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2965
SELECT ALL COUNT ( * ) * COUNT ( - ( - col1 ) ) FROM tab0 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2966
SELECT * FROM tab2 WHERE NOT ( + - CAST( 25 AS SIGNED ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2966
SELECT * FROM tab2 WHERE NOT ( + - CAST ( 25 AS INTEGER ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2967
SELECT ALL - col0 DIV col2 AS col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2967
SELECT ALL - col0 / col2 AS col2 FROM tab1
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT DISTINCT + MAX( DISTINCT - 31 ) AS col0 FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-2968
SELECT DISTINCT + MAX ( DISTINCT - 31 ) AS col0 FROM tab1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT + SUM( ALL - 16 ) FROM tab1 WHERE NOT 69 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2969
SELECT + SUM ( ALL - 16 ) FROM tab1 WHERE NOT 69 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2970
SELECT ALL ( + CAST( - ( - COUNT( * ) ) AS SIGNED ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2970
SELECT ALL ( + CAST ( - ( - COUNT ( * ) ) AS INTEGER ) ) AS col2 FROM tab2
----
3

query I rowsort
SELECT ALL - 45 + - col1 FROM tab2 WHERE NOT NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2972
SELECT 3 * + 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-2972
SELECT 3 * + CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT - 43, 57 AS col2 FROM tab0 AS cor0
----
-43
57
-43
57
-43
57

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + 7 + + col0 IS NULL
----

query I rowsort
SELECT ALL + - col2 * - + col0 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2976
SELECT DISTINCT + - col0 AS col2 FROM tab2 cor0 WHERE CAST( NULL AS SIGNED ) <= col1
----

skipif mysql # not compatible
query I rowsort label-2976
SELECT DISTINCT + - col0 AS col2 FROM tab2 cor0 WHERE CAST ( NULL AS INTEGER ) <= col1
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2977
SELECT ALL + + SUM( CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2977
SELECT ALL + + SUM ( CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col2 / - 77 AS col0 FROM tab1 AS cor0 WHERE NOT + 99 * + ( col1 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL + 50 + + 71 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to dfa0f831d17333454e95a98d4cb1bd0f

onlyif mysql # aggregate syntax: 
query I rowsort label-2981
SELECT ALL - + 96 + COUNT( * ) col1 FROM tab2 AS cor0
----
-93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2981
SELECT ALL - + 96 + COUNT ( * ) col1 FROM tab2 AS cor0
----
-93

query I rowsort
SELECT - + 7 * + ( + - col1 ) AS col2 FROM tab0 AS cor0
----
147
567
7

onlyif mysql # DIV for integer division: 
query I rowsort label-2983
SELECT DISTINCT + + col1 DIV + 99 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2983
SELECT DISTINCT + + col1 / + 99 AS col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 < ( - 8 * col1 * col2 + + + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 <> + - col1 + - col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( 22 ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2987
SELECT * FROM tab0 AS cor0 WHERE + col0 + CAST( + 57 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2987
SELECT * FROM tab0 AS cor0 WHERE + col0 + CAST ( + 57 AS INTEGER ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 + - + col0 > - 27
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2989
SELECT - + col0 + - 92 AS col1 FROM tab0 WHERE + CAST( - - col1 AS SIGNED ) / + + col2 + - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2989
SELECT - + col0 + - 92 AS col1 FROM tab0 WHERE + CAST ( - - col1 AS INTEGER ) / + + col2 + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT - MIN( + - 82 ) + - 28 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-2990
SELECT - MIN ( + - 82 ) + - 28 FROM tab0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2991
SELECT CAST( + col1 AS SIGNED ) + - - 89 AS col2 FROM tab0
----
110
170
90

skipif mysql # not compatible
query I rowsort label-2991
SELECT CAST ( + col1 AS INTEGER ) + - - 89 AS col2 FROM tab0
----
110
170
90

query I rowsort
SELECT + col2 + 67 FROM tab2
----
107
125
90

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NULL >= + col0
----

query I rowsort
SELECT - - 98 + + 68 + - 53 FROM tab0 AS cor0
----
113
113
113

query I rowsort
SELECT DISTINCT col0 + + 52 FROM tab1 AS cor0 WHERE NOT ( ( NULL IS NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2996
SELECT DISTINCT * FROM tab1 WHERE NOT - - CAST( CAST( - - 91 AS SIGNED ) AS SIGNED ) <> ( + 4 + + + 99 / - col2 )
----

skipif mysql # not compatible
query III rowsort label-2996
SELECT DISTINCT * FROM tab1 WHERE NOT - - CAST ( CAST ( - - 91 AS INTEGER ) AS INTEGER ) <> ( + 4 + + + 99 / - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2997
SELECT ALL - CAST( + + COUNT( * ) AS SIGNED ) FROM tab0 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2997
SELECT ALL - CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab0 WHERE NOT NULL >= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2998
SELECT col0 - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2998
SELECT col0 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col0 AS col0, ( + col1 ) * col1 FROM tab0 AS cor0
----
15
6561
87
441
97
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 70 IN ( + + 8 / - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 22 / - col0 IS NULL
----

query II rowsort
SELECT + - col0 AS col2, - col0 FROM tab0 AS cor0
----
-15
-15
-87
-87
-97
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 49 * + - col1 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT - col1 AS col2, 23 FROM tab0 AS cor0
----
-1
23
-21
23
-81
23

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 35 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 * + col0 * - - col2 AS col1 FROM tab2
----
-102400
-24334
-252300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3007
SELECT ( + - 49 ) * - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3007
SELECT ( + - 49 ) * - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3008
SELECT ALL + ( + COUNT( * ) ) FROM tab1 WHERE NOT + + col2 + - 79 * + - ( - + 94 ) + - - 33 = - col0
----
3

skipif mysql # not compatible
query I rowsort label-3008
SELECT ALL + ( + COUNT ( * ) ) FROM tab1 WHERE NOT + + col2 + - 79 * + - ( - + 94 ) + - - 33 = - col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3009
SELECT - SUM( ALL - col0 ) AS col2 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-3009
SELECT - SUM ( ALL - col0 ) AS col2 FROM tab1
----
227

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT ALL 56 * - ( - col1 ) FROM tab2
----
2856
3752
4312

onlyif mysql # aggregate syntax: 
query I rowsort label-3012
SELECT ALL COUNT( * ) AS col2 FROM tab2 WHERE ( NOT 53 <= NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3012
SELECT ALL COUNT ( * ) AS col2 FROM tab2 WHERE ( NOT 53 <= NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT DISTINCT COUNT( * ) * + ( + COUNT( * ) ) * + COUNT( * ) AS col0 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-3013
SELECT DISTINCT COUNT ( * ) * + ( + COUNT ( * ) ) * + COUNT ( * ) AS col0 FROM tab2
----
27

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 - 15 - - - 49 * + col2 * - col1 > ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3015
SELECT ALL + + 27 DIV col2 FROM tab0 cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-3015
SELECT ALL + + 27 / col2 FROM tab0 cor0
----
0
0
2

query I rowsort
SELECT + + 53 AS col1 FROM tab2 AS cor0
----
53
53
53

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( + 68 ) IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # DIV for integer division: 
query I rowsort label-3018
SELECT DISTINCT col0 DIV - col1 + + 93 + - - col2 AS col1 FROM tab2
----
116
133
150

skipif mysql # not compatible
query I rowsort label-3018
SELECT DISTINCT col0 / - col1 + + 93 + - - col2 AS col1 FROM tab2
----
116
133
150

query I rowsort
SELECT ALL + ( - - ( + 65 ) ) + col1 AS col0 FROM tab1
----
112
70
79

query I rowsort
SELECT DISTINCT - 92 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3021
SELECT DISTINCT + ( + col2 ) / - col1 + 76 + + ( + col0 ) / - + 88 * col0 + 92 / + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3021
SELECT DISTINCT + ( + col2 ) / - col1 + 76 + + ( + col0 ) / - + 88 * col0 + 92 / + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL + col2 * - - col1 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # DIV for integer division: 
query I rowsort label-3023
SELECT DISTINCT - - col2 DIV + 52 AS col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3023
SELECT DISTINCT - - col2 / + 52 AS col1 FROM tab2 AS cor0
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3024
SELECT - + col0 DIV - - 20 + + 35 FROM tab2 cor0
----
32
32
33

skipif mysql # not compatible
query I rowsort label-3024
SELECT - + col0 / - - 20 + + 35 FROM tab2 cor0
----
32
32
33

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + ( + - 80 ) + 39 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3026
SELECT DISTINCT * FROM tab2 cor0 WHERE 94 + - col1 - - CAST( NULL AS SIGNED ) / + col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3026
SELECT DISTINCT * FROM tab2 cor0 WHERE 94 + - col1 - - CAST ( NULL AS INTEGER ) / + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3027
SELECT ALL CAST( NULL AS SIGNED ), - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3027
SELECT ALL CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT DISTINCT - SUM( + col0 ) AS col1 FROM tab1 WHERE NOT + col0 / + ( col0 ) * + col1 - + - 56 BETWEEN - col1 AND - - col0 * - - col2 * col1 * - col0
----
-227

skipif mysql # not compatible
query I rowsort label-3028
SELECT DISTINCT - SUM ( + col0 ) AS col1 FROM tab1 WHERE NOT + col0 / + ( col0 ) * + col1 - + - 56 BETWEEN - col1 AND - - col0 * - - col2 * col1 * - col0
----
-227

query I rowsort
SELECT ALL - 34 + + - col1 + - - 6 FROM tab0
----
-109
-29
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col1 col0 FROM tab2
----
28
37
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3031
SELECT DISTINCT + 61 DIV COUNT( * ) + - 16 + - COUNT( * ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3031
SELECT DISTINCT + 61 / COUNT ( * ) + - 16 + - COUNT ( * ) AS col2 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3032
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE NULL <> + col0 * + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-3032
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NULL <> + col0 * + CAST ( NULL AS REAL )
----

query I rowsort
SELECT ALL + col2 * + ( - 89 ) * col0 + - col1 AS col2 FROM tab2
----
-227917
-387217
-94213

query I rowsort
SELECT DISTINCT + ( + 63 ) * + 49 - + ( + col2 ) + 57 + - col1 FROM tab1 AS cor0
----
3029
3034
3080

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT + COUNT( * ) * + + 89 col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
801

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3035
SELECT + COUNT ( * ) * + + 89 col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
801

query I rowsort
SELECT DISTINCT + + 73 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3037
SELECT DISTINCT COUNT( + 24 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3037
SELECT DISTINCT COUNT ( + 24 ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3038
SELECT + MIN( - 83 ) AS col1 FROM tab2 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-3038
SELECT + MIN ( - 83 ) AS col1 FROM tab2 AS cor0
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-3039
SELECT - col1 DIV col1 * col1 + + 11 + - col0 AS col0 FROM tab0 AS cor0
----
-85
-87
-97

skipif mysql # not compatible
query I rowsort label-3039
SELECT - col1 / col1 * col1 + + 11 + - col0 AS col0 FROM tab0 AS cor0
----
-85
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT DISTINCT - + COUNT( + 33 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3040
SELECT DISTINCT - + COUNT ( + 33 ) AS col0 FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, + col0 * + col2 + col1 + + ( + 58 ) FROM tab1 AS cor0
----
59
5078
68
6293
96
4968

query II rowsort
SELECT ALL col2 AS col2, + col0 FROM tab0
----
10
87
47
15
99
97

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col0 <= + col1 - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT ALL MIN( - col0 ) col1 FROM tab0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3044
SELECT ALL MIN ( - col0 ) col1 FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT ( - MIN( ALL col1 ) ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-3045
SELECT ( - MIN ( ALL col1 ) ) AS col0 FROM tab0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3046
SELECT + CAST( NULL AS SIGNED ) * + MAX( DISTINCT col0 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3046
SELECT + CAST ( NULL AS INTEGER ) * + MAX ( DISTINCT col0 ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3047
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3047
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= + CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 87 * - col1 col2 FROM tab1
----
-1218
-4089
-435

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3049
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0, col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-3049
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 73 col1 FROM tab0
----
3431
7227
730

query I rowsort
SELECT + - ( + col0 ) * - 60 AS col2 FROM tab0 AS cor0
----
5220
5820
900

query II rowsort
SELECT + 84 * - + col1 AS col0, + col0 AS col1 FROM tab1 AS cor0
----
-1176
51
-3948
91
-420
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3053
SELECT ALL + MIN( + CAST( + + col1 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3053
SELECT ALL + MIN ( + CAST ( + + col1 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL + 4 AS col2 FROM tab1 WHERE NULL BETWEEN 15 AND + + ( - - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3055
SELECT - CAST( - - 98 AS SIGNED ) * + ( col0 ) + + - col1 * - col0 FROM tab0
----
-255
-6699
-9409

skipif mysql # not compatible
query I rowsort label-3055
SELECT - CAST ( - - 98 AS INTEGER ) * + ( col0 ) + + - col1 * - col0 FROM tab0
----
-255
-6699
-9409

query I rowsort
SELECT + - 31 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query I rowsort
SELECT 30 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3058
SELECT DISTINCT col1 + - CAST( - col2 AS SIGNED ) FROM tab2
----
117
125
74

skipif mysql # not compatible
query I rowsort label-3058
SELECT DISTINCT col1 + - CAST ( - col2 AS INTEGER ) FROM tab2
----
117
125
74

query I rowsort
SELECT ALL + 3 + + - col0 * 97 AS col0 FROM tab1 AS cor0
----
-4944
-8242
-8824

query I rowsort
SELECT col1 * + + col2 + - 12 FROM tab0 AS cor0
----
198
3795
87

query I rowsort
SELECT - - col0 * + col0 * + col2 * - col0 AS col1 FROM tab1 AS cor0
----
-12734496
-36233375
-51242828

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL > col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 - - col0 AS col1, + col1 col1 FROM tab1 AS cor0
----
0
14
0
47
0
5

query I rowsort
SELECT + - col0 FROM tab2 WHERE ( ( NOT ( NOT ( 0 IS NOT NULL ) ) ) )
----
-46
-64
-75

query I rowsort
SELECT - 45 + - + col0 - - 36 + - col1 * 81 FROM tab0
----
-1797
-187
-6585

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT 86 * - - 9 NOT IN ( - 98 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3067
SELECT ALL + 91 + + ( - COUNT( * ) ) AS col0 FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-3067
SELECT ALL + 91 + + ( - COUNT ( * ) ) AS col0 FROM tab1
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3068
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT NULL NOT IN ( - col0 * CAST( + col2 AS SIGNED ), + 93 ) )
----

skipif mysql # not compatible
query III rowsort label-3068
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT NULL NOT IN ( - col0 * CAST ( + col2 AS INTEGER ), + 93 ) )
----

query III rowsort
SELECT * FROM tab1 WHERE - + 35 NOT IN ( - + col1, 24 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - 28 AS col2 FROM tab2 WHERE + - col2 + col2 + - col1 IS NOT NULL
----
-28
-28
-28

query I rowsort
SELECT DISTINCT + col1 - + 70 FROM tab1 AS cor0
----
-23
-56
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-3072
SELECT - col0 * - col0 DIV + col0 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-3072
SELECT - col0 * - col0 / + col0 FROM tab0 AS cor0
----
15
87
97

query II rowsort
SELECT - - 34, 42 * col1 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) >= NULL
----

query II rowsort
SELECT ALL col1, col2 AS col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3075
SELECT MAX( ALL + + CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3075
SELECT MAX ( ALL + + CAST ( NULL AS REAL ) ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT SUM( DISTINCT 87 ) AS col0 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-3076
SELECT SUM ( DISTINCT 87 ) AS col0 FROM tab0
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-3077
SELECT DISTINCT + 1 DIV 75 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3077
SELECT DISTINCT + 1 / 75 AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3078
SELECT ALL COUNT( + 71 ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3078
SELECT ALL COUNT ( + 71 ) AS col2 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT - + MAX( col0 ) AS col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3079
SELECT - + MAX ( col0 ) AS col2 FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3080
SELECT ALL SUM( - + 18 ) FROM tab0
----
-54

skipif mysql # not compatible
query I rowsort label-3080
SELECT ALL SUM ( - + 18 ) FROM tab0
----
-54

query II rowsort
SELECT col0, col0 AS col1 FROM tab2
----
46
46
64
64
75
75

query I rowsort
SELECT DISTINCT + 90 * 74 + + + 80 + - col1 + + col0 * + ( + - 50 ) FROM tab2 AS cor0 WHERE NOT NULL > - 7
----

query II rowsort
SELECT DISTINCT - - 39 AS col2, - 21 * 96 + col2 AS col1 FROM tab1 AS cor0
----
39
-1920
39
-1948
39
-1957

query I rowsort
SELECT ALL 82 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3085
SELECT ( - + col0 ) + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3085
SELECT ( - + col0 ) + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 80 + - 77 + - + 54 AS col0 FROM tab2 cor0
----
-211
-211
-211

query I rowsort
SELECT + 85 + - col1 FROM tab1 AS cor0
----
38
71
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT ALL + MAX( ALL - + ( - - col0 ) ) FROM tab0 cor0 WHERE NOT - 35 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3088
SELECT ALL + MAX ( ALL - + ( - - col0 ) ) FROM tab0 cor0 WHERE NOT - 35 < NULL
----
NULL

query I rowsort
SELECT - + 3 * - 42 * + col1 AS col2 FROM tab0 AS cor0
----
10206
126
2646

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 70 NOT IN ( - ( col1 ), + col2 + col1 )
----

query I rowsort
SELECT - + 84 AS col2 FROM tab1 WHERE NULL IS NULL
----
-84
-84
-84

query II rowsort
SELECT DISTINCT - ( col2 ) + - + col0 AS col2, + col1 FROM tab2
----
-104
77
-133
67
-69
51

onlyif mysql # DIV for integer division: 
query I rowsort label-3093
SELECT DISTINCT col1 DIV 19 * + + col1 * 77 FROM tab2
----
15477
23716
7854

skipif mysql # not compatible
query I rowsort label-3093
SELECT DISTINCT col1 / 19 * + + col1 * 77 FROM tab2
----
15477
23716
7854

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT DISTINCT COUNT( * ) + - 50 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-3094
SELECT DISTINCT COUNT ( * ) + - 50 FROM tab1
----
-47

query I rowsort
SELECT col0 * - col1 - + 83 FROM tab2
----
-2429
-5011
-5108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3096
SELECT DISTINCT - CAST( - col1 AS SIGNED ) - 35 + 56 FROM tab2 AS cor0
----
72
88
98

skipif mysql # not compatible
query I rowsort label-3096
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) - 35 + 56 FROM tab2 AS cor0
----
72
88
98

query II rowsort
SELECT + col1 + - + col1, - col2 AS col1 FROM tab0 AS cor0
----
0
-10
0
-47
0
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-3098
SELECT DISTINCT + 13 * - - MAX( - col1 ), + 32 col1 FROM tab2 AS cor0
----
-663
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3098
SELECT DISTINCT + 13 * - - MAX ( - col1 ), + 32 col1 FROM tab2 AS cor0
----
-663
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col1, - col2 AS col0 FROM tab2
----
23
-23
40
-40
58
-58

query I rowsort
SELECT - 99 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3102
SELECT + + MAX( + 87 ) FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-3102
SELECT + + MAX ( + 87 ) FROM tab2 AS cor0
----
87

query I rowsort
SELECT DISTINCT - - 12 + 24 + col1 + + col2 FROM tab1 cor0 WHERE NOT col0 IS NULL
----
100
146
151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3104
SELECT ALL - col2 * - col2 * + col0 + - ( CAST( + col2 AS SIGNED ) ) + - col2 FROM tab0 AS cor0
----
33041
8680
950499

skipif mysql # not compatible
query I rowsort label-3104
SELECT ALL - col2 * - col2 * + col0 + - ( CAST ( + col2 AS INTEGER ) ) + - col2 FROM tab0 AS cor0
----
33041
8680
950499

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( col1, + col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3106
SELECT DISTINCT COUNT( * ) DIV - MAX( - + col1 ) + + - MIN( 78 ) FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-3106
SELECT DISTINCT COUNT ( * ) / - MAX ( - + col1 ) + + - MIN ( 78 ) FROM tab1 AS cor0
----
-78

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) > 82 / - + col0 * col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 1 * 19 NOT BETWEEN ( NULL ) AND - 2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3109
SELECT DISTINCT + - 69 AS col2, ( - col0 ) DIV + 2 FROM tab1 AS cor0
----
-69
-25
-69
-42
-69
-45

skipif mysql # not compatible
query II rowsort label-3109
SELECT DISTINCT + - 69 AS col2, ( - col0 ) / + 2 FROM tab1 AS cor0
----
-69
-25
-69
-42
-69
-45

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + 31 * - col2 * + 96 * 49 ) BETWEEN 25 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3111
SELECT COUNT( * ) FROM tab1 WHERE NOT + col2 + + - col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3111
SELECT COUNT ( * ) FROM tab1 WHERE NOT + col2 + + - col2 IS NULL
----
3

query I rowsort
SELECT ALL ( ( - - col2 ) ) * - + col1 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT ALL MAX( DISTINCT + ( - col1 ) ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-3113
SELECT ALL MAX ( DISTINCT + ( - col1 ) ) FROM tab1
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3114
SELECT * FROM tab0 WHERE NOT ( ( ( + CAST( + 40 AS SIGNED ) * - - col0 ) < NULL ) )
----

skipif mysql # not compatible
query III rowsort label-3114
SELECT * FROM tab0 WHERE NOT ( ( ( + CAST ( + 40 AS INTEGER ) * - - col0 ) < NULL ) )
----

query I rowsort
SELECT DISTINCT col1 + + col0 * + + col1 + - col2 FROM tab1
----
371
4256
632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3116
SELECT + ( - CAST( + + COUNT( * ) AS SIGNED ) ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3116
SELECT + ( - CAST ( + + COUNT ( * ) AS INTEGER ) ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT 36 * + ( - 53 ) FROM tab0
----
-1908
-1908
-1908

query I rowsort
SELECT - 32 * - - col2 * + + col0 AS col2 FROM tab2
----
-139200
-33856
-81920

query I rowsort
SELECT col1 + 13 - - 88 FROM tab2 AS cor0
----
152
168
178

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3120
SELECT ALL + SUM( ALL - 47 ) + + COUNT( * ) + + COUNT( * ) DIV - - ( 75 ) FROM tab2
----
-138

skipif mysql # not compatible
query I rowsort label-3120
SELECT ALL + SUM ( ALL - 47 ) + + COUNT ( * ) + + COUNT ( * ) / - - ( 75 ) FROM tab2
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT DISTINCT - + 20 * - + COUNT( * ) + + 52 FROM tab0 AS cor0
----
112

skipif mysql # not compatible
query I rowsort label-3121
SELECT DISTINCT - + 20 * - + COUNT ( * ) + + 52 FROM tab0 AS cor0
----
112

query I rowsort
SELECT + ( + 4 ) AS col0 FROM tab1 AS cor0
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3123
SELECT MIN( DISTINCT + + 1 ) - + 19 FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-3123
SELECT MIN ( DISTINCT + + 1 ) - + 19 FROM tab2 AS cor0
----
-18

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 IN ( - + 36, 29 * + - col0 )
----

query I rowsort
SELECT ALL + col1 - + + ( - + col1 ) FROM tab1 cor0
----
10
28
94

query II rowsort
SELECT DISTINCT 98 * col0 + + col2 * col0, + col0 FROM tab1
----
13345
85
15106
91
9894
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3127
SELECT ALL - ( + COUNT( - col2 ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3127
SELECT ALL - ( + COUNT ( - col2 ) ) AS col2 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3128
SELECT 43 * - ( - COUNT( * ) ) + COUNT( * ) FROM tab0
----
132

skipif mysql # not compatible
query I rowsort label-3128
SELECT 43 * - ( - COUNT ( * ) ) + COUNT ( * ) FROM tab0
----
132

query I rowsort
SELECT ALL col1 + + + col2 + - col0 * - col2 - - col1 FROM tab0
----
914
922
9704

onlyif mysql # aggregate syntax: 
query I rowsort label-3130
SELECT DISTINCT MIN( + col1 ) AS col2 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-3130
SELECT DISTINCT MIN ( + col1 ) AS col2 FROM tab2
----
51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * + 52 + - + 43 + 34 - col1 NOT BETWEEN NULL AND - 30
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
14
47
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col1 + ( + ( - 29 ) ) ) NOT BETWEEN 80 AND NULL
----

query I rowsort
SELECT ALL + col0 * - ( 43 ) + + + col2 FROM tab1 cor0
----
-2097
-3596
-3845

query I rowsort
SELECT 18 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT ALL + COUNT( DISTINCT 6 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3136
SELECT ALL + COUNT ( DISTINCT 6 ) FROM tab1
----
1

query II rowsort
SELECT - col0, - 9 AS col1 FROM tab1
----
-51
-9
-85
-9
-91
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT DISTINCT 61 * - COUNT( * ) FROM tab0 WHERE + + col2 <= col0
----
-61

skipif mysql # not compatible
query I rowsort label-3138
SELECT DISTINCT 61 * - COUNT ( * ) FROM tab0 WHERE + + col2 <= col0
----
-61

query I rowsort
SELECT col0 * 86 AS col0 FROM tab2
----
3956
5504
6450

onlyif mysql # DIV for integer division: 
query I rowsort label-3140
SELECT ALL 70 DIV - + col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3140
SELECT ALL 70 / - + col0 FROM tab1
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3141
SELECT - col1 AS col2, ( + CAST( + col1 AS SIGNED ) ) FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

skipif mysql # not compatible
query II rowsort label-3141
SELECT - col1 AS col2, ( + CAST ( + col1 AS INTEGER ) ) FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

onlyif mysql # aggregate syntax: 
query II rowsort label-3142
SELECT DISTINCT - COUNT( * ) AS col1, + 50 AS col0 FROM tab0 AS cor0
----
-3
50

skipif mysql # not compatible
query II rowsort label-3142
SELECT DISTINCT - COUNT ( * ) AS col1, + 50 AS col0 FROM tab0 AS cor0
----
-3
50

query I rowsort
SELECT col0 * - col2 + + - col1 FROM tab2
----
-1109
-2637
-4417

query II rowsort
SELECT DISTINCT + 90 + col1, col1 + - col1 AS col1 FROM tab2
----
141
0
157
0
167
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 2 * - col1 col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 - - + 11 FROM tab1 AS cor0
----
102
62
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3147
SELECT - + ( - - CAST( NULL AS SIGNED ) ) + col1 - + 44, col0 AS col1 FROM tab0 cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-3147
SELECT - + ( - - CAST ( NULL AS INTEGER ) ) + col1 - + 44, col0 AS col1 FROM tab0 cor0
----
NULL
15
NULL
87
NULL
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 43 + col1 < NULL
----

query I rowsort
SELECT + - 28 AS col0 FROM tab1 AS cor0
----
-28
-28
-28

query I rowsort
SELECT ALL + col2 - col0 AS col2 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT ALL + 11 AS col0 FROM tab1 cor0 WHERE NOT NULL >= - col1 / ( - col0 ) + - 64 + 91 * + 59
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3152
SELECT COUNT( * ) - + COUNT( * ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3152
SELECT COUNT ( * ) - + COUNT ( * ) AS col2 FROM tab1
----
0

query III rowsort
SELECT * FROM tab1 WHERE col2 <> + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 22 col1 FROM tab2
----
22
22
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3155
SELECT COUNT( * ) DIV + 99 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3155
SELECT COUNT ( * ) / + 99 AS col1 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3156
SELECT DISTINCT * FROM tab2 WHERE - 68 * - + col0 + + CAST( NULL AS SIGNED ) + - - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3156
SELECT DISTINCT * FROM tab2 WHERE - 68 * - + col0 + + CAST ( NULL AS INTEGER ) + - - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 * - col2 col0 FROM tab0
----
-1584
-160
-752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3158
SELECT + + CAST( NULL AS SIGNED ) * + COUNT( ALL col2 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3158
SELECT + + CAST ( NULL AS INTEGER ) * + COUNT ( ALL col2 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3159
SELECT - - 84 AS col2, COUNT( * ) AS col2 FROM tab0 AS cor0
----
84
3

skipif mysql # not compatible
query II rowsort label-3159
SELECT - - 84 AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
84
3

query II rowsort
SELECT col2, 72 FROM tab2 cor0 WHERE NOT col2 IS NULL
----
23
72
40
72
58
72

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3162
SELECT + 87 AS col2, - COUNT( * ) FROM tab0
----
87
-3

skipif mysql # not compatible
query II rowsort label-3162
SELECT + 87 AS col2, - COUNT ( * ) FROM tab0
----
87
-3

query I rowsort
SELECT - + 7 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query II rowsort
SELECT ALL + - col1, + col1 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

query I rowsort
SELECT 7 * col0 FROM tab0 AS cor0
----
105
609
679

query I rowsort
SELECT ALL - col1 * - - col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT DISTINCT - 14 * - + COUNT( * ) FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-3167
SELECT DISTINCT - 14 * - + COUNT ( * ) FROM tab0 AS cor0
----
42

query II rowsort
SELECT DISTINCT + + 12, + col2 FROM tab2 AS cor0
----
12
23
12
40
12
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3169
SELECT ALL - + SUM( + col1 ) DIV + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-3169
SELECT ALL - + SUM ( + col1 ) / + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3170
SELECT ALL MIN( ALL - 62 ) FROM tab0 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-3170
SELECT ALL MIN ( ALL - 62 ) FROM tab0 AS cor0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3171
SELECT ALL MAX( + ( - + 98 ) ) AS col0 FROM tab0 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-3171
SELECT ALL MAX ( + ( - + 98 ) ) AS col0 FROM tab0 AS cor0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3172
SELECT ALL + MIN( + - col0 ) + - 62 AS col0 FROM tab2
----
-137

skipif mysql # not compatible
query I rowsort label-3172
SELECT ALL + MIN ( + - col0 ) + - 62 AS col0 FROM tab2
----
-137

onlyif mysql # DIV for integer division: 
query II rowsort label-3173
SELECT DISTINCT col1 + + 3, 69 DIV col1 + - col2 AS col1 FROM tab1
----
17
-92
50
-67
8
-46

skipif mysql # not compatible
query II rowsort label-3173
SELECT DISTINCT col1 + + 3, 69 / col1 + - col2 AS col1 FROM tab1
----
17
-92
50
-67
8
-46

query I rowsort
SELECT + col0 + + - col0 + col0 * + + 37 AS col0 FROM tab2
----
1702
2368
2775

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3175
SELECT CAST( + col1 AS SIGNED ) + + + col1 + col2 - - + 2 FROM tab2
----
127
194
196

skipif mysql # not compatible
query I rowsort label-3175
SELECT CAST ( + col1 AS INTEGER ) + + + col1 + col2 - - + 2 FROM tab2
----
127
194
196

query I rowsort
SELECT + - col1 + + 97 AS col2 FROM tab0 AS cor0
----
16
76
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 23 + 66 col2 FROM tab2 cor0
----
135
153
164

query II rowsort
SELECT + - col2 + + + col1, + col1 AS col2 FROM tab1 AS cor0
----
-21
47
-54
5
-82
14

query I rowsort
SELECT ALL + col0 - + + col0 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 * + + col1 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT 32 - col0 AS col2 FROM tab0 AS cor0
----
-55
-65
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 - - col1 * - 47 AS col0, col2 col2 FROM tab2 AS cor0
----
-2443
23
-3224
58
-3683
40

query I rowsort
SELECT + 47 FROM tab0 AS cor0 WHERE 87 - - col2 IS NOT NULL
----
47
47
47

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL > - col2 / + 60
----

query I rowsort
SELECT DISTINCT - - col1 - + - 40 + 82 FROM tab1 AS cor0
----
127
136
169

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3186
SELECT DISTINCT ( - col0 ) * - + col2 + - CAST( NULL AS SIGNED ) AS col0, ( - col0 ) * ( - col1 ) AS col2 FROM tab2 AS cor0
----
NULL
2346
NULL
4928
NULL
5025

skipif mysql # not compatible
query II rowsort label-3186
SELECT DISTINCT ( - col0 ) * - + col2 + - CAST ( NULL AS INTEGER ) AS col0, ( - col0 ) * ( - col1 ) AS col2 FROM tab2 AS cor0
----
NULL
2346
NULL
4928
NULL
5025

onlyif mysql # aggregate syntax: 
query II rowsort label-3187
SELECT ALL + COUNT( * ) AS col1, 47 + - COUNT( * ) + + 70 AS col0 FROM tab2 AS cor0
----
3
114

skipif mysql # not compatible
query II rowsort label-3187
SELECT ALL + COUNT ( * ) AS col1, 47 + - COUNT ( * ) + + 70 AS col0 FROM tab2 AS cor0
----
3
114

query I rowsort
SELECT + 63 AS col1 FROM tab2 AS cor0 WHERE NOT NULL < 58 * - col2 * 75
----

query II rowsort
SELECT + ( + 48 ), + col0 AS col1 FROM tab2
----
48
46
48
64
48
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT - COUNT( ALL - - col2 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3190
SELECT - COUNT ( ALL - - col2 ) AS col0 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3191
SELECT MAX( DISTINCT col0 ) AS col1 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-3191
SELECT MAX ( DISTINCT col0 ) AS col1 FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT ALL SUM( ALL + 35 ) AS col1 FROM tab0
----
105

skipif mysql # not compatible
query I rowsort label-3192
SELECT ALL SUM ( ALL + 35 ) AS col1 FROM tab0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-3193
SELECT 50 * + MAX( ALL - col1 ) FROM tab1
----
-250

skipif mysql # not compatible
query I rowsort label-3193
SELECT 50 * + MAX ( ALL - col1 ) FROM tab1
----
-250

query I rowsort
SELECT ( - ( col0 ) ) * - col2 * + col2 * - col0 AS col0 FROM tab2
----
-1119364
-18922500
-6553600

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3195
SELECT + 24 * + CAST( NULL AS SIGNED ) AS col0, col2 AS col0 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-3195
SELECT + 24 * + CAST ( NULL AS INTEGER ) AS col0, col2 AS col0 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + col1 * col2, + col0 + + 22 * + + col0 col2, 31 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3197
SELECT + CAST( NULL AS SIGNED ) AS col2, - col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT - CAST( NULL AS SIGNED ) * - - col0 * - col0 >= NULL )
----

skipif mysql # not compatible
query II rowsort label-3197
SELECT + CAST ( NULL AS INTEGER ) AS col2, - col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT - CAST ( NULL AS INTEGER ) * - - col0 * - col0 >= NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3198
SELECT ALL + CAST( - - col1 AS SIGNED ) AS col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3198
SELECT ALL + CAST ( - - col1 AS INTEGER ) AS col2 FROM tab0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) col0 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3200
SELECT + + SUM( ALL - col2 ) + + 71 + + + MIN( ALL - col2 ) - + - MIN( + - col2 ) FROM tab2 AS cor0
----
-166

skipif mysql # not compatible
query I rowsort label-3200
SELECT + + SUM ( ALL - col2 ) + + 71 + + + MIN ( ALL - col2 ) - + - MIN ( + - col2 ) FROM tab2 AS cor0
----
-166

query I rowsort
SELECT - col0 + - + ( + + col2 ) AS col1 FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT - col2 + ( + - 97 ) AS col1 FROM tab2 cor0
----
-120
-137
-155

onlyif mysql # DIV for integer division: 
query I rowsort label-3203
SELECT DISTINCT col0 + + col1 DIV - + col1 + + col2 * + col1 * - col1 AS col1 FROM tab0 WHERE NULL IS NULL
----
-3
-308353
-4324

skipif mysql # not compatible
query I rowsort label-3203
SELECT DISTINCT col0 + + col1 / - + col1 + + col2 * + col1 * - col1 AS col1 FROM tab0 WHERE NULL IS NULL
----
-3
-308353
-4324

query I rowsort
SELECT col1 * - + 38 AS col2 FROM tab2
----
-1938
-2546
-2926

onlyif mysql # DIV for integer division: 
query I rowsort label-3205
SELECT DISTINCT - 65 * col0 DIV - + col1 + - col2 FROM tab2
----
14
35

skipif mysql # not compatible
query I rowsort label-3205
SELECT DISTINCT - 65 * col0 / - + col1 + - col2 FROM tab2
----
14
35

query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( ( ( NULL ) IN ( + col1 * - col0 - - + 98, - col1, col2, 33 * 31 + + + 49 ) ) ) )
----

query I rowsort
SELECT ALL + 93 * col1 + col0 FROM tab1
----
1353
4462
550

query III rowsort
SELECT ALL * FROM tab2 WHERE - ( - 44 ) * - col0 * + 73 > + - col2
----

query I rowsort
SELECT - + 93 - + - ( col0 ) FROM tab1 AS cor0
----
-2
-42
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-3210
SELECT DISTINCT + ( col1 ) DIV col2 AS col1 FROM tab2
----
1
2

skipif mysql # not compatible
query I rowsort label-3210
SELECT DISTINCT + ( col1 ) / col2 AS col1 FROM tab2
----
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 + col0, + col1 + + 92 col1 FROM tab2
----
17
159
23
143
24
169

query I rowsort
SELECT + 1 * - col2 AS col2 FROM tab0 cor0
----
-10
-47
-99

query II rowsort
SELECT DISTINCT - col1 AS col2, col1 AS col2 FROM tab0 cor0 WHERE NULL IS NULL
----
-1
1
-21
21
-81
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 84 col2 FROM tab2 AS cor0
----
-84
-84
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT + ( - + COUNT( * ) ) AS col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3215
SELECT + ( - + COUNT ( * ) ) AS col0 FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT ALL 91 * - - COUNT( * ) FROM tab1 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-3216
SELECT ALL 91 * - - COUNT ( * ) FROM tab1 AS cor0
----
273

query I rowsort
SELECT + + col0 FROM tab1 AS cor0 WHERE NOT col0 * 41 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0, - ( - + 39 ) col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT 58, col0 AS col1 FROM tab2
----
58
46
58
64
58
75

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * + col0 BETWEEN + 21 AND - 73
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT 27 * COUNT( * ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-3221
SELECT 27 * COUNT ( * ) AS col2 FROM tab0
----
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3222
SELECT - 42 DIV - CAST( + 79 AS SIGNED ) AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3222
SELECT - 42 / - CAST ( + 79 AS INTEGER ) AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT + 39 + ( + + COUNT( * ) ) FROM tab1 WHERE NOT - 47 + + col2 IS NULL
----
42

skipif mysql # not compatible
query I rowsort label-3223
SELECT + 39 + ( + + COUNT ( * ) ) FROM tab1 WHERE NOT - 47 + + col2 IS NULL
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT ALL ( + - COUNT( * ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3224
SELECT ALL ( + - COUNT ( * ) ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 23 AS col2 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

onlyif mysql # aggregate syntax: 
query I rowsort label-3227
SELECT + MIN( DISTINCT + 17 ) FROM tab0 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-3227
SELECT + MIN ( DISTINCT + 17 ) FROM tab0 AS cor0
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3228
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) col2, - CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3228
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3229
SELECT + - 96 * + COUNT( - 51 ) AS col2 FROM tab0 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-3229
SELECT + - 96 * + COUNT ( - 51 ) AS col2 FROM tab0 AS cor0
----
-288

query I rowsort
SELECT ALL - col0 * - 43 FROM tab2 AS cor0
----
1978
2752
3225

query II rowsort
SELECT + col0 AS col0, + col0 FROM tab1 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT ALL - 92 + - col2 AS col0 FROM tab1
----
-151
-160
-188

query I rowsort
SELECT DISTINCT + col1 * ( + + ( 35 ) ) FROM tab1
----
1645
175
490

query I rowsort
SELECT ALL + col2 * col0 + + - ( 88 ) FROM tab0
----
617
782
9515

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3235
SELECT ALL col1 * - 50 * - CAST( NULL AS SIGNED ) AS col1, - col1 * + - col0 FROM tab1
----
NULL
425
NULL
4277
NULL
714

skipif mysql # not compatible
query II rowsort label-3235
SELECT ALL col1 * - 50 * - CAST ( NULL AS INTEGER ) AS col1, - col1 * + - col0 FROM tab1
----
NULL
425
NULL
4277
NULL
714

query I rowsort
SELECT DISTINCT 14 + 2 FROM tab2
----
16

query II rowsort
SELECT DISTINCT col2 + - 13 + - + col0 - + - 12 * - + ( col0 ) AS col0, + ( col1 ) + - col0 FROM tab2
----
-588
5
-805
13
-930
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT - COUNT( * ) + - - 20 FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-3238
SELECT - COUNT ( * ) + - - 20 FROM tab2
----
17

query I rowsort
SELECT col0 + + + col2 FROM tab1
----
144
147
159

onlyif mysql # DIV for integer division: 
query I rowsort label-3240
SELECT DISTINCT col1 DIV + 63 + - 47 AS col2 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-3240
SELECT DISTINCT col1 / + 63 + - 47 AS col2 FROM tab1
----
-47

query I rowsort
SELECT ALL 60 + - - 32 AS col1 FROM tab1
----
92
92
92

query I rowsort
SELECT DISTINCT - col1 * - 84 FROM tab0
----
1764
6804
84

query I rowsort
SELECT - col1 - - col1 + - + 92 FROM tab1
----
-92
-92
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-3244
SELECT 64 DIV - ( + - 66 ) AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3244
SELECT 64 / - ( + - 66 ) AS col1 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 67 * - col2 + 1 col1 FROM tab2 AS cor0
----
1542
2681
3887

query I rowsort
SELECT DISTINCT - 81 FROM tab0 AS cor0 WHERE - col1 NOT BETWEEN - - col2 AND + 2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3247
SELECT DISTINCT - COUNT( * ) * - + 31 FROM tab0 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-3247
SELECT DISTINCT - COUNT ( * ) * - + 31 FROM tab0 AS cor0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3248
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3248
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL > ( NULL )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3249
SELECT ALL - - ( - - col2 ) * - col2 * - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3249
SELECT ALL - - ( - - col2 ) * - col2 * - CAST ( NULL AS REAL ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + col0 AS col1, - col2 + 20 + + col1 AS col0 FROM tab1 AS cor0
----
51
-62
85
-34
91
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3251
SELECT ALL + - CAST( - col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-3251
SELECT ALL + - CAST ( - col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT ALL * FROM tab2 WHERE 97 IS NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 WHERE NOT + 15 IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3255
SELECT col0 DIV - 75 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3255
SELECT col0 / - 75 FROM tab1
----
-1
-1
0

query I rowsort
SELECT ALL 16 * - col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-368
-640
-928

onlyif mysql # aggregate syntax: 
query I rowsort label-3257
SELECT + 4 * + COUNT( * ) * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-3257
SELECT + 4 * + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
36

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 BETWEEN NULL AND 21
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 + + 57 AS col1 FROM tab0 cor0
----
-30
-40
42

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 13 * - - col1 BETWEEN NULL AND 21 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3261
SELECT CAST( - + 9 AS SIGNED ) + col1 col1, + col2 AS col0 FROM tab1 AS cor0
----
-4
59
38
68
5
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3261
SELECT CAST ( - + 9 AS INTEGER ) + col1 col1, + col2 AS col0 FROM tab1 AS cor0
----
-4
59
38
68
5
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3262
SELECT DISTINCT - + COUNT( * ) AS col2, - CAST( - 26 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-3
26

skipif mysql # not compatible
query II rowsort label-3262
SELECT DISTINCT - + COUNT ( * ) AS col2, - CAST ( - 26 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-3
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3263
SELECT 34 AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col2 * - + col1 - - 32 + 37 * + 90 AND - - CAST( NULL AS SIGNED ) * - 11
----

skipif mysql # not compatible
query I rowsort label-3263
SELECT 34 AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col2 * - + col1 - - 32 + 37 * + 90 AND - - CAST ( NULL AS INTEGER ) * - 11
----

query I rowsort
SELECT + col2 * + + col0 * - - ( - col0 ) FROM tab1 AS cor0
----
-249696
-426275
-563108

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 81 * - col1 + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3266
SELECT ALL col1 AS col1 FROM tab0 WHERE NOT + col0 IN ( + col1 * 18, 24 * - + ( 22 ), + + col1 * - col1 * col2 * - CAST( + + col1 AS SIGNED ) )
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3266
SELECT ALL col1 AS col1 FROM tab0 WHERE NOT + col0 IN ( + col1 * 18, 24 * - + ( 22 ), + + col1 * - col1 * col2 * - CAST ( + + col1 AS INTEGER ) )
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3267
SELECT col1 * + - CAST( + 90 AS SIGNED ) AS col0 FROM tab0
----
-1890
-7290
-90

skipif mysql # not compatible
query I rowsort label-3267
SELECT col1 * + - CAST ( + 90 AS INTEGER ) AS col0 FROM tab0
----
-1890
-7290
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3268
SELECT DISTINCT col0 + - + col1 * + + 46 + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3268
SELECT DISTINCT col0 + - + col1 * + + 46 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 * - + col2 BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT ALL + COUNT( DISTINCT - ( - col0 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3270
SELECT ALL + COUNT ( DISTINCT - ( - col0 ) ) FROM tab2
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3271
SELECT DISTINCT + CAST( - col2 AS DECIMAL ) AS col2 FROM tab0 WHERE NULL <= - col0 - - col2
----

skipif mysql # not compatible
query I rowsort label-3271
SELECT DISTINCT + CAST ( - col2 AS REAL ) AS col2 FROM tab0 WHERE NULL <= - col0 - - col2
----

query I rowsort
SELECT ALL 59 * - col2 + - col1 + - col0 * - col1 FROM tab0
----
-1639
-5745
1216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3273
SELECT ALL - 31 + - CAST( - col0 AS SIGNED ) + + + col1 + 48 * + 61 + - ( - 87 ) AS col2 FROM tab2
----
3081
3125
3126

skipif mysql # not compatible
query I rowsort label-3273
SELECT ALL - 31 + - CAST ( - col0 AS INTEGER ) + + + col1 + 48 * + 61 + - ( - 87 ) AS col2 FROM tab2
----
3081
3125
3126

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 78 - col2 col0 FROM tab2 AS cor0
----
-101
-118
-136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col0 ) + + 31 + col1 col0 FROM tab2 AS cor0
----
23
36
44

query I rowsort
SELECT DISTINCT + 28 - - + col1 AS col2 FROM tab0 AS cor0
----
109
29
49

query II rowsort
SELECT col1 + - col1 AS col0, col1 FROM tab1 AS cor0
----
0
14
0
47
0
5

query II rowsort
SELECT ALL + col1 - - col1 AS col0, + 73 FROM tab2 AS cor0
----
102
73
134
73
154
73

query I rowsort
SELECT ALL - 89 * 92 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 42213237db56478e3ffe412250b7c1a1

query I rowsort
SELECT DISTINCT 75 AS col2 FROM tab2 WHERE NOT - + col0 - + ( + col0 ) * 28 <= NULL
----

query I rowsort
SELECT DISTINCT + col2 * + - col1 AS col2 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT DISTINCT col1 * - 63 AS col1 FROM tab1
----
-2961
-315
-882

onlyif mysql # aggregate syntax: 
query I rowsort label-3283
SELECT DISTINCT + MIN( ALL - col0 ) AS col0 FROM tab0 WHERE NULL NOT BETWEEN + - col0 / + 5 * - col1 * - col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3283
SELECT DISTINCT + MIN ( ALL - col0 ) AS col0 FROM tab0 WHERE NULL NOT BETWEEN + - col0 / + 5 * - col1 * - col2 AND NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + ( 94 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT DISTINCT - COUNT( * ) * - - ( + - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3285
SELECT DISTINCT - COUNT ( * ) * - - ( + - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
9

query II rowsort
SELECT col0 AS col1, + col2 AS col1 FROM tab2 AS cor0
----
46
23
64
40
75
58

query I rowsort
SELECT col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + - 82 * - + col1 + - 53 AS col1 FROM tab1 AS cor0
----
1095
357
3801

query II rowsort
SELECT DISTINCT + col1 AS col1, col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

query II rowsort
SELECT + col2 AS col2, - col2 * - col2 AS col0 FROM tab2 AS cor0
----
23
529
40
1600
58
3364

onlyif mysql # aggregate syntax: 
query I rowsort label-3291
SELECT ALL SUM( DISTINCT - col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-3291
SELECT ALL SUM ( DISTINCT - col1 ) FROM tab2 AS cor0
----
-195

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> 78
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT ALL + MAX( + 74 ) FROM tab2 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-3293
SELECT ALL + MAX ( + 74 ) FROM tab2 AS cor0
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3294
SELECT + - col1 FROM tab2 AS cor0 WHERE NOT 80 + + col0 * + CAST( - col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3294
SELECT + - col1 FROM tab2 AS cor0 WHERE NOT 80 + + col0 * + CAST ( - col0 AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT - 32, - col2 AS col2 FROM tab1
----
-32
-59
-32
-68
-32
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3296
SELECT + COUNT( * ) * + 95 col2 FROM tab2
----
285

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3296
SELECT + COUNT ( * ) * + 95 col2 FROM tab2
----
285

query II rowsort
SELECT DISTINCT + col0 + col1 AS col1, 99 + col0 FROM tab2
----
141
163
142
174
97
145

query I rowsort
SELECT 27 * + ( - ( - - 87 ) ) FROM tab2
----
-2349
-2349
-2349

query I rowsort
SELECT + - col2 + + - col2 + 78 * col0 * col1 AS col1 FROM tab1 cor0
----
33032
333470
55500

query II rowsort
SELECT ALL - - 62, + col2 FROM tab2 AS cor0
----
62
23
62
40
62
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 + + 99 col0, - 59 FROM tab0 AS cor0
----
100
-59
120
-59
180
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3302
SELECT DISTINCT + 10 * + MAX( CAST( - - 49 AS SIGNED ) ) + - 23 AS col0 FROM tab1
----
467

skipif mysql # not compatible
query I rowsort label-3302
SELECT DISTINCT + 10 * + MAX ( CAST ( - - 49 AS INTEGER ) ) + - 23 AS col0 FROM tab1
----
467

query I rowsort
SELECT DISTINCT + ( - + col2 ) + col2 * + + 2 + - 26 AS col2 FROM tab2 AS cor0
----
-3
14
32

query I rowsort
SELECT col1 - 82 FROM tab2 AS cor0
----
-15
-31
-5

query II rowsort
SELECT DISTINCT - ( + 3 ), col2 FROM tab1 AS cor0
----
-3
59
-3
68
-3
96

query I rowsort
SELECT + 0 + + col1 - + - col0 - 46 * + col0 FROM tab2
----
-2019
-2803
-3308

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3307
SELECT - CAST( NULL AS SIGNED ) + - col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3307
SELECT - CAST ( NULL AS INTEGER ) + - col2 AS col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE + 46 BETWEEN - col1 AND - - col2
----
75
67
58

query II rowsort
SELECT ALL - col1 AS col2, col2 FROM tab2
----
-51
23
-67
58
-77
40

query I rowsort
SELECT DISTINCT + 70 + - - col1 + + - 40 * + col0 AS col0 FROM tab1
----
-1956
-3325
-3523

query I rowsort
SELECT DISTINCT col0 * ( col1 ) + + - 4 + + - col1 FROM tab0
----
1130
1802
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + + col1 + - + 49 col1 FROM tab0 AS cor0
----
-47
-7
113

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT ALL + COUNT( * ) + - 89 FROM tab2 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-3313
SELECT ALL + COUNT ( * ) + - 89 FROM tab2 AS cor0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT DISTINCT MAX( 94 ) FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-3314
SELECT DISTINCT MAX ( 94 ) FROM tab0 AS cor0
----
94

query I rowsort
SELECT DISTINCT - col1 + 69 * col2 FROM tab1
----
4066
4645
6610

onlyif mysql # aggregate syntax: 
query I rowsort label-3316
SELECT + COUNT( * ) + 97 FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-3316
SELECT + COUNT ( * ) + 97 FROM tab0
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3317
SELECT - col2 * CAST( NULL AS SIGNED ) + col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3317
SELECT - col2 * CAST ( NULL AS INTEGER ) + col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * 39 + + 46 FROM tab0
----
-3113
-773
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT DISTINCT - COUNT( * ) * + 72 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3319
SELECT DISTINCT - COUNT ( * ) * + 72 FROM tab1 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 53 AS col2 FROM tab0 WHERE NOT NULL <= ( + 32 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 89 col0 FROM tab1 WHERE NULL > - 37 + col0 / + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3323
SELECT SUM( 67 ) FROM tab2
----
201

skipif mysql # not compatible
query I rowsort label-3323
SELECT SUM ( 67 ) FROM tab2
----
201

query I rowsort
SELECT 70 - + 67 FROM tab2
----
3
3
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN 13 * + col0 AND - 46 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT DISTINCT - ( MAX( - col2 ) ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-3326
SELECT DISTINCT - ( MAX ( - col2 ) ) FROM tab0
----
10

query I rowsort
SELECT ALL - 50 - col2 AS col0 FROM tab1
----
-109
-118
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT ALL - SUM( ALL - 43 ) FROM tab1
----
129

skipif mysql # not compatible
query I rowsort label-3328
SELECT ALL - SUM ( ALL - 43 ) FROM tab1
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT DISTINCT MAX( - ( - col2 ) ) - + 74 * 95 AS col1 FROM tab0
----
-6931

skipif mysql # not compatible
query I rowsort label-3329
SELECT DISTINCT MAX ( - ( - col2 ) ) - + 74 * 95 AS col1 FROM tab0
----
-6931

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 WHERE - 79 IS NULL
----

query I rowsort
SELECT ( 90 ) + + col2 FROM tab2
----
113
130
148

query I rowsort
SELECT DISTINCT 99 FROM tab1 WHERE - 32 NOT BETWEEN NULL AND ( col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) NOT IN ( 50 - - col1 )
----

query I rowsort
SELECT col2 + col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
144
147
159

query I rowsort
SELECT + col2 * - ( 29 * col0 ) AS col0 FROM tab2 AS cor0
----
-126150
-30682
-74240

query I rowsort
SELECT - 13 * 59 FROM tab0 AS cor0
----
-767
-767
-767

onlyif mysql # aggregate syntax: 
query I rowsort label-3337
SELECT - COUNT( col1 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3337
SELECT - COUNT ( col1 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3338
SELECT ALL ( SUM( ALL - col0 ) ) AS col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-3338
SELECT ALL ( SUM ( ALL - col0 ) ) AS col2 FROM tab2 AS cor0
----
-185

query I rowsort
SELECT + 79 * - 50 AS col1 FROM tab1 AS cor0
----
-3950
-3950
-3950

query I rowsort
SELECT ALL + ( - 72 ) * - col2 + - ( col1 ) FROM tab1
----
4243
4849
6898

query III rowsort
SELECT * FROM tab1 WHERE - col1 > + 57
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3342
SELECT DISTINCT - 46 * 59 FROM tab2 AS cor0 CROSS JOIN tab2 WHERE NOT NULL > CAST( 28 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3342
SELECT DISTINCT - 46 * 59 FROM tab2 AS cor0 CROSS JOIN tab2 WHERE NOT NULL > CAST ( 28 AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 6 * + col2 col2 FROM tab1 AS cor0 WHERE + 28 - col2 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3344
SELECT * FROM tab1 cor0 WHERE NULL BETWEEN CAST( NULL AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3344
SELECT * FROM tab1 cor0 WHERE NULL BETWEEN CAST ( NULL AS REAL ) AND NULL
----

query I rowsort
SELECT + col1 * col0 + - col0 * col0 FROM tab0 AS cor0
----
-5742
-9312
990

query I rowsort
SELECT - - 82 AS col1 FROM tab0 cor0
----
82
82
82

query I rowsort
SELECT DISTINCT AVG ( ALL + col0 ) FROM tab1 AS cor0 WHERE + 44 >= 90
----
NULL

query I rowsort
SELECT + 90 * col2 FROM tab2 cor0
----
2070
3600
5220

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 37 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT COUNT( * ) * - 39 FROM tab1 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-3350
SELECT COUNT ( * ) * - 39 FROM tab1 AS cor0
----
-117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3351
SELECT DISTINCT CAST( NULL AS SIGNED ) - + col1 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3351
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + col1 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col2 * + 2 AS col0 FROM tab0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT ALL - col1 + + 2 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-49
-65
-75

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 BETWEEN ( + col1 * col0 + + ( + col1 ) ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3355
SELECT - col0 * - - CAST( - 67 AS SIGNED ) FROM tab0
----
1005
5829
6499

skipif mysql # not compatible
query I rowsort label-3355
SELECT - col0 * - - CAST ( - 67 AS INTEGER ) FROM tab0
----
1005
5829
6499

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3356
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3356
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( 24 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 < 4
----

query I rowsort
SELECT - 94 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

onlyif mysql # DIV for integer division: 
query I rowsort label-3360
SELECT ALL 68 DIV + 19 + + 27 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

skipif mysql # not compatible
query I rowsort label-3360
SELECT ALL 68 / + 19 + + 27 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT MIN( ALL col1 ) AS col1 FROM tab1 WHERE NOT - + 55 BETWEEN NULL AND + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3361
SELECT MIN ( ALL col1 ) AS col1 FROM tab1 WHERE NOT - + 55 BETWEEN NULL AND + col2
----
NULL

query II rowsort
SELECT + + col1, - col1 AS col2 FROM tab1 AS cor0
----
14
-14
47
-47
5
-5

query I rowsort
SELECT 76 AS col0 FROM tab2 AS cor0 WHERE NOT col0 + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT ( + COUNT( + 15 ) ) FROM tab0 AS cor0 WHERE NOT + ( + - 50 ) * + col1 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-3364
SELECT ( + COUNT ( + 15 ) ) FROM tab0 AS cor0 WHERE NOT + ( + - 50 ) * + col1 > NULL
----
0

query I rowsort
SELECT + - 79 AS col1 FROM tab0 AS cor0
----
-79
-79
-79

query I rowsort
SELECT ALL + + 92 + col2 + col2 AS col2 FROM tab1 AS cor0
----
210
228
284

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - ( + 93 ) ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + + col1 * + col2 ) NOT BETWEEN + 45 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT COUNT( + + ( col0 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3369
SELECT COUNT ( + + ( col0 ) ) FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE - ( + - 98 ) IS NULL
----

query I rowsort
SELECT ALL col1 * col1 + + - 53 * col1 AS col0 FROM tab2
----
-102
1848
938

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT - COUNT( * ) * COUNT( col2 ) col2 FROM tab1 WHERE + - col0 IS NOT NULL
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3372
SELECT - COUNT ( * ) * COUNT ( col2 ) col2 FROM tab1 WHERE + - col0 IS NOT NULL
----
-9

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT 71 * + - 91 + + col1 IS NULL AND NOT ( col0 + - col1 ) IS NULL
----
-51
-67
-77

query I rowsort
SELECT ALL 83 + + ( col1 ) + col2 * - col0 AS col0 FROM tab1
----
-4799
-4927
-6058

query I rowsort
SELECT - 43 * - 4 * col1 + + col2 * 30 AS col2 FROM tab0
----
15342
3142
3912

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT DISTINCT - 44 * + COUNT( * ) FROM tab0 cor0 WHERE NOT ( col0 ) > col1
----
-44

skipif mysql # not compatible
query I rowsort label-3376
SELECT DISTINCT - 44 * + COUNT ( * ) FROM tab0 cor0 WHERE NOT ( col0 ) > col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3377
SELECT DISTINCT - - MAX( DISTINCT + + col1 ) + + COUNT( * ) - COUNT( * ) AS col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3377
SELECT DISTINCT - - MAX ( DISTINCT + + col1 ) + + COUNT ( * ) - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 29 col1 FROM tab2 AS cor0
----
29
29
29

query I rowsort
SELECT - + col2 + - 31 * 31 FROM tab0 AS cor0
----
-1008
-1060
-971

query II rowsort
SELECT DISTINCT + - col2 * + 86, - 53 + - - col1 AS col1 FROM tab1 AS cor0
----
-5074
-48
-5848
-6
-8256
-39

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( NULL ) NOT IN ( col1 * + col1 - - col1 / + 49 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT + MAX( ALL + - 81 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-3382
SELECT + MAX ( ALL + - 81 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-81

query I rowsort
SELECT - 69 + 42 AS col2 FROM tab0 AS cor0 WHERE - col0 * - col1 <> - col2
----
-27
-27
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3384
SELECT - 69 + + COUNT( * ) FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3384
SELECT - 69 + + COUNT ( * ) FROM tab2 AS cor0
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col1 * + col1 * - col0 * - ( 23 ) col1 FROM tab0 AS cor0
----
183347145
18531261
2231

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col2 col2 FROM tab0 WHERE NOT ( - col0 * col2 IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 26 - + col2 col2 FROM tab1
----
-33
-42
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3388
SELECT DISTINCT - 20 DIV + COUNT( * ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-3388
SELECT DISTINCT - 20 / + COUNT ( * ) FROM tab0
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-3389
SELECT 75 AS col2, - COUNT( * ) FROM tab2
----
75
-3

skipif mysql # not compatible
query II rowsort label-3389
SELECT 75 AS col2, - COUNT ( * ) FROM tab2
----
75
-3

query II rowsort
SELECT DISTINCT + col0 AS col0, + col0 + col1 + 84 * + - col0 FROM tab2
----
46
-3767
64
-5235
75
-6158

query I rowsort
SELECT + col1 * - 91 + + col0 FROM tab1 WHERE NOT col2 + + + ( col1 ) NOT IN ( 24 / + col2 )
----

query II rowsort
SELECT ALL ( + col1 ) AS col2, + col2 AS col2 FROM tab2
----
51
23
67
58
77
40

query I rowsort
SELECT + - col1 FROM tab0 WHERE NOT - col1 * 64 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT - COUNT( + + col1 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3394
SELECT - COUNT ( + + col1 ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT DISTINCT MAX( DISTINCT - col1 ) AS col0 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-3395
SELECT DISTINCT MAX ( DISTINCT - col1 ) AS col0 FROM tab1
----
-5

query I rowsort
SELECT col2 FROM tab0 WHERE NOT ( ( ( + ( - col0 ) ) > 91 ) )
----
10
47
99

query III rowsort
SELECT ALL * FROM tab2 WHERE ( 93 + + col0 ) IS NULL
----

query II rowsort
SELECT DISTINCT + col2, 61 FROM tab2
----
23
61
40
61
58
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3399
SELECT DISTINCT - - col0 * + - col1 FROM tab2 WHERE col0 >= - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3399
SELECT DISTINCT - - col0 * + - col1 FROM tab2 WHERE col0 >= - - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3400
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 + + 41 ) BETWEEN col1 + + 96 + - + CAST( NULL AS DECIMAL ) AND - col1 * col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3400
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 + + 41 ) BETWEEN col1 + + 96 + - + CAST ( NULL AS REAL ) AND - col1 * col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + 97, + col1 * + - col2 + - col2 * - - 85 AS col1 FROM tab0 AS cor0
----
97
-1060
97
-7802
97
-8514

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 <> - col0 + - 40
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3403
SELECT ALL + - col0 DIV - - CAST( - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3403
SELECT ALL + - col0 / - - CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3404
SELECT ALL * FROM tab0 WHERE NOT + col0 * - col2 BETWEEN col0 + - CAST( - col1 AS DECIMAL ) + + 25 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3404
SELECT ALL * FROM tab0 WHERE NOT + col0 * - col2 BETWEEN col0 + - CAST ( - col1 AS REAL ) + + 25 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT COUNT( * ) * MAX( ALL - 46 ) FROM tab0
----
-138

skipif mysql # not compatible
query I rowsort label-3405
SELECT COUNT ( * ) * MAX ( ALL - 46 ) FROM tab0
----
-138

query I rowsort
SELECT ALL + col2 AS col1 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT col2 * - + col2 AS col0 FROM tab1
----
-3481
-4624
-9216

query I rowsort
SELECT + ( 99 ) + col0 FROM tab1 WHERE NOT ( + col0 + - col1 * - 69 / + + col2 ) IS NULL
----
150
184
190

query I rowsort
SELECT + 79 * 74 FROM tab2 AS cor0 WHERE NOT ( NULL IN ( + col0 * col1 * + col0 ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 >= ( NULL )
----

query II rowsort
SELECT col0 + 77 AS col0, + col2 + col1 FROM tab2 cor0
----
123
74
141
117
152
125

query I rowsort
SELECT - col0 + 22 FROM tab0 AS cor0
----
-65
-75
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3413
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 WHERE NOT - CAST( col2 AS SIGNED ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-3413
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 WHERE NOT - CAST ( col2 AS INTEGER ) <> NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3414
SELECT * FROM tab2 WHERE NULL = - - ( + + CAST( + col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3414
SELECT * FROM tab2 WHERE NULL = - - ( + + CAST ( + col1 AS INTEGER ) )
----

query II rowsort
SELECT + col0 AS col1, + 18 AS col2 FROM tab2
----
46
18
64
18
75
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT DISTINCT - 66 * - COUNT( * ) AS col0 FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-3416
SELECT DISTINCT - 66 * - COUNT ( * ) AS col0 FROM tab1
----
198

query III rowsort
SELECT * FROM tab2 WHERE + 69 + + col0 * col2 + col1 + ( col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 92 + - 61 AS col2 FROM tab2
----
31
31
31

query I rowsort
SELECT DISTINCT + col1 + - col2 * - col2 * - col0 + - 67 AS col2 FROM tab1 AS cor0
----
-295947
-420804
-470069

query I rowsort
SELECT DISTINCT - 88 + + col0 FROM tab1 AS cor0
----
-3
-37
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT + ( - + 84 ) - + - COUNT( * ) + - - SUM( + col2 ) AS col2 FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3421
SELECT + ( - + 84 ) - + - COUNT ( * ) + - - SUM ( + col2 ) AS col2 FROM tab0 AS cor0
----
75

query I rowsort
SELECT - 5 - - 38 AS col2 FROM tab0 AS cor0
----
33
33
33

query I rowsort
SELECT DISTINCT - 19 * 32 AS col2 FROM tab1 AS cor0
----
-608

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) > 99
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT + MAX( + + ( + col1 ) ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-3425
SELECT + MAX ( + + ( + col1 ) ) FROM tab2 AS cor0
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-3426
SELECT - ( + - col1 ) * col1 DIV 40 * col1 col0 FROM tab2 AS cor0
----
11396
3315
7504

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3426
SELECT - ( + - col1 ) * col1 / 40 * col1 col0 FROM tab2 AS cor0
----
11396
3315
7504

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3427
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN CAST( NULL AS SIGNED ) / + col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3427
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN CAST ( NULL AS INTEGER ) / + col2 AND NULL
----

query I rowsort
SELECT - 30 * - col0 + + col1 FROM tab2 AS cor0
----
1431
1997
2317

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT ALL - + MIN( - + 26 ) * - SUM( DISTINCT + col1 ) col0 FROM tab0 AS cor0
----
-2678

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3429
SELECT ALL - + MIN ( - + 26 ) * - SUM ( DISTINCT + col1 ) col0 FROM tab0 AS cor0
----
-2678

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT DISTINCT + ( - COUNT( ALL col2 ) ) col2 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3430
SELECT DISTINCT + ( - COUNT ( ALL col2 ) ) col2 FROM tab0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, - 4 col2 FROM tab1 AS cor0
----
51
-4
85
-4
91
-4

query I rowsort
SELECT ALL + 72 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + 44 AS col1 FROM tab2 AS cor0
----
44

query I rowsort
SELECT - col2 + + 57 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - col2, + col2 FROM tab0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT ALL - col1 + 98 - col1 AS col0 FROM tab0
----
-64
56
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3437
SELECT CAST( NULL AS SIGNED ) / COUNT( * ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3437
SELECT CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 78 BETWEEN + col1 + + col2 AND - - 21
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + 1 AS col2, 60 FROM tab0 AS cor0
----
1
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3440
SELECT + CAST( - AVG ( + col1 ) AS SIGNED ) FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-3440
SELECT + CAST ( - AVG ( + col1 ) AS INTEGER ) FROM tab1 AS cor0
----
-22

query I rowsort
SELECT + - col0 + - + 93 AS col0 FROM tab1 AS cor0 WHERE + 64 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3442
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE + 11 + - + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + - col1 * - - 66 AS col2, - col1 AS col1 FROM tab0 WHERE NOT + col2 IS NULL
----
-1386
-21
-5346
-81
-66
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT DISTINCT - 96 * + 66 + + COUNT( ALL + col2 ) + COUNT( * ) col0 FROM tab2
----
-6330

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3445
SELECT DISTINCT - 96 * + 66 + + COUNT ( ALL + col2 ) + COUNT ( * ) col0 FROM tab2
----
-6330

query I rowsort
SELECT col2 + + col1 + + col1 + - col1 FROM tab0
----
100
128
31

onlyif mysql # DIV for integer division: 
query II rowsort label-3447
SELECT + col1 DIV col1 + + 18 AS col2, col1 * + - col1 * + - 27 AS col0 FROM tab1
----
19
5292
19
59643
19
675

skipif mysql # not compatible
query II rowsort label-3447
SELECT + col1 / col1 + + 18 AS col2, col1 * + - col1 * + - 27 AS col0 FROM tab1
----
19
5292
19
59643
19
675

query II rowsort
SELECT ALL 75 - col0 AS col1, 66 FROM tab0
----
-12
66
-22
66
60
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT ALL COUNT( * ) + - 36 FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-3449
SELECT ALL COUNT ( * ) + - 36 FROM tab0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT COUNT( * ) FROM tab2 WHERE NULL > ( - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3450
SELECT COUNT ( * ) FROM tab2 WHERE NULL > ( - col0 )
----
0

query I rowsort
SELECT - col1 + col0 * + - 49 AS col2 FROM tab0
----
-4284
-4754
-816

query II rowsort
SELECT ALL - col0 * col0 + - col0 AS col2, + col1 FROM tab2
----
-2162
51
-4160
77
-5700
67

onlyif mysql # DIV for integer division: 
query I rowsort label-3453
SELECT - - col2 DIV col2 + - + col2 AS col2 FROM tab1 AS cor0
----
-58
-67
-95

skipif mysql # not compatible
query I rowsort label-3453
SELECT - - col2 / col2 + - + col2 AS col2 FROM tab1 AS cor0
----
-58
-67
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3454
SELECT + MAX( DISTINCT col1 ) + - CAST( + + 24 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-3454
SELECT + MAX ( DISTINCT col1 ) + - CAST ( + + 24 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3455
SELECT - ( + col1 ) + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3455
SELECT - ( + col1 ) + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3456
SELECT DISTINCT - - col2 FROM tab1 AS cor0 WHERE NOT - CAST( - col2 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-3456
SELECT DISTINCT - - col2 FROM tab1 AS cor0 WHERE NOT - CAST ( - col2 AS INTEGER ) <= NULL
----

query II rowsort
SELECT DISTINCT - col2 AS col0, 3 + + - 56 AS col0 FROM tab1
----
-59
-53
-68
-53
-96
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 21 col1 FROM tab0
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT ALL - - COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3459
SELECT ALL - - COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3460
SELECT DISTINCT - 20 + + - CAST( NULL AS SIGNED ) - 66 / - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3460
SELECT DISTINCT - 20 + + - CAST ( NULL AS INTEGER ) - 66 / - COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3461
SELECT + 33 DIV 94 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3461
SELECT + 33 / 94 FROM tab0 AS cor0
----
0
0
0

query II rowsort
SELECT 89 AS col2, col1 AS col1 FROM tab1 AS cor0
----
89
14
89
47
89
5

query II rowsort
SELECT DISTINCT col0 * + 99, - ( + col2 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col2 * - 14 - + col1 AS col0 FROM tab1 AS cor0
----
-1358
-831
-999

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE ( NOT - + col1 IS NOT NULL )
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NULL = ( + ( 50 ) ) )
----

query II rowsort
SELECT ALL col1, - col1 - - col0 AS col2 FROM tab2 AS cor0
----
51
-5
67
8
77
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3468
SELECT ALL - SUM( ALL - - col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3468
SELECT ALL - SUM ( ALL - - col2 ) FROM tab0 AS cor0
----
-156

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 / + col1 * - ( + col2 ) NOT IN ( col0, - col1 )
----

query I rowsort
SELECT + 1 * col1 FROM tab2
----
51
67
77

query I rowsort
SELECT - 19 * + col0 FROM tab1
----
-1615
-1729
-969

query III rowsort
SELECT * FROM tab1 WHERE NOT 33 + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT COUNT( * ) * SUM( ALL col2 ) AS col0 FROM tab0
----
468

skipif mysql # not compatible
query I rowsort label-3473
SELECT COUNT ( * ) * SUM ( ALL col2 ) AS col0 FROM tab0
----
468

query II rowsort
SELECT col0 * + 0, col1 FROM tab1
----
0
14
0
47
0
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3475
SELECT ALL 55 DIV 73 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3475
SELECT ALL 55 / 73 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - + 33 AS col1 FROM tab2 cor0
----
-33
-33
-33

query I rowsort
SELECT ALL - col2 + 87 + ( + - col1 ) AS col2 FROM tab2
----
-30
-38
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT ALL ( - COUNT( * ) ) + - 61 FROM tab0
----
-64

skipif mysql # not compatible
query I rowsort label-3478
SELECT ALL ( - COUNT ( * ) ) + - 61 FROM tab0
----
-64

query I rowsort
SELECT DISTINCT + ( 31 ) FROM tab1 AS cor0
----
31

query I rowsort
SELECT 20 + + col2 AS col0 FROM tab0 AS cor0
----
119
30
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - col1 + + 39 col1 FROM tab1 AS cor0
----
2248
235
64

query I rowsort
SELECT DISTINCT + + 25 AS col2 FROM tab0 AS cor0
----
25

query I rowsort
SELECT + - 89 AS col0 FROM tab2 AS cor0
----
-89
-89
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-3484
SELECT + COUNT( * ) AS col1, + ( + ( - COUNT( * ) ) ) col1 FROM tab2 AS cor0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3484
SELECT + COUNT ( * ) AS col1, + ( + ( - COUNT ( * ) ) ) col1 FROM tab2 AS cor0
----
3
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3485
SELECT 14 DIV + col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3485
SELECT 14 / + col2 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT DISTINCT + MAX( ALL - - col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-3486
SELECT DISTINCT + MAX ( ALL - - col2 ) FROM tab1
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3487
SELECT DISTINCT col2 + + 91 DIV + col1 FROM tab0
----
14
190
48

skipif mysql # not compatible
query I rowsort label-3487
SELECT DISTINCT col2 + + 91 / + col1 FROM tab0
----
14
190
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT COUNT( * ) * - + 73 FROM tab2
----
-219

skipif mysql # not compatible
query I rowsort label-3488
SELECT COUNT ( * ) * - + 73 FROM tab2
----
-219

query I rowsort
SELECT col0 - - col1 + - col0 AS col2 FROM tab1
----
14
47
5

query I rowsort
SELECT ALL col0 - + - col0 FROM tab2 AS cor0
----
128
150
92

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NOT ( + col2 ) IS NULL
----
1
21
81

query I rowsort
SELECT + + 40 * + col0 * - 25 + + col1 + - 18 AS col0 FROM tab2 AS cor0
----
-45967
-63941
-74951

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT NULL > + 81 * 44 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT DISTINCT - SUM( DISTINCT - 20 ) col0 FROM tab2
----
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3494
SELECT DISTINCT - SUM ( DISTINCT - 20 ) col0 FROM tab2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT - SUM( - 54 ) + COUNT( col0 ) FROM tab2
----
165

skipif mysql # not compatible
query I rowsort label-3495
SELECT - SUM ( - 54 ) + COUNT ( col0 ) FROM tab2
----
165

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 NOT IN ( + - 81 * 59, + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3497
SELECT DISTINCT + CAST( col1 AS SIGNED ) FROM tab1 AS cor0 WHERE NULL >= 10
----

skipif mysql # not compatible
query I rowsort label-3497
SELECT DISTINCT + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0 WHERE NULL >= 10
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT + + COUNT( ALL col1 ) col2 FROM tab0 cor0 WHERE NOT - col0 * + + 26 * - col0 IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3498
SELECT + + COUNT ( ALL col1 ) col2 FROM tab0 cor0 WHERE NOT - col0 * + + 26 * - col0 IS NULL
----
3

query I rowsort
SELECT 64 * 9 FROM tab0 AS cor0
----
576
576
576

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
87
97

query I rowsort
SELECT - 88 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL BETWEEN col2 AND ( NULL )
----

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 cor0 WHERE col0 * - + col1 IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3504
SELECT ALL + MAX( - 27 ) FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-3504
SELECT ALL + MAX ( - 27 ) FROM tab1 AS cor0
----
-27

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL BETWEEN col0 * + col1 * + col2 AND col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3506
SELECT DISTINCT - CAST( NULL AS SIGNED ) col2, + col1 AS col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3506
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col2, + col1 AS col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3507
SELECT DISTINCT CAST( col0 AS SIGNED ) * - 68, + col0 + + - 40 AS col2 FROM tab1
----
-3468
11
-5780
45
-6188
51

skipif mysql # not compatible
query II rowsort label-3507
SELECT DISTINCT CAST ( col0 AS INTEGER ) * - 68, + col0 + + - 40 AS col2 FROM tab1
----
-3468
11
-5780
45
-6188
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT ALL + COUNT( ALL - col1 ) * + 75 AS col2 FROM tab0
----
225

skipif mysql # not compatible
query I rowsort label-3508
SELECT ALL + COUNT ( ALL - col1 ) * + 75 AS col2 FROM tab0
----
225

query I rowsort
SELECT ALL 63 * col2 AS col2 FROM tab0
----
2961
6237
630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3510
SELECT - CAST( + col0 AS SIGNED ) * - col2 * - - ( col1 ) FROM tab2 cor0
----
197120
291450
53958

skipif mysql # not compatible
query I rowsort label-3510
SELECT - CAST ( + col0 AS INTEGER ) * - col2 * - - ( col1 ) FROM tab2 cor0
----
197120
291450
53958

query II rowsort
SELECT DISTINCT - col0, + col1 AS col0 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

query I rowsort
SELECT DISTINCT + ( - + 99 ) AS col1 FROM tab0 AS cor0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3513
SELECT col1 * - 12 - + col1 * col0 * - 39 * - CAST( NULL AS SIGNED ) + + - 85 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3513
SELECT col1 * - 12 - + col1 * col0 * - 39 * - CAST ( NULL AS INTEGER ) + + - 85 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * + ( 45 ) AS col1 FROM tab1
----
2295
3825
4095

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3515
SELECT DISTINCT - 53 * + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3515
SELECT DISTINCT - 53 * + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE + col2 > col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3517
SELECT DISTINCT + 26 + + CAST( - 26 AS SIGNED ) * + + col2 AS col0 FROM tab1 AS cor0
----
-1508
-1742
-2470

skipif mysql # not compatible
query I rowsort label-3517
SELECT DISTINCT + 26 + + CAST ( - 26 AS INTEGER ) * + + col2 AS col0 FROM tab1 AS cor0
----
-1508
-1742
-2470

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3518
SELECT DISTINCT CAST( + - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL >= ( + 43 ) * + + col2 + - - 0
----

skipif mysql # not compatible
query I rowsort label-3518
SELECT DISTINCT CAST ( + - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL >= ( + 43 ) * + + col2 + - - 0
----

query I rowsort
SELECT 48 AS col2 FROM tab1 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3520
SELECT DISTINCT - ( + MIN( ALL col0 ) ) AS col0 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3520
SELECT DISTINCT - ( + MIN ( ALL col0 ) ) AS col0 FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3521
SELECT COUNT( * ) + + COUNT( * ) - + + 20 AS col1 FROM tab1 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-3521
SELECT COUNT ( * ) + + COUNT ( * ) - + + 20 AS col1 FROM tab1 AS cor0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT ALL + + MIN( ALL 50 ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3522
SELECT ALL + + MIN ( ALL 50 ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL + col2 * 50 AS col0 FROM tab2
----
1150
2000
2900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 49 + 93 col2 FROM tab2
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT COUNT( * ) + SUM( ALL - 77 ) FROM tab2
----
-228

skipif mysql # not compatible
query I rowsort label-3525
SELECT COUNT ( * ) + SUM ( ALL - 77 ) FROM tab2
----
-228

query I rowsort
SELECT col1 + col2 - - col1 AS col2 FROM tab1
----
124
162
69

query I rowsort
SELECT ALL - col1 + 38 FROM tab1
----
-9
24
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT - COUNT( ALL - 52 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3528
SELECT - COUNT ( ALL - 52 ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT ALL + COUNT( * ) - COUNT( * ) AS col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3529
SELECT ALL + COUNT ( * ) - COUNT ( * ) AS col1 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL + ( + 38 ) - + col0 * - col2 FROM tab2 AS cor0
----
1096
2598
4388

query I rowsort
SELECT + - 49 * - - col0 AS col2 FROM tab2 cor0
----
-2254
-3136
-3675

onlyif mysql # aggregate syntax: 
query II rowsort label-3532
SELECT - COUNT( DISTINCT + 5 ) AS col2, 48 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-1
48

skipif mysql # not compatible
query II rowsort label-3532
SELECT - COUNT ( DISTINCT + 5 ) AS col2, 48 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-1
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3533
SELECT + CAST( MAX( ALL ( + col0 ) ) AS SIGNED ) * + 9 FROM tab0
----
873

skipif mysql # not compatible
query I rowsort label-3533
SELECT + CAST ( MAX ( ALL ( + col0 ) ) AS INTEGER ) * + 9 FROM tab0
----
873

onlyif mysql # DIV for integer division: 
query I rowsort label-3534
SELECT col0 DIV - + col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3534
SELECT col0 / - + col0 FROM tab0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3535
SELECT ALL COUNT( * ) AS col2, + ( + 48 ) * - 94 AS col2 FROM tab1 AS cor0
----
3
-4512

skipif mysql # not compatible
query II rowsort label-3535
SELECT ALL COUNT ( * ) AS col2, + ( + 48 ) * - 94 AS col2 FROM tab1 AS cor0
----
3
-4512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3536
SELECT COUNT( * ) col0, + CAST( + 50 AS SIGNED ) FROM tab1 AS cor0
----
3
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3536
SELECT COUNT ( * ) col0, + CAST ( + 50 AS INTEGER ) FROM tab1 AS cor0
----
3
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3537
SELECT ALL + 69 AS col1, COUNT( * ) / CAST( NULL AS SIGNED ) col2 FROM tab2 cor0
----
69
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3537
SELECT ALL + 69 AS col1, COUNT ( * ) / CAST ( NULL AS INTEGER ) col2 FROM tab2 cor0
----
69
NULL

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
23
40
58

query II rowsort
SELECT DISTINCT + - col0 AS col0, + col1 + + 76 AS col2 FROM tab2 AS cor0
----
-46
127
-64
153
-75
143

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT MIN( - 81 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-3540
SELECT MIN ( - 81 ) FROM tab0
----
-81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 - + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT SUM( + + 21 ) col1 FROM tab1
----
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3542
SELECT SUM ( + + 21 ) col1 FROM tab1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3543
SELECT + COUNT( * ) * + 61 * + 71 col2 FROM tab1
----
12993

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3543
SELECT + COUNT ( * ) * + 61 * + 71 col2 FROM tab1
----
12993

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + 12 AND + col1
----

query II rowsort
SELECT DISTINCT + + 96 AS col2, 27 AS col2 FROM tab1 AS cor0 WHERE + col0 + + 75 + + col0 + + 78 * 27 IS NOT NULL
----
96
27

query I rowsort
SELECT ALL ( - - col2 ) * - ( - col2 ) AS col2 FROM tab0 cor0
----
100
2209
9801

query I rowsort
SELECT DISTINCT 46 * + + col0 FROM tab2
----
2116
2944
3450

query I rowsort
SELECT ALL - col1 + + 65 FROM tab0
----
-16
44
64

onlyif mysql # aggregate syntax: 
query II rowsort label-3549
SELECT COUNT( * ) * ( COUNT( - + 2 ) ) + MIN( + col2 ) * + - COUNT( * ) * 9 AS col1, - 80 FROM tab2 AS cor0
----
-612
-80

skipif mysql # not compatible
query II rowsort label-3549
SELECT COUNT ( * ) * ( COUNT ( - + 2 ) ) + MIN ( + col2 ) * + - COUNT ( * ) * 9 AS col1, - 80 FROM tab2 AS cor0
----
-612
-80

query I rowsort
SELECT ALL + + 79 AS col2 FROM tab0 cor0
----
79
79
79

query I rowsort
SELECT ALL col0 - - + col2 + - col0 * - col0 AS col1 FROM tab0 AS cor0
----
287
7666
9605

query I rowsort
SELECT col1 * + 69 FROM tab1 AS cor0
----
3243
345
966

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 * - col1 <> NULL
----

query I rowsort
SELECT col2 * + 23 * + 0 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3555
SELECT DISTINCT COUNT( * ) * + + 98 + - 24 AS col0, + COUNT( * ) FROM tab2 AS cor0
----
270
3

skipif mysql # not compatible
query II rowsort label-3555
SELECT DISTINCT COUNT ( * ) * + + 98 + - 24 AS col0, + COUNT ( * ) FROM tab2 AS cor0
----
270
3

query I rowsort
SELECT - col2 * ( - + ( - col2 ) ) FROM tab1 AS cor0
----
-3481
-4624
-9216

query I rowsort
SELECT ALL - + 60 - 38 FROM tab2 AS cor0
----
-98
-98
-98

query I rowsort
SELECT - + col1 * - 74 AS col0 FROM tab1 AS cor0
----
1036
3478
370

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT + MIN( 81 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-3559
SELECT + MIN ( 81 ) FROM tab0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3560
SELECT ALL + ( + CAST( NULL AS SIGNED ) ) + - + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3560
SELECT ALL + ( + CAST ( NULL AS INTEGER ) ) + - + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( NOT NULL > - 7 )
----

query I rowsort
SELECT ALL col1 * - 44 AS col2 FROM tab2
----
-2244
-2948
-3388

query I rowsort
SELECT DISTINCT - 87 + + ( + col2 ) AS col0 FROM tab0
----
-40
-77
12

query I rowsort
SELECT DISTINCT + + 98 + - col0 + - + col2 + col0 + col0 + + col2 * + col1 AS col1 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
1294
3202
4001

onlyif mysql # aggregate syntax: 
query I rowsort label-3565
SELECT ALL + COUNT( * ) * + - COUNT( * ) - + + ( - 92 ) FROM tab1 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-3565
SELECT ALL + COUNT ( * ) * + - COUNT ( * ) - + + ( - 92 ) FROM tab1 AS cor0
----
83

query I rowsort
SELECT - 25 + - + ( + 41 ) * + 19 * - col0 FROM tab1 AS cor0
----
39704
66190
70864

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT - MIN( ALL 52 ) FROM tab2 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-3567
SELECT - MIN ( ALL 52 ) FROM tab2 AS cor0
----
-52

query I rowsort
SELECT ALL - + col0 * + 63 AS col2 FROM tab0 AS cor0
----
-5481
-6111
-945

query I rowsort
SELECT ALL - 9 * + - 21 FROM tab0
----
189
189
189

onlyif mysql # DIV for integer division: 
query II rowsort label-3570
SELECT ( - + col0 ) DIV + - col1 AS col1, col1 * col2 col1 FROM tab1 cor0
----
1
3196
17
295
3
1344

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3570
SELECT ( - + col0 ) / + - col1 AS col1, col1 * col2 col1 FROM tab1 cor0
----
1
3196
17
295
3
1344

query I rowsort
SELECT + + col2 * - + 74 FROM tab0 AS cor0
----
-3478
-7326
-740

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3572
SELECT COUNT( * ) DIV COUNT( * ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3572
SELECT COUNT ( * ) / COUNT ( * ) AS col0 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT - + 16 * + + COUNT( ALL + 45 ) - - + 4 FROM tab0 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-3573
SELECT - + 16 * + + COUNT ( ALL + 45 ) - - + 4 FROM tab0 AS cor0
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3574
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN col2 AND - - col0 + + col2
----

skipif mysql # not compatible
query I rowsort label-3574
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN col2 AND - - col0 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT ALL - COUNT( + + col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3575
SELECT ALL - COUNT ( + + col1 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-3576
SELECT 98 AS col1, + AVG ( DISTINCT 53 ) + - - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
98
NULL

skipif mysql # not compatible
query II rowsort label-3576
SELECT 98 AS col1, + AVG ( DISTINCT 53 ) + - - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
98
NULL

query II rowsort
SELECT - 71 AS col1, col1 * - + 7 + - - col1 FROM tab2
----
-71
-306
-71
-402
-71
-462

onlyif mysql # DIV for integer division: 
query I rowsort label-3578
SELECT 65 DIV + 67 + + 14 - col1 AS col0 FROM tab1
----
-33
0
9

skipif mysql # not compatible
query I rowsort label-3578
SELECT 65 / + 67 + + 14 - col1 AS col0 FROM tab1
----
-33
0
9

query I rowsort
SELECT ALL 37 + + col2 * - col1 FROM tab0
----
-173
-3770
-62

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 41 - + col0 * + col0 IS NOT NULL
----

query I rowsort
SELECT + + 71 + + - 64 AS col1 FROM tab0 AS cor0
----
7
7
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 + + col0 col1, ( col2 ) * col1 FROM tab0 AS cor0
----
0
210
0
3807
0
99

query I rowsort
SELECT ALL + - col2 FROM tab1 AS cor0 WHERE - 22 IS NULL
----

query I rowsort
SELECT ALL - ( - 39 ) * - col1 AS col2 FROM tab2 AS cor0
----
-1989
-2613
-3003

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 62 + ( - col1 ) / - col2 / + 16 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT + + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3586
SELECT + + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3587
SELECT DISTINCT col1 + col0 + - col1 DIV - + col2 AS col1 FROM tab0
----
110
97
98

skipif mysql # not compatible
query I rowsort label-3587
SELECT DISTINCT col1 + col0 + - col1 / - + col2 AS col1 FROM tab0
----
110
97
98

query I rowsort
SELECT + col2 - - 1 + col1 - + 81 FROM tab2 AS cor0
----
-6
37
45

query I rowsort
SELECT - col0 - col1 - - col2 AS col2 FROM tab0 AS cor0
----
-49
-98
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 < NULL OR NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT ( COUNT( * ) ) - + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3591
SELECT ( COUNT ( * ) ) - + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0

query II rowsort
SELECT DISTINCT + 48 * - col2 AS col2, col1 * - 65 FROM tab0 cor0
----
-2256
-5265
-4752
-65
-480
-1365

onlyif mysql # DIV for integer division: 
query I rowsort label-3593
SELECT DISTINCT - col0 DIV + col1 + col0 col0 FROM tab2 AS cor0
----
46
64
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3593
SELECT DISTINCT - col0 / + col1 + col0 col0 FROM tab2 AS cor0
----
46
64
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT ALL MAX( + - col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3594
SELECT ALL MAX ( + - col1 ) FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT ALL + MAX( DISTINCT + ( - col1 ) ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-3595
SELECT ALL + MAX ( DISTINCT + ( - col1 ) ) FROM tab1
----
-5

query I rowsort
SELECT + 96 + + + col0 AS col1 FROM tab0
----
111
183
193

query I rowsort
SELECT ALL col2 * + 54 * - - col2 FROM tab1
----
187974
249696
497664

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT ALL - - COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3598
SELECT ALL - - COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ( 64 ) * - col0 + col2 FROM tab1
----
-3168
-5381
-5756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 col2 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL - col0 * + - col1 AS col2 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3602
SELECT ALL - col2 * + + col1 - 72 DIV 31 * - col0 FROM tab1 AS cor0
----
-1242
-125
-3014

skipif mysql # not compatible
query I rowsort label-3602
SELECT ALL - col2 * + + col1 - 72 / 31 * - col0 FROM tab1 AS cor0
----
-1242
-125
-3014

query I rowsort
SELECT ALL + 62 FROM tab2 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT - col0 * + - col2 FROM tab1 AS cor0 WHERE NOT ( 33 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE + 30 <> - col1
----
-3

skipif mysql # not compatible
query I rowsort label-3605
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE + 30 <> - col1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3606
SELECT col1 * + CAST( NULL AS SIGNED ) / - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3606
SELECT col1 * + CAST ( NULL AS INTEGER ) / - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3607
SELECT ALL COUNT( * ) * + 83 FROM tab1
----
249

skipif mysql # not compatible
query I rowsort label-3607
SELECT ALL COUNT ( * ) * + 83 FROM tab1
----
249

query I rowsort
SELECT DISTINCT 2 AS col2 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
2

query I rowsort
SELECT DISTINCT - 25 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-25

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= - + 32
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3611
SELECT * FROM tab0 cor0 WHERE NOT + col1 BETWEEN + col0 * + col1 - + 56 + + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3611
SELECT * FROM tab0 cor0 WHERE NOT + col1 BETWEEN + col0 * + col1 - + 56 + + CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3612
SELECT ALL + col0 DIV col0 AS col2 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3612
SELECT ALL + col0 / col0 AS col2 FROM tab0 cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT - 16 + - ( + - COUNT( * ) ) FROM tab2 cor0
----
-13

skipif mysql # not compatible
query I rowsort label-3613
SELECT - 16 + - ( + - COUNT ( * ) ) FROM tab2 cor0
----
-13

query I rowsort
SELECT - col1 + - 40 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + - 0 + - + col0 FROM tab0 AS cor0
----
-15
-87
-97

query II rowsort
SELECT + - 85 + col0 AS col1, - col0 FROM tab2 AS cor0
----
-10
-75
-21
-64
-39
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3617
SELECT - + COUNT( * ) DIV 71 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3617
SELECT - + COUNT ( * ) / 71 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT + ( - COUNT( * ) ) + COUNT( * ) AS col1 FROM tab1 WHERE NOT ( + 47 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3618
SELECT + ( - COUNT ( * ) ) + COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( + 47 IS NOT NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3619
SELECT ALL MAX( DISTINCT + 77 ) AS col1 FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-3619
SELECT ALL MAX ( DISTINCT + 77 ) AS col1 FROM tab1
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-3620
SELECT ALL 47 DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3620
SELECT ALL 47 / col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + 20 + - - col1 * - col0 FROM tab0
----
-1195
-1807
-77

query I rowsort
SELECT - ( - - col2 ) AS col0 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT DISTINCT SUM( DISTINCT col2 ) AS col1 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-3623
SELECT DISTINCT SUM ( DISTINCT col2 ) AS col1 FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT + MAX( 70 ) col2 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3624
SELECT + MAX ( 70 ) col2 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + col2 + + 72 * - 99 + col0 FROM tab1
----
-6969
-6981
-6984

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - + col2 ) + col0 + 91 col1 FROM tab1
----
235
238
250

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col0 * - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3628
SELECT DISTINCT - col1 + col1 + + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3628
SELECT DISTINCT - col1 + col1 + + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT ALL 7 - - + SUM( DISTINCT + 52 ) AS col2 FROM tab0 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-3629
SELECT ALL 7 - - + SUM ( DISTINCT + 52 ) AS col2 FROM tab0 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3630
SELECT DISTINCT + MAX( DISTINCT - + col0 ) * - COUNT( * ) + + - ( - MAX( col2 ) ) AS col1 FROM tab0 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-3630
SELECT DISTINCT + MAX ( DISTINCT - + col0 ) * - COUNT ( * ) + + - ( - MAX ( col2 ) ) AS col1 FROM tab0 AS cor0
----
144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, + col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT DISTINCT + COUNT( * ) - - ( - + COUNT( DISTINCT col2 ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3632
SELECT DISTINCT + COUNT ( * ) - - ( - + COUNT ( DISTINCT col2 ) ) FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3633
SELECT - - col0 AS col0, - ( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-3633
SELECT - - col0 AS col0, - ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

query II rowsort
SELECT col2 AS col0, + col2 * col2 AS col1 FROM tab0 AS cor0
----
10
100
47
2209
99
9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3635
SELECT + - CAST( NULL AS SIGNED ) * - 52 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3635
SELECT + - CAST ( NULL AS INTEGER ) * - 52 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3636
SELECT DISTINCT + + MIN( ALL + col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3636
SELECT DISTINCT + + MIN ( ALL + col1 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT 23 - + - col0 + - col2 + - ( - col2 ) AS col2 FROM tab0 AS cor0
----
110
120
38

query I rowsort
SELECT - col2 - + 14 FROM tab0
----
-113
-24
-61

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < - col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 73 = - 95
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= ( + 96 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3642
SELECT 62 * + + CAST( NULL AS SIGNED ), + 7 * ( - - ( CAST( NULL AS SIGNED ) ) ) * - 90 FROM tab2
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3642
SELECT 62 * + + CAST ( NULL AS INTEGER ), + 7 * ( - - ( CAST ( NULL AS INTEGER ) ) ) * - 90 FROM tab2
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3643
SELECT col2 / - CAST( NULL AS SIGNED ) * col2 * + + 82 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3643
SELECT col2 / - CAST ( NULL AS INTEGER ) * col2 * + + 82 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 64 * + 57 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 334299c20f8305be939aabcf3d18c2a3

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT ALL + SUM( ALL + 64 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
576

skipif mysql # not compatible
query I rowsort label-3645
SELECT ALL + SUM ( ALL + 64 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
576

query I rowsort
SELECT 28 - + - 80 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6d22d46245dff8bdc639b4b61304fdd9

query I rowsort
SELECT DISTINCT - - col1 * + - col0 AS col2 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-3648
SELECT + ( + col1 ) DIV - col2 - + 25 AS col2 FROM tab1 AS cor0
----
-25
-25
-25

skipif mysql # not compatible
query I rowsort label-3648
SELECT + ( + col1 ) / - col2 - + 25 AS col2 FROM tab1 AS cor0
----
-25
-25
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3649
SELECT - + 7 * + - COUNT( * ) DIV - - COUNT( * ) FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-3649
SELECT - + 7 * + - COUNT ( * ) / - - COUNT ( * ) FROM tab2 AS cor0
----
7

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NOT 62 IS NULL
----
15
87
97

query II rowsort
SELECT ALL 1 AS col1, + 73 FROM tab1 AS cor0
----
1
73
1
73
1
73

onlyif mysql # aggregate syntax: 
query II rowsort label-3652
SELECT COUNT( * ), - COUNT( * ) + + 5 AS col1 FROM tab1 AS cor0
----
3
2

skipif mysql # not compatible
query II rowsort label-3652
SELECT COUNT ( * ), - COUNT ( * ) + + 5 AS col1 FROM tab1 AS cor0
----
3
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT + 91 * - + COUNT( * ) FROM tab0 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-3653
SELECT + 91 * - + COUNT ( * ) FROM tab0 AS cor0
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT DISTINCT - ( + COUNT( * ) ) * - MIN( DISTINCT + 79 ) AS col0 FROM tab1 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-3654
SELECT DISTINCT - ( + COUNT ( * ) ) * - MIN ( DISTINCT + 79 ) AS col0 FROM tab1 AS cor0
----
237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3655
SELECT DISTINCT - CAST( 97 AS SIGNED ) FROM tab2 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3655
SELECT DISTINCT - CAST ( 97 AS INTEGER ) FROM tab2 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT ALL MAX( DISTINCT - col1 ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3656
SELECT ALL MAX ( DISTINCT - col1 ) FROM tab0 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT ALL - + ( + + COUNT( * ) ) * + 5 AS col2 FROM tab2 WHERE - + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3657
SELECT ALL - + ( + + COUNT ( * ) ) * + 5 AS col2 FROM tab2 WHERE - + col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT COUNT( ALL + col0 ) + + SUM( col1 ) AS col1 FROM tab0
----
106

skipif mysql # not compatible
query I rowsort label-3658
SELECT COUNT ( ALL + col0 ) + + SUM ( col1 ) AS col1 FROM tab0
----
106

query I rowsort
SELECT DISTINCT + col1 * col2 + col2 FROM tab0
----
198
220
3854

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3660
SELECT DISTINCT col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3660
SELECT DISTINCT col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT + 65 + + - col0 FROM tab0
----
-22
-32
50

onlyif mysql # DIV for integer division: 
query I rowsort label-3662
SELECT ALL 27 DIV + col0 + - col0 DIV - col2 + + + 58 FROM tab2
----
59
59
60

skipif mysql # not compatible
query I rowsort label-3662
SELECT ALL 27 / + col0 + - col0 / - col2 + + + 58 FROM tab2
----
59
59
60

query II rowsort
SELECT DISTINCT + col2 - - col0 AS col0, - col0 + col1 FROM tab2 cor0
----
104
13
133
-8
69
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
SELECT 21 + + COUNT( * ) col1 FROM tab0 AS cor0 WHERE + col1 + 71 IS NULL
----
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3664
SELECT 21 + + COUNT ( * ) col1 FROM tab0 AS cor0 WHERE + col1 + 71 IS NULL
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-3665
SELECT + ( + col1 ) DIV - + col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3665
SELECT + ( + col1 ) / - + col1 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT + 83 - - + 22 FROM tab2
----
105
105
105

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT ALL - + COUNT( * ) + + + COUNT( * ) + COUNT( * ) col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3667
SELECT ALL - + COUNT ( * ) + + + COUNT ( * ) + COUNT ( * ) col2 FROM tab2 cor0
----
3

query I rowsort
SELECT + + 91 FROM tab0 cor0 WHERE col1 * - col2 IS NULL
----

query I rowsort
SELECT DISTINCT col0 + - - 68 + col1 FROM tab1 AS cor0
----
133
158
206

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT DISTINCT - MAX( DISTINCT - - col1 ) FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3670
SELECT DISTINCT - MAX ( DISTINCT - - col1 ) FROM tab0 cor0
----
-81

query II rowsort
SELECT DISTINCT - + col0, + col1 AS col2 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query II rowsort
SELECT ALL col2, ( 12 ) FROM tab1
----
59
12
68
12
96
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT ALL SUM( col1 ) col1 FROM tab0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3673
SELECT ALL SUM ( col1 ) col1 FROM tab0
----
103

query I rowsort
SELECT ALL + col0 * 95 AS col2 FROM tab2
----
4370
6080
7125

query I rowsort
SELECT - 97 * col0 AS col2 FROM tab0
----
-1455
-8439
-9409

query I rowsort
SELECT DISTINCT + 55 FROM tab1 WHERE NOT ( col2 IS NOT NULL )
----

query I rowsort
SELECT + col1 * + + ( + col1 ) * + ( + col1 ) + ( - 99 ) + - col0 * - + col1 * + + ( col2 ) * + + 12 AS col0 FROM tab1
----
300926
3593756
825173

query II rowsort
SELECT + 73, - col1 AS col1 FROM tab1 AS cor0
----
73
-14
73
-47
73
-5

query II rowsort
SELECT 76 AS col1, - col0 AS col0 FROM tab0 AS cor0
----
76
-15
76
-87
76
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * - 45 AS col0, - 53 + col1 col1 FROM tab2
----
2295
-2
3015
14
3465
24

query I rowsort
SELECT - + 74 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5a567947d14593676e3825756f8e6130

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT + ( + 0 ) + COUNT( * ) * MIN( col1 ) FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-3682
SELECT + ( + 0 ) + COUNT ( * ) * MIN ( col1 ) FROM tab2 AS cor0
----
153

query I rowsort
SELECT - 41 * + - col0 + 83 FROM tab0 AS cor0
----
3650
4060
698

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3684
SELECT col2 * - col0 * + CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0 WHERE col2 <> - col0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3684
SELECT col2 * - col0 * + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0 WHERE col2 <> - col0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3685
SELECT COUNT( * ) * + 44 AS col0, - COUNT( * ) FROM tab1 AS cor0
----
132
-3

skipif mysql # not compatible
query II rowsort label-3685
SELECT COUNT ( * ) * + 44 AS col0, - COUNT ( * ) FROM tab1 AS cor0
----
132
-3

query II rowsort
SELECT + 89, + 71 AS col2 FROM tab0
----
89
71
89
71
89
71

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 51 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > 92
----

query I rowsort
SELECT 5 FROM tab2 WHERE - + col1 IS NULL
----

query I rowsort
SELECT DISTINCT + 44 + col0 AS col1 FROM tab2 cor0
----
108
119
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3691
SELECT ALL - 55 * ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3691
SELECT ALL - 55 * ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3692
SELECT + + ( 31 ) * CAST( - col1 AS SIGNED ) - col2 AS col0 FROM tab1 cor0
----
-1525
-214
-530

skipif mysql # not compatible
query I rowsort label-3692
SELECT + + ( 31 ) * CAST ( - col1 AS INTEGER ) - col2 AS col0 FROM tab1 cor0
----
-1525
-214
-530

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT DISTINCT - - SUM( + col1 ) col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3693
SELECT DISTINCT - - SUM ( + col1 ) col0 FROM tab0 AS cor0
----
103

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 72 IS NULL AND NULL = - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3695
SELECT COUNT( + ( col2 ) ) * + MAX( DISTINCT + CAST( + col0 AS SIGNED ) ) AS col1 FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-3695
SELECT COUNT ( + ( col2 ) ) * + MAX ( DISTINCT + CAST ( + col0 AS INTEGER ) ) AS col1 FROM tab1
----
273

query I rowsort
SELECT ALL - - ( - + col0 ) FROM tab2 AS cor0
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 26 col1 FROM tab1 AS cor0
----
26
26
26

query I rowsort
SELECT + col2 * col0 - + col2 FROM tab0 AS cor0
----
658
860
9504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3699
SELECT CAST( - + 75 AS SIGNED ) AS col1 FROM tab1 cor0
----
-75
-75
-75

skipif mysql # not compatible
query I rowsort label-3699
SELECT CAST ( - + 75 AS INTEGER ) AS col1 FROM tab1 cor0
----
-75
-75
-75

query I rowsort
SELECT + 86 * - col1 FROM tab2 AS cor0
----
-4386
-5762
-6622

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT ALL + + ( - - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3701
SELECT ALL + + ( - - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 >= - col0 * - - col0 * col0 * + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( - 32 ) FROM tab1
----
-32

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 NOT BETWEEN + col1 / - + col1 - - - col0 * col0 + - col2 * col0 AND + col0 - + col2 + + + col2 * - 23
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3705
SELECT ALL MAX( ALL + 97 ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
97

skipif mysql # not compatible
query I rowsort label-3705
SELECT ALL MAX ( ALL + 97 ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT DISTINCT ( SUM( + col1 ) ) AS col0 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-3706
SELECT DISTINCT ( SUM ( + col1 ) ) AS col0 FROM tab2
----
195

query I rowsort
SELECT + col2 * + 80 AS col1 FROM tab2
----
1840
3200
4640

query II rowsort
SELECT DISTINCT col2, 98 FROM tab2
----
23
98
40
98
58
98

onlyif mysql # DIV for integer division: 
query I rowsort label-3709
SELECT - col1 DIV 8 AS col1 FROM tab0 AS cor0
----
-10
-2
0

skipif mysql # not compatible
query I rowsort label-3709
SELECT - col1 / 8 AS col1 FROM tab0 AS cor0
----
-10
-2
0

query I rowsort
SELECT - 11 + - - ( + + col0 ) + col1 - + - col2 * + col2 * - 97 FROM tab1 AS cor0
----
-337578
-448401
-893898

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3711
SELECT CAST( - - 61 AS SIGNED ) col0 FROM tab1
----
61
61
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3711
SELECT CAST ( - - 61 AS INTEGER ) col0 FROM tab1
----
61
61
61

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 NOT BETWEEN NULL AND + + col2 OR NOT NULL > col2
----

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL >= + 20
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3714
SELECT + col2, col2 DIV col0 FROM tab2
----
23
0
40
0
58
0

skipif mysql # not compatible
query II rowsort label-3714
SELECT + col2, col2 / col0 FROM tab2
----
23
0
40
0
58
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 32 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT + - col1 * - 25 FROM tab2 AS cor0
----
1275
1675
1925

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3717
SELECT col1 * CAST( - + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-196
-2209
-25

skipif mysql # not compatible
query I rowsort label-3717
SELECT col1 * CAST ( - + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-3718
SELECT ( - col0 ) DIV 25 AS col2 FROM tab1 AS cor0
----
-2
-3
-3

skipif mysql # not compatible
query I rowsort label-3718
SELECT ( - col0 ) / 25 AS col2 FROM tab1 AS cor0
----
-2
-3
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-3719
SELECT DISTINCT - 60 AS col2, ( + col1 ) DIV + ( - 49 ) AS col0 FROM tab0 AS cor0
----
-60
-1
-60
0

skipif mysql # not compatible
query II rowsort label-3719
SELECT DISTINCT - 60 AS col2, ( + col1 ) / + ( - 49 ) AS col0 FROM tab0 AS cor0
----
-60
-1
-60
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - - col0 col1 FROM tab1
----
425
4277
714

query I rowsort
SELECT - 37 + - 39 * + - col1 - col2 - col0 * + 47 AS col1 FROM tab0
----
-3317
-4656
2370

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3722
SELECT ALL + CAST( NULL AS SIGNED ) + - - 54 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3722
SELECT ALL + CAST ( NULL AS INTEGER ) + - - 54 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col0 + - 35 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col1 * - col1 + + col0 + + + col1 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3725
SELECT DISTINCT + col0 + - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3725
SELECT DISTINCT + col0 + - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3726
SELECT + col0 DIV + col0 FROM tab2 WHERE NULL IS NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3726
SELECT + col0 / + col0 FROM tab2 WHERE NULL IS NULL
----
1
1
1

query I rowsort
SELECT + ( - 11 ) + col1 * 88 FROM tab2
----
4477
5885
6765

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT 7 + + + 52 + - MAX( ALL col2 ) + - + 27 AS col1 FROM tab0
----
-67

skipif mysql # not compatible
query I rowsort label-3728
SELECT 7 + + + 52 + - MAX ( ALL col2 ) + - + 27 AS col1 FROM tab0
----
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 18 + + ( col0 ) col1 FROM tab2
----
64
82
93

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3730
SELECT + + MIN( DISTINCT + CAST( NULL AS DECIMAL ) ) AS col1, 54 - 23 * - 49 FROM tab2 AS cor0
----
NULL
1181

skipif mysql # not compatible
query II rowsort label-3730
SELECT + + MIN ( DISTINCT + CAST ( NULL AS REAL ) ) AS col1, 54 - 23 * - 49 FROM tab2 AS cor0
----
NULL
1181

query I rowsort
SELECT DISTINCT - col0 - + + 5 * - col2 * - col2 FROM tab2 AS cor0
----
-16895
-2691
-8064

query I rowsort
SELECT DISTINCT - + 64 + 50 FROM tab0 cor0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3733
SELECT - SUM( 80 ) FROM tab1 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-3733
SELECT - SUM ( 80 ) FROM tab1 AS cor0
----
-240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3734
SELECT ALL COUNT( * ) DIV + 36 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3734
SELECT ALL COUNT ( * ) / + 36 FROM tab1
----
0

query II rowsort
SELECT DISTINCT 16, + col0 FROM tab0
----
16
15
16
87
16
97

query II rowsort
SELECT DISTINCT col1, 52 * + col1 FROM tab0
----
1
52
21
1092
81
4212

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT - COUNT( * ) * - - COUNT( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL < + 83
----
0

skipif mysql # not compatible
query I rowsort label-3737
SELECT - COUNT ( * ) * - - COUNT ( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL < + 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT - MAX( + - col2 ) AS col2 FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-3738
SELECT - MAX ( + - col2 ) AS col2 FROM tab2 cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT + MIN( ALL + col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-3739
SELECT + MIN ( ALL + col2 ) FROM tab0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - - col0 col2 FROM tab0
----
705
870
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-3741
SELECT - col2 DIV + 51 AS col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3741
SELECT - col2 / + 51 AS col0 FROM tab2
----
-1
0
0

query I rowsort
SELECT + ( + 52 ) FROM tab0
----
52
52
52

query I rowsort
SELECT DISTINCT + 60 AS col0 FROM tab2 cor0
----
60

query I rowsort
SELECT ALL + + 94 FROM tab1 cor0
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT - MAX( ALL + ( - col2 ) ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-3745
SELECT - MAX ( ALL + ( - col2 ) ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT DISTINCT + COUNT( ALL - - 15 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3746
SELECT DISTINCT + COUNT ( ALL - - 15 ) FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 76 * - 35 AS col2, 62 col1 FROM tab0 AS cor0
----
-2660
62
-2660
62
-2660
62

query I rowsort
SELECT + 6 AS col2 FROM tab1 WHERE - col0 IS NULL
----

query I rowsort
SELECT ALL - col0 + - col1 + + 53 FROM tab0 cor0
----
-43
-45
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT DISTINCT - SUM( DISTINCT - 61 ) FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-3750
SELECT DISTINCT - SUM ( DISTINCT - 61 ) FROM tab2 AS cor0
----
61

query I rowsort
SELECT col1 + - 51 FROM tab1 AS cor0
----
-37
-4
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT ALL - + SUM( ALL - ( + col1 ) ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3752
SELECT ALL - + SUM ( ALL - ( + col1 ) ) FROM tab1 AS cor0
----
66

query I rowsort
SELECT DISTINCT 21 - - ( - + col2 ) FROM tab2 AS cor0
----
-19
-2
-37

query I rowsort
SELECT ALL - 91 * - 52 FROM tab1 AS cor0
----
4732
4732
4732

onlyif mysql # aggregate syntax: 
query I rowsort label-3755
SELECT - MIN( ALL - 97 ) AS col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-3755
SELECT - MIN ( ALL - 97 ) AS col2 FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT - COUNT( * ) * + COUNT( * ) AS col1 FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3756
SELECT - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab2 cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col2 * + col1 col0 FROM tab0 AS cor0
----
308367
4410
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN + - 27 * - col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 AS col0 FROM tab1 WHERE - - col0 IS NULL
----

query I rowsort
SELECT DISTINCT - ( + 84 ) FROM tab1
----
-84

query II rowsort
SELECT col0, col1 * + col2 FROM tab0
----
15
3807
87
210
97
99

query I rowsort
SELECT ALL - col1 + + - col1 FROM tab1
----
-10
-28
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3763
SELECT col1 * - + ( 15 ) + col0 AS col1 FROM tab2 WHERE 83 / + col2 + - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3763
SELECT col1 * - + ( 15 ) + col0 AS col1 FROM tab2 WHERE 83 / + col2 + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * - ( col2 ) * + col0 - 5 + + + col0 AS col2 FROM tab0
----
33145
8782
950789

query I rowsort
SELECT ALL col0 * 68 + 65 FROM tab2
----
3193
4417
5165

query III rowsort
SELECT * FROM tab2 WHERE + 5 / - col1 <= + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 87 + + + col2 * col2 + - 21 * col0 AS col2 FROM tab2 cor0
----
-350
1876
343

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3768
SELECT - col2 + + 83 + + col0 * + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3768
SELECT - col2 + + 83 + + col0 * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3769
SELECT - col0 + - col1 DIV - col2 + - - 92 AS col1 FROM tab0 AS cor0
----
-5
7
78

skipif mysql # not compatible
query I rowsort label-3769
SELECT - col0 + - col1 / - col2 + - - 92 AS col1 FROM tab0 AS cor0
----
-5
7
78

query I rowsort
SELECT + + 30 AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
30
30
30

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 19 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT ALL ( + SUM( ALL col1 ) ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-3772
SELECT ALL ( + SUM ( ALL col1 ) ) FROM tab0
----
103

query I rowsort
SELECT col2 * + col2 * - - col1 FROM tab2
----
123200
225388
26979

query I rowsort
SELECT ALL + col1 * - col0 + + col2 + - - 67 AS col2 FROM tab2 AS cor0
----
-2256
-4821
-4900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3775
SELECT CAST( NULL AS SIGNED ) * - col0 + + + col1 + 57 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3775
SELECT CAST ( NULL AS INTEGER ) * - col0 + + + col1 + 57 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3776
SELECT DISTINCT + + col1 * CAST( + - col0 AS SIGNED ) FROM tab2 AS cor0
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-3776
SELECT DISTINCT + + col1 * CAST ( + - col0 AS INTEGER ) FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT - ( + + 9 ) FROM tab1 AS cor0
----
-9
-9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3778
SELECT DISTINCT + COUNT( * ) * - MIN( - 59 ) AS col0 FROM tab2 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-3778
SELECT DISTINCT + COUNT ( * ) * - MIN ( - 59 ) AS col0 FROM tab2 AS cor0
----
177

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col0 * + 88 * - col1 + - - 84 IS NOT NULL
----

query I rowsort
SELECT col1 + + col1 * - ( - ( - col2 ) ) FROM tab1 WHERE NOT NULL <= - + 36
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT + COUNT( ALL + 96 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3781
SELECT + COUNT ( ALL + 96 ) FROM tab2
----
3

query I rowsort
SELECT col1 * - 18 FROM tab1
----
-252
-846
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3783
SELECT - 71 + - ( + 19 ) DIV COUNT( * ) FROM tab1
----
-77

skipif mysql # not compatible
query I rowsort label-3783
SELECT - 71 + - ( + 19 ) / COUNT ( * ) FROM tab1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3784
SELECT + 86 + ( + + 81 ) * - COUNT( * ) * + - 71 FROM tab2 cor0
----
17339

skipif mysql # not compatible
query I rowsort label-3784
SELECT + 86 + ( + + 81 ) * - COUNT ( * ) * + - 71 FROM tab2 cor0
----
17339

query I rowsort
SELECT - + 22 + + 31 FROM tab0 AS cor0
----
9
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT - 30 + COUNT( * ) AS col1 FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-3786
SELECT - 30 + COUNT ( * ) AS col1 FROM tab1
----
-27

query I rowsort
SELECT DISTINCT col1 * + 84 FROM tab2
----
4284
5628
6468

onlyif mysql # aggregate syntax: 
query I rowsort label-3788
SELECT ALL ( COUNT( + col1 ) ) FROM tab2 WHERE NOT 92 - + col2 NOT BETWEEN + 45 * 83 + col0 * - 35 AND ( + 23 * - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3788
SELECT ALL ( COUNT ( + col1 ) ) FROM tab2 WHERE NOT 92 - + col2 NOT BETWEEN + 45 * 83 + col0 * - 35 AND ( + 23 * - col0 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3789
SELECT - col1 + col2 DIV 62 AS col2 FROM tab0
----
-21
-81
0

skipif mysql # not compatible
query I rowsort label-3789
SELECT - col1 + col2 / 62 AS col2 FROM tab0
----
-21
-81
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col0 ) + 5 col0 FROM tab2
----
-41
-59
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3791
SELECT ALL ( CAST( NULL AS SIGNED ) ) * + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3791
SELECT ALL ( CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 * 0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 * + 77 BETWEEN NULL AND + 37 * 80
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3794
SELECT DISTINCT 89 - + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3794
SELECT DISTINCT 89 - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3795
SELECT 51 AS col2 FROM tab2 WHERE NOT ( CAST( + 44 AS DECIMAL ) - - 91 ) IS NULL
----
51
51
51

skipif mysql # not compatible
query I rowsort label-3795
SELECT 51 AS col2 FROM tab2 WHERE NOT ( CAST ( + 44 AS REAL ) - - 91 ) IS NULL
----
51
51
51

query III rowsort
SELECT * FROM tab2 WHERE + col1 * - col0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3797
SELECT DISTINCT 32 DIV MIN( - 27 ) + + 14 col1 FROM tab0
----
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3797
SELECT DISTINCT 32 / MIN ( - 27 ) + + 14 col1 FROM tab0
----
13

query I rowsort
SELECT 56 * 34 AS col0 FROM tab0
----
1904
1904
1904

onlyif mysql # DIV for integer division: 
query I rowsort label-3799
SELECT DISTINCT 99 DIV + 91 + + 19 FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-3799
SELECT DISTINCT 99 / + 91 + + 19 FROM tab0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT ALL COUNT( * ) * COUNT( * ) - + 73 * + 59 AS col2 FROM tab0
----
-4298

skipif mysql # not compatible
query I rowsort label-3800
SELECT ALL COUNT ( * ) * COUNT ( * ) - + 73 * + 59 AS col2 FROM tab0
----
-4298

onlyif mysql # DIV for integer division: 
query I rowsort label-3801
SELECT ALL - col2 DIV 88 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3801
SELECT ALL - col2 / 88 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3802
SELECT - ( 63 ) * 27 + CAST( col1 - - col1 AS SIGNED ) AS col0 FROM tab2
----
-1547
-1567
-1599

skipif mysql # not compatible
query I rowsort label-3802
SELECT - ( 63 ) * 27 + CAST ( col1 - - col1 AS INTEGER ) AS col0 FROM tab2
----
-1547
-1567
-1599

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 * - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3804
SELECT ( + 40 ) * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3804
SELECT ( + 40 ) * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 - + 26 AS col1 FROM tab0 WHERE NOT 76 IS NULL
----
-16
21
73

query III rowsort
SELECT * FROM tab0 WHERE ( + col0 * + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3807
SELECT ( - COUNT( * ) ) * + MAX( col1 - - col0 ) AS col0 FROM tab2
----
-426

skipif mysql # not compatible
query I rowsort label-3807
SELECT ( - COUNT ( * ) ) * + MAX ( col1 - - col0 ) AS col0 FROM tab2
----
-426

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT ALL AVG ( 29 ) + COUNT( * ) * COUNT( * ) FROM tab0 WHERE NULL NOT BETWEEN col2 * col1 AND ( - col1 * 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3808
SELECT ALL AVG ( 29 ) + COUNT ( * ) * COUNT ( * ) FROM tab0 WHERE NULL NOT BETWEEN col2 * col1 AND ( - col1 * 87 )
----
NULL

query I rowsort
SELECT DISTINCT + col1 / - col1 FROM tab2 WHERE NOT 79 / col2 NOT BETWEEN col2 + 77 AND 96
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 76 * - col1 col1 FROM tab1
----
1064
3572
380

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3811
SELECT * FROM tab2 WHERE CAST( NULL AS SIGNED ) > ( - CAST( + 92 AS SIGNED ) + 28 )
----

skipif mysql # not compatible
query III rowsort label-3811
SELECT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) > ( - CAST ( + 92 AS INTEGER ) + 28 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3812
SELECT ALL - col2 * - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT - 47 >= 18 / - ( + ( col0 ) * col0 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3812
SELECT ALL - col2 * - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT - 47 >= 18 / - ( + ( col0 ) * col0 )
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3813
SELECT ALL - col1 + col1 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) + col0 IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3813
SELECT ALL - col1 + col1 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) + col0 IS NOT NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT COUNT( * ) * - 40 FROM tab1 AS cor0 WHERE + col2 BETWEEN + col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3814
SELECT COUNT ( * ) * - 40 FROM tab1 AS cor0 WHERE + col2 BETWEEN + col0 AND NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 27 < col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3816
SELECT * FROM tab0 AS cor0 WHERE NOT ( 32 / + ( + 11 ) + - 2 ) NOT BETWEEN col0 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3816
SELECT * FROM tab0 AS cor0 WHERE NOT ( 32 / + ( + 11 ) + - 2 ) NOT BETWEEN col0 AND CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + col2 * - 24 FROM tab2 cor0
----
-1392
-552
-960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3818
SELECT ALL + MIN( CAST( NULL AS SIGNED ) ) / 58 FROM tab1 AS cor0 CROSS JOIN tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3818
SELECT ALL + MIN ( CAST ( NULL AS INTEGER ) ) / 58 FROM tab1 AS cor0 CROSS JOIN tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 76 < NULL
----

query I rowsort
SELECT - 77 * + 23 FROM tab0
----
-1771
-1771
-1771

query I rowsort
SELECT ALL 16 * + col1 AS col2 FROM tab1
----
224
752
80

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 IN ( 2 * - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * col0 col1 FROM tab0 cor0
----
-1215
-1827
-97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 32 >= - 86
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3825
SELECT ALL + - col2 DIV ( col2 ) FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3825
SELECT ALL + - col2 / ( col2 ) FROM tab0 AS cor0
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col0 - col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 62 AS col0 FROM tab1 AS cor0
----
-62

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 89 + col2 IS NOT NULL
----

query I rowsort
SELECT + col2 AS col2 FROM tab0 WHERE NOT col1 < + 2
----
10
47

onlyif mysql # DIV for integer division: 
query I rowsort label-3830
SELECT ALL + col1 DIV - col1 + col0 AS col1 FROM tab1
----
50
84
90

skipif mysql # not compatible
query I rowsort label-3830
SELECT ALL + col1 / - col1 + col0 AS col1 FROM tab1
----
50
84
90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3831
SELECT * FROM tab0 WHERE NOT + col1 * CAST( + col2 AS SIGNED ) BETWEEN col2 AND ( + 94 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3831
SELECT * FROM tab0 WHERE NOT + col1 * CAST ( + col2 AS INTEGER ) BETWEEN col2 AND ( + 94 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3832
SELECT ALL - col0 DIV + 5 FROM tab2
----
-12
-15
-9

skipif mysql # not compatible
query I rowsort label-3832
SELECT ALL - col0 / + 5 FROM tab2
----
-12
-15
-9

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 BETWEEN ( - col2 ) AND NULL
----

query I rowsort
SELECT DISTINCT 62 + + col1 FROM tab2
----
113
129
139

onlyif mysql # aggregate syntax: 
query I rowsort label-3835
SELECT - 91 + COUNT( * ) FROM tab1 WHERE ( - col0 ) > NULL
----
-91

skipif mysql # not compatible
query I rowsort label-3835
SELECT - 91 + COUNT ( * ) FROM tab1 WHERE ( - col0 ) > NULL
----
-91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 / - col1 + - col0 NOT IN ( - col0 * + col0 + + col1 )
----

query I rowsort
SELECT 88 * + col0 * 86 AS col0 FROM tab2 AS cor0
----
348128
484352
567600

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT DISTINCT ( MAX( ALL col0 ) ) col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3838
SELECT DISTINCT ( MAX ( ALL col0 ) ) col2 FROM tab2 AS cor0
----
75

query I rowsort
SELECT DISTINCT - ( - - col0 ) FROM tab2 AS cor0
----
-46
-64
-75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 20 - ( + col0 + col2 ) * - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT + SUM( ALL - col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-3841
SELECT + SUM ( ALL - col1 ) FROM tab2 AS cor0
----
-195

query I rowsort
SELECT - col2 + + 94 * + 71 FROM tab0
----
6575
6627
6664

query I rowsort
SELECT ALL - + ( - 18 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT ALL col0 * 26 + 80 FROM tab2 AS cor0
----
1276
1744
2030

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col0, - col2 col2 FROM tab1 cor0
----
14
-96
47
-68
5
-59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3846
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) > - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3846
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) > - CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3847
SELECT DISTINCT col2 DIV + + 50 + - - col0 - + col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3847
SELECT DISTINCT col2 / + + 50 + - - col0 - + col0 FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL + + col0 * ( + 51 ) - col1 FROM tab0 AS cor0
----
4416
4946
684

query I rowsort
SELECT DISTINCT col1 + col2 AS col0 FROM tab0 AS cor0 WHERE NULL > + ( + 12 ) - - 85
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3850
SELECT + CAST( NULL AS SIGNED ) - 82 + + 50 * + + 85 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3850
SELECT + CAST ( NULL AS INTEGER ) - 82 + + 50 * + + 85 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3851
SELECT col1 * - + CAST( + col0 AS SIGNED ) - - col0 FROM tab1
----
-340
-4186
-663

skipif mysql # not compatible
query I rowsort label-3851
SELECT col1 * - + CAST ( + col0 AS INTEGER ) - - col0 FROM tab1
----
-340
-4186
-663

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN - col1 AND ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3853
SELECT - 10 * CAST( NULL AS DECIMAL ) AS col1 FROM tab0 WHERE NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-3853
SELECT - 10 * CAST ( NULL AS REAL ) AS col1 FROM tab0 WHERE NULL <> NULL
----

query I rowsort
SELECT 79 - - - 72 FROM tab2
----
7
7
7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 69 <= NULL
----

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE NOT + col1 < - col1
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - 15 ) = col0 * + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3858
SELECT + + col2 / - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3858
SELECT + + col2 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3859
SELECT + + SUM( - ( CAST( NULL AS SIGNED ) ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3859
SELECT + + SUM ( - ( CAST ( NULL AS INTEGER ) ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT DISTINCT MAX( + - col0 ) AS col1 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-3860
SELECT DISTINCT MAX ( + - col0 ) AS col1 FROM tab2
----
-46

query I rowsort
SELECT DISTINCT + col1 * + - col2 AS col1 FROM tab0
----
-210
-3807
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 72 col0 FROM tab1 AS cor0
----
-72
-72
-72

query I rowsort
SELECT + + 82 * + + col0 FROM tab1 AS cor0
----
4182
6970
7462

query I rowsort
SELECT ALL + 17 AS col1 FROM tab0 AS cor0
----
17
17
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3865
SELECT + 57 DIV - COUNT( * ) FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-3865
SELECT + 57 / - COUNT ( * ) FROM tab1 AS cor0
----
-19

query I rowsort
SELECT ALL col0 + col0 + col0 + + + col0 - 52 + - - col0 * 15 * + col1 FROM tab2
----
35322
74124
75623

query I rowsort
SELECT DISTINCT col1 + - - 53 AS col1 FROM tab2
----
104
120
130

query I rowsort
SELECT + 69 FROM tab2 WHERE col1 + + - col2 * + + col1 < - + col0 / + col0
----
69
69
69

query III rowsort
SELECT * FROM tab1 WHERE - + 21 - - ( - ( + 19 ) ) * + col0 NOT BETWEEN ( col2 ) AND ( - ( col2 ) * col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE 56 + - 0 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3871
SELECT + col1 FROM tab0 WHERE + CAST( NULL AS DECIMAL ) NOT IN ( - col0 )
----

skipif mysql # not compatible
query I rowsort label-3871
SELECT + col1 FROM tab0 WHERE + CAST ( NULL AS REAL ) NOT IN ( - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col2 + - - col1 + - col0 col0 FROM tab2
----
1178
3093
3878

query I rowsort
SELECT - col1 * col1 + - - 46 AS col1 FROM tab1
----
-150
-2163
21

query I rowsort
SELECT 30 * + col0 + + col0 AS col1 FROM tab0
----
2697
3007
465

query I rowsort
SELECT ALL + col1 * col2 FROM tab0 WHERE - 97 + - col1 IN ( + + 47 )
----

query I rowsort
SELECT DISTINCT - 37 + - 82 AS col0 FROM tab0 AS cor0
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT SUM( DISTINCT + - 74 ) FROM tab0
----
-74

skipif mysql # not compatible
query I rowsort label-3877
SELECT SUM ( DISTINCT + - 74 ) FROM tab0
----
-74

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3878
SELECT DISTINCT - col0 + col2, + 7 AS col0, - + col1 * - CAST( NULL AS DECIMAL ) * CAST( + 37 AS DECIMAL ) AS col2 FROM tab0
----
9 values hashing to 6561f663a71d324fd28fa8e19cfc195d

skipif mysql # not compatible
query III rowsort label-3878
SELECT DISTINCT - col0 + col2, + 7 AS col0, - + col1 * - CAST ( NULL AS REAL ) * CAST ( + 37 AS REAL ) AS col2 FROM tab0
----
9 values hashing to 6561f663a71d324fd28fa8e19cfc195d

query II rowsort
SELECT DISTINCT 77 + + 28, + col0 AS col0 FROM tab2
----
105
46
105
64
105
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - - - 17 - - - 19 col0 FROM tab1
----
-41
-50
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-3881
SELECT - 73 * - - col2 DIV + col2 - + col0 FROM tab0
----
-160
-170
-88

skipif mysql # not compatible
query I rowsort label-3881
SELECT - 73 * - - col2 / + col2 - + col0 FROM tab0
----
-160
-170
-88

query I rowsort
SELECT - ( + + col2 ) - 27 FROM tab1
----
-123
-86
-95

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 96 * 6 BETWEEN ( - + col0 ) AND col0
----

query I rowsort
SELECT + col0 - col2 * - 44 FROM tab0 cor0
----
2083
4453
527

query I rowsort
SELECT DISTINCT + - 6 + - + col1 AS col2 FROM tab0 cor0
----
-27
-7
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3886
SELECT DISTINCT - - col0 * + - CAST( NULL AS SIGNED ) + - 22 - - col0 + col2 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3886
SELECT DISTINCT - - col0 * + - CAST ( NULL AS INTEGER ) + - 22 - - col0 + col2 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3887
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col1 ) NOT IN ( + col2, CAST( NULL AS SIGNED ) * - - 76 )
----

skipif mysql # not compatible
query III rowsort label-3887
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col1 ) NOT IN ( + col2, CAST ( NULL AS INTEGER ) * - - 76 )
----

query II rowsort
SELECT + col2 + + col1, col0 FROM tab0 AS cor0
----
100
97
128
15
31
87

onlyif mysql # DIV for integer division: 
query I rowsort label-3889
SELECT - col0 DIV - - col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3889
SELECT - col0 / - - col0 FROM tab0
----
-1
-1
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3890
SELECT ALL + col2 / + CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3890
SELECT ALL + col2 / + CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3891
SELECT CAST( NULL AS DECIMAL ) * - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3891
SELECT CAST ( NULL AS REAL ) * - col1 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT 2, col2 FROM tab0
----
2
10
2
47
2
99

query I rowsort
SELECT DISTINCT + ( + col2 ) AS col1 FROM tab0 WHERE NOT 88 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3894
SELECT col0 * - CAST( NULL AS SIGNED ) * - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3894
SELECT col0 * - CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT - col2 AS col2, col2 * - 7 AS col1 FROM tab2
----
-23
-161
-40
-280
-58
-406

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3896
SELECT ALL - - MIN( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3896
SELECT ALL - - MIN ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 < NULL
----

query II rowsort
SELECT - 84, - col1 AS col1 FROM tab0 AS cor0
----
-84
-1
-84
-21
-84
-81

query I rowsort
SELECT DISTINCT + 99 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
99

query I rowsort
SELECT - 44 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + - 65 ) IS NOT NULL
----

query I rowsort
SELECT ALL 57 + + + col2 FROM tab0
----
104
156
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 6 col1 FROM tab1 cor0
----
6

query I rowsort
SELECT ALL - + col2 * - 3 + - ( - - col0 ) * - col2 * - - 31 AS col1 FROM tab2 AS cor0
----
135024
32867
79480

query I rowsort
SELECT col2 + + - col0 FROM tab1 AS cor0 WHERE NULL NOT IN ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3906
SELECT ALL - + col1 FROM tab2 AS cor0 WHERE NOT + col2 * col1 <= + CAST( NULL AS SIGNED ) - + - 73
----

skipif mysql # not compatible
query I rowsort label-3906
SELECT ALL - + col1 FROM tab2 AS cor0 WHERE NOT + col2 * col1 <= + CAST ( NULL AS INTEGER ) - + - 73
----

query I rowsort
SELECT + col0 * + + col2 * + col1 FROM tab1
----
25075
290836
68544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 44 col1 FROM tab2
----
44
44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT ALL - MAX( + col2 ) AS col2 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-3909
SELECT ALL - MAX ( + col2 ) AS col2 FROM tab1
----
-96

query I rowsort
SELECT ALL col1 + + 89 FROM tab0
----
110
170
90

onlyif mysql # DIV for integer division: 
query I rowsort label-3911
SELECT DISTINCT col2 DIV - - ( col1 ) AS col0 FROM tab2 WHERE + + 85 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3911
SELECT DISTINCT col2 / - - ( col1 ) AS col0 FROM tab2 WHERE + + 85 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 WHERE + col1 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3912
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 WHERE + col1 NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3913
SELECT ALL 42 + + 74 DIV + COUNT( * ) + - COUNT( * ) + - COUNT( * ) * - + COUNT( * ) DIV + - MAX( 47 ) FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-3913
SELECT ALL 42 + + 74 / + COUNT ( * ) + - COUNT ( * ) + - COUNT ( * ) * - + COUNT ( * ) / + - MAX ( 47 ) FROM tab2
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3914
SELECT DISTINCT + 70 * - MAX( 61 ) + + MIN( ALL CAST( - 85 AS SIGNED ) ) FROM tab1
----
-4355

skipif mysql # not compatible
query I rowsort label-3914
SELECT DISTINCT + 70 * - MAX ( 61 ) + + MIN ( ALL CAST ( - 85 AS INTEGER ) ) FROM tab1
----
-4355

query I rowsort
SELECT + col1 + col2 + - - 18 AS col2 FROM tab2
----
135
143
92

query I rowsort
SELECT DISTINCT - + 34 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-34

query I rowsort
SELECT DISTINCT + 29 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-3918
SELECT + COUNT( * ) col0, + COUNT( * ) * COUNT( * ) * SUM( DISTINCT col0 ) FROM tab1 AS cor0
----
3
2043

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3918
SELECT + COUNT ( * ) col0, + COUNT ( * ) * COUNT ( * ) * SUM ( DISTINCT col0 ) FROM tab1 AS cor0
----
3
2043

onlyif mysql # DIV for integer division: 
query I rowsort label-3919
SELECT ALL - + 35 + ( - col0 ) * col2 DIV 15 FROM tab1 AS cor0 WHERE - col2 * + - col0 IS NOT NULL
----
-361
-369
-447

skipif mysql # not compatible
query I rowsort label-3919
SELECT ALL - + 35 + ( - col0 ) * col2 / 15 FROM tab1 AS cor0 WHERE - col2 * + - col0 IS NOT NULL
----
-361
-369
-447

query I rowsort
SELECT ALL - 87 + + ( - col1 ) AS col2 FROM tab1 AS cor0
----
-101
-134
-92

query I rowsort
SELECT DISTINCT 18 * - 29 AS col2 FROM tab0 AS cor0
----
-522

onlyif mysql # DIV for integer division: 
query I rowsort label-3922
SELECT ALL + col2 DIV 80 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3922
SELECT ALL + col2 / 80 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3923
SELECT CAST( col1 AS SIGNED ), + col2 col0 FROM tab1 AS cor0
----
14
96
47
68
5
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3923
SELECT CAST ( col1 AS INTEGER ), + col2 col0 FROM tab1 AS cor0
----
14
96
47
68
5
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3924
SELECT ALL - + col1 / + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3924
SELECT ALL - + col1 / + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col0, - 87 AS col2 FROM tab1 AS cor0
----
51
-87
85
-87
91
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col2 AS col2, col1 col0 FROM tab0 AS cor0
----
10
21
47
81
99
1

query II rowsort
SELECT ALL + 49 * - col0 AS col2, 82 * col2 FROM tab1
----
-2499
7872
-4165
4838
-4459
5576

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT 3 IS NULL
----
51
67
77

query I rowsort
SELECT col1 FROM tab0 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3930
SELECT ALL - 23 DIV - ( - col0 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3930
SELECT ALL - 23 / - ( - col0 ) FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3931
SELECT + ( + CAST( + + col0 AS SIGNED ) ) AS col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3931
SELECT + ( + CAST ( + + col0 AS INTEGER ) ) AS col1 FROM tab2
----
46
64
75

query I rowsort
SELECT ALL + 79 - - col0 FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( + 72 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3934
SELECT DISTINCT MIN( DISTINCT - CAST( - 80 AS SIGNED ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
80

skipif mysql # not compatible
query I rowsort label-3934
SELECT DISTINCT MIN ( DISTINCT - CAST ( - 80 AS INTEGER ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
80

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + ( + + col2 ) + + col1 NOT BETWEEN + - col0 AND col0
----

query I rowsort
SELECT ALL + - col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( col2, - col1 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( col2, col1 * - + col1 )
----

query I rowsort
SELECT ( - - col0 ) FROM tab0 cor0
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3939
SELECT ALL ( - MAX( - CAST( NULL AS DECIMAL ) ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3939
SELECT ALL ( - MAX ( - CAST ( NULL AS REAL ) ) ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT ALL MIN( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-3940
SELECT ALL MIN ( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-3941
SELECT - 78 AS col2, COUNT( * ) - - - 74 FROM tab1 AS cor0
----
-78
-71

skipif mysql # not compatible
query II rowsort label-3941
SELECT - 78 AS col2, COUNT ( * ) - - - 74 FROM tab1 AS cor0
----
-78
-71

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT - COUNT( * ) + + 37 AS col0 FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-3943
SELECT - COUNT ( * ) + + 37 AS col0 FROM tab0
----
34

query I rowsort
SELECT 95 * - col0 + - ( col2 ) * - + col2 AS col2 FROM tab2
----
-3761
-3841
-4480

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN + - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT DISTINCT - COUNT( * ) + - 71 * 30 AS col1 FROM tab0
----
-2133

skipif mysql # not compatible
query I rowsort label-3946
SELECT DISTINCT - COUNT ( * ) + - 71 * 30 AS col1 FROM tab0
----
-2133

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT SUM( DISTINCT 47 ) + + 13 col2 FROM tab1
----
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3947
SELECT SUM ( DISTINCT 47 ) + + 13 col2 FROM tab1
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3948
SELECT + 15 / + - CAST( NULL AS SIGNED ) * 44 + - - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3948
SELECT + 15 / + - CAST ( NULL AS INTEGER ) * 44 + - - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 = + + col2 * + ( - col0 )
----

query II rowsort
SELECT + col2 * + - col2, - col1 * + col1 AS col2 FROM tab1 AS cor0
----
-3481
-25
-4624
-2209
-9216
-196

query I rowsort
SELECT - ( - 6 ) FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT - 66 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to a408108d423d7784b7d610cb779e515a

query I rowsort
SELECT ALL 40 + 42 AS col1 FROM tab0
----
82
82
82

query I rowsort
SELECT DISTINCT 58 * - col0 FROM tab0
----
-5046
-5626
-870

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT 35 * COUNT( * ) FROM tab0 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-3955
SELECT 35 * COUNT ( * ) FROM tab0 AS cor0
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-3956
SELECT DISTINCT - col1 DIV + 3 AS col1 FROM tab1 AS cor0
----
-1
-15
-4

skipif mysql # not compatible
query I rowsort label-3956
SELECT DISTINCT - col1 / + 3 AS col1 FROM tab1 AS cor0
----
-1
-15
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-3957
SELECT DISTINCT - col2 DIV + + col0 AS col2 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3957
SELECT DISTINCT - col2 / + + col0 AS col2 FROM tab1 AS cor0
----
-1
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN NULL AND col1 + col2 + - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT ALL - 56 * + - COUNT( * ) AS col2 FROM tab0
----
168

skipif mysql # not compatible
query I rowsort label-3959
SELECT ALL - 56 * + - COUNT ( * ) AS col2 FROM tab0
----
168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3960
SELECT + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3960
SELECT + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query II rowsort
SELECT + col2 AS col0, 62 FROM tab2
----
23
62
40
62
58
62

onlyif mysql # aggregate syntax: 
query II rowsort label-3962
SELECT - COUNT( * ) AS col0, ( - 11 ) FROM tab0
----
-3
-11

skipif mysql # not compatible
query II rowsort label-3962
SELECT - COUNT ( * ) AS col0, ( - 11 ) FROM tab0
----
-3
-11

query I rowsort
SELECT ALL - col2 * + col1 * + col0 FROM tab2
----
-197120
-291450
-53958

query I rowsort
SELECT ALL - 19 * + 16 AS col2 FROM tab2 WHERE NOT 12 IS NULL
----
-304
-304
-304

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3965
SELECT DISTINCT COUNT( * ) DIV - ( - COUNT( * ) ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3965
SELECT DISTINCT COUNT ( * ) / - ( - COUNT ( * ) ) AS col0 FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3966
SELECT ALL + col2 AS col1, + CAST( NULL AS SIGNED ) FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-3966
SELECT ALL + col2 AS col1, + CAST ( NULL AS INTEGER ) FROM tab2
----
23
NULL
40
NULL
58
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3967
SELECT 62 AS col2, CAST( - 75 AS SIGNED ) AS col1 FROM tab1
----
62
-75
62
-75
62
-75

skipif mysql # not compatible
query II rowsort label-3967
SELECT 62 AS col2, CAST ( - 75 AS INTEGER ) AS col1 FROM tab1
----
62
-75
62
-75
62
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT MAX( ALL - col2 ) AS col0 FROM tab2 cor0 WHERE NOT ( NOT NULL NOT BETWEEN + 68 * + - col1 + col2 * - 67 * + 12 AND NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3968
SELECT MAX ( ALL - col2 ) AS col0 FROM tab2 cor0 WHERE NOT ( NOT NULL NOT BETWEEN + 68 * + - col1 + col2 * - 67 * + 12 AND NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3969
SELECT ALL + 85 * - COUNT( * ) FROM tab1 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-3969
SELECT ALL + 85 * - COUNT ( * ) FROM tab1 AS cor0
----
-255

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT ALL - 15 * - 21 * + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
945

skipif mysql # not compatible
query I rowsort label-3970
SELECT ALL - 15 * - 21 * + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
945

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3971
SELECT ALL - col0 AS col0, col2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-3971
SELECT ALL - col0 AS col0, col2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col1 col2, - col1 + - + col2 FROM tab2 AS cor0
----
51
-74
67
-125
77
-117

query II rowsort
SELECT ALL 14 AS col0, col2 + col0 FROM tab1 AS cor0
----
14
144
14
147
14
159

query II rowsort
SELECT DISTINCT + col1 * + 10 * - 15 AS col1, 62 AS col1 FROM tab0
----
-12150
62
-150
62
-3150
62

query II rowsort
SELECT col1 + + col1 + - col1, col1 FROM tab2
----
51
51
67
67
77
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * 17 * 72 IS NULL
----

query I rowsort
SELECT 98 * + + col1 AS col0 FROM tab2 cor0
----
4998
6566
7546

onlyif mysql # DIV for integer division: 
query I rowsort label-3978
SELECT DISTINCT + col1 DIV - - col0 AS col0 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3978
SELECT DISTINCT + col1 / - - col0 AS col0 FROM tab2 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3979
SELECT + 75 * - COUNT( * ) AS col0, 77 AS col0 FROM tab1 cor0
----
-225
77

skipif mysql # not compatible
query II rowsort label-3979
SELECT + 75 * - COUNT ( * ) AS col0, 77 AS col0 FROM tab1 cor0
----
-225
77

query II rowsort
SELECT ALL - 72, col2 FROM tab1
----
-72
59
-72
68
-72
96

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 8 * - + ( + col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 + col1 + + col2 + + 37 * col0 * - - 89 * col1 AS col0 FROM tab0
----
319522
4001204
6016363

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = + col2
----

query I rowsort
SELECT + 47 FROM tab2 WHERE NULL BETWEEN ( - col1 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + - col2 ) + col2 + + col1 <> NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( + col1 ) NOT BETWEEN 47 AND - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 + - 51 * + col1 FROM tab0 AS cor0
----
-1050
-4050
-50

query I rowsort
SELECT - 36 + + col1 FROM tab0 AS cor0
----
-15
-35
45

query I rowsort
SELECT + col1 * + col1 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
1
441
6561

query I rowsort
SELECT ALL + 33 - 14 FROM tab0 AS cor0
----
19
19
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col2, - col2 FROM tab2 cor0
----
-23
-23
-40
-40
-58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT MAX( + 82 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE - 67 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3992
SELECT MAX ( + 82 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE - 67 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3993
SELECT + SUM( ALL + col1 ) col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3993
SELECT + SUM ( ALL + col1 ) col0 FROM tab1 AS cor0
----
66

query I rowsort
SELECT DISTINCT - ( - - col0 ) - + col0 * - col1 + - 63 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-63
1137
1677

query II rowsort
SELECT - - col1 * + col1 AS col1, 86 * 24 FROM tab1 cor0
----
196
2064
2209
2064
25
2064

onlyif mysql # DIV for integer division: 
query I rowsort label-3996
SELECT - ( - col2 ) DIV - col0 AS col0 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-3996
SELECT - ( - col2 ) / - col0 AS col0 FROM tab0 AS cor0
----
-1
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT + MAX( DISTINCT + col0 ) col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3997
SELECT + MAX ( DISTINCT + col0 ) col2 FROM tab0 AS cor0
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col1 col1 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT DISTINCT + - COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3999
SELECT DISTINCT + - COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4000
SELECT - - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4000
SELECT - - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4001
SELECT - col0, + CAST( - col1 AS SIGNED ) AS col2 FROM tab0
----
-15
-81
-87
-21
-97
-1

skipif mysql # not compatible
query II rowsort label-4001
SELECT - col0, + CAST ( - col1 AS INTEGER ) AS col2 FROM tab0
----
-15
-81
-87
-21
-97
-1

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 * - + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 / + - col2 + - - col1 BETWEEN + col1 + - col1 + - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4004
SELECT DISTINCT SUM( + col2 ) * - 24 FROM tab2
----
-2904

skipif mysql # not compatible
query I rowsort label-4004
SELECT DISTINCT SUM ( + col2 ) * - 24 FROM tab2
----
-2904

query I rowsort
SELECT DISTINCT - 45 * + 78 AS col1 FROM tab0
----
-3510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4006
SELECT DISTINCT COUNT( * ) * + CAST( + + 64 AS SIGNED ) FROM tab2 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-4006
SELECT DISTINCT COUNT ( * ) * + CAST ( + + 64 AS INTEGER ) FROM tab2 AS cor0
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT ALL + + COUNT( * ) * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4007
SELECT ALL + + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT col2 * + col0 + + - col0 FROM tab0 AS cor0
----
690
783
9506

query I rowsort
SELECT ALL - 39 * col1 FROM tab2 AS cor0
----
-1989
-2613
-3003

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 16 <> + col1 * - 70 + + 75
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4011
SELECT - col1 DIV col1 + - 13 FROM tab1 AS cor0
----
-14
-14
-14

skipif mysql # not compatible
query I rowsort label-4011
SELECT - col1 / col1 + - 13 FROM tab1 AS cor0
----
-14
-14
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT ALL + + SUM( DISTINCT 51 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4012
SELECT ALL + + SUM ( DISTINCT 51 ) FROM tab2 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4013
SELECT + col0 col0 FROM tab1 cor0 WHERE NULL <> - CAST( + - col2 AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4013
SELECT + col0 col0 FROM tab1 cor0 WHERE NULL <> - CAST ( + - col2 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT SUM( + col2 ) AS col0 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-4014
SELECT SUM ( + col2 ) AS col0 FROM tab1
----
223

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 34 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4016
SELECT ALL + col0 * + col0 + + 67 DIV + + 97 * - 51 DIV - 40 FROM tab0 AS cor0
----
225
7569
9409

skipif mysql # not compatible
query I rowsort label-4016
SELECT ALL + col0 * + col0 + + 67 / + + 97 * - 51 / - 40 FROM tab0 AS cor0
----
225
7569
9409

query I rowsort
SELECT + - 59 AS col0 FROM tab1 AS cor0 WHERE - ( - + 0 ) / - 12 * + + 84 + + col0 + + col1 * 99 * col0 IS NOT NULL
----
-59
-59
-59

query I rowsort
SELECT DISTINCT 8 * col2 AS col0 FROM tab2 AS cor0 WHERE - 14 NOT IN ( + col2 + 77 - + + 85 * - col2 * - col1 )
----
184
320
464

onlyif mysql # DIV for integer division: 
query II rowsort label-4019
SELECT ALL + col2 AS col2, 2 DIV - + col1 + - col2 FROM tab1 AS cor0
----
59
-59
68
-68
96
-96

skipif mysql # not compatible
query II rowsort label-4019
SELECT ALL + col2 AS col2, 2 / - + col1 + - col2 FROM tab1 AS cor0
----
59
-59
68
-68
96
-96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT 52 + + - col2 FROM tab1
----
-16
-44
-7

query I rowsort
SELECT col0 + + 45 AS col2 FROM tab1
----
130
136
96

query I rowsort
SELECT ALL ( + + col1 ) * - + col0 AS col1 FROM tab0
----
-1215
-1827
-97

query II rowsort
SELECT col0 * + 74, col2 FROM tab0
----
1110
47
6438
10
7178
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4025
SELECT + col2 DIV ( - ( - col0 ) ) FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4025
SELECT + col2 / ( - ( - col0 ) ) FROM tab1
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 58 + + col0 = col2
----

query I rowsort
SELECT - 93 * - col1 FROM tab2
----
4743
6231
7161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4028
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE - col0 < - col2 + + col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4028
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE - col0 < - col2 + + col0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4029
SELECT ALL col0 AS col2, - col0 DIV + - col2 FROM tab0 cor0
----
15
0
87
8
97
0

skipif mysql # not compatible
query II rowsort label-4029
SELECT ALL col0 AS col2, - col0 / + - col2 FROM tab0 cor0
----
15
0
87
8
97
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4030
SELECT ALL - MAX( - CAST( + ( - col2 ) AS SIGNED ) ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-4030
SELECT ALL - MAX ( - CAST ( + ( - col2 ) AS INTEGER ) ) FROM tab2 AS cor0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4031
SELECT + col0 * - col2, 53, - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT NULL > NULL
----

skipif mysql # not compatible
query III rowsort label-4031
SELECT + col0 * - col2, 53, - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT COUNT( * ) * MAX( ALL - col1 ) AS col1 FROM tab2
----
-153

skipif mysql # not compatible
query I rowsort label-4032
SELECT COUNT ( * ) * MAX ( ALL - col1 ) AS col1 FROM tab2
----
-153

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col0 * col0 - - col2 ) NOT BETWEEN + col1 AND - 73 * + + col0 - - + col1
----

query I rowsort
SELECT ( - 37 ) * + col0 + + + col1 AS col0 FROM tab2
----
-1651
-2291
-2708

query II rowsort
SELECT ALL - ( - + col2 ) AS col1, - col0 AS col1 FROM tab2 WHERE ( NOT ( NULL IS NOT NULL ) )
----
23
-46
40
-64
58
-75

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 WHERE - 81 = - + 73
----

query II rowsort
SELECT + col1 AS col0, + 44 AS col1 FROM tab2 AS cor0
----
51
44
67
44
77
44

query II rowsort
SELECT ( - col1 ), + col0 AS col1 FROM tab0 AS cor0 WHERE col1 * - 32 + + - col0 IS NOT NULL
----
-1
97
-21
87
-81
15

query I rowsort
SELECT DISTINCT - col2 + + 54 AS col0 FROM tab0 cor0
----
-45
44
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 * + 23 col1 FROM tab2 AS cor0
----
-1311
-1311
-1311

query I rowsort
SELECT DISTINCT col0 * + ( - col0 ) + col0 * - - col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) < + - col2
----

query I rowsort
SELECT ALL 32 * col0 * - col2 * + + 57 FROM tab1 AS cor0
----
-11286912
-8930304
-9147360

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 + + + col0 NOT BETWEEN - col2 AND col0 * - 11
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4044
SELECT CAST( - - ( col2 ) AS SIGNED ) DIV - + col2 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4044
SELECT CAST ( - - ( col2 ) AS INTEGER ) / - + col2 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - col0 * 90 AS col1 FROM tab0 cor0
----
-1350
-7830
-8730

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4046
SELECT ALL + COUNT( * ) FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN NULL AND 38
----
0

skipif mysql # not compatible
query I rowsort label-4046
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN NULL AND 38
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT DISTINCT - 78 * - COUNT( * ) AS col2 FROM tab0
----
234

skipif mysql # not compatible
query I rowsort label-4047
SELECT DISTINCT - 78 * - COUNT ( * ) AS col2 FROM tab0
----
234

query I rowsort
SELECT DISTINCT col2 * + ( + 55 ) + - - 30 + col1 AS col2 FROM tab2
----
1346
2307
3287

query I rowsort
SELECT col1 - 80 FROM tab0
----
-59
-79
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4050
SELECT DISTINCT col1 DIV - col0 * 80 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4050
SELECT DISTINCT col1 / - col0 * 80 AS col2 FROM tab1
----
0

query I rowsort
SELECT DISTINCT col0 * - col0 + + - 1 AS col0 FROM tab0
----
-226
-7570
-9410

query I rowsort
SELECT ALL 56 + + col0 AS col1 FROM tab1
----
107
141
147

query I rowsort
SELECT ALL ( col0 ) - 83 FROM tab0
----
-68
14
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4054
SELECT DISTINCT - CAST( col2 AS SIGNED ) + col1 * - 58 FROM tab0
----
-1228
-157
-4745

skipif mysql # not compatible
query I rowsort label-4054
SELECT DISTINCT - CAST ( col2 AS INTEGER ) + col1 * - 58 FROM tab0
----
-1228
-157
-4745

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4055
SELECT + CAST( NULL AS SIGNED ) * ( - 16 ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4055
SELECT + CAST ( NULL AS INTEGER ) * ( - 16 ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - 93 AS col0, + col1 FROM tab1 AS cor0
----
-93
14
-93
47
-93
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT - SUM( 88 ) FROM tab0 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-4057
SELECT - SUM ( 88 ) FROM tab0 AS cor0
----
-264

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4058
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - + col1 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4058
SELECT DISTINCT CAST ( NULL AS REAL ) * - + col1 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4059
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - 80 col1 FROM tab1, tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4059
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - 80 col1 FROM tab1, tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col0 ) <= col2 + ( 81 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4061
SELECT - COUNT( * ) * - + MIN( DISTINCT + CAST( NULL AS SIGNED ) ) * - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4061
SELECT - COUNT ( * ) * - + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) * - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT 0 IS NOT NULL
----

query I rowsort
SELECT ALL 26 + - col1 AS col2 FROM tab1 WHERE col0 + - - col1 BETWEEN NULL AND - col0 * - col0 * + ( - + col1 ) * + col0 * + - 16
----

query II rowsort
SELECT DISTINCT - col0 AS col1, + col0 + - - col0 + - col0 AS col2 FROM tab2
----
-46
46
-64
64
-75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT + - ( - COUNT( * ) ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4065
SELECT + - ( - COUNT ( * ) ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT + col0 + + + 11 AS col1 FROM tab0
----
108
26
98

query III rowsort
SELECT * FROM tab2 WHERE - - col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT DISTINCT + SUM( ALL + 74 ) FROM tab2 cor0
----
222

skipif mysql # not compatible
query I rowsort label-4068
SELECT DISTINCT + SUM ( ALL + 74 ) FROM tab2 cor0
----
222

onlyif mysql # DIV for integer division: 
query I rowsort label-4069
SELECT DISTINCT + col1 DIV - - col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4069
SELECT DISTINCT + col1 / - - col1 FROM tab2
----
1

query I rowsort
SELECT 27 - - - 60 * - col1 FROM tab2 AS cor0
----
3087
4047
4647

query I rowsort
SELECT ALL col1 + - 16 * + col2 FROM tab2 AS cor0
----
-317
-563
-861

query I rowsort
SELECT DISTINCT - col0 * 21 * + + 44 * 10 FROM tab1 cor0
----
-471240
-785400
-840840

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IS NOT NULL AND NOT - col1 * - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 IN ( - + col2 + - + col1 )
----

query I rowsort
SELECT DISTINCT col1 * 32 + + ( - col0 ) - + col0 FROM tab0 AS cor0
----
-162
2562
498

onlyif mysql # DIV for integer division: 
query I rowsort label-4076
SELECT DISTINCT - col0 DIV + 70 AS col2 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4076
SELECT DISTINCT - col0 / + 70 AS col2 FROM tab2 AS cor0
----
-1
0

query I rowsort
SELECT ALL ( - - col2 ) * - col1 + + + ( + col0 ) - + col2 + + 61 * + col2 - + col2 + - 16 * + col2 * + 0 AS col0 FROM tab0 cor0
----
-1019
467
5839

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 71 col2 FROM tab0 AS cor0 WHERE + col1 NOT BETWEEN col2 * + - col2 AND + ( + - 61 )
----
3337
7029
710

query II rowsort
SELECT DISTINCT + - col0 AS col0, + col1 AS col1 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4080
SELECT 76 DIV - ( + col2 ) AS col1 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4080
SELECT 76 / - ( + col2 ) AS col1 FROM tab1
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4081
SELECT ALL + col0 * - col2 DIV - col2 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4081
SELECT ALL + col0 * - col2 / - col2 FROM tab2
----
46
64
75

query II rowsort
SELECT ALL col0, - col1 FROM tab0 cor0
----
15
-81
87
-21
97
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4083
SELECT 26 + 84 DIV + COUNT( * ) + 41 FROM tab0 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-4083
SELECT 26 + 84 / + COUNT ( * ) + 41 FROM tab0 AS cor0
----
95

query II rowsort
SELECT ALL - col0 AS col1, + 22 FROM tab2 AS cor0
----
-46
22
-64
22
-75
22

onlyif mysql # DIV for integer division: 
query I rowsort label-4085
SELECT col0 DIV + 38 AS col0 FROM tab1 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-4085
SELECT col0 / + 38 AS col0 FROM tab1 AS cor0
----
1
2
2

query II rowsort
SELECT + - 17 AS col2, + ( + 45 ) - + - col2 AS col0 FROM tab2 AS cor0 WHERE NOT 12 + + - 34 NOT BETWEEN + + col2 AND col2
----

query I rowsort
SELECT + col2 - + + 7 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
3
40
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4088
SELECT - col1 * col2 * + CAST( col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-178929
-2100
-9801

skipif mysql # not compatible
query I rowsort label-4088
SELECT - col1 * col2 * + CAST ( col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-178929
-2100
-9801

query I rowsort
SELECT ALL - ( + 84 ) + - col0 + col2 FROM tab0 AS cor0
----
-161
-52
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4090
SELECT DISTINCT MIN( ALL + 73 ) DIV COUNT( * ) FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-4090
SELECT DISTINCT MIN ( ALL + 73 ) / COUNT ( * ) FROM tab1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT ALL - SUM( - - col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-4091
SELECT ALL - SUM ( - - col1 ) FROM tab0
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4092
SELECT ALL - CAST( - - 85 AS SIGNED ) + + - col1 AS col2 FROM tab1
----
-132
-90
-99

skipif mysql # not compatible
query I rowsort label-4092
SELECT ALL - CAST ( - - 85 AS INTEGER ) + + - col1 AS col2 FROM tab1
----
-132
-90
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT + COUNT( - - col1 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4093
SELECT + COUNT ( - - col1 ) AS col2 FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + ( + + ( - + col2 ) ) + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 66 * + col0 - - col2 + + col0 FROM tab1 AS cor0
----
-3219
-5466
-5847

onlyif mysql # aggregate syntax: 
query II rowsort label-4096
SELECT + - 48 + - - 25 + - - 69 * + COUNT( * ) - - 91 AS col2, COUNT( * ) AS col0 FROM tab1 AS cor0
----
275
3

skipif mysql # not compatible
query II rowsort label-4096
SELECT + - 48 + - - 25 + - - 69 * + COUNT ( * ) - - 91 AS col2, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
275
3

query I rowsort
SELECT col2 + + 69 - - col1 * - - ( - col2 ) * - col2 FROM tab1
----
129189
17533
217465

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT DISTINCT COUNT( * ) * + 60 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
540

skipif mysql # not compatible
query I rowsort label-4098
SELECT DISTINCT COUNT ( * ) * + 60 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
540

query I rowsort
SELECT + - 34 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN col2 * + 19 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT DISTINCT 12 - COUNT( * ) + + + COUNT( * ) FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-4101
SELECT DISTINCT 12 - COUNT ( * ) + + + COUNT ( * ) FROM tab0 AS cor0
----
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 41, col1 col0 FROM tab2 AS cor0
----
41
51
41
67
41
77

query I rowsort
SELECT DISTINCT + 88 - col1 FROM tab1 AS cor0
----
41
74
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT COUNT( * ) - + 70 AS col1 FROM tab0 cor0
----
-67

skipif mysql # not compatible
query I rowsort label-4104
SELECT COUNT ( * ) - + 70 AS col1 FROM tab0 cor0
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4105
SELECT + - CAST( - col0 AS SIGNED ) - + col2 col1 FROM tab1 cor0
----
-45
23
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4105
SELECT + - CAST ( - col0 AS INTEGER ) - + col2 col1 FROM tab1 cor0
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT DISTINCT - COUNT( * ) - - - 90 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-4106
SELECT DISTINCT - COUNT ( * ) - - - 90 FROM tab1 AS cor0
----
-93

query I rowsort
SELECT ALL + + ( + + 20 ) FROM tab0 AS cor0
----
20
20
20

query I rowsort
SELECT - col0 - col2 + 33 + + col2 FROM tab1 AS cor0
----
-18
-52
-58

query I rowsort
SELECT ALL col2 - - - 97 FROM tab0 AS cor0
----
-50
-87
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT MAX( ( + + col0 ) ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-4110
SELECT MAX ( ( + + col0 ) ) FROM tab1
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4111
SELECT + col2 DIV - - ( - - col2 ) FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4111
SELECT + col2 / - - ( - - col2 ) FROM tab2
----
1
1
1

query I rowsort
SELECT + 97 * - 75 AS col2 FROM tab1
----
-7275
-7275
-7275

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT ALL + SUM( ALL ( + + 15 ) ) AS col1 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-4113
SELECT ALL + SUM ( ALL ( + + 15 ) ) AS col1 FROM tab2
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4114
SELECT DISTINCT CAST( + + COUNT( * ) AS SIGNED ) FROM tab1 WHERE NOT + col1 - - 37 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4114
SELECT DISTINCT CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab1 WHERE NOT + col1 - - 37 <> NULL
----
0

query I rowsort
SELECT - + 38 * col0 FROM tab1 AS cor0
----
-1938
-3230
-3458

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4116
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) <> CAST( + - 25 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4116
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) <> CAST ( + - 25 AS INTEGER )
----

query II rowsort
SELECT ALL + col0 AS col0, 54 AS col0 FROM tab2 AS cor0
----
46
54
64
54
75
54

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE NOT 7 * + col1 IS NULL
----
51
67
77

query I rowsort
SELECT DISTINCT + col2 * - 35 AS col1 FROM tab1 AS cor0
----
-2065
-2380
-3360

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4120
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) NOT IN ( + col1, col2 * + col0 )
----

skipif mysql # not compatible
query III rowsort label-4120
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT IN ( + col1, col2 * + col0 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE 87 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4122
SELECT ALL - + 88 DIV - col2 FROM tab0 AS cor0
----
0
1
8

skipif mysql # not compatible
query I rowsort label-4122
SELECT ALL - + 88 / - col2 FROM tab0 AS cor0
----
0
1
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4123
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4124
SELECT - col2 DIV + col0 + - + col1 AS col2 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-4124
SELECT - col2 / + col0 + - + col1 AS col2 FROM tab2
----
-51
-67
-77

query III rowsort
SELECT * FROM tab2 WHERE - 2 NOT BETWEEN + col2 AND + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT ALL 69 + + MIN( ALL - 27 ) FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-4126
SELECT ALL 69 + + MIN ( ALL - 27 ) FROM tab2
----
42

query I rowsort
SELECT ALL col0 + - ( - 83 ) FROM tab0
----
170
180
98

onlyif mysql # DIV for integer division: 
query I rowsort label-4128
SELECT ALL - col2 DIV + 85 AS col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4128
SELECT ALL - col2 / + 85 AS col2 FROM tab1
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4129
SELECT - CAST( NULL AS SIGNED ) + + ( + + 61 ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4129
SELECT - CAST ( NULL AS INTEGER ) + + ( + + 61 ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4130
SELECT DISTINCT + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4130
SELECT DISTINCT + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4131
SELECT + ( col2 ) AS col1, + 22 * - + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-4131
SELECT + ( col2 ) AS col1, + 22 * - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

query I rowsort
SELECT DISTINCT 98 * - - col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT - col0 AS col2, + col0 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4134
SELECT col2 - col1 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4134
SELECT col2 - col1 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 + 99 + - + col0 + + ( + 17 ) FROM tab0
----
182
20
50

query I rowsort
SELECT col1 - + - 68 + + 73 * + - col1 AS col1 FROM tab2
----
-3604
-4756
-5476

query III rowsort
SELECT * FROM tab1 WHERE + - 42 IS NULL
----

query I rowsort
SELECT + col0 + + + ( 34 ) AS col2 FROM tab1 AS cor0
----
119
125
85

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 / + col2 IS NULL
----

query I rowsort
SELECT 41 * 2 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
82
82
82

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 31 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 15 col1 FROM tab1 AS cor0
----
15
15
15

query II rowsort
SELECT DISTINCT - 41 AS col2, - col1 * - col2 FROM tab2
----
-41
1173
-41
3080
-41
3886

query I rowsort
SELECT col0 * + col1 * ( - col2 ) FROM tab2
----
-197120
-291450
-53958

onlyif mysql # DIV for integer division: 
query I rowsort label-4145
SELECT - col2 DIV - + 71 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4145
SELECT - col2 / - + 71 FROM tab1
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 16 + - col0 - col0 ) NOT BETWEEN ( + 80 ) AND 41
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL 82, - 56 AS col0 FROM tab1 AS cor0
----
82
-56
82
-56
82
-56

query III rowsort
SELECT * FROM tab1 WHERE NOT + 99 < ( + 74 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 96 FROM tab1 WHERE NOT - col0 <> - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4150
SELECT + + ( - - COUNT( * ) ) * + COUNT( * ) + + 97 * + 49 * - 68 + 83 AS col2, 44 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-323040
44

skipif mysql # not compatible
query II rowsort label-4150
SELECT + + ( - - COUNT ( * ) ) * + COUNT ( * ) + + 97 * + 49 * - 68 + 83 AS col2, 44 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-323040
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4151
SELECT + + CAST( col2 AS SIGNED ) + + col1 - col2 col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4151
SELECT + + CAST ( col2 AS INTEGER ) + + col1 - col2 col2 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ALL - 50 AS col2 FROM tab2 cor0
----
-50
-50
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT 57 * 14 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
795

skipif mysql # not compatible
query I rowsort label-4153
SELECT 57 * 14 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
795

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT MAX( - 96 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-96

skipif mysql # not compatible
query I rowsort label-4154
SELECT MAX ( - 96 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT - + 8 * + MAX( + col2 ) FROM tab2 AS cor0
----
-464

skipif mysql # not compatible
query I rowsort label-4155
SELECT - + 8 * + MAX ( + col2 ) FROM tab2 AS cor0
----
-464

query I rowsort
SELECT + col0 * - 30 + + + col2 FROM tab1 cor0
----
-1434
-2491
-2662

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4157
SELECT DISTINCT - CAST( - ( - col1 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-4157
SELECT DISTINCT - CAST ( - ( - col1 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4158
SELECT + COUNT( * ) DIV - + COUNT( * ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4158
SELECT + COUNT ( * ) / - + COUNT ( * ) FROM tab1 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4159
SELECT - CAST( - 35 AS SIGNED ) * - 39 col0 FROM tab2 AS cor0
----
-1365
-1365
-1365

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4159
SELECT - CAST ( - 35 AS INTEGER ) * - 39 col0 FROM tab2 AS cor0
----
-1365
-1365
-1365

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 86 / + - 15 - - ( + col1 ) col2 FROM tab0 WHERE col0 BETWEEN 73 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 - - 2 * + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT MAX( ALL - - 57 ) * + 57 AS col2 FROM tab2 WHERE - col0 + + 22 IS NOT NULL
----
3249

skipif mysql # not compatible
query I rowsort label-4162
SELECT MAX ( ALL - - 57 ) * + 57 AS col2 FROM tab2 WHERE - col0 + + 22 IS NOT NULL
----
3249

query I rowsort
SELECT DISTINCT col2 - - col1 - - + col2 FROM tab2
----
157
183
97

query I rowsort
SELECT ALL + col0 + 32 AS col0 FROM tab2
----
107
78
96

query I rowsort
SELECT col0 - - col0 + + + col1 - + 98 * - col2 * 46 * 5 AS col1 FROM tab2 AS cor0
----
1307537
518563
901805

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT ALL - + 66 * + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-4166
SELECT ALL - + 66 * + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-198

query I rowsort
SELECT DISTINCT + 94 - + + 4 * - col1 * col0 FROM tab2 AS cor0
----
19806
20194
9478

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4168
SELECT + col0 + - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4168
SELECT + col0 + - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 56 col1 FROM tab2 AS cor0
----
-56
-56
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4170
SELECT DISTINCT + CAST( - 44 AS SIGNED ) * - COUNT( * ) + + 96 FROM tab1 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-4170
SELECT DISTINCT + CAST ( - 44 AS INTEGER ) * - COUNT ( * ) + + 96 FROM tab1 AS cor0
----
228

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4171
SELECT ALL - col0 - col2 + CAST( NULL AS SIGNED ) * + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4171
SELECT ALL - col0 - col2 + CAST ( NULL AS INTEGER ) * + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4172
SELECT DISTINCT - col1 DIV + col2 AS col1 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-4172
SELECT DISTINCT - col1 / + col2 AS col1 FROM tab0
----
-1
-2
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4173
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, + col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-4173
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, + col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT 26 * - 47 AS col0 FROM tab0
----
-1222
-1222
-1222

query II rowsort
SELECT ALL col2, 74 FROM tab2
----
23
74
40
74
58
74

query II rowsort
SELECT - 19 AS col2, - col2 AS col1 FROM tab1
----
-19
-59
-19
-68
-19
-96

query II rowsort
SELECT + - col2, - col1 AS col0 FROM tab1 AS cor0
----
-59
-5
-68
-47
-96
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4178
SELECT - CAST( + - 55 AS SIGNED ) FROM tab2 AS cor0
----
55
55
55

skipif mysql # not compatible
query I rowsort label-4178
SELECT - CAST ( + - 55 AS INTEGER ) FROM tab2 AS cor0
----
55
55
55

query II rowsort
SELECT - + col1 AS col0, col0 + - col0 + - col2 + col1 AS col0 FROM tab0 AS cor0
----
-1
-98
-21
11
-81
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 44 col1, - col2 FROM tab1 AS cor0
----
44
-59
44
-68
44
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-4181
SELECT + 77, 74 + + COUNT( DISTINCT ( - 98 ) ) AS col0 FROM tab0 cor0
----
77
75

skipif mysql # not compatible
query II rowsort label-4181
SELECT + 77, 74 + + COUNT ( DISTINCT ( - 98 ) ) AS col0 FROM tab0 cor0
----
77
75

query I rowsort
SELECT - - col2 / col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 79 AND NULL
----

query I rowsort
SELECT + ( + ( 67 ) ) FROM tab1 AS cor0
----
67
67
67

query I rowsort
SELECT ALL + col2 AS col1 FROM tab1 WHERE NOT + + 26 * - - col0 * + col1 * 30 + col0 IS NULL
----
59
68
96

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT - ( + - ( + 91 ) ) + - 60 * + col2 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT DISTINCT - COUNT( + + col0 ) FROM tab0 WHERE NOT ( col2 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4186
SELECT DISTINCT - COUNT ( + + col0 ) FROM tab0 WHERE NOT ( col2 IS NOT NULL )
----
0

query I rowsort
SELECT ALL - - 47 AS col2 FROM tab2 WHERE NOT + col1 IS NULL
----
47
47
47

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 / - + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col2 * col2, + col0 + + col1 * col2 AS col0 FROM tab2
----
1600
3144
3364
3961
529
1219

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT ( NOT NULL NOT BETWEEN - ( col1 ) - + ( + ( 73 ) ) - - - col2 AND - col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col2 FROM tab1 WHERE NOT + + col2 >= NULL
----

query I rowsort
SELECT ALL + 37 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 + col2 IS NULL
----
37
37
37

query I rowsort
SELECT col1 * + + col0 + + col2 AS col2 FROM tab0 AS cor0
----
1262
1837
196

query I rowsort
SELECT DISTINCT col2 + + 10 AS col2 FROM tab2
----
33
50
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4195
SELECT ALL - 45 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
-45
-45
-45

skipif mysql # not compatible
query I rowsort label-4195
SELECT ALL - 45 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
-45
-45
-45

query I rowsort
SELECT col2 * + + col1 AS col2 FROM tab0
----
210
3807
99

query I rowsort
SELECT ALL + + col0 + col1 + + col0 * - col2 FROM tab2 AS cor0
----
-2419
-4208
-961

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT - + COUNT( DISTINCT - col0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4198
SELECT - + COUNT ( DISTINCT - col0 ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) < col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4200
SELECT DISTINCT + 39 AS col0, - COUNT( * ) FROM tab0 AS cor0
----
39
-3

skipif mysql # not compatible
query II rowsort label-4200
SELECT DISTINCT + 39 AS col0, - COUNT ( * ) FROM tab0 AS cor0
----
39
-3

query I rowsort
SELECT ALL + col0 * 68 FROM tab2 AS cor0
----
3128
4352
5100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4202
SELECT DISTINCT - 81 + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4202
SELECT DISTINCT - 81 + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 * - col0 AS col0 FROM tab0 WHERE + col2 IS NOT NULL
----
1215
1827
97

query I rowsort
SELECT ALL - col2 * 5 AS col1 FROM tab0
----
-235
-495
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4205
SELECT + CAST( NULL AS SIGNED ) * + + AVG ( - 59 ) + - MAX( ALL 87 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4205
SELECT + CAST ( NULL AS INTEGER ) * + + AVG ( - 59 ) + - MAX ( ALL 87 ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE + 89 * col2 * ( + col1 ) - + 79 + - col0 + col2 * + ( col0 ) * 83 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4207
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 11 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4207
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 11 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col1 * - ( - + col2 ) AS col1 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4209
SELECT ALL - CAST( NULL AS SIGNED ) - 22 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4209
SELECT ALL - CAST ( NULL AS INTEGER ) - 22 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <> - 44 * + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 - - 34 col2, col0 AS col1 FROM tab2 AS cor0
----
-24
75
-6
64
11
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4212
SELECT + + CAST( NULL AS SIGNED ) col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4212
SELECT + + CAST ( NULL AS INTEGER ) col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4213
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4213
SELECT DISTINCT - + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT - 39 * - + 82 FROM tab0 cor0
----
3198
3198
3198

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT ALL - COUNT( DISTINCT 87 ) AS col0 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4215
SELECT ALL - COUNT ( DISTINCT 87 ) AS col0 FROM tab2 cor0
----
-1

query I rowsort
SELECT DISTINCT - 18 FROM tab2 cor0
----
-18

query II rowsort
SELECT DISTINCT col0, - col2 AS col0 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT ALL + MAX( + ( + col0 ) ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4218
SELECT ALL + MAX ( + ( + col0 ) ) AS col1 FROM tab2 AS cor0
----
75

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + 59 * + 85 * - col2 + col2 + + col1 - + col0 + 75 AND + col2
----

query II rowsort
SELECT + 30 AS col1, 29 FROM tab1 AS cor0
----
30
29
30
29
30
29

query I rowsort
SELECT ALL - + 45 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) <= col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4222
SELECT ALL + COUNT( * ) col1, - COUNT( * ) AS col0 FROM tab2
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4222
SELECT ALL + COUNT ( * ) col1, - COUNT ( * ) AS col0 FROM tab2
----
3
-3

query II rowsort
SELECT - col1 AS col0, col1 AS col2 FROM tab0
----
-1
1
-21
21
-81
81

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN - 81 * + - col2 AND NULL
----

query I rowsort
SELECT col1 * + 92 AS col2 FROM tab2
----
4692
6164
7084

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * + + col0 BETWEEN + 91 AND NULL
----

query II rowsort
SELECT col0 * - col1, col0 FROM tab1
----
-425
85
-4277
91
-714
51

query I rowsort
SELECT 30 * 91 * - col0 AS col2 FROM tab2
----
-125580
-174720
-204750

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4229
SELECT * FROM tab0 cor0 WHERE NOT ( NOT - CAST( - CAST( NULL AS DECIMAL ) AS DECIMAL ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4229
SELECT * FROM tab0 cor0 WHERE NOT ( NOT - CAST ( - CAST ( NULL AS REAL ) AS REAL ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col1 AS col1, - col1 AS col1 FROM tab2 AS cor0
----
51
-51
67
-67
77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT DISTINCT COUNT( * ) + 45 AS col2 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-4231
SELECT DISTINCT COUNT ( * ) + 45 AS col2 FROM tab1 AS cor0
----
48

query II rowsort
SELECT ALL - + 52 * + col2 AS col2, col0 FROM tab1 AS cor0
----
-3068
85
-3536
91
-4992
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4233
SELECT ALL - + CAST( 32 AS SIGNED ) * col2 FROM tab1 AS cor0
----
-1888
-2176
-3072

skipif mysql # not compatible
query I rowsort label-4233
SELECT ALL - + CAST ( 32 AS INTEGER ) * col2 FROM tab1 AS cor0
----
-1888
-2176
-3072

query I rowsort
SELECT DISTINCT col0 + + - 32 AS col0 FROM tab1 AS cor0
----
19
53
59

query I rowsort
SELECT 55 * - 73 AS col2 FROM tab0
----
-4015
-4015
-4015

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4236
SELECT DISTINCT - 63 + CAST( NULL AS SIGNED ) * + col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4236
SELECT DISTINCT - 63 + CAST ( NULL AS INTEGER ) * + col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL 5 + - 70 * + - col2 - - col1 FROM tab2 WHERE + + 70 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT + COUNT( * ) FROM tab0 WHERE ( NOT NULL IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-4238
SELECT + COUNT ( * ) FROM tab0 WHERE ( NOT NULL IS NOT NULL )
----
3

query I rowsort
SELECT ( - col0 ) + + + col2 + + - 55 AS col1 FROM tab0
----
-132
-23
-53

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 17 IS NULL
----

query II rowsort
SELECT + col0 AS col2, - 37 FROM tab1 AS cor0
----
51
-37
85
-37
91
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-4242
SELECT + COUNT( * ) AS col2, - SUM( + 47 ) - + 97 FROM tab0 AS cor0
----
3
-238

skipif mysql # not compatible
query II rowsort label-4242
SELECT + COUNT ( * ) AS col2, - SUM ( + 47 ) - + 97 FROM tab0 AS cor0
----
3
-238

query I rowsort
SELECT 36 FROM tab1 WHERE NOT ( + 46 + - col1 ) NOT IN ( col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4244
SELECT ALL col1 DIV ( 79 ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4244
SELECT ALL col1 / ( 79 ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE 22 < ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 + ( 90 + - col2 * - col1 ) AS col1 FROM tab0 WHERE NOT ( col1 ) IS NULL
----
188
279
3816

query I rowsort
SELECT ALL + col1 + 91 AS col1 FROM tab0
----
112
172
92

query I rowsort
SELECT ALL col1 * - 95 - - 18 FROM tab2
----
-4827
-6347
-7297

query I rowsort
SELECT DISTINCT - col0 - col1 * col2 FROM tab1
----
-1395
-3287
-380

query I rowsort
SELECT - 45 * + col2 + - col0 * + col2 AS col0 FROM tab0
----
-1320
-14058
-2820

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 + + col1 col2 FROM tab2
----
-2295
-4851
-4958

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 <> ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE col0 * col2 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT ALL COUNT( + 51 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4254
SELECT ALL COUNT ( + 51 ) FROM tab0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4255
SELECT DISTINCT + CAST( NULL AS DECIMAL ) FROM tab2 WHERE NOT - ( + 84 ) NOT BETWEEN 64 * 39 AND - 3
----

skipif mysql # not compatible
query I rowsort label-4255
SELECT DISTINCT + CAST ( NULL AS REAL ) FROM tab2 WHERE NOT - ( + 84 ) NOT BETWEEN 64 * 39 AND - 3
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4256
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN 25 - + CAST( NULL AS SIGNED ) * - col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-4256
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN 25 - + CAST ( NULL AS INTEGER ) * - col1 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( 89 * + 72 ) BETWEEN NULL AND + col0 / col2 + ( + 59 ) * 86
----

query I rowsort
SELECT + col2 * - col0 FROM tab0 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4259
SELECT - ( - CAST( + 10 AS SIGNED ) ) AS col1 FROM tab1
----
10
10
10

skipif mysql # not compatible
query I rowsort label-4259
SELECT - ( - CAST ( + 10 AS INTEGER ) ) AS col1 FROM tab1
----
10
10
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4260
SELECT CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT ( - col0 ) BETWEEN - col2 * ( col0 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-4260
SELECT CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT ( - col0 ) BETWEEN - col2 * ( col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT ALL MIN( col0 ) AS col1 FROM tab2 WHERE NOT + col1 * ( + ( + col2 ) ) > col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4261
SELECT ALL MIN ( col0 ) AS col1 FROM tab2 WHERE NOT + col1 * ( + ( + col2 ) ) > col0
----
NULL

query I rowsort
SELECT DISTINCT + col1 + 71 AS col0 FROM tab1
----
118
76
85

query I rowsort
SELECT + 29 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col2 FROM tab2 WHERE col1 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT ALL col2 - + 11 * + col2 FROM tab2
----
-230
-400
-580

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 24 NOT BETWEEN NULL AND + 90 * col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 12 col1 FROM tab2 AS cor0
----
-12
-12
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT COUNT( * ) col0 FROM tab2 WHERE + col0 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4268
SELECT COUNT ( * ) col0 FROM tab2 WHERE + col0 IS NULL
----
0

query I rowsort
SELECT + ( - 56 ) FROM tab1
----
-56
-56
-56

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 WHERE NOT ( col0 * - col0 ) IS NULL
----
-15
-87
-97

query III rowsort
SELECT * FROM tab1 WHERE col0 <> col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4272
SELECT COUNT( * ) - COUNT( * ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4272
SELECT COUNT ( * ) - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - col1 - + 86 AS col0 FROM tab0 AS cor0
----
-107
-167
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT DISTINCT 5 - SUM( col2 ) AS col0 FROM tab0 AS cor0
----
-151

skipif mysql # not compatible
query I rowsort label-4274
SELECT DISTINCT 5 - SUM ( col2 ) AS col0 FROM tab0 AS cor0
----
-151

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4275
SELECT ALL - 99 * - 90 - 18 / CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4275
SELECT ALL - 99 * - 90 - 18 / CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 81 + - col1 * ( + col2 ) FROM tab1 cor0
----
-1263
-214
-3115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4277
SELECT ALL + ( col2 ) * CAST( NULL AS SIGNED ) + col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4277
SELECT ALL + ( col2 ) * CAST ( NULL AS INTEGER ) + col2 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 NOT IN ( col2 * - col1 + 62 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 65 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT - COUNT( * ) + + 40 FROM tab0 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-4280
SELECT - COUNT ( * ) + + 40 FROM tab0 AS cor0
----
37

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 82 + + 57 * - 63 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 - + 62 FROM tab1 cor0
----
-109
-67
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-4283
SELECT col0 + + - 78 DIV - col2 AS col2 FROM tab0
----
16
94
97

skipif mysql # not compatible
query I rowsort label-4283
SELECT col0 + + - 78 / - col2 AS col2 FROM tab0
----
16
94
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT COUNT( ALL col0 ) col2 FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4284
SELECT COUNT ( ALL col0 ) col2 FROM tab1 WHERE NULL IS NULL
----
3

query I rowsort
SELECT - ( - 73 ) FROM tab2
----
73
73
73

query III rowsort
SELECT * FROM tab1 WHERE + col1 = - col1
----

query I rowsort
SELECT DISTINCT + col0 + - - 10 FROM tab1
----
101
61
95

query III rowsort
SELECT ALL * FROM tab0 WHERE + 96 * col0 NOT IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 - + 91 FROM tab2
----
-114
-131
-149

query I rowsort
SELECT ALL - col0 + + col1 AS col0 FROM tab0 WHERE NOT + col0 IS NULL
----
-66
-96
66

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4291
SELECT DISTINCT COUNT( DISTINCT CAST( NULL AS DECIMAL ) ) * SUM( ALL 47 ) + + 26 DIV MAX( ALL col0 * + 84 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4291
SELECT DISTINCT COUNT ( DISTINCT CAST ( NULL AS REAL ) ) * SUM ( ALL 47 ) + + 26 / MAX ( ALL col0 * + 84 ) AS col0 FROM tab0
----
0

query I rowsort
SELECT ALL ( + ( + 19 ) ) AS col2 FROM tab2
----
19
19
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT + COUNT( * ) AS col2 FROM tab0 cor0 WHERE NOT NULL BETWEEN + col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4293
SELECT + COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NOT NULL BETWEEN + col2 AND NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col0 ) NOT BETWEEN + 48 AND col1 * col1
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT ALL - MAX( DISTINCT + + col0 ) AS col1 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-4295
SELECT ALL - MAX ( DISTINCT + + col0 ) AS col1 FROM tab0
----
-97

query I rowsort
SELECT ALL + col0 * - 76 * + col2 FROM tab2 AS cor0
----
-194560
-330600
-80408

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 17 * + 76 / + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4298
SELECT DISTINCT - ( col2 ) * - 96 AS col1 FROM tab0 AS cor0 WHERE NULL < ( 60 * ( col0 ) * - CAST( col2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4298
SELECT DISTINCT - ( col2 ) * - 96 AS col1 FROM tab0 AS cor0 WHERE NULL < ( 60 * ( col0 ) * - CAST ( col2 AS INTEGER ) )
----

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 * - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 * - 98 - - col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL >= ( 37 )
----

query II rowsort
SELECT - 81 AS col0, + col1 * + - col1 * col1 + + col0 AS col0 FROM tab1 AS cor0
----
-81
-103732
-81
-2693
-81
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4302
SELECT + + AVG ( - ( + CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4302
SELECT + + AVG ( - ( + CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 + - col2 + col1 AS col2 FROM tab1
----
-49
-68
26

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 54 / - ( col2 ) >= ( col0 ) + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 99 + 81 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT DISTINCT - COUNT( * ) + + + 25 FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-4306
SELECT DISTINCT - COUNT ( * ) + + + 25 FROM tab0
----
22

query II rowsort
SELECT DISTINCT col0 + + + col2, col0 * + ( + 70 ) AS col1 FROM tab1
----
144
5950
147
3570
159
6370

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NULL < ( + + col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE + 60 + - + col0 BETWEEN + 47 AND 71
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 51 ) IN ( - col1 / - 77 )
----

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) IN ( - 68 + - - 48 + - col0 )
----

query I rowsort
SELECT DISTINCT + 74 + 18 - col1 * + col2 FROM tab2
----
-1081
-2988
-3794

query I rowsort
SELECT DISTINCT col2 + + col2 + + - ( - ( 23 ) ) AS col1 FROM tab1 cor0
----
141
159
215

query I rowsort
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE ( NOT ( NULL ) NOT IN ( 82 + 60 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT + MAX( DISTINCT + col0 ) + + - 27 AS col2 FROM tab1 cor0
----
64

skipif mysql # not compatible
query I rowsort label-4315
SELECT + MAX ( DISTINCT + col0 ) + + - 27 AS col2 FROM tab1 cor0
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-4316
SELECT - + col2 DIV ( - col1 ) + - 23 AS col1 FROM tab2 AS cor0
----
-23
-23
-23

skipif mysql # not compatible
query I rowsort label-4316
SELECT - + col2 / ( - col1 ) + - 23 AS col1 FROM tab2 AS cor0
----
-23
-23
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4317
SELECT DISTINCT + CAST( - col0 AS SIGNED ) - + 66 FROM tab2 AS cor0
----
-112
-130
-141

skipif mysql # not compatible
query I rowsort label-4317
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) - + 66 FROM tab2 AS cor0
----
-112
-130
-141

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( - col0 + + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT + MAX( + col1 ) AS col1 FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-4319
SELECT + MAX ( + col1 ) AS col1 FROM tab2 cor0
----
77

query I rowsort
SELECT - col0 + col0 FROM tab0 cor0 WHERE + col0 * + - col1 + - + col1 + + 69 IS NOT NULL
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - - + 14 * - + col0 col2 FROM tab1 AS cor0
----
-1105
-1183
-663

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT DISTINCT + COUNT( - col1 ) FROM tab2 cor0 WHERE NOT - col2 NOT BETWEEN 87 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4322
SELECT DISTINCT + COUNT ( - col1 ) FROM tab2 cor0 WHERE NOT - col2 NOT BETWEEN 87 AND NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4323
SELECT DISTINCT + - ( - CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4323
SELECT DISTINCT + - ( - CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - - + col0 col0 FROM tab0 AS cor0
----
-66
66
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4325
SELECT + col0 DIV col2 - - ( + 33 ) AS col1 FROM tab1 AS cor0
----
33
34
34

skipif mysql # not compatible
query I rowsort label-4325
SELECT + col0 / col2 - - ( + 33 ) AS col1 FROM tab1 AS cor0
----
33
34
34

query II rowsort
SELECT ALL + + 38, + col2 FROM tab1 AS cor0
----
38
59
38
68
38
96

query I rowsort
SELECT DISTINCT col2 - col0 * + ( col0 ) FROM tab2 AS cor0
----
-2093
-4056
-5567

query II rowsort
SELECT ALL col1 AS col2, - ( col2 ) + + 56 FROM tab1
----
14
-40
47
-12
5
-3

query I rowsort
SELECT - col2 * 96 * + col2 * 38 FROM tab1
----
-12698688
-16868352
-33619968

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( ( - 27 ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NULL >= + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 65 col1, + col0 FROM tab1
----
65
51
65
85
65
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT - + ( + + COUNT( * ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4333
SELECT - + ( + + COUNT ( * ) ) FROM tab1 AS cor0
----
-3

query II rowsort
SELECT + + col2 AS col1, ( col1 ) AS col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 57 IS NULL
----

query II rowsort
SELECT DISTINCT + + 4 AS col2, + col0 AS col0 FROM tab2 AS cor0
----
4
46
4
64
4
75

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 AS cor0 WHERE 64 IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4338
SELECT DISTINCT + col2 FROM tab2 WHERE - + CAST( NULL AS SIGNED ) IS NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-4338
SELECT DISTINCT + col2 FROM tab2 WHERE - + CAST ( NULL AS INTEGER ) IS NULL
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col0 * + col2 * - 90 + + 74 * - col0 NOT IN ( + col0 )
----

query I rowsort
SELECT + ( - col2 ) * - 66 AS col2 FROM tab2 AS cor0
----
1518
2640
3828

query I rowsort
SELECT + col2 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT - + ( - ( MIN( DISTINCT col1 ) ) ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4342
SELECT - + ( - ( MIN ( DISTINCT col1 ) ) ) AS col2 FROM tab1 AS cor0
----
5

query I rowsort
SELECT DISTINCT + ( col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + 94 + + + col2 + + col2 - + - col1 + + col0 * - + col0 * 1 )
----

query I rowsort
SELECT - 66 FROM tab0 AS cor0 WHERE NOT - ( + col1 ) + - col2 + - col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 + col0 NOT BETWEEN ( NULL ) AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT 75 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4347
SELECT ALL - CAST( - 4 AS SIGNED ) * + + COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4347
SELECT ALL - CAST ( - 4 AS INTEGER ) * + + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT + col2 + - + 87 AS col0 FROM tab0
----
-40
-77
12

query I rowsort
SELECT - col0 AS col0 FROM tab2 WHERE NULL NOT BETWEEN ( col0 ) * col0 * col1 AND 2
----

query I rowsort
SELECT + ( - 39 ) + + 70 * + col2 FROM tab2
----
1571
2761
4021

query I rowsort
SELECT 88 * col0 FROM tab1 WHERE col0 IN ( - 69 + col0 + col0 + col2 )
----

query I rowsort
SELECT ALL 85 + - col0 AS col2 FROM tab1
----
-6
0
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4353
SELECT 25 + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4353
SELECT 25 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT ALL + 8 + COUNT( * ) FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-4354
SELECT ALL + 8 + COUNT ( * ) FROM tab0
----
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + col1 * 77 col0, col0 FROM tab2
----
3950
46
5217
75
5969
64

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 = 26 * + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 * 20 * - 76 AS col2 FROM tab1 AS cor0
----
21280
71440
7600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4358
SELECT DISTINCT 15 DIV - COUNT( * ) FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
-5

skipif mysql # not compatible
query I rowsort label-4358
SELECT DISTINCT 15 / - COUNT ( * ) FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
-5

query I rowsort
SELECT - 18 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL = 91
----

query I rowsort
SELECT DISTINCT - 31 + + col0 AS col0 FROM tab2
----
15
33
44

query I rowsort
SELECT col2 * - col1 - + + col1 AS col2 FROM tab0
----
-100
-231
-3888

query I rowsort
SELECT ALL + col2 - col0 - - - col0 FROM tab0 AS cor0
----
-164
-95
17

query I rowsort
SELECT + + ( 12 ) + + 78 FROM tab1 AS cor0
----
90
90
90

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 NOT IN ( + + 62 + + 78 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 77 - - - col2 AS col2 FROM tab1 AS cor0
----
-136
-145
-173

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4366
SELECT ALL - CAST( NULL AS SIGNED ) - - 54 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4366
SELECT ALL - CAST ( NULL AS INTEGER ) - - 54 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT ALL - MIN( DISTINCT - 47 ) FROM tab0 cor0
----
47

skipif mysql # not compatible
query I rowsort label-4367
SELECT ALL - MIN ( DISTINCT - 47 ) FROM tab0 cor0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-4368
SELECT DISTINCT + 8 - + 24 DIV - col1 AS col0 FROM tab1 AS cor0
----
12
8
9

skipif mysql # not compatible
query I rowsort label-4368
SELECT DISTINCT + 8 - + 24 / - col1 AS col0 FROM tab1 AS cor0
----
12
8
9

query I rowsort
SELECT ALL + 33 AS col1 FROM tab2 AS cor0 WHERE NOT - 71 NOT BETWEEN - col1 AND NULL
----

query II rowsort
SELECT + 41 * - col2, col1 FROM tab2 AS cor0
----
-1640
77
-2378
67
-943
51

query I rowsort
SELECT - col1 * + 45 * 54 AS col0 FROM tab0
----
-196830
-2430
-51030

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 40 * - col1 col0 FROM tab2
----
2040
2680
3080

onlyif mysql # DIV for integer division: 
query I rowsort label-4373
SELECT ALL - 35 DIV + + 70 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4373
SELECT ALL - 35 / + + 70 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4374
SELECT DISTINCT * FROM tab2 WHERE ( + + col0 * - + CAST( - CAST( + col0 AS SIGNED ) AS SIGNED ) / col0 * - - ( + ( - + ( 34 ) ) ) + col0 ) > ( col1 )
----

skipif mysql # not compatible
query III rowsort label-4374
SELECT DISTINCT * FROM tab2 WHERE ( + + col0 * - + CAST ( - CAST ( + col0 AS INTEGER ) AS INTEGER ) / col0 * - - ( + ( - + ( 34 ) ) ) + col0 ) > ( col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4375
SELECT 49 AS col0, - 14 + - + ( + + COUNT( * ) ) AS col1 FROM tab1
----
49
-17

skipif mysql # not compatible
query II rowsort label-4375
SELECT 49 AS col0, - 14 + - + ( + + COUNT ( * ) ) AS col1 FROM tab1
----
49
-17

query II rowsort
SELECT 24, - col2 AS col2 FROM tab0
----
24
-10
24
-47
24
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT DISTINCT MAX( + - 2 ) AS col2 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-4377
SELECT DISTINCT MAX ( + - 2 ) AS col2 FROM tab0
----
-2

query I rowsort
SELECT ALL + ( + col0 ) FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4379
SELECT ALL + ( + MAX( ALL + - 6 ) ) DIV COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2

skipif mysql # not compatible
query I rowsort label-4379
SELECT ALL + ( + MAX ( ALL + - 6 ) ) / COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2

query I rowsort
SELECT 35 AS col0 FROM tab2 AS cor0 WHERE NOT - ( 23 ) + - - col1 + + + col1 > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4381
SELECT * FROM tab2 cor0 WHERE NOT + CAST( NULL AS SIGNED ) < col2 * + - 13 + col0
----

skipif mysql # not compatible
query III rowsort label-4381
SELECT * FROM tab2 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) < col2 * + - 13 + col0
----

query I rowsort
SELECT DISTINCT 60 * + + 71 AS col0 FROM tab2
----
4260

query I rowsort
SELECT DISTINCT + - 71 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-71

query II rowsort
SELECT 0 AS col1, ( - col0 ) FROM tab2 cor0
----
0
-46
0
-64
0
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT MAX( DISTINCT + - col2 ) AS col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-4385
SELECT MAX ( DISTINCT + - col2 ) AS col1 FROM tab1 AS cor0
----
-59

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( 54 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT ALL - + MAX( + + 31 ) FROM tab2 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-4387
SELECT ALL - + MAX ( + + 31 ) FROM tab2 AS cor0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT DISTINCT MIN( 60 ) FROM tab2 AS cor0 WHERE NOT NULL = - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-4388
SELECT DISTINCT MIN ( 60 ) FROM tab2 AS cor0 WHERE NOT NULL = - 28
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4389
SELECT + 14 DIV - 71 * 64 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4389
SELECT + 14 / - 71 * 64 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT 94 + + col2 AS col1 FROM tab1
----
153
162
190

onlyif mysql # aggregate syntax: 
query I rowsort label-4391
SELECT DISTINCT - 80 * - COUNT( DISTINCT 60 ) + ( 30 ) + + 38 FROM tab2
----
148

skipif mysql # not compatible
query I rowsort label-4391
SELECT DISTINCT - 80 * - COUNT ( DISTINCT 60 ) + ( 30 ) + + 38 FROM tab2
----
148

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4392
SELECT DISTINCT * FROM tab1 WHERE - + CAST( + - CAST( NULL AS DECIMAL ) AS SIGNED ) + - 0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4392
SELECT DISTINCT * FROM tab1 WHERE - + CAST ( + - CAST ( NULL AS REAL ) AS INTEGER ) + - 0 IS NOT NULL
----

query I rowsort
SELECT ALL + 32 FROM tab2, tab1 AS cor0 WHERE NOT NULL = - 39
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) < 75 * + + ( col1 )
----

query I rowsort
SELECT ALL - + 87 AS col2 FROM tab0 cor0
----
-87
-87
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-4396
SELECT ALL col0 + + + 4 DIV - 44 * + col0 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4396
SELECT ALL col0 + + + 4 / - 44 * + col0 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4397
SELECT DISTINCT + + col2 * - col1 * - + CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
25075
290836
68544

skipif mysql # not compatible
query I rowsort label-4397
SELECT DISTINCT + + col2 * - col1 * - + CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
25075
290836
68544

query I rowsort
SELECT DISTINCT + + 97 - - + 73 AS col1 FROM tab2 AS cor0
----
170

query I rowsort
SELECT DISTINCT + + 3 * - col0 AS col2 FROM tab1 AS cor0
----
-153
-255
-273

onlyif mysql # DIV for integer division: 
query I rowsort label-4400
SELECT ALL + + col0 DIV - + col2 - - col0 AS col2 FROM tab1 AS cor0
----
51
84
90

skipif mysql # not compatible
query I rowsort label-4400
SELECT ALL + + col0 / - + col2 - - col0 AS col2 FROM tab1 AS cor0
----
51
84
90

query I rowsort
SELECT ALL ( + 99 ) * + 50 FROM tab0 AS cor0
----
4950
4950
4950

query I rowsort
SELECT - 80 + col0 + - + 84 AS col0 FROM tab1
----
-113
-73
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4403
SELECT ALL col1 + + CAST( col2 AS SIGNED ) FROM tab1 WHERE NOT 93 * + - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4403
SELECT ALL col1 + + CAST ( col2 AS INTEGER ) FROM tab1 WHERE NOT 93 * + - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4404
SELECT + col0 DIV 79 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4404
SELECT + col0 / 79 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4405
SELECT DISTINCT - col2 + - - col2 DIV col1 * - col2 FROM tab2 cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-4405
SELECT DISTINCT - col2 + - - col2 / col1 * - col2 FROM tab2 cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - col0 - 68 * + + col2 * + 38 FROM tab1 AS cor0
----
-152541
-175803
-248115

query I rowsort
SELECT ALL + col2 + - + col0 * col1 FROM tab1 AS cor0
----
-366
-4209
-618

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT DISTINCT - COUNT( * ) * - 86 FROM tab0 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-4408
SELECT DISTINCT - COUNT ( * ) * - 86 FROM tab0 AS cor0
----
258

query I rowsort
SELECT 6 AS col0 FROM tab1 AS cor0 WHERE NOT NULL > col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, - 90 FROM tab1 cor0
----
14
-90
47
-90
5
-90

query I rowsort
SELECT DISTINCT - - col0 * - 4 * - col0 AS col2 FROM tab0 AS cor0
----
30276
37636
900

query II rowsort
SELECT ALL col0 AS col0, col1 - + col2 + + col1 * 63 FROM tab2 AS cor0
----
46
3241
64
4888
75
4230

query I rowsort
SELECT DISTINCT + - 66 * + 89 - - ( + - col0 ) * col2 FROM tab1 AS cor0
----
-10770
-10889
-12062

query I rowsort
SELECT DISTINCT - + col2 * - 59 FROM tab1 AS cor0
----
3481
4012
5664

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT - 52 * + COUNT( * ) FROM tab1
----
-156

skipif mysql # not compatible
query I rowsort label-4415
SELECT - 52 * + COUNT ( * ) FROM tab1
----
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-4416
SELECT ALL ( + col2 ) DIV - + col1 + col0 + ( + col2 ) col1 FROM tab0
----
62
97
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4416
SELECT ALL ( + col2 ) / - + col1 + col0 + ( + col2 ) col1 FROM tab0
----
62
97
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4417
SELECT COUNT( * ) * + CAST( NULL AS SIGNED ) * COUNT( * ) / + - 69 * + MAX( - + 55 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4417
SELECT COUNT ( * ) * + CAST ( NULL AS INTEGER ) * COUNT ( * ) / + - 69 * + MAX ( - + 55 ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4418
SELECT ALL - MIN( DISTINCT ( - 30 ) ) DIV + + MIN( ALL + col2 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4418
SELECT ALL - MIN ( DISTINCT ( - 30 ) ) / + + MIN ( ALL + col2 ) AS col2 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-4419
SELECT DISTINCT + col1 DIV - + col1 AS col1, col2 col2 FROM tab2
----
-1
23
-1
40
-1
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4419
SELECT DISTINCT + col1 / - + col1 AS col1, col2 col2 FROM tab2
----
-1
23
-1
40
-1
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT DISTINCT - MAX( + 3 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4420
SELECT DISTINCT - MAX ( + 3 ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT + 4 * + 53 FROM tab2 cor0
----
212

onlyif mysql # DIV for integer division: 
query I rowsort label-4422
SELECT - - col1 DIV + - ( + 23 ) FROM tab2 AS cor0
----
-2
-2
-3

skipif mysql # not compatible
query I rowsort label-4422
SELECT - - col1 / + - ( + 23 ) FROM tab2 AS cor0
----
-2
-2
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4423
SELECT ALL CAST( - col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-4423
SELECT ALL CAST ( - col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

query II rowsort
SELECT + ( + col0 ) AS col2, + 26 AS col2 FROM tab1 AS cor0
----
51
26
85
26
91
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4425
SELECT ALL + MIN( CAST( + ( - + col0 ) AS SIGNED ) ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-4425
SELECT ALL + MIN ( CAST ( + ( - + col0 ) AS INTEGER ) ) FROM tab0 AS cor0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4426
SELECT - + col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4426
SELECT - + col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT DISTINCT + 62 + + MAX( + + 27 ) FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-4427
SELECT DISTINCT + 62 + + MAX ( + + 27 ) FROM tab0
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-4428
SELECT DISTINCT + 51 DIV ( + 65 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4428
SELECT DISTINCT + 51 / ( + 65 ) AS col1 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + + col0 ) col0 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT - COUNT( * ) * 29 * - - 37 FROM tab2
----
-3219

skipif mysql # not compatible
query I rowsort label-4430
SELECT - COUNT ( * ) * 29 * - - 37 FROM tab2
----
-3219

query I rowsort
SELECT - col0 * + ( col1 ) AS col0 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4432
SELECT + - col1 * - CAST( + - col0 AS SIGNED ) FROM tab2 AS cor0
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-4432
SELECT + - col1 * - CAST ( + - col0 AS INTEGER ) FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT - ( - + 31 ) AS col1 FROM tab2 AS cor0
----
31

query I rowsort
SELECT ALL 84 * + 48 FROM tab1 AS cor0
----
4032
4032
4032

query I rowsort
SELECT 27 * + ( - 98 ) + - 0 AS col1 FROM tab0 AS cor0 WHERE ( + col2 - + - ( + - col0 ) ) NOT BETWEEN + col2 AND + 11 * - col0
----
-2646
-2646
-2646

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4436
SELECT CAST( - 33 AS SIGNED ) / AVG ( ALL col1 ) FROM tab1 AS cor0 WHERE + 82 NOT BETWEEN - col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4436
SELECT CAST ( - 33 AS INTEGER ) / AVG ( ALL col1 ) FROM tab1 AS cor0 WHERE + 82 NOT BETWEEN - col2 AND NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 <= + - 24
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 79 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 + - + 56 AS col1 FROM tab2
----
-114
-79
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-4440
SELECT + col0 * col1 + - col0 * col0 DIV + 26 + col1 AS col0 FROM tab0
----
-263
1288
1557

skipif mysql # not compatible
query I rowsort label-4440
SELECT + col0 * col1 + - col0 * col0 / + 26 + col1 AS col0 FROM tab0
----
-263
1288
1557

onlyif mysql # DIV for integer division: 
query I rowsort label-4441
SELECT 87 DIV + + col2 + + 90 FROM tab2
----
91
92
93

skipif mysql # not compatible
query I rowsort label-4441
SELECT 87 / + + col2 + + 90 FROM tab2
----
91
92
93

query I rowsort
SELECT - col1 * col1 + - col2 AS col2 FROM tab0
----
-100
-451
-6608

query I rowsort
SELECT + col0 + - col2 * + - 26 FROM tab2
----
1104
1583
644

query I rowsort
SELECT DISTINCT + col1 * ( col1 ) - 80 + col2 AS col2 FROM tab1
----
212
2197
4

onlyif mysql # DIV for integer division: 
query II rowsort label-4445
SELECT col0, - 27 DIV - - 53 AS col2 FROM tab1
----
51
0
85
0
91
0

skipif mysql # not compatible
query II rowsort label-4445
SELECT col0, - 27 / - - 53 AS col2 FROM tab1
----
51
0
85
0
91
0

query I rowsort
SELECT + - col0 * + + 96 AS col0 FROM tab0 AS cor0
----
-1440
-8352
-9312

query I rowsort
SELECT DISTINCT + col0 - ( + - 26 ) AS col0 FROM tab0 AS cor0
----
113
123
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * ( col0 ) + col2 col2 FROM tab0 AS cor0
----
-1168
-1817
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4449
SELECT CAST( - - col0 AS SIGNED ) * + 61 + - col1 + 57 + - + col0 * 57 + + col1 AS col2 FROM tab2
----
241
313
357

skipif mysql # not compatible
query I rowsort label-4449
SELECT CAST ( - - col0 AS INTEGER ) * + 61 + - col1 + 57 + - + col0 * 57 + + col1 AS col2 FROM tab2
----
241
313
357

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT COUNT( * ) * COUNT( * ) * + 32 AS col1 FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-4450
SELECT COUNT ( * ) * COUNT ( * ) * + 32 AS col1 FROM tab1
----
288

query I rowsort
SELECT 11 * - col0 * - + ( + - 23 ) FROM tab2
----
-11638
-16192
-18975

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT DISTINCT + SUM( + 43 ) AS col0 FROM tab0 WHERE col2 < + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4452
SELECT DISTINCT + SUM ( + 43 ) AS col0 FROM tab0 WHERE col2 < + col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4453
SELECT DISTINCT COUNT( * ) DIV - COUNT( * ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4453
SELECT DISTINCT COUNT ( * ) / - COUNT ( * ) FROM tab1 AS cor0
----
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= + col1
----

query I rowsort
SELECT DISTINCT + + 23 * + col1 * + - col1 - - col1 FROM tab2 cor0
----
-103180
-136290
-59772

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT DISTINCT + 68 * - - MIN( col2 ) AS col2 FROM tab0 cor0
----
680

skipif mysql # not compatible
query I rowsort label-4456
SELECT DISTINCT + 68 * - - MIN ( col2 ) AS col2 FROM tab0 cor0
----
680

query I rowsort
SELECT ALL - ( - - 80 ) * col1 - - + col2 AS col1 FROM tab0 AS cor0
----
-1670
-6433
19

query I rowsort
SELECT DISTINCT - col2 * + 88 AS col1 FROM tab0 AS cor0
----
-4136
-8712
-880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4459
SELECT ALL + 79 * - - col0 * - col1 + - col1 + - CAST( NULL AS SIGNED ) * - col1 * + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4459
SELECT ALL + 79 * - - col0 * - col1 + - col1 + - CAST ( NULL AS INTEGER ) * - col1 * + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 AS col1, + 38 col2 FROM tab2
----
46
38
64
38
75
38

query I rowsort
SELECT ( col2 ) * + + col2 FROM tab2
----
1600
3364
529

query II rowsort
SELECT DISTINCT col1, - col0 + - 5 + col1 * col1 FROM tab1
----
14
140
47
2113
5
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4463
SELECT COUNT( * ) DIV COUNT( * ) AS col2 FROM tab2, tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-4463
SELECT COUNT ( * ) / COUNT ( * ) AS col2 FROM tab2, tab1 cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4464
SELECT DISTINCT + col0 * CAST( NULL AS SIGNED ) * - 51 AS col0, 61 * + 85 FROM tab2
----
NULL
5185

skipif mysql # not compatible
query II rowsort label-4464
SELECT DISTINCT + col0 * CAST ( NULL AS INTEGER ) * - 51 AS col0, 61 * + 85 FROM tab2
----
NULL
5185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + ( col1 ) * + col1 AS col1, col1 * col1 * - col2, + col0 col0 FROM tab2
----
9 values hashing to 441b22cfcf861c6a91cc428c2b48a071

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + 79 < ( + 15 * 64 )
----

query I rowsort
SELECT 16 * + 96 AS col1 FROM tab1
----
1536
1536
1536

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT DISTINCT + SUM( + col2 ) col1 FROM tab0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4468
SELECT DISTINCT + SUM ( + col2 ) col1 FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT COUNT( ALL - + 27 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4469
SELECT COUNT ( ALL - + 27 ) col0 FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 / - 16 BETWEEN - + col2 AND col2 * col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4471
SELECT + + 88 DIV - + COUNT( * ) FROM tab0 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-4471
SELECT + + 88 / - + COUNT ( * ) FROM tab0 AS cor0
----
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 65 col0 FROM tab0 cor0
----
-65
-65
-65

query I rowsort
SELECT - 70 + col2 * + 37 FROM tab2
----
1410
2076
781

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 78 = + + 11
----

query I rowsort
SELECT DISTINCT - col2 + + col0 + + col2 * col1 * + col0 AS col1 FROM tab2 cor0
----
197144
291467
53981

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NOT NULL < NULL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 * 25 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 87 + - 83 * - col0 + + col0 + + - col1 * + col1 + + col0 FROM tab0 AS cor0
----
-5199
7041
8331

onlyif mysql # aggregate syntax: 
query I rowsort label-4479
SELECT - + MAX( - - col0 ) AS col0 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4479
SELECT - + MAX ( - - col0 ) AS col0 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT + col2 * + 64 FROM tab2 AS cor0
----
1472
2560
3712

query III rowsort
SELECT * FROM tab1 WHERE 59 * col1 * + col1 / + ( 83 ) - - 50 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4482
SELECT 46 DIV - col0 AS col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4482
SELECT 46 / - col0 AS col2 FROM tab2
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT ALL - MAX( - + col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-4483
SELECT ALL - MAX ( - + col2 ) FROM tab0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-4484
SELECT ALL col1 DIV + 74 * col1 * col0 + - + 3 * + ( - 98 ) FROM tab1
----
294
294
294

skipif mysql # not compatible
query I rowsort label-4484
SELECT ALL col1 / + 74 * col1 * col0 + - + 3 * + ( - 98 ) FROM tab1
----
294
294
294

query III rowsort
SELECT * FROM tab1 WHERE - - col0 NOT BETWEEN ( + col2 ) AND ( NULL )
----
51
14
96

query I rowsort
SELECT DISTINCT col2 + + 10 FROM tab0
----
109
20
57

query I rowsort
SELECT ALL - 15 - col2 AS col1 FROM tab1 AS cor0
----
-111
-74
-83

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * - 13 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-4489
SELECT col1 DIV + + col0 * - col2 * - col0 col1, 44 FROM tab1
----
0
44
0
44
0
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4489
SELECT col1 / + + col0 * - col2 * - col0 col1, 44 FROM tab1
----
0
44
0
44
0
44

query I rowsort
SELECT + 78 * col2 - - col1 FROM tab0 AS cor0
----
3747
7723
801

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 < 31
----
15
81
47

query II rowsort
SELECT + col0 AS col0, + col2 * col0 AS col0 FROM tab0 AS cor0
----
15
705
87
870
97
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT ALL MIN( col2 ) * COUNT( * ) FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-4493
SELECT ALL MIN ( col2 ) * COUNT ( * ) FROM tab0 AS cor0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4494
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, 86 AS col1 FROM tab1 AS cor0
----
NULL
86

skipif mysql # not compatible
query II rowsort label-4494
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, 86 AS col1 FROM tab1 AS cor0
----
NULL
86

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 * + 72 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * col1 IS NOT NULL
----

query II rowsort
SELECT + col1 * - col1 AS col2, col2 FROM tab2
----
-2601
23
-4489
58
-5929
40

query III rowsort
SELECT * FROM tab2 WHERE NOT 12 >= - col0 + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - ( col1 ) <= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + col2 * + 8 * col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4501
SELECT ( + COUNT( * ) ) AS col0, 48 AS col1 FROM tab0
----
3
48

skipif mysql # not compatible
query II rowsort label-4501
SELECT ( + COUNT ( * ) ) AS col0, 48 AS col1 FROM tab0
----
3
48

query I rowsort
SELECT + + col2 + col1 * + 30 + - col2 FROM tab2 cor0
----
1530
2010
2310

onlyif mysql # DIV for integer division: 
query I rowsort label-4503
SELECT ALL + col0 DIV - col1 - + col2 + + ( + col2 ) AS col0 FROM tab1 AS cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-4503
SELECT ALL + col0 / - col1 - + col2 + + ( + col2 ) AS col0 FROM tab1 AS cor0
----
-1
-17
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4504
SELECT DISTINCT col1 DIV ( 49 ) FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4504
SELECT DISTINCT col1 / ( 49 ) FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT + + col1 + + + col1 - col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( + - col1 <> NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4506
SELECT + CAST( - 55 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-55
-55
-55

skipif mysql # not compatible
query I rowsort label-4506
SELECT + CAST ( - 55 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-55
-55
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT DISTINCT COUNT( + + col1 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4507
SELECT DISTINCT COUNT ( + + col1 ) FROM tab2 cor0
----
3

query I rowsort
SELECT DISTINCT 17 + - col0 AS col0 FROM tab0
----
-70
-80
2

query III rowsort
SELECT * FROM tab2 WHERE + + col0 NOT BETWEEN ( - col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT - + COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4510
SELECT - + COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4511
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - + col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4511
SELECT DISTINCT CAST ( NULL AS REAL ) + - + col0 FROM tab0
----
NULL

query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE + col2 * - 33 NOT BETWEEN + col1 AND NULL
----
10
47
99

query II rowsort
SELECT ALL - 82, col2 AS col0 FROM tab1 AS cor0
----
-82
59
-82
68
-82
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4514
SELECT DISTINCT MIN( + CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4514
SELECT DISTINCT MIN ( + CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT ALL + MAX( DISTINCT 48 ) + + 77 AS col1 FROM tab1, tab1 AS cor0
----
125

skipif mysql # not compatible
query I rowsort label-4515
SELECT ALL + MAX ( DISTINCT 48 ) + + 77 AS col1 FROM tab1, tab1 AS cor0
----
125

onlyif mysql # DIV for integer division: 
query I rowsort label-4516
SELECT DISTINCT + col2 + + col1 DIV - - 20 AS col0 FROM tab1
----
59
70
96

skipif mysql # not compatible
query I rowsort label-4516
SELECT DISTINCT + col2 + + col1 / - - 20 AS col0 FROM tab1
----
59
70
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col1 + col1 * + + 79 + ( + col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 + - - 65 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4519
SELECT + + COUNT( * ) - - SUM( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4519
SELECT + + COUNT ( * ) - - SUM ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * - 59 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT - col0 - - 50 IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT ALL - + MIN( + + col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4522
SELECT ALL - + MIN ( + + col2 ) FROM tab0 AS cor0
----
-10

query II rowsort
SELECT 12, col2 AS col1 FROM tab0
----
12
10
12
47
12
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT + col2 IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-4524
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT + col2 IS NOT NULL )
----
3

query II rowsort
SELECT - + col0 AS col1, - 42 FROM tab0 AS cor0
----
-15
-42
-87
-42
-97
-42

query I rowsort
SELECT - col0 - - col1 AS col0 FROM tab1 AS cor0 WHERE NOT col1 = - - col2
----
-37
-44
-80

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 34 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col0 AS col1, col2 AS col1 FROM tab1
----
51
96
85
59
91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT ALL ( + - COUNT( ALL ( col2 ) ) ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4529
SELECT ALL ( + - COUNT ( ALL ( col2 ) ) ) AS col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT DISTINCT COUNT( + - col0 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4530
SELECT DISTINCT COUNT ( + - col0 ) AS col2 FROM tab2
----
3

query II rowsort
SELECT ALL + col0 AS col1, + ( + col1 ) + + 56 AS col0 FROM tab0
----
15
137
87
77
97
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT - COUNT( - 92 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4532
SELECT - COUNT ( - 92 ) FROM tab1
----
-3

query I rowsort
SELECT ALL col2 + + col2 * + + ( + ( - col1 ) ) FROM tab1
----
-1248
-236
-3128

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 53 * - col2 / col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( 18, - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 74, 85 * - col1 col2 FROM tab0 AS cor0
----
74
-1785
74
-6885
74
-85

query I rowsort
SELECT ALL col1 * 75 * - col2 FROM tab1
----
-100800
-22125
-239700

onlyif mysql # DIV for integer division: 
query I rowsort label-4538
SELECT col0 DIV + - col0 + + col0 + + col1 FROM tab1
----
137
64
89

skipif mysql # not compatible
query I rowsort label-4538
SELECT col0 / + - col0 + + col0 + + col1 FROM tab1
----
137
64
89

query I rowsort
SELECT DISTINCT + col1 + - col1 + - col0 * col1 + - col1 FROM tab2
----
-2397
-5005
-5092

query I rowsort
SELECT DISTINCT + 58 * - col2 + - 86 FROM tab0
----
-2812
-5828
-666

query IIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 WHERE NOT + - ( - 99 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4542
SELECT ALL + + CAST( + 10 AS SIGNED ) FROM tab1 AS cor0 WHERE + col0 < NULL
----

skipif mysql # not compatible
query I rowsort label-4542
SELECT ALL + + CAST ( + 10 AS INTEGER ) FROM tab1 AS cor0 WHERE + col0 < NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 / + col0 > + 67
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4544
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * col2 * 43, col1 AS col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-4544
SELECT DISTINCT - CAST ( NULL AS REAL ) * col2 * 43, col1 AS col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4545
SELECT + ( - ( - + 70 ) ) * MIN( ALL - + ( + - col2 ) ) DIV + ( 24 ) FROM tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-4545
SELECT + ( - ( - + 70 ) ) * MIN ( ALL - + ( + - col2 ) ) / + ( 24 ) FROM tab0 AS cor0
----
29

query I rowsort
SELECT ( - + 20 ) AS col2 FROM tab0 AS cor0
----
-20
-20
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4547
SELECT DISTINCT - 40 * - col2 - - CAST( - 15 AS SIGNED ) FROM tab1 AS cor0
----
2345
2705
3825

skipif mysql # not compatible
query I rowsort label-4547
SELECT DISTINCT - 40 * - col2 - - CAST ( - 15 AS INTEGER ) FROM tab1 AS cor0
----
2345
2705
3825

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4548
SELECT CAST( NULL AS SIGNED ) - + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4548
SELECT CAST ( NULL AS INTEGER ) - + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4549
SELECT + CAST( NULL AS SIGNED ) - ( - CAST( NULL AS DECIMAL ) ) + - col2 - - 41 * + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4549
SELECT + CAST ( NULL AS INTEGER ) - ( - CAST ( NULL AS REAL ) ) + - col2 - - 41 * + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 FROM tab0 WHERE NOT - - col0 / - col2 IS NULL
----
15
87
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 + + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 * - col1 + - 36 AS col0 FROM tab0 AS cor0
----
-1251
-133
-1863

query I rowsort
SELECT DISTINCT 40 FROM tab2 AS cor0 WHERE - 3 + 31 - + 4 IS NOT NULL
----
40

query I rowsort
SELECT - col1 * - + 64 + col0 AS col1 FROM tab1 AS cor0
----
3099
405
947

query I rowsort
SELECT col0 FROM tab1 WHERE NOT + 24 + col1 + + col1 + + + 73 IN ( + 46 )
----
51
85
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4556
SELECT DISTINCT - COUNT( * ) DIV - SUM( ALL - col1 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4556
SELECT DISTINCT - COUNT ( * ) / - SUM ( ALL - col1 ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT DISTINCT + MIN( ( + col0 ) ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-4557
SELECT DISTINCT + MIN ( ( + col0 ) ) FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT - 9 * + + COUNT( * ) AS col2 FROM tab2 cor0
----
-27

skipif mysql # not compatible
query I rowsort label-4558
SELECT - 9 * + + COUNT ( * ) AS col2 FROM tab2 cor0
----
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 62 col2 FROM tab1 AS cor0
----
-62
-62
-62

query I rowsort
SELECT - + col0 * + 0 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 18 * ( - + 80 ) * 74 AS col1 FROM tab1 AS cor0
----
106560
106560
106560

onlyif mysql # DIV for integer division: 
query II rowsort label-4562
SELECT col1 DIV 57, 34 AS col0 FROM tab1 AS cor0
----
0
34
0
34
0
34

skipif mysql # not compatible
query II rowsort label-4562
SELECT col1 / 57, 34 AS col0 FROM tab1 AS cor0
----
0
34
0
34
0
34

query I rowsort
SELECT + - 97 * - - col1 FROM tab0 cor0
----
-2037
-7857
-97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 / - + col1 > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= 39
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT + 5 + + COUNT( col2 ) col0 FROM tab1
----
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4566
SELECT + 5 + + COUNT ( col2 ) col0 FROM tab1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT COUNT( - col2 ) * + - 79 + + COUNT( * ) AS col2 FROM tab2
----
-234

skipif mysql # not compatible
query I rowsort label-4567
SELECT COUNT ( - col2 ) * + - 79 + + COUNT ( * ) AS col2 FROM tab2
----
-234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4568
SELECT ALL 35 * + CAST( NULL AS SIGNED ) * COUNT( * ) + + MIN( - 98 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4568
SELECT ALL 35 * + CAST ( NULL AS INTEGER ) * COUNT ( * ) + + MIN ( - 98 ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 60 + + col0 + + col2 * - col1 col1 FROM tab0 AS cor0
----
-3732
-63
58

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL NOT IN ( ( + 56 ) / - 46 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4571
SELECT - + CAST( 60 AS SIGNED ) FROM tab2 AS cor0
----
-60
-60
-60

skipif mysql # not compatible
query I rowsort label-4571
SELECT - + CAST ( 60 AS INTEGER ) FROM tab2 AS cor0
----
-60
-60
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4572
SELECT + col2 - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4572
SELECT + col2 - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4573
SELECT + col1 + - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4573
SELECT + col1 + - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col0 - + 82 AS col2 FROM tab1 AS cor0
----
-31
3
9

query I rowsort
SELECT DISTINCT + + col0 + 29 AS col1 FROM tab2 AS cor0
----
104
75
93

query I rowsort
SELECT DISTINCT - - 75 * - col0 * 48 AS col2 FROM tab2 AS cor0
----
-165600
-230400
-270000

query I rowsort
SELECT ALL col0 - + 3 * col2 FROM tab2 AS cor0
----
-23
-56
-99

query I rowsort
SELECT ALL + ( - col2 ) * - col2 FROM tab1
----
3481
4624
9216

onlyif mysql # DIV for integer division: 
query I rowsort label-4579
SELECT 81 DIV + 53 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4579
SELECT 81 / + 53 FROM tab2
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4580
SELECT DISTINCT 12 DIV ( - 60 ) col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4580
SELECT DISTINCT 12 / ( - 60 ) col2 FROM tab0
----
0

query I rowsort
SELECT col2 * - col2 * + + ( + - 96 ) * col1 FROM tab0
----
17177184
201600
940896

onlyif mysql # DIV for integer division: 
query II rowsort label-4582
SELECT - col1 DIV + col1 AS col0, 81 + + ( - - col1 ) FROM tab1
----
-1
128
-1
86
-1
95

skipif mysql # not compatible
query II rowsort label-4582
SELECT - col1 / + col1 AS col0, 81 + + ( - - col1 ) FROM tab1
----
-1
128
-1
86
-1
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT ALL - COUNT( * ) AS col0 FROM tab2 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4583
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 WHERE NOT - col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4584
SELECT 7 * COUNT( * ) DIV - ( - 93 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4584
SELECT 7 * COUNT ( * ) / - ( - 93 ) AS col1 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4585
SELECT - col0 DIV - + 18 FROM tab2
----
2
3
4

skipif mysql # not compatible
query I rowsort label-4585
SELECT - col0 / - + 18 FROM tab2
----
2
3
4

query I rowsort
SELECT col2 * + 51 FROM tab2
----
1173
2040
2958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4587
SELECT + CAST( - 5 AS SIGNED ) FROM tab2
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-4587
SELECT + CAST ( - 5 AS INTEGER ) FROM tab2
----
-5
-5
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 5 col0 FROM tab2
----
-5
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT MAX( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4589
SELECT MAX ( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4590
SELECT ALL col1 DIV - col1 col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4590
SELECT ALL col1 / - col1 col0 FROM tab1
----
-1
-1
-1

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 66 IN ( - 99 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4592
SELECT DISTINCT 64 * + - COUNT( * ) FROM tab2
----
-192

skipif mysql # not compatible
query I rowsort label-4592
SELECT DISTINCT 64 * + - COUNT ( * ) FROM tab2
----
-192

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 + col1 IS NOT NULL
----

query I rowsort
SELECT - - col1 + + 18 AS col0 FROM tab1 AS cor0
----
23
32
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4595
SELECT ALL - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4595
SELECT ALL - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT ALL + 24 * - col0 FROM tab2 AS cor0
----
-1104
-1536
-1800

query I rowsort
SELECT - 87 AS col1 FROM tab1 AS cor0 WHERE NOT 70 + ( col2 ) + + col0 + + + 14 * - col2 = + + col0
----
-87
-87
-87

query I rowsort
SELECT ALL - 75 * col2 AS col2 FROM tab2 cor0
----
-1725
-3000
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT ALL - - COUNT( * ) col1 FROM tab1 AS cor0 WHERE NULL >= col2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4599
SELECT ALL - - COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NULL >= col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT ALL - SUM( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-4600
SELECT ALL - SUM ( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
-121

onlyif mysql # DIV for integer division: 
query II rowsort label-4601
SELECT DISTINCT col0 AS col1, - col2 DIV - 48 FROM tab1 AS cor0
----
51
2
85
1
91
1

skipif mysql # not compatible
query II rowsort label-4601
SELECT DISTINCT col0 AS col1, - col2 / - 48 FROM tab1 AS cor0
----
51
2
85
1
91
1

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4603
SELECT + MAX( - - CAST( 47 AS SIGNED ) ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-4603
SELECT + MAX ( - - CAST ( 47 AS INTEGER ) ) FROM tab1
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-4604
SELECT ALL + col1 + - col1 + - 27 DIV + - col1 AS col1 FROM tab1
----
0
1
5

skipif mysql # not compatible
query I rowsort label-4604
SELECT ALL + col1 + - col1 + - 27 / + - col1 AS col1 FROM tab1
----
0
1
5

query I rowsort
SELECT DISTINCT 48 + 68 + + 60 + + col2 AS col2 FROM tab0
----
186
223
275

query III rowsort
SELECT * FROM tab2 WHERE + col2 = col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT ALL COUNT( * ) + + 99 FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-4607
SELECT ALL COUNT ( * ) + + 99 FROM tab0
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-4608
SELECT ALL + col2 + col1 DIV + col0 FROM tab0
----
10
52
99

skipif mysql # not compatible
query I rowsort label-4608
SELECT ALL + col2 + col1 / + col0 FROM tab0
----
10
52
99

query I rowsort
SELECT DISTINCT - col2 + - col2 * + + 47 AS col2 FROM tab0
----
-2256
-4752
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT DISTINCT - MIN( ALL + - 80 ) FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-4610
SELECT DISTINCT - MIN ( ALL + - 80 ) FROM tab2
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4611
SELECT - col0 + + + 68 + col1 - + + col0 + - col0, + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-158
NULL
-182
NULL
-71
NULL

skipif mysql # not compatible
query II rowsort label-4611
SELECT - col0 + + + 68 + col1 - + + col0 + - col0, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-158
NULL
-182
NULL
-71
NULL

query I rowsort
SELECT ALL - + col1 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT 69 <> - + col0 * col2 )
----

query I rowsort
SELECT + 54 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col2 * - - 23 + + 14 FROM tab2
----
1348
543
934

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4616
SELECT DISTINCT + CAST( 1 AS SIGNED ) + 83 AS col0, col0 * + col0 FROM tab2
----
84
2116
84
4096
84
5625

skipif mysql # not compatible
query II rowsort label-4616
SELECT DISTINCT + CAST ( 1 AS INTEGER ) + 83 AS col0, col0 * + col0 FROM tab2
----
84
2116
84
4096
84
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT ALL 70 + + + 63 * + COUNT( * ) + - ( + COUNT( * ) ) col0 FROM tab1
----
256

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4617
SELECT ALL 70 + + + 63 * + COUNT ( * ) + - ( + COUNT ( * ) ) col0 FROM tab1
----
256

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 * + col2 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4619
SELECT DISTINCT - - COUNT( DISTINCT CAST( NULL AS DECIMAL ) ) * 25 - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4619
SELECT DISTINCT - - COUNT ( DISTINCT CAST ( NULL AS REAL ) ) * 25 - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4620
SELECT ALL - CAST( + - col2 AS SIGNED ) - - ( + 45 ) FROM tab1 AS cor0
----
104
113
141

skipif mysql # not compatible
query I rowsort label-4620
SELECT ALL - CAST ( + - col2 AS INTEGER ) - - ( + 45 ) FROM tab1 AS cor0
----
104
113
141

onlyif mysql # DIV for integer division: 
query I rowsort label-4621
SELECT DISTINCT - col0 - - col2 - col0 DIV 20 * - col1 FROM tab2 AS cor0
----
184
207
79

skipif mysql # not compatible
query I rowsort label-4621
SELECT DISTINCT - col0 - - col2 - col0 / 20 * - col1 FROM tab2 AS cor0
----
184
207
79

query I rowsort
SELECT DISTINCT col0 * + 95 FROM tab0 AS cor0
----
1425
8265
9215

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT ALL + + 99 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-4623
SELECT ALL + + 99 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT + - COUNT( * ) * - SUM( ALL - - col1 ) FROM tab1 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-4624
SELECT + - COUNT ( * ) * - SUM ( ALL - - col1 ) FROM tab1 AS cor0
----
198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4625
SELECT DISTINCT CAST( - - col0 AS SIGNED ) FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4625
SELECT DISTINCT CAST ( - - col0 AS INTEGER ) FROM tab1
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col2, + col0 FROM tab1
----
14
51
47
91
5
85

query II rowsort
SELECT ALL col1 AS col0, 69 + + col0 * - - col2 AS col2 FROM tab0
----
1
9672
21
939
81
774

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE NOT NULL <> NULL
----

query II rowsort
SELECT ALL + 10 * - 32, col1 * 96 AS col0 FROM tab1 AS cor0
----
-320
1344
-320
4512
-320
480

query I rowsort
SELECT - 20 * ( + col1 ) FROM tab2 AS cor0
----
-1020
-1340
-1540

query I rowsort
SELECT DISTINCT + + col2 * - 2 * + 42 AS col0 FROM tab0 AS cor0
----
-3948
-8316
-840

onlyif mysql # aggregate syntax: 
query II rowsort label-4632
SELECT 57 AS col2, - SUM( DISTINCT + col1 ) FROM tab1 AS cor0
----
57
-66

skipif mysql # not compatible
query II rowsort label-4632
SELECT 57 AS col2, - SUM ( DISTINCT + col1 ) FROM tab1 AS cor0
----
57
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-4633
SELECT ALL - col0 DIV - 21 FROM tab2 AS cor0
----
2
3
3

skipif mysql # not compatible
query I rowsort label-4633
SELECT ALL - col0 / - 21 FROM tab2 AS cor0
----
2
3
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 56 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + col0, - col0 * + + col2 FROM tab1 AS cor0
----
51
-4896
85
-5015
91
-6188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4636
SELECT - - MIN( + + CAST( - + col2 AS SIGNED ) ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-4636
SELECT - - MIN ( + + CAST ( - + col2 AS INTEGER ) ) FROM tab2 AS cor0
----
-58

query II rowsort
SELECT ALL + 67, col0 AS col2 FROM tab1 AS cor0
----
67
51
67
85
67
91

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT - 56 IS NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4639
SELECT DISTINCT COUNT( * ) DIV - + 88 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4639
SELECT DISTINCT COUNT ( * ) / - + 88 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4640
SELECT ALL - - 46 DIV - CAST( 56 AS SIGNED ) + 11 FROM tab1 AS cor0
----
11
11
11

skipif mysql # not compatible
query I rowsort label-4640
SELECT ALL - - 46 / - CAST ( 56 AS INTEGER ) + 11 FROM tab1 AS cor0
----
11
11
11

onlyif mysql # DIV for integer division: 
query I rowsort label-4641
SELECT + + col1 DIV - col2 + - - 78 * 68 AS col1 FROM tab1 AS cor0
----
5304
5304
5304

skipif mysql # not compatible
query I rowsort label-4641
SELECT + + col1 / - col2 + - - 78 * 68 AS col1 FROM tab1 AS cor0
----
5304
5304
5304

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4642
SELECT DISTINCT - MIN( col0 ) DIV + - MAX( DISTINCT col1 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4642
SELECT DISTINCT - MIN ( col0 ) / + - MAX ( DISTINCT col1 ) FROM tab1 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4643
SELECT + + 88 DIV - + col2 AS col1 FROM tab2 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-4643
SELECT + + 88 / - + col2 AS col1 FROM tab2 AS cor0
----
-1
-2
-3

query III rowsort
SELECT * FROM tab2 WHERE - + col1 <> col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 + ( + - 27 ) + - + ( 16 ) FROM tab1
----
42
48
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4646
SELECT CAST( SUM( + - 99 ) AS SIGNED ) + 78 AS col0 FROM tab1
----
-219

skipif mysql # not compatible
query I rowsort label-4646
SELECT CAST ( SUM ( + - 99 ) AS INTEGER ) + 78 AS col0 FROM tab1
----
-219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4647
SELECT ALL + CAST( NULL AS SIGNED ) - - col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4647
SELECT ALL + CAST ( NULL AS INTEGER ) - - col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT col2 AS col0, col2 + - - 57 FROM tab0
----
10
67
47
104
99
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * 61 + + 61 AS col0, 40 col1 FROM tab0 AS cor0
----
122
40
1342
40
5002
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT DISTINCT MAX( - col0 ) col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4650
SELECT DISTINCT MAX ( - col0 ) col1 FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT ALL - - MAX( col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4651
SELECT ALL - - MAX ( col2 ) FROM tab0 AS cor0
----
99

query III rowsort
SELECT * FROM tab0 cor0 WHERE 66 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4653
SELECT + col0 DIV + 88 - + 96 AS col1 FROM tab2
----
-96
-96
-96

skipif mysql # not compatible
query I rowsort label-4653
SELECT + col0 / + 88 - + 96 AS col1 FROM tab2
----
-96
-96
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4654
SELECT CAST( 66 AS SIGNED ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

skipif mysql # not compatible
query I rowsort label-4654
SELECT CAST ( 66 AS INTEGER ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT COUNT( 63 ) AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4655
SELECT COUNT ( 63 ) AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

query II rowsort
SELECT - + col1 + - 33, ( - ( - col2 ) ) AS col0 FROM tab1 cor0
----
-38
59
-47
96
-80
68

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IS NULL OR NULL > + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4658
SELECT * FROM tab0 AS cor0 WHERE NOT ( 84 * + CAST( - 36 AS SIGNED ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4658
SELECT * FROM tab0 AS cor0 WHERE NOT ( 84 * + CAST ( - 36 AS INTEGER ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT MIN( + col1 ) col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4659
SELECT MIN ( + col1 ) col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT + MAX( - col2 ) AS col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4660
SELECT + MAX ( - col2 ) AS col2 FROM tab2 AS cor0
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4662
SELECT - col1 * - + col0 * col1 col1, CAST( + col2 AS SIGNED ) FROM tab2
----
119646
23
336675
58
379456
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4662
SELECT - col1 * - + col0 * col1 col1, CAST ( + col2 AS INTEGER ) FROM tab2
----
119646
23
336675
58
379456
40

query I rowsort
SELECT ALL + 10 * + + 35 - + 70 FROM tab1 WHERE NOT + col0 * col0 + + col1 * - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4664
SELECT col2 DIV - 5 AS col1 FROM tab2
----
-11
-4
-8

skipif mysql # not compatible
query I rowsort label-4664
SELECT col2 / - 5 AS col1 FROM tab2
----
-11
-4
-8

query I rowsort
SELECT + col0 * - 83 AS col0 FROM tab0
----
-1245
-7221
-8051

query I rowsort
SELECT + col1 * - 54 * + col1 FROM tab1
----
-10584
-119286
-1350

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 28 <= NULL
----

query I rowsort
SELECT + col2 * - ( - 4 ) FROM tab1 AS cor0
----
236
272
384

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT ALL MIN( DISTINCT - col1 ) * 80 FROM tab1 AS cor0
----
-3760

skipif mysql # not compatible
query I rowsort label-4669
SELECT ALL MIN ( DISTINCT - col1 ) * 80 FROM tab1 AS cor0
----
-3760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4670
SELECT - col2 * 94 + - + col1 AS col0 FROM tab2 AS cor0 WHERE NOT + col2 * - + col0 * + col0 / CAST( NULL AS SIGNED ) IS NOT NULL
----
-2213
-3837
-5519

skipif mysql # not compatible
query I rowsort label-4670
SELECT - col2 * 94 + - + col1 AS col0 FROM tab2 AS cor0 WHERE NOT + col2 * - + col0 * + col0 / CAST ( NULL AS INTEGER ) IS NOT NULL
----
-2213
-3837
-5519

query II rowsort
SELECT ALL col2, + 53 FROM tab1 AS cor0
----
59
53
68
53
96
53

query II rowsort
SELECT col1 AS col0, 53 AS col1 FROM tab2
----
51
53
67
53
77
53

query I rowsort
SELECT + col2 + + 14 AS col1 FROM tab0
----
113
24
61

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 35 + - ( + 92 ) + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 86 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4676
SELECT ALL + + 75 DIV + COUNT( * ) FROM tab2 cor0
----
25

skipif mysql # not compatible
query I rowsort label-4676
SELECT ALL + + 75 / + COUNT ( * ) FROM tab2 cor0
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-4677
SELECT ALL + + COUNT( * ) AS col0, COUNT( * ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4677
SELECT ALL + + COUNT ( * ) AS col0, COUNT ( * ) FROM tab1 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4678
SELECT + ( - - 41 ) * - 86 * COUNT( ALL + - col1 ) AS col2 FROM tab2 AS cor0
----
-10578

skipif mysql # not compatible
query I rowsort label-4678
SELECT + ( - - 41 ) * - 86 * COUNT ( ALL + - col1 ) AS col2 FROM tab2 AS cor0
----
-10578

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT MAX( 85 ) * - 88 FROM tab0 AS cor0
----
-7480

skipif mysql # not compatible
query I rowsort label-4679
SELECT MAX ( 85 ) * - 88 FROM tab0 AS cor0
----
-7480

query I rowsort
SELECT - 17 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-17
-17
-17

query II rowsort
SELECT - - ( + col2 ) AS col0, col1 - ( col1 ) * + col0 FROM tab0 AS cor0
----
10
-1806
47
-1134
99
-96

query III rowsort
SELECT * FROM tab2 WHERE col1 * - - col1 - - 6 > + - col1 * col1 - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 * - ( - col0 ) FROM tab2
----
1058
2560
4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * - 23 col0, - col1 FROM tab1
----
-1081
-47
-115
-5
-322
-14

query I rowsort
SELECT ALL + col1 + - - col2 FROM tab0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT + COUNT( * ) - 0 col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4686
SELECT + COUNT ( * ) - 0 col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT DISTINCT + + COUNT( * ) * 87 col2 FROM tab1 AS cor0
----
261

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4687
SELECT DISTINCT + + COUNT ( * ) * 87 col2 FROM tab1 AS cor0
----
261

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 + + 75 + - col2 + + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT ( + COUNT( * ) ) + 35 FROM tab2 cor0
----
38

skipif mysql # not compatible
query I rowsort label-4689
SELECT ( + COUNT ( * ) ) + 35 FROM tab2 cor0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT 66 * + - SUM( ALL col1 ) AS col1 FROM tab2
----
-12870

skipif mysql # not compatible
query I rowsort label-4690
SELECT 66 * + - SUM ( ALL col1 ) AS col1 FROM tab2
----
-12870

query I rowsort
SELECT DISTINCT col1 * + + 35 FROM tab0 WHERE NOT NULL IS NOT NULL
----
2835
35
735

query I rowsort
SELECT + - col1 AS col2 FROM tab0 AS cor0 WHERE NOT - 20 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT DISTINCT SUM( 11 ) AS col0 FROM tab2 cor0
----
33

skipif mysql # not compatible
query I rowsort label-4693
SELECT DISTINCT SUM ( 11 ) AS col0 FROM tab2 cor0
----
33

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 3 ) * - + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT + MAX( DISTINCT - - col0 ) AS col0 FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-4695
SELECT + MAX ( DISTINCT - - col0 ) AS col0 FROM tab0 cor0
----
97

query II rowsort
SELECT ALL - + col1, 79 AS col0 FROM tab0 AS cor0
----
-1
79
-21
79
-81
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT ALL + - SUM( + 28 ) FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-4697
SELECT ALL + - SUM ( + 28 ) FROM tab2 AS cor0
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4698
SELECT ALL + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4698
SELECT ALL + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT - col1 * ( + col1 ) * - col2 * - col1 FROM tab1
----
-263424
-7059964
-7375

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 * - col2 <= - ( col2 ) * - col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 18 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4702
SELECT DISTINCT - 44 * COUNT( * ) FROM tab1
----
-132

skipif mysql # not compatible
query I rowsort label-4702
SELECT DISTINCT - 44 * COUNT ( * ) FROM tab1
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT + + 37 / + SUM( + - col1 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) <= + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-4703
SELECT + + 37 / + SUM ( + - col1 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) <= + 11
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT DISTINCT - COUNT( * ) * 91 FROM tab2 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-4704
SELECT DISTINCT - COUNT ( * ) * 91 FROM tab2 AS cor0
----
-273

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 19 col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

query II rowsort
SELECT col0, 41 AS col0 FROM tab1
----
51
41
85
41
91
41

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) < col1
----

query I rowsort
SELECT DISTINCT - - 1 + - col2 + + col2 FROM tab0 AS cor0
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 > NULL
----

query I rowsort
SELECT ALL - - 30 + - - col1 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 38 + + - col2 * - col2 FROM tab1
----
3519
4662
9254

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT ALL 20 * SUM( DISTINCT + col0 ) AS col0 FROM tab2
----
3700

skipif mysql # not compatible
query I rowsort label-4712
SELECT ALL 20 * SUM ( DISTINCT + col0 ) AS col0 FROM tab2
----
3700

onlyif mysql # aggregate syntax: 
query I rowsort label-4713
SELECT DISTINCT + SUM( DISTINCT 94 ) + + 66 AS col1 FROM tab0
----
160

skipif mysql # not compatible
query I rowsort label-4713
SELECT DISTINCT + SUM ( DISTINCT 94 ) + + 66 AS col1 FROM tab0
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT ALL - 55 - COUNT( * ) FROM tab0
----
-58

skipif mysql # not compatible
query I rowsort label-4714
SELECT ALL - 55 - COUNT ( * ) FROM tab0
----
-58

query I rowsort
SELECT + ( - ( col1 ) ) AS col2 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4716
SELECT - 82, - COUNT( * ) DIV - 69 AS col1 FROM tab1
----
-82
0

skipif mysql # not compatible
query II rowsort label-4716
SELECT - 82, - COUNT ( * ) / - 69 AS col1 FROM tab1
----
-82
0

query I rowsort
SELECT col1 - + col2 * - - col0 FROM tab1 AS cor0
----
-4882
-5010
-6141

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 67 = - 33
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) < + col0
----

query I rowsort
SELECT - - 57 FROM tab2 cor0
----
57
57
57

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 79 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4722
SELECT DISTINCT + + ( 55 ), + COUNT( * ) AS col1 FROM tab2 cor0
----
55
3

skipif mysql # not compatible
query II rowsort label-4722
SELECT DISTINCT + + ( 55 ), + COUNT ( * ) AS col1 FROM tab2 cor0
----
55
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 <= + + ( 15 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 + - - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT DISTINCT - MAX( ALL 8 ) FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-4725
SELECT DISTINCT - MAX ( ALL 8 ) FROM tab1 AS cor0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT + SUM( ALL + + col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-4726
SELECT + SUM ( ALL + + col2 ) AS col2 FROM tab1 AS cor0
----
223

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 * - - col0 NOT BETWEEN + ( + + 71 ) AND col1 + - + col2 * + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-4728
SELECT DISTINCT - MIN( + col1 ) AS col1, + COUNT( * ) FROM tab0 AS cor0
----
-1
3

skipif mysql # not compatible
query II rowsort label-4728
SELECT DISTINCT - MIN ( + col1 ) AS col1, + COUNT ( * ) FROM tab0 AS cor0
----
-1
3

query I rowsort
SELECT - ( 77 ) AS col1 FROM tab0
----
-77
-77
-77

query II rowsort
SELECT DISTINCT col0 AS col2, - 83 * - + 68 FROM tab1
----
51
5644
85
5644
91
5644

onlyif mysql # aggregate syntax: 
query I rowsort label-4731
SELECT MIN( ALL - + col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-4731
SELECT MIN ( ALL - + col0 ) FROM tab1
----
-91

query II rowsort
SELECT ALL - col2 AS col1, ( 4 ) AS col0 FROM tab0
----
-10
4
-47
4
-99
4

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 63 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT MIN( - 45 ) * + COUNT( * ) AS col0 FROM tab0
----
-135

skipif mysql # not compatible
query I rowsort label-4734
SELECT MIN ( - 45 ) * + COUNT ( * ) AS col0 FROM tab0
----
-135

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT - + col1 IS NULL
----
-10
-47
-99

query I rowsort
SELECT - col2 * + - col1 AS col2 FROM tab2
----
1173
3080
3886

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 96 NOT BETWEEN + ( + col0 ) * - - col1 * - 53 AND NULL
----

query I rowsort
SELECT ALL + col0 + - 78 * + 81 - + ( col0 ) FROM tab2
----
-6318
-6318
-6318

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT DISTINCT MIN( + 66 ) FROM tab0 cor0
----
66

skipif mysql # not compatible
query I rowsort label-4739
SELECT DISTINCT MIN ( + 66 ) FROM tab0 cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT + - SUM( col1 ) FROM tab2 AS cor0 WHERE - 2 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4740
SELECT + - SUM ( col1 ) FROM tab2 AS cor0 WHERE - 2 = NULL
----
NULL

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE 44 / col0 IS NULL
----

query I rowsort
SELECT - 79 AS col1 FROM tab0 WHERE - col2 >= + 75 * col2
----

query I rowsort
SELECT - 94 * 12 AS col1 FROM tab1
----
-1128
-1128
-1128

query I rowsort
SELECT - col1 + - 13 FROM tab0
----
-14
-34
-94

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4745
SELECT CAST( NULL AS DECIMAL ) * - 32 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4745
SELECT CAST ( NULL AS REAL ) * - 32 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + 33 AS col2 FROM tab2
----
100
110
84

query III rowsort
SELECT * FROM tab1 WHERE ( - col1 + 13 ) NOT IN ( - 37 + col2 * + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 25 FROM tab2 WHERE ( - 41 * 38 - col1 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 49 > ( col1 + col1 )
----
15
81
47

query I rowsort
SELECT DISTINCT col0 * 61 AS col1 FROM tab0
----
5307
5917
915

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 + - 33 IS NOT NULL
----

query I rowsort
SELECT + ( col0 ) - col0 * col1 AS col1 FROM tab1
----
-340
-4186
-663

query I rowsort
SELECT 11 + + col0 AS col0 FROM tab2
----
57
75
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT DISTINCT SUM( - ( - col0 ) ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-4754
SELECT DISTINCT SUM ( - ( - col0 ) ) FROM tab1
----
227

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 - - ( + col0 ) IS NOT NULL
----

query I rowsort
SELECT - col2 AS col1 FROM tab2 WHERE 79 * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4757
SELECT ALL - COUNT( * ) AS col0 FROM tab2 WHERE NOT ( col1 ) NOT IN ( + 33 * 39 )
----
0

skipif mysql # not compatible
query I rowsort label-4757
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( col1 ) NOT IN ( + 33 * 39 )
----
0

query III rowsort
SELECT * FROM tab1 WHERE + col0 * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4759
SELECT + 43 + MAX( col2 ) FROM tab0
----
142

skipif mysql # not compatible
query I rowsort label-4759
SELECT + 43 + MAX ( col2 ) FROM tab0
----
142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4760
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE + CAST( - col2 AS SIGNED ) + - col1 IS NOT NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4760
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE + CAST ( - col2 AS INTEGER ) + - col1 IS NOT NULL
----
51
85
91

query I rowsort
SELECT ALL ( - 4 ) * col1 FROM tab0
----
-324
-4
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT - MAX( col0 ) * + 18 AS col2 FROM tab1
----
-1638

skipif mysql # not compatible
query I rowsort label-4762
SELECT - MAX ( col0 ) * + 18 AS col2 FROM tab1
----
-1638

query I rowsort
SELECT - 67 * + 72 AS col1 FROM tab2
----
-4824
-4824
-4824

query I rowsort
SELECT + 57 * 92 FROM tab1
----
5244
5244
5244

query III rowsort
SELECT ALL * FROM tab2 WHERE 30 * + col2 IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT + COUNT( col0 ) FROM tab0 WHERE NOT ( - col1 + col0 ) <= ( col2 - + col2 )
----
2

skipif mysql # not compatible
query I rowsort label-4766
SELECT + COUNT ( col0 ) FROM tab0 WHERE NOT ( - col1 + col0 ) <= ( col2 - + col2 )
----
2

query I rowsort
SELECT 54 AS col1 FROM tab0 WHERE col1 >= - col0 * - col0
----

query I rowsort
SELECT ALL - col1 * ( + col1 ) AS col0 FROM tab1
----
-196
-2209
-25

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 ) <> 80
----

query I rowsort
SELECT + 96 * 15 FROM tab0 cor0
----
1440
1440
1440

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT DISTINCT + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-4771
SELECT DISTINCT + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT ALL + MIN( - col2 ) AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4772
SELECT ALL + MIN ( - col2 ) AS col0 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT ALL - col1 * 17 FROM tab0 AS cor0
----
-1377
-17
-357

onlyif mysql # DIV for integer division: 
query I rowsort label-4774
SELECT DISTINCT - + col1 DIV - 91 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4774
SELECT DISTINCT - + col1 / - 91 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * 67 + + col2 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4776
SELECT + MAX( ALL CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4776
SELECT + MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + 67 * col0 FROM tab0 AS cor0
----
1005
5829
6499

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL > 1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4779
SELECT DISTINCT - 55 DIV ( col1 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1
0

skipif mysql # not compatible
query I rowsort label-4779
SELECT DISTINCT - 55 / ( col1 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4780
SELECT 82 DIV COUNT( * ) FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-4780
SELECT 82 / COUNT ( * ) FROM tab2 AS cor0
----
27

query I rowsort
SELECT + col0 FROM tab0 cor0 WHERE NOT ( col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4782
SELECT DISTINCT 69 DIV col2 col2 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4782
SELECT DISTINCT 69 / col2 col2 FROM tab1 AS cor0
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4783
SELECT DISTINCT col0 DIV - 30 FROM tab2 cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-4783
SELECT DISTINCT col0 / - 30 FROM tab2 cor0
----
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4784
SELECT + MIN( + col1 ) AS col1 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-4784
SELECT + MIN ( + col1 ) AS col1 FROM tab0 cor0
----
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + col1 * - col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > col1 OR NOT col1 + - 20 > 20 * - 66
----

query I rowsort
SELECT col0 FROM tab2 WHERE NOT 14 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4788
SELECT DISTINCT col1 * + col2 + CAST( - ( 57 ) AS SIGNED ) AS col1 FROM tab2
----
1116
3023
3829

skipif mysql # not compatible
query I rowsort label-4788
SELECT DISTINCT col1 * + col2 + CAST ( - ( 57 ) AS INTEGER ) AS col1 FROM tab2
----
1116
3023
3829

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT NULL = ( - col0 / - ( col0 ) + col2 )
----

query I rowsort
SELECT + col2 + + + col1 FROM tab2
----
117
125
74

query I rowsort
SELECT DISTINCT + 76 + + - col0 FROM tab1
----
-15
-9
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT ALL MIN( + col1 ) * 77 FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-4792
SELECT ALL MIN ( + col1 ) * 77 FROM tab0
----
77

query I rowsort
SELECT - 6 AS col0 FROM tab2 WHERE NOT col2 <> - col0
----

query I rowsort
SELECT - col1 + - 56 FROM tab0
----
-137
-57
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT ALL SUM( - + col0 ) AS col2 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-4795
SELECT ALL SUM ( - + col0 ) AS col2 FROM tab0
----
-199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4796
SELECT ( + CAST( NULL AS SIGNED ) ) + col0 col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4796
SELECT ( + CAST ( NULL AS INTEGER ) ) + col0 col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT ALL - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4797
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 5 + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 55 AS col2 FROM tab1 WHERE ( + ( 56 ) ) IN ( col1 - - 16 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-4800
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

skipif mysql # not compatible
query IIIIII rowsort label-4800
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT DISTINCT + 28 AS col2 FROM tab0 WHERE NOT ( col1 ) <> col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4802
SELECT ALL + 39 + + COUNT( * ) FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-4802
SELECT ALL + 39 + + COUNT ( * ) FROM tab2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT COUNT( * ) + - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4803
SELECT COUNT ( * ) + - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4804
SELECT DISTINCT col0 + + 72 + + - col0 + + col0 DIV - 78 FROM tab1 AS cor0
----
71
72

skipif mysql # not compatible
query I rowsort label-4804
SELECT DISTINCT col0 + + 72 + + - col0 + + col0 / - 78 FROM tab1 AS cor0
----
71
72

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT - col2 IS NOT NULL ) OR NOT NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - col2 - - col0 AS col1 FROM tab2 AS cor0
----
17
23
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4807
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4807
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT + col1 AS col2 FROM tab2 AS cor0 WHERE + col1 * - col2 + col0 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query II rowsort label-4809
SELECT ALL + + COUNT( * ) AS col2, SUM( ALL - 32 ) * 10 FROM tab1 AS cor0
----
3
-960

skipif mysql # not compatible
query II rowsort label-4809
SELECT ALL + + COUNT ( * ) AS col2, SUM ( ALL - 32 ) * 10 FROM tab1 AS cor0
----
3
-960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4810
SELECT COUNT( * ) DIV COUNT( * ) FROM tab2 AS cor0 WHERE ( col1 ) NOT IN ( col2 )
----
1

skipif mysql # not compatible
query I rowsort label-4810
SELECT COUNT ( * ) / COUNT ( * ) FROM tab2 AS cor0 WHERE ( col1 ) NOT IN ( col2 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT + COUNT( * ) AS col0 FROM tab0 cor0 WHERE col1 * col2 / - 77 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4811
SELECT + COUNT ( * ) AS col0 FROM tab0 cor0 WHERE col1 * col2 / - 77 IS NOT NULL
----
3

query I rowsort
SELECT ALL 67 - col2 FROM tab1 cor0
----
-1
-29
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT ALL + COUNT( * ) * 85 AS col0 FROM tab0 AS cor0 WHERE NOT col1 * col0 NOT IN ( + col2 - - col1 * + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-4813
SELECT ALL + COUNT ( * ) * 85 AS col0 FROM tab0 AS cor0 WHERE NOT col1 * col0 NOT IN ( + col2 - - col1 * + col2 )
----
0

query I rowsort
SELECT DISTINCT + col1 + - 90 AS col2 FROM tab2 cor0
----
-13
-23
-39

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 + 6 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4816
SELECT - col0 DIV + + 86 + - col2 FROM tab1 AS cor0
----
-59
-69
-96

skipif mysql # not compatible
query I rowsort label-4816
SELECT - col0 / + + 86 + - col2 FROM tab1 AS cor0
----
-59
-69
-96

query I rowsort
SELECT - col1 * col0 * + col0 FROM tab1 WHERE NULL IS NULL
----
-36125
-36414
-389207

query I rowsort
SELECT - 45 * - col1 * + 11 * - col2 * 65 AS col0 FROM tab2
----
-125032050
-37741275
-99099000

query I rowsort
SELECT DISTINCT - 83 * + 92 + + col0 FROM tab0
----
-7539
-7549
-7621

onlyif mysql # DIV for integer division: 
query I rowsort label-4820
SELECT col2 DIV - + col0 * - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4820
SELECT col2 / - + col0 * - col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4821
SELECT ALL 73 + - - COUNT( * ) FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-4821
SELECT ALL 73 + - - COUNT ( * ) FROM tab0
----
76

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 91 = ( NULL )
----

query I rowsort
SELECT - col1 * + - 65 AS col2 FROM tab0
----
1365
5265
65

query I rowsort
SELECT ALL 27 * 15 FROM tab1
----
405
405
405

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE NOT - col2 * - - 86 IN ( 43 / - col0 )
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4826
SELECT * FROM tab0 AS cor0 WHERE NOT ( + CAST( - - col2 AS SIGNED ) + col0 / col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4826
SELECT * FROM tab0 AS cor0 WHERE NOT ( + CAST ( - - col2 AS INTEGER ) + col0 / col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4827
SELECT ALL - col2 DIV + col1 AS col1 FROM tab0 cor0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-4827
SELECT ALL - col2 / + col1 AS col1 FROM tab0 cor0
----
-99
0
0

query I rowsort
SELECT - 78 * - - 37 AS col0 FROM tab2
----
-2886
-2886
-2886

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 56 IN ( + - col2 - + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-4830
SELECT - 45 * col1 DIV col1 AS col1, + 53 col1 FROM tab2
----
-45
53
-45
53
-45
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4830
SELECT - 45 * col1 / col1 AS col1, + 53 col1 FROM tab2
----
-45
53
-45
53
-45
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4831
SELECT DISTINCT 33 * + + col1 * + CAST( + 68 AS SIGNED ) AS col0 FROM tab1
----
105468
11220
31416

skipif mysql # not compatible
query I rowsort label-4831
SELECT DISTINCT 33 * + + col1 * + CAST ( + 68 AS INTEGER ) AS col0 FROM tab1
----
105468
11220
31416

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 3 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4833
SELECT 6 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 * - 20 NOT IN ( CAST( - - col0 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4833
SELECT 6 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 * - 20 NOT IN ( CAST ( - - col0 AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + - col1 * + ( col1 ) AS col2 FROM tab2 AS cor0
----
-2601
-4489
-5929

query I rowsort
SELECT DISTINCT + col1 * - col2 - 3 + + 95 FROM tab2 cor0
----
-1081
-2988
-3794

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 10 / ( - col2 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN + ( - col1 ) + + 7 AND ( NULL )
----

query I rowsort
SELECT - - col0 AS col0 FROM tab1 AS cor0 WHERE NOT 8 + + + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4840
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 * CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4840
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 * CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT 51 - + + MAX( col0 ) FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-46

skipif mysql # not compatible
query I rowsort label-4841
SELECT 51 - + + MAX ( col0 ) FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-46

query II rowsort
SELECT DISTINCT - col0 AS col1, + col2 - - 21 FROM tab2 AS cor0
----
-46
44
-64
61
-75
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT DISTINCT SUM( - ( - + 6 ) ) AS col0 FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-4843
SELECT DISTINCT SUM ( - ( - + 6 ) ) AS col0 FROM tab2
----
18

query II rowsort
SELECT - 43 AS col1, 37 AS col0 FROM tab0
----
-43
37
-43
37
-43
37

query I rowsort
SELECT - 61 FROM tab0 WHERE NOT 49 + - - col2 - ( - + col0 ) + col0 <= ( + 78 )
----
-61
-61
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT + SUM( - + 32 ) AS col2 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-4846
SELECT + SUM ( - + 32 ) AS col2 FROM tab0
----
-96

query I rowsort
SELECT ALL - - col0 * + - col0 * + - 71 + col0 * col1 AS col1 FROM tab0 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT 64 + + col2 AS col2 FROM tab2
----
104
122
87

onlyif mysql # DIV for integer division: 
query I rowsort label-4849
SELECT ALL + col1 + - col0 DIV + 71 FROM tab0
----
0
20
81

skipif mysql # not compatible
query I rowsort label-4849
SELECT ALL + col1 + - col0 / + 71 FROM tab0
----
0
20
81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col0 * col0 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - 32 + - col2 AS col2 FROM tab2
----
-55
-72
-90

query I rowsort
SELECT DISTINCT 94 + + 20 FROM tab1 AS cor0
----
114

query II rowsort
SELECT ALL col0, + 46 + - 64 FROM tab1 AS cor0
----
51
-18
85
-18
91
-18

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col1 * + col2 AND NULL
----

query I rowsort
SELECT ALL col0 + - + col2 FROM tab0 AS cor0
----
-2
-32
77

query II rowsort
SELECT DISTINCT - col0 AS col2, col2 AS col0 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

query I rowsort
SELECT ALL col1 + + - col0 AS col1 FROM tab2
----
-8
13
5

query I rowsort
SELECT - 99 AS col1 FROM tab2 WHERE 15 * + col0 - + - col0 + - ( - col2 ) * - col1 <> ( col1 * + col0 + + 34 )
----
-99
-99
-99

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 BETWEEN NULL AND + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 22 FROM tab1 cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NULL
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # aggregate syntax: 
query I rowsort label-4861
SELECT DISTINCT + COUNT( DISTINCT - + col2 ) * + + COUNT( * ) + + COUNT( * ) - 88 FROM tab2
----
-76

skipif mysql # not compatible
query I rowsort label-4861
SELECT DISTINCT + COUNT ( DISTINCT - + col2 ) * + + COUNT ( * ) + + COUNT ( * ) - 88 FROM tab2
----
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab0 AS cor0 WHERE ( + 92 ) IS NOT NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4863
SELECT * FROM tab1 AS cor0 WHERE col0 * + col0 BETWEEN + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4863
SELECT * FROM tab1 AS cor0 WHERE col0 * + col0 BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT DISTINCT + 46 * + - col0 - + - ( - col1 ) AS col0 FROM tab0 cor0
----
-4023
-4463
-771

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT ALL - MAX( DISTINCT col1 ) - - COUNT( * ) FROM tab2 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-4865
SELECT ALL - MAX ( DISTINCT col1 ) - - COUNT ( * ) FROM tab2 AS cor0
----
-74

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN ( col2 + col1 * - col0 * - col2 ) AND NULL
----

query I rowsort
SELECT + ( col2 ) * - 65 FROM tab2 WHERE NULL IS NULL
----
-1495
-2600
-3770

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT 12 * SUM( - 29 ) - - - ( 24 ) FROM tab2
----
-1068

skipif mysql # not compatible
query I rowsort label-4868
SELECT 12 * SUM ( - 29 ) - - - ( 24 ) FROM tab2
----
-1068

query I rowsort
SELECT col2 - 86 FROM tab1
----
-18
-27
10

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 64 * - - col1 ) > NULL
----

query II rowsort
SELECT DISTINCT + 77, col1 FROM tab1
----
77
14
77
47
77
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT MIN( - 32 ) AS col2 FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-4872
SELECT MIN ( - 32 ) AS col2 FROM tab2
----
-32

onlyif mysql # DIV for integer division: 
query II rowsort label-4873
SELECT 24, col0 DIV - col2 AS col2 FROM tab2
----
24
-1
24
-1
24
-2

skipif mysql # not compatible
query II rowsort label-4873
SELECT 24, col0 / - col2 AS col2 FROM tab2
----
24
-1
24
-1
24
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT ALL - SUM( - - col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-4874
SELECT ALL - SUM ( - - col0 ) FROM tab1 AS cor0
----
-227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0, col1 col0 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

query I rowsort
SELECT ( + 27 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
27
27
27

query II rowsort
SELECT DISTINCT - 87, col0 FROM tab0 AS cor0
----
-87
15
-87
87
-87
97

query I rowsort
SELECT ALL - col0 * + + 25 FROM tab1
----
-1275
-2125
-2275

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT ALL 88 * + COUNT( * ) AS col0 FROM tab0
----
264

skipif mysql # not compatible
query I rowsort label-4879
SELECT ALL 88 * + COUNT ( * ) AS col0 FROM tab0
----
264

query II rowsort
SELECT DISTINCT - 6 / + col1 AS col1, col1 * col0 FROM tab1 AS cor0 WHERE + col0 / + - ( - 7 ) * 47 <= NULL
----

query II rowsort
SELECT + - ( + col0 ) AS col0, + 39 FROM tab2 AS cor0
----
-46
39
-64
39
-75
39

query I rowsort
SELECT + + ( + 50 ) FROM tab1 cor0
----
50
50
50

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 WHERE 44 IS NULL
----

query I rowsort
SELECT ALL col2 + + + 0 AS col0 FROM tab2
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4885
SELECT col0 + col0 - - + 3 + - 68 * - 36 + + 49 DIV - - col0 FROM tab2
----
2544
2579
2601

skipif mysql # not compatible
query I rowsort label-4885
SELECT col0 + col0 - - + 3 + - 68 * - 36 + + 49 / - - col0 FROM tab2
----
2544
2579
2601

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT DISTINCT + 99 + - 31 + + ( - COUNT( * ) ) AS col1 FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-4886
SELECT DISTINCT + 99 + - 31 + + ( - COUNT ( * ) ) AS col1 FROM tab1
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4887
SELECT CAST( 99 AS SIGNED ) + + CAST( - 39 AS SIGNED ) AS col0 FROM tab1
----
60
60
60

skipif mysql # not compatible
query I rowsort label-4887
SELECT CAST ( 99 AS INTEGER ) + + CAST ( - 39 AS INTEGER ) AS col0 FROM tab1
----
60
60
60

query III rowsort
SELECT ALL * FROM tab1 WHERE - 46 + + + 14 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 + + 93 AS col2 FROM tab1
----
144
178
184

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT ALL + COUNT( * ) + - COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4890
SELECT ALL + COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab0
----
0

query I rowsort
SELECT ALL + ( - col0 ) + + col0 + + - 27 FROM tab1 AS cor0
----
-27
-27
-27

query I rowsort
SELECT ALL 4 FROM tab1 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT DISTINCT + MIN( DISTINCT + 4 ) AS col1 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-4893
SELECT DISTINCT + MIN ( DISTINCT + 4 ) AS col1 FROM tab1
----
4

query III rowsort
SELECT * FROM tab1 WHERE + + col2 + + - col1 NOT BETWEEN NULL AND + 4
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 + - - col0 AS col1 FROM tab2
----
17
23
24

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 WHERE NOT - col2 IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT 18 + - MIN( DISTINCT + col2 ) FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-4897
SELECT 18 + - MIN ( DISTINCT + col2 ) FROM tab2
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col1 col0 FROM tab0
----
-11
-34
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4899
SELECT + MAX( ALL + - col1 ) * COUNT( ALL + 81 ) DIV 85 + - COUNT( ALL + col1 ) * - 40 + - ( + 1 ) + + - 86 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-4899
SELECT + MAX ( ALL + - col1 ) * COUNT ( ALL + 81 ) / 85 + - COUNT ( ALL + col1 ) * - 40 + - ( + 1 ) + + - 86 FROM tab0 AS cor0
----
33

query I rowsort
SELECT ALL col1 + - 26 + - col2 AS col2 FROM tab2 AS cor0
----
-17
11
2

query I rowsort
SELECT - + col1 * - + col0 + - - 92 FROM tab1 AS cor0
----
4369
517
806

query II rowsort
SELECT DISTINCT + + 17 AS col0, - col1 AS col2 FROM tab1 AS cor0
----
17
-14
17
-47
17
-5

query I rowsort
SELECT ALL + + col1 - - ( - + ( - col1 ) ) + col1 AS col0 FROM tab1 cor0
----
141
15
42

query I rowsort
SELECT col1 + - - 58 FROM tab2 AS cor0
----
109
125
135

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + 32 ) - col2 <= NULL
----

query I rowsort
SELECT col1 * - col2 * - + col0 * col1 FROM tab1
----
125375
13669292
959616

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 81 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT - MIN( + - 87 ) FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-4909
SELECT - MIN ( + - 87 ) FROM tab1
----
87

query I rowsort
SELECT ALL - + 27 + col1 AS col0 FROM tab1 WHERE NOT - 4 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4911
SELECT - col2 / CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4911
SELECT - col2 / CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT DISTINCT - MAX( col1 ) FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-4912
SELECT DISTINCT - MAX ( col1 ) FROM tab1 cor0
----
-47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 >= - ( - 87 ) * + + col2 + + - ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL AND NULL >= NULL
----

query II rowsort
SELECT DISTINCT col2 AS col2, + col1 AS col1 FROM tab1
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4916
SELECT + COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL NOT IN ( + 74 )
----
0

skipif mysql # not compatible
query I rowsort label-4916
SELECT + COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL NOT IN ( + 74 )
----
0

query I rowsort
SELECT ALL 57 AS col0 FROM tab1 cor0
----
57
57
57

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - 35 ) IN ( col2, col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT ALL + + COUNT( ALL - 72 ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4919
SELECT ALL + + COUNT ( ALL - 72 ) AS col1 FROM tab0 cor0
----
3

query I rowsort
SELECT ALL 98 FROM tab1 AS cor0 WHERE ( NOT col2 >= ( NULL ) )
----

query I rowsort
SELECT + col0 * + + 26 AS col0 FROM tab1
----
1326
2210
2366

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 83 * - col2 col0 FROM tab1 WHERE NOT col0 < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4923
SELECT * FROM tab1 WHERE - col1 + + + 55 + col1 + + col1 BETWEEN - 17 AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4923
SELECT * FROM tab1 WHERE - col1 + + + 55 + col1 + + col1 BETWEEN - 17 AND - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT ALL COUNT( * ) * - COUNT( * ) * 40 + + - 90 AS col1 FROM tab0
----
-450

skipif mysql # not compatible
query I rowsort label-4924
SELECT ALL COUNT ( * ) * - COUNT ( * ) * 40 + + - 90 AS col1 FROM tab0
----
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT ALL + COUNT( * ) - + AVG ( 74 ) FROM tab0 WHERE + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4925
SELECT ALL + COUNT ( * ) - + AVG ( 74 ) FROM tab0 WHERE + col2 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 + + col2 + 38 AS col0 FROM tab1
----
102
148
153

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> ( - 83 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT ALL COUNT( * ) - - 43 AS col0 FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-4928
SELECT ALL COUNT ( * ) - - 43 AS col0 FROM tab0
----
46

query I rowsort
SELECT DISTINCT + - 23 * col1 * + col0 + - + col1 FROM tab2 AS cor0
----
-113421
-115642
-54009

query I rowsort
SELECT + - 7 AS col2 FROM tab0 AS cor0
----
-7
-7
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-4931
SELECT DISTINCT + 9 DIV - 54 * - + col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4931
SELECT DISTINCT + 9 / - 54 * - + col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL col2 * - - 22 AS col0 FROM tab1 AS cor0
----
1298
1496
2112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4933
SELECT DISTINCT + 37 DIV MIN( col2 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4933
SELECT DISTINCT + 37 / MIN ( col2 ) AS col1 FROM tab1
----
0

query I rowsort
SELECT DISTINCT ( + + ( - col1 ) ) AS col0 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT + - 54 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4936
SELECT + ( - + CAST( NULL AS SIGNED ) ) AS col0, - col1 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
query II rowsort label-4936
SELECT + ( - + CAST ( NULL AS INTEGER ) ) AS col0, - col1 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 93 col0, col2 * + + col0 AS col1 FROM tab0 AS cor0
----
93
705
93
870
93
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT MAX( ALL + + col1 ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-4938
SELECT MAX ( ALL + + col1 ) AS col2 FROM tab0 AS cor0
----
81

query I rowsort
SELECT - ( - - 99 ) AS col1 FROM tab2 AS cor0
----
-99
-99
-99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + ( + col2 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col0 * + + 3 col0 FROM tab2
----
13050
3174
7680

query I rowsort
SELECT 60 AS col0 FROM tab1 WHERE col2 * - - col1 - + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 + col2 * + 61 FROM tab1 WHERE + - col0 <> + col2 / - col2
----
3604
4195
5870

query I rowsort
SELECT + 63 * + col0 + col2 AS col1 FROM tab2
----
2921
4072
4783

query I rowsort
SELECT ALL col0 * - col0 * + 8 + - col1 + - - 3 AS col1 FROM tab0
----
-1878
-60570
-75270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4946
SELECT - COUNT( * ) AS col0, CAST( + COUNT( * ) AS SIGNED ) col2 FROM tab2
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4946
SELECT - COUNT ( * ) AS col0, CAST ( + COUNT ( * ) AS INTEGER ) col2 FROM tab2
----
-3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4947
SELECT - 68 * + + CAST( NULL AS SIGNED ) * - col1 col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4947
SELECT - 68 * + + CAST ( NULL AS INTEGER ) * - col1 col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT - COUNT( * ) + + + 92 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 * - - col1 > + + 19 - - ( + - 34 )
----
92

skipif mysql # not compatible
query I rowsort label-4948
SELECT - COUNT ( * ) + + + 92 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 * - - col1 > + + 19 - - ( + - 34 )
----
92

query I rowsort
SELECT DISTINCT 49 * - col2 AS col0 FROM tab1 AS cor0
----
-2891
-3332
-4704

query I rowsort
SELECT - 68 FROM tab0 AS cor0 WHERE NOT NULL = col1
----

query I rowsort
SELECT ALL col2 * + + col2 AS col1 FROM tab0 AS cor0
----
100
2209
9801

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 AS cor0 WHERE NOT - col1 > ( - col0 + + + 73 )
----
51
67
77

query I rowsort
SELECT DISTINCT - col2 + + ( - - 1 ) * + - col0 AS col2 FROM tab2 AS cor0 WHERE ( NOT - + col0 IS NULL )
----
-104
-133
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT + 39 * COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0
----
-351

skipif mysql # not compatible
query I rowsort label-4954
SELECT + 39 * COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0
----
-351

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * + - col2 col1 FROM tab0 AS cor0
----
705
870
9603

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 41 > ( col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4957
SELECT DISTINCT - 5, COUNT( * ) + + 68 AS col1 FROM tab1
----
-5
71

skipif mysql # not compatible
query II rowsort label-4957
SELECT DISTINCT - 5, COUNT ( * ) + + 68 AS col1 FROM tab1
----
-5
71

query II rowsort
SELECT DISTINCT + 49, 27 * col1 AS col1 FROM tab0
----
49
2187
49
27
49
567

query II rowsort
SELECT DISTINCT col0 AS col2, 98 * - col0 FROM tab0
----
15
-1470
87
-8526
97
-9506

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT COUNT( * ) FROM tab0 WHERE NOT col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4960
SELECT COUNT ( * ) FROM tab0 WHERE NOT col0 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT DISTINCT - 88 * + - MIN( - - 62 ) FROM tab1
----
5456

skipif mysql # not compatible
query I rowsort label-4961
SELECT DISTINCT - 88 * + - MIN ( - - 62 ) FROM tab1
----
5456

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 93 ) * 68 col1 FROM tab0
----
6324

query I rowsort
SELECT DISTINCT 44 AS col2 FROM tab1 AS cor0 WHERE 19 IS NOT NULL
----
44

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 AND 43
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4965
SELECT ALL + 66 / + - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4965
SELECT ALL + 66 / + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 37 FROM tab1, tab0 cor0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT 89 + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
98

skipif mysql # not compatible
query I rowsort label-4967
SELECT 89 + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
98

query I rowsort
SELECT ALL + 44 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT - COUNT( ALL - col2 ) col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4969
SELECT - COUNT ( ALL - col2 ) col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + + 82 * + - 37 AS col1 FROM tab0 AS cor0
----
-3034
-3034
-3034

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4971
SELECT DISTINCT CAST( - 85 AS SIGNED ) FROM tab1 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-4971
SELECT DISTINCT CAST ( - 85 AS INTEGER ) FROM tab1 AS cor0
----
-85

query I rowsort
SELECT + ( + 13 ) FROM tab1 AS cor0
----
13
13
13

query I rowsort
SELECT - + ( - col1 ) AS col0 FROM tab0 cor0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( - col2 ) col2, - col1 FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4975
SELECT ALL + CAST( + col2 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT - col1 / - + col0 NOT IN ( + col0 * + 8 * - - col2, col2, 61 )
----

skipif mysql # not compatible
query I rowsort label-4975
SELECT ALL + CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT - col1 / - + col0 NOT IN ( + col0 * + 8 * - - col2, col2, 61 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4976
SELECT - 64 DIV 26 * - col1 FROM tab2
----
102
134
154

skipif mysql # not compatible
query I rowsort label-4976
SELECT - 64 / 26 * - col1 FROM tab2
----
102
134
154

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND 34 + - 26
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4978
SELECT DISTINCT - col2 * - - CAST( NULL AS SIGNED ) + - col0 + - 21 col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4978
SELECT DISTINCT - col2 * - - CAST ( NULL AS INTEGER ) + - col0 + - 21 col0 FROM tab2 cor0
----
NULL

query II rowsort
SELECT DISTINCT ( col2 ) AS col1, - 23 AS col1 FROM tab1 AS cor0
----
59
-23
68
-23
96
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT DISTINCT COUNT( * ) + - 37 AS col0 FROM tab1 AS cor0 WHERE NULL NOT IN ( col0, + 36 )
----
-37

skipif mysql # not compatible
query I rowsort label-4980
SELECT DISTINCT COUNT ( * ) + - 37 AS col0 FROM tab1 AS cor0 WHERE NULL NOT IN ( col0, + 36 )
----
-37

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col1 ) NOT IN ( col1, + 46, 6 * + col0, + 48, + 31 * col0, + 44 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4982
SELECT + 71 / + CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4982
SELECT + 71 / + CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT col0, - 46 FROM tab0 AS cor0
----
15
-46
87
-46
97
-46

query I rowsort
SELECT - - 63 * - 9 FROM tab1 AS cor0
----
-567
-567
-567

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 47 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4986
SELECT + COUNT( ALL col1 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4986
SELECT + COUNT ( ALL col1 ) FROM tab0 cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * col0 * - 83 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4988
SELECT ALL + - ( + + ( COUNT( * ) ) ) col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4988
SELECT ALL + - ( + + ( COUNT ( * ) ) ) col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT - COUNT( * ) * + - 23 col1 FROM tab0 AS cor0
----
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4990
SELECT - COUNT ( * ) * + - 23 col1 FROM tab0 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT DISTINCT MAX( + 82 ) FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-4991
SELECT DISTINCT MAX ( + 82 ) FROM tab1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT DISTINCT - + 30 * - MAX( + - col0 ) FROM tab0 AS cor0
----
-450

skipif mysql # not compatible
query I rowsort label-4992
SELECT DISTINCT - + 30 * - MAX ( + - col0 ) FROM tab0 AS cor0
----
-450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4993
SELECT ALL - col0 * - col0 + - CAST( - ( - 71 ) AS SIGNED ) col2 FROM tab2 AS cor0
----
2045
4025
5554

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4993
SELECT ALL - col0 * - col0 + - CAST ( - ( - 71 ) AS INTEGER ) col2 FROM tab2 AS cor0
----
2045
4025
5554

query I rowsort
SELECT + 76 * - 90 AS col2 FROM tab1
----
-6840
-6840
-6840

query II rowsort
SELECT col1 AS col0, - 43 FROM tab1
----
14
-43
47
-43
5
-43

query I rowsort
SELECT + col0 * col1 * + col1 + + 38 AS col0 FROM tab0 AS cor0
----
135
38405
98453

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4997
SELECT + CAST( NULL AS SIGNED ) * + 51 + - - col1 AS col1 FROM tab2 AS cor0 WHERE ( col0 < NULL )
----

skipif mysql # not compatible
query I rowsort label-4997
SELECT + CAST ( NULL AS INTEGER ) * + 51 + - - col1 AS col1 FROM tab2 AS cor0 WHERE ( col0 < NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL >= - col0 + - col2 + + col2
----

query I rowsort
SELECT col1 + + col1 FROM tab0 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT COUNT( * ) + 19 AS col0 FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-5000
SELECT COUNT ( * ) + 19 AS col0 FROM tab0
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5001
SELECT DISTINCT 18, + CAST( NULL AS SIGNED ) AS col2, col1 + + 13 AS col0 FROM tab1
----
9 values hashing to b58f532a0280b80f14f0f2f87a27bf96

skipif mysql # not compatible
query III rowsort label-5001
SELECT DISTINCT 18, + CAST ( NULL AS INTEGER ) AS col2, col1 + + 13 AS col0 FROM tab1
----
9 values hashing to b58f532a0280b80f14f0f2f87a27bf96

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT - COUNT( * ) + COUNT( * ) * + + 81 FROM tab0
----
240

skipif mysql # not compatible
query I rowsort label-5002
SELECT - COUNT ( * ) + COUNT ( * ) * + + 81 FROM tab0
----
240

query II rowsort
SELECT + col2, + 95 AS col0 FROM tab1
----
59
95
68
95
96
95

query II rowsort
SELECT - col1 AS col2, - 85 AS col0 FROM tab0
----
-1
-85
-21
-85
-81
-85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5005
SELECT * FROM tab2 WHERE NULL BETWEEN col1 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5005
SELECT * FROM tab2 WHERE NULL BETWEEN col1 AND CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL 27 + - col0 FROM tab2
----
-19
-37
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5007
SELECT AVG ( + + col0 ) / CAST( NULL AS SIGNED ) - - 42 + + - 1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5007
SELECT AVG ( + + col0 ) / CAST ( NULL AS INTEGER ) - - 42 + + - 1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT ALL - ( MIN( DISTINCT + col0 ) ) + MAX( DISTINCT col1 ) FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-5008
SELECT ALL - ( MIN ( DISTINCT + col0 ) ) + MAX ( DISTINCT col1 ) FROM tab2
----
31

query II rowsort
SELECT 43 AS col0, ( + 78 ) FROM tab0
----
43
78
43
78
43
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5010
SELECT COUNT( * ) DIV - 25 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5010
SELECT COUNT ( * ) / - 25 FROM tab1
----
0

query I rowsort
SELECT + + 95 - 47 * col1 AS col0 FROM tab1 AS cor0
----
-140
-2114
-563

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 * - 87 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 34 AS col0, col1 + - - col2 col2 FROM tab0 AS cor0
----
34
100
34
128
34
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5014
SELECT COUNT( * ) - - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-5014
SELECT COUNT ( * ) - - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5015
SELECT CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5015
SELECT CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( + ( ( - col0 ) ) ) * - - col1 + - col2 AS col0 FROM tab1 AS cor0
----
-4345
-484
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-5017
SELECT - COUNT( ALL col0 ) + COUNT( * ) col2 FROM tab2 cor0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5017
SELECT - COUNT ( ALL col0 ) + COUNT ( * ) col2 FROM tab2 cor0 WHERE NOT col2 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( col1 ) + - + 22 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5019
SELECT - col0 + + 11 DIV + - col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-15
-88
-97

skipif mysql # not compatible
query I rowsort label-5019
SELECT - col0 + + 11 / + - col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-15
-88
-97

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN ( - col0 ) AND ( NULL )
----

query II rowsort
SELECT + 69 * - col0 + + 57, - 67 * 21 + + col2 * - col1 + + 7 * - col0 AS col2 FROM tab2 WHERE NOT + col2 NOT BETWEEN NULL AND + + col1 * col2 + col1
----

query I rowsort
SELECT ALL - col2 + + col0 * col0 AS col1 FROM tab2
----
2093
4056
5567

query I rowsort
SELECT 46 * ( + ( + 48 ) ) AS col1 FROM tab2
----
2208
2208
2208

query II rowsort
SELECT DISTINCT + col1, - col2 FROM tab2
----
51
-23
67
-58
77
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT DISTINCT + MAX( + col1 ) FROM tab0 WHERE col0 * - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5025
SELECT DISTINCT + MAX ( + col1 ) FROM tab0 WHERE col0 * - col0 IS NULL
----
NULL

query I rowsort
SELECT - col0 + - - col2 FROM tab0 AS cor0 WHERE + 33 IS NULL
----

query I rowsort
SELECT - 53 + - col0 AS col2 FROM tab1 AS cor0
----
-104
-138
-144

query I rowsort
SELECT ALL + col0 * - - 60 FROM tab2 AS cor0
----
2760
3840
4500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5029
SELECT - 59 + + - 15 * + - CAST( + col1 AS SIGNED ) FROM tab1 cor0
----
151
16
646

skipif mysql # not compatible
query I rowsort label-5029
SELECT - 59 + + - 15 * + - CAST ( + col1 AS INTEGER ) FROM tab1 cor0
----
151
16
646

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT DISTINCT - + 49 + - + COUNT( * ) FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-5030
SELECT DISTINCT - + 49 + - + COUNT ( * ) FROM tab0 AS cor0
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5031
SELECT ALL + - 52 - + + col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5031
SELECT ALL + - 52 - + + col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT ( + col2 >= - ( + ( - - col1 ) ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col0 * + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5034
SELECT DISTINCT CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) * - - 32 * - + COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5034
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) * - - 32 * - + COUNT ( * ) AS col0 FROM tab1
----
NULL

query II rowsort
SELECT ALL + col1 AS col0, - 40 AS col2 FROM tab1
----
14
-40
47
-40
5
-40

query II rowsort
SELECT ALL 85 + - col0 + + col2, col2 AS col1 FROM tab0
----
117
47
8
10
87
99

query I rowsort
SELECT - + 1 AS col2 FROM tab0 cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5038
SELECT ALL SUM( DISTINCT - 75 ) FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5038
SELECT ALL SUM ( DISTINCT - 75 ) FROM tab1 AS cor0
----
-75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( col0, col1 * + col2 + - col0 - + 40 - + col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + 86 * - ( 6 ) + - col0 AND - col0
----

query I rowsort
SELECT 89 * - - col1 + col2 FROM tab0 AS cor0
----
1879
188
7256

query II rowsort
SELECT + col2 AS col1, 19 FROM tab1 AS cor0
----
59
19
68
19
96
19

query II rowsort
SELECT DISTINCT - - col0 AS col0, - 18 + + col1 FROM tab1 AS cor0
----
51
-4
85
-13
91
29

query I rowsort
SELECT ALL + ( + 10 ) FROM tab0 AS cor0
----
10
10
10

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 * col2 * - col0 > NULL
----

query I rowsort
SELECT col1 * + 60 * col1 AS col0 FROM tab1 AS cor0
----
11760
132540
1500

query II rowsort
SELECT 64 AS col1, - col2 FROM tab1 AS cor0
----
64
-59
64
-68
64
-96

query I rowsort
SELECT - col1 + col0 - + 17 * + + col0 AS col0 FROM tab1 WHERE NOT + 8 BETWEEN 85 AND - col0
----
-1365
-1503
-830

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5049
SELECT ALL - CAST( NULL AS SIGNED ) * + col1 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5049
SELECT ALL - CAST ( NULL AS INTEGER ) * + col1 col0 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT + 91 - + col0 AS col1, col2 AS col2 FROM tab2 WHERE - + col2 IS NULL
----

query II rowsort
SELECT DISTINCT + col1 + + col1 AS col0, col2 FROM tab1
----
10
59
28
96
94
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5052
SELECT DISTINCT COUNT( * ) + + - 71 AS col1 FROM tab1 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-5052
SELECT DISTINCT COUNT ( * ) + + - 71 AS col1 FROM tab1 AS cor0
----
-68

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NULL <> + 90 + 23
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 + - col1 + col1 * - - 84 < NULL
----

query I rowsort
SELECT ALL col0 + - 43 AS col1 FROM tab0
----
-28
44
54

query I rowsort
SELECT DISTINCT - col1 - - 4 * - - 64 FROM tab1 AS cor0
----
209
242
251

query I rowsort
SELECT col2 * - col1 + - col0 + - col1 * - + 14 AS col1 FROM tab1 AS cor0
----
-1199
-2629
-310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5058
SELECT ALL - col2 * + CAST( ( col0 ) AS SIGNED ) + - + col2 * - 80 + + col2 + col2 col1 FROM tab1 AS cor0
----
-177
-612
2976

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5058
SELECT ALL - col2 * + CAST ( ( col0 ) AS INTEGER ) + - + col2 * - 80 + + col2 + col2 col1 FROM tab1 AS cor0
----
-177
-612
2976

query I rowsort
SELECT col2 + - 75 FROM tab1 cor0
----
-16
-7
21

query I rowsort
SELECT ALL - + col1 - + + col0 AS col2 FROM tab0 AS cor0
----
-108
-96
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5061
SELECT - CAST( NULL AS SIGNED ) * col2 + + 46 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5061
SELECT - CAST ( NULL AS INTEGER ) * col2 + + 46 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 15 >= + 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT ALL + - COUNT( * ) * - COUNT( * ) col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5063
SELECT ALL + - COUNT ( * ) * - COUNT ( * ) col1 FROM tab1 AS cor0
----
9

query III rowsort
SELECT * FROM tab0 WHERE - 3 NOT BETWEEN + 4 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT + COUNT( * ) * SUM( ALL + col2 ) AS col1 FROM tab1
----
669

skipif mysql # not compatible
query I rowsort label-5065
SELECT + COUNT ( * ) * SUM ( ALL + col2 ) AS col1 FROM tab1
----
669

onlyif mysql # DIV for integer division: 
query I rowsort label-5066
SELECT DISTINCT - 40 DIV - 26 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5066
SELECT DISTINCT - 40 / - 26 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5067
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) FROM tab1 WHERE NOT 98 >= col1
----
0

skipif mysql # not compatible
query I rowsort label-5067
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) FROM tab1 WHERE NOT 98 >= col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT + SUM( + + col0 ) * 6 AS col0 FROM tab2
----
1110

skipif mysql # not compatible
query I rowsort label-5068
SELECT + SUM ( + + col0 ) * 6 AS col0 FROM tab2
----
1110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5069
SELECT DISTINCT + ( - COUNT( * ) ) DIV 48 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5069
SELECT DISTINCT + ( - COUNT ( * ) ) / 48 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5070
SELECT col2 DIV 27 AS col2, col0 * - col2 * - - 16 FROM tab1
----
2
-80240
2
-99008
3
-78336

skipif mysql # not compatible
query II rowsort label-5070
SELECT col2 / 27 AS col2, col0 * - col2 * - - 16 FROM tab1
----
2
-80240
2
-99008
3
-78336

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NOT ( NOT NULL IS NOT NULL ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = - ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT DISTINCT MAX( 85 ) FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-5073
SELECT DISTINCT MAX ( 85 ) FROM tab2 AS cor0
----
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col1 col1 FROM tab2 cor0
----
2601
4489
5929

query I rowsort
SELECT - col2 * - + col0 + - col0 FROM tab0 AS cor0
----
690
783
9506

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT - COUNT( * ) * - - COUNT( * ) AS col1 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-5076
SELECT - COUNT ( * ) * - - COUNT ( * ) AS col1 FROM tab1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-5077
SELECT + col2 DIV - col0 + - col2 col0 FROM tab0
----
-10
-100
-50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5077
SELECT + col2 / - col0 + - col2 col0 FROM tab0
----
-10
-100
-50

query I rowsort
SELECT DISTINCT ( + 79 ) AS col2 FROM tab1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT - COUNT( * ) * + 58 FROM tab2 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-5079
SELECT - COUNT ( * ) * + 58 FROM tab2 AS cor0
----
-174

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 <= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT + COUNT( - + col1 ) col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5082
SELECT + COUNT ( - + col1 ) col2 FROM tab0 cor0
----
3

query II rowsort
SELECT - 31 AS col1, col1 AS col0 FROM tab2
----
-31
51
-31
67
-31
77

query I rowsort
SELECT 3 FROM tab1 WHERE col2 IS NOT NULL
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT ALL 59 + MAX( DISTINCT 10 ) col1 FROM tab1
----
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5085
SELECT ALL 59 + MAX ( DISTINCT 10 ) col1 FROM tab1
----
69

query I rowsort
SELECT ALL - col0 + + 55 FROM tab2
----
-20
-9
9

onlyif mysql # DIV for integer division: 
query I rowsort label-5087
SELECT ALL col1 * col0 + ( - col0 ) DIV - 56 AS col1 FROM tab0 AS cor0
----
1215
1828
98

skipif mysql # not compatible
query I rowsort label-5087
SELECT ALL col1 * col0 + ( - col0 ) / - 56 AS col1 FROM tab0 AS cor0
----
1215
1828
98

onlyif mysql # DIV for integer division: 
query I rowsort label-5088
SELECT + + col2 DIV 92 + + ( - 73 ) AS col1 FROM tab0 cor0
----
-72
-73
-73

skipif mysql # not compatible
query I rowsort label-5088
SELECT + + col2 / 92 + + ( - 73 ) AS col1 FROM tab0 cor0
----
-72
-73
-73

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5089
SELECT MIN( ALL - col2 ) + + CAST( NULL AS DECIMAL ) / - - COUNT( * ) * - AVG ( DISTINCT + 81 ) + 11 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5089
SELECT MIN ( ALL - col2 ) + + CAST ( NULL AS REAL ) / - - COUNT ( * ) * - AVG ( DISTINCT + 81 ) + 11 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT + - ( + - 5 ) + - SUM( ALL - 47 ) AS col2 FROM tab0 AS cor0
----
146

skipif mysql # not compatible
query I rowsort label-5090
SELECT + - ( + - 5 ) + - SUM ( ALL - 47 ) AS col2 FROM tab0 AS cor0
----
146

onlyif mysql # DIV for integer division: 
query I rowsort label-5091
SELECT ALL col2 DIV + col2 + - 44 AS col1 FROM tab0 AS cor0
----
-43
-43
-43

skipif mysql # not compatible
query I rowsort label-5091
SELECT ALL col2 / + col2 + - 44 AS col1 FROM tab0 AS cor0
----
-43
-43
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5092
SELECT ALL - + ( - COUNT( DISTINCT + CAST( + - CAST( + 54 AS SIGNED ) AS SIGNED ) ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-5092
SELECT ALL - + ( - COUNT ( DISTINCT + CAST ( + - CAST ( + 54 AS INTEGER ) AS INTEGER ) ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT - + MAX( DISTINCT 36 ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-36

skipif mysql # not compatible
query I rowsort label-5093
SELECT - + MAX ( DISTINCT 36 ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-5094
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NULL = NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5095
SELECT ALL 84 - + COUNT( * ) AS col2, + COUNT( * ) FROM tab1 AS cor0
----
81
3

skipif mysql # not compatible
query II rowsort label-5095
SELECT ALL 84 - + COUNT ( * ) AS col2, + COUNT ( * ) FROM tab1 AS cor0
----
81
3

query I rowsort
SELECT col0 * + col2 + 32 AS col2 FROM tab2 AS cor0
----
1090
2592
4382

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5097
SELECT ALL ( MIN( + col0 ) ) * - COUNT( * ) * MAX( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5097
SELECT ALL ( MIN ( + col0 ) ) * - COUNT ( * ) * MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col1 + - col0 + + ( col0 ) * + 58 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
2673
3725
4342

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5099
SELECT COUNT( * ) * + 2 + - - MIN( + - 57 ), CAST( NULL AS DECIMAL ) AS col2 FROM tab1 WHERE NOT NULL = NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5099
SELECT COUNT ( * ) * + 2 + - - MIN ( + - 57 ), CAST ( NULL AS REAL ) AS col2 FROM tab1 WHERE NOT NULL = NULL
----
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 2, + 98 * col1 col2 FROM tab2
----
2
4998
2
6566
2
7546

query I rowsort
SELECT + col2 * - + 38 FROM tab2
----
-1520
-2204
-874

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5102
SELECT ALL SUM( DISTINCT CAST( NULL AS DECIMAL ) ) * - 7 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5102
SELECT ALL SUM ( DISTINCT CAST ( NULL AS REAL ) ) * - 7 AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT ALL 31 * + + MIN( - 13 ) FROM tab0
----
-403

skipif mysql # not compatible
query I rowsort label-5103
SELECT ALL 31 * + + MIN ( - 13 ) FROM tab0
----
-403

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col1, 83 FROM tab2 AS cor0
----
-51
83
-67
83
-77
83

query I rowsort
SELECT + col1 * 41 AS col1 FROM tab1 AS cor0
----
1927
205
574

query I rowsort
SELECT DISTINCT 9 * col0 AS col1 FROM tab2 AS cor0
----
414
576
675

query I rowsort
SELECT ALL col1 + - + col2 + + 80 AS col0 FROM tab1
----
-2
26
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5108
SELECT ALL - COUNT( * ) * CAST( + + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5108
SELECT ALL - COUNT ( * ) * CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-9

query I rowsort
SELECT - + col0 * + ( + col1 ) FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-5110
SELECT col1 DIV - 75 AS col0 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5110
SELECT col1 / - 75 AS col0 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5111
SELECT MIN( ALL + 89 ) AS col1, + COUNT( * ) FROM tab2 AS cor0
----
89
3

skipif mysql # not compatible
query II rowsort label-5111
SELECT MIN ( ALL + 89 ) AS col1, + COUNT ( * ) FROM tab2 AS cor0
----
89
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 42 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT - MIN( - - col1 ) AS col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5113
SELECT - MIN ( - - col1 ) AS col2 FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT - - 96 + - - SUM( + - 83 ) AS col1 FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-5114
SELECT - - 96 + - - SUM ( + - 83 ) AS col1 FROM tab1 AS cor0
----
-153

query I rowsort
SELECT - + col0 + - 44 + + 67 FROM tab2 AS cor0
----
-23
-41
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-5116
SELECT ALL + ( + col1 ) DIV - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5116
SELECT ALL + ( + col1 ) / - col2 FROM tab1
----
0
0
0

query I rowsort
SELECT + col2 + - ( 12 ) - col0 + - col1 * ( col0 ) * col1 FROM tab2
----
-119681
-336704
-379492

query I rowsort
SELECT ALL col1 + - col0 * + - col1 FROM tab2
----
2397
5005
5092

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( + col1 ) IN ( 93, + 2 + col0, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT DISTINCT MAX( + - col2 ) + + 59 * + COUNT( * ) AS col2 FROM tab1
----
118

skipif mysql # not compatible
query I rowsort label-5120
SELECT DISTINCT MAX ( + - col2 ) + + 59 * + COUNT ( * ) AS col2 FROM tab1
----
118

query II rowsort
SELECT + col1 * + + col0 + + - col0, + col0 + 63 * col1 + - col0 AS col1 FROM tab2
----
2300
3213
4864
4851
4950
4221

query I rowsort
SELECT ALL - col2 + - 48 FROM tab2
----
-106
-71
-88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5123
SELECT DISTINCT + ( - 80 ) AS col0, col1 FROM tab0 WHERE - CAST( NULL AS SIGNED ) * - ( col0 ) + + col1 IS NULL
----
-80
1
-80
21
-80
81

skipif mysql # not compatible
query II rowsort label-5123
SELECT DISTINCT + ( - 80 ) AS col0, col1 FROM tab0 WHERE - CAST ( NULL AS INTEGER ) * - ( col0 ) + + col1 IS NULL
----
-80
1
-80
21
-80
81

query III rowsort
SELECT * FROM tab1 WHERE - col1 + + - col2 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( - + col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT - ( + + col0 ) + + - col2 AS col1 FROM tab2
----
-104
-133
-69

query II rowsort
SELECT 68 AS col2, - 33 FROM tab0
----
68
-33
68
-33
68
-33

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 66 <= + ( + - 11 ) * + 62 + + col2 + - col1 * + 12
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT - ( - MAX( col1 ) ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5129
SELECT - ( - MAX ( col1 ) ) FROM tab1 AS cor0
----
47

query I rowsort
SELECT ALL + 48 AS col2 FROM tab1 cor0
----
48
48
48

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 51 - - - 72 * + 92 * col2 BETWEEN col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT 98 * - + COUNT( * ) col0 FROM tab2
----
-294

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5133
SELECT 98 * - + COUNT ( * ) col0 FROM tab2
----
-294

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5134
SELECT ALL - SUM( DISTINCT - - col1 ) DIV + 32 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-5134
SELECT ALL - SUM ( DISTINCT - - col1 ) / + 32 FROM tab2
----
-6

query I rowsort
SELECT - col1 * + - 33 + + - 75 AS col0 FROM tab1 AS cor0
----
1476
387
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5136
SELECT DISTINCT - COUNT( * ) * + + 15 + - 39 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----
-39

skipif mysql # not compatible
query I rowsort label-5136
SELECT DISTINCT - COUNT ( * ) * + + 15 + - 39 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + col1 ) col0 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT COUNT( * ) + 79 AS col1 FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-5138
SELECT COUNT ( * ) + 79 AS col1 FROM tab2
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-5139
SELECT DISTINCT col1 DIV - col0 + - col0 AS col1 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5139
SELECT DISTINCT col1 / - col0 + - col0 AS col1 FROM tab1
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5140
SELECT ALL - 91 * - 32 + + col0 + + col2 * - + CAST( NULL AS SIGNED ) * - - 59 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5140
SELECT ALL - 91 * - 32 + + col0 + + col2 * - + CAST ( NULL AS INTEGER ) * - - 59 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5141
SELECT DISTINCT + + col1 DIV + ( + 36 ) AS col2 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-5141
SELECT DISTINCT + + col1 / + ( + 36 ) AS col2 FROM tab2 AS cor0
----
1
2

query I rowsort
SELECT + 44 * - col2 AS col0 FROM tab0 AS cor0
----
-2068
-4356
-440

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col0 + + ( - col1 ) ) >= NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE 98 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5145
SELECT - + COUNT( * ) * + AVG ( DISTINCT + col2 ) - + - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5145
SELECT - + COUNT ( * ) * + AVG ( DISTINCT + col2 ) - + - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 0 * - col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT ALL + SUM( ALL - - col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-5147
SELECT ALL + SUM ( ALL - - col2 ) FROM tab2 AS cor0
----
121

query I rowsort
SELECT DISTINCT + col0 * 6 + - 26 FROM tab1
----
280
484
520

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5149
SELECT + 66 DIV - COUNT( * ), - 35 DIV + 91 col2 FROM tab1
----
-22
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5149
SELECT + 66 / - COUNT ( * ), - 35 / + 91 col2 FROM tab1
----
-22
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5150
SELECT - 80 * - 74 * - COUNT( * ) AS col0 FROM tab0
----
-17760

skipif mysql # not compatible
query I rowsort label-5150
SELECT - 80 * - 74 * - COUNT ( * ) AS col0 FROM tab0
----
-17760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 ) * col1 col0 FROM tab1
----
196
2209
25

query I rowsort
SELECT DISTINCT 32 + col0 - - + col0 FROM tab0
----
206
226
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 62 + 52 col1 FROM tab0
----
114
114
114

query I rowsort
SELECT - 39 * col2 - + col1 FROM tab0
----
-1914
-3862
-411

query I rowsort
SELECT + col0 - + - 83 FROM tab1
----
134
168
174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + + col0 col2 FROM tab2
----
-17
-23
-24

query III rowsort
SELECT * FROM tab0 WHERE col2 IN ( + + col2 + - col1, col0 + col1, + + col0, + col0, + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5158
SELECT ALL COUNT( * ) + 82 DIV + 49 AS col2 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-5158
SELECT ALL COUNT ( * ) + 82 / + 49 AS col2 FROM tab2
----
4

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 WHERE - 40 IN ( - + 94 * - + 16 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT COUNT( * ) * COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5160
SELECT COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5161
SELECT DISTINCT + 29 - + - CAST( NULL AS SIGNED ) + + ( - + COUNT( * ) ) / + 45 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5161
SELECT DISTINCT + 29 - + - CAST ( NULL AS INTEGER ) + + ( - + COUNT ( * ) ) / + 45 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5162
SELECT 80 DIV - COUNT( * ) FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-5162
SELECT 80 / - COUNT ( * ) FROM tab2 AS cor0
----
-26

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL <> col0
----

query I rowsort
SELECT ALL - 70 * + 48 - - col2 AS col0 FROM tab0
----
-3261
-3313
-3350

query I rowsort
SELECT col0 * + + col1 AS col0 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT DISTINCT - col1 * - + col2 * col0 FROM tab2
----
197120
291450
53958

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5167
SELECT - CAST( + COUNT( * ) AS SIGNED ) * 82 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-738

skipif mysql # not compatible
query I rowsort label-5167
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) * 82 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-738

query IIIIII rowsort
SELECT ALL * FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT NULL <= 53
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5169
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST( - 42 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5169
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST ( - 42 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 2 AS col2 FROM tab0 AS cor0 WHERE - col1 * + - 58 * - 93 - + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5171
SELECT DISTINCT - - 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-5171
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 + - 54 * + ( + col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + + col2 AS col1, + col1 * - 50 AS col2 FROM tab0 AS cor0
----
10
-1050
47
-4050
99
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5174
SELECT ALL + MAX( 7 ) FROM tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-5174
SELECT ALL + MAX ( 7 ) FROM tab1 AS cor0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5175
SELECT DISTINCT + + CAST( - col0 AS SIGNED ) FROM tab1 WHERE + - 99 > + - col0
----

skipif mysql # not compatible
query I rowsort label-5175
SELECT DISTINCT + + CAST ( - col0 AS INTEGER ) FROM tab1 WHERE + - 99 > + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col2, + col0 col2 FROM tab2
----
-46
46
-64
64
-75
75

query I rowsort
SELECT ALL 99 * - - col2 FROM tab2
----
2277
3960
5742

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT ALL COUNT( ALL + 67 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5178
SELECT ALL COUNT ( ALL + 67 ) FROM tab1
----
3

query II rowsort
SELECT col2 AS col0, col0 FROM tab1
----
59
85
68
91
96
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * - col2, col0 col0 FROM tab0
----
-100
87
-2209
15
-9801
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT DISTINCT - - 58 * - - MIN( DISTINCT - 35 ) FROM tab0 AS cor0
----
-2030

skipif mysql # not compatible
query I rowsort label-5181
SELECT DISTINCT - - 58 * - - MIN ( DISTINCT - 35 ) FROM tab0 AS cor0
----
-2030

query II rowsort
SELECT - 33, ( - col2 ) AS col0 FROM tab0 AS cor0
----
-33
-10
-33
-47
-33
-99

query II rowsort
SELECT + col1, ( - col0 ) FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

query I rowsort
SELECT ALL col1 * - - col0 + + col0 FROM tab0
----
1230
1914
194

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT - - COUNT( * ) * + 59 + - + 7 AS col1 FROM tab0 AS cor0
----
170

skipif mysql # not compatible
query I rowsort label-5185
SELECT - - COUNT ( * ) * + 59 + - + 7 AS col1 FROM tab0 AS cor0
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-5186
SELECT DISTINCT - 25 * + 15 * - COUNT( * ) FROM tab2 AS cor0
----
1125

skipif mysql # not compatible
query I rowsort label-5186
SELECT DISTINCT - 25 * + 15 * - COUNT ( * ) FROM tab2 AS cor0
----
1125

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT + COUNT( ALL col0 ) + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5187
SELECT + COUNT ( ALL col0 ) + COUNT ( * ) FROM tab1 AS cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5188
SELECT + 29 DIV - col1 + col1 FROM tab1 cor0
----
0
12
47

skipif mysql # not compatible
query I rowsort label-5188
SELECT + 29 / - col1 + col1 FROM tab1 cor0
----
0
12
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT ALL MIN( - - 43 ) AS col1 FROM tab1 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-5189
SELECT ALL MIN ( - - 43 ) AS col1 FROM tab1 AS cor0
----
43

query I rowsort
SELECT ALL + col2 + - 51 AS col2 FROM tab0 cor0
----
-4
-41
48

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - 41 NOT BETWEEN + + col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col2, col0 + + col1 + - - 27 AS col0 FROM tab2
----
23
124
40
168
58
169

query I rowsort
SELECT ALL col0 + 92 * - col1 + + + col1 AS col2 FROM tab0
----
-1824
-7356
6

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 / - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5195
SELECT - CAST( NULL AS SIGNED ) * - - col1 FROM tab1 AS cor0 WHERE col2 >= + col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5195
SELECT - CAST ( NULL AS INTEGER ) * - - col1 FROM tab1 AS cor0 WHERE col2 >= + col2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5196
SELECT ALL - CAST( + 87 AS SIGNED ) col1 FROM tab1 AS cor0
----
-87
-87
-87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5196
SELECT ALL - CAST ( + 87 AS INTEGER ) col1 FROM tab1 AS cor0
----
-87
-87
-87

query III rowsort
SELECT * FROM tab0 WHERE 45 + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT ALL + COUNT( * ) AS col1 FROM tab2 WHERE NOT 18 - ( - col0 ) NOT IN ( - 56 )
----
0

skipif mysql # not compatible
query I rowsort label-5198
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 WHERE NOT 18 - ( - col0 ) NOT IN ( - 56 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5199
SELECT - 62 * 5 + + COUNT( * ) AS col0 FROM tab1
----
-307

skipif mysql # not compatible
query I rowsort label-5199
SELECT - 62 * 5 + + COUNT ( * ) AS col0 FROM tab1
----
-307

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 60 FROM tab2 WHERE NOT ( + col1 * - 37 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 99 FROM tab1 WHERE NOT NULL BETWEEN NULL AND + 23 * col2 + + 14
----

query I rowsort
SELECT - col0 + 69 * 59 FROM tab1 WHERE NOT NULL = - col1
----

query I rowsort
SELECT ALL - 98 + col2 FROM tab1
----
-2
-30
-39

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT ( 69 ) < ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 / 13 <= - col2 * col0 + col1 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col0 + col0 * - col1 AS col2 FROM tab1
----
-340
-4186
-663

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 BETWEEN ( col0 ) AND ( - 54 - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5209
SELECT DISTINCT - MAX( DISTINCT + 16 ) FROM tab1 WHERE NULL IN ( 25 + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5209
SELECT DISTINCT - MAX ( DISTINCT + 16 ) FROM tab1 WHERE NULL IN ( 25 + col1 )
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 ) NOT IN ( + 21 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND - col2 * + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab0 WHERE NOT ( ( - col1 ) ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 + 64 AS col0 FROM tab0
----
-23
-33
49

query III rowsort
SELECT * FROM tab2 WHERE NOT - 75 NOT IN ( 84 * - col2 )
----

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT ( - col2 + col2 ) NOT IN ( + col2 )
----

query I rowsort
SELECT - ( 86 ) + 68 FROM tab2 AS cor0
----
-18
-18
-18

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE - 70 * 34 = ( NULL )
----

query I rowsort
SELECT ALL - 85 AS col0 FROM tab1 cor0
----
-85
-85
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT + ( + MIN( DISTINCT col0 ) ) + MIN( - 68 ) * 68 AS col1 FROM tab2 AS cor0
----
-4578

skipif mysql # not compatible
query I rowsort label-5219
SELECT + ( + MIN ( DISTINCT col0 ) ) + MIN ( - 68 ) * 68 AS col1 FROM tab2 AS cor0
----
-4578

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1
----
-9

skipif mysql # not compatible
query I rowsort label-5220
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1
----
-9

query I rowsort
SELECT ( + 6 ) + col0 AS col2 FROM tab0
----
103
21
93

query I rowsort
SELECT - ( col0 ) + + col0 FROM tab2
----
0
0
0

query I rowsort
SELECT 68 * col0 + 88 AS col2 FROM tab2
----
3216
4440
5188

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT DISTINCT - 71 * MAX( 35 ) + - 79 FROM tab0
----
-2564

skipif mysql # not compatible
query I rowsort label-5224
SELECT DISTINCT - 71 * MAX ( 35 ) + - 79 FROM tab0
----
-2564

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5225
SELECT ALL COUNT( * ) + 2 * + ( + COUNT( - col0 ) DIV + COUNT( * ) ) FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-5225
SELECT ALL COUNT ( * ) + 2 * + ( + COUNT ( - col0 ) / + COUNT ( * ) ) FROM tab2
----
5

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5227
SELECT DISTINCT + col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( CAST( NULL AS DECIMAL ) ) = ( col1 )
----

skipif mysql # not compatible
query I rowsort label-5227
SELECT DISTINCT + col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( CAST ( NULL AS REAL ) ) = ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT ALL - 47 * COUNT( * ) + + 56 FROM tab2 cor0
----
-85

skipif mysql # not compatible
query I rowsort label-5228
SELECT ALL - 47 * COUNT ( * ) + + 56 FROM tab2 cor0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT DISTINCT MAX( col2 ) - + COUNT( * ) FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-5229
SELECT DISTINCT MAX ( col2 ) - + COUNT ( * ) FROM tab1 AS cor0
----
93

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 * - 75 <> ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 39 * - 39 NOT BETWEEN ( col1 ) AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT DISTINCT + - COUNT( * ) * MIN( col2 ) FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-5232
SELECT DISTINCT + - COUNT ( * ) * MIN ( col2 ) FROM tab0 AS cor0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT DISTINCT 68 * + MIN( - ( + col2 ) ) FROM tab2 AS cor0
----
-3944

skipif mysql # not compatible
query I rowsort label-5233
SELECT DISTINCT 68 * + MIN ( - ( + col2 ) ) FROM tab2 AS cor0
----
-3944

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT 36 * COUNT( DISTINCT 78 ) col2 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5234
SELECT 36 * COUNT ( DISTINCT 78 ) col2 FROM tab2 AS cor0
----
36

query I rowsort
SELECT + + 80 - + 20 AS col0 FROM tab0 AS cor0
----
60
60
60

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col0 * col0 ) <> - col1 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT - COUNT( * ) - 58 AS col0 FROM tab1 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-5237
SELECT - COUNT ( * ) - 58 AS col0 FROM tab1 AS cor0
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5238
SELECT 20 - - + 75 + MAX( DISTINCT CAST( + col2 AS SIGNED ) ) FROM tab2
----
153

skipif mysql # not compatible
query I rowsort label-5238
SELECT 20 - - + 75 + MAX ( DISTINCT CAST ( + col2 AS INTEGER ) ) FROM tab2
----
153

query I rowsort
SELECT - 93 AS col0 FROM tab2 WHERE NULL NOT IN ( - 17 )
----

query I rowsort
SELECT ALL + 67 * + + col0 FROM tab0
----
1005
5829
6499

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 + col2 col0 FROM tab2
----
1640
3422
552

query III rowsort
SELECT ALL * FROM tab1 WHERE 86 BETWEEN + 37 * - col1 AND - col0 * + 1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT DISTINCT - 84 + COUNT( * ) AS col1 FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-5243
SELECT DISTINCT - 84 + COUNT ( * ) AS col1 FROM tab1
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5244
SELECT + col2 + CAST( NULL AS SIGNED ) * - 87 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5244
SELECT + col2 + CAST ( NULL AS INTEGER ) * - 87 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * + - col1 + 63 AS col0 FROM tab2 AS cor0
----
-2538
-4426
-5866

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT ALL - 74 * - - MIN( + 64 ) * + 91 AS col0 FROM tab1 AS cor0
----
-430976

skipif mysql # not compatible
query I rowsort label-5246
SELECT ALL - 74 * - - MIN ( + 64 ) * + 91 AS col0 FROM tab1 AS cor0
----
-430976

query I rowsort
SELECT ALL - 20 * - col0 FROM tab2 AS cor0
----
1280
1500
920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5248
SELECT + ( - + CAST( col0 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5248
SELECT + ( - + CAST ( col0 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 ) = - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT ALL - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE + ( - col0 ) NOT BETWEEN NULL AND 19
----
0

skipif mysql # not compatible
query I rowsort label-5250
SELECT ALL - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE + ( - col0 ) NOT BETWEEN NULL AND 19
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 64 col2 FROM tab2 AS cor0
----
-64
-64
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT - COUNT( * ) + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-5252
SELECT - COUNT ( * ) + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT DISTINCT MAX( DISTINCT col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-5253
SELECT DISTINCT MAX ( DISTINCT col2 ) FROM tab1
----
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= + 87
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5255
SELECT ALL - - MAX( + col2 ) * - 53 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5255
SELECT ALL - - MAX ( + col2 ) * - 53 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT + MAX( ALL + ( col0 ) ) AS col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-5256
SELECT + MAX ( ALL + ( col0 ) ) AS col1 FROM tab1 AS cor0
----
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 93 * - + ( - 77 ) <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5258
SELECT DISTINCT COUNT( * ) DIV - + COUNT( * ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5258
SELECT DISTINCT COUNT ( * ) / - + COUNT ( * ) FROM tab2 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5259
SELECT 80 DIV + + col1 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5259
SELECT 80 / + + col1 AS col1 FROM tab2 AS cor0
----
1
1
1

query II rowsort
SELECT DISTINCT col2, - ( + 28 ) * + col0 AS col1 FROM tab2 AS cor0
----
23
-1288
40
-1792
58
-2100

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col0 + + ( + 42 ) * - 45 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + 65 * col2 * - 8 + + ( 47 ) * - col2 < 62
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col0 NOT IN ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5264
SELECT ALL CAST( NULL AS SIGNED ) / - col2 * col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5264
SELECT ALL CAST ( NULL AS INTEGER ) / - col2 * col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 61 * - col2 AS col0 FROM tab1 WHERE NOT - + col2 * + col1 IS NULL
----
-3599
-4148
-5856

query I rowsort
SELECT DISTINCT 91 * - - 70 * col1 + 52 AS col0 FROM tab2
----
324922
426842
490542

query III rowsort
SELECT ALL * FROM tab1 WHERE 88 NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 + col0 <> + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT DISTINCT 58 + - COUNT( * ) AS col2 FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-5269
SELECT DISTINCT 58 + - COUNT ( * ) AS col2 FROM tab1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5270
SELECT ALL COUNT( DISTINCT + + col1 ) + COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-5270
SELECT ALL COUNT ( DISTINCT + + col1 ) + COUNT ( * ) FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT ALL COUNT( * ) AS col1 FROM tab2 WHERE - col0 * + col0 * 5 > col2
----
0

skipif mysql # not compatible
query I rowsort label-5271
SELECT ALL COUNT ( * ) AS col1 FROM tab2 WHERE - col0 * + col0 * 5 > col2
----
0

query I rowsort
SELECT + - col2 * + 90 + 97 FROM tab0 AS cor0
----
-4133
-803
-8813

query I rowsort
SELECT ALL - col2 * col0 AS col2 FROM tab1 cor0 WHERE NOT ( NULL IS NOT NULL )
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5274
SELECT + COUNT( * ) DIV - + CAST( 56 AS SIGNED ) AS col0 FROM tab2 WHERE col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5274
SELECT + COUNT ( * ) / - + CAST ( 56 AS INTEGER ) AS col0 FROM tab2 WHERE col2 IS NOT NULL
----
0

query I rowsort
SELECT ALL 3 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN NULL AND + 9 + + 11
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5277
SELECT ( 34 ) + - + 8 * - + COUNT( * ) AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-5277
SELECT ( 34 ) + - + 8 * - + COUNT ( * ) AS col0 FROM tab2
----
58

query I rowsort
SELECT DISTINCT - + col2 * + 9 - - + 82 FROM tab0 AS cor0
----
-341
-8
-809

onlyif mysql # aggregate syntax: 
query I rowsort label-5279
SELECT MIN( DISTINCT - + 75 ) + 12 FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-5279
SELECT MIN ( DISTINCT - + 75 ) + 12 FROM tab2 AS cor0
----
-63

query I rowsort
SELECT DISTINCT + - col1 + - col0 * + + 50 FROM tab0 AS cor0
----
-4371
-4851
-831

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT ALL + 37 - MIN( - - ( + col1 ) ) AS col0 FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL + 37 - MIN ( - - ( + col1 ) ) AS col0 FROM tab1 AS cor0
----
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - ( - col1 * + col1 + - 64 ) col1 FROM tab2 AS cor0 WHERE + 76 * - ( + - col2 ) IS NOT NULL
----
239720
264074
61295

query I rowsort
SELECT + col0 + - 71 AS col1 FROM tab2 AS cor0 WHERE 10 * + - col0 NOT IN ( - + 60 * + col2 + - 5 * + 99 )
----
-25
-7
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5284
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 82 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5284
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 82 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 + + ( - col0 ) AS col1 FROM tab1
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT + 3 * - - COUNT( DISTINCT + col2 ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-5286
SELECT + 3 * - - COUNT ( DISTINCT + col2 ) AS col2 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT - ( + ( + 25 ) ) * + - COUNT( * ) AS col0 FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-5287
SELECT - ( + ( + 25 ) ) * + - COUNT ( * ) AS col0 FROM tab1
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-5288
SELECT - 20, SUM( DISTINCT col2 ) AS col1 FROM tab0
----
-20
156

skipif mysql # not compatible
query II rowsort label-5288
SELECT - 20, SUM ( DISTINCT col2 ) AS col1 FROM tab0
----
-20
156

onlyif mysql # aggregate syntax: 
query I rowsort label-5289
SELECT SUM( - 7 ) * + ( + 31 ) FROM tab1
----
-651

skipif mysql # not compatible
query I rowsort label-5289
SELECT SUM ( - 7 ) * + ( + 31 ) FROM tab1
----
-651

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5290
SELECT DISTINCT + 85 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5290
SELECT DISTINCT + 85 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT DISTINCT - COUNT( * ) * + SUM( col0 ) FROM tab1
----
-681

skipif mysql # not compatible
query I rowsort label-5291
SELECT DISTINCT - COUNT ( * ) * + SUM ( col0 ) FROM tab1
----
-681

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT + COUNT( + col2 ) col0 FROM tab0 WHERE NOT ( NOT ( NOT NULL NOT IN ( + 25 * - 17 ) ) )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5292
SELECT + COUNT ( + col2 ) col0 FROM tab0 WHERE NOT ( NOT ( NOT NULL NOT IN ( + 25 * - 17 ) ) )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5293
SELECT 30 DIV - + col1 AS col2, + col1 FROM tab2
----
0
51
0
67
0
77

skipif mysql # not compatible
query II rowsort label-5293
SELECT 30 / - + col1 AS col2, + col1 FROM tab2
----
0
51
0
67
0
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT DISTINCT COUNT( 67 ) * - + MIN( - - 24 ) AS col0 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-5294
SELECT DISTINCT COUNT ( 67 ) * - + MIN ( - - 24 ) AS col0 FROM tab2 AS cor0
----
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * + 68 col0 FROM tab2 cor0
----
3128
4352
5100

query I rowsort
SELECT ALL - + 37 * + + ( - 75 ) FROM tab1 AS cor0
----
2775
2775
2775

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT - - COUNT( * ) FROM tab2 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5297
SELECT - - COUNT ( * ) FROM tab2 WHERE NOT NULL >= NULL
----
0

query II rowsort
SELECT DISTINCT 83 * - 98, + col0 FROM tab2
----
-8134
46
-8134
64
-8134
75

query I rowsort
SELECT DISTINCT col2 * - - 51 FROM tab2 AS cor0
----
1173
2040
2958

query I rowsort
SELECT ALL - - 68 FROM tab1 AS cor0 WHERE NOT NULL <= - col0
----

query I rowsort
SELECT - col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5302
SELECT DISTINCT 31 FROM tab0 AS cor0 WHERE NOT + col2 * CAST( NULL AS SIGNED ) IN ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-5302
SELECT DISTINCT 31 FROM tab0 AS cor0 WHERE NOT + col2 * CAST ( NULL AS INTEGER ) IN ( + col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 84 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-5304
SELECT + MAX( + - CAST( 62 AS SIGNED ) ), - COUNT( - CAST( NULL AS SIGNED ) ) AS col0, + COUNT( * ) col2 FROM tab0 AS cor0
----
-62
0
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-5304
SELECT + MAX ( + - CAST ( 62 AS INTEGER ) ), - COUNT ( - CAST ( NULL AS INTEGER ) ) AS col0, + COUNT ( * ) col2 FROM tab0 AS cor0
----
-62
0
3

query II rowsort
SELECT + 58 AS col0, 66 + 72 + - col2 AS col0 FROM tab2
----
58
115
58
80
58
98

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT - col1 - 93 IS NULL
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab2 WHERE NOT + - 30 * 60 + + ( - ( - + 90 ) ) <> col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT DISTINCT MAX( + 45 ) * COUNT( * ) + - COUNT( * ) * + - 59 FROM tab0
----
312

skipif mysql # not compatible
query I rowsort label-5308
SELECT DISTINCT MAX ( + 45 ) * COUNT ( * ) + - COUNT ( * ) * + - 59 FROM tab0
----
312

query I rowsort
SELECT ALL - col1 * 12 FROM tab0 WHERE + 29 * + ( col1 ) NOT IN ( - + col0 + - + col0 )
----
-12
-252
-972

query I rowsort
SELECT ALL + col2 / col0 FROM tab0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5311
SELECT DISTINCT - 85 DIV - ( + - SUM( ALL + + 32 ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5311
SELECT DISTINCT - 85 / - ( + - SUM ( ALL + + 32 ) ) FROM tab1
----
0

query I rowsort
SELECT - ( 94 ) FROM tab0
----
-94
-94
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5313
SELECT DISTINCT 87 AS col0 FROM tab1 WHERE NOT col2 IN ( + 12 * - CAST( col1 AS SIGNED ) + - - col2 * + col2 )
----
87

skipif mysql # not compatible
query I rowsort label-5313
SELECT DISTINCT 87 AS col0 FROM tab1 WHERE NOT col2 IN ( + 12 * - CAST ( col1 AS INTEGER ) + - - col2 * + col2 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT COUNT( ALL col0 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5314
SELECT COUNT ( ALL col0 ) AS col2 FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 WHERE + ( col1 ) NOT IN ( - col1 * - + ( - - 0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT DISTINCT ( + + MAX( DISTINCT col0 ) ) + COUNT( * ) FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-5316
SELECT DISTINCT ( + + MAX ( DISTINCT col0 ) ) + COUNT ( * ) FROM tab1
----
94

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5317
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL AND 74 + - CAST( - - col0 AS DECIMAL ) IN ( - ( - 39 ) )
----

skipif mysql # not compatible
query III rowsort label-5317
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL AND 74 + - CAST ( - - col0 AS REAL ) IN ( - ( - 39 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5318
SELECT ALL SUM( - col0 ) + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5318
SELECT ALL SUM ( - col0 ) + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - - col2 col1 FROM tab2
----
104
133
69

query I rowsort
SELECT + 30 - + col0 AS col2 FROM tab1 AS cor0
----
-21
-55
-61

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col2 + + + col1 + + col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5322
SELECT col0 DIV col2 - + - 67 AS col0 FROM tab2 AS cor0
----
68
68
69

skipif mysql # not compatible
query I rowsort label-5322
SELECT col0 / col2 - + - 67 AS col0 FROM tab2 AS cor0
----
68
68
69

query I rowsort
SELECT + col2 * - 62 * - col0 AS col1 FROM tab2
----
158720
269700
65596

query I rowsort
SELECT DISTINCT - ( - col0 ) FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

query II rowsort
SELECT + col1 AS col1, + col2 * - 92 - + col1 FROM tab1
----
14
-8846
47
-6303
5
-5433

query II rowsort
SELECT ALL col2, - 95 AS col0 FROM tab1
----
59
-95
68
-95
96
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5327
SELECT - - CAST( + 35 AS SIGNED ) FROM tab0 cor0
----
35
35
35

skipif mysql # not compatible
query I rowsort label-5327
SELECT - - CAST ( + 35 AS INTEGER ) FROM tab0 cor0
----
35
35
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5328
SELECT + - CAST( + + 50 AS SIGNED ) FROM tab2 AS cor0
----
-50
-50
-50

skipif mysql # not compatible
query I rowsort label-5328
SELECT + - CAST ( + + 50 AS INTEGER ) FROM tab2 AS cor0
----
-50
-50
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5329
SELECT DISTINCT + - CAST( + 37 AS SIGNED ) FROM tab0 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-5329
SELECT DISTINCT + - CAST ( + 37 AS INTEGER ) FROM tab0 AS cor0
----
-37

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 + + 23 IS NULL
----

query I rowsort
SELECT + ( - 93 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 + + 17 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5333
SELECT + MIN( ALL col2 ) DIV + 7 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5333
SELECT + MIN ( ALL col2 ) / + 7 FROM tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5334
SELECT DISTINCT - 75 DIV + col0 col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5334
SELECT DISTINCT - 75 / + col0 col0 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + - col0 AS col0 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + col2 * - 67 FROM tab0 AS cor0
----
-3149
-6633
-670

onlyif mysql # DIV for integer division: 
query I rowsort label-5337
SELECT col0 DIV col1 + - - col2 AS col2 FROM tab0 AS cor0
----
14
196
47

skipif mysql # not compatible
query I rowsort label-5337
SELECT col0 / col1 + - - col2 AS col2 FROM tab0 AS cor0
----
14
196
47

onlyif mysql # aggregate syntax: 
query II rowsort label-5338
SELECT + COUNT( * ) AS col1, 57 * - 79 FROM tab0 AS cor0
----
3
-4503

skipif mysql # not compatible
query II rowsort label-5338
SELECT + COUNT ( * ) AS col1, 57 * - 79 FROM tab0 AS cor0
----
3
-4503

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 col1 FROM tab1 AS cor0
----
54
54
54

query I rowsort
SELECT - ( col0 ) + - col2 + - col0 FROM tab2 AS cor0
----
-115
-168
-208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 * 29 / - col2 + - ( + - col0 ), - 83 col1 FROM tab2 AS cor0 WHERE col2 * 2 NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT - - 2 + - - col1 AS col2 FROM tab0 AS cor0
----
23
3
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5343
SELECT ALL - MIN( DISTINCT - ( + ( - + col0 ) ) ) + + MIN( - col1 ) FROM tab1
----
-98

skipif mysql # not compatible
query I rowsort label-5343
SELECT ALL - MIN ( DISTINCT - ( + ( - + col0 ) ) ) + + MIN ( - col1 ) FROM tab1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT COUNT( * ) + - 49 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-5344
SELECT COUNT ( * ) + - 49 FROM tab2
----
-46

query I rowsort
SELECT ALL - col1 + + - col1 * - - col2 + col0 AS col2 FROM tab2
----
-1178
-3093
-3878

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT COUNT( * ) * - MAX( - col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5346
SELECT COUNT ( * ) * - MAX ( - col1 ) FROM tab0
----
3

query I rowsort
SELECT ( col2 ) - + col2 + - + col1 AS col0 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT - 38 + - + col1 FROM tab0
----
-119
-39
-59

query I rowsort
SELECT + col2 * 9 * + col0 + + - 99 FROM tab2
----
22941
39051
9423

query I rowsort
SELECT ( - col1 ) + - 21 + + col1 FROM tab2
----
-21
-21
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5351
SELECT + ( - COUNT( * ) ) AS col2 FROM tab1 WHERE ( + col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5351
SELECT + ( - COUNT ( * ) ) AS col2 FROM tab1 WHERE ( + col2 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5352
SELECT DISTINCT + + MAX( DISTINCT - col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5352
SELECT DISTINCT + + MAX ( DISTINCT - col1 ) FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5353
SELECT + CAST( NULL AS SIGNED ) * - + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5353
SELECT + CAST ( NULL AS INTEGER ) * - + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 9 FROM tab1 WHERE NOT - - 50 NOT BETWEEN ( NULL ) AND - ( + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT - 42 * - COUNT( * ) * + + COUNT( * ) FROM tab0
----
378

skipif mysql # not compatible
query I rowsort label-5355
SELECT - 42 * - COUNT ( * ) * + + COUNT ( * ) FROM tab0
----
378

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE NOT col2 IN ( + ( + - col2 ) * - 63 )
----
23
40
58

query III rowsort
SELECT * FROM tab2 WHERE NOT - 94 <= + col2 - - 79
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5358
SELECT - col1 + - col2 + + CAST( NULL AS SIGNED ) + + - col2 / - col1 * col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5358
SELECT - col1 + - col2 + + CAST ( NULL AS INTEGER ) + + - col2 / - col1 * col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < - 45
----

query I rowsort
SELECT col1 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT 43 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT DISTINCT - MAX( ALL - col1 ) AS col1 FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-5362
SELECT DISTINCT - MAX ( ALL - col1 ) AS col1 FROM tab2 cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5363
SELECT DISTINCT - COUNT( + 40 ) AS col0 FROM tab1 AS cor0 WHERE NOT - 82 * + - 82 NOT IN ( - col0 + - col2 + + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5363
SELECT DISTINCT - COUNT ( + 40 ) AS col0 FROM tab1 AS cor0 WHERE NOT - 82 * + - 82 NOT IN ( - col0 + - col2 + + col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5364
SELECT MIN( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-5364
SELECT MIN ( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT 8 * + 19 FROM tab2 AS cor0
----
152
152
152

query I rowsort
SELECT DISTINCT - - ( - col0 ) * - + 41 + + col0 - - - col0 * - col0 * - 15 AS col2 FROM tab1 AS cor0
----
-104805
-120393
-36873

query I rowsort
SELECT ALL col2 + + - col1 * + - col1 AS col1 FROM tab2
----
2624
4547
5969

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5368
SELECT ALL CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5368
SELECT ALL CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT + col1, + col0 AS col2 FROM tab2
----
51
46
67
75
77
64

query III rowsort
SELECT * FROM tab2 WHERE - 21 + 42 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5371
SELECT col1 + - 84 - - 74 / + - col2 * - - col0 * - - col2 * - col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5371
SELECT col1 + - 84 - - 74 / + - col2 * - - col0 * - - col2 * - col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( + col0 ) + - ( + 41 ) + - 63 AS col2 FROM tab2 AS cor0
----
-29
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-5373
SELECT 70 DIV - + col1 + + col0 col2 FROM tab0 AS cor0
----
15
27
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5373
SELECT 70 / - + col1 + + col0 col2 FROM tab0 AS cor0
----
15
27
84

query I rowsort
SELECT DISTINCT + 20 * - col0 AS col1 FROM tab2 AS cor0
----
-1280
-1500
-920

onlyif mysql # aggregate syntax: 
query II rowsort label-5375
SELECT ALL - COUNT( DISTINCT + ( - + col0 ) ) - - 40, 84 col1 FROM tab0 AS cor0
----
37
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5375
SELECT ALL - COUNT ( DISTINCT + ( - + col0 ) ) - - 40, 84 col1 FROM tab0 AS cor0
----
37
84

query I rowsort
SELECT + - col1 FROM tab2 WHERE + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT - - col0 + + col0 AS col2 FROM tab2 WHERE NOT col2 BETWEEN - 49 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5378
SELECT ALL + col2 AS col2 FROM tab2 AS cor0 WHERE col0 < - CAST( + 51 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5378
SELECT ALL + col2 AS col2 FROM tab2 AS cor0 WHERE col0 < - CAST ( + 51 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT ALL + + SUM( ALL - - col1 ) * - + COUNT( * ) + - 38 FROM tab1 AS cor0
----
-236

skipif mysql # not compatible
query I rowsort label-5379
SELECT ALL + + SUM ( ALL - - col1 ) * - + COUNT ( * ) + - 38 FROM tab1 AS cor0
----
-236

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT - COUNT( * ) * + - 10 - + - 1 - - COUNT( * ) FROM tab0 cor0
----
34

skipif mysql # not compatible
query I rowsort label-5380
SELECT - COUNT ( * ) * + - 10 - + - 1 - - COUNT ( * ) FROM tab0 cor0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5381
SELECT ALL - MAX( ALL - ( col2 ) ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-5381
SELECT ALL - MAX ( ALL - ( col2 ) ) FROM tab1 AS cor0
----
59

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL = - 97
----

query I rowsort
SELECT ALL - ( + 97 ) AS col1 FROM tab0 AS cor0
----
-97
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT MIN( - 18 ) AS col2 FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-5384
SELECT MIN ( - 18 ) AS col2 FROM tab1 AS cor0
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5385
SELECT COUNT( * ), + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-5385
SELECT COUNT ( * ), + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
3
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL NOT BETWEEN NULL AND - col2 + + col2 )
----

query II rowsort
SELECT + 7, + 70 AS col1 FROM tab0
----
7
70
7
70
7
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5388
SELECT - CAST( + COUNT( - + col0 ) AS SIGNED ) FROM tab0 WHERE NOT + - 73 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5388
SELECT - CAST ( + COUNT ( - + col0 ) AS INTEGER ) FROM tab0 WHERE NOT + - 73 IS NULL
----
-3

query I rowsort
SELECT DISTINCT + ( ( col0 ) ) FROM tab0 WHERE NOT + col2 = - 61
----
15
87
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5390
SELECT COUNT( * ) DIV 54 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5390
SELECT COUNT ( * ) / 54 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT DISTINCT COUNT( * ) FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-5391
SELECT DISTINCT COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( + col0 IS NULL ) )
----

query II rowsort
SELECT ALL - - ( - col1 ) + + + 49 * col1 AS col1, + col0 FROM tab2 AS cor0
----
2448
46
3216
75
3696
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5394
SELECT + COUNT( * ) + + 32 AS col1 FROM tab0 cor0
----
35

skipif mysql # not compatible
query I rowsort label-5394
SELECT + COUNT ( * ) + + 32 AS col1 FROM tab0 cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5395
SELECT DISTINCT + ( + - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5395
SELECT DISTINCT + ( + - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5396
SELECT ALL COUNT( * ) * + - 21 * - - 9 FROM tab2 AS cor0
----
-567

skipif mysql # not compatible
query I rowsort label-5396
SELECT ALL COUNT ( * ) * + - 21 * - - 9 FROM tab2 AS cor0
----
-567

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT ( + col1 BETWEEN NULL AND col0 / - - col1 ) )
----
51
14
96
91
47
68

query I rowsort
SELECT ALL + col0 + - - col2 AS col2 FROM tab0
----
196
62
97

query III rowsort
SELECT * FROM tab0 WHERE + ( col0 ) * + col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - col1 * col0 * + col2 + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( - col0, - col0 + - 6, 12, col0 * + ( + + ( + col0 ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5402
SELECT ALL 40 * - CAST( + 17 AS SIGNED ) + + col1 AS col2 FROM tab2
----
-603
-613
-629

skipif mysql # not compatible
query I rowsort label-5402
SELECT ALL 40 * - CAST ( + 17 AS INTEGER ) + + col1 AS col2 FROM tab2
----
-603
-613
-629

onlyif mysql # DIV for integer division: 
query I rowsort label-5403
SELECT ALL - ( - + ( - 87 ) ) * col0 DIV - 17 AS col2 FROM tab0
----
445
496
76

skipif mysql # not compatible
query I rowsort label-5403
SELECT ALL - ( - + ( - 87 ) ) * col0 / - 17 AS col2 FROM tab0
----
445
496
76

query I rowsort
SELECT DISTINCT 72 + 71 + - 3 * - col0 FROM tab2
----
281
335
368

query I rowsort
SELECT ALL col1 - + col1 - + + col0 - - + col0 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5406
SELECT DISTINCT - col2 + - col2 DIV - col2, col0 DIV 51 AS col2 FROM tab1
----
-58
1
-67
1
-95
1

skipif mysql # not compatible
query II rowsort label-5406
SELECT DISTINCT - col2 + - col2 / - col2, col0 / 51 AS col2 FROM tab1
----
-58
1
-67
1
-95
1

query I rowsort
SELECT ALL 32 * + - col1 FROM tab2 AS cor0
----
-1632
-2144
-2464

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 30 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * 43 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - + 11 col2 FROM tab0 AS cor0
----
4
76
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5411
SELECT DISTINCT + col0 AS col1 FROM tab0 WHERE NOT - col1 - + CAST( NULL AS SIGNED ) IS NOT NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5411
SELECT DISTINCT + col0 AS col1 FROM tab0 WHERE NOT - col1 - + CAST ( NULL AS INTEGER ) IS NOT NULL
----
15
87
97

query I rowsort
SELECT DISTINCT - col2 * col2 + - 84 AS col1 FROM tab1 AS cor0
----
-3565
-4708
-9300

query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE NOT col1 < ( + + 40 + col0 )
----

query I rowsort
SELECT DISTINCT + + 92 + - - col1 AS col1 FROM tab0 AS cor0 WHERE - col2 * + col1 + - col1 NOT BETWEEN + col2 AND col2
----
113
173
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT ALL - - COUNT( * ) * 31 AS col2 FROM tab0 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-5415
SELECT ALL - - COUNT ( * ) * 31 AS col2 FROM tab0 AS cor0
----
93

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < ( + + ( - 95 ) )
----

query II rowsort
SELECT ALL + 7 AS col1, - 92 + - 43 AS col0 FROM tab1 cor0
----
7
-135
7
-135
7
-135

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - + 44 col0 FROM tab1 AS cor0
----
2596
2992
4224

onlyif mysql # DIV for integer division: 
query II rowsort label-5419
SELECT DISTINCT col1 DIV - + col0, 39 AS col2 FROM tab0
----
-5
39
0
39

skipif mysql # not compatible
query II rowsort label-5419
SELECT DISTINCT col1 / - + col0, 39 AS col2 FROM tab0
----
-5
39
0
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5420
SELECT 22 * - CAST( + - col0 AS SIGNED ) AS col2 FROM tab0
----
1914
2134
330

skipif mysql # not compatible
query I rowsort label-5420
SELECT 22 * - CAST ( + - col0 AS INTEGER ) AS col2 FROM tab0
----
1914
2134
330

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT - SUM( - ( - ( + col0 ) ) ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-5421
SELECT - SUM ( - ( - ( + col0 ) ) ) FROM tab1
----
-227

query I rowsort
SELECT ALL - + col2 AS col0 FROM tab2 WHERE - - col1 * - 70 + col0 + - 29 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT + + 29 - ( MAX( + col2 ) ) AS col1 FROM tab1 WHERE NOT - col1 IS NULL
----
-67

skipif mysql # not compatible
query I rowsort label-5423
SELECT + + 29 - ( MAX ( + col2 ) ) AS col1 FROM tab1 WHERE NOT - col1 IS NULL
----
-67

query I rowsort
SELECT ALL - 98 * - col2 + - col0 * - 79 FROM tab2 AS cor0
----
11609
5888
8976

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5425
SELECT - + 81 + + 82 AS col0 FROM tab1 AS cor0 WHERE NOT - col1 * - + CAST( - 4 AS SIGNED ) + + + CAST( col0 AS SIGNED ) IS NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5425
SELECT - + 81 + + 82 AS col0 FROM tab1 AS cor0 WHERE NOT - col1 * - + CAST ( - 4 AS INTEGER ) + + + CAST ( col0 AS INTEGER ) IS NULL
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT DISTINCT 79 * 73 + COUNT( * ) FROM tab1 AS cor0
----
5770

skipif mysql # not compatible
query I rowsort label-5426
SELECT DISTINCT 79 * 73 + COUNT ( * ) FROM tab1 AS cor0
----
5770

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5427
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5427
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
15
87
97

query I rowsort
SELECT - 37 + - - col0 FROM tab1
----
14
48
54

query I rowsort
SELECT - col1 + - 16 FROM tab0
----
-17
-37
-97

query I rowsort
SELECT - + col0 AS col2 FROM tab2 AS cor0 WHERE col0 * col2 >= ( - - 53 ) / + - col2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5431
SELECT - COUNT( ALL - - 86 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5431
SELECT - COUNT ( ALL - - 86 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-5432
SELECT DISTINCT + 32 col2, COUNT( * ) FROM tab2 cor0
----
32
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5432
SELECT DISTINCT + 32 col2, COUNT ( * ) FROM tab2 cor0
----
32
3

query I rowsort
SELECT - col2 * - 92 - ( - col0 ) AS col0 FROM tab1 AS cor0
----
5513
6347
8883

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5434
SELECT - CAST( + - col0 AS SIGNED ) FROM tab1 cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5434
SELECT - CAST ( + - col0 AS INTEGER ) FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + + ( + ( - 4 ) ) AS col2, 98 FROM tab0 AS cor0
----
-4
98
-4
98
-4
98

query I rowsort
SELECT + col1 * + col1 - - 37 + - col1 AS col1 FROM tab2
----
2587
4459
5889

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( - 54 ), col0 col2 FROM tab0
----
-54
15
-54
87
-54
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5438
SELECT + 35 - + SUM( - 67 ) AS col0 FROM tab2
----
236

skipif mysql # not compatible
query I rowsort label-5438
SELECT + 35 - + SUM ( - 67 ) AS col0 FROM tab2
----
236

query I rowsort
SELECT col0 - + + col2 * + - col2 AS col2 FROM tab1
----
3566
4715
9267

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT DISTINCT + COUNT( * ) + - + 76 FROM tab1
----
-73

skipif mysql # not compatible
query I rowsort label-5440
SELECT DISTINCT + COUNT ( * ) + - + 76 FROM tab1
----
-73

query I rowsort
SELECT 69 + + + ( col2 ) FROM tab2
----
109
127
92

onlyif mysql # aggregate syntax: 
query II rowsort label-5442
SELECT ALL + ( + - 56 ) + + 8 + - + 28 AS col2, - MAX( - 12 ) AS col0 FROM tab2
----
-76
12

skipif mysql # not compatible
query II rowsort label-5442
SELECT ALL + ( + - 56 ) + + 8 + - + 28 AS col2, - MAX ( - 12 ) AS col0 FROM tab2
----
-76
12

query I rowsort
SELECT col2 FROM tab2 WHERE + col0 + 20 * + 34 < + 62
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col1, - col1 - 92, + + col0, - ( - 83 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT DISTINCT - COUNT( ALL - col1 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5446
SELECT DISTINCT - COUNT ( ALL - col1 ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT 81 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5448
SELECT + - 32 DIV - 18 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-5448
SELECT + - 32 / - 18 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT - AVG ( - - col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL + 25 * 11 AS col1 FROM tab2 AS cor0
----
275
275
275

onlyif mysql # aggregate syntax: 
query II rowsort label-5451
SELECT - COUNT( * ), 81 AS col0 FROM tab2 AS cor0
----
-3
81

skipif mysql # not compatible
query II rowsort label-5451
SELECT - COUNT ( * ), 81 AS col0 FROM tab2 AS cor0
----
-3
81

query I rowsort
SELECT + ( + 69 ) FROM tab2 AS cor0
----
69
69
69

query I rowsort
SELECT + col2 * + 85 FROM tab1 AS cor0
----
5015
5780
8160

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * ( - - col1 ) * + 16 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + - col2 col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
0

query II rowsort
SELECT DISTINCT col1 AS col2, - 51 FROM tab2
----
51
-51
67
-51
77
-51

query II rowsort
SELECT DISTINCT - col0 AS col2, - col1 * - 94 FROM tab1
----
-51
1316
-85
470
-91
4418

query I rowsort
SELECT DISTINCT col0 + + col1 * + 41 AS col2 FROM tab0
----
138
3336
948

onlyif mysql # aggregate syntax: 
query I rowsort label-5459
SELECT ALL COUNT( * ) * - + COUNT( - 85 ) * + + COUNT( ALL col2 ) FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-5459
SELECT ALL COUNT ( * ) * - + COUNT ( - 85 ) * + + COUNT ( ALL col2 ) FROM tab0
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5460
SELECT ALL + col2 + - - CAST( + - 88 AS SIGNED ) FROM tab2
----
-30
-48
-65

skipif mysql # not compatible
query I rowsort label-5460
SELECT ALL + col2 + - - CAST ( + - 88 AS INTEGER ) FROM tab2
----
-30
-48
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT DISTINCT COUNT( * ) * + - SUM( - + 9 ) FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-5461
SELECT DISTINCT COUNT ( * ) * + - SUM ( - + 9 ) FROM tab1
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - - col1 col2 FROM tab1
----
196
2209
25

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + col1 BETWEEN + col1 + - + 99 AND + - col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 12 - - 83 + + - col2 * + col0 / + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 95 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5466
SELECT - + CAST( NULL AS SIGNED ) / 23 - - + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5466
SELECT - + CAST ( NULL AS INTEGER ) / 23 - - + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5467
SELECT DISTINCT COUNT( * ) + + - 78 * MAX( DISTINCT CAST( - col0 AS SIGNED ) ) AS col2 FROM tab2
----
3591

skipif mysql # not compatible
query I rowsort label-5467
SELECT DISTINCT COUNT ( * ) + + - 78 * MAX ( DISTINCT CAST ( - col0 AS INTEGER ) ) AS col2 FROM tab2
----
3591

onlyif mysql # DIV for integer division: 
query I rowsort label-5468
SELECT ALL + col0 DIV 81 FROM tab1 WHERE - - 30 <= + + 36 * 88
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5468
SELECT ALL + col0 / 81 FROM tab1 WHERE - - 30 <= + + 36 * 88
----
0
1
1

query I rowsort
SELECT ( - col2 ) + + col1 + + col0 FROM tab1
----
-31
31
70

query I rowsort
SELECT + - col0 * + + col1 + + - col2 - + ( + + 70 ) + + + col2 AS col1 FROM tab1 WHERE + + col2 IS NOT NULL
----
-4347
-495
-784

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT ALL - + MIN( ( - col1 ) ) + 35 FROM tab2 AS cor0
----
112

skipif mysql # not compatible
query I rowsort label-5471
SELECT ALL - + MIN ( ( - col1 ) ) + 35 FROM tab2 AS cor0
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5472
SELECT - - col0 + + + 10 * - + 82 * + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5472
SELECT - - col0 + + + 10 * - + 82 * + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 88 AS col2 FROM tab0 AS cor0
----
-88
-88
-88

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 42 + - col1 + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5475
SELECT ALL MIN( + + 4 ) AS col1 FROM tab0 WHERE NOT - - 89 * col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5475
SELECT ALL MIN ( + + 4 ) AS col1 FROM tab0 WHERE NOT - - 89 * col0 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5476
SELECT + col0 DIV + CAST( col2 AS SIGNED ), col0 FROM tab2
----
1
64
1
75
2
46

skipif mysql # not compatible
query II rowsort label-5476
SELECT + col0 / + CAST ( col2 AS INTEGER ), col0 FROM tab2
----
1
64
1
75
2
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT COUNT( + 35 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5477
SELECT COUNT ( + 35 ) FROM tab0
----
3

query I rowsort
SELECT col0 - 54 FROM tab2
----
-8
10
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT DISTINCT MIN( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5479
SELECT DISTINCT MIN ( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
-81

query II rowsort
SELECT DISTINCT - col0 * + col1 * col1 AS col2, 26 AS col2 FROM tab1 AS cor0
----
-201019
26
-2125
26
-9996
26

query I rowsort
SELECT DISTINCT col2 + col1 FROM tab0 AS cor0 WHERE NOT ( - col0 / - + col1 ) IS NULL
----
100
128
31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5482
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( - - 44 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5482
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( - - 44 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT 11 * - - 83 FROM tab2 AS cor0
----
913
913
913

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= + col1
----

query I rowsort
SELECT ALL - col2 * + col0 * 61 AS col1 FROM tab2
----
-156160
-265350
-64538

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5486
SELECT - 12 * - 82 * CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5486
SELECT - 12 * - 82 * CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 28 * + + 25 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5488
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 39 / - 29 + + + COUNT( * ) AS col1 FROM tab0, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5488
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 39 / - 29 + + + COUNT ( * ) AS col1 FROM tab0, tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL 10 + + col1 FROM tab2
----
61
77
87

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= + - 67
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT DISTINCT 58 * - MIN( ALL - + col1 ) AS col0 FROM tab2
----
4466

skipif mysql # not compatible
query I rowsort label-5491
SELECT DISTINCT 58 * - MIN ( ALL - + col1 ) AS col0 FROM tab2
----
4466

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5492
SELECT + ( + col1 ) * + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5492
SELECT + ( + col1 ) * + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 25 * - col1 AS col0 FROM tab2
----
1275
1675
1925

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL IN ( 49 / - - col2, col2 * col1, + 45, col2 * 83 ) )
----

query I rowsort
SELECT ( - col0 ) FROM tab2 WHERE NOT NULL <> + 59
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5496
SELECT CAST( + 97 AS SIGNED ) FROM tab1
----
97
97
97

skipif mysql # not compatible
query I rowsort label-5496
SELECT CAST ( + 97 AS INTEGER ) FROM tab1
----
97
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT DISTINCT COUNT( DISTINCT + 64 ) + - COUNT( * ) - - + 89 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-5497
SELECT DISTINCT COUNT ( DISTINCT + 64 ) + - COUNT ( * ) - - + 89 FROM tab0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT ALL - MIN( ALL + ( - + col1 ) ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-5498
SELECT ALL - MIN ( ALL + ( - + col1 ) ) FROM tab2
----
77

query III rowsort
SELECT * FROM tab1 WHERE + col0 BETWEEN - col1 AND + ( - col0 ) * 58 + col1 + - col0 + + 77
----

query II rowsort
SELECT col0 AS col1, ( - 66 ) FROM tab2
----
46
-66
64
-66
75
-66

query I rowsort
SELECT 37 + - - 61 - + 49 AS col2 FROM tab2 AS cor0
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5502
SELECT ALL - MIN( DISTINCT + col1 ) FROM tab0 WHERE NOT 5 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5502
SELECT ALL - MIN ( DISTINCT + col1 ) FROM tab0 WHERE NOT 5 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 56 + + 96 FROM tab0
----
152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - + col1 ) + + 98 col0 FROM tab1
----
51
84
93

query II rowsort
SELECT + col2, - col0 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT ALL + 90 * + + 11 * + COUNT( * ) col2 FROM tab1 AS cor0
----
2970

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5506
SELECT ALL + 90 * + + 11 * + COUNT ( * ) col2 FROM tab1 AS cor0
----
2970

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT ALL + SUM( + 72 ) FROM tab0 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-5507
SELECT ALL + SUM ( + 72 ) FROM tab0 AS cor0
----
216

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL NOT BETWEEN col1 AND NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - - + col0 + 32 col2 FROM tab0 AS cor0
----
-34
128
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT - - COUNT( * ) - + 9 * - 25 AS col1 FROM tab1 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-5510
SELECT - - COUNT ( * ) - + 9 * - 25 AS col1 FROM tab1 AS cor0
----
228

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - col1 * - 89 + 82 col1 FROM tab1 AS cor0
----
1314
4218
522

query I rowsort
SELECT ALL 79 + col1 * + + col0 AS col1 FROM tab1 AS cor0
----
4356
504
793

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5513
SELECT - COUNT( * ) - ( COUNT( * ) ) DIV - SUM( ALL - - col0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5513
SELECT - COUNT ( * ) - ( COUNT ( * ) ) / - SUM ( ALL - - col0 ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5514
SELECT + CAST( + 67 AS SIGNED ) * + 99 + col1 AS col1 FROM tab1
----
6638
6647
6680

skipif mysql # not compatible
query I rowsort label-5514
SELECT + CAST ( + 67 AS INTEGER ) * + 99 + col1 AS col1 FROM tab1
----
6638
6647
6680

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5515
SELECT * FROM tab0 WHERE NULL BETWEEN + col2 - - col0 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5515
SELECT * FROM tab0 WHERE NULL BETWEEN + col2 - - col0 AND CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5516
SELECT DISTINCT - col1 / - ( CAST( + col0 AS DECIMAL ) ) * + col2 + - 0 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-5516
SELECT DISTINCT - col1 / - ( CAST ( + col0 AS REAL ) ) * + col2 + - 0 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col0 * + 85 * + + ( + - col2 ) / + - col1 + col0 * - + col2 * + - 47 + + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 3 * + col1 IN ( col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + 64 * + 67 * - col1 - - - col2 BETWEEN - col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5520
SELECT + CAST( + col2 AS SIGNED ) FROM tab1 WHERE NOT col1 + - + 73 IS NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5520
SELECT + CAST ( + col2 AS INTEGER ) FROM tab1 WHERE NOT col1 + - + 73 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5521
SELECT ALL - COUNT( * ) FROM tab2 WHERE NOT + 75 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5521
SELECT ALL - COUNT ( * ) FROM tab2 WHERE NOT + 75 IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5522
SELECT + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-5522
SELECT + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT ALL - COUNT( * ) * 75 FROM tab1 AS cor0 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5523
SELECT ALL - COUNT ( * ) * 75 FROM tab1 AS cor0 WHERE NULL >= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5524
SELECT - CAST( NULL AS SIGNED ) * - col1 + - + 4 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5524
SELECT - CAST ( NULL AS INTEGER ) * - col1 + - + 4 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col2 + - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 89 col2, 19 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to f860af4fc49878fbd79eb5b45280d03f

onlyif mysql # DIV for integer division: 
query I rowsort label-5527
SELECT + col0 DIV 4 FROM tab0
----
21
24
3

skipif mysql # not compatible
query I rowsort label-5527
SELECT + col0 / 4 FROM tab0
----
21
24
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5528
SELECT - MIN( col0 ) AS col2 FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5528
SELECT - MIN ( col0 ) AS col2 FROM tab1 cor0
----
-51

query II rowsort
SELECT 0, + col2 FROM tab1 AS cor0
----
0
59
0
68
0
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5530
SELECT ALL * FROM tab0 cor0 WHERE NOT - CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-5530
SELECT ALL * FROM tab0 cor0 WHERE NOT - CAST ( NULL AS INTEGER ) <= NULL
----

query II rowsort
SELECT DISTINCT col1 AS col1, 10 + 30 FROM tab2 AS cor0
----
51
40
67
40
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT ALL + - MAX( ALL - 94 ) + COUNT( * ) FROM tab1 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-5532
SELECT ALL + - MAX ( ALL - 94 ) + COUNT ( * ) FROM tab1 AS cor0
----
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 51 NOT BETWEEN NULL AND 73
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5534
SELECT ALL col0 + col0 / + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5534
SELECT ALL col0 + col0 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 83 + - 77 FROM tab2
----
6
6
6

query III rowsort
SELECT * FROM tab2 WHERE col2 + + 49 * - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + col1, col2 AS col0 FROM tab0 AS cor0 WHERE NOT col2 IN ( col0 )
----
1
99
21
10
81
47

query I rowsort
SELECT DISTINCT col1 + - 2 * 42 AS col2 FROM tab1
----
-37
-70
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5539
SELECT DISTINCT + COUNT( * ) + - + 26 DIV + - ( + 16 ) col1 FROM tab2
----
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5539
SELECT DISTINCT + COUNT ( * ) + - + 26 / + - ( + 16 ) col1 FROM tab2
----
4

query I rowsort
SELECT col2 * + + ( + col2 ) + + col0 AS col1 FROM tab2
----
1664
3439
575

query I rowsort
SELECT ALL - + col0 + + + 38 + - - ( 99 ) - + col2 + - col2 * col0 * + col2 FROM tab0 AS cor0
----
-33060
-8660
-950756

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col1 AND 84
----

query I rowsort
SELECT DISTINCT col0 - + - col0 FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT ALL - ( + 85 ) * - col2 AS col2 FROM tab1 AS cor0
----
5015
5780
8160

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 BETWEEN NULL AND - col0
----

query I rowsort
SELECT DISTINCT col2 * - 28 AS col2 FROM tab1 AS cor0
----
-1652
-1904
-2688

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * - + 49 NOT BETWEEN + - col2 * col0 + - col2 AND - 53
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5548
SELECT DISTINCT * FROM tab0 WHERE NOT + - col1 * - col1 * + col2 <= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5548
SELECT DISTINCT * FROM tab0 WHERE NOT + - col1 * - col1 * + col2 <= - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col0 = NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5550
SELECT ALL 11 DIV + - 8, - col0 AS col2 FROM tab2
----
-1
-46
-1
-64
-1
-75

skipif mysql # not compatible
query II rowsort label-5550
SELECT ALL 11 / + - 8, - col0 AS col2 FROM tab2
----
-1
-46
-1
-64
-1
-75

query II rowsort
SELECT + col2, - col2 FROM tab0
----
10
-10
47
-47
99
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 4 * 72 col0 FROM tab1 cor0 WHERE ( NULL ) NOT IN ( + ( - col0 ) + - col2, col2, + 81, + 17 * + col0, - - col1, col2 * - 49 * + col2 * - 6 * - 17 )
----

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE NOT col1 + - col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT ALL - + COUNT( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5554
SELECT ALL - + COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT DISTINCT ( + MIN( - - col0 ) ) FROM tab2 WHERE NOT col0 / - 47 + - - col0 - + + 69 IS NULL
----
46

skipif mysql # not compatible
query I rowsort label-5555
SELECT DISTINCT ( + MIN ( - - col0 ) ) FROM tab2 WHERE NOT col0 / - 47 + - - col0 - + + 69 IS NULL
----
46

query I rowsort
SELECT ALL + 8 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT ALL - - 74 AS col1 FROM tab0 cor0
----
74
74
74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5558
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5558
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col2 / col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + col1 * col0 + + col1 + + + col1
----

query I rowsort
SELECT ALL + - 39 FROM tab0 cor0
----
-39
-39
-39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5562
SELECT col1, + col1 + + CAST( 85 AS SIGNED ) AS col1 FROM tab0
----
1
86
21
106
81
166

skipif mysql # not compatible
query II rowsort label-5562
SELECT col1, + col1 + + CAST ( 85 AS INTEGER ) AS col1 FROM tab0
----
1
86
21
106
81
166

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT - 50 * MAX( - 95 ) AS col0 FROM tab1
----
4750

skipif mysql # not compatible
query I rowsort label-5563
SELECT - 50 * MAX ( - 95 ) AS col0 FROM tab1
----
4750

query II rowsort
SELECT DISTINCT 81 AS col0, 37 AS col2 FROM tab2
----
81
37

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 / - col1 - + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5566
SELECT ALL - col0 + CAST( - - 40 AS SIGNED ) + col1 FROM tab0
----
-26
-56
106

skipif mysql # not compatible
query I rowsort label-5566
SELECT ALL - col0 + CAST ( - - 40 AS INTEGER ) + col1 FROM tab0
----
-26
-56
106

query III rowsort
SELECT * FROM tab2 WHERE - + 71 - - 4 IS NULL
----

query II rowsort
SELECT - 10, 74 AS col0 FROM tab1
----
-10
74
-10
74
-10
74

query I rowsort
SELECT DISTINCT 31 * - + col2 * col2 - + col2 AS col2 FROM tab1
----
-107970
-143412
-285792

onlyif mysql # aggregate syntax: 
query I rowsort label-5570
SELECT DISTINCT MIN( 50 ) FROM tab2 WHERE + col0 IS NOT NULL
----
50

skipif mysql # not compatible
query I rowsort label-5570
SELECT DISTINCT MIN ( 50 ) FROM tab2 WHERE + col0 IS NOT NULL
----
50

query I rowsort
SELECT - col2 * - ( col0 ) * - + col1 + - 95 FROM tab2
----
-197215
-291545
-54053

query II rowsort
SELECT DISTINCT + col2 + - 43 + ( col1 ) * col0 * - + col1, col1 AS col1 FROM tab1 cor0
----
-200994
47
-2109
5
-9943
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( + 84 ) * - 89 * - col2 col1 FROM tab1 AS cor0
----
441084
508368
717696

query I rowsort
SELECT + ( + col2 ) FROM tab2 cor0 WHERE + 16 NOT BETWEEN NULL AND + - col2
----
23
40
58

query I rowsort
SELECT DISTINCT - 78 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-78

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 67 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5577
SELECT - MAX( col2 ), - 35 AS col1 FROM tab0 AS cor0
----
-99
-35

skipif mysql # not compatible
query II rowsort label-5577
SELECT - MAX ( col2 ), - 35 AS col1 FROM tab0 AS cor0
----
-99
-35

query I rowsort
SELECT + 41 * col0 AS col0 FROM tab1 cor0
----
2091
3485
3731

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 67 col2 FROM tab2 AS cor0
----
-67
-67
-67

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( - - col0, 38 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( + + 36 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT DISTINCT - MIN( 5 ) FROM tab0
----
-5

skipif mysql # not compatible
query I rowsort label-5582
SELECT DISTINCT - MIN ( 5 ) FROM tab0
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-5583
SELECT + 39 AS col1, + ( COUNT( * ) ) col1 FROM tab1
----
39
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5583
SELECT + 39 AS col1, + ( COUNT ( * ) ) col1 FROM tab1
----
39
3

query II rowsort
SELECT DISTINCT + col0 AS col1, col0 AS col2 FROM tab2
----
46
46
64
64
75
75

query II rowsort
SELECT 33 AS col0, 18 - - 21 + + col1 + + + ( + col0 ) AS col1 FROM tab1
----
33
104
33
129
33
177

query I rowsort
SELECT ALL - - 85 * + - 90 FROM tab2 AS cor0
----
-7650
-7650
-7650

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5587
SELECT COUNT( * ) DIV 58 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5587
SELECT COUNT ( * ) / 58 AS col0 FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 31 + col1 IS NOT NULL ) OR + 28 * - 32 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 * col0 * + col2 + + - col0 - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 + + 4 + col1 AS col2 FROM tab0
----
100
102
112

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT - ( + SUM( col0 ) ) AS col1 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-5591
SELECT - ( + SUM ( col0 ) ) AS col1 FROM tab2
----
-185

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 = ( + col1 + 10 )
----

query I rowsort
SELECT ALL - col2 + + 49 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT ( 23 ) + COUNT( * ) FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-5594
SELECT ( 23 ) + COUNT ( * ) FROM tab2 AS cor0
----
26

query I rowsort
SELECT col2 + 91 AS col2 FROM tab0 AS cor0
----
101
138
190

onlyif mysql # DIV for integer division: 
query I rowsort label-5596
SELECT ALL - 58 DIV - col0 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5596
SELECT ALL - 58 / - col0 AS col2 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT + 32 + + col2 * - + col0 FROM tab2 AS cor0
----
-1026
-2528
-4318

query I rowsort
SELECT + col1 + + - 46 FROM tab1 AS cor0
----
-32
-41
1

query I rowsort
SELECT - col1 + 58 FROM tab0 AS cor0
----
-23
37
57

query III rowsort
SELECT * FROM tab1 WHERE - - 96 * + col0 * - 99 NOT IN ( + - col2 * + ( + 0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + - 67 AS col0, - col2 FROM tab2 AS cor0 WHERE NULL IN ( - 38, 30, + col2, 23, - + col1, col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > + 78 * - + 65 + + 92 + - col0 * 36
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT - 99 * + + COUNT( * ) * 90 + 44 AS col0 FROM tab2
----
-26686

skipif mysql # not compatible
query I rowsort label-5603
SELECT - 99 * + + COUNT ( * ) * 90 + 44 AS col0 FROM tab2
----
-26686

query II rowsort
SELECT DISTINCT - 67, - col2 AS col2 FROM tab1
----
-67
-59
-67
-68
-67
-96

query I rowsort
SELECT ALL + - ( + 50 ) FROM tab2 cor0
----
-50
-50
-50

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 NOT BETWEEN NULL AND col0 + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5607
SELECT - CAST( + - 46 AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 * 75 + - ( - 84 ) IS NULL
----
46
46
46

skipif mysql # not compatible
query I rowsort label-5607
SELECT - CAST ( + - 46 AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 * 75 + - ( - 84 ) IS NULL
----
46
46
46

query I rowsort
SELECT + ( - + 48 ) AS col0 FROM tab0 cor0
----
-48
-48
-48

query I rowsort
SELECT ALL - 27 AS col2 FROM tab2 WHERE NOT - + col1 >= - col2
----
-27
-27
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 79 col1 FROM tab2
----
79
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT + COUNT( * ) * - ( 50 ) col2 FROM tab0
----
-150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5611
SELECT + COUNT ( * ) * - ( 50 ) col2 FROM tab0
----
-150

query I rowsort
SELECT + col0 * - 77 FROM tab0
----
-1155
-6699
-7469

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 67 * 0 col2 FROM tab2
----
0

query I rowsort
SELECT ALL + ( + - col2 ) FROM tab2
----
-23
-40
-58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5615
SELECT ALL - CAST( NULL AS DECIMAL ) * + - col1 * + + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5615
SELECT ALL - CAST ( NULL AS REAL ) * + - col1 * + + col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * - + 96 * col2 AS col2 FROM tab1
----
-129024
-28320
-306816

query I rowsort
SELECT - + 1 + + col1 FROM tab0 AS cor0 WHERE NOT col0 + - 75 IS NULL
----
0
20
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT DISTINCT COUNT( ALL col2 ) + SUM( col0 ) AS col0 FROM tab1
----
230

skipif mysql # not compatible
query I rowsort label-5618
SELECT DISTINCT COUNT ( ALL col2 ) + SUM ( col0 ) AS col0 FROM tab1
----
230

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 30 + - ( col1 ) / - + col1 + col2 / + col1 + + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5620
SELECT DISTINCT + SUM( - CAST( - col0 AS SIGNED ) ) FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-5620
SELECT DISTINCT + SUM ( - CAST ( - col0 AS INTEGER ) ) FROM tab1 cor0
----
227

onlyif mysql # DIV for integer division: 
query I rowsort label-5621
SELECT DISTINCT - 40 DIV - 32 AS col0 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-5621
SELECT DISTINCT - 40 / - 32 AS col0 FROM tab1 cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col2, ( + - col1 ) FROM tab0 cor0
----
1
-1
21
-21
81
-81

query I rowsort
SELECT col0 + + col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5624
SELECT + - ( - MIN( col2 ) ) * SUM( + col2 ) + COUNT( ALL - col1 ) FROM tab1 AS cor0
----
13160

skipif mysql # not compatible
query I rowsort label-5624
SELECT + - ( - MIN ( col2 ) ) * SUM ( + col2 ) + COUNT ( ALL - col1 ) FROM tab1 AS cor0
----
13160

query II rowsort
SELECT + + col2, + 31 AS col0 FROM tab0 AS cor0
----
10
31
47
31
99
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 AS col1, - col1 + - - col0 col1 FROM tab2
----
23
-5
40
-13
58
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT ALL 24 + - + SUM( + col1 ) FROM tab0
----
-79

skipif mysql # not compatible
query I rowsort label-5627
SELECT ALL 24 + - + SUM ( + col1 ) FROM tab0
----
-79

query I rowsort
SELECT + col0 - - + col2 FROM tab0
----
196
62
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5629
SELECT ALL + 87 + + + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5629
SELECT ALL + 87 + + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT 35 - + col2 + 67 FROM tab1
----
34
43
6

query I rowsort
SELECT + col0 + + col2 + col2 AS col2 FROM tab1
----
203
227
243

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT DISTINCT 58 - COUNT( * ) AS col2 FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-5632
SELECT DISTINCT 58 - COUNT ( * ) AS col2 FROM tab1
----
55

query I rowsort
SELECT ALL + col2 + - col0 * - - col2 AS col1 FROM tab1
----
-4800
-4956
-6120

onlyif mysql # aggregate syntax: 
query II rowsort label-5634
SELECT DISTINCT 25 + - COUNT( * ), + 4 AS col0 FROM tab0
----
22
4

skipif mysql # not compatible
query II rowsort label-5634
SELECT DISTINCT 25 + - COUNT ( * ), + 4 AS col0 FROM tab0
----
22
4

query I rowsort
SELECT DISTINCT + 10 - - col2 AS col0 FROM tab0 AS cor0
----
109
20
57

query II rowsort
SELECT ALL col2 + - 50, + ( - - ( col1 ) ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - - ( - - 68 ) - 55 col2 FROM tab0 AS cor0
----
100
110
28

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5639
SELECT * FROM tab0 WHERE NOT - - col1 NOT IN ( - + ( + + col1 ) + + 70, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5639
SELECT * FROM tab0 WHERE NOT - - col1 NOT IN ( - + ( + + col1 ) + + 70, CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT + - 80 AS col2 FROM tab1 WHERE NOT + 87 IS NULL
----
-80
-80
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-5642
SELECT ALL + - col0 * 30 + - - ( + col1 ) DIV - 41 AS col1 FROM tab2 AS cor0
----
-1381
-1921
-2251

skipif mysql # not compatible
query I rowsort label-5642
SELECT ALL + - col0 * 30 + - - ( + col1 ) / - 41 AS col1 FROM tab2 AS cor0
----
-1381
-1921
-2251

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 - + 50 + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5644
SELECT DISTINCT 22, + MIN( col1 ) AS col2 FROM tab1 AS cor0
----
22
5

skipif mysql # not compatible
query II rowsort label-5644
SELECT DISTINCT 22, + MIN ( col1 ) AS col2 FROM tab1 AS cor0
----
22
5

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col2 + col2 * + 10 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 47 AS col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-47
-47
-47

query I rowsort
SELECT ALL 67 FROM tab0 WHERE NOT ( col0 ) > - 75
----

query I rowsort
SELECT ALL + 87 * col1 - col1 * 42 FROM tab2 WHERE NOT ( col0 * ( + col2 * col2 ) ) IS NULL
----
2295
3015
3465

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > + ( + col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 96 ) >= NULL
----

query I rowsort
SELECT 22 AS col2 FROM tab2 WHERE NULL >= - 48
----

query I rowsort
SELECT + col0 + 91 FROM tab1
----
142
176
182

query I rowsort
SELECT col0 + - 4 AS col2 FROM tab0
----
11
83
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT - MAX( ALL col0 ) * - ( - SUM( ALL - col2 ) ) + + COUNT( * ) FROM tab2
----
9078

skipif mysql # not compatible
query I rowsort label-5654
SELECT - MAX ( ALL col0 ) * - ( - SUM ( ALL - col2 ) ) + + COUNT ( * ) FROM tab2
----
9078

query I rowsort
SELECT col0 * col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
2601
7225
8281

query I rowsort
SELECT DISTINCT - col1 - - 59 * 14 AS col0 FROM tab0
----
745
805
825

query I rowsort
SELECT - ( ( col2 ) ) * + col0 AS col1 FROM tab0
----
-705
-870
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 83 col2 FROM tab0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5659
SELECT - 92 + ( + COUNT( * ) ) * ( - COUNT( * ) ) FROM tab1
----
-101

skipif mysql # not compatible
query I rowsort label-5659
SELECT - 92 + ( + COUNT ( * ) ) * ( - COUNT ( * ) ) FROM tab1
----
-101

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 IN ( + col0 * col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 + + 83 FROM tab0
----
-14
-4
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5662
SELECT + 48 * CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab2
----
144

skipif mysql # not compatible
query I rowsort label-5662
SELECT + 48 * CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab2
----
144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5663
SELECT ALL COUNT( * ) DIV - 34 FROM tab0 WHERE - col2 + col0 DIV col0 >= ( 59 )
----
0

skipif mysql # not compatible
query I rowsort label-5663
SELECT ALL COUNT ( * ) / - 34 FROM tab0 WHERE - col2 + col0 / col0 >= ( 59 )
----
0

query I rowsort
SELECT + 82 + + 39 * col0 AS col1 FROM tab1
----
2071
3397
3631

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + 41 ) NOT BETWEEN ( NULL ) AND 33 * + 15
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5666
SELECT ALL - 97 * - col0 + + col0 * + CAST( + col0 - col1 / col1 AS SIGNED ) AS col1 FROM tab1
----
15385
17017
7497

skipif mysql # not compatible
query I rowsort label-5666
SELECT ALL - 97 * - col0 + + col0 * + CAST ( + col0 - col1 / col1 AS INTEGER ) AS col1 FROM tab1
----
15385
17017
7497

query I rowsort
SELECT - ( + col2 ) * col0 AS col0 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT + col1 * 21 AS col1 FROM tab1
----
105
294
987

query I rowsort
SELECT DISTINCT + ( 62 ) FROM tab0
----
62

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 73 ) IS NOT NULL
----

query I rowsort
SELECT col1 * - ( 42 * col1 ) AS col2 FROM tab2
----
-109242
-188538
-249018

onlyif mysql # aggregate syntax: 
query I rowsort label-5672
SELECT DISTINCT + SUM( ALL - col0 ) * MIN( + 3 ) AS col2 FROM tab1
----
-681

skipif mysql # not compatible
query I rowsort label-5672
SELECT DISTINCT + SUM ( ALL - col0 ) * MIN ( + 3 ) AS col2 FROM tab1
----
-681

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5673
SELECT + col1 * - CAST( col1 AS SIGNED ) + - 0 AS col2 FROM tab0
----
-1
-441
-6561

skipif mysql # not compatible
query I rowsort label-5673
SELECT + col1 * - CAST ( col1 AS INTEGER ) + - 0 AS col2 FROM tab0
----
-1
-441
-6561

query I rowsort
SELECT DISTINCT - 6 * + 89 FROM tab1
----
-534

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) <= - col2 * col2 + col2
----

query I rowsort
SELECT ALL - 0 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * ( - 28 ) FROM tab1
----
1428
2380
2548

query I rowsort
SELECT DISTINCT 86 * + col1 FROM tab2
----
4386
5762
6622

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5679
SELECT DISTINCT - ( 80 ) DIV COUNT( * ) AS col2 FROM tab1
----
-26

skipif mysql # not compatible
query I rowsort label-5679
SELECT DISTINCT - ( 80 ) / COUNT ( * ) AS col2 FROM tab1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT + 14 - - COUNT( * ) * + COUNT( * ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-5680
SELECT + 14 - - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab2
----
23

query I rowsort
SELECT ( - 64 ) AS col2 FROM tab2
----
-64
-64
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5682
SELECT COUNT( * ) DIV + COUNT( * ) col0 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5682
SELECT COUNT ( * ) / + COUNT ( * ) col0 FROM tab0
----
1

query I rowsort
SELECT col1 - - 28 FROM tab0 AS cor0
----
109
29
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5684
SELECT + 98 DIV 13 - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-5684
SELECT + 98 / 13 - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
10

query I rowsort
SELECT DISTINCT 49 + + ( + col0 ) FROM tab1 AS cor0
----
100
134
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5686
SELECT ALL + CAST( - 7 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE - col2 <> ( col2 )
----
-7
-7
-7

skipif mysql # not compatible
query I rowsort label-5686
SELECT ALL + CAST ( - 7 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE - col2 <> ( col2 )
----
-7
-7
-7

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE - col2 / - col2 NOT IN ( 53 * - col2 )
----
51
67
77

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 78 ) IN ( col2 + - 81 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5689
SELECT ALL - MAX( - col2 ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-5689
SELECT ALL - MAX ( - col2 ) AS col1 FROM tab1
----
59

query I rowsort
SELECT DISTINCT ( 69 ) FROM tab0 AS cor0 CROSS JOIN tab0
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5691
SELECT 34 * + CAST( - SUM( - col1 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
2244

skipif mysql # not compatible
query I rowsort label-5691
SELECT 34 * + CAST ( - SUM ( - col1 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
2244

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5692
SELECT DISTINCT * FROM tab2 cor0 WHERE 10 < ( + col2 * + 68 + + CAST( - col0 AS DECIMAL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5692
SELECT DISTINCT * FROM tab2 cor0 WHERE 10 < ( + col2 * + 68 + + CAST ( - col0 AS REAL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5693
SELECT DISTINCT + MIN( ALL + ( col0 ) ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-5693
SELECT DISTINCT + MIN ( ALL + ( col0 ) ) FROM tab2 AS cor0
----
46

query I rowsort
SELECT ALL ( - 25 ) FROM tab0 AS cor0
----
-25
-25
-25

query I rowsort
SELECT ALL + ( 60 ) AS col1 FROM tab0 AS cor0
----
60
60
60

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5696
SELECT DISTINCT * FROM tab1 WHERE + col0 BETWEEN col0 AND + ( col1 ) + + col0 * col1 OR NOT NULL BETWEEN col1 / - CAST( NULL AS SIGNED ) + 27 AND col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5696
SELECT DISTINCT * FROM tab1 WHERE + col0 BETWEEN col0 AND + ( col1 ) + + col0 * col1 OR NOT NULL BETWEEN col1 / - CAST ( NULL AS INTEGER ) + 27 AND col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 88 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5698
SELECT 5 * COUNT( * ) AS col1 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-5698
SELECT 5 * COUNT ( * ) AS col1 FROM tab1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5699
SELECT - MAX( - - col1 ) col2 FROM tab1
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5699
SELECT - MAX ( - - col1 ) col2 FROM tab1
----
-47

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 + + 38 ) IS NOT NULL
----

query I rowsort
SELECT ( 31 ) * col1 + - 9 * + 67 FROM tab1 WHERE NOT + 43 IS NULL
----
-169
-448
854

query I rowsort
SELECT DISTINCT + col0 * 0 + ( 42 ) AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN 73 - + col1 / + col2 AND + col2 + + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 25 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - 69 + - ( 27 - 27 ) ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 * - col0 >= col1
----

query I rowsort
SELECT DISTINCT - ( + - 18 ) AS col2 FROM tab1 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5707
SELECT COUNT( * ) + - 4 AS col1 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5707
SELECT COUNT ( * ) + - 4 AS col1 FROM tab2 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5708
SELECT 92 + COUNT( + 45 ) FROM tab1 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-5708
SELECT 92 + COUNT ( + 45 ) FROM tab1 AS cor0
----
95

query I rowsort
SELECT ALL col1 * + 77 FROM tab2
----
3927
5159
5929

query III rowsort
SELECT * FROM tab0 WHERE ( - + col2 * + col2 - col1 ) NOT BETWEEN NULL AND - 69
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5711
SELECT ALL - col0 - - CAST( col0 AS SIGNED ) FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5711
SELECT ALL - col0 - - CAST ( col0 AS INTEGER ) FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5712
SELECT ALL MIN( DISTINCT col1 ) - 55 FROM tab1 WHERE ( NULL IS NULL )
----
-50

skipif mysql # not compatible
query I rowsort label-5712
SELECT ALL MIN ( DISTINCT col1 ) - 55 FROM tab1 WHERE ( NULL IS NULL )
----
-50

query I rowsort
SELECT DISTINCT - 25 * + 90 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-2250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5714
SELECT CAST( NULL AS SIGNED ) + col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5714
SELECT CAST ( NULL AS INTEGER ) + col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5715
SELECT DISTINCT + COUNT( * ) - - - 59 + 12 FROM tab0 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-5715
SELECT DISTINCT + COUNT ( * ) - - - 59 + 12 FROM tab0 AS cor0
----
-44

query I rowsort
SELECT ALL - - 21 * + - 42 AS col1 FROM tab1 AS cor0
----
-882
-882
-882

query I rowsort
SELECT + - col0 * ( + + col1 ) - + col2 AS col2 FROM tab1 AS cor0
----
-4345
-484
-810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 - + col1 col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE - col2 >= + + 11
----

query I rowsort
SELECT - col0 - ( + ( col1 ) ) + col0 AS col0 FROM tab2 AS cor0
----
-51
-67
-77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= - col1 * - - col0 + 1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5722
SELECT ALL - + COUNT( ALL - - CAST( NULL AS SIGNED ) ) * COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5722
SELECT ALL - + COUNT ( ALL - - CAST ( NULL AS INTEGER ) ) * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 36 + + 29 col2 FROM tab2
----
-7
-7
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 57 col2 FROM tab1
----
116
125
153

query II rowsort
SELECT DISTINCT 44 + - 82 AS col1, ( + col0 ) FROM tab2
----
-38
46
-38
64
-38
75

query I rowsort
SELECT col2 + - 61 * 93 FROM tab0
----
-5574
-5626
-5663

query I rowsort
SELECT ALL col1 - + 48 FROM tab2
----
19
29
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5728
SELECT CAST( COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 WHERE NOT ( NOT ( col1 = ( col1 ) ) )
----
3

skipif mysql # not compatible
query I rowsort label-5728
SELECT CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 WHERE NOT ( NOT ( col1 = ( col1 ) ) )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5729
SELECT - COUNT( ALL - 72 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5729
SELECT - COUNT ( ALL - 72 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT ALL SUM( - 53 ) AS col0 FROM tab1 cor0
----
-159

skipif mysql # not compatible
query I rowsort label-5730
SELECT ALL SUM ( - 53 ) AS col0 FROM tab1 cor0
----
-159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 col2 FROM tab1 AS cor0
----
67
67
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - - 14 + + 34 + - col1 col0 FROM tab1 AS cor0
----
1219
1261
734

query I rowsort
SELECT ALL + 83 * - - col0 AS col0 FROM tab0 AS cor0
----
1245
7221
8051

query II rowsort
SELECT - ( + col0 ) AS col0, col1 AS col0 FROM tab1 cor0
----
-51
14
-85
5
-91
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) * + + ( col1 ) col0 FROM tab0 AS cor0
----
1
441
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT COUNT( * ) * 52 AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 54 AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5736
SELECT COUNT ( * ) * 52 AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 54 AND ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5737
SELECT DISTINCT + COUNT( * ) AS col0, COUNT( * ) + - ( - 77 ) AS col2 FROM tab2
----
3
80

skipif mysql # not compatible
query II rowsort label-5737
SELECT DISTINCT + COUNT ( * ) AS col0, COUNT ( * ) + - ( - 77 ) AS col2 FROM tab2
----
3
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT COUNT( * ) + - + MIN( ALL col0 ) FROM tab2 WHERE NOT NULL >= + - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5738
SELECT COUNT ( * ) + - + MIN ( ALL col0 ) FROM tab2 WHERE NOT NULL >= + - col2
----
NULL

query I rowsort
SELECT + + 7 * 4 FROM tab2 AS cor0
----
28
28
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5740
SELECT - CAST( MIN( DISTINCT - 53 ) AS SIGNED ) FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-5740
SELECT - CAST ( MIN ( DISTINCT - 53 ) AS INTEGER ) FROM tab0 AS cor0
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-5741
SELECT DISTINCT + 24 AS col2, COUNT( * ) col2 FROM tab1 AS cor0
----
24
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5741
SELECT DISTINCT + 24 AS col2, COUNT ( * ) col2 FROM tab1 AS cor0
----
24
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 67 ) >= + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 19 BETWEEN ( - col2 / - + col2 ) AND + col0 * + col2 + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND col1 + - - 47
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5745
SELECT ( - - MAX( ALL + - col0 ) ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5745
SELECT ( - - MAX ( ALL + - col0 ) ) FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5746
SELECT DISTINCT + MIN( DISTINCT - col2 ) DIV - 57 AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5746
SELECT DISTINCT + MIN ( DISTINCT - col2 ) / - 57 AS col1 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + - col1 col0 FROM tab2
----
0

query I rowsort
SELECT col2 + + col1 FROM tab0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5749
SELECT - col0 DIV 24 + - col1 + col0 col2 FROM tab1
----
35
41
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5749
SELECT - col0 / 24 + - col1 + col0 col2 FROM tab1
----
35
41
77

query I rowsort
SELECT col2 * - 87 AS col1 FROM tab0
----
-4089
-8613
-870

onlyif mysql # DIV for integer division: 
query I rowsort label-5751
SELECT + 57 DIV - 60 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5751
SELECT + 57 / - 60 AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * 39 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 97 + - 35 col1 FROM tab1 AS cor0
----
62

query II rowsort
SELECT ALL col2 AS col0, col0 AS col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IS NOT NULL OR NOT 38 * - - col0 = ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5756
SELECT col0 * col0 + - 23 AS col2 FROM tab0 AS cor0 WHERE col2 NOT BETWEEN ( + ( - 71 ) + + 88 ) AND col2 + - 85 * - CAST( NULL AS SIGNED )
----
7546

skipif mysql # not compatible
query I rowsort label-5756
SELECT col0 * col0 + - 23 AS col2 FROM tab0 AS cor0 WHERE col2 NOT BETWEEN ( + ( - 71 ) + + 88 ) AND col2 + - 85 * - CAST ( NULL AS INTEGER )
----
7546

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5757
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * + 27 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5757
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + 27 IS NULL
----

query I rowsort
SELECT + - 39 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query II rowsort
SELECT - col1 - - + col0, col0 FROM tab0
----
-66
15
66
87
96
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5760
SELECT ALL - MAX( ALL + col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-5760
SELECT ALL - MAX ( ALL + col1 ) FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-5761
SELECT - 41 + + + COUNT( * ) AS col2, 45 AS col1 FROM tab2
----
-38
45

skipif mysql # not compatible
query II rowsort label-5761
SELECT - 41 + + + COUNT ( * ) AS col2, 45 AS col1 FROM tab2
----
-38
45

query I rowsort
SELECT ALL - col2 - + col2 + + 8 + + - col2 FROM tab2 AS cor0
----
-112
-166
-61

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT DISTINCT + 75 - - + COUNT( + - ( - col1 ) ) * + SUM( - - col0 ) AS col1 FROM tab1 cor0
----
756

skipif mysql # not compatible
query I rowsort label-5764
SELECT DISTINCT + 75 - - + COUNT ( + - ( - col1 ) ) * + SUM ( - - col0 ) AS col1 FROM tab1 cor0
----
756

query I rowsort
SELECT ALL - + 97 - ( + - 1 ) AS col1 FROM tab0 AS cor0
----
-96
-96
-96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 * + col0 + ( + col2 ) * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT ( + + 78 ) + 56 + + 95 - col2 / + 61 NOT IN ( - col2 ) )
----
51
67
77

query II rowsort
SELECT ALL 91, col0 FROM tab0
----
91
15
91
87
91
97

query I rowsort
SELECT DISTINCT + col1 * + 91 FROM tab2
----
4641
6097
7007

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, col2 AS col2 FROM tab0
----
-15
47
-87
10
-97
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5771
SELECT col2 AS col2, CAST( NULL AS SIGNED ) FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-5771
SELECT col2 AS col2, CAST ( NULL AS INTEGER ) FROM tab2
----
23
NULL
40
NULL
58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5772
SELECT ALL MIN( + + col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-5772
SELECT ALL MIN ( + + col1 ) FROM tab2
----
51

query II rowsort
SELECT ALL 98 AS col1, + col1 AS col0 FROM tab1
----
98
14
98
47
98
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5774
SELECT DISTINCT COUNT( * ) * ( - COUNT( * ) ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-5774
SELECT DISTINCT COUNT ( * ) * ( - COUNT ( * ) ) FROM tab0
----
-9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 BETWEEN col1 AND - - ( + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5776
SELECT ALL ( - + 55 ) * - - MIN( ALL + col1 ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 94 * 56 + + + 13 AND ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5776
SELECT ALL ( - + 55 ) * - - MIN ( ALL + col1 ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 94 * 56 + + + 13 AND ( col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5777
SELECT SUM( ALL + - 0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5777
SELECT SUM ( ALL + - 0 ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5778
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL IN ( col2, + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-5778
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL IN ( col2, + col0 )
----
0

query I rowsort
SELECT ALL - 27 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

query I rowsort
SELECT - 43 FROM tab0 cor0 WHERE NOT ( col2 ) NOT IN ( col1, col1 * + - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5781
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - ( - col1 ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5781
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - ( - col1 ) AS col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col1 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 5 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 24 ) col1 FROM tab2 AS cor0
----
24
24
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5785
SELECT col0 FROM tab2 AS cor0 WHERE NOT col0 * - + col2 * col1 IN ( CAST( - 17 AS SIGNED ) * + + 37 )
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5785
SELECT col0 FROM tab2 AS cor0 WHERE NOT col0 * - + col2 * col1 IN ( CAST ( - 17 AS INTEGER ) * + + 37 )
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5786
SELECT - col2 DIV col2 DIV 1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5786
SELECT - col2 / col2 / 1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL 47 + + 21 AS col0 FROM tab0
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5788
SELECT ALL COUNT( * ) AS col0 FROM tab1 WHERE col1 * - - col2 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5788
SELECT ALL COUNT ( * ) AS col0 FROM tab1 WHERE col1 * - - col2 BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5789
SELECT - SUM( 86 ) FROM tab2
----
-258

skipif mysql # not compatible
query I rowsort label-5789
SELECT - SUM ( 86 ) FROM tab2
----
-258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5790
SELECT - CAST( - 36 AS SIGNED ) AS col0 FROM tab2
----
36
36
36

skipif mysql # not compatible
query I rowsort label-5790
SELECT - CAST ( - 36 AS INTEGER ) AS col0 FROM tab2
----
36
36
36

query I rowsort
SELECT + ( + 7 ) FROM tab0
----
7
7
7

onlyif mysql # aggregate syntax: 
query II rowsort label-5792
SELECT DISTINCT + COUNT( * ) AS col2, 13 * - + ( - - MAX( ALL col0 ) ) * - MIN( - col1 ) + 68 * + COUNT( * ) AS col0 FROM tab1 WHERE ( - - col2 ) > - 27
----
3
-55397

skipif mysql # not compatible
query II rowsort label-5792
SELECT DISTINCT + COUNT ( * ) AS col2, 13 * - + ( - - MAX ( ALL col0 ) ) * - MIN ( - col1 ) + 68 * + COUNT ( * ) AS col0 FROM tab1 WHERE ( - - col2 ) > - 27
----
3
-55397

onlyif mysql # DIV for integer division: 
query I rowsort label-5793
SELECT ALL + col1 DIV + 15 AS col2 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-5793
SELECT ALL + col1 / + 15 AS col2 FROM tab0
----
0
1
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT ALL + MAX( DISTINCT + - 28 ) AS col0 FROM tab1 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-5794
SELECT ALL + MAX ( DISTINCT + - 28 ) AS col0 FROM tab1 AS cor0
----
-28

query I rowsort
SELECT - + col0 + - - col0 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 * + col0 + 26 - + - 51 FROM tab2 AS cor0
----
-2269
-4851
-4948

onlyif mysql # aggregate syntax: 
query I rowsort label-5797
SELECT DISTINCT SUM( DISTINCT 7 ) FROM tab2 cor0
----
7

skipif mysql # not compatible
query I rowsort label-5797
SELECT DISTINCT SUM ( DISTINCT 7 ) FROM tab2 cor0
----
7

query I rowsort
SELECT + + ( + col1 ) + - 33 FROM tab0 AS cor0
----
-12
-32
48

onlyif mysql # DIV for integer division: 
query I rowsort label-5799
SELECT DISTINCT col0 + + 32 DIV - - 87 + - 28 AS col2 FROM tab0
----
-13
59
69

skipif mysql # not compatible
query I rowsort label-5799
SELECT DISTINCT col0 + + 32 / - - 87 + - 28 AS col2 FROM tab0
----
-13
59
69

query I rowsort
SELECT - 91 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NULL
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

query I rowsort
SELECT + + col2 AS col0 FROM tab0 AS cor0 WHERE + col1 IS NULL
----

query I rowsort
SELECT DISTINCT - ( - col1 ) - col0 + + col0 AS col2 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( + 13, 30 * + col0, + 90, - - 68 * + - col0, 30 / - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5804
SELECT DISTINCT ( + + ( COUNT( * ) ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5804
SELECT DISTINCT ( + + ( COUNT ( * ) ) ) AS col2 FROM tab2
----
3

query I rowsort
SELECT DISTINCT - 97 * + col1 AS col1 FROM tab1 AS cor0
----
-1358
-4559
-485

onlyif mysql # aggregate syntax: 
query I rowsort label-5806
SELECT ALL - + COUNT( * ) * + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN + col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5806
SELECT ALL - + COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN + col2 AND NULL
----
0

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5808
SELECT ALL - CAST( NULL AS SIGNED ) * - 45 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5808
SELECT ALL - CAST ( NULL AS INTEGER ) * - 45 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 + + col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5810
SELECT - + 28 * + 9 * + - SUM( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT 68 IS NULL
----
-25956

skipif mysql # not compatible
query I rowsort label-5810
SELECT - + 28 * + 9 * + - SUM ( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT 68 IS NULL
----
-25956

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 85 IN ( 49, - ( col2 ) * col0, 80 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5812
SELECT - 89 * + ( + col1 ) * col0 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5812
SELECT - 89 * + ( + col1 ) * col0 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 * - + col1 AS col0 FROM tab1 AS cor0
----
1344
295
3196

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - 84 * + 97 / - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5815
SELECT DISTINCT - SUM( DISTINCT 28 ) FROM tab1 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-5815
SELECT DISTINCT - SUM ( DISTINCT 28 ) FROM tab1 AS cor0
----
-28

query II rowsort
SELECT ALL col0 * - col1 * + col1 + + + 35, 11 AS col1 FROM tab0
----
-38332
11
-62
11
-98380
11

query I rowsort
SELECT ALL 30 + col0 + col1 + + 55 FROM tab1
----
150
175
223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5818
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-5818
SELECT ( - CAST ( - COUNT ( * ) AS INTEGER ) ) col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5819
SELECT + COUNT( * ) * - + SUM( ALL - col2 ) FROM tab1
----
669

skipif mysql # not compatible
query I rowsort label-5819
SELECT + COUNT ( * ) * - + SUM ( ALL - col2 ) FROM tab1
----
669

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < - 11 * + col2 AND col2 BETWEEN + 86 AND NULL
----

query I rowsort
SELECT - 42 - + 31 FROM tab1, tab1 AS cor0
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5822
SELECT col2 * + CAST( NULL AS SIGNED ) + - + col1 + + 97 + + 87 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5822
SELECT col2 * + CAST ( NULL AS INTEGER ) + - + col1 + + 97 + + 87 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT + ( + - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5823
SELECT + ( + - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL 89 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + 27 )
----

query I rowsort
SELECT 61 * - 33 FROM tab1 AS cor0
----
-2013
-2013
-2013

query I rowsort
SELECT ALL col1 * + col2 * + col2 * - + 27 AS col1 FROM tab0
----
-264627
-4831083
-56700

onlyif mysql # aggregate syntax: 
query I rowsort label-5827
SELECT COUNT( ALL col0 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5827
SELECT COUNT ( ALL col0 ) AS col2 FROM tab0
----
3

query II rowsort
SELECT DISTINCT 58 AS col2, + 92 * 19 * col2 AS col2 FROM tab2
----
58
101384
58
40204
58
69920

query II rowsort
SELECT 1, col2 AS col2 FROM tab1
----
1
59
1
68
1
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5830
SELECT - 48 AS col1, CAST( NULL AS SIGNED ) / + col1 AS col0 FROM tab0
----
-48
NULL
-48
NULL
-48
NULL

skipif mysql # not compatible
query II rowsort label-5830
SELECT - 48 AS col1, CAST ( NULL AS INTEGER ) / + col1 AS col0 FROM tab0
----
-48
NULL
-48
NULL
-48
NULL

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5832
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN CAST( NULL AS DECIMAL ) AND col1
----

skipif mysql # not compatible
query III rowsort label-5832
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN CAST ( NULL AS REAL ) AND col1
----

query II rowsort
SELECT DISTINCT + col1 AS col2, col0 * ( - col2 ) FROM tab2 cor0
----
51
-1058
67
-4350
77
-2560

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 73 + + - 27 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT ALL + ( - ( - - SUM( col0 ) ) ) FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-5835
SELECT ALL + ( - ( - - SUM ( col0 ) ) ) FROM tab0 cor0
----
-199

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + + - 2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + ( - 30 ) FROM tab2 AS cor0
----
-30
-30
-30

query I rowsort
SELECT DISTINCT - 34 AS col2 FROM tab2 AS cor0 WHERE NOT + 31 >= + col1
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5839
SELECT + COUNT( * ) DIV - 23 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5839
SELECT + COUNT ( * ) / - 23 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5840
SELECT + COUNT( * ) DIV + 61 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5840
SELECT + COUNT ( * ) / + 61 FROM tab2
----
0

query II rowsort
SELECT col2 AS col1, - col1 AS col2 FROM tab1
----
59
-5
68
-47
96
-14

query III rowsort
SELECT * FROM tab1 WHERE ( - 51 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 * - - col2 FROM tab1
----
4896
5015
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-5844
SELECT ALL 58 + - - col2 + - 76 DIV + 2 FROM tab2
----
43
60
78

skipif mysql # not compatible
query I rowsort label-5844
SELECT ALL 58 + - - col2 + - 76 / + 2 FROM tab2
----
43
60
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5845
SELECT - 86 + - COUNT( * ) FROM tab1
----
-89

skipif mysql # not compatible
query I rowsort label-5845
SELECT - 86 + - COUNT ( * ) FROM tab1
----
-89

query III rowsort
SELECT * FROM tab0 WHERE + 37 * - + 91 + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col2 AS col0, col1 * + - col1 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT - - col0, 59 + + col2 * + + col0 * 42 AS col2 FROM tab1 AS cor0 WHERE col2 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( col1 ) * 28 col0, - col2 AS col1 FROM tab0 AS cor0
----
2268
-47
28
-99
588
-10

query I rowsort
SELECT + 92 * + col1 AS col0 FROM tab0 AS cor0
----
1932
7452
92

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col2 ) BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5852
SELECT - COUNT( + 71 ) * + COUNT( * ) * + - 68 AS col0 FROM tab0 AS cor0
----
612

skipif mysql # not compatible
query I rowsort label-5852
SELECT - COUNT ( + 71 ) * + COUNT ( * ) * + - 68 AS col0 FROM tab0 AS cor0
----
612

query I rowsort
SELECT 28 AS col0 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 43 col0 FROM tab2 AS cor0
----
43
43
43

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5855
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( - - col1 AS SIGNED ) * + col1 NOT IN ( - col1 * + 47, - col1, - 82 + + + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5855
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( - - col1 AS INTEGER ) * + col1 NOT IN ( - col1 * + 47, - col1, - 82 + + + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5856
SELECT + + MAX( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5856
SELECT + + MAX ( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5857
SELECT + + MAX( DISTINCT + - 36 ) AS col2 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-5857
SELECT + + MAX ( DISTINCT + - 36 ) AS col2 FROM tab0 AS cor0
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-5858
SELECT - - MAX( + col0 ) AS col2, - 20 AS col0 FROM tab0 AS cor0
----
97
-20

skipif mysql # not compatible
query II rowsort label-5858
SELECT - - MAX ( + col0 ) AS col2, - 20 AS col0 FROM tab0 AS cor0
----
97
-20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( + - col2 ) col2, + 29 FROM tab1 AS cor0
----
-59
29
-68
29
-96
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( col2 ) col1, - 15 AS col0 FROM tab1 cor0
----
59
-15
68
-15
96
-15

query I rowsort
SELECT - 42 * - - col1 + + + col0 FROM tab0 AS cor0
----
-3387
-795
55

query I rowsort
SELECT + + col0 * 99 AS col0 FROM tab1 AS cor0
----
5049
8415
9009

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5863
SELECT ALL + MAX( ALL - 77 ) DIV - 32 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-5863
SELECT ALL + MAX ( ALL - 77 ) / - 32 FROM tab1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5864
SELECT DISTINCT + 20 DIV - 33 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5864
SELECT DISTINCT + 20 / - 33 FROM tab1
----
0

query I rowsort
SELECT + + 21 AS col2 FROM tab1 WHERE NOT - ( + col2 ) IS NULL
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5866
SELECT ALL MIN( + col2 ) col1 FROM tab2
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5866
SELECT ALL MIN ( + col2 ) col1 FROM tab2
----
23

query I rowsort
SELECT DISTINCT 49 FROM tab2 WHERE NOT col2 NOT BETWEEN 54 * - 21 * + + col1 - + 63 + + col1 + + col0 AND + + col1
----
49

query I rowsort
SELECT col1 * + 15 + col1 AS col0 FROM tab1 WHERE NOT ( + col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col2 FROM tab2 AS cor0 WHERE + col2 / 54 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5870
SELECT DISTINCT + COUNT( + 33 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5870
SELECT DISTINCT + COUNT ( + 33 ) AS col1 FROM tab0
----
3

query II rowsort
SELECT + col2 AS col0, - 88 FROM tab2 WHERE NOT + 81 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 34 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-34

query I rowsort
SELECT 51 + - col0 - + col1 FROM tab1
----
-14
-39
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-5874
SELECT + + col0 DIV 32 + 38 * + col2 FROM tab2 AS cor0
----
1522
2206
875

skipif mysql # not compatible
query I rowsort label-5874
SELECT + + col0 / 32 + 38 * + col2 FROM tab2 AS cor0
----
1522
2206
875

query I rowsort
SELECT - col2 + + + col1 AS col1 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5876
SELECT DISTINCT - + 23 * - COUNT( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-5876
SELECT DISTINCT - + 23 * - COUNT ( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT - + ( - COUNT( * ) ) + 4 FROM tab0 cor0
----
7

skipif mysql # not compatible
query I rowsort label-5877
SELECT - + ( - COUNT ( * ) ) + 4 FROM tab0 cor0
----
7

query II rowsort
SELECT ALL - + col0, col0 AS col2 FROM tab2 cor0
----
-46
46
-64
64
-75
75

query III rowsort
SELECT * FROM tab1 WHERE + 13 * + 7 IS NULL
----

query II rowsort
SELECT ALL 64 * - 26 AS col0, 7 FROM tab0
----
-1664
7
-1664
7
-1664
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5881
SELECT - MAX( - 76 ) FROM tab1
----
76

skipif mysql # not compatible
query I rowsort label-5881
SELECT - MAX ( - 76 ) FROM tab1
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-5882
SELECT DISTINCT col2 + + - col1 DIV + + 15 AS col2 FROM tab2
----
20
35
54

skipif mysql # not compatible
query I rowsort label-5882
SELECT DISTINCT col2 + + - col1 / + + 15 AS col2 FROM tab2
----
20
35
54

query II rowsort
SELECT DISTINCT + col1 + + 54, - col2 - 74 AS col1 FROM tab1
----
101
-142
59
-133
68
-170

query I rowsort
SELECT 48 * + - ( 52 ) AS col1 FROM tab1
----
-2496
-2496
-2496

onlyif mysql # aggregate syntax: 
query I rowsort label-5885
SELECT + COUNT( - col1 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5885
SELECT + COUNT ( - col1 ) AS col1 FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5886
SELECT - col0 DIV 6 * - - col0 - - col1 AS col0 FROM tab2 AS cor0
----
-271
-563
-833

skipif mysql # not compatible
query I rowsort label-5886
SELECT - col0 / 6 * - - col0 - - col1 AS col0 FROM tab2 AS cor0
----
-271
-563
-833

query I rowsort
SELECT + 74 - - col2 * col2 AS col0 FROM tab2 cor0
----
1674
3438
603

query I rowsort
SELECT ALL - 89 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= - col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > col1 / + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5890
SELECT CAST( NULL AS SIGNED ) * + COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5890
SELECT CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5891
SELECT ALL - COUNT( + col1 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5891
SELECT ALL - COUNT ( + col1 ) FROM tab0
----
-3

query II rowsort
SELECT DISTINCT - col0, 31 AS col0 FROM tab2
----
-46
31
-64
31
-75
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5893
SELECT - MIN( DISTINCT - 46 ) * 87 FROM tab2
----
4002

skipif mysql # not compatible
query I rowsort label-5893
SELECT - MIN ( DISTINCT - 46 ) * 87 FROM tab2
----
4002

onlyif mysql # DIV for integer division: 
query I rowsort label-5894
SELECT - col2 DIV + 1 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5894
SELECT - col2 / + 1 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5895
SELECT ALL - COUNT( * ) * COUNT( * ) AS col1 FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5895
SELECT ALL - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2 cor0
----
-9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col1 + col2 ) >= - col1 * ( + 56 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + ( + col0 ) * - - 71 FROM tab1 AS cor0
----
-3621
-6035
-6461

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5898
SELECT + col0 * + - CAST( NULL AS SIGNED ) / - 24 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5898
SELECT + col0 * + - CAST ( NULL AS INTEGER ) / - 24 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5899
SELECT ALL CAST( NULL AS SIGNED ) / - col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5899
SELECT ALL CAST ( NULL AS INTEGER ) / - col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + - + ( - + 93 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( 20 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5901
SELECT DISTINCT ( - COUNT( * ) ) AS col2, COUNT( DISTINCT + col2 ) AS col0 FROM tab0 cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-5901
SELECT DISTINCT ( - COUNT ( * ) ) AS col2, COUNT ( DISTINCT + col2 ) AS col0 FROM tab0 cor0
----
-3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 46 + col2 col1 FROM tab2
----
104
69
86

query I rowsort
SELECT DISTINCT col2 - + 79 + + 17 FROM tab0
----
-15
-52
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5904
SELECT DISTINCT + - COUNT( * ) * - - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5904
SELECT DISTINCT + - COUNT ( * ) * - - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL - 92 - col1 * - col0 FROM tab2 AS cor0
----
2254
4836
4933

onlyif mysql # aggregate syntax: 
query I rowsort label-5906
SELECT - SUM( ALL col1 ) col1 FROM tab1 cor0
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5906
SELECT - SUM ( ALL col1 ) col1 FROM tab1 cor0
----
-66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 NOT IN ( col2 * + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 46 + + 54 AS col0 FROM tab1
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5909
SELECT + CAST( NULL AS SIGNED ) FROM tab0 WHERE col1 * - col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5909
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 WHERE col1 * - col1 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * 64 + + col0 FROM tab0
----
5655
6305
975

query I rowsort
SELECT col2 * + + col0 + col0 FROM tab1
----
4947
5100
6279

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 / col0 / - + 80 / + col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5913
SELECT ALL COUNT( * ) + + - COUNT( * ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5913
SELECT ALL COUNT ( * ) + + - COUNT ( * ) AS col2 FROM tab0
----
0

query II rowsort
SELECT DISTINCT col1 + + 65 - - - ( + col0 ) * + col1 + col0 AS col2, - col0 FROM tab2
----
-2184
-46
-4722
-64
-4818
-75

onlyif mysql # DIV for integer division: 
query II rowsort label-5915
SELECT ALL + col2 * col2 DIV + col0 - + col2, 91 AS col1 FROM tab1
----
-18
91
-19
91
84
91

skipif mysql # not compatible
query II rowsort label-5915
SELECT ALL + col2 * col2 / + col0 - + col2, 91 AS col1 FROM tab1
----
-18
91
-19
91
84
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 28 col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-5917
SELECT ALL col2 + + col0 DIV 22 FROM tab1 cor0
----
62
72
98

skipif mysql # not compatible
query I rowsort label-5917
SELECT ALL col2 + + col0 / 22 FROM tab1 cor0
----
62
72
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5918
SELECT DISTINCT - col0 * - 11 * CAST( NULL AS SIGNED ) - - + col2 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5918
SELECT DISTINCT - col0 * - 11 * CAST ( NULL AS INTEGER ) - - + col2 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + 8 * col2 AS col0 FROM tab2 AS cor0
----
184
320
464

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 / col1 IN ( - col2 + + - 80 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-5921
SELECT - ( - 33 ) AS col0, + COUNT( * ) AS col2 FROM tab2 cor0
----
33
3

skipif mysql # not compatible
query II rowsort label-5921
SELECT - ( - 33 ) AS col0, + COUNT ( * ) AS col2 FROM tab2 cor0
----
33
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5922
SELECT DISTINCT + COUNT( * ) AS col2, CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-5922
SELECT DISTINCT + COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
3
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5923
SELECT + + col1 DIV col2 col1, + col0 DIV - CAST( - col0 AS SIGNED ) + - + 16 AS col0 FROM tab2 AS cor0
----
1
-15
1
-15
2
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5923
SELECT + + col1 / col2 col1, + col0 / - CAST ( - col0 AS INTEGER ) + - + 16 AS col0 FROM tab2 AS cor0
----
1
-15
1
-15
2
-15

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 + 2 IS NULL
----

query I rowsort
SELECT ( + - col2 ) AS col0 FROM tab1 cor0
----
-59
-68
-96

query I rowsort
SELECT ALL + + 67 * + col0 AS col0 FROM tab0 AS cor0
----
1005
5829
6499

onlyif mysql # DIV for integer division: 
query I rowsort label-5927
SELECT DISTINCT ( - - col1 ) DIV + 13 FROM tab2 AS cor0
----
3
5

skipif mysql # not compatible
query I rowsort label-5927
SELECT DISTINCT ( - - col1 ) / + 13 FROM tab2 AS cor0
----
3
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5928
SELECT DISTINCT SUM( - + col2 ) * SUM( ALL + + 38 ) FROM tab2
----
-13794

skipif mysql # not compatible
query I rowsort label-5928
SELECT DISTINCT SUM ( - + col2 ) * SUM ( ALL + + 38 ) FROM tab2
----
-13794

query I rowsort
SELECT DISTINCT + ( - 56 ) * + col0 FROM tab0
----
-4872
-5432
-840

query I rowsort
SELECT ALL col2 * col1 * - - col2 + - col1 AS col0 FROM tab1
----
129010
17400
217281

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5931
SELECT ALL + COUNT( * ) DIV + COUNT( * ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5931
SELECT ALL + COUNT ( * ) / + COUNT ( * ) FROM tab0
----
1

query II rowsort
SELECT DISTINCT - 54 AS col0, 21 - - - ( - 71 ) * col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-54
1086
-54
6198
-54
6908

query II rowsort
SELECT + 61, - col1 AS col2 FROM tab1 AS cor0
----
61
-14
61
-47
61
-5

query II rowsort
SELECT DISTINCT 94 * col1 + + + 11 + + 58, + col1 AS col1 FROM tab2
----
4863
51
6367
67
7307
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5935
SELECT ALL + + COUNT( * ) + MIN( - 25 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-16

skipif mysql # not compatible
query I rowsort label-5935
SELECT ALL + + COUNT ( * ) + MIN ( - 25 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-16

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col1 ) <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5937
SELECT 99 + + + 29 DIV - ( + col0 ) AS col0 FROM tab2 cor0
----
99
99
99

skipif mysql # not compatible
query I rowsort label-5937
SELECT 99 + + + 29 / - ( + col0 ) AS col0 FROM tab2 cor0
----
99
99
99

query I rowsort
SELECT + - col1 + + - col2 + - 90 FROM tab1 AS cor0
----
-154
-200
-205

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5939
SELECT ALL * FROM tab0 cor0 WHERE NOT col0 * - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5939
SELECT ALL * FROM tab0 cor0 WHERE NOT col0 * - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 14 + + col0 - 6 * col0 col1, 24 + - col1 + + col2 AS col0 FROM tab2 AS cor0
----
-216
-4
-306
-13
-361
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5941
SELECT + COUNT( 75 ) col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5941
SELECT + COUNT ( 75 ) col2 FROM tab0 cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + 41 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5943
SELECT DISTINCT COUNT( * ) + + - ( - COUNT( * ) ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-5943
SELECT DISTINCT COUNT ( * ) + + - ( - COUNT ( * ) ) FROM tab1
----
6

query II rowsort
SELECT ALL col0, col0 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5945
SELECT - COUNT( * ) + + 96 AS col1 FROM tab0, tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-5945
SELECT - COUNT ( * ) + + 96 AS col1 FROM tab0, tab1 AS cor0
----
87

query II rowsort
SELECT col0 AS col2, ( 21 ) FROM tab1
----
51
21
85
21
91
21

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 73 + col0 + - + ( - + col0 ) * - col2 * ( 63 ) IN ( 78, 79, - + 77, 87, - col1, - col2 )
----

query I rowsort
SELECT ALL col2 * col0 * - - ( - col2 ) AS col0 FROM tab1 cor0
----
-295885
-420784
-470016

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT ( COUNT( + col2 ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5949
SELECT ( COUNT ( + col2 ) ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5950
SELECT ALL 29 * - MAX( + col1 ) AS col0 FROM tab2
----
-2233

skipif mysql # not compatible
query I rowsort label-5950
SELECT ALL 29 * - MAX ( + col1 ) AS col0 FROM tab2
----
-2233

onlyif mysql # DIV for integer division: 
query I rowsort label-5951
SELECT - + 76 DIV + col2 + - - 68 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
65
67
67

skipif mysql # not compatible
query I rowsort label-5951
SELECT - + 76 / + col2 + - - 68 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
65
67
67

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5953
SELECT DISTINCT - CAST( - - col1 AS SIGNED ) AS col1 FROM tab1 cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5953
SELECT DISTINCT - CAST ( - - col1 AS INTEGER ) AS col1 FROM tab1 cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5954
SELECT DISTINCT + + MIN( ALL col0 ) FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-5954
SELECT DISTINCT + + MIN ( ALL col0 ) FROM tab1 cor0
----
51

query I rowsort
SELECT DISTINCT - ( - 72 ) AS col1 FROM tab0 AS cor0
----
72

query I rowsort
SELECT DISTINCT - ( - + 17 ) + col1 FROM tab2 AS cor0
----
68
84
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5957
SELECT DISTINCT COUNT( + col0 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5957
SELECT DISTINCT COUNT ( + col0 ) AS col1 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 - + - 26 IS NOT NULL
----

query II rowsort
SELECT ALL col0 * + - col0, + 92 AS col1 FROM tab0
----
-225
92
-7569
92
-9409
92

query I rowsort
SELECT DISTINCT col1 + 60 + + col0 FROM tab0
----
156
158
168

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 17 = + - col1 + + - 17 - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 * + col0 + 56 * + col0 FROM tab0
----
15035
1545
5742

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5963
SELECT DISTINCT - col2 * - col1 / col2 * - col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5963
SELECT DISTINCT - col2 * - col1 / col2 * - col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + ( - col1 ) * 69 <> ( 13 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5965
SELECT ALL MIN( + col1 ), 64 AS col1 FROM tab0 cor0
----
1
64

skipif mysql # not compatible
query II rowsort label-5965
SELECT ALL MIN ( + col1 ), 64 AS col1 FROM tab0 cor0
----
1
64

query I rowsort
SELECT DISTINCT - 93 + - - 38 + - + col1 AS col2 FROM tab1 AS cor0
----
-102
-60
-69

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT + 37 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5968
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < - ( + col1 ) * - CAST( NULL AS SIGNED ) * - col0
----

skipif mysql # not compatible
query III rowsort label-5968
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < - ( + col1 ) * - CAST ( NULL AS INTEGER ) * - col0
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5970
SELECT 76 DIV - + 33 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

skipif mysql # not compatible
query I rowsort label-5970
SELECT 76 / - + 33 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5971
SELECT CAST( col1 AS SIGNED ) * - 57 - - + 29 * + - ( - 5 ) FROM tab2 AS cor0
----
-2762
-3674
-4244

skipif mysql # not compatible
query I rowsort label-5971
SELECT CAST ( col1 AS INTEGER ) * - 57 - - + 29 * + - ( - 5 ) FROM tab2 AS cor0
----
-2762
-3674
-4244

query I rowsort
SELECT ALL col0 - + - col1 FROM tab1 AS cor0
----
138
65
90

query II rowsort
SELECT DISTINCT 57 + + - col0 * - col0 + + col1, 23 AS col1 FROM tab1 AS cor0
----
2672
23
7287
23
8385
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5974
SELECT DISTINCT - CAST( + - 10 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-5974
SELECT DISTINCT - CAST ( + - 10 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
10

query I rowsort
SELECT - col0 - - col0 + - col1 AS col2 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT - - col1 - + ( - col2 ) FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT + ( + + 29 ) - - ( + - col0 ) FROM tab1 AS cor0
----
-22
-56
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5978
SELECT - COUNT( + 63 ) + - 7 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-5978
SELECT - COUNT ( + 63 ) + - 7 FROM tab0
----
-10

query I rowsort
SELECT ALL 39 * col1 AS col1 FROM tab0
----
3159
39
819

query I rowsort
SELECT ALL - - 12 AS col2 FROM tab0 AS cor0
----
12
12
12

query I rowsort
SELECT - + 95 FROM tab2 cor0
----
-95
-95
-95

query I rowsort
SELECT ALL + - col0 * + col2 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5983
SELECT DISTINCT COUNT( * ) AS col2, COUNT( * ) - + MAX( + - col2 ) + + + 84 * + CAST( NULL AS SIGNED ) * - MAX( + + 74 ) * + MAX( 30 ) - - + COUNT( * ) AS col0 FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-5983
SELECT DISTINCT COUNT ( * ) AS col2, COUNT ( * ) - + MAX ( + - col2 ) + + + 84 * + CAST ( NULL AS INTEGER ) * - MAX ( + + 74 ) * + MAX ( 30 ) - - + COUNT ( * ) AS col0 FROM tab2
----
3
NULL

query I rowsort
SELECT + col2 AS col1 FROM tab1 AS cor0 WHERE NOT 55 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5985
SELECT ALL MIN( + 51 ) AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5985
SELECT ALL MIN ( + 51 ) AS col2 FROM tab1 AS cor0
----
51

query II rowsort
SELECT ALL 32, - col1 AS col1 FROM tab0 AS cor0
----
32
-1
32
-21
32
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-5987
SELECT + + 4 DIV + col1 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5987
SELECT + + 4 / + col1 AS col0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 = + col1 + col2 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
SELECT + ( + MAX( - col1 ) ) AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-5989
SELECT + ( + MAX ( - col1 ) ) AS col1 FROM tab1 AS cor0
----
-5

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 45 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + ( - + 51 ) FROM tab1 AS cor0
----
-51
-51
-51

query I rowsort
SELECT - 73 + - 57 AS col0 FROM tab0
----
-130
-130
-130

query I rowsort
SELECT ALL + col1 + 34 - + 61 FROM tab0
----
-26
-6
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5994
SELECT DISTINCT - col2 * CAST( NULL AS SIGNED ) + + - col1 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5994
SELECT DISTINCT - col2 * CAST ( NULL AS INTEGER ) + + - col1 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT + - 19 - + col0 FROM tab0 WHERE 2 * - col1 + - 44 IS NOT NULL
----
-106
-116
-34

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5996
SELECT * FROM tab2 WHERE col0 * + 27 * - + col2 + + CAST( + col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5996
SELECT * FROM tab2 WHERE col0 * + 27 * - + col2 + + CAST ( + col0 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5997
SELECT ALL CAST( 46 AS SIGNED ) + - - col1 AS col0 FROM tab0
----
127
47
67

skipif mysql # not compatible
query I rowsort label-5997
SELECT ALL CAST ( 46 AS INTEGER ) + - - col1 AS col0 FROM tab0
----
127
47
67

query I rowsort
SELECT + + col0 AS col1 FROM tab1 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5999
SELECT DISTINCT + ( CAST( col1 AS SIGNED ) ) AS col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5999
SELECT DISTINCT + ( CAST ( col1 AS INTEGER ) ) AS col1 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6000
SELECT ALL - CAST( NULL AS SIGNED ) + - 8 * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6000
SELECT ALL - CAST ( NULL AS INTEGER ) + - 8 * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 6 FROM tab2 AS cor0 WHERE NULL < col1
----

query III rowsort
SELECT DISTINCT col1 * + 45 + - - col2 * - + col2, col0 + - col2 * 16 AS col2, + 60 AS col0 FROM tab2 AS cor0
----
9 values hashing to 5d92561d9572351712f2ee33284406ea

query II rowsort
SELECT DISTINCT col0 + + col0 AS col1, 67 FROM tab2
----
128
67
150
67
92
67

query I rowsort
SELECT 29 * col1 + - - 1 AS col2 FROM tab0
----
2350
30
610

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT ALL + 35 + MIN( DISTINCT - col0 ) col0 FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6005
SELECT ALL + 35 + MIN ( DISTINCT - col0 ) col0 FROM tab1 AS cor0
----
-56

query I rowsort
SELECT DISTINCT - - col0 + + 43 * - ( col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL = - 83
----

query I rowsort
SELECT + 49 + col2 AS col1 FROM tab2 AS cor0
----
107
72
89

query I rowsort
SELECT ALL + ( - col0 ) * - - col2 - - - col0 AS col2 FROM tab2 AS cor0
----
-1104
-2624
-4425

query I rowsort
SELECT DISTINCT - + col1 * + + 97 AS col1 FROM tab0 AS cor0
----
-2037
-7857
-97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT - 60 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6011
SELECT - - MAX( - col1 ) FROM tab2 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6011
SELECT - - MAX ( - col1 ) FROM tab2 WHERE NOT col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6012
SELECT + COUNT( * ) * + MIN( DISTINCT + col2 ) AS col1 FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-6012
SELECT + COUNT ( * ) * + MIN ( DISTINCT + col2 ) AS col1 FROM tab1
----
177

onlyif mysql # aggregate syntax: 
query II rowsort label-6013
SELECT DISTINCT COUNT( * ) AS col0, - COUNT( * ) * - 10 FROM tab0
----
3
30

skipif mysql # not compatible
query II rowsort label-6013
SELECT DISTINCT COUNT ( * ) AS col0, - COUNT ( * ) * - 10 FROM tab0
----
3
30

onlyif mysql # DIV for integer division: 
query I rowsort label-6014
SELECT - 18 DIV col0 AS col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6014
SELECT - 18 / col0 AS col0 FROM tab0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6015
SELECT ALL + col0 DIV - - 36 AS col1 FROM tab1
----
1
2
2

skipif mysql # not compatible
query I rowsort label-6015
SELECT ALL + col0 / - - 36 AS col1 FROM tab1
----
1
2
2

query I rowsort
SELECT + 16 * + 72 AS col1 FROM tab2
----
1152
1152
1152

query I rowsort
SELECT - + 76 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + col0 AS col2, - col0 FROM tab1
----
51
-51
85
-85
91
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6019
SELECT - COUNT( * ) DIV - 82 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6019
SELECT - COUNT ( * ) / - 82 AS col0 FROM tab1
----
0

query I rowsort
SELECT 72 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NOT + ( - - 48 ) < + - ( + 45 ) )
----

query I rowsort
SELECT 24 + + col1 AS col1 FROM tab1
----
29
38
71

query I rowsort
SELECT ALL - 68 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6023
SELECT DISTINCT + CAST( + 52 AS SIGNED ) AS col1 FROM tab2 cor0
----
52

skipif mysql # not compatible
query I rowsort label-6023
SELECT DISTINCT + CAST ( + 52 AS INTEGER ) AS col1 FROM tab2 cor0
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-6024
SELECT col2 DIV 50 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6024
SELECT col2 / 50 FROM tab0
----
0
0
1

query II rowsort
SELECT + ( - + ( + + col1 ) ), col0 FROM tab1
----
-14
51
-47
91
-5
85

query II rowsort
SELECT 51 * - - 74, + ( - col2 ) AS col1 FROM tab2 WHERE + + col2 IS NOT NULL
----
3774
-23
3774
-40
3774
-58

query I rowsort
SELECT ALL + 72 + - col0 + - 31 FROM tab0
----
-46
-56
26

onlyif mysql # DIV for integer division: 
query I rowsort label-6028
SELECT ALL col2 DIV - col2 + + col2 AS col0 FROM tab0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-6028
SELECT ALL col2 / - col2 + + col2 AS col0 FROM tab0
----
46
9
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6029
SELECT ( 5 ) + - + COUNT( * ) - - 75 FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-6029
SELECT ( 5 ) + - + COUNT ( * ) - - 75 FROM tab0
----
77

query I rowsort
SELECT DISTINCT - ( + col0 ) + - col2 FROM tab0 AS cor0
----
-196
-62
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-6031
SELECT - col1 AS col2, - col1 DIV - col2 AS col2 FROM tab2 cor0
----
-51
2
-67
1
-77
1

skipif mysql # not compatible
query II rowsort label-6031
SELECT - col1 AS col2, - col1 / - col2 AS col2 FROM tab2 cor0
----
-51
2
-67
1
-77
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * + + ( - col1 ) <> col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6033
SELECT COUNT( * ) col2, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6033
SELECT COUNT ( * ) col2, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
3
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> - 79
----

query I rowsort
SELECT ALL + col2 * + - col0 AS col1 FROM tab2 cor0
----
-1058
-2560
-4350

query II rowsort
SELECT - col0, - 88 AS col0 FROM tab2 AS cor0
----
-46
-88
-64
-88
-75
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 83 col0 FROM tab0 WHERE NOT + 5 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6038
SELECT ALL + col1 DIV + + col2 AS col1 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6038
SELECT ALL + col1 / + + col2 AS col1 FROM tab0
----
0
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6039
SELECT DISTINCT MIN( ALL - 77 ) AS col1 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-6039
SELECT DISTINCT MIN ( ALL - 77 ) AS col1 FROM tab2
----
-77

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL > ( NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6041
SELECT ALL - COUNT( * ) FROM tab1 WHERE NOT + col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6041
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NOT + col1 IS NULL
----
-3

query I rowsort
SELECT + - col1 FROM tab0 AS cor0 WHERE NOT + col2 <> - - 62
----

query I rowsort
SELECT ALL + 29 AS col2 FROM tab2 AS cor0 WHERE NOT - col2 * - + ( - - col0 ) IS NULL
----
29
29
29

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 53 + - 95 = NULL
----

query II rowsort
SELECT ALL col2 * - col0 + + - col0 AS col0, + 94 AS col2 FROM tab0
----
-720
94
-957
94
-9700
94

query I rowsort
SELECT + col1 + - - col1 FROM tab2 AS cor0
----
102
134
154

query I rowsort
SELECT + 90 + + 19 FROM tab0 AS cor0
----
109
109
109

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col0 * col2 = - - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - 56 AS col2 FROM tab1 AS cor0 WHERE ( NULL >= + 62 )
----

query I rowsort
SELECT + 95 + + col0 AS col1 FROM tab0 AS cor0
----
110
182
192

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 + col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - ( + + col2 ) * - - ( + 90 ) + 90 + - - 49 * - col0 FROM tab1 AS cor0
----
-10489
-11049
-9385

query I rowsort
SELECT - + 16 + - col1 AS col2 FROM tab2 AS cor0
----
-67
-83
-93

query I rowsort
SELECT - 3 + - 96 AS col0 FROM tab1 AS cor0
----
-99
-99
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6055
SELECT + - col0 + - - ( CAST( col2 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
-77
2
32

skipif mysql # not compatible
query I rowsort label-6055
SELECT + - col0 + - - ( CAST ( col2 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
-77
2
32

query II rowsort
SELECT ALL col2, - 56 FROM tab0 AS cor0
----
10
-56
47
-56
99
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6057
SELECT DISTINCT - ( + COUNT( * ) ) + ( 40 ) FROM tab0 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-6057
SELECT DISTINCT - ( + COUNT ( * ) ) + ( 40 ) FROM tab0 AS cor0
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6058
SELECT DISTINCT - col2 + + col0 + 62 + - - col0 AS col2 FROM tab2 WHERE - col0 > - 3 + - CAST( - + col2 AS SIGNED ) * + - 18
----
131
150
154

skipif mysql # not compatible
query I rowsort label-6058
SELECT DISTINCT - col2 + + col0 + 62 + - - col0 AS col2 FROM tab2 WHERE - col0 > - 3 + - CAST ( - + col2 AS INTEGER ) * + - 18
----
131
150
154

query I rowsort
SELECT ALL + 73 FROM tab0 WHERE - 21 * - col2 + - col1 IS NULL
----

query I rowsort
SELECT DISTINCT - + col0 * ( col1 ) AS col1 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT 41 - + col2 FROM tab0 cor0
----
-58
-6
31

query I rowsort
SELECT DISTINCT + 71 * + col2 * + col0 AS col0 FROM tab2 AS cor0
----
181760
308850
75118

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT - 28 + - COUNT( * ) + + - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-46

skipif mysql # not compatible
query I rowsort label-6063
SELECT - 28 + - COUNT ( * ) + + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-46

query I rowsort
SELECT DISTINCT 70 * - 84 FROM tab1
----
-5880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 12, col2 col2 FROM tab1
----
12
59
12
68
12
96

query I rowsort
SELECT DISTINCT ( - 44 ) FROM tab0 cor0
----
-44

query II rowsort
SELECT - col1, - 20 AS col0 FROM tab2 AS cor0
----
-51
-20
-67
-20
-77
-20

query I rowsort
SELECT - 34 FROM tab0 AS cor0 WHERE NOT ( col0 ) IS NULL
----
-34
-34
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - - col1 ) + col2 col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * + + col1 AS col0 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6071
SELECT DISTINCT - 89 * COUNT( * ) * + + COUNT( * ) AS col1 FROM tab1
----
-801

skipif mysql # not compatible
query I rowsort label-6071
SELECT DISTINCT - 89 * COUNT ( * ) * + + COUNT ( * ) AS col1 FROM tab1
----
-801

query I rowsort
SELECT col2 * - col0 * + ( - ( 60 ) ) AS col2 FROM tab2
----
153600
261000
63480

onlyif mysql # aggregate syntax: 
query I rowsort label-6073
SELECT MAX( DISTINCT + col0 ) * - 67 AS col0 FROM tab2
----
-5025

skipif mysql # not compatible
query I rowsort label-6073
SELECT MAX ( DISTINCT + col0 ) * - 67 AS col0 FROM tab2
----
-5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 * + - col0 col0, ( - col2 ) col2 FROM tab0 AS cor0
----
705
-47
870
-10
9603
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 76 * + col2 + + 13 col0 FROM tab2
----
1761
3053
4421

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6076
SELECT DISTINCT col1 * + + 74 + col1 + - col0 - 56 / + + col2 * + CAST( NULL AS SIGNED ) * - 48 / + 37 + + + col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6076
SELECT DISTINCT col1 * + + 74 + col1 + - col0 - 56 / + + col2 * + CAST ( NULL AS INTEGER ) * - 48 / + 37 + + + col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6077
SELECT + - COUNT( * ) FROM tab1 AS cor0 WHERE + 75 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6077
SELECT + - COUNT ( * ) FROM tab1 AS cor0 WHERE + 75 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT DISTINCT - MAX( - - col0 ) FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-6078
SELECT DISTINCT - MAX ( - - col0 ) FROM tab0 cor0
----
-97

query I rowsort
SELECT ALL - col1 + - + col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - - col0 AS col0 FROM tab1 AS cor0 WHERE col2 / - col0 IS NOT NULL
----
51
85
91

query I rowsort
SELECT 13 - + - col0 AS col0 FROM tab1
----
104
64
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6082
SELECT + CAST( NULL AS SIGNED ) * 97 + + - COUNT( * ) * + SUM( + + 66 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6082
SELECT + CAST ( NULL AS INTEGER ) * 97 + + - COUNT ( * ) * + SUM ( + + 66 ) AS col2 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 63 IS NULL )
----

query I rowsort
SELECT 15 * col2 + - ( 86 ) AS col2 FROM tab2
----
259
514
784

query III rowsort
SELECT * FROM tab1 WHERE + 74 <= NULL
----

query I rowsort
SELECT 44 + col0 AS col1 FROM tab1
----
129
135
95

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 BETWEEN - 25 AND + + col2 / - - 52 - + 76
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6088
SELECT col1 + col2 - col0 * col0 DIV + 69 AS col0 FROM tab2
----
44
44
58

skipif mysql # not compatible
query I rowsort label-6088
SELECT col1 + col2 - col0 * col0 / + 69 AS col0 FROM tab2
----
44
44
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6089
SELECT ALL + MAX( col0 ) * + - 57 + + 40 * - 99 + + - CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6089
SELECT ALL + MAX ( col0 ) * + - 57 + + 40 * - 99 + + - CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - 61 - - col2 AS col1 FROM tab0
----
-14
-51
38

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 66 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6092
SELECT DISTINCT + COUNT( * ) + - 73 AS col1 FROM tab0 cor0
----
-70

skipif mysql # not compatible
query I rowsort label-6092
SELECT DISTINCT + COUNT ( * ) + - 73 AS col1 FROM tab0 cor0
----
-70

query I rowsort
SELECT ALL - + 36 - - 84 AS col1 FROM tab2 AS cor0
----
48
48
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6094
SELECT ALL - col1 + - - col1 + ( - - col2 ) + col2 + - col0 * + + CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6094
SELECT ALL - col1 + - - col1 + ( - - col2 ) + col2 + - col0 * + + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( 71 ) FROM tab0 AS cor0
----
71
71
71

query II rowsort
SELECT - - 99 * - col0 * + col0 AS col2, col0 + - ( - - col0 ) FROM tab2 AS cor0
----
-209484
0
-405504
0
-556875
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6097
SELECT ALL + col0 - col0 / - ( + - CAST( NULL AS SIGNED ) ) / - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6097
SELECT ALL + col0 - col0 / - ( + - CAST ( NULL AS INTEGER ) ) / - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 18 - - col1 + 55 - + - col2 AS col2 FROM tab0 AS cor0
----
104
173
201

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6099
SELECT ALL - - col0 - - col1 - 28 AS col2, + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
68
NULL
70
NULL
80
NULL

skipif mysql # not compatible
query II rowsort label-6099
SELECT ALL - - col0 - - col1 - 28 AS col2, + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
68
NULL
70
NULL
80
NULL

query II rowsort
SELECT 9, col1 AS col2 FROM tab0 cor0 WHERE 3 IS NOT NULL
----
9
1
9
21
9
81

query II rowsort
SELECT + + col0 AS col0, col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

query I rowsort
SELECT - col1 * col0 + + col1 AS col0 FROM tab0
----
-1134
-1806
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT DISTINCT - SUM( + 20 ) FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-6103
SELECT DISTINCT - SUM ( + 20 ) FROM tab1
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-6104
SELECT col0 DIV col2 - ( - col1 + col2 ) FROM tab1
----
-20
-53
-82

skipif mysql # not compatible
query I rowsort label-6104
SELECT col0 / col2 - ( - col1 + col2 ) FROM tab1
----
-20
-53
-82

query I rowsort
SELECT col2 + + 88 AS col2 FROM tab2
----
111
128
146

onlyif mysql # aggregate syntax: 
query I rowsort label-6106
SELECT + COUNT( ALL + 90 ) * COUNT( * ) + - ( + SUM( 26 ) + - 57 ) AS col2 FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-6106
SELECT + COUNT ( ALL + 90 ) * COUNT ( * ) + - ( + SUM ( 26 ) + - 57 ) AS col2 FROM tab1
----
-12

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 39 * - col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col2 ) + - col2 <> - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6109
SELECT DISTINCT 89 + 38 DIV + col1 FROM tab1
----
89
91
96

skipif mysql # not compatible
query I rowsort label-6109
SELECT DISTINCT 89 + 38 / + col1 FROM tab1
----
89
91
96

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN 50 AND NULL
----

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT ( col1 - col2 ) <> NULL
----

query I rowsort
SELECT ALL + col2 AS col1 FROM tab1 WHERE NOT NULL NOT IN ( + col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( 54 )
----

query I rowsort
SELECT + ( ( col2 ) ) + 28 * + ( 56 * col2 ) FROM tab2
----
36087
62760
91002

query I rowsort
SELECT ALL 20 * + 7 + - col1 * col1 FROM tab1 WHERE NOT + col1 <= + 66
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( col2 + ( + col0 ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 + col0 * - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT - col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col2 - + ( + 85 ) FROM tab1
----
-144
-153
-181

query I rowsort
SELECT DISTINCT ( col2 ) - col0 FROM tab1
----
-23
-26
45

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE 8 NOT IN ( col0 + col0 )
----
-10
-47
-99

query I rowsort
SELECT col1 + - 81 AS col2 FROM tab1 WHERE NOT 80 * col2 IS NOT NULL
----

query I rowsort
SELECT ALL 7 * + ( 31 ) + col2 AS col2 FROM tab0
----
227
264
316

onlyif mysql # aggregate syntax: 
query I rowsort label-6124
SELECT ALL ( MIN( col1 ) ) * + ( 95 + + COUNT( * ) ) + ( + COUNT( * ) ) AS col1 FROM tab0
----
101

skipif mysql # not compatible
query I rowsort label-6124
SELECT ALL ( MIN ( col1 ) ) * + ( 95 + + COUNT ( * ) ) + ( + COUNT ( * ) ) AS col1 FROM tab0
----
101

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 78 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 WHERE ( col0 * col1 ) <> ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE + 62 / + col0 + col2 IN ( - col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( 23 )
----

query I rowsort
SELECT 40 * - 96 AS col0 FROM tab0 AS cor0
----
-3840
-3840
-3840

onlyif mysql # DIV for integer division: 
query I rowsort label-6130
SELECT DISTINCT col2 DIV col1 AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6130
SELECT DISTINCT col2 / col1 AS col1 FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6131
SELECT - COUNT( * ) FROM tab1 cor0 WHERE NOT - col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6131
SELECT - COUNT ( * ) FROM tab1 cor0 WHERE NOT - col1 IS NULL
----
-3

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE ( - ( - col2 ) * - 15 + 26 ) IS NULL
----

query I rowsort
SELECT 88 * 8 FROM tab1 AS cor0
----
704
704
704

query I rowsort
SELECT ALL col1 * col2 + + 66 AS col2 FROM tab1
----
1410
3262
361

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col1 col1 FROM tab1
----
21
54
82

query I rowsort
SELECT 85 * + 50 + + 71 * 97 FROM tab1
----
11137
11137
11137

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 * - col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6138
SELECT 0 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6138
SELECT 0 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + + 70 * 82 + + col2 AS col2 FROM tab0 AS cor0
----
5750
5787
5839

query I rowsort
SELECT ALL + col2 * - 37 AS col0 FROM tab1 cor0 WHERE NOT NULL >= ( ( 64 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6141
SELECT ALL + COUNT( * ) * + 29 FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-6141
SELECT ALL + COUNT ( * ) * + 29 FROM tab0 AS cor0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6142
SELECT + MIN( col0 ) + 86 FROM tab2 AS cor0 WHERE col0 * + col2 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6142
SELECT + MIN ( col0 ) + 86 FROM tab2 AS cor0 WHERE col0 * + col2 = NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 67 ) NOT IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - col2 / + 17 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 + ( col1 ) AS col0 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT ALL + 68 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ( 2 ) FROM tab1 AS cor0 WHERE NULL <> NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 = - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6149
SELECT - ( - COUNT( * ) ) * SUM( col1 * col1 ) AS col0 FROM tab2 AS cor0
----
39057

skipif mysql # not compatible
query I rowsort label-6149
SELECT - ( - COUNT ( * ) ) * SUM ( col1 * col1 ) AS col0 FROM tab2 AS cor0
----
39057

query I rowsort
SELECT ALL 26 * - col0 AS col1 FROM tab2
----
-1196
-1664
-1950

query I rowsort
SELECT DISTINCT - 6 AS col0 FROM tab2 WHERE NOT 66 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 * - col1 * 21 FROM tab2
----
-103488
-105525
-49266

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6153
SELECT DISTINCT col1 * - col2 + col0 FROM tab0 WHERE ( CAST( - 4 AS SIGNED ) ) NOT BETWEEN + col1 AND ( NULL )
----
-123
-2
-3792

skipif mysql # not compatible
query I rowsort label-6153
SELECT DISTINCT col1 * - col2 + col0 FROM tab0 WHERE ( CAST ( - 4 AS INTEGER ) ) NOT BETWEEN + col1 AND ( NULL )
----
-123
-2
-3792

query I rowsort
SELECT ALL - 33 + 47 * 54 FROM tab0
----
2505
2505
2505

query I rowsort
SELECT 31 - - + col0 FROM tab0
----
118
128
46

onlyif mysql # DIV for integer division: 
query I rowsort label-6156
SELECT - 57 - + col1 DIV + 79 col2 FROM tab2
----
-57
-57
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6156
SELECT - 57 - + col1 / + 79 col2 FROM tab2
----
-57
-57
-57

query I rowsort
SELECT DISTINCT - col1 * col1 * 96 + col1 * 24 FROM tab1
----
-18480
-210936
-2280

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + col1 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT - - SUM( ALL - 69 ) FROM tab0 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-6159
SELECT - - SUM ( ALL - 69 ) FROM tab0 AS cor0
----
-207

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6160
SELECT CAST( NULL AS DECIMAL ) - 49 * - ( + 89 ) FROM tab0 WHERE NOT ( + col0 ) < col2 + - 54
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6160
SELECT CAST ( NULL AS REAL ) - 49 * - ( + 89 ) FROM tab0 WHERE NOT ( + col0 ) < col2 + - 54
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT + col0 / - col1 IS NULL )
----

query I rowsort
SELECT + 96 * + + col1 AS col0 FROM tab1
----
1344
4512
480

query I rowsort
SELECT DISTINCT 69 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL NOT IN ( + 4 )
----

query II rowsort
SELECT + 36, - 24 AS col2 FROM tab0
----
36
-24
36
-24
36
-24

query II rowsort
SELECT ALL + - 56 AS col0, 34 FROM tab1 cor0
----
-56
34
-56
34
-56
34

query II rowsort
SELECT DISTINCT - col2 AS col2, ( + - 36 ) FROM tab0 AS cor0
----
-10
-36
-47
-36
-99
-36

query I rowsort
SELECT + col1 - col0 * + ( col1 + col1 ) FROM tab0 AS cor0 WHERE NOT col2 <= + 21
----
-193
-2349

query I rowsort
SELECT DISTINCT 91 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
91

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT col1 - col0 + col2 = col1
----
1
21
81

query I rowsort
SELECT ALL + col1 + - ( col2 ) - + col2 FROM tab0
----
-13
-197
1

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 NOT BETWEEN - + 17 AND col0 * 92
----

query I rowsort
SELECT + ( - col0 ) * + col1 + - 84 AS col0 FROM tab2
----
-2430
-5012
-5109

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6173
SELECT * FROM tab2 WHERE NOT - 14 * + CAST( col2 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6173
SELECT * FROM tab2 WHERE NOT - 14 * + CAST ( col2 AS REAL ) IS NOT NULL
----

query I rowsort
SELECT ALL 10 FROM tab0 WHERE NOT - col1 NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT ALL - col0 + + col2 - + ( + + col2 ) AS col2 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT DISTINCT - MAX( ALL col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-6176
SELECT DISTINCT - MAX ( ALL col2 ) FROM tab0
----
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6177
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6177
SELECT DISTINCT - - CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + ( col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 66 col1 FROM tab0 AS cor0
----
-66

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
23
40
58

query I rowsort
SELECT + + 95 + - 14 FROM tab0 AS cor0
----
81
81
81

query II rowsort
SELECT col0, + col2 AS col2 FROM tab1
----
51
96
85
59
91
68

query I rowsort
SELECT ALL + - col2 - - 94 FROM tab1 AS cor0
----
-2
26
35

query II rowsort
SELECT ALL + 26, col1 FROM tab0 AS cor0 WHERE NOT ( - col2 ) IS NULL
----
26
1
26
21
26
81

query I rowsort
SELECT DISTINCT + - col2 - 98 FROM tab0 AS cor0
----
-108
-145
-197

query I rowsort
SELECT DISTINCT + col1 * + - col2 FROM tab2 cor0
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6187
SELECT + CAST( - + 59 AS SIGNED ) - + 80 FROM tab1 AS cor0
----
-139
-139
-139

skipif mysql # not compatible
query I rowsort label-6187
SELECT + CAST ( - + 59 AS INTEGER ) - + 80 FROM tab1 AS cor0
----
-139
-139
-139

query I rowsort
SELECT + col1 - + - 47 FROM tab2 cor0
----
114
124
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6189
SELECT ( COUNT( * ) ) - + - ( - 44 ) AS col0 FROM tab2 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-6189
SELECT ( COUNT ( * ) ) - + - ( - 44 ) AS col0 FROM tab2 AS cor0
----
-41

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 36 + + 6 - col0 >= col2 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6191
SELECT + 13 + + - COUNT( * ) AS col2 FROM tab2 cor0
----
10

skipif mysql # not compatible
query I rowsort label-6191
SELECT + 13 + + - COUNT ( * ) AS col2 FROM tab2 cor0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-6192
SELECT ALL col1 * + - col1 DIV + col1 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-6192
SELECT ALL col1 * + - col1 / + col1 FROM tab0
----
-1
-21
-81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT ( NULL ) NOT BETWEEN - col1 * 4 AND col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT COUNT( * ) AS col0 FROM tab1 WHERE ( NOT ( NULL ) >= - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-6194
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE ( NOT ( NULL ) >= - col0 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 1 * - 74 + - col1 col1 FROM tab0
----
-7
53
73

query III rowsort
SELECT * FROM tab1 WHERE col1 + - 99 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN - 3 AND - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6198
SELECT ALL col2 DIV + 67 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6198
SELECT ALL col2 / + 67 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + ( + - 7 ) + - + col0 AS col1 FROM tab1
----
-58
-92
-98

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 WHERE NOT + + col1 - - col1 BETWEEN ( col0 ) AND NULL
----
59
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 + - col2 BETWEEN ( NULL ) AND col2
----

query I rowsort
SELECT 6 / col0 + col0 * - 21 FROM tab2 WHERE NOT ( col2 * col0 * - - col1 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 94 col2 FROM tab2, tab1 AS cor0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6204
SELECT ( + 88 ) * + MIN( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
-6600

skipif mysql # not compatible
query I rowsort label-6204
SELECT ( + 88 ) * + MIN ( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
-6600

onlyif mysql # DIV for integer division: 
query II rowsort label-6205
SELECT ALL - + col1 DIV - col0 AS col1, - col1 + - + col2 + - col2 FROM tab2 AS cor0
----
0
-183
1
-157
1
-97

skipif mysql # not compatible
query II rowsort label-6205
SELECT ALL - + col1 / - col0 AS col1, - col1 + - + col2 + - col2 FROM tab2 AS cor0
----
0
-183
1
-157
1
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6206
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0, + SUM( DISTINCT - col0 ) FROM tab0 AS cor0
----
NULL
-199

skipif mysql # not compatible
query II rowsort label-6206
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0, + SUM ( DISTINCT - col0 ) FROM tab0 AS cor0
----
NULL
-199

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6207
SELECT col2, - col1 / + CAST( 68 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( 84 * - col2 )
----

skipif mysql # not compatible
query II rowsort label-6207
SELECT col2, - col1 / + CAST ( 68 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( 84 * - col2 )
----

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE NOT NULL NOT IN ( + col2 + - 66 * + 30 )
----

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE - col1 + - ( + col0 ) IS NULL
----

query I rowsort
SELECT ( + + col1 ) AS col0 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT DISTINCT + ( ( - + 90 ) ) * - + 3 * + col2 + + - col2 FROM tab1 AS cor0
----
15871
18292
25824

onlyif mysql # aggregate syntax: 
query I rowsort label-6212
SELECT ALL + 91 * COUNT( * ) FROM tab1 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-6212
SELECT ALL + 91 * COUNT ( * ) FROM tab1 AS cor0
----
273

query I rowsort
SELECT + 12 + - col2 * + 31 * + col1 FROM tab1 AS cor0
----
-41652
-9133
-99064

onlyif mysql # aggregate syntax: 
query I rowsort label-6214
SELECT - SUM( ALL + + 23 ) col0 FROM tab2 WHERE 99 IN ( col2 ) OR col1 NOT BETWEEN NULL AND ( NULL )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6214
SELECT - SUM ( ALL + + 23 ) col0 FROM tab2 WHERE 99 IN ( col2 ) OR col1 NOT BETWEEN NULL AND ( NULL )
----
NULL

query I rowsort
SELECT ( - + col1 ) AS col2 FROM tab0 WHERE NOT col2 - - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 60 + - col2 - + col2 + + - 43 AS col1 FROM tab1
----
-101
-119
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-6217
SELECT ALL + ( COUNT( * ) ) + + COUNT( * ) * + + ( + COUNT( * ) ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-6217
SELECT ALL + ( COUNT ( * ) ) + + COUNT ( * ) * + + ( + COUNT ( * ) ) FROM tab0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6218
SELECT - CAST( + ( - + col2 ) AS SIGNED ) col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6218
SELECT - CAST ( + ( - + col2 ) AS INTEGER ) col0 FROM tab2
----
23
40
58

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 IN ( 4 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 NOT IN ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( + + 27 ) FROM tab2 AS cor0
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6222
SELECT - - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-6222
SELECT - - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

query I rowsort
SELECT DISTINCT 33 + - - 53 FROM tab1
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6224
SELECT + - 31 + - CAST( NULL AS SIGNED ) - + 36 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6224
SELECT + - 31 + - CAST ( NULL AS INTEGER ) - + 36 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6225
SELECT - col0 * + - CAST( NULL AS SIGNED ) + - col2 + - 95 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6225
SELECT - col0 * + - CAST ( NULL AS INTEGER ) + - col2 + - 95 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - 19 + - col1, col1 FROM tab2 AS cor0
----
-70
51
-86
67
-96
77

query I rowsort
SELECT + 23 * - col2 AS col1 FROM tab1 AS cor0
----
-1357
-1564
-2208

query I rowsort
SELECT + - 22 * col1 AS col1 FROM tab0 AS cor0
----
-1782
-22
-462

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6229
SELECT CAST( 93 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
93
93
93

skipif mysql # not compatible
query I rowsort label-6229
SELECT CAST ( 93 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
93
93
93

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 + + 80 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT DISTINCT + + MIN( ALL + col2 ) FROM tab2 AS cor0 WHERE NOT col0 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6231
SELECT DISTINCT + + MIN ( ALL + col2 ) FROM tab2 AS cor0 WHERE NOT col0 <> NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + ( 75 ) )
----

query I rowsort
SELECT DISTINCT - col1 * - + 63 AS col0 FROM tab1
----
2961
315
882

onlyif mysql # aggregate syntax: 
query I rowsort label-6234
SELECT DISTINCT - MAX( 88 ) AS col1 FROM tab2
----
-88

skipif mysql # not compatible
query I rowsort label-6234
SELECT DISTINCT - MAX ( 88 ) AS col1 FROM tab2
----
-88

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN - ( - col0 ) / - 0 + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6236
SELECT ALL + COUNT( * ) * - 11 FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-6236
SELECT ALL + COUNT ( * ) * - 11 FROM tab0
----
-33

query I rowsort
SELECT ALL - 14 * 35 FROM tab2 AS cor0
----
-490
-490
-490

query I rowsort
SELECT DISTINCT - + 46 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-46

query III rowsort
SELECT ALL * FROM tab1 WHERE - + col2 * + - col1 NOT IN ( + + col0 * + 9 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT ALL COUNT( + ( + + col0 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6240
SELECT ALL COUNT ( + ( + + col0 ) ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-6241
SELECT ALL 55, COUNT( * ) AS col2 FROM tab1 AS cor0
----
55
3

skipif mysql # not compatible
query II rowsort label-6241
SELECT ALL 55, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
55
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6242
SELECT ( + - COUNT( * ) ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6242
SELECT ( + - COUNT ( * ) ) AS col2 FROM tab0 cor0
----
-3

query I rowsort
SELECT DISTINCT - + 84 * + + 19 AS col2 FROM tab2 AS cor0 WHERE col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, + 76 col2 FROM tab0 AS cor0
----
-10
76
-47
76
-99
76

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 * + col0 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6246
SELECT + col1 DIV col2 col2 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6246
SELECT + col1 / col2 col2 FROM tab0 AS cor0
----
0
1
2

query II rowsort
SELECT - 81 * col1, col1 AS col2 FROM tab0 AS cor0
----
-1701
21
-6561
81
-81
1

query II rowsort
SELECT - 60 AS col2, + 47 FROM tab1 AS cor0
----
-60
47
-60
47
-60
47

onlyif mysql # aggregate syntax: 
query II rowsort label-6249
SELECT + COUNT( + 29 ), COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-6249
SELECT + COUNT ( + 29 ), COUNT ( * ) FROM tab1
----
3
3

query I rowsort
SELECT ALL 55 + 13 * + 48 * - col2 AS col0 FROM tab1
----
-36761
-42377
-59849

onlyif mysql # DIV for integer division: 
query I rowsort label-6251
SELECT ALL - col0 DIV + col1 + 59 col0 FROM tab1
----
42
56
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6251
SELECT ALL - col0 / + col1 + 59 col0 FROM tab1
----
42
56
58

query I rowsort
SELECT DISTINCT col1 + - 37 * + col1 AS col2 FROM tab1
----
-1692
-180
-504

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6253
SELECT 17 / - col0 + - CAST( NULL AS DECIMAL ) * ( + col0 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6253
SELECT 17 / - col0 + - CAST ( NULL AS REAL ) * ( + col0 ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * - 55 + - + col0 AS col2 FROM tab0
----
-1242
-152
-4470

onlyif mysql # aggregate syntax: 
query II rowsort label-6255
SELECT DISTINCT - SUM( 55 ), + 98 + - 32 AS col0 FROM tab2
----
-165
66

skipif mysql # not compatible
query II rowsort label-6255
SELECT DISTINCT - SUM ( 55 ), + 98 + - 32 AS col0 FROM tab2
----
-165
66

query III rowsort
SELECT * FROM tab0 WHERE NULL = + col0
----

query I rowsort
SELECT + + col1 * + + col2 * - 97 + + col1 FROM tab2 AS cor0
----
-113730
-298683
-376875

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT ALL + + SUM( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-6258
SELECT ALL + + SUM ( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
223

query I rowsort
SELECT DISTINCT 90 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
90

query I rowsort
SELECT + col1 - 69 FROM tab0
----
-48
-68
12

query I rowsort
SELECT DISTINCT col0 - + 90 * col0 * - - col2 - - + 3 AS col1 FROM tab2 cor0
----
-230333
-391422
-95171

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE + 32 + + col2 / col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col1, + col1 col2 FROM tab1 AS cor0
----
14
14
47
47
5
5

query II rowsort
SELECT DISTINCT 65 AS col0, 64 FROM tab0 AS cor0
----
65
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6265
SELECT ALL - MIN( + col0 ) AS col1 FROM tab1 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6265
SELECT ALL - MIN ( + col0 ) AS col1 FROM tab1 WHERE NOT NULL >= NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) <> + 31
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6267
SELECT ALL SUM( ALL + col0 ) AS col1, ( + 87 ) FROM tab0
----
199
87

skipif mysql # not compatible
query II rowsort label-6267
SELECT ALL SUM ( ALL + col0 ) AS col1, ( + 87 ) FROM tab0
----
199
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6268
SELECT ALL + - col0 FROM tab0 AS cor0 WHERE col0 * - + col2 IN ( ( + CAST( NULL AS SIGNED ) ), - col1 )
----

skipif mysql # not compatible
query I rowsort label-6268
SELECT ALL + - col0 FROM tab0 AS cor0 WHERE col0 * - + col2 IN ( ( + CAST ( NULL AS INTEGER ) ), - col1 )
----

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE NOT - col1 * - - col0 + - 41 = + 12 + + + 53
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT + + COUNT( + col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6270
SELECT + + COUNT ( + col2 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6271
SELECT + + ( col1 ) * - col2 * + ( + - CAST( col2 AS SIGNED ) ) FROM tab1 AS cor0
----
129024
17405
217328

skipif mysql # not compatible
query I rowsort label-6271
SELECT + + ( col1 ) * - col2 * + ( + - CAST ( col2 AS INTEGER ) ) FROM tab1 AS cor0
----
129024
17405
217328

query I rowsort
SELECT + - 54 FROM tab0 cor0
----
-54
-54
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6273
SELECT DISTINCT + col2 * + CAST( - col2 AS SIGNED ) AS col1 FROM tab1
----
-3481
-4624
-9216

skipif mysql # not compatible
query I rowsort label-6273
SELECT DISTINCT + col2 * + CAST ( - col2 AS INTEGER ) AS col1 FROM tab1
----
-3481
-4624
-9216

query I rowsort
SELECT ALL col0 + - 42 AS col2 FROM tab2 AS cor0
----
22
33
4

query I rowsort
SELECT DISTINCT + + 41 * + + col1 AS col2 FROM tab2 AS cor0
----
2091
2747
3157

onlyif mysql # DIV for integer division: 
query I rowsort label-6276
SELECT ALL + col2 DIV 40 FROM tab1 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-6276
SELECT ALL + col2 / 40 FROM tab1 AS cor0
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6277
SELECT DISTINCT + MAX( ALL + 5 ) AS col2 FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-6277
SELECT DISTINCT + MAX ( ALL + 5 ) AS col2 FROM tab0 AS cor0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-6278
SELECT + + col1 DIV - - 99 + col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-6278
SELECT + + col1 / - - 99 + col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT + + 87 + - col0 FROM tab1 AS cor0
----
-4
2
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6280
SELECT DISTINCT + ( + col1 ) + + CAST( + 41 AS SIGNED ) + - - col1 * col2 FROM tab2
----
1265
3198
3994

skipif mysql # not compatible
query I rowsort label-6280
SELECT DISTINCT + ( + col1 ) + + CAST ( + 41 AS INTEGER ) + - - col1 * col2 FROM tab2
----
1265
3198
3994

query I rowsort
SELECT col0 * + 16 FROM tab2
----
1024
1200
736

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6282
SELECT col0 AS col0, + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-6282
SELECT col0 AS col0, + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab1
----
51
NULL
85
NULL
91
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6283
SELECT ALL + COUNT( * ), 46 col1 FROM tab0
----
3
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6283
SELECT ALL + COUNT ( * ), 46 col1 FROM tab0
----
3
46

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 67 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - col1 - ( - 42 ) - col0 AS col1 FROM tab0 AS cor0
----
-24
-54
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6286
SELECT ALL - - MAX( DISTINCT CAST( NULL AS SIGNED ) ) + - 42 AS col1 FROM tab1 cor0 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6286
SELECT ALL - - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) + - 42 AS col1 FROM tab1 cor0 WHERE NOT col1 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col2 - 92 col2 FROM tab2
----
-12
-46
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6288
SELECT 95 * COUNT( + + col0 ) + - COUNT( * ) AS col2 FROM tab2
----
282

skipif mysql # not compatible
query I rowsort label-6288
SELECT 95 * COUNT ( + + col0 ) + - COUNT ( * ) AS col2 FROM tab2
----
282

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 + + col1 col2, + ( - col2 ) + - - 25 * + col1 * - - col1 FROM tab0
----
100
-74
128
163978
31
11015

query I rowsort
SELECT 52 + - - col1 + + - ( col0 ) FROM tab2
----
44
57
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 33 - + col0 col0, + col2 * - + col2 + + col0 FROM tab1
----
-18
-9165
-52
-3396
-58
-4533

query I rowsort
SELECT + 60 * + col1 FROM tab0
----
1260
4860
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 80 AS col1, col1 col2 FROM tab1
----
80
14
80
47
80
5

onlyif mysql # DIV for integer division: 
query I rowsort label-6294
SELECT - 72 DIV col2 DIV + ( - col2 ) AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6294
SELECT - 72 / col2 / + ( - col2 ) AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT ( + + 84 ) * 73 * - 56 FROM tab0
----
-343392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6296
SELECT ALL col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6296
SELECT ALL col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 87 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT - col2 * col2 + + col2 FROM tab2 AS cor0
----
-1560
-3306
-506

query I rowsort
SELECT - 44 + - col1 * + + ( - + ( + col2 ) ) AS col0 FROM tab2
----
1129
3036
3842

query I rowsort
SELECT - - 24 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query II rowsort
SELECT ALL - + col0 + + col0 AS col2, 41 FROM tab2 WHERE NULL IS NULL
----
0
41
0
41
0
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6303
SELECT ALL + - CAST( NULL AS SIGNED ) / - 73 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6303
SELECT ALL + - CAST ( NULL AS INTEGER ) / - 73 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - + col2 * - + col1 AS col2 FROM tab2 WHERE col2 IS NOT NULL
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-6305
SELECT + MIN( DISTINCT - col2 ) AS col0 FROM tab2 cor0 WHERE - 12 NOT IN ( - col1 * + + ( + 15 ) )
----
-58

skipif mysql # not compatible
query I rowsort label-6305
SELECT + MIN ( DISTINCT - col2 ) AS col0 FROM tab2 cor0 WHERE - 12 NOT IN ( - col1 * + + ( + 15 ) )
----
-58

query I rowsort
SELECT DISTINCT col0 + - col1 * + + col1 FROM tab1 AS cor0 WHERE NOT 28 > NULL
----

query I rowsort
SELECT + col0 + - + col2 FROM tab2 AS cor0 WHERE 13 * - + col1 <= - col1 + + col2 * + col2 * col0
----
17
23
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6308
SELECT - MIN( + CAST( 71 AS SIGNED ) ) FROM tab0 cor0
----
-71

skipif mysql # not compatible
query I rowsort label-6308
SELECT - MIN ( + CAST ( 71 AS INTEGER ) ) FROM tab0 cor0
----
-71

query I rowsort
SELECT 86 - 99 FROM tab2
----
-13
-13
-13

query I rowsort
SELECT ALL ( - - 24 ) AS col2 FROM tab2
----
24
24
24

query I rowsort
SELECT ALL 22 * - - 30 * - 10 + + + 65 AS col1 FROM tab1
----
-6535
-6535
-6535

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 94 ) + + col0 col1 FROM tab2
----
-19
-30
-48

query I rowsort
SELECT 27 + + col0 FROM tab2
----
102
73
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6314
SELECT + ( + COUNT( * ) ) + - 73 AS col1 FROM tab1
----
-70

skipif mysql # not compatible
query I rowsort label-6314
SELECT + ( + COUNT ( * ) ) + - 73 AS col1 FROM tab1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6315
SELECT 34 + COUNT( * ) AS col1 FROM tab0
----
37

skipif mysql # not compatible
query I rowsort label-6315
SELECT 34 + COUNT ( * ) AS col1 FROM tab0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6316
SELECT ( + 11 ) + - + MIN( ALL - 32 ) FROM tab0
----
43

skipif mysql # not compatible
query I rowsort label-6316
SELECT ( + 11 ) + - + MIN ( ALL - 32 ) FROM tab0
----
43

query I rowsort
SELECT ALL 25 - col0 FROM tab1 AS cor0
----
-26
-60
-66

query I rowsort
SELECT ALL - 95 * col0 FROM tab1 AS cor0 WHERE NULL < ( NULL )
----

query I rowsort
SELECT ALL - ( - 5 ) - + col0 AS col2 FROM tab2 AS cor0
----
-41
-59
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6320
SELECT + + MIN( CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6320
SELECT + + MIN ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6321
SELECT DISTINCT - - COUNT( * ) * + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6321
SELECT DISTINCT - - COUNT ( * ) * + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6322
SELECT 7 * + - COUNT( ( + 54 ) ) FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-6322
SELECT 7 * + - COUNT ( ( + 54 ) ) FROM tab1 AS cor0
----
-21

query III rowsort
SELECT * FROM tab0 cor0 WHERE 12 * - + col2 * 51 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6324
SELECT - MIN( ALL - - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6324
SELECT - MIN ( ALL - - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 64 * 89 + col1 + + 45 AS col1 FROM tab2 cor0
----
-5574
-5584
-5600

query II rowsort
SELECT ALL - ( col2 ) * + 92 + - col1 AS col0, 76 FROM tab2
----
-2167
76
-3757
76
-5403
76

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NOT NULL BETWEEN NULL AND NULL )
----

query I rowsort
SELECT ALL - ( - 40 ) * 23 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 73529ed8cbdc4e117737a068b42ff4ea

onlyif mysql # aggregate syntax: 
query II rowsort label-6329
SELECT ALL + - 90 * + 65 col2, COUNT( * ) * 16 FROM tab2 AS cor0
----
-5850
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6329
SELECT ALL + - 90 * + 65 col2, COUNT ( * ) * 16 FROM tab2 AS cor0
----
-5850
48

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6330
SELECT DISTINCT col2 / - 24 / 65 + col2 FROM tab2 AS cor0 WHERE NOT + col2 + - CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6330
SELECT DISTINCT col2 / - 24 / 65 + col2 FROM tab2 AS cor0 WHERE NOT + col2 + - CAST ( NULL AS REAL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT COUNT( * ) * + SUM( ALL col2 ) AS col0 FROM tab1 AS cor0
----
669

skipif mysql # not compatible
query I rowsort label-6331
SELECT COUNT ( * ) * + SUM ( ALL col2 ) AS col0 FROM tab1 AS cor0
----
669

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 46 col0, col2 FROM tab2 AS cor0
----
-46
23
-46
40
-46
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6333
SELECT 8 * + CAST( NULL AS SIGNED ) * - col2 col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6333
SELECT 8 * + CAST ( NULL AS INTEGER ) * - col2 col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT DISTINCT + SUM( - col2 ) AS col1 FROM tab1 WHERE NOT col2 IS NULL
----
-223

skipif mysql # not compatible
query I rowsort label-6334
SELECT DISTINCT + SUM ( - col2 ) AS col1 FROM tab1 WHERE NOT col2 IS NULL
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-6335
SELECT + - SUM( DISTINCT + + 90 ) FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-6335
SELECT + - SUM ( DISTINCT + + 90 ) FROM tab1 AS cor0
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6336
SELECT + ( + CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6336
SELECT + ( + CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * - - 54 FROM tab0 AS cor0
----
-4698
-5238
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT DISTINCT - + COUNT( ALL - + col1 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6338
SELECT DISTINCT - + COUNT ( ALL - + col1 ) AS col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN col0 AND + col1
----

query I rowsort
SELECT 4 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT ALL - col0 + + 90 AS col2 FROM tab0
----
-7
3
75

query I rowsort
SELECT col1 + + col0 + ( + col1 ) * + col1 + ( + - col2 ) FROM tab1 AS cor0
----
165
2279
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 55 * - col0 + + col2 + + col1 + col0 col0 FROM tab2 AS cor0
----
2650
3701
4325

onlyif mysql # aggregate syntax: 
query I rowsort label-6344
SELECT + MIN( DISTINCT - 99 ) FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-6344
SELECT + MIN ( DISTINCT - 99 ) FROM tab1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6345
SELECT DISTINCT ( + - COUNT( * ) ) + + ( - COUNT( * ) ) AS col0 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-6345
SELECT DISTINCT ( + - COUNT ( * ) ) + + ( - COUNT ( * ) ) AS col0 FROM tab0
----
-6

query I rowsort
SELECT DISTINCT 60 - + + 34 + - col1 FROM tab2
----
-25
-41
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6347
SELECT + CAST( NULL AS SIGNED ) * + + col2 - + col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6347
SELECT + CAST ( NULL AS INTEGER ) * + + col2 - + col2 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6348
SELECT ALL COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( - col0 ) NOT BETWEEN + col0 * col2 - - col2 AND + + col0 * 77
----
3

skipif mysql # not compatible
query I rowsort label-6348
SELECT ALL COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( - col0 ) NOT BETWEEN + col0 * col2 - - col2 AND + + col0 * 77
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6349
SELECT - COUNT( * ) - + COUNT( * ) * - + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-6349
SELECT - COUNT ( * ) - + COUNT ( * ) * - + COUNT ( * ) FROM tab0 AS cor0
----
6

query I rowsort
SELECT DISTINCT + col2 * - 39 + 45 AS col1 FROM tab1 AS cor0
----
-2256
-2607
-3699

query II rowsort
SELECT ALL 52 * + - col1 AS col0, + col1 FROM tab0 AS cor0
----
-1092
21
-4212
81
-52
1

query I rowsort
SELECT ALL - col0 * + 47 + col2 * - col0 AS col2 FROM tab2 AS cor0
----
-3220
-5568
-7875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6353
SELECT ALL MIN( col0 ) FROM tab0 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) - - col1 + - col2 ) <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6353
SELECT ALL MIN ( col0 ) FROM tab0 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) - - col1 + - col2 ) <= NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + - 11 * - + col0 AS col1 FROM tab1 AS cor0
----
1001
561
935

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6356
SELECT - ( + + CAST( NULL AS SIGNED ) ) + + - col1 AS col1 FROM tab0 AS cor0 WHERE NOT col1 <> NULL
----

skipif mysql # not compatible
query I rowsort label-6356
SELECT - ( + + CAST ( NULL AS INTEGER ) ) + + - col1 AS col1 FROM tab0 AS cor0 WHERE NOT col1 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * + col2 col1 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6358
SELECT COUNT( * ) * + COUNT( * ) DIV COUNT( * ) * - - 9 DIV + 56 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6358
SELECT COUNT ( * ) * + COUNT ( * ) / COUNT ( * ) * - - 9 / + 56 AS col0 FROM tab0
----
0

query II rowsort
SELECT DISTINCT - 5 AS col0, - 59 * + col2 FROM tab1
----
-5
-3481
-5
-4012
-5
-5664

onlyif mysql # aggregate syntax: 
query I rowsort label-6360
SELECT + SUM( ALL 95 ) AS col0 FROM tab0
----
285

skipif mysql # not compatible
query I rowsort label-6360
SELECT + SUM ( ALL 95 ) AS col0 FROM tab0
----
285

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 - 31 + - col2 / + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-6362
SELECT + COUNT( * ), - 26 - 23 AS col1 FROM tab2
----
3
-49

skipif mysql # not compatible
query II rowsort label-6362
SELECT + COUNT ( * ), - 26 - 23 AS col1 FROM tab2
----
3
-49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col0 + 89 + - - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6364
SELECT ALL + 41 DIV - 99 + + - col0 AS col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-6364
SELECT ALL + 41 / - 99 + + - col0 AS col2 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT + AVG ( col2 ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6366
SELECT ALL - ( COUNT( * ) ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6366
SELECT ALL - ( COUNT ( * ) ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6367
SELECT ALL + SUM( 29 ) - 57 AS col2 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-6367
SELECT ALL + SUM ( 29 ) - 57 AS col2 FROM tab2 AS cor0
----
30

query I rowsort
SELECT ALL - - col0 * - 90 FROM tab2 AS cor0 WHERE NOT + 61 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6369
SELECT CAST( - - col0 AS SIGNED ) - - + 73 - + - col1 FROM tab2 AS cor0
----
170
214
215

skipif mysql # not compatible
query I rowsort label-6369
SELECT CAST ( - - col0 AS INTEGER ) - - + 73 - + - col1 FROM tab2 AS cor0
----
170
214
215

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - + 20 col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6371
SELECT ( - ( col2 ) ) * + col0 * col0 - - + col2 + + col1 DIV col1 + - ( + + 77 ) AS col1 FROM tab2 AS cor0
----
-163876
-326268
-48721

skipif mysql # not compatible
query I rowsort label-6371
SELECT ( - ( col2 ) ) * + col0 * col0 - - + col2 + + col1 / col1 + - ( + + 77 ) AS col1 FROM tab2 AS cor0
----
-163876
-326268
-48721

onlyif mysql # DIV for integer division: 
query I rowsort label-6372
SELECT - col1 DIV - col1 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6372
SELECT - col1 / - col1 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
1
1
1

query I rowsort
SELECT + col1 + - 19 AS col1 FROM tab2
----
32
48
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6374
SELECT DISTINCT - 36 + + + 86 - COUNT( * ) * COUNT( * ) * - COUNT( * ) FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-6374
SELECT DISTINCT - 36 + + + 86 - COUNT ( * ) * COUNT ( * ) * - COUNT ( * ) FROM tab0
----
77

query I rowsort
SELECT col1 + - 58 - - col0 * + col1 - - 45 * col1 FROM tab1
----
1300
597
6381

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6376
SELECT ALL CAST( NULL AS SIGNED ) + - + CAST( + 77 AS SIGNED ) + + MAX( DISTINCT + col0 ) + - COUNT( * ) * + - 67 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6376
SELECT ALL CAST ( NULL AS INTEGER ) + - + CAST ( + 77 AS INTEGER ) + + MAX ( DISTINCT + col0 ) + - COUNT ( * ) * + - 67 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - 53 * + 70 + + + col1 AS col1 FROM tab0 WHERE col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6378
SELECT DISTINCT - col2 - 9 * col1 * - + col2 AS col1, - 55 DIV col2 DIV 9 AS col1 FROM tab0
----
1880
0
34216
0
792
0

skipif mysql # not compatible
query II rowsort label-6378
SELECT DISTINCT - col2 - 9 * col1 * - + col2 AS col1, - 55 / col2 / 9 AS col1 FROM tab0
----
1880
0
34216
0
792
0

query I rowsort
SELECT DISTINCT col1 + + + 62 * col2 + - col0 + + - 45 FROM tab1 cor0
----
3533
4127
5870

onlyif mysql # aggregate syntax: 
query I rowsort label-6380
SELECT + MIN( 91 ) FROM tab0 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-6380
SELECT + MIN ( 91 ) FROM tab0 AS cor0
----
91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 43 + + 16 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6382
SELECT ALL - COUNT( * ) * - 46 * + + MIN( + ( + - CAST( - ( 90 ) AS SIGNED ) ) ) AS col2 FROM tab2 AS cor0
----
12420

skipif mysql # not compatible
query I rowsort label-6382
SELECT ALL - COUNT ( * ) * - 46 * + + MIN ( + ( + - CAST ( - ( 90 ) AS INTEGER ) ) ) AS col2 FROM tab2 AS cor0
----
12420

query I rowsort
SELECT + col1 - col1 FROM tab2 AS cor0 WHERE NOT + ( + + 88 ) + - col1 < NULL
----

query I rowsort
SELECT + ( col2 ) AS col0 FROM tab2 WHERE NOT + col2 >= + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6385
SELECT + col2, + col2 FROM tab2 AS cor0 WHERE NOT col2 >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-6385
SELECT + col2, + col2 FROM tab2 AS cor0 WHERE NOT col2 >= + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - - 83 AS col1 FROM tab1 AS cor0
----
83

query II rowsort
SELECT DISTINCT + col0 * 65 - + col2 + - - col1, + col0 * col1 * + - 95 AS col1 FROM tab0 AS cor0
----
1009
-115425
5666
-173565
6207
-9215

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6388
SELECT - CAST( NULL AS SIGNED ) * - 49 AS col0, + col2 * - 4 * 84 AS col1 FROM tab2 cor0
----
NULL
-13440
NULL
-19488
NULL
-7728

skipif mysql # not compatible
query II rowsort label-6388
SELECT - CAST ( NULL AS INTEGER ) * - 49 AS col0, + col2 * - 4 * 84 AS col1 FROM tab2 cor0
----
NULL
-13440
NULL
-19488
NULL
-7728

onlyif mysql # DIV for integer division: 
query I rowsort label-6389
SELECT ALL + - col0 DIV - + 97 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6389
SELECT ALL + - col0 / - + 97 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT col2 * - 42 AS col2 FROM tab0 AS cor0
----
-1974
-4158
-420

query I rowsort
SELECT DISTINCT + col1 * + col1 + - 90 AS col1 FROM tab0 AS cor0 WHERE - col2 / + col2 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6392
SELECT ALL + 37 DIV 93 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6392
SELECT ALL + 37 / 93 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6393
SELECT + col1 DIV - CAST( - 18 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
2
3
4

skipif mysql # not compatible
query I rowsort label-6393
SELECT + col1 / - CAST ( - 18 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
2
3
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6394
SELECT COUNT( 58 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6394
SELECT COUNT ( 58 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT - - col2 * - col0 * - col2 AS col0 FROM tab1 AS cor0
----
295885
420784
470016

query I rowsort
SELECT DISTINCT col2 + col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
118
136
192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6397
SELECT DISTINCT COUNT( * ) DIV + 56 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6397
SELECT DISTINCT COUNT ( * ) / + 56 AS col1 FROM tab2 AS cor0
----
0

query II rowsort
SELECT DISTINCT + col1 + - 82 + - 67 * + col0 * - 50, col2 FROM tab0
----
291389
10
324869
99
50249
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6399
SELECT ALL + CAST( NULL AS SIGNED ) + - 85 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6399
SELECT ALL + CAST ( NULL AS INTEGER ) + - 85 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6400
SELECT - COUNT( * ), CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-6400
SELECT - COUNT ( * ), CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-3
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 64 > - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6402
SELECT * FROM tab0 cor0 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6402
SELECT * FROM tab0 cor0 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 20 IN ( + col1 + - col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + - col2 - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 + - 90 FROM tab2
----
-13
-23
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6406
SELECT DISTINCT + ( - + MAX( DISTINCT + col0 ) ) AS col0 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-6406
SELECT DISTINCT + ( - + MAX ( DISTINCT + col0 ) ) AS col0 FROM tab0 AS cor0
----
-97

query II rowsort
SELECT ALL - col0, col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

query I rowsort
SELECT + col0 + - ( 26 ) * + col1 FROM tab2 cor0
----
-1280
-1667
-1938

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 48 col1 FROM tab1 AS cor0
----
-48
-48
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-6410
SELECT ALL - - col2 * col2 + col0 DIV - col2 - - col1 FROM tab2 AS cor0
----
1676
3430
578

skipif mysql # not compatible
query I rowsort label-6410
SELECT ALL - - col2 * col2 + col0 / - col2 - - col1 FROM tab2 AS cor0
----
1676
3430
578

query II rowsort
SELECT ALL - col2 AS col2, + ( 70 ) FROM tab1 cor0
----
-59
70
-68
70
-96
70

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> + col0
----

query I rowsort
SELECT ALL + col0 + 3 FROM tab2
----
49
67
78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6414
SELECT * FROM tab2 WHERE col1 < + col0 / - + col2 + col2 + - + CAST( + - col1 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6414
SELECT * FROM tab2 WHERE col1 < + col0 / - + col2 + col2 + - + CAST ( + - col1 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6415
SELECT 88 * - ( SUM( DISTINCT + col1 ) ) AS col1 FROM tab1
----
-5808

skipif mysql # not compatible
query I rowsort label-6415
SELECT 88 * - ( SUM ( DISTINCT + col1 ) ) AS col1 FROM tab1
----
-5808

onlyif mysql # DIV for integer division: 
query II rowsort label-6416
SELECT + col0 DIV - col2 AS col0, 71 + + - 60 AS col0 FROM tab2
----
-1
11
-1
11
-2
11

skipif mysql # not compatible
query II rowsort label-6416
SELECT + col0 / - col2 AS col0, 71 + + - 60 AS col0 FROM tab2
----
-1
11
-1
11
-2
11

query I rowsort
SELECT - ( + 24 ) FROM tab2 AS cor0
----
-24
-24
-24

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 / + - 17 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6419
SELECT DISTINCT + - MAX( DISTINCT + col2 ) FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-6419
SELECT DISTINCT + - MAX ( DISTINCT + col2 ) FROM tab0 cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6420
SELECT ALL - COUNT( + - 24 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6420
SELECT ALL - COUNT ( + - 24 ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6421
SELECT DISTINCT + MIN( ALL + 63 ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
63

skipif mysql # not compatible
query I rowsort label-6421
SELECT DISTINCT + MIN ( ALL + 63 ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
63

query I rowsort
SELECT DISTINCT + + 84 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6423
SELECT + + MIN( DISTINCT + 72 ) AS col2 FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-6423
SELECT + + MIN ( DISTINCT + 72 ) AS col2 FROM tab1 AS cor0
----
72

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6425
SELECT DISTINCT + CAST( col2 AS SIGNED ) AS col0 FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-6425
SELECT DISTINCT + CAST ( col2 AS INTEGER ) AS col0 FROM tab1 cor0
----
59
68
96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND col1 + + 3 + + ( - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6427
SELECT ALL - ( - col0 ) DIV - col1 FROM tab1 cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-6427
SELECT ALL - ( - col0 ) / - col1 FROM tab1 cor0
----
-1
-17
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6428
SELECT DISTINCT MAX( DISTINCT - + col0 ) AS col0 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-6428
SELECT DISTINCT MAX ( DISTINCT - + col0 ) AS col0 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT NULL > - 78
----

query I rowsort
SELECT ALL + ( - 46 ) + + 41 FROM tab1
----
-5
-5
-5

query II rowsort
SELECT ALL + col0 * - + col2 AS col1, - 34 * 35 AS col1 FROM tab0
----
-705
-1190
-870
-1190
-9603
-1190

onlyif mysql # aggregate syntax: 
query I rowsort label-6432
SELECT - SUM( + 61 ) AS col2 FROM tab0
----
-183

skipif mysql # not compatible
query I rowsort label-6432
SELECT - SUM ( + 61 ) AS col2 FROM tab0
----
-183

query I rowsort
SELECT DISTINCT - col2 + - + 71 FROM tab0
----
-118
-170
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6434
SELECT * FROM tab0 WHERE - + 28 > + CAST( col0 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-6434
SELECT * FROM tab0 WHERE - + 28 > + CAST ( col0 AS REAL )
----

query I rowsort
SELECT ( 46 ) AS col1 FROM tab1
----
46
46
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6436
SELECT ( - col1 ) + + - CAST( NULL AS SIGNED ) * col1 + CAST( + col1 AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6436
SELECT ( - col1 ) + + - CAST ( NULL AS INTEGER ) * col1 + CAST ( + col1 AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + - 48 * - col0 FROM tab0
----
4186
4755
767

onlyif mysql # aggregate syntax: 
query I rowsort label-6438
SELECT DISTINCT + COUNT( * ) col1 FROM tab0 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-6438
SELECT DISTINCT + COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6439
SELECT COUNT( * ), + CAST( - 0 AS SIGNED ) + 3 col0 FROM tab0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6439
SELECT COUNT ( * ), + CAST ( - 0 AS INTEGER ) + 3 col0 FROM tab0
----
3
3

query I rowsort
SELECT ( + + 35 ) AS col2 FROM tab1
----
35
35
35

query I rowsort
SELECT ALL - col2 + - + 3 AS col1 FROM tab2 AS cor0
----
-26
-43
-61

query I rowsort
SELECT DISTINCT + col2 * - col0 + col0 - - col2 FROM tab0 AS cor0
----
-643
-773
-9407

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT - 63 - + - MIN( ALL 58 ) FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-6443
SELECT - 63 - + - MIN ( ALL 58 ) FROM tab2 AS cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6444
SELECT - + ( - 49 ) + - - col2 AS col2, 27 * + CAST( NULL AS SIGNED ) * - - col0 FROM tab2 AS cor0
----
107
NULL
72
NULL
89
NULL

skipif mysql # not compatible
query II rowsort label-6444
SELECT - + ( - 49 ) + - - col2 AS col2, 27 * + CAST ( NULL AS INTEGER ) * - - col0 FROM tab2 AS cor0
----
107
NULL
72
NULL
89
NULL

query I rowsort
SELECT ALL + ( - col0 ) - + col1 FROM tab0 AS cor0
----
-108
-96
-98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6446
SELECT ALL - ( + + col2 ) * + col0 + + CAST( NULL AS SIGNED ) + col2 - CAST( - col0 AS SIGNED ) / - + col1, col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-6446
SELECT ALL - ( + + col2 ) * + col0 + + CAST ( NULL AS INTEGER ) + col2 - CAST ( - col0 AS INTEGER ) / - + col1, col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT DISTINCT - + 85 * + + 88 AS col1 FROM tab1 AS cor0
----
-7480

query II rowsort
SELECT ALL 3 AS col0, - col0 AS col0 FROM tab1
----
3
-51
3
-85
3
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6449
SELECT CAST( + - CAST( + col0 AS SIGNED ) AS SIGNED ) FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-6449
SELECT CAST ( + - CAST ( + col0 AS INTEGER ) AS INTEGER ) FROM tab1
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 50 AS col1, 95 col0 FROM tab2 WHERE NOT NULL > + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 col2 FROM tab0 WHERE NOT + col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6452
SELECT ALL CAST( NULL AS SIGNED ) * col1 + - col2 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-6452
SELECT ALL CAST ( NULL AS INTEGER ) * col1 + - col2 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6453
SELECT + COUNT( * ) * + + CAST( NULL AS SIGNED ) * + 44 + + MIN( ALL + col0 ) FROM tab1 WHERE NOT ( ( NULL ) > + - col2 - + col0 + + col0 * - 10 + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6453
SELECT + COUNT ( * ) * + + CAST ( NULL AS INTEGER ) * + 44 + + MIN ( ALL + col0 ) FROM tab1 WHERE NOT ( ( NULL ) > + - col2 - + col0 + + col0 * - 10 + col0 )
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL NOT BETWEEN + col0 + - + col1 + + + col0 - - 38 / + + 22 AND + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6455
SELECT DISTINCT 78 * - COUNT( * ) col1 FROM tab0
----
-234

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6455
SELECT DISTINCT 78 * - COUNT ( * ) col1 FROM tab0
----
-234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + - 67 col0 FROM tab2
----
-3417
-4489
-5159

query I rowsort
SELECT + col2 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
10
47
99

query II rowsort
SELECT - col2 AS col2, + col0 + col1 FROM tab0 AS cor0
----
-10
108
-47
96
-99
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT + + COUNT( + 14 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6459
SELECT + + COUNT ( + 14 ) FROM tab2 AS cor0
----
3

query II rowsort
SELECT ALL - + col0 AS col0, - col1 FROM tab2 AS cor0
----
-46
-51
-64
-77
-75
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6461
SELECT DISTINCT MIN( + 79 ) FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-6461
SELECT DISTINCT MIN ( + 79 ) FROM tab1
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6462
SELECT - SUM( + + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6462
SELECT - SUM ( + + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

query I rowsort
SELECT + col0 * - col1 + 25 AS col2 FROM tab2 AS cor0
----
-2321
-4903
-5000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6464
SELECT - CAST( + col2 AS SIGNED ) + - + 2 FROM tab0 AS cor0
----
-101
-12
-49

skipif mysql # not compatible
query I rowsort label-6464
SELECT - CAST ( + col2 AS INTEGER ) + - + 2 FROM tab0 AS cor0
----
-101
-12
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6465
SELECT - COUNT( * ) + + 66 * - 6 AS col2 FROM tab1 AS cor0
----
-399

skipif mysql # not compatible
query I rowsort label-6465
SELECT - COUNT ( * ) + + 66 * - 6 AS col2 FROM tab1 AS cor0
----
-399

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6466
SELECT + + col0 + - 37 + - + col1 + - - 50 / - CAST( NULL AS SIGNED ) * + col2 * + ( - 28 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6466
SELECT + + col0 + - 37 + - + col1 + - - 50 / - CAST ( NULL AS INTEGER ) * + col2 * + ( - 28 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + + - 37 * col0 FROM tab1 AS cor0
----
-1791
-3086
-3299

query I rowsort
SELECT col2 + + 78 * + col0 AS col0 FROM tab1 AS cor0
----
4074
6689
7166

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) > + 96
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6470
SELECT DISTINCT - COUNT( * ) AS col2, - MIN( ALL col0 ) FROM tab0
----
-3
-15

skipif mysql # not compatible
query II rowsort label-6470
SELECT DISTINCT - COUNT ( * ) AS col2, - MIN ( ALL col0 ) FROM tab0
----
-3
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 col0 FROM tab2 WHERE NULL IS NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6472
SELECT CAST( NULL AS SIGNED ) + - - ( ( - + 40 ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6472
SELECT CAST ( NULL AS INTEGER ) + - - ( ( - + 40 ) ) FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col0 AS col0, 13 FROM tab2
----
46
13
64
13
75
13

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN - col0 AND NULL
----

query II rowsort
SELECT DISTINCT col2, 22 AS col2 FROM tab2
----
23
22
40
22
58
22

query II rowsort
SELECT + 52, 25 AS col0 FROM tab0
----
52
25
52
25
52
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6477
SELECT ALL + ( - MIN( + - col2 ) ) * + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-6477
SELECT ALL + ( - MIN ( + - col2 ) ) * + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-6478
SELECT ALL - + ( + - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6478
SELECT ALL - + ( + - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - col2 - + 33 * - + col2 AS col2 FROM tab0 AS cor0
----
1504
3168
320

query I rowsort
SELECT ALL + col1 * + - col0 AS col0 FROM tab1 cor0
----
-425
-4277
-714

query II rowsort
SELECT DISTINCT 66 * + 42 + 91, - 8 AS col0 FROM tab2 cor0
----
2863
-8

query I rowsort
SELECT DISTINCT 18 AS col1 FROM tab0 WHERE 65 BETWEEN NULL AND - col1 + col2
----

query I rowsort
SELECT - col0 + col1 FROM tab0 WHERE - - 95 IS NOT NULL
----
-66
-96
66

query I rowsort
SELECT + col2 FROM tab1 WHERE - col1 IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6485
SELECT DISTINCT - COUNT( * ) * COUNT( * ) + - - 52 FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-6485
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) + - - 52 FROM tab1
----
43

query I rowsort
SELECT ALL + 22 + - 63 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

onlyif mysql # aggregate syntax: 
query I rowsort label-6487
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) * COUNT( * ) AS col1 FROM tab0 cor0
----
12

skipif mysql # not compatible
query I rowsort label-6487
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0 cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6488
SELECT - - MAX( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-6488
SELECT - - MAX ( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6489
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 BETWEEN CAST( NULL AS SIGNED ) * + - CAST( + + col0 AS SIGNED ) * - 78 + - - col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-6489
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 BETWEEN CAST ( NULL AS INTEGER ) * + - CAST ( + + col0 AS INTEGER ) * - 78 + - - col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 5 * - + col2 col2 FROM tab0 AS cor0
----
-235
-495
-50

query I rowsort
SELECT ALL - 93 * + col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT DISTINCT - MAX( ALL + - col1 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6492
SELECT DISTINCT - MAX ( ALL + - col1 ) AS col2 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT COUNT( * ) * 23 AS col1 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-6493
SELECT COUNT ( * ) * 23 AS col1 FROM tab0
----
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col1, - col1 AS col1 FROM tab2
----
51
-51
67
-67
77
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + + 19 col1 FROM tab1
----
1615
1729
969

onlyif mysql # DIV for integer division: 
query I rowsort label-6496
SELECT 70 DIV ( + 22 ) AS col1 FROM tab2
----
3
3
3

skipif mysql # not compatible
query I rowsort label-6496
SELECT 70 / ( + 22 ) AS col1 FROM tab2
----
3
3
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 82 <= NULL
----

query I rowsort
SELECT - + col2 + + - col1 FROM tab0 AS cor0
----
-100
-128
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-6499
SELECT + 12 + + 23 * 51 DIV - + col2 + col1 AS col1 FROM tab0
----
-84
2
69

skipif mysql # not compatible
query I rowsort label-6499
SELECT + 12 + + 23 * 51 / - + col2 + col1 AS col1 FROM tab0
----
-84
2
69

query I rowsort
SELECT col0 + 91 + col1 + - 46 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + col0, + ( + col1 ) + col0 - + + 29 * 77 AS col1 FROM tab0 AS cor0
----
15
-2137
87
-2125
97
-2135

onlyif mysql # aggregate syntax: 
query I rowsort label-6502
SELECT ALL ( - + MAX( + col0 ) ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-6502
SELECT ALL ( - + MAX ( + col0 ) ) FROM tab1 AS cor0
----
-91

query II rowsort
SELECT DISTINCT - 67 AS col0, - 10 FROM tab0 AS cor0
----
-67
-10

query I rowsort
SELECT 66 + - 21 FROM tab1 AS cor0 WHERE NULL <= NULL
----

query II rowsort
SELECT ALL + col2, + col0 AS col1 FROM tab2 AS cor0
----
23
46
40
64
58
75

query I rowsort
SELECT DISTINCT - col0 * + + col0 + + 48 FROM tab1 AS cor0
----
-2553
-7177
-8233

onlyif mysql # aggregate syntax: 
query I rowsort label-6507
SELECT COUNT( * ) * + 99 FROM tab2
----
297

skipif mysql # not compatible
query I rowsort label-6507
SELECT COUNT ( * ) * + 99 FROM tab2
----
297

query I rowsort
SELECT DISTINCT - 2 * - + 86 * + 19 AS col0 FROM tab1
----
3268

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6509
SELECT DISTINCT - col2 + + + CAST( NULL AS SIGNED ) * + col1 + + + col2 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6509
SELECT DISTINCT - col2 + + + CAST ( NULL AS INTEGER ) * + col1 + + + col2 AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6510
SELECT ALL ( CAST( NULL AS SIGNED ) ) + - AVG ( ALL + - ( + ( - 90 ) ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6510
SELECT ALL ( CAST ( NULL AS INTEGER ) ) + - AVG ( ALL + - ( + ( - 90 ) ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6511
SELECT DISTINCT MAX( ALL - 97 ) + 1 DIV + 23 + COUNT( * ) + + + COUNT( DISTINCT - col2 ) AS col1 FROM tab2
----
-91

skipif mysql # not compatible
query I rowsort label-6511
SELECT DISTINCT MAX ( ALL - 97 ) + 1 / + 23 + COUNT ( * ) + + + COUNT ( DISTINCT - col2 ) AS col1 FROM tab2
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6512
SELECT DISTINCT AVG ( - - col2 ) * + - 53 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6512
SELECT DISTINCT AVG ( - - col2 ) * + - 53 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6513
SELECT MIN( DISTINCT + col2 ) + + 99 AS col2 FROM tab0
----
109

skipif mysql # not compatible
query I rowsort label-6513
SELECT MIN ( DISTINCT + col2 ) + + 99 AS col2 FROM tab0
----
109

query I rowsort
SELECT ( + - col1 ) * - 13 + + col1 FROM tab1
----
196
658
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6515
SELECT DISTINCT 80 + + - COUNT( * ) col1 FROM tab0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6515
SELECT DISTINCT 80 + + - COUNT ( * ) col1 FROM tab0
----
77

query I rowsort
SELECT ALL - 70 - 36 FROM tab0 cor0
----
-106
-106
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT COUNT( * ) * + SUM( DISTINCT - 46 ) AS col0 FROM tab2 cor0
----
-138

skipif mysql # not compatible
query I rowsort label-6517
SELECT COUNT ( * ) * + SUM ( DISTINCT - 46 ) AS col0 FROM tab2 cor0
----
-138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6518
SELECT CAST( NULL AS SIGNED ) * - 10 + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6518
SELECT CAST ( NULL AS INTEGER ) * - 10 + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * ( - col2 ) FROM tab2 AS cor0
----
1058
2560
4350

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 50 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6521
SELECT DISTINCT col2 + - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6521
SELECT DISTINCT col2 + - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col1 * 35 AS col1 FROM tab1
----
1645
175
490

query I rowsort
SELECT ALL col1 * - 66 FROM tab1
----
-3102
-330
-924

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 95 + - - ( - 31 ) col1 FROM tab0
----
111
163
74

onlyif mysql # aggregate syntax: 
query II rowsort label-6525
SELECT DISTINCT - + 9 AS col1, COUNT( col0 ) + - + 43 + + - SUM( col1 ) FROM tab1 AS cor0
----
-9
-106

skipif mysql # not compatible
query II rowsort label-6525
SELECT DISTINCT - + 9 AS col1, COUNT ( col0 ) + - + 43 + + - SUM ( col1 ) FROM tab1 AS cor0
----
-9
-106

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 <> - 58
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - + col2 AS col2, 81 AS col0 FROM tab0 AS cor0
----
-10
81
-47
81
-99
81

onlyif mysql # DIV for integer division: 
query I rowsort label-6528
SELECT ALL col0 DIV - 36 FROM tab1 AS cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-6528
SELECT ALL col0 / - 36 FROM tab1 AS cor0
----
-1
-2
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6529
SELECT CAST( + + col1 AS SIGNED ) col2 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6529
SELECT CAST ( + + col1 AS INTEGER ) col2 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 - 21 * + + 51 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col1 * col0 * col0 - + col2 AS col1 FROM tab1 cor0
----
-36184
-36510
-389275

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6532
SELECT DISTINCT - MAX( ALL - col1 ) DIV 36 AS col2, 91 FROM tab0 AS cor0
----
0
91

skipif mysql # not compatible
query II rowsort label-6532
SELECT DISTINCT - MAX ( ALL - col1 ) / 36 AS col2, 91 FROM tab0 AS cor0
----
0
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6533
SELECT + CAST( - - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-6533
SELECT + CAST ( - - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
10
47
99

query II rowsort
SELECT ALL col2 + + 94 AS col2, col2 AS col0 FROM tab0 AS cor0
----
104
10
141
47
193
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6535
SELECT ALL + SUM( DISTINCT - 8 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-8

skipif mysql # not compatible
query I rowsort label-6535
SELECT ALL + SUM ( DISTINCT - 8 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6536
SELECT col0 + - CAST( NULL AS SIGNED ) + 25 * + 13 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6536
SELECT col0 + - CAST ( NULL AS INTEGER ) + 25 * + 13 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 4 + + - 78 FROM tab0 AS cor0
----
-74
-74
-74

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = - 9 * col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6539
SELECT DISTINCT + + ( + + col1 ) DIV - + col0 AS col0 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6539
SELECT DISTINCT + + ( + + col1 ) / - + col0 AS col0 FROM tab2 AS cor0
----
-1
0

query I rowsort
SELECT - + 97 + col2 FROM tab0 AS cor0
----
-50
-87
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT + - COUNT( ALL - - ( 66 ) ) + 90 FROM tab1 cor0
----
87

skipif mysql # not compatible
query I rowsort label-6541
SELECT + - COUNT ( ALL - - ( 66 ) ) + 90 FROM tab1 cor0
----
87

query I rowsort
SELECT - 95 + col1 + + ( + - col2 ) AS col1 FROM tab1 AS cor0
----
-116
-149
-177

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN NULL AND - + col2
----

query I rowsort
SELECT - - 57 * + + col1 FROM tab0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 32 * + col0 + - col1 FROM tab0
----
2763
3103
399

query II rowsort
SELECT + col2, - col2 AS col1 FROM tab1
----
59
-59
68
-68
96
-96

query II rowsort
SELECT ALL + - 56, col2 FROM tab2 WHERE col0 * ( 6 ) IS NOT NULL
----
-56
23
-56
40
-56
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + 37 col1 FROM tab0
----
-44
16
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6550
SELECT ALL - CAST( NULL AS SIGNED ) - + + 42 + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6550
SELECT ALL - CAST ( NULL AS INTEGER ) - + + 42 + col1 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT col1 AS col2, col2 * - - col1 AS col0 FROM tab1 WHERE + + 32 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6552
SELECT CAST( + SUM( ALL 30 ) AS SIGNED ) AS col1 FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-6552
SELECT CAST ( + SUM ( ALL 30 ) AS INTEGER ) AS col1 FROM tab0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6553
SELECT ALL + 17 * + COUNT( * ) + MAX( + + ( - col0 ) ) FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-6553
SELECT ALL + 17 * + COUNT ( * ) + MAX ( + + ( - col0 ) ) FROM tab2
----
5

query I rowsort
SELECT ALL - col2 + + 80 + 76 * 12 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
893
945
982

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <> ( - + col2 )
----

query I rowsort
SELECT 76 * 47 AS col0 FROM tab0
----
3572
3572
3572

query I rowsort
SELECT 48 * 26 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 33 * + col2 * col0 col2 FROM tab1 AS cor0
----
161568
165495
204204

onlyif mysql # aggregate syntax: 
query I rowsort label-6559
SELECT ALL 86 * - ( - COUNT( DISTINCT + col1 ) ) FROM tab1 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-6559
SELECT ALL 86 * - ( - COUNT ( DISTINCT + col1 ) ) FROM tab1 AS cor0
----
258

query I rowsort
SELECT DISTINCT + 80 * - 60 AS col1 FROM tab0 cor0
----
-4800

onlyif mysql # DIV for integer division: 
query I rowsort label-6561
SELECT DISTINCT - col2 DIV - 82 AS col0 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
0
1

skipif mysql # not compatible
query I rowsort label-6561
SELECT DISTINCT - col2 / - 82 AS col0 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6562
SELECT + COUNT( ALL - ( + col0 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6562
SELECT + COUNT ( ALL - ( + col0 ) ) FROM tab0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6563
SELECT ALL + 70 DIV COUNT( * ) FROM tab0, tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-6563
SELECT ALL + 70 / COUNT ( * ) FROM tab0, tab1 AS cor0
----
7

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= - col1
----

query I rowsort
SELECT - col1 * - 71 AS col1 FROM tab0
----
1491
5751
71

query I rowsort
SELECT DISTINCT col1 * + 99 AS col0 FROM tab1
----
1386
4653
495

query I rowsort
SELECT ALL + 52 * - 50 FROM tab1
----
-2600
-2600
-2600

onlyif mysql # DIV for integer division: 
query I rowsort label-6568
SELECT ALL 80 DIV + 74 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6568
SELECT ALL 80 / + 74 AS col0 FROM tab0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6569
SELECT MAX( ALL col2 ) FROM tab0 AS cor0 WHERE NOT ( 1 * + ( - 62 ) ) IS NULL
----
99

skipif mysql # not compatible
query I rowsort label-6569
SELECT MAX ( ALL col2 ) FROM tab0 AS cor0 WHERE NOT ( 1 * + ( - 62 ) ) IS NULL
----
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + + 53 / + ( + col0 ) NOT IN ( + 71, - col2 * + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 36 col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6572
SELECT + col1 * + col1 * col0 + - + ( - CAST( NULL AS SIGNED ) ) + + - col2 + - 14 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-6572
SELECT + col1 * + col1 * col0 + - + ( - CAST ( NULL AS INTEGER ) ) + + - col2 + - 14 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 62 * - col1 FROM tab1
----
-2914
-310
-868

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6574
SELECT ALL - col0 FROM tab1 WHERE col2 / col1 >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6574
SELECT ALL - col0 FROM tab1 WHERE col2 / col1 >= CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( - col1 ) + col2 IS NULL
----

query I rowsort
SELECT ALL 52 * col2 AS col2 FROM tab1
----
3068
3536
4992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6577
SELECT MAX( col2 ) * + COUNT( * ) AS col0 FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6577
SELECT MAX ( col2 ) * + COUNT ( * ) AS col0 FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( - col2 ) NOT BETWEEN NULL AND + 73 * + 90 + col1 / col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6579
SELECT ALL + 29 * - 52 + - COUNT( * ) FROM tab0 WHERE NOT col0 / 17 BETWEEN ( NULL ) AND + col2
----
-1508

skipif mysql # not compatible
query I rowsort label-6579
SELECT ALL + 29 * - 52 + - COUNT ( * ) FROM tab0 WHERE NOT col0 / 17 BETWEEN ( NULL ) AND + col2
----
-1508

query I rowsort
SELECT ALL 76 * + col0 FROM tab2
----
3496
4864
5700

onlyif mysql # aggregate syntax: 
query I rowsort label-6581
SELECT ALL MAX( ALL col0 ) AS col2 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-6581
SELECT ALL MAX ( ALL col0 ) AS col2 FROM tab1
----
91

query I rowsort
SELECT 50 + + 22 FROM tab1
----
72
72
72

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT ( ( 35 ) ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + 36 IS NULL
----

query I rowsort
SELECT ALL 96 FROM tab0 WHERE NOT ( + ( 62 ) ) = + col1
----
96
96
96

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT + col0 - col1 <> col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 col2 FROM tab2 WHERE + col1 - + col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6588
SELECT COUNT( DISTINCT - col1 ) DIV COUNT( * ) + COUNT( * ) AS col1 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-6588
SELECT COUNT ( DISTINCT - col1 ) / COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2
----
4

query III rowsort
SELECT * FROM tab1 WHERE NULL <= + 13 + + 12
----

query I rowsort
SELECT DISTINCT 91 + - col2 * - col0 FROM tab0
----
796
961
9694

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col1 FROM tab2 WHERE 68 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT + 70 * + COUNT( * ) AS col2 FROM tab0
----
210

skipif mysql # not compatible
query I rowsort label-6592
SELECT + 70 * + COUNT ( * ) AS col2 FROM tab0
----
210

query I rowsort
SELECT DISTINCT col1 + + col2 * col2 AS col1 FROM tab1 WHERE 54 >= ( NULL )
----

query I rowsort
SELECT + col0 + 62 FROM tab2
----
108
126
137

query I rowsort
SELECT col1 + + 29 FROM tab0
----
110
30
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT + COUNT( * ) FROM tab2 WHERE NOT NULL <= + col0
----
0

skipif mysql # not compatible
query I rowsort label-6596
SELECT + COUNT ( * ) FROM tab2 WHERE NOT NULL <= + col0
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 16 ) / col1 = - 65 * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE ( NULL ) <= ( NULL )
----

query I rowsort
SELECT 38 AS col2 FROM tab1 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 21 > ( col2 + col2 * 7 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6601
SELECT - COUNT( * ) DIV + 59 FROM tab0 AS cor0 CROSS JOIN tab1
----
0

skipif mysql # not compatible
query I rowsort label-6601
SELECT - COUNT ( * ) / + 59 FROM tab0 AS cor0 CROSS JOIN tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 97 - + 47 NOT BETWEEN + ( + col2 ) AND col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + AVG ( ALL 42 ) col2 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - - 62 * 71 AS col2 FROM tab0 AS cor0
----
4402
4402
4402

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6605
SELECT ALL - CAST( - AVG ( DISTINCT + 2 ) AS SIGNED ) FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-6605
SELECT ALL - CAST ( - AVG ( DISTINCT + 2 ) AS INTEGER ) FROM tab1 AS cor0
----
2

query I rowsort
SELECT 23 * + col0 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
2001
2231
345

query I rowsort
SELECT DISTINCT 81 FROM tab1 cor0 WHERE col1 = NULL
----

query I rowsort
SELECT - ( + 72 ) AS col2 FROM tab0
----
-72
-72
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6609
SELECT DISTINCT CAST( ( + 64 ) AS SIGNED ) + col2 FROM tab1
----
123
132
160

skipif mysql # not compatible
query I rowsort label-6609
SELECT DISTINCT CAST ( ( + 64 ) AS INTEGER ) + col2 FROM tab1
----
123
132
160

onlyif mysql # aggregate syntax: 
query I rowsort label-6610
SELECT + MAX( - - 62 ) FROM tab0
----
62

skipif mysql # not compatible
query I rowsort label-6610
SELECT + MAX ( - - 62 ) FROM tab0
----
62

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 83 + 0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 * 42 AS col0 FROM tab0
----
-3654
-4074
-630

query I rowsort
SELECT 82 AS col2 FROM tab2 WHERE NOT col1 >= col1
----

query I rowsort
SELECT ALL ( col2 ) FROM tab0 WHERE NOT col0 * col1 BETWEEN 50 AND NULL
----

query I rowsort
SELECT col0 + + col2 * + col2 FROM tab1 WHERE NOT - col2 >= 41
----
3566
4715
9267

onlyif mysql # aggregate syntax: 
query I rowsort label-6616
SELECT - COUNT( * ) * + 80 AS col0 FROM tab0
----
-240

skipif mysql # not compatible
query I rowsort label-6616
SELECT - COUNT ( * ) * + 80 AS col0 FROM tab0
----
-240

onlyif mysql # DIV for integer division: 
query I rowsort label-6617
SELECT ALL - ( col2 ) DIV 84 AS col0 FROM tab2 WHERE NOT ( + 82 * col2 ) <= ( + col1 )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6617
SELECT ALL - ( col2 ) / 84 AS col0 FROM tab2 WHERE NOT ( + 82 * col2 ) <= ( + col1 )
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 79 col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
79

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 + 4 * col1 NOT BETWEEN col0 AND ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 col1 FROM tab1 cor0 WHERE NOT NULL IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6621
SELECT + MAX( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-6621
SELECT + MAX ( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT ALL 69 + 99 * col1 FROM tab2 AS cor0 WHERE + col1 + - 95 IS NULL
----

query I rowsort
SELECT DISTINCT col2 + + ( col2 ) FROM tab0 AS cor0
----
198
20
94

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT + col1 * ( col0 ) NOT BETWEEN NULL AND NULL )
----

query I rowsort
SELECT DISTINCT - col2 * 0 AS col0 FROM tab0
----
0

query I rowsort
SELECT - - 28 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

onlyif mysql # aggregate syntax: 
query I rowsort label-6627
SELECT + COUNT( * ) col0 FROM tab2, tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6627
SELECT + COUNT ( * ) col0 FROM tab2, tab2 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6628
SELECT DISTINCT - CAST( + - 11 AS SIGNED ) AS col0 FROM tab2, tab2 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-6628
SELECT DISTINCT - CAST ( + - 11 AS INTEGER ) AS col0 FROM tab2, tab2 AS cor0
----
11

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( - col2 ) * - col0 IS NULL
----

query I rowsort
SELECT + col0 * col2 AS col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( 27 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN - 50 AND ( - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6632
SELECT - + CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6632
SELECT - + CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + + col0 * + col0 + 59 FROM tab0 AS cor0
----
284
7628
9468

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6634
SELECT + CAST( NULL AS SIGNED ) * col1 + - CAST( + col1 AS SIGNED ) / - 70 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6634
SELECT + CAST ( NULL AS INTEGER ) * col1 + - CAST ( + col1 AS INTEGER ) / - 70 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 - + col1 - + col1 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6636
SELECT DISTINCT - - 32, COUNT( * ) AS col1 FROM tab2 AS cor0
----
32
3

skipif mysql # not compatible
query II rowsort label-6636
SELECT DISTINCT - - 32, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
32
3

query II rowsort
SELECT DISTINCT - 28 AS col2, - ( + + col0 ) AS col0 FROM tab2 AS cor0
----
-28
-46
-28
-64
-28
-75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col2 * col0 * - 90 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 15 + - - 84 FROM tab1 AS cor0
----
69

query I rowsort
SELECT ALL col1 + + - col0 - + 24 FROM tab0
----
-120
-90
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6641
SELECT DISTINCT + AVG ( + 91 ) FROM tab0 WHERE ( + + CAST( + col0 AS SIGNED ) ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6641
SELECT DISTINCT + AVG ( + 91 ) FROM tab0 WHERE ( + + CAST ( + col0 AS INTEGER ) ) IS NULL
----
NULL

query I rowsort
SELECT ALL - 91 + 41 FROM tab0
----
-50
-50
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6643
SELECT MIN( ALL 86 ) * + COUNT( * ) FROM tab1 WHERE ( NULL ) = + 10 + - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6643
SELECT MIN ( ALL 86 ) * + COUNT ( * ) FROM tab1 WHERE ( NULL ) = + 10 + - col0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE - 40 BETWEEN ( + 92 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6645
SELECT DISTINCT MAX( + col2 ) AS col1, + 66 + - CAST( NULL AS DECIMAL ) FROM tab2
----
58
NULL

skipif mysql # not compatible
query II rowsort label-6645
SELECT DISTINCT MAX ( + col2 ) AS col1, + 66 + - CAST ( NULL AS REAL ) FROM tab2
----
58
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6646
SELECT - col1 - - col0 DIV + col0 AS col0 FROM tab0
----
-20
-80
0

skipif mysql # not compatible
query I rowsort label-6646
SELECT - col1 - - col0 / + col0 AS col0 FROM tab0
----
-20
-80
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - + col1 col0 FROM tab2
----
-28
-37
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6648
SELECT DISTINCT CAST( + + MIN( DISTINCT - + 35 ) AS SIGNED ) + + MAX( col1 ) AS col0 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-6648
SELECT DISTINCT CAST ( + + MIN ( DISTINCT - + 35 ) AS INTEGER ) + + MAX ( col1 ) AS col0 FROM tab1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6649
SELECT COUNT( * ) - + COUNT( * ) col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6649
SELECT COUNT ( * ) - + COUNT ( * ) col1 FROM tab0
----
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 91 * + col0 >= ( NULL )
----

query I rowsort
SELECT DISTINCT col2 / col1 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN 23 AND + 58 + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6652
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - CAST( NULL AS SIGNED ) ) > col2
----

skipif mysql # not compatible
query III rowsort label-6652
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) > col2
----

query I rowsort
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 + + col1 * col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 26 + - 83 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-57
-57
-57

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 = NULL
----

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - - ( 56 ) + + col0 AND ( NULL )
----

query I rowsort
SELECT ALL + 60 AS col1 FROM tab1 AS cor0 WHERE ( col1 ) IS NOT NULL
----
60
60
60

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6659
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 = ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6659
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 = ( + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - 72 + + col1 FROM tab0 AS cor0
----
-51
-71
9

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND 83 * + col1 * + - 12 / col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6662
SELECT - CAST( - col2 AS SIGNED ) AS col0, 40 AS col2 FROM tab0
----
10
40
47
40
99
40

skipif mysql # not compatible
query II rowsort label-6662
SELECT - CAST ( - col2 AS INTEGER ) AS col0, 40 AS col2 FROM tab0
----
10
40
47
40
99
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6663
SELECT ALL + CAST( col1 AS SIGNED ) + + 72 * ( col1 * col2 ) FROM tab0 WHERE ( NOT col0 / + col1 IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-6663
SELECT ALL + CAST ( col1 AS INTEGER ) + + 72 * ( col1 * col2 ) FROM tab0 WHERE ( NOT col0 / + col1 IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + 9 ) col2 FROM tab0
----
9
9
9

query I rowsort
SELECT + AVG ( + ( 26 ) ) FROM tab1 WHERE NOT NULL NOT IN ( + - col0 )
----
NULL

query I rowsort
SELECT ALL - col1 + + 40 + - col2 FROM tab2
----
-34
-77
-85

query II rowsort
SELECT col2, - 38 + + col1 AS col2 FROM tab1
----
59
-33
68
9
96
-24

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 + 97 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT SUM( ALL - col2 ) AS col1 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-6669
SELECT SUM ( ALL - col2 ) AS col1 FROM tab0
----
-156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 74 * - 56 + + col0 * - col0 + + col1 col1 FROM tab1
----
-3076
-4090
1557

query II rowsort
SELECT + col1 AS col2, + col0 * - 32 AS col2 FROM tab1
----
14
-1632
47
-2912
5
-2720

query I rowsort
SELECT col0 * - col1 * - col1 AS col0 FROM tab0
----
38367
97
98415

onlyif mysql # DIV for integer division: 
query II rowsort label-6673
SELECT + ( - col0 ) DIV - col1 - + col1, - 95 + - + col0 AS col2 FROM tab2
----
-51
-141
-66
-170
-77
-159

skipif mysql # not compatible
query II rowsort label-6673
SELECT + ( - col0 ) / - col1 - + col1, - 95 + - + col0 AS col2 FROM tab2
----
-51
-141
-66
-170
-77
-159

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IN ( 75 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6675
SELECT * FROM tab0 WHERE + 79 * + ( + col2 ) - col1 - + - CAST( col1 AS SIGNED ) * col1 NOT BETWEEN NULL AND - col0 * col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6675
SELECT * FROM tab0 WHERE + 79 * + ( + col2 ) - col1 - + - CAST ( col1 AS INTEGER ) * col1 NOT BETWEEN NULL AND - col0 * col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + + col1 ) col0 FROM tab0
----
-1
-21
-81

query III rowsort
SELECT * FROM tab1 WHERE ( + col1 * col2 * - col0 * - col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( 41 * - 87 IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL ( + + 40 ) * - - col0 AS col1, col1 AS col2 FROM tab1 AS cor0
----
2040
14
3400
5
3640
47

query I rowsort
SELECT DISTINCT + col0 + + 52 * + + col1 FROM tab1
----
2535
345
779

onlyif mysql # aggregate syntax: 
query I rowsort label-6681
SELECT COUNT( ALL + 77 ) AS col1 FROM tab0 WHERE - col2 BETWEEN ( + 98 * + col1 + - - col1 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6681
SELECT COUNT ( ALL + 77 ) AS col1 FROM tab0 WHERE - col2 BETWEEN ( + 98 * + col1 + - - col1 ) AND NULL
----
0

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE NOT + - col1 = - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6683
SELECT ALL COUNT( * ) + + 67 AS col1 FROM tab1
----
70

skipif mysql # not compatible
query I rowsort label-6683
SELECT ALL COUNT ( * ) + + 67 AS col1 FROM tab1
----
70

query II rowsort
SELECT DISTINCT + col2 AS col1, 80 * + 9 * - 43 - - col2 FROM tab1
----
59
-30901
68
-30892
96
-30864

query I rowsort
SELECT - col0 * + - col1 + - + col0 + - + col2 + - 72 AS col2 FROM tab0
----
-171
1081
1658

query I rowsort
SELECT - col0 + + col1 FROM tab0 WHERE - 74 IS NOT NULL
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT DISTINCT + - COUNT( * ) FROM tab0 WHERE NOT + col0 + + ( + - col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6687
SELECT DISTINCT + - COUNT ( * ) FROM tab0 WHERE NOT + col0 + + ( + - col2 ) IS NOT NULL
----
0

query I rowsort
SELECT 28 AS col2 FROM tab1 WHERE NOT + col0 * col2 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 * + 73 + + ( col2 ) FROM tab0 WHERE NOT + + col1 IS NULL
----
-1523
-5866
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT + - COUNT( * ) * + + 98 FROM tab1 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-6690
SELECT + - COUNT ( * ) * + + 98 FROM tab1 AS cor0
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-6691
SELECT - MIN( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-6691
SELECT - MIN ( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT 20 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 71 * - - 0 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 NOT BETWEEN - - col1 * + - col2 * - col2 AND ( + ( + 63 ) )
----

query I rowsort
SELECT ALL AVG ( ALL - + 35 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= + 7
----

query II rowsort
SELECT + col1 * 82 AS col1, - ( - + 27 ) AS col2 FROM tab2 AS cor0
----
4182
27
5494
27
6314
27

query I rowsort
SELECT - ( - - col2 ) + col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6698
SELECT CAST( NULL AS SIGNED ) + + MIN( DISTINCT + col1 ) / 14 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6698
SELECT CAST ( NULL AS INTEGER ) + + MIN ( DISTINCT + col1 ) / 14 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6699
SELECT ALL 51 + - - CAST( - + 63 AS SIGNED ) AS col2 FROM tab1
----
-12
-12
-12

skipif mysql # not compatible
query I rowsort label-6699
SELECT ALL 51 + - - CAST ( - + 63 AS INTEGER ) AS col2 FROM tab1
----
-12
-12
-12

query III rowsort
SELECT * FROM tab0 WHERE + 94 + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-6701
SELECT - 11, COUNT( * ) AS col1 FROM tab0
----
-11
3

skipif mysql # not compatible
query II rowsort label-6701
SELECT - 11, COUNT ( * ) AS col1 FROM tab0
----
-11
3

query I rowsort
SELECT 90 * - col1 FROM tab0
----
-1890
-7290
-90

query III rowsort
SELECT * FROM tab2 WHERE + 8 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6704
SELECT ALL ( - MAX( DISTINCT - - col1 ) ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-6704
SELECT ALL ( - MAX ( DISTINCT - - col1 ) ) FROM tab0 AS cor0
----
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-6705
SELECT + 12, col1 DIV + 85 AS col1 FROM tab0 cor0
----
12
0
12
0
12
0

skipif mysql # not compatible
query II rowsort label-6705
SELECT + 12, col1 / + 85 AS col1 FROM tab0 cor0
----
12
0
12
0
12
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6706
SELECT DISTINCT - 36 + col0 AS col1 FROM tab1 cor0 WHERE NOT ( ( + col1 ) * - ( - col1 ) + + col1 ) BETWEEN col0 AND CAST( + 27 AS SIGNED )
----
15
49
55

skipif mysql # not compatible
query I rowsort label-6706
SELECT DISTINCT - 36 + col0 AS col1 FROM tab1 cor0 WHERE NOT ( ( + col1 ) * - ( - col1 ) + + col1 ) BETWEEN col0 AND CAST ( + 27 AS INTEGER )
----
15
49
55

query I rowsort
SELECT ALL + col0 + - - ( - + col2 ) * + col1 AS col1 FROM tab0 AS cor0
----
-123
-2
-3792

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 87 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 68 ) + - + 18 * + col1 - - col2 col1 FROM tab2
----
-1216
-1414
-963

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 42 * - 59 + - - 21 + col2 col0, 9 FROM tab2
----
-2399
9
-2417
9
-2434
9

query I rowsort
SELECT + - col2 + + 92 + - col2 AS col1 FROM tab0 AS cor0
----
-106
-2
72

query I rowsort
SELECT ALL ( + - 87 ) + 89 FROM tab2 AS cor0
----
2
2
2

query I rowsort
SELECT DISTINCT - - 15 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT DISTINCT + 49 - + SUM( ( col1 ) ) FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-6714
SELECT DISTINCT + 49 - + SUM ( ( col1 ) ) FROM tab0 AS cor0
----
-54

query I rowsort
SELECT ALL - + 32 * - col2 FROM tab2 AS cor0
----
1280
1856
736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - 77 col1 FROM tab0 AS cor0
----
-62
10
20

query I rowsort
SELECT DISTINCT 67 * + 81 + - ( - ( + col0 ) ) + - col0 AS col0 FROM tab2 AS cor0
----
5427

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6718
SELECT CAST( + col1 AS SIGNED ) * - col1 AS col2 FROM tab0 AS cor0
----
-1
-441
-6561

skipif mysql # not compatible
query I rowsort label-6718
SELECT CAST ( + col1 AS INTEGER ) * - col1 AS col2 FROM tab0 AS cor0
----
-1
-441
-6561

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 85 NOT BETWEEN - 71 + 37 AND 17
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 88 * + ( - col2 ) FROM tab0 AS cor0
----
-4136
-8712
-880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6721
SELECT DISTINCT - MIN( - + CAST( NULL AS SIGNED ) ) + COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6721
SELECT DISTINCT - MIN ( - + CAST ( NULL AS INTEGER ) ) + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6722
SELECT DISTINCT - + 49 * MAX( + 29 ) AS col0 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
-1421

skipif mysql # not compatible
query I rowsort label-6722
SELECT DISTINCT - + 49 * MAX ( + 29 ) AS col0 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
-1421

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 66 / 96 + col2 IS NOT NULL
----

query II rowsort
SELECT - col0, + col0 FROM tab1 WHERE NOT col0 * 58 IS NULL
----
-51
51
-85
85
-91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 71 col1 FROM tab0
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6726
SELECT DISTINCT - MAX( DISTINCT col1 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-6726
SELECT DISTINCT - MAX ( DISTINCT col1 ) FROM tab1
----
-47

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 >= ( col0 ) * 0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6728
SELECT - col2 DIV - 8 AS col2 FROM tab0
----
1
12
5

skipif mysql # not compatible
query I rowsort label-6728
SELECT - col2 / - 8 AS col2 FROM tab0
----
1
12
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6729
SELECT ALL 47 * + COUNT( * ) col0 FROM tab0 AS cor0
----
141

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6729
SELECT ALL 47 * + COUNT ( * ) col0 FROM tab0 AS cor0
----
141

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + ( - - col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6731
SELECT + CAST( - - COUNT( * ) AS SIGNED ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6731
SELECT + CAST ( - - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2
----
3

query I rowsort
SELECT DISTINCT + 81 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + col2, 9 * 0 FROM tab2 AS cor0
----
23
0
40
0
58
0

query I rowsort
SELECT DISTINCT col2 + 67 * - col1 AS col0 FROM tab0 cor0 WHERE NOT ( - col1 >= NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6735
SELECT * FROM tab2 cor0 WHERE NOT - CAST( NULL AS SIGNED ) IN ( col1, - 52 )
----

skipif mysql # not compatible
query III rowsort label-6735
SELECT * FROM tab2 cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IN ( col1, - 52 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT ALL + SUM( - col1 ) AS col0 FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-6736
SELECT ALL + SUM ( - col1 ) AS col0 FROM tab1 cor0
----
-66

query I rowsort
SELECT + col0 FROM tab1 cor0 WHERE NULL IS NULL
----
51
85
91

query I rowsort
SELECT ALL + col1 FROM tab0 cor0 WHERE + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 77 + + col2 col0 FROM tab0 AS cor0
----
124
176
87

query I rowsort
SELECT DISTINCT col1 * - ( + - 73 ) + + 84 FROM tab2
----
3807
4975
5705

query I rowsort
SELECT col2 + + ( - 98 ) AS col1 FROM tab1
----
-2
-30
-39

query I rowsort
SELECT DISTINCT col1 + 67 * col1 FROM tab0
----
1428
5508
68

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 IS NULL OR - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + - 95 FROM tab2 AS cor0
----
-95

query I rowsort
SELECT DISTINCT - + 63 + ( + 1 ) FROM tab0 AS cor0
----
-62

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL <= + ( - 26 )
----

query I rowsort
SELECT ALL + + 25 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT 41 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6749
SELECT ALL + 8 * - + col1 + + + col2 * - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6749
SELECT ALL + 8 * - + col1 + + + col2 * - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6750
SELECT DISTINCT - 74 DIV 86 * - - 31 * + 15 DIV + col2 + + 40 + col2 FROM tab2 AS cor0
----
63
80
98

skipif mysql # not compatible
query I rowsort label-6750
SELECT DISTINCT - 74 / 86 * - - 31 * + 15 / + col2 + + 40 + col2 FROM tab2 AS cor0
----
63
80
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6751
SELECT ALL - MIN( 80 ) - + COUNT( * ) AS col0 FROM tab1 cor0
----
-83

skipif mysql # not compatible
query I rowsort label-6751
SELECT ALL - MIN ( 80 ) - + COUNT ( * ) AS col0 FROM tab1 cor0
----
-83

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * 49 * + - 51 IS NOT NULL
----

query I rowsort
SELECT + 64 * col2 * - col1 AS col0 FROM tab1 AS cor0
----
-18880
-204544
-86016

onlyif mysql # aggregate syntax: 
query I rowsort label-6754
SELECT COUNT( * ) * - + COUNT( * ) + ( COUNT( * ) ) + + + 92 AS col2 FROM tab0 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-6754
SELECT COUNT ( * ) * - + COUNT ( * ) + ( COUNT ( * ) ) + + + 92 AS col2 FROM tab0 AS cor0
----
86

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN - + col2 + - - 73 + 7 AND ( - - col0 )
----

query I rowsort
SELECT ALL - + ( + - col0 ) AS col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 WHERE NOT - col2 IS NULL
----
-10
-47
-99

query I rowsort
SELECT 50 * - col2 AS col2 FROM tab2
----
-1150
-2000
-2900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6759
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + - 21 * col0 - + col2 + + col1 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6759
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - 21 * col0 - + col2 + + col1 AS col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 25 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col1 AS col2, col1 FROM tab0 cor0
----
1
1
21
21
81
81

query I rowsort
SELECT ALL + - 48 / col2 AS col0 FROM tab2 WHERE col1 + + col1 + - - col2 + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6763
SELECT ALL 38 * + 70 * + - MIN( DISTINCT 25 ) * - COUNT( * ) AS col0 FROM tab0
----
199500

skipif mysql # not compatible
query I rowsort label-6763
SELECT ALL 38 * + 70 * + - MIN ( DISTINCT 25 ) * - COUNT ( * ) AS col0 FROM tab0
----
199500

onlyif mysql # aggregate syntax: 
query I rowsort label-6764
SELECT 69 + MAX( col2 ) FROM tab1 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-6764
SELECT 69 + MAX ( col2 ) FROM tab1 AS cor0
----
165

onlyif mysql # DIV for integer division: 
query I rowsort label-6765
SELECT DISTINCT col2 DIV - - col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6765
SELECT DISTINCT col2 / - - col2 FROM tab1 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6766
SELECT + 61 + - col1 * CAST( - col1 AS SIGNED ) DIV + - col0 + - 54 col2 FROM tab2 cor0
----
-49
-52
-85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6766
SELECT + 61 + - col1 * CAST ( - col1 AS INTEGER ) / + - col0 + - 54 col2 FROM tab2 cor0
----
-49
-52
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6767
SELECT COUNT( * ) + 83 AS col0 FROM tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-6767
SELECT COUNT ( * ) + 83 AS col0 FROM tab1 AS cor0
----
86

query II rowsort
SELECT DISTINCT - - col2 + - - col0 AS col2, - 67 AS col1 FROM tab0 AS cor0
----
196
-67
62
-67
97
-67

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 <= - col2
----

query I rowsort
SELECT - - col2 * + col2 + - - col2 * col2 * + 29 * - ( - col2 ) FROM tab2 WHERE 91 >= - 38
----
1857600
353372
5661612

onlyif mysql # aggregate syntax: 
query I rowsort label-6771
SELECT ALL MAX( + + col0 ) + COUNT( * ) AS col0 FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-6771
SELECT ALL MAX ( + + col0 ) + COUNT ( * ) AS col0 FROM tab1
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6772
SELECT * FROM tab1 WHERE - col1 * col0 NOT BETWEEN CAST( NULL AS SIGNED ) + - col1 AND - col0 + 73
----

skipif mysql # not compatible
query III rowsort label-6772
SELECT * FROM tab1 WHERE - col1 * col0 NOT BETWEEN CAST ( NULL AS INTEGER ) + - col1 AND - col0 + 73
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6773
SELECT DISTINCT - 2 + 49 + + col2 - - - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6773
SELECT DISTINCT - 2 + 49 + + col2 - - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + col2 - 7 AS col2 FROM tab2 AS cor0
----
16
33
51

query I rowsort
SELECT ALL 2 * + - col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - ( + + col0 ) + + 59 FROM tab1
----
-26
-32
8

query I rowsort
SELECT ALL col0 FROM tab1 WHERE + col0 + - - col0 = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 25 + + col1 NOT BETWEEN - 34 AND + 72
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( + + 63 ) FROM tab1 cor0
----
63
63
63

query I rowsort
SELECT ALL - ( 48 ) FROM tab0 AS cor0
----
-48
-48
-48

query II rowsort
SELECT DISTINCT - 24 AS col1, + col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-24
23
-24
40
-24
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 55 * + - 72 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( - 36 ) - + + ( - - col1 ) + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 + - col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-104
-133
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + 98 ) col1 FROM tab2
----
-98
-98
-98

query I rowsort
SELECT ALL col2 * - - 23 FROM tab1
----
1357
1564
2208

onlyif mysql # aggregate syntax: 
query I rowsort label-6787
SELECT ALL MAX( + 97 ) FROM tab2
----
97

skipif mysql # not compatible
query I rowsort label-6787
SELECT ALL MAX ( + 97 ) FROM tab2
----
97

query I rowsort
SELECT DISTINCT - - 87 AS col0 FROM tab2 cor0
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6789
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE 13 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6789
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE 13 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6790
SELECT DISTINCT 42 * col1 AS col2 FROM tab1 AS cor0 WHERE ( - CAST( NULL AS SIGNED ) ) IS NULL
----
1974
210
588

skipif mysql # not compatible
query I rowsort label-6790
SELECT DISTINCT 42 * col1 AS col2 FROM tab1 AS cor0 WHERE ( - CAST ( NULL AS INTEGER ) ) IS NULL
----
1974
210
588

onlyif mysql # aggregate syntax: 
query I rowsort label-6791
SELECT COUNT( * ) + - 99 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-6791
SELECT COUNT ( * ) + - 99 FROM tab1
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6792
SELECT * FROM tab1 WHERE NOT + ( - 42 ) * - 91 + + ( col2 ) <= + - col2 + - ( - - CAST( NULL AS SIGNED ) ) + - col1 * ( - 44 ) * col2 * + 56 - - 2 + ( - col1 )
----

skipif mysql # not compatible
query III rowsort label-6792
SELECT * FROM tab1 WHERE NOT + ( - 42 ) * - 91 + + ( col2 ) <= + - col2 + - ( - - CAST ( NULL AS INTEGER ) ) + - col1 * ( - 44 ) * col2 * + 56 - - 2 + ( - col1 )
----

query I rowsort
SELECT DISTINCT + col2 + + 15 AS col1 FROM tab2
----
38
55
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6794
SELECT + + CAST( NULL AS SIGNED ) + + - 28 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6794
SELECT + + CAST ( NULL AS INTEGER ) + + - 28 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE ( col2 IS NOT NULL )
----
14
47
5

query I rowsort
SELECT ALL 43 + - col1 FROM tab0 AS cor0
----
-38
22
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT + + COUNT( col0 ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6797
SELECT + + COUNT ( col0 ) col1 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * + col1 * - 77 IS NULL
----

query II rowsort
SELECT ALL + - 10 AS col0, col0 AS col2 FROM tab0 AS cor0
----
-10
15
-10
87
-10
97

query I rowsort
SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE NULL < + 82
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL >= col1
----

query I rowsort
SELECT - col1 + - ( + 53 ) AS col2 FROM tab2 AS cor0
----
-104
-120
-130

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6803
SELECT - col1 + ( + - col2 ) AS col2, 15 * + col2 AS col0, 82 / - col0 / col2 + CAST( NULL AS DECIMAL ) / - col0 FROM tab2
----
9 values hashing to 2f17fa052488773385d9aef2408d0300

skipif mysql # not compatible
query III rowsort label-6803
SELECT - col1 + ( + - col2 ) AS col2, 15 * + col2 AS col0, 82 / - col0 / col2 + CAST ( NULL AS REAL ) / - col0 FROM tab2
----
9 values hashing to 2f17fa052488773385d9aef2408d0300

query I rowsort
SELECT - ( - + col2 ) + + + 41 AS col1 FROM tab1
----
100
109
137

query I rowsort
SELECT ALL col2 * + 62 * col2 FROM tab2
----
208568
32798
99200

onlyif mysql # aggregate syntax: 
query I rowsort label-6806
SELECT ALL MIN( ALL + col0 ) + + 89 AS col1 FROM tab1
----
140

skipif mysql # not compatible
query I rowsort label-6806
SELECT ALL MIN ( ALL + col0 ) + + 89 AS col1 FROM tab1
----
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6807
SELECT + CAST( - - COUNT( * ) AS SIGNED ) + - COUNT( * ) AS col0, 42 FROM tab0
----
0
42

skipif mysql # not compatible
query II rowsort label-6807
SELECT + CAST ( - - COUNT ( * ) AS INTEGER ) + - COUNT ( * ) AS col0, 42 FROM tab0
----
0
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6808
SELECT DISTINCT COUNT( col1 ) + - COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6808
SELECT DISTINCT COUNT ( col1 ) + - COUNT ( * ) FROM tab2
----
0

query II rowsort
SELECT + col0 + + col1 AS col1, 74 FROM tab1
----
138
74
65
74
90
74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6810
SELECT DISTINCT * FROM tab2 WHERE - - col1 >= - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6810
SELECT DISTINCT * FROM tab2 WHERE - - col1 >= - + CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT ALL col0 + + col1 AS col1, col0 * - - 52 FROM tab2
----
141
3328
142
3900
97
2392

onlyif mysql # DIV for integer division: 
query II rowsort label-6812
SELECT - col1 + - + 87 DIV + - 99 + + - col0 DIV 57 AS col1, - 30 FROM tab2
----
-51
-30
-68
-30
-78
-30

skipif mysql # not compatible
query II rowsort label-6812
SELECT - col1 + - + 87 / + - 99 + + - col0 / 57 AS col1, - 30 FROM tab2
----
-51
-30
-68
-30
-78
-30

query I rowsort
SELECT + col1 * col2 * + col1 FROM tab2 cor0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6814
SELECT - MAX( ALL - col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-6814
SELECT - MAX ( ALL - col2 ) FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6815
SELECT DISTINCT - MIN( - 59 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-6815
SELECT DISTINCT - MIN ( - 59 ) FROM tab1 AS cor0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-6816
SELECT ALL col1 DIV - - col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6816
SELECT ALL col1 / - - col1 FROM tab1
----
1
1
1

query I rowsort
SELECT ALL + + col1 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + - col1, + 36 AS col1 FROM tab1 cor0
----
-14
36
-47
36
-5
36

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) >= + 45
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, 97 + - col2 + - col2 * + col0 col0 FROM tab0 AS cor0
----
1
-9605
21
-783
81
-655

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6821
SELECT + col2, + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-6821
SELECT + col2, + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6822
SELECT ALL ( + ( - COUNT( ALL + ( + col2 ) ) ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6822
SELECT ALL ( + ( - COUNT ( ALL + ( + col2 ) ) ) ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + col0 * - 37 AS col2 FROM tab0
----
-3219
-3589
-555

onlyif mysql # aggregate syntax: 
query I rowsort label-6824
SELECT DISTINCT ( - COUNT( ALL + col0 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6824
SELECT DISTINCT ( - COUNT ( ALL + col0 ) ) FROM tab0
----
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col2 * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL <= col2 * - + 18 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6827
SELECT ALL - col2 DIV - - 73 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6827
SELECT ALL - col2 / - - 73 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT ( - 18 ) FROM tab1
----
-18

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 - + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6830
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 <> + CAST( - col2 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-6830
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 <> + CAST ( - col2 AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT ALL - COUNT( * ) + - COUNT( * ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-6831
SELECT ALL - COUNT ( * ) + - COUNT ( * ) FROM tab1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6832
SELECT ALL - COUNT( + - 99 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6832
SELECT ALL - COUNT ( + - 99 ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT + + COUNT( * ) + 83 FROM tab0 cor0
----
86

skipif mysql # not compatible
query I rowsort label-6833
SELECT + + COUNT ( * ) + 83 FROM tab0 cor0
----
86

query I rowsort
SELECT DISTINCT - col2 + 67 AS col1 FROM tab1 AS cor0
----
-1
-29
8

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT col2 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 FROM tab2 cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT ALL + 51 + - col1 AS col2 FROM tab2 AS cor0
----
-16
-26
0

query II rowsort
SELECT col2, - 46 * - col0 AS col1 FROM tab2
----
23
2116
40
2944
58
3450

query I rowsort
SELECT DISTINCT + 8 FROM tab1 WHERE + 8 IS NULL
----

query I rowsort
SELECT 5 - - - col0 * + col1 AS col1 FROM tab2
----
-2341
-4923
-5020

onlyif mysql # DIV for integer division: 
query I rowsort label-6841
SELECT + 6 * + ( 7 ) - - col2 DIV - + 32 col2 FROM tab2
----
41
41
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6841
SELECT + 6 * + ( 7 ) - - col2 / - + 32 col2 FROM tab2
----
41
41
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6842
SELECT DISTINCT + + ( - - col0 ) + - CAST( + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6842
SELECT DISTINCT + + ( - - col0 ) + - CAST ( + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col0 * col2 - - 3 AS col0 FROM tab2 AS cor0
----
-1055
-2557
-4347

query II rowsort
SELECT 51, 63 AS col0 FROM tab0 cor0
----
51
63
51
63
51
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col2, col0 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6846
SELECT + 3 DIV col0 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6846
SELECT + 3 / col0 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT ALL MIN( ALL col1 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6847
SELECT ALL MIN ( ALL col1 ) AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT - - ( - 58 ) AS col1 FROM tab1 AS cor0 WHERE NOT 72 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6849
SELECT DISTINCT - ( 56 ) * COUNT( - + 85 ) AS col2 FROM tab2 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-6849
SELECT DISTINCT - ( 56 ) * COUNT ( - + 85 ) AS col2 FROM tab2 AS cor0
----
-168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6850
SELECT + CAST( + CAST( - ( - ( + AVG ( DISTINCT 26 ) ) ) AS SIGNED ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-6850
SELECT + CAST ( + CAST ( - ( - ( + AVG ( DISTINCT 26 ) ) ) AS INTEGER ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
26

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 AS cor0 WHERE - col1 + col2 > + ( - col0 ) OR NOT NULL IS NULL
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 * - - col2 col0 FROM tab1 AS cor0
----
2537
2924
4128

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT ALL - COUNT( DISTINCT + - 69 ) col2 FROM tab1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6853
SELECT ALL - COUNT ( DISTINCT + - 69 ) col2 FROM tab1
----
-1

query I rowsort
SELECT col0 * - + 37 FROM tab2
----
-1702
-2368
-2775

onlyif mysql # aggregate syntax: 
query I rowsort label-6855
SELECT + 76 * COUNT( * ) FROM tab1
----
228

skipif mysql # not compatible
query I rowsort label-6855
SELECT + 76 * COUNT ( * ) FROM tab1
----
228

query II rowsort
SELECT - - col2 AS col1, + col1 - - 83 + - - col0 + - - col1 - - - col2 FROM tab0 WHERE NOT col0 IN ( col0, - ( + + 22 ), col2, - + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6857
SELECT + 3 DIV - - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6857
SELECT + 3 / - - col1 FROM tab2
----
0
0
0

query I rowsort
SELECT 86 * col0 FROM tab2
----
3956
5504
6450

query II rowsort
SELECT + col2, 78 AS col0 FROM tab0
----
10
78
47
78
99
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6860
SELECT DISTINCT COUNT( * ) + - 59 AS col1 FROM tab0
----
-56

skipif mysql # not compatible
query I rowsort label-6860
SELECT DISTINCT COUNT ( * ) + - 59 AS col1 FROM tab0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6861
SELECT DISTINCT - - 75 * + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
675

skipif mysql # not compatible
query I rowsort label-6861
SELECT DISTINCT - - 75 * + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
675

query I rowsort
SELECT DISTINCT - 24 * - + 55 + + 60 AS col2 FROM tab1
----
1380

onlyif mysql # aggregate syntax: 
query I rowsort label-6863
SELECT ALL + MIN( ALL + - 23 ) AS col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-6863
SELECT ALL + MIN ( ALL + - 23 ) AS col2 FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6864
SELECT ALL + COUNT( * ) - + - 58 AS col1 FROM tab1 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-6864
SELECT ALL + COUNT ( * ) - + - 58 AS col1 FROM tab1 AS cor0
----
61

query I rowsort
SELECT - col0 - - - 84 AS col2 FROM tab0 cor0
----
-171
-181
-99

query II rowsort
SELECT DISTINCT + col1 * - col2 AS col2, 9 FROM tab2 AS cor0
----
-1173
9
-3080
9
-3886
9

query I rowsort
SELECT + 70 - + 5 * + - col1 AS col2 FROM tab0 AS cor0
----
175
475
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6868
SELECT SUM( - 57 ) + + 16 FROM tab2
----
-155

skipif mysql # not compatible
query I rowsort label-6868
SELECT SUM ( - 57 ) + + 16 FROM tab2
----
-155

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6869
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> + CAST( NULL AS SIGNED ) * col1
----

skipif mysql # not compatible
query III rowsort label-6869
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> + CAST ( NULL AS INTEGER ) * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6870
SELECT - COUNT( - + col2 ) + + 25 AS col0 FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-6870
SELECT - COUNT ( - + col2 ) + + 25 AS col0 FROM tab2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6871
SELECT ALL COUNT( * ) + - 54 * COUNT( ALL + col0 ) + 26 * - COUNT( * ) AS col0 FROM tab0
----
-237

skipif mysql # not compatible
query I rowsort label-6871
SELECT ALL COUNT ( * ) + - 54 * COUNT ( ALL + col0 ) + 26 * - COUNT ( * ) AS col0 FROM tab0
----
-237

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6872
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - COUNT( DISTINCT col1 ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6872
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - COUNT ( DISTINCT col1 ) col2 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6873
SELECT ALL 31 DIV - col0 + + - col2 AS col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-6873
SELECT ALL 31 / - col0 + + - col2 AS col2 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6874
SELECT ALL - MAX( DISTINCT - 46 ) AS col2 FROM tab1 WHERE NULL IS NULL
----
46

skipif mysql # not compatible
query I rowsort label-6874
SELECT ALL - MAX ( DISTINCT - 46 ) AS col2 FROM tab1 WHERE NULL IS NULL
----
46

query I rowsort
SELECT + 56 FROM tab0, tab1 cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT DISTINCT - 47 * - col2 + + 31 AS col0 FROM tab1
----
2804
3227
4543

query III rowsort
SELECT * FROM tab1 WHERE ( col2 <> col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - col1 * + 35 FROM tab2 AS cor0
----
-1785
-2345
-2695

query I rowsort
SELECT ALL - - col2 * + col0 FROM tab2 AS cor0 WHERE + 29 * - - 35 + 44 IS NOT NULL
----
1058
2560
4350

onlyif mysql # DIV for integer division: 
query II rowsort label-6880
SELECT DISTINCT + + 2 * col2 DIV - col2 AS col0, col1 * col2 FROM tab0 AS cor0
----
-2
210
-2
3807
-2
99

skipif mysql # not compatible
query II rowsort label-6880
SELECT DISTINCT + + 2 * col2 / - col2 AS col0, col1 * col2 FROM tab0 AS cor0
----
-2
210
-2
3807
-2
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6881
SELECT + - 20 * col0 * - - col2 * - CAST( + - col1 AS SIGNED ) * 92 AS col1 FROM tab0 AS cor0
----
-105073200
-17669520
-33616800

skipif mysql # not compatible
query I rowsort label-6881
SELECT + - 20 * col0 * - - col2 * - CAST ( + - col1 AS INTEGER ) * 92 AS col1 FROM tab0 AS cor0
----
-105073200
-17669520
-33616800

query II rowsort
SELECT 94 AS col0, + col1 FROM tab1
----
94
14
94
47
94
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6883
SELECT DISTINCT SUM( ALL - 49 ) DIV - + COUNT( * ) AS col1 FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-6883
SELECT DISTINCT SUM ( ALL - 49 ) / - + COUNT ( * ) AS col1 FROM tab2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6884
SELECT DISTINCT + 68 * + COUNT( * ) AS col2 FROM tab1 cor0
----
204

skipif mysql # not compatible
query I rowsort label-6884
SELECT DISTINCT + 68 * + COUNT ( * ) AS col2 FROM tab1 cor0
----
204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6885
SELECT - CAST( NULL AS SIGNED ) AS col2, COUNT( * ) * - - CAST( - + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
NULL
-9

skipif mysql # not compatible
query II rowsort label-6885
SELECT - CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) * - - CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
NULL
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6886
SELECT ALL ( - CAST( NULL AS SIGNED ) ) * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6886
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 BETWEEN NULL AND col1 - - + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 98 col0 FROM tab1 AS cor0
----
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 AS col0, + col1 + + + 27 col2 FROM tab1 AS cor0
----
14
41
47
74
5
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6890
SELECT SUM( col2 ) * - 6 + COUNT( * ) FROM tab1 AS cor0
----
-1335

skipif mysql # not compatible
query I rowsort label-6890
SELECT SUM ( col2 ) * - 6 + COUNT ( * ) FROM tab1 AS cor0
----
-1335

query I rowsort
SELECT ALL col0 + ( - 65 ) + col1 AS col2 FROM tab1
----
0
25
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col1 * - 75 col1 FROM tab1
----
-316
-3457
-954

query I rowsort
SELECT ALL + 21 + + - col0 * + col1 FROM tab0
----
-1194
-1806
-76

query I rowsort
SELECT - - col0 * + 6 AS col0 FROM tab1 AS cor0
----
306
510
546

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col2 AND col1
----

query I rowsort
SELECT + - col1 * - - col0 AS col2 FROM tab1 AS cor0
----
-425
-4277
-714

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 cor1 WHERE NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL < - - col1 * col2 + + col0 + - ( - + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6899
SELECT ALL 27 * 48 * - + 62 + - - COUNT( * ) AS col2 FROM tab2
----
-80349

skipif mysql # not compatible
query I rowsort label-6899
SELECT ALL 27 * 48 * - + 62 + - - COUNT ( * ) AS col2 FROM tab2
----
-80349

onlyif mysql # aggregate syntax: 
query I rowsort label-6900
SELECT + - MIN( DISTINCT + col2 ) * + 98 + + COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0
----
-980

skipif mysql # not compatible
query I rowsort label-6900
SELECT + - MIN ( DISTINCT + col2 ) * + 98 + + COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0
----
-980

query I rowsort
SELECT DISTINCT + col0 - + + col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6902
SELECT - - MIN( + 91 ) + 75 * - COUNT( * ) DIV - + COUNT( * ) FROM tab2 cor0
----
166

skipif mysql # not compatible
query I rowsort label-6902
SELECT - - MIN ( + 91 ) + 75 * - COUNT ( * ) / - + COUNT ( * ) FROM tab2 cor0
----
166

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 70 BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( - col0 * - + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 27 col2 FROM tab2 cor0
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6906
SELECT DISTINCT - ( + - COUNT( * ) ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6906
SELECT DISTINCT - ( + - COUNT ( * ) ) col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6907
SELECT - SUM( - - col2 ) col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6907
SELECT - SUM ( - - col2 ) col0 FROM tab0 AS cor0
----
-156

query II rowsort
SELECT ALL + col1 AS col2, - 87 FROM tab0 AS cor0
----
1
-87
21
-87
81
-87

query I rowsort
SELECT DISTINCT + + ( + + 1 ) FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6910
SELECT DISTINCT + ( - + COUNT( DISTINCT + col2 ) ) + + ( - + 27 ) AS col2 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-6910
SELECT DISTINCT + ( - + COUNT ( DISTINCT + col2 ) ) + + ( - + 27 ) AS col2 FROM tab1
----
-30

query I rowsort
SELECT - col0 * - col2 - + col2 AS col0 FROM tab1 WHERE NOT + col1 > NULL
----

query II rowsort
SELECT DISTINCT - ( + col2 ), 64 AS col1 FROM tab0
----
-10
64
-47
64
-99
64

query I rowsort
SELECT + col2 * - ( + col2 ) FROM tab0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-6914
SELECT + COUNT( * ) * 38 FROM tab2
----
114

skipif mysql # not compatible
query I rowsort label-6914
SELECT + COUNT ( * ) * 38 FROM tab2
----
114

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - col2 AND col2
----

query I rowsort
SELECT - ( + 41 ) AS col2 FROM tab0
----
-41
-41
-41

onlyif mysql # DIV for integer division: 
query II rowsort label-6917
SELECT + col2, + ( + col0 ) * col1 - col0 DIV col2 + + col2 * - col1 - - col0 + ( + + col0 ) DIV - col1 FROM tab0
----
10
1692
47
-2577
99
-2

skipif mysql # not compatible
query II rowsort label-6917
SELECT + col2, + ( + col0 ) * col1 - col0 / col2 + + col2 * - col1 - - col0 + ( + + col0 ) / - col1 FROM tab0
----
10
1692
47
-2577
99
-2

query I rowsort
SELECT + 98 * col2 AS col2 FROM tab2
----
2254
3920
5684

query I rowsort
SELECT + 47 * - col1 AS col1 FROM tab0 AS cor0
----
-3807
-47
-987

onlyif mysql # aggregate syntax: 
query II rowsort label-6920
SELECT DISTINCT 53, 72 + - + SUM( ALL - col0 ) * + 20 AS col0 FROM tab1 AS cor0
----
53
4612

skipif mysql # not compatible
query II rowsort label-6920
SELECT DISTINCT 53, 72 + - + SUM ( ALL - col0 ) * + 20 AS col0 FROM tab1 AS cor0
----
53
4612

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6921
SELECT * FROM tab1 AS cor0 WHERE NOT - ( + - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6921
SELECT * FROM tab1 AS cor0 WHERE NOT - ( + - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6922
SELECT - MIN( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6922
SELECT - MIN ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 BETWEEN + 66 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6924
SELECT ALL - COUNT( * ) + - 92 AS col2 FROM tab1 cor0
----
-95

skipif mysql # not compatible
query I rowsort label-6924
SELECT ALL - COUNT ( * ) + - 92 AS col2 FROM tab1 cor0
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6925
SELECT DISTINCT - + col2 AS col1, CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6925
SELECT DISTINCT - + col2 AS col1, CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

query II rowsort
SELECT ALL col1 AS col0, + 78 AS col0 FROM tab1
----
14
78
47
78
5
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6927
SELECT DISTINCT 76 + - 13 - COUNT( * ) AS col1 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-6927
SELECT DISTINCT 76 + - 13 - COUNT ( * ) AS col1 FROM tab0
----
60

query I rowsort
SELECT ALL - 82 + + col0 AS col1 FROM tab0
----
-67
15
5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + 5 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6930
SELECT DISTINCT + 54 + - - COUNT( * ) FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-6930
SELECT DISTINCT + 54 + - - COUNT ( * ) FROM tab0
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-6931
SELECT ALL + col1 DIV 83 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6931
SELECT ALL + col1 / 83 AS col0 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + - 15 + 84 col0 FROM tab0
----
156
166
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6933
SELECT DISTINCT 50 + - 54 * + MIN( ALL col1 ) * + COUNT( - + 34 ) FROM tab1
----
-760

skipif mysql # not compatible
query I rowsort label-6933
SELECT DISTINCT 50 + - 54 * + MIN ( ALL col1 ) * + COUNT ( - + 34 ) FROM tab1
----
-760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6934
SELECT ALL - + SUM( ALL - col1 ), COUNT( * ) + CAST( NULL AS SIGNED ) * + SUM( - col2 ) AS col0 FROM tab1 cor0
----
66
NULL

skipif mysql # not compatible
query II rowsort label-6934
SELECT ALL - + SUM ( ALL - col1 ), COUNT ( * ) + CAST ( NULL AS INTEGER ) * + SUM ( - col2 ) AS col0 FROM tab1 cor0
----
66
NULL

query I rowsort
SELECT + col0 * col2 * - col2 FROM tab0
----
-33135
-8700
-950697

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col2 * + col0 * - + 95 + + col0 * - 65 AS col2 FROM tab2
----
-103500
-247360
-418125

onlyif mysql # aggregate syntax: 
query I rowsort label-6938
SELECT DISTINCT - SUM( + + col0 ) + + 39 FROM tab1 AS cor0
----
-188

skipif mysql # not compatible
query I rowsort label-6938
SELECT DISTINCT - SUM ( + + col0 ) + + 39 FROM tab1 AS cor0
----
-188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6939
SELECT - col1 * + CAST( NULL AS SIGNED ) + - 25 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6939
SELECT - col1 * + CAST ( NULL AS INTEGER ) + - 25 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + ( + - col0 ) * - 13 FROM tab0 AS cor0
----
-1131
-1261
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( + ( - col0 ) ) col0, col2 FROM tab1
----
51
96
85
59
91
68

onlyif mysql # DIV for integer division: 
query I rowsort label-6942
SELECT - 69 DIV + col2 AS col0 FROM tab0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-6942
SELECT - 69 / + col2 AS col0 FROM tab0
----
-1
-6
0

query II rowsort
SELECT col2 AS col1, - col1 FROM tab1
----
59
-5
68
-47
96
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6944
SELECT ALL ( - 66 ) * ( + 48 ) * SUM( - - 4 ) DIV MIN( ALL col0 ) + - MAX( col1 ) * ( + 10 ) * + + COUNT( * ) + + ( - 41 ) AS col2 FROM tab1
----
-2196

skipif mysql # not compatible
query I rowsort label-6944
SELECT ALL ( - 66 ) * ( + 48 ) * SUM ( - - 4 ) / MIN ( ALL col0 ) + - MAX ( col1 ) * ( + 10 ) * + + COUNT ( * ) + + ( - 41 ) AS col2 FROM tab1
----
-2196

onlyif mysql # aggregate syntax: 
query I rowsort label-6945
SELECT ALL MAX( + col1 ) FROM tab0 WHERE NULL >= - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6945
SELECT ALL MAX ( + col1 ) FROM tab0 WHERE NULL >= - col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6946
SELECT SUM( col0 ) AS col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-6946
SELECT SUM ( col0 ) AS col1 FROM tab0 AS cor0
----
199

query I rowsort
SELECT ALL - 15 * + 38 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 86d4831f8dedb817774142618c8ac5d0

onlyif mysql # aggregate syntax: 
query I rowsort label-6948
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6948
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + 16 * - col0 AS col2 FROM tab1
----
-1360
-1456
-816

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 75 * + col0 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 >= - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 + - 78 + col1 FROM tab2 AS cor0
----
19
63
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6953
SELECT ( COUNT( * ) ) + - + 54 AS col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-6953
SELECT ( COUNT ( * ) ) + - + 54 AS col1 FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6954
SELECT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6954
SELECT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6955
SELECT - 57 DIV + - col2 + - 46 FROM tab0 AS cor0
----
-41
-45
-46

skipif mysql # not compatible
query I rowsort label-6955
SELECT - 57 / + - col2 + - 46 FROM tab0 AS cor0
----
-41
-45
-46

query I rowsort
SELECT - 35 + + col1 + col0 FROM tab1 cor0
----
103
30
55

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 = - col2 / + 91 * - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + 86 + 10 + ( col1 ) FROM tab0 AS cor0
----
117
177
97

query II rowsort
SELECT + col0 + + col2 + 68 AS col0, + 30 AS col1 FROM tab2
----
137
30
172
30
201
30

query I rowsort
SELECT ALL + - 76 FROM tab2 WHERE + - col1 BETWEEN - col0 * - 24 AND NULL
----

query I rowsort
SELECT DISTINCT col1 + - 88 FROM tab1
----
-41
-74
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 92 ) col2 FROM tab0
----
92
92
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6963
SELECT * FROM tab0 WHERE - col1 + + - ( ( CAST( NULL AS SIGNED ) ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6963
SELECT * FROM tab0 WHERE - col1 + + - ( ( CAST ( NULL AS INTEGER ) ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-6964
SELECT - CAST( NULL AS SIGNED ), - col2 + + ( - col0 ) + + col0 - + + CAST( - + ( + - CAST( NULL AS SIGNED ) ) AS SIGNED ) + - + col0 * - + col2 * - 82 * col1 + + col1, 94 DIV + col2 AS col2 FROM tab2
----
9 values hashing to c9094c35164f73df2b1c286b71c60fa3

skipif mysql # not compatible
query III rowsort label-6964
SELECT - CAST ( NULL AS INTEGER ), - col2 + + ( - col0 ) + + col0 - + + CAST ( - + ( + - CAST ( NULL AS INTEGER ) ) AS INTEGER ) + - + col0 * - + col2 * - 82 * col1 + + col1, 94 / + col2 AS col2 FROM tab2
----
9 values hashing to c9094c35164f73df2b1c286b71c60fa3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6965
SELECT ALL + - MIN( DISTINCT CAST( col2 AS SIGNED ) ) + - 4 AS col1 FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-6965
SELECT ALL + - MIN ( DISTINCT CAST ( col2 AS INTEGER ) ) + - 4 AS col1 FROM tab2 AS cor0
----
-27

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 49 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 < 14
----
85
5
59

query I rowsort
SELECT ALL col1 * col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT 27 AS col0 FROM tab0 cor0 WHERE ( + 86 ) <= col2
----
27

query II rowsort
SELECT ALL - 79, col2 FROM tab1 cor0
----
-79
59
-79
68
-79
96

query III rowsort
SELECT * FROM tab2 WHERE + 85 BETWEEN NULL AND NULL
----

query I rowsort
SELECT 8 + + + 11 FROM tab0
----
19
19
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6973
SELECT ALL 92 + COUNT( * ) AS col1 FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-6973
SELECT ALL 92 + COUNT ( * ) AS col1 FROM tab0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6974
SELECT ALL 16 - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-6974
SELECT ALL 16 - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
13

query I rowsort
SELECT ALL - 16 - + 52 FROM tab2 AS cor0
----
-68
-68
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6976
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6976
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE - col2 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6977
SELECT col2 * + + 14 AS col0, - col2 DIV - - col0 FROM tab1 AS cor0
----
1344
-1
826
0
952
0

skipif mysql # not compatible
query II rowsort label-6977
SELECT col2 * + + 14 AS col0, - col2 / - - col0 FROM tab1 AS cor0
----
1344
-1
826
0
952
0

query I rowsort
SELECT DISTINCT + - ( - - 88 ) AS col2 FROM tab1 AS cor0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT ALL + - COUNT( DISTINCT + - col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6979
SELECT ALL + - COUNT ( DISTINCT + - col0 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - 36 AS col0 FROM tab0 AS cor0 WHERE NOT col2 - - - col1 + - col0 = NULL
----

query I rowsort
SELECT - + ( - + col2 ) FROM tab0 cor0
----
10
47
99

query I rowsort
SELECT ALL - ( - - ( + col0 ) ) FROM tab1
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT col2 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 * + col1 * + col2 FROM tab1
----
129024
17405
217328

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1 WHERE NOT ( NOT NULL IS NULL )
----
-59
-68
-96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 + - col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 78 * - col2 * 5 * - col1 AS col2 FROM tab0
----
1484730
38610
81900

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6988
SELECT - 17 DIV SUM( DISTINCT - - col0 ) AS col1, + 89 FROM tab1
----
0
89

skipif mysql # not compatible
query II rowsort label-6988
SELECT - 17 / SUM ( DISTINCT - - col0 ) AS col1, + 89 FROM tab1
----
0
89

query I rowsort
SELECT DISTINCT 14 FROM tab2 WHERE NOT ( NOT - col1 IS NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6990
SELECT SUM( ALL - CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6990
SELECT SUM ( ALL - CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + 34 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6992
SELECT DISTINCT CAST( SUM( ALL + 20 ) AS SIGNED ) col0 FROM tab1
----
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6992
SELECT DISTINCT CAST ( SUM ( ALL + 20 ) AS INTEGER ) col0 FROM tab1
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6993
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6993
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col1 FROM tab0 cor0 WHERE NOT NULL <> - ( - + col1 ) * col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6995
SELECT + MAX( - col0 ) AS col0, COUNT( ALL + + 42 ) + + 54 FROM tab2 cor0
----
-46
57

skipif mysql # not compatible
query II rowsort label-6995
SELECT + MAX ( - col0 ) AS col0, COUNT ( ALL + + 42 ) + + 54 FROM tab2 cor0
----
-46
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6996
SELECT ALL + ( + + CAST( + 73 AS SIGNED ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

skipif mysql # not compatible
query I rowsort label-6996
SELECT ALL + ( + + CAST ( + 73 AS INTEGER ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query II rowsort
SELECT DISTINCT - col2, ( - + 55 ) + - col1 AS col0 FROM tab2 WHERE NOT + col0 IS NULL
----
-23
-106
-40
-132
-58
-122

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6999
SELECT ALL - COUNT( DISTINCT + + col0 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6999
SELECT ALL - COUNT ( DISTINCT + + col0 ) FROM tab2
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col0 + - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 17 AS col1 FROM tab1 AS cor0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7002
SELECT ALL + - SUM( - - 32 ) col2 FROM tab0 cor0
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7002
SELECT ALL + - SUM ( - - 32 ) col2 FROM tab0 cor0
----
-96

query I rowsort
SELECT ALL - col0 + - - 30 FROM tab2 AS cor0
----
-16
-34
-45

query I rowsort
SELECT - 99 * col0 AS col1 FROM tab2 AS cor0
----
-4554
-6336
-7425

onlyif mysql # aggregate syntax: 
query I rowsort label-7005
SELECT ALL 74 * COUNT( * ) FROM tab1 cor0
----
222

skipif mysql # not compatible
query I rowsort label-7005
SELECT ALL 74 * COUNT ( * ) FROM tab1 cor0
----
222

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col0 + col2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 37 * col1 FROM tab1
----
1739
185
518

query I rowsort
SELECT + col2 + + + 18 * + 29 FROM tab0
----
532
569
621

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - 97 + - 2 col1 FROM tab1
----
-104
-113
-146

query II rowsort
SELECT ALL + col1 + - + ( - col1 ) + + col0 * + col0, + 9 AS col1 FROM tab1
----
2629
9
7235
9
8375
9

query I rowsort
SELECT DISTINCT 23 - col2 FROM tab0
----
-24
-76
13

query I rowsort
SELECT - col1 * - col2 + col0 AS col2 FROM tab1
----
1395
3287
380

query II rowsort
SELECT DISTINCT + 60 + + - col0 AS col0, - col0 AS col1 FROM tab0
----
-27
-87
-37
-97
45
-15

query I rowsort
SELECT col2 + + + col0 FROM tab1
----
144
147
159

query II rowsort
SELECT + 29 + + + col2 AS col0, 11 FROM tab1 AS cor0
----
125
11
88
11
97
11

query I rowsort
SELECT DISTINCT + - col2 * - + col2 AS col2 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7017
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7017
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7018
SELECT CAST( + - col2 AS SIGNED ) * + + 65 AS col2 FROM tab0 AS cor0
----
-3055
-6435
-650

skipif mysql # not compatible
query I rowsort label-7018
SELECT CAST ( + - col2 AS INTEGER ) * + + 65 AS col2 FROM tab0 AS cor0
----
-3055
-6435
-650

query I rowsort
SELECT + 1 FROM tab2, tab2 cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

onlyif mysql # aggregate syntax: 
query I rowsort label-7020
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7020
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----
0

query I rowsort
SELECT - ( - 64 ) AS col2 FROM tab0 AS cor0
----
64
64
64

query I rowsort
SELECT + + col0 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 67 * - + col0 FROM tab1
----
-3417
-5695
-6097

query I rowsort
SELECT ALL col1 * + col2 * - col2 FROM tab2
----
-123200
-225388
-26979

query I rowsort
SELECT + + ( - + col0 ) FROM tab2 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7026
SELECT CAST( - - COUNT( * ) AS SIGNED ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7026
SELECT CAST ( - - COUNT ( * ) AS INTEGER ) col1 FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-7027
SELECT ALL - col1 DIV - col2, + col1 col0 FROM tab2
----
1
67
1
77
2
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7027
SELECT ALL - col1 / - col2, + col1 col0 FROM tab2
----
1
67
1
77
2
51

query II rowsort
SELECT 8 * - col0 * + - ( col1 ) AS col1, - col0 AS col0 FROM tab0
----
14616
-87
776
-97
9720
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7029
SELECT DISTINCT - COUNT( + + col0 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7029
SELECT DISTINCT - COUNT ( + + col0 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7030
SELECT ALL - ( + + SUM( col0 ) ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-7030
SELECT ALL - ( + + SUM ( col0 ) ) FROM tab2
----
-185

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col0 ) BETWEEN ( + col1 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7032
SELECT DISTINCT - COUNT( col2 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7032
SELECT DISTINCT - COUNT ( col2 ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7033
SELECT ALL 17 DIV - - col0 * + - col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7033
SELECT ALL 17 / - - col0 * + - col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7034
SELECT ALL - 46 + + - COUNT( * ) FROM tab1 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-7034
SELECT ALL - 46 + + - COUNT ( * ) FROM tab1 AS cor0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7035
SELECT ALL + MIN( + 57 ) AS col0 FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-7035
SELECT ALL + MIN ( + 57 ) AS col0 FROM tab2 AS cor0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7036
SELECT DISTINCT - col0 + + - CAST( col2 AS SIGNED ) + - 33 * + - 61 FROM tab1 WHERE NOT 30 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7036
SELECT DISTINCT - col0 + + - CAST ( col2 AS INTEGER ) + - 33 * + - 61 FROM tab1 WHERE NOT 30 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7037
SELECT ALL ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7037
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 + 25 * + + 18 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + - col1 col1 FROM tab0 AS cor0
----
-100
-128
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7040
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7040
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

query I rowsort
SELECT col1 * - 53 + - col1 FROM tab2 AS cor0
----
-2754
-3618
-4158

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 87 / - col2 + - col0 > - col1 * - - 80
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7043
SELECT + 62 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-7043
SELECT + 62 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7044
SELECT DISTINCT + MAX( + - col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-7044
SELECT DISTINCT + MAX ( + - col2 ) FROM tab1 AS cor0
----
-59

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * - - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT col0, - col0 AS col0 FROM tab2
----
46
-46
64
-64
75
-75

query I rowsort
SELECT DISTINCT col1 + - 73 AS col0 FROM tab2
----
-22
-6
4

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 WHERE NOT + 99 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7049
SELECT ALL + col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7049
SELECT ALL + col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 20 + - + 48 + + + 71 + - col2 * col0 * 77 * + col0 FROM tab2
----
-12615637
-25121207
-3747393

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col0 col2 FROM tab1 WHERE - col1 IS NOT NULL
----
-45
23
26

query I rowsort
SELECT - 32 - + col2 AS col0 FROM tab2 AS cor0
----
-55
-72
-90

query I rowsort
SELECT - - 11 - 60 FROM tab0 AS cor0
----
-49
-49
-49

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

query I rowsort
SELECT 21 + + col2 AS col2 FROM tab2 AS cor0
----
44
61
79

query I rowsort
SELECT ALL + col2 * - 85 AS col1 FROM tab2 WHERE NOT 8 <= NULL
----

query I rowsort
SELECT - col1 + 7 FROM tab0
----
-14
-74
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT + COUNT( - 13 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7058
SELECT + COUNT ( - 13 ) FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7059
SELECT + col1 + col2 DIV - col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7059
SELECT + col1 + col2 / - col0 FROM tab2
----
51
67
77

query I rowsort
SELECT + col2 + 88 FROM tab0
----
135
187
98

query I rowsort
SELECT col2 * + 89 + 49 AS col0 FROM tab2
----
2096
3609
5211

query III rowsort
SELECT * FROM tab1 WHERE NOT - 23 * + col1 <> + 60 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT ( - MIN( - col0 ) ) + + 90 AS col2 FROM tab2
----
165

skipif mysql # not compatible
query I rowsort label-7063
SELECT ( - MIN ( - col0 ) ) + + 90 AS col2 FROM tab2
----
165

query I rowsort
SELECT + col0 - 6 FROM tab0
----
81
9
91

query I rowsort
SELECT - ( + col1 ) + - col1 FROM tab1
----
-10
-28
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7066
SELECT ALL COUNT( * ) * + 84 + SUM( - col1 ) FROM tab1 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7066
SELECT ALL COUNT ( * ) * + 84 + SUM ( - col1 ) FROM tab1 WHERE ( NULL ) IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7068
SELECT ALL + MAX( ALL + ( ( + 69 ) ) ) AS col0 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-7068
SELECT ALL + MAX ( ALL + ( ( + 69 ) ) ) AS col0 FROM tab2
----
69

query I rowsort
SELECT ALL 38 AS col1 FROM tab0 WHERE col2 IS NOT NULL
----
38
38
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7070
SELECT + ( + SUM( ALL - 62 ) ) col0 FROM tab1
----
-186

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7070
SELECT + ( + SUM ( ALL - 62 ) ) col0 FROM tab1
----
-186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7071
SELECT - CAST( NULL AS SIGNED ) / 2 FROM tab1 WHERE NOT col1 + + 43 IN ( - col2 * + 83 + col2 * 2 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7071
SELECT - CAST ( NULL AS INTEGER ) / 2 FROM tab1 WHERE NOT col1 + + 43 IN ( - col2 * + 83 + col2 * 2 )
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 - + 36 FROM tab1
----
-22
-31
11

query I rowsort
SELECT ALL - 80 FROM tab2 WHERE NOT - col1 NOT IN ( - col2 * + col1 + col2 * 29 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col2 + + col2 ) IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 57 + 48 FROM tab2
----
-9
-9
-9

query I rowsort
SELECT + 47 + + 51 * col0 FROM tab1
----
2648
4382
4688

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - 52 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT 25 * COUNT( * ) col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7078
SELECT 25 * COUNT ( * ) col1 FROM tab2 AS cor0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7079
SELECT DISTINCT col2 DIV 11 FROM tab1 AS cor0
----
5
6
8

skipif mysql # not compatible
query I rowsort label-7079
SELECT DISTINCT col2 / 11 FROM tab1 AS cor0
----
5
6
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7080
SELECT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7080
SELECT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7081
SELECT + col1 DIV - ( col0 ) + 14 * col1 AS col0 FROM tab2
----
1077
713
938

skipif mysql # not compatible
query I rowsort label-7081
SELECT + col1 / - ( col0 ) + 14 * col1 AS col0 FROM tab2
----
1077
713
938

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NOT - 47 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7084
SELECT ALL - COUNT( * ) DIV + COUNT( * ) + + COUNT( * ) * COUNT( * ) FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-7084
SELECT ALL - COUNT ( * ) / + COUNT ( * ) + + COUNT ( * ) * COUNT ( * ) FROM tab2
----
8

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND + col2
----

query I rowsort
SELECT ALL + 77 * col1 + - col1 AS col0 FROM tab2
----
3876
5092
5852

onlyif mysql # aggregate syntax: 
query I rowsort label-7087
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( - col0 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7087
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( - col0 ) IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7088
SELECT ALL - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7088
SELECT ALL - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7089
SELECT DISTINCT - col1 DIV 84 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7089
SELECT DISTINCT - col1 / 84 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col2 + - col1 AS col0 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
-11
-34
98

onlyif mysql # DIV for integer division: 
query I rowsort label-7091
SELECT 75 DIV col2 + 48 AS col1 FROM tab1 AS cor0
----
48
49
49

skipif mysql # not compatible
query I rowsort label-7091
SELECT 75 / col2 + 48 AS col1 FROM tab1 AS cor0
----
48
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7092
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7092
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7093
SELECT + col0 DIV + col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1
17
3

skipif mysql # not compatible
query I rowsort label-7093
SELECT + col0 / + col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1
17
3

query III rowsort
SELECT * FROM tab2 WHERE 45 = - col2
----

query I rowsort
SELECT + col1 + - 83 * col2 FROM tab2
----
-1858
-3243
-4747

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7096
SELECT - 67 / + + CAST( NULL AS SIGNED ) + 80 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7096
SELECT - 67 / + + CAST ( NULL AS INTEGER ) + 80 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 44 * - + col1 + col0 AS col1 FROM tab1
----
-135
-1977
-565

query I rowsort
SELECT - ( - col1 ) + 23 * - col0 FROM tab0
----
-1980
-2230
-264

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7099
SELECT * FROM tab2 WHERE - 0 NOT BETWEEN - 63 * col1 + + CAST( NULL AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-7099
SELECT * FROM tab2 WHERE - 0 NOT BETWEEN - 63 * col1 + + CAST ( NULL AS INTEGER ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL <= ( + col0 + + 11 * - 64 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( - 34 )
----

query I rowsort
SELECT DISTINCT col1 + 74 * + col2 AS col2 FROM tab0
----
3559
7327
761

query I rowsort
SELECT ALL + 75 - + col0 AS col2 FROM tab2
----
0
11
29

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - 59 AND ( NULL )
----

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE ( - col2 ) IS NOT NULL
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7106
SELECT ALL - CAST( NULL AS SIGNED ) * + MIN( - 12 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7106
SELECT ALL - CAST ( NULL AS INTEGER ) * + MIN ( - 12 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7107
SELECT MAX( ALL + + 72 ) * + ( - 7 ) AS col1 FROM tab0 AS cor0
----
-504

skipif mysql # not compatible
query I rowsort label-7107
SELECT MAX ( ALL + + 72 ) * + ( - 7 ) AS col1 FROM tab0 AS cor0
----
-504

query I rowsort
SELECT DISTINCT + 61 AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
61

query I rowsort
SELECT - 81 * + col1 AS col1 FROM tab0
----
-1701
-6561
-81

query II rowsort
SELECT col0 AS col0, 83 FROM tab2
----
46
83
64
83
75
83

onlyif mysql # DIV for integer division: 
query I rowsort label-7111
SELECT - 83 DIV + 65 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif mysql # not compatible
query I rowsort label-7111
SELECT - 83 / + 65 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7112
SELECT CAST( NULL AS SIGNED ) + 70 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7112
SELECT CAST ( NULL AS INTEGER ) + 70 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 27 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT ALL + MAX( DISTINCT + ( - 31 ) ) FROM tab0 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7114
SELECT ALL + MAX ( DISTINCT + ( - 31 ) ) FROM tab0 WHERE NOT NULL >= NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7115
SELECT ALL + col0 * 52 DIV 37 DIV col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7115
SELECT ALL + col0 * 52 / 37 / col1 FROM tab2 AS cor0
----
1
1
1

query II rowsort
SELECT - - col2 AS col0, + col0 AS col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7117
SELECT - 89 AS col1, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-89
NULL
-89
NULL
-89
NULL

skipif mysql # not compatible
query II rowsort label-7117
SELECT - 89 AS col1, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-89
NULL
-89
NULL
-89
NULL

query I rowsort
SELECT + 38 FROM tab1 AS cor0 WHERE NOT ( + col1 * + col1 ) IS NULL
----
38
38
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7119
SELECT DISTINCT - 20 * - - 36 + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-717

skipif mysql # not compatible
query I rowsort label-7119
SELECT DISTINCT - 20 * - - 36 + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-717

query II rowsort
SELECT DISTINCT + 32, + col1 AS col0 FROM tab0 AS cor0
----
32
1
32
21
32
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7121
SELECT + 35 DIV + SUM( col0 ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7121
SELECT + 35 / + SUM ( col0 ) FROM tab0 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7122
SELECT col2 - col1 FROM tab1 AS cor0 WHERE NOT 5 + + col2 NOT IN ( + col0 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7122
SELECT col2 - col1 FROM tab1 AS cor0 WHERE NOT 5 + + col2 NOT IN ( + col0 + CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT DISTINCT - 14 AS col2, 39 AS col2 FROM tab2 AS cor0
----
-14
39

query II rowsort
SELECT - 66, ( col1 ) - - 26 AS col1 FROM tab1 AS cor0
----
-66
31
-66
40
-66
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7125
SELECT ALL 48 + - + SUM( DISTINCT - col2 ) FROM tab1
----
271

skipif mysql # not compatible
query I rowsort label-7125
SELECT ALL 48 + - + SUM ( DISTINCT - col2 ) FROM tab1
----
271

query I rowsort
SELECT DISTINCT col2 * 22 AS col0 FROM tab0
----
1034
2178
220

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 * + col1 * - col2 > 3
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7128
SELECT - MAX( ALL + 93 ) * + + 87 * - - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7128
SELECT - MAX ( ALL + 93 ) * + + 87 * - - CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 63 > ( col0 * 66 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + 86 * + col1 FROM tab1 AS cor0
----
-1204
-4042
-430

query I rowsort
SELECT ALL - col0 * - - col0 * + + col2 FROM tab0 AS cor0
----
-10575
-75690
-931491

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-7132
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

skipif mysql # not compatible
query IIIIII rowsort label-7132
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7133
SELECT + MIN( + CAST( NULL AS SIGNED ) ) + 95 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7133
SELECT + MIN ( + CAST ( NULL AS INTEGER ) ) + 95 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT ALL SUM( ALL - col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-7134
SELECT ALL SUM ( ALL - col2 ) FROM tab0 AS cor0
----
-156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7135
SELECT ALL MIN( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( col1 * + CAST( - 90 AS SIGNED ) * col1 ) NOT IN ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7135
SELECT ALL MIN ( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( col1 * + CAST ( - 90 AS INTEGER ) * col1 ) NOT IN ( - col1 )
----
NULL

query I rowsort
SELECT DISTINCT - - 47 - - + 81 AS col2 FROM tab1 AS cor0
----
128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 col0 FROM tab2 cor0
----
71
71
71

onlyif mysql # DIV for integer division: 
query I rowsort label-7138
SELECT - col1 DIV + 68 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7138
SELECT - col1 / + 68 FROM tab0 AS cor0
----
-1
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 30 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 40 / ( 90 ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 * + 43 FROM tab2 AS cor0
----
-1978
-2752
-3225

query I rowsort
SELECT DISTINCT 39 + - 65 FROM tab0
----
-26

query I rowsort
SELECT - col0 - - col2 * + 30 * - col0 FROM tab2
----
-130575
-31786
-76864

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7144
SELECT - 59 - - CAST( - col1 AS SIGNED ) col1 FROM tab0
----
-140
-60
-80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7144
SELECT - 59 - - CAST ( - col1 AS INTEGER ) col1 FROM tab0
----
-140
-60
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7145
SELECT COUNT( * ) - 19 FROM tab2
----
-16

skipif mysql # not compatible
query I rowsort label-7145
SELECT COUNT ( * ) - 19 FROM tab2
----
-16

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE + col0 IS NULL
----

query II rowsort
SELECT ALL + col2 * + col2 - - + ( 11 ) AS col0, 98 FROM tab0
----
111
98
2220
98
9812
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7148
SELECT DISTINCT - MAX( DISTINCT - + col1 ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-7148
SELECT DISTINCT - MAX ( DISTINCT - + col1 ) AS col2 FROM tab1
----
5

query II rowsort
SELECT DISTINCT - 14, + col1 FROM tab1 AS cor0
----
-14
14
-14
47
-14
5

query II rowsort
SELECT - - col2 AS col2, col2 * + 65 FROM tab0 AS cor0
----
10
650
47
3055
99
6435

query I rowsort
SELECT + col2 * col2 * - + ( 98 ) AS col1 FROM tab1 AS cor0
----
-341138
-453152
-903168

onlyif mysql # aggregate syntax: 
query I rowsort label-7152
SELECT - COUNT( ALL col0 ) * + 95 FROM tab1 WHERE NOT ( + + col1 * + 5 + - col1 ) >= + ( + - 12 )
----
0

skipif mysql # not compatible
query I rowsort label-7152
SELECT - COUNT ( ALL col0 ) * + 95 FROM tab1 WHERE NOT ( + + col1 * + 5 + - col1 ) >= + ( + - 12 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7153
SELECT + col1 DIV + 24 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7153
SELECT + col1 / + 24 FROM tab1
----
0
0
1

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col2 + + 37 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7155
SELECT - + ( - SUM( col1 ) ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-7155
SELECT - + ( - SUM ( col1 ) ) AS col2 FROM tab0 AS cor0
----
103

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 15 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7157
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) <> 45 - + + 18
----

skipif mysql # not compatible
query III rowsort label-7157
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) <> 45 - + + 18
----

query II rowsort
SELECT DISTINCT - col1 AS col1, - 96 AS col2 FROM tab0
----
-1
-96
-21
-96
-81
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7159
SELECT DISTINCT COUNT( * ) + + + ( + 55 ) * 28 FROM tab2
----
1543

skipif mysql # not compatible
query I rowsort label-7159
SELECT DISTINCT COUNT ( * ) + + + ( + 55 ) * 28 FROM tab2
----
1543

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <= - col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 IS NOT NULL OR NOT + col1 IS NOT NULL
----

query I rowsort
SELECT ALL 92 + - + col1 FROM tab2
----
15
25
41

onlyif mysql # aggregate syntax: 
query II rowsort label-7163
SELECT 12, + COUNT( * ) AS col2 FROM tab2
----
12
3

skipif mysql # not compatible
query II rowsort label-7163
SELECT 12, + COUNT ( * ) AS col2 FROM tab2
----
12
3

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 14 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE + col0 / - 13 >= + 7 + + - col2 OR NOT + 80 * + 60 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 / - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7167
SELECT + 12 * 58 * - COUNT( * ) * - ( + 13 ) FROM tab2
----
27144

skipif mysql # not compatible
query I rowsort label-7167
SELECT + 12 * 58 * - COUNT ( * ) * - ( + 13 ) FROM tab2
----
27144

query I rowsort
SELECT DISTINCT - ( - 67 ) AS col1 FROM tab2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7169
SELECT DISTINCT - ( COUNT( * ) ) AS col1 FROM tab0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7169
SELECT DISTINCT - ( COUNT ( * ) ) AS col1 FROM tab0 WHERE NULL IS NULL
----
-3

query II rowsort
SELECT ( - col0 ) AS col0, + ( col1 ) * - col0 * - ( + - 72 ) FROM tab1
----
-51
-51408
-85
-30600
-91
-307944

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7172
SELECT DISTINCT + AVG ( DISTINCT + col2 ) AS col2 FROM tab1 WHERE + + col0 + + - CAST( + col2 AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7172
SELECT DISTINCT + AVG ( DISTINCT + col2 ) AS col2 FROM tab1 WHERE + + col0 + + - CAST ( + col2 AS INTEGER ) IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7173
SELECT DISTINCT + - CAST( NULL AS SIGNED ) col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7173
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT - 97 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query I rowsort
SELECT + 76 * - col0 + ( - + col2 ) * + ( + - ( - col2 ) ) FROM tab1 cor0
----
-11540
-13092
-9941

query I rowsort
SELECT DISTINCT + AVG ( col2 ) FROM tab0 AS cor0 WHERE NOT ( ( - - col1 ) ) > NULL
----
NULL

query I rowsort
SELECT DISTINCT + - col2 * - 48 + + 75 AS col2 FROM tab0 AS cor0
----
2331
4827
555

query I rowsort
SELECT col2 + - col1 + col1 + + + 66 + col1 AS col2 FROM tab1 AS cor0
----
130
176
181

onlyif mysql # aggregate syntax: 
query I rowsort label-7179
SELECT ALL - 59 * - + COUNT( * ) - MAX( - ( - col0 ) ) FROM tab0 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-7179
SELECT ALL - 59 * - + COUNT ( * ) - MAX ( - ( - col0 ) ) FROM tab0 AS cor0
----
80

query I rowsort
SELECT ALL 83 * - col1 AS col2 FROM tab1
----
-1162
-3901
-415

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 80 col1 FROM tab0
----
-1
59
79

query I rowsort
SELECT + 73 AS col0 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( + 5 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 4 AS col1, - col0 AS col1 FROM tab1
----
4
-51
4
-85
4
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-7185
SELECT DISTINCT col2 DIV + - col1 FROM tab0
----
-99
0

skipif mysql # not compatible
query I rowsort label-7185
SELECT DISTINCT col2 / + - col1 FROM tab0
----
-99
0

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT + col2 IS NULL
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7187
SELECT DISTINCT - 42 * - CAST( + COUNT( * ) AS SIGNED ) FROM tab2 WHERE NOT col2 IS NULL
----
126

skipif mysql # not compatible
query I rowsort label-7187
SELECT DISTINCT - 42 * - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 WHERE NOT col2 IS NULL
----
126

query II rowsort
SELECT - col2 AS col0, col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-10
21
-47
81
-99
1

query II rowsort
SELECT DISTINCT - - col1, + 67 AS col0 FROM tab1 cor0
----
14
67
47
67
5
67

query I rowsort
SELECT DISTINCT + - 35 AS col0 FROM tab0 cor0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7191
SELECT DISTINCT + ( + ( COUNT( * ) ) ) * - + COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7191
SELECT DISTINCT + ( + ( COUNT ( * ) ) ) * - + COUNT ( * ) FROM tab2 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-7192
SELECT ALL + ( col1 ) DIV + - 8 FROM tab0 AS cor0
----
-10
-2
0

skipif mysql # not compatible
query I rowsort label-7192
SELECT ALL + ( col1 ) / + - 8 FROM tab0 AS cor0
----
-10
-2
0

query I rowsort
SELECT DISTINCT - 53 * 43 AS col1 FROM tab0 WHERE - col1 NOT IN ( + 45, - 92, - 11 )
----
-2279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 73 col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

query II rowsort
SELECT DISTINCT col1, col1 - + - col0 AS col0 FROM tab1
----
14
65
47
138
5
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7196
SELECT COUNT( + 6 ) * 58 FROM tab0
----
174

skipif mysql # not compatible
query I rowsort label-7196
SELECT COUNT ( + 6 ) * 58 FROM tab0
----
174

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7197
SELECT ALL col0 AS col1, CAST( NULL AS SIGNED ) FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-7197
SELECT ALL col0 AS col1, CAST ( NULL AS INTEGER ) FROM tab2
----
46
NULL
64
NULL
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7198
SELECT + MAX( DISTINCT + 35 ) FROM tab1 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-7198
SELECT + MAX ( DISTINCT + 35 ) FROM tab1 AS cor0
----
35

query I rowsort
SELECT 83 * col2 AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) < - 39 + + ( 17 )
----

query II rowsort
SELECT DISTINCT col0, ( - 46 ) AS col1 FROM tab1 AS cor0
----
51
-46
85
-46
91
-46

query I rowsort
SELECT + - col2 + - col2 * - + col1 FROM tab0 AS cor0
----
0
200
3760

query I rowsort
SELECT ALL + - 45 + - 29 + - 61 AS col1 FROM tab2 AS cor0
----
-135
-135
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-7203
SELECT - COUNT( * ) + + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7203
SELECT - COUNT ( * ) + + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-6

query I rowsort
SELECT DISTINCT + col0 * + col1 + - + col0 AS col2 FROM tab0
----
0
1200
1740

query I rowsort
SELECT DISTINCT - + col2 FROM tab1 WHERE NULL = + - ( - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 96 * - + 55 = + + col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 98 = + - col0 + - - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 73 ) + - + 29 col2 FROM tab2
----
44

query I rowsort
SELECT - 55 FROM tab0 WHERE - + col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN - - col1 - + col0 AND - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7211
SELECT DISTINCT col1 + + + CAST( col0 AS SIGNED ) AS col2 FROM tab2
----
141
142
97

skipif mysql # not compatible
query I rowsort label-7211
SELECT DISTINCT col1 + + + CAST ( col0 AS INTEGER ) AS col2 FROM tab2
----
141
142
97

query I rowsort
SELECT ALL - 34 AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

query I rowsort
SELECT + col1 * col1 + + col1 AS col1 FROM tab2
----
2652
4556
6006

onlyif mysql # aggregate syntax: 
query I rowsort label-7214
SELECT ALL + MAX( + 56 ) * COUNT( * ) - + COUNT( * ) FROM tab0 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-7214
SELECT ALL + MAX ( + 56 ) * COUNT ( * ) - + COUNT ( * ) FROM tab0 AS cor0
----
165

query I rowsort
SELECT DISTINCT + col1 - - - col0 FROM tab0 AS cor0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7216
SELECT ALL + 22 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-7216
SELECT ALL + 22 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
66

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> - col1 + - col2 - + col0
----

query I rowsort
SELECT DISTINCT + + col1 * - col0 + col0 - - col1 FROM tab0 AS cor0
----
-1119
-1719
1

query II rowsort
SELECT 43, col0 AS col2 FROM tab2 AS cor0
----
43
46
43
64
43
75

query I rowsort
SELECT - + col1 * 72 AS col2 FROM tab1 AS cor0
----
-1008
-3384
-360

query I rowsort
SELECT DISTINCT - + col1 * + col2 AS col1 FROM tab1 cor0
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7222
SELECT DISTINCT CAST( - - col0 AS SIGNED ) AS col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7222
SELECT DISTINCT CAST ( - - col0 AS INTEGER ) AS col0 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7223
SELECT DISTINCT CAST( - 12 AS SIGNED ) * col1 + - CAST( 75 AS SIGNED ) + - + 15 * col2 + - + col1 AS col2 FROM tab0
----
-1573
-1833
-498

skipif mysql # not compatible
query I rowsort label-7223
SELECT DISTINCT CAST ( - 12 AS INTEGER ) * col1 + - CAST ( 75 AS INTEGER ) + - + 15 * col2 + - + col1 AS col2 FROM tab0
----
-1573
-1833
-498

onlyif mysql # DIV for integer division: 
query I rowsort label-7224
SELECT 29 DIV - + col1 FROM tab1
----
-2
-5
0

skipif mysql # not compatible
query I rowsort label-7224
SELECT 29 / - + col1 FROM tab1
----
-2
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7225
SELECT + SUM( ( - - col0 ) ) col0 FROM tab2
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7225
SELECT + SUM ( ( - - col0 ) ) col0 FROM tab2
----
185

onlyif mysql # DIV for integer division: 
query I rowsort label-7226
SELECT col0 DIV - 75 AS col0 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7226
SELECT col0 / - 75 AS col0 FROM tab1
----
-1
-1
0

query I rowsort
SELECT ALL + col2 * - - 25 AS col0 FROM tab0 AS cor0
----
1175
2475
250

query II rowsort
SELECT ( + col1 ), col0 * col2 * + 11 FROM tab1 AS cor0
----
14
53856
47
68068
5
55165

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7229
SELECT * FROM tab0 cor0 WHERE NOT NULL >= - CAST( - - col0 AS SIGNED ) * 53
----

skipif mysql # not compatible
query III rowsort label-7229
SELECT * FROM tab0 cor0 WHERE NOT NULL >= - CAST ( - - col0 AS INTEGER ) * 53
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7230
SELECT DISTINCT - + col1 DIV + - col0 + - 3 * - col2, col0 AS col1 FROM tab2 AS cor0
----
121
64
174
75
70
46

skipif mysql # not compatible
query II rowsort label-7230
SELECT DISTINCT - + col1 / + - col0 + - 3 * - col2, col0 AS col1 FROM tab2 AS cor0
----
121
64
174
75
70
46

query I rowsort
SELECT ALL - col2 + + 61 FROM tab0
----
-38
14
51

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 59 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7233
SELECT + 92 * COUNT( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
828

skipif mysql # not compatible
query I rowsort label-7233
SELECT + 92 * COUNT ( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
828

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * + col0 + - + ( + - 8 ) > col2 + col1 * 2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( - - 6 ) AS col1 FROM tab0 AS cor0
----
-6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * + col1 + - 38 = - col1 - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7237
SELECT DISTINCT + MAX( - col0 ) AS col2 FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-7237
SELECT DISTINCT + MAX ( - col0 ) AS col2 FROM tab2 cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7238
SELECT DISTINCT ( + + SUM( - 56 ) ) AS col1 FROM tab1 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-7238
SELECT DISTINCT ( + + SUM ( - 56 ) ) AS col1 FROM tab1 AS cor0
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-7239
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE col2 NOT BETWEEN + - col2 AND - 45 + + 63
----
2

skipif mysql # not compatible
query I rowsort label-7239
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE col2 NOT BETWEEN + - col2 AND - 45 + + 63
----
2

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 98 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7241
SELECT ALL - + col0 DIV - + ( - col2 ) FROM tab0 cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-7241
SELECT ALL - + col0 / - + ( - col2 ) FROM tab0 cor0
----
-8
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7242
SELECT - 50 DIV col2 col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7242
SELECT - 50 / col2 col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 BETWEEN NULL AND - + 96 - - col1
----

query I rowsort
SELECT DISTINCT + col0 + col0 - + - 40 FROM tab2
----
132
168
190

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7245
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) DIV 25 AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7245
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) / 25 AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7246
SELECT COUNT( * ) + - 10 AS col0 FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-7246
SELECT COUNT ( * ) + - 10 AS col0 FROM tab1
----
-7

query I rowsort
SELECT ALL + ( - + col1 ) + - col2 AS col1 FROM tab1
----
-110
-115
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-7248
SELECT - col1 DIV - 27 + col1 FROM tab2
----
52
69
79

skipif mysql # not compatible
query I rowsort label-7248
SELECT - col1 / - 27 + col1 FROM tab2
----
52
69
79

query I rowsort
SELECT col1 + col2 - - col0 * 25 AS col1 FROM tab1
----
1385
2189
2390

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7250
SELECT ALL + COUNT( * ) DIV + 16 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7250
SELECT ALL + COUNT ( * ) / + 16 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7251
SELECT ALL 4 AS col1, COUNT( * ) * + 40 AS col0 FROM tab2 AS cor0 WHERE - 89 < col0
----
4
120

skipif mysql # not compatible
query II rowsort label-7251
SELECT ALL 4 AS col1, COUNT ( * ) * + 40 AS col0 FROM tab2 AS cor0 WHERE - 89 < col0
----
4
120

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + - 60 ) IS NULL
----

query I rowsort
SELECT + 96 * - col0 AS col2 FROM tab2 AS cor0
----
-4416
-6144
-7200

onlyif mysql # DIV for integer division: 
query I rowsort label-7254
SELECT + col2 DIV col1 DIV col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7254
SELECT + col2 / col1 / col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7255
SELECT col2 * - - col2, CAST( + 63 AS SIGNED ) DIV col1 AS col1 FROM tab2
----
1600
0
3364
0
529
1

skipif mysql # not compatible
query II rowsort label-7255
SELECT col2 * - - col2, CAST ( + 63 AS INTEGER ) / col1 AS col1 FROM tab2
----
1600
0
3364
0
529
1

query I rowsort
SELECT DISTINCT col0 + - + 81 * + col0 * - + 64 * col1 FROM tab2
----
12161710
25546816
26049675

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7257
SELECT + col0 * - col1, - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
-1215
NULL
-1827
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-7257
SELECT + col0 * - col1, - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
-1215
NULL
-1827
NULL
-97
NULL

query II rowsort
SELECT ALL col2 + col1 AS col1, col0 AS col2 FROM tab2 AS cor0
----
117
64
125
75
74
46

query I rowsort
SELECT - - col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL < 28
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 85 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7261
SELECT DISTINCT 40 * + CAST( + - COUNT( + col0 ) AS SIGNED ) FROM tab2 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-7261
SELECT DISTINCT 40 * + CAST ( + - COUNT ( + col0 ) AS INTEGER ) FROM tab2 AS cor0
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-7262
SELECT + MIN( - col0 ) col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7262
SELECT + MIN ( - col0 ) col2 FROM tab1 AS cor0
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col1 * col2 * + - 2 + + col0 + - + 58 col0 FROM tab2 AS cor0
----
-246394
-450759
-53970

onlyif mysql # DIV for integer division: 
query II rowsort label-7264
SELECT ALL 45 * + col2 DIV - + col2 AS col1, + 82 AS col2 FROM tab2
----
-45
82
-45
82
-45
82

skipif mysql # not compatible
query II rowsort label-7264
SELECT ALL 45 * + col2 / - + col2 AS col1, + 82 AS col2 FROM tab2
----
-45
82
-45
82
-45
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7265
SELECT + 11 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7265
SELECT + 11 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + - col0 * + - col0 FROM tab0
----
158949
18225
9409

query I rowsort
SELECT DISTINCT 49 * + 1 FROM tab2, tab2 cor0
----
49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7268
SELECT ALL MAX( DISTINCT - - CAST( NULL AS DECIMAL ) ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7268
SELECT ALL MAX ( DISTINCT - - CAST ( NULL AS REAL ) ) col2 FROM tab1
----
NULL

query I rowsort
SELECT - col1 * + - 3 + - + 56 * + 44 AS col1 FROM tab0 AS cor0
----
-2221
-2401
-2461

query II rowsort
SELECT ALL - col0 AS col1, - 1 AS col0 FROM tab0 AS cor0
----
-15
-1
-87
-1
-97
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7271
SELECT - + COUNT( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7271
SELECT - + COUNT ( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7272
SELECT COUNT( * ) + - AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7272
SELECT COUNT ( * ) + - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7273
SELECT DISTINCT 51 DIV + 3 AS col1 FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-7273
SELECT DISTINCT 51 / + 3 AS col1 FROM tab2
----
17

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7274
SELECT DISTINCT col0 / + col2 * - + ( - + CAST( - 61 AS SIGNED ) ) * + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7274
SELECT DISTINCT col0 / + col2 * - + ( - + CAST ( - 61 AS INTEGER ) ) * + CAST ( NULL AS REAL ) FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT + + ( col2 ), - col0 AS col0 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

query I rowsort
SELECT col1 * + col2 * + col1 - + + col2 + - col2 + col1 FROM tab2 AS cor0
----
237157
260313
59828

query I rowsort
SELECT - col1 * col0 * - col1 + - + col1 * - col1 * col1 FROM tab0 AS cor0
----
47628
629856
98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - + col1 IN ( col2 * col0, + 43 ) )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7279
SELECT - col1 + + + CAST( 32 AS SIGNED ) DIV 32 * 86 AS col2 FROM tab1 AS cor0
----
39
72
81

skipif mysql # not compatible
query I rowsort label-7279
SELECT - col1 + + + CAST ( 32 AS INTEGER ) / 32 * 86 AS col2 FROM tab1 AS cor0
----
39
72
81

query I rowsort
SELECT DISTINCT + - col2 + ( - col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT ALL + - 46 AS col1 FROM tab1 AS cor0
----
-46
-46
-46

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> - ( 70 )
----

query I rowsort
SELECT ALL - col2 + col0 * - 80 FROM tab0 AS cor0
----
-1247
-6970
-7859

onlyif mysql # aggregate syntax: 
query I rowsort label-7284
SELECT ALL 63 + + COUNT( * ) FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-7284
SELECT ALL 63 + + COUNT ( * ) FROM tab0
----
66

query I rowsort
SELECT DISTINCT 81 + col0 AS col0 FROM tab2
----
127
145
156

query III rowsort
SELECT * FROM tab1 WHERE + 72 <> ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7287
SELECT MAX( DISTINCT + + 98 ) AS col1 FROM tab1
----
98

skipif mysql # not compatible
query I rowsort label-7287
SELECT MAX ( DISTINCT + + 98 ) AS col1 FROM tab1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7288
SELECT DISTINCT + 4 - + COUNT( * ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7288
SELECT DISTINCT + 4 - + COUNT ( * ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7289
SELECT ALL - MIN( - + col1 ) + + + 11 AS col0 FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-7289
SELECT ALL - MIN ( - + col1 ) + + + 11 AS col0 FROM tab1
----
58

query I rowsort
SELECT DISTINCT 54 + + + col0 AS col1 FROM tab0
----
141
151
69

query I rowsort
SELECT DISTINCT ( + 67 ) FROM tab2 AS cor0
----
67

query I rowsort
SELECT + 97 - + + 28 AS col2 FROM tab2 AS cor0
----
69
69
69

query I rowsort
SELECT 6 - - + 80 * + + col0 * + + 97 * - 88 - col2 AS col1 FROM tab0 AS cor0
----
-10243241
-59410564
-66239453

query I rowsort
SELECT col0 * + col0 - - col2 AS col0 FROM tab2 cor0
----
2139
4136
5683

query I rowsort
SELECT ALL 55 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7296
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, 19 * + + col1 + - col1 col0 FROM tab2
----
NULL
1206
NULL
1386
NULL
918

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7296
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, 19 * + + col1 + - col1 col0 FROM tab2
----
NULL
1206
NULL
1386
NULL
918

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 21 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7298
SELECT DISTINCT ( + + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7298
SELECT DISTINCT ( + + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-7299
SELECT ALL + col2 AS col2, + col2 DIV 50 AS col0 FROM tab2 AS cor0
----
23
0
40
0
58
1

skipif mysql # not compatible
query II rowsort label-7299
SELECT ALL + col2 AS col2, + col2 / 50 AS col0 FROM tab2 AS cor0
----
23
0
40
0
58
1

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col0 * - col2 NOT BETWEEN - 80 * + + 50 AND 69 + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT + 86 IN ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7302
SELECT + COUNT( * ) DIV + 7 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7302
SELECT + COUNT ( * ) / + 7 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7303
SELECT ( - 19 ) * + COUNT( * ) AS col1 FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-7303
SELECT ( - 19 ) * + COUNT ( * ) AS col1 FROM tab2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7304
SELECT DISTINCT COUNT( * ) * MIN( DISTINCT - col2 ) col0 FROM tab1 AS cor0
----
-288

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7304
SELECT DISTINCT COUNT ( * ) * MIN ( DISTINCT - col2 ) col0 FROM tab1 AS cor0
----
-288

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 = - col2 + - col1 * - - 45
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 28 <= + - ( + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7307
SELECT + COUNT( * ) FROM tab2 WHERE NOT ( 66 ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-7307
SELECT + COUNT ( * ) FROM tab2 WHERE NOT ( 66 ) = NULL
----
0

query I rowsort
SELECT col0 * + 40 AS col2 FROM tab1
----
2040
3400
3640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7309
SELECT ALL 72 DIV MAX( + - col1 ) col0 FROM tab1
----
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7309
SELECT ALL 72 / MAX ( + - col1 ) col0 FROM tab1
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7310
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <= ( + CAST( - 5 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7310
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <= ( + CAST ( - 5 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7311
SELECT ALL MAX( col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-7311
SELECT ALL MAX ( col2 ) FROM tab0 AS cor0
----
99

query II rowsort
SELECT ALL + 3 AS col2, + 11 + - + col0 FROM tab1 cor0
----
3
-40
3
-74
3
-80

query I rowsort
SELECT col0 + + col1 * - + ( 25 ) AS col1 FROM tab1
----
-1084
-299
-40

query I rowsort
SELECT + col0 + col0 + - col2 * col1 AS col0 FROM tab1
----
-1242
-125
-3014

onlyif mysql # aggregate syntax: 
query I rowsort label-7315
SELECT ALL - MIN( - col0 ) + - MAX( DISTINCT + 27 ) / + MAX( + col2 ) FROM tab1 WHERE ( NOT - col2 + - - col0 BETWEEN NULL AND + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7315
SELECT ALL - MIN ( - col0 ) + - MAX ( DISTINCT + 27 ) / + MAX ( + col2 ) FROM tab1 WHERE ( NOT - col2 + - - col0 BETWEEN NULL AND + col2 )
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = - 83
----

query I rowsort
SELECT DISTINCT + 61 AS col2 FROM tab1 cor0
----
61

query I rowsort
SELECT ALL - - 48 AS col0 FROM tab1 AS cor0 WHERE + col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT ALL - COUNT( ALL - 82 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7319
SELECT ALL - COUNT ( ALL - 82 ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + - ( + + 71 ) AS col1 FROM tab2 AS cor0
----
-71
-71
-71

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 * - + col0 * + - 56 * + + 17 >= + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - - col0 AS col2, - col2 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 / + col1 >= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7324
SELECT DISTINCT + - COUNT( 27 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7324
SELECT DISTINCT + - COUNT ( 27 ) FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 13 col1, col1 + col0 FROM tab2 AS cor0
----
13
141
13
142
13
97

onlyif mysql # DIV for integer division: 
query II rowsort label-7326
SELECT ALL - - 81 AS col0, + col2 + + - col2 + 40 DIV col2 AS col1 FROM tab1 AS cor0
----
81
0
81
0
81
0

skipif mysql # not compatible
query II rowsort label-7326
SELECT ALL - - 81 AS col0, + col2 + + - col2 + 40 / col2 AS col1 FROM tab1 AS cor0
----
81
0
81
0
81
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7327
SELECT ALL MAX( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7327
SELECT ALL MAX ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT MIN( - 32 ) FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-7328
SELECT MIN ( - 32 ) FROM tab0
----
-32

query II rowsort
SELECT ALL + col0 AS col1, col2 AS col1 FROM tab2
----
46
23
64
40
75
58

query I rowsort
SELECT ALL + col1 * - 89 AS col2 FROM tab1
----
-1246
-4183
-445

query I rowsort
SELECT ( - col2 ) FROM tab1 WHERE NOT - - col1 IS NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7332
SELECT ( - COUNT( * ) ) * 5 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7332
SELECT ( - COUNT ( * ) ) * 5 FROM tab1 AS cor0
----
-15

query II rowsort
SELECT 71, col0 AS col2 FROM tab2 AS cor0
----
71
46
71
64
71
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7334
SELECT + + CAST( + 40 AS SIGNED ) FROM tab1 AS cor0
----
40
40
40

skipif mysql # not compatible
query I rowsort label-7334
SELECT + + CAST ( + 40 AS INTEGER ) FROM tab1 AS cor0
----
40
40
40

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 1 + - col2 * + col2 < NULL
----

query I rowsort
SELECT col1 * + ( ( - col0 ) ) + + - 86 FROM tab2 AS cor0
----
-2432
-5014
-5111

query II rowsort
SELECT - 94, + col1 AS col0 FROM tab0 AS cor0
----
-94
1
-94
21
-94
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7338
SELECT + SUM( DISTINCT - 4 ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-4

skipif mysql # not compatible
query I rowsort label-7338
SELECT + SUM ( DISTINCT - 4 ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-4

query I rowsort
SELECT ALL 24 AS col1 FROM tab2 WHERE - col2 IS NOT NULL
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT - + MIN( DISTINCT - + 26 ) col2 FROM tab0, tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7340
SELECT - + MIN ( DISTINCT - + 26 ) col2 FROM tab0, tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
26

query I rowsort
SELECT + col0 + 20 AS col2 FROM tab0 cor0
----
107
117
35

query I rowsort
SELECT - - col0 + - col1 + ( col0 ) FROM tab2 AS cor0
----
41
51
83

query I rowsort
SELECT + - col0 + + col0 * - col1 - - col2 + col0 FROM tab2 AS cor0
----
-2323
-4888
-4967

onlyif mysql # aggregate syntax: 
query I rowsort label-7344
SELECT COUNT( - + col1 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7344
SELECT COUNT ( - + col1 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7345
SELECT - 72 * SUM( + ( - col1 ) ) FROM tab0 AS cor0
----
7416

skipif mysql # not compatible
query I rowsort label-7345
SELECT - 72 * SUM ( + ( - col1 ) ) FROM tab0 AS cor0
----
7416

query I rowsort
SELECT DISTINCT - col1 * + - col0 * 6 FROM tab1 AS cor0
----
2550
25662
4284

onlyif mysql # DIV for integer division: 
query I rowsort label-7347
SELECT + 76 DIV + 35 + + 97 FROM tab0 cor0
----
99
99
99

skipif mysql # not compatible
query I rowsort label-7347
SELECT + 76 / + 35 + + 97 FROM tab0 cor0
----
99
99
99

query I rowsort
SELECT ALL - 19 AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 WHERE + col0 BETWEEN - col2 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7350
SELECT DISTINCT 55 * - - MAX( - col2 ) AS col2 FROM tab2
----
-1265

skipif mysql # not compatible
query I rowsort label-7350
SELECT DISTINCT 55 * - - MAX ( - col2 ) AS col2 FROM tab2
----
-1265

onlyif mysql # aggregate syntax: 
query I rowsort label-7351
SELECT DISTINCT 6 * ( + + COUNT( * ) ) + - COUNT( * ) col1 FROM tab1
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7351
SELECT DISTINCT 6 * ( + + COUNT ( * ) ) + - COUNT ( * ) col1 FROM tab1
----
15

query II rowsort
SELECT 61 AS col2, - col0 + + 29 AS col1 FROM tab0
----
61
-58
61
-68
61
14

query I rowsort
SELECT ALL + 23 + ( col2 ) + - + col0 AS col1 FROM tab0
----
-54
25
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7354
SELECT ALL COUNT( * ) - - - COUNT( * ) col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7354
SELECT ALL COUNT ( * ) - - - COUNT ( * ) col0 FROM tab2
----
0

query I rowsort
SELECT col0 + 84 AS col0 FROM tab1 AS cor0
----
135
169
175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7356
SELECT - CAST( 67 AS SIGNED ) * + CAST( + 47 AS SIGNED ) FROM tab0 AS cor0
----
-3149
-3149
-3149

skipif mysql # not compatible
query I rowsort label-7356
SELECT - CAST ( 67 AS INTEGER ) * + CAST ( + 47 AS INTEGER ) FROM tab0 AS cor0
----
-3149
-3149
-3149

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 41 + + - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + + 86 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
86

query I rowsort
SELECT + + 16 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT - COUNT( - + 85 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7360
SELECT - COUNT ( - + 85 ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT ALL - - col1 * + - col2 AS col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7362
SELECT 31 / col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7362
SELECT 31 / col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 32 * ( col0 ) FROM tab2 AS cor0
----
1472
2048
2400

onlyif mysql # DIV for integer division: 
query I rowsort label-7364
SELECT ALL + col1 DIV col1 DIV - 24 - - ( ( - col1 ) ) * 42 AS col2 FROM tab2 AS cor0
----
-2142
-2814
-3234

skipif mysql # not compatible
query I rowsort label-7364
SELECT ALL + col1 / col1 / - 24 - - ( ( - col1 ) ) * 42 AS col2 FROM tab2 AS cor0
----
-2142
-2814
-3234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7365
SELECT CAST( ( - - SUM( - 0 ) ) AS SIGNED ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7365
SELECT CAST ( ( - - SUM ( - 0 ) ) AS INTEGER ) AS col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7366
SELECT ALL + CAST( + + ( - CAST( NULL AS SIGNED ) ) AS SIGNED ) FROM tab0 WHERE NOT - 18 NOT BETWEEN NULL AND - col1
----

skipif mysql # not compatible
query I rowsort label-7366
SELECT ALL + CAST ( + + ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) FROM tab0 WHERE NOT - 18 NOT BETWEEN NULL AND - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7367
SELECT + col1 * - + 21 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NOT - 98 IN ( - 26 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7367
SELECT + col1 * - + 21 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT - 98 IN ( - 26 )
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col1 / col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 + - 46 * + col0 AS col0 FROM tab0
----
-3915
-4365
-675

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7370
SELECT DISTINCT 35 AS col2, + ( - COUNT( * ) ) * - CAST( NULL AS SIGNED ) / 26 col0 FROM tab2
----
35
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7370
SELECT DISTINCT 35 AS col2, + ( - COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) / 26 col0 FROM tab2
----
35
NULL

query I rowsort
SELECT ALL 51 AS col2 FROM tab1 WHERE NOT + 4 IS NOT NULL
----

query I rowsort
SELECT + col0 + - col2 + - col1 * - 23 AS col0 FROM tab1
----
1104
141
277

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + + 27 + + 30 * - col0 + + - col0 col1, 21 FROM tab0
----
-2583
21
-2883
21
-423
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7374
SELECT - MAX( DISTINCT + col0 ) + 43 AS col2 FROM tab1 cor0
----
-48

skipif mysql # not compatible
query I rowsort label-7374
SELECT - MAX ( DISTINCT + col0 ) + 43 AS col2 FROM tab1 cor0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7375
SELECT DISTINCT - COUNT( ALL - 77 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7375
SELECT DISTINCT - COUNT ( ALL - 77 ) FROM tab1 cor0
----
-3

query I rowsort
SELECT - + col2 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) >= + ( 49 ) + - 78 * + 37
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7377
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7377
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 >= + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col2 * 49 AS col1 FROM tab2
----
1127
1960
2842

query II rowsort
SELECT DISTINCT - col1 AS col2, 39 * col0 AS col2 FROM tab2 WHERE NULL < - + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7380
SELECT ALL 67 + + - CAST( COUNT( * ) AS SIGNED ) FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-7380
SELECT ALL 67 + + - CAST ( COUNT ( * ) AS INTEGER ) FROM tab1
----
64

query II rowsort
SELECT + 35, col2 FROM tab2
----
35
23
35
40
35
58

query I rowsort
SELECT - - 29 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT ( - 35 ) * - col1 AS col0 FROM tab1
----
1645
175
490

query I rowsort
SELECT 5 * - 61 FROM tab1
----
-305
-305
-305

query I rowsort
SELECT ALL col1 + - + 12 AS col0 FROM tab2 AS cor0
----
39
55
65

query I rowsort
SELECT DISTINCT + 5 - - col2 AS col1 FROM tab1 AS cor0
----
101
64
73

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7387
SELECT + - col0 * - + ( 76 ) * - ( - col2 ) * - + CAST( + 76 AS SIGNED ) + CAST( col2 AS DECIMAL ) * + - col0 + - + 17 * - col1 FROM tab1 AS cor0 WHERE col1 * col1 * col2 BETWEEN NULL AND - 7
----

skipif mysql # not compatible
query I rowsort label-7387
SELECT + - col0 * - + ( 76 ) * - ( - col2 ) * - + CAST ( + 76 AS INTEGER ) + CAST ( col2 AS REAL ) * + - col0 + - + 17 * - col1 FROM tab1 AS cor0 WHERE col1 * col1 * col2 BETWEEN NULL AND - 7
----

query I rowsort
SELECT ALL col2 - - + 55 FROM tab0 cor0
----
102
154
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - + 23 col2 FROM tab0 AS cor0
----
-13
24
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7390
SELECT MIN( + col1 ) + 2 FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-7390
SELECT MIN ( + col1 ) + 2 FROM tab2 AS cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7391
SELECT - - COUNT( * ) + MAX( ALL - + 17 ) FROM tab1 cor0
----
-14

skipif mysql # not compatible
query I rowsort label-7391
SELECT - - COUNT ( * ) + MAX ( ALL - + 17 ) FROM tab1 cor0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7392
SELECT - SUM( - ( + + 17 ) ) col1 FROM tab0 cor0 WHERE - col2 IS NOT NULL
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7392
SELECT - SUM ( - ( + + 17 ) ) col1 FROM tab0 cor0 WHERE - col2 IS NOT NULL
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7393
SELECT DISTINCT COUNT( DISTINCT + 19 ) + - 43 FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-7393
SELECT DISTINCT COUNT ( DISTINCT + 19 ) + - 43 FROM tab2
----
-42

query I rowsort
SELECT ALL + col1 * col2 * - col0 AS col1 FROM tab0
----
-18270
-57105
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7395
SELECT DISTINCT col0 + - + CAST( col2 AS SIGNED ) FROM tab2
----
17
23
24

skipif mysql # not compatible
query I rowsort label-7395
SELECT DISTINCT col0 + - + CAST ( col2 AS INTEGER ) FROM tab2
----
17
23
24

query I rowsort
SELECT + col0 * + ( + + 13 ) FROM tab0
----
1131
1261
195

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7397
SELECT ALL CAST( NULL AS SIGNED ) + - + col2 AS col2, - col1 FROM tab2
----
NULL
-51
NULL
-67
NULL
-77

skipif mysql # not compatible
query II rowsort label-7397
SELECT ALL CAST ( NULL AS INTEGER ) + - + col2 AS col2, - col1 FROM tab2
----
NULL
-51
NULL
-67
NULL
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7398
SELECT DISTINCT 85 * COUNT( * ) / + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7398
SELECT DISTINCT 85 * COUNT ( * ) / + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7399
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE - + col2 * + col0 BETWEEN NULL AND - + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7399
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE - + col2 * + col0 BETWEEN NULL AND - + CAST ( NULL AS INTEGER )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7400
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + col0 AS col2, - col1 FROM tab2 AS cor0
----
NULL
-51
NULL
-67
NULL
-77

skipif mysql # not compatible
query II rowsort label-7400
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + col0 AS col2, - col1 FROM tab2 AS cor0
----
NULL
-51
NULL
-67
NULL
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col1, - col0 + + 18 + - ( col1 ) AS col2 FROM tab1
----
-14
-47
-47
-120
-5
-72

query I rowsort
SELECT - ( col2 ) * + + col1 * col1 AS col2 FROM tab2 AS cor0
----
-237160
-260362
-59823

onlyif mysql # aggregate syntax: 
query I rowsort label-7403
SELECT + SUM( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-7403
SELECT + SUM ( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
-223

query I rowsort
SELECT ALL + - 61 AS col1 FROM tab2 AS cor0
----
-61
-61
-61

query I rowsort
SELECT col2 * col2 + - + col0 AS col0 FROM tab1 AS cor0 WHERE NOT - ( - col0 ) <> - + 0
----

query I rowsort
SELECT + col1 + + - col2 AS col2 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7407
SELECT + COUNT( * ) + 12 AS col1 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-7407
SELECT + COUNT ( * ) + 12 AS col1 FROM tab2 AS cor0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-7408
SELECT ALL + 18 DIV 64 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7408
SELECT ALL + 18 / 64 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 - - - col0 AS col1 FROM tab2 cor0 WHERE NOT 32 BETWEEN col2 AND NULL
----
-141
-142

query I rowsort
SELECT col2 + - 75 AS col0 FROM tab0 cor0
----
-28
-65
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7411
SELECT ALL - CAST( NULL AS SIGNED ) + + 79 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7411
SELECT ALL - CAST ( NULL AS INTEGER ) + + 79 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7412
SELECT ALL - 73 + + col0 DIV + ( + col0 ) FROM tab1
----
-72
-72
-72

skipif mysql # not compatible
query I rowsort label-7412
SELECT ALL - 73 + + col0 / + ( + col0 ) FROM tab1
----
-72
-72
-72

query I rowsort
SELECT ALL - 29 + + 51 AS col2 FROM tab1
----
22
22
22

query I rowsort
SELECT DISTINCT + 7 FROM tab0 WHERE NULL <> col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7415
SELECT CAST( NULL AS SIGNED ) / + COUNT( * ) AS col2, + COUNT( * ) FROM tab1
----
NULL
3

skipif mysql # not compatible
query II rowsort label-7415
SELECT CAST ( NULL AS INTEGER ) / + COUNT ( * ) AS col2, + COUNT ( * ) FROM tab1
----
NULL
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7416
SELECT ALL + col0 DIV CAST( - col2 AS SIGNED ) FROM tab1 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7416
SELECT ALL + col0 / CAST ( - col2 AS INTEGER ) FROM tab1 cor0
----
-1
-1
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7417
SELECT + CAST( NULL AS DECIMAL ) * + 85 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7417
SELECT + CAST ( NULL AS REAL ) * + 85 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7418
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7418
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 + + + ( - col2 ) FROM tab0 AS cor0
----
-196
-62
-97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col1 ) NOT IN ( 71, 85 + - ( col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 * 47 + - col0 AS col0 FROM tab1 AS cor0
----
-2448
-4080
-4368

query I rowsort
SELECT + 97 + col2 FROM tab0
----
107
144
196

onlyif mysql # aggregate syntax: 
query I rowsort label-7423
SELECT SUM( + + col2 ) + - COUNT( * ) + - - 80 AS col2 FROM tab1
----
300

skipif mysql # not compatible
query I rowsort label-7423
SELECT SUM ( + + col2 ) + - COUNT ( * ) + - - 80 AS col2 FROM tab1
----
300

query I rowsort
SELECT + 48 * col2 FROM tab2 AS cor0
----
1104
1920
2784

query I rowsort
SELECT ( - 58 ) FROM tab2 AS cor0
----
-58
-58
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 92 col0, + col1 AS col2 FROM tab0 AS cor0
----
92
1
92
21
92
81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - ( col2 ) - 8 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 50, ( - col0 ) col0 FROM tab0 cor0
----
-50
-15
-50
-87
-50
-97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT ALL MAX( DISTINCT - col1 ) - + 56 AS col2 FROM tab0 cor0
----
-57

skipif mysql # not compatible
query I rowsort label-7430
SELECT ALL MAX ( DISTINCT - col1 ) - + 56 AS col2 FROM tab0 cor0
----
-57

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 66 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7432
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col0 FROM tab0, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7432
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col0 FROM tab0, tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col2, + 30 FROM tab0
----
10
30
47
30
99
30

query I rowsort
SELECT 12 * 31 FROM tab1
----
372
372
372

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, + col1 AS col2 FROM tab2
----
23
51
40
77
58
67

query I rowsort
SELECT DISTINCT - + 35 FROM tab1 WHERE NULL IS NULL
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT ALL + COUNT( ALL + col2 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7437
SELECT ALL + COUNT ( ALL + col2 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT DISTINCT - - col2 * - col1 + - + 56 AS col1 FROM tab2 AS cor0
----
-1229
-3136
-3942

query II rowsort
SELECT + 59, + 70 AS col2 FROM tab1 AS cor0
----
59
70
59
70
59
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7440
SELECT + COUNT( * ) AS col0 FROM tab0 cor0 INNER JOIN tab1 cor1 ON NOT 49 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7440
SELECT + COUNT ( * ) AS col0 FROM tab0 cor0 INNER JOIN tab1 cor1 ON NOT 49 <= NULL
----
0

query I rowsort
SELECT - col1 * col1 + + col1 + + col2 * - 3 FROM tab1 AS cor0
----
-197
-2366
-470

query I rowsort
SELECT col0 * - 60 + 15 + - col1 / - + 87 + + 24 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT ALL col1 * + col2 - - col2 + + 86 + + col1 AS col1 FROM tab1 AS cor0
----
1540
3397
445

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - + 24 ) + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7445
SELECT + MAX( col2 ) AS col0 FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-7445
SELECT + MAX ( col2 ) AS col0 FROM tab1 cor0
----
96

query I rowsort
SELECT DISTINCT + + 86 AS col1 FROM tab1 AS cor0
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7447
SELECT - CAST( 46 AS SIGNED ) FROM tab2
----
-46
-46
-46

skipif mysql # not compatible
query I rowsort label-7447
SELECT - CAST ( 46 AS INTEGER ) FROM tab2
----
-46
-46
-46

query I rowsort
SELECT ALL 53 + - + 43 + - col2 * - col2 FROM tab0
----
110
2219
9811

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 * col2 * - 44 + - 20 * 9 + - + col1 col2 FROM tab0
----
-153293
-322525
-32761

query I rowsort
SELECT col0 + - + 22 AS col1 FROM tab0
----
-7
65
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT COUNT( * ) AS col1 FROM tab0 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-7451
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE NULL = NULL
----
0

query I rowsort
SELECT ALL + col1 * - + col2 AS col0 FROM tab1
----
-1344
-295
-3196

onlyif mysql # DIV for integer division: 
query I rowsort label-7453
SELECT ALL - col0 - + col2 + 59 * col1 DIV + col0 FROM tab2 cor0
----
-34
-4
-81

skipif mysql # not compatible
query I rowsort label-7453
SELECT ALL - col0 - + col2 + 59 * col1 / + col0 FROM tab2 cor0
----
-34
-4
-81

query I rowsort
SELECT - - ( + - ( col2 ) ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( 42 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 < + col2 * + - col1 + + ( + 72 ) + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7457
SELECT DISTINCT + + 1 - MIN( ALL col2 ) FROM tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7457
SELECT DISTINCT + + 1 - MIN ( ALL col2 ) FROM tab0 cor0
----
-9

query I rowsort
SELECT ALL - 96 + col2 FROM tab0 cor0
----
-49
-86
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT + MAX( ALL + col1 ) FROM tab0 AS cor0 WHERE + 68 * col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7459
SELECT + MAX ( ALL + col1 ) FROM tab0 AS cor0 WHERE + 68 * col0 IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7460
SELECT + + CAST( COUNT( - 95 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7460
SELECT + + CAST ( COUNT ( - 95 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE col2 + - 92 - + + col0 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7462
SELECT - col2 * - 90 DIV 45 AS col2 FROM tab2 AS cor0
----
116
46
80

skipif mysql # not compatible
query I rowsort label-7462
SELECT - col2 * - 90 / 45 AS col2 FROM tab2 AS cor0
----
116
46
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7463
SELECT + MIN( ALL col1 ) AS col0 FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-7463
SELECT + MIN ( ALL col1 ) AS col0 FROM tab2 cor0
----
51

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 91 IS NULL
----

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT 20 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT DISTINCT SUM( DISTINCT + 67 ) AS col1 FROM tab2
----
67

skipif mysql # not compatible
query I rowsort label-7466
SELECT DISTINCT SUM ( DISTINCT + 67 ) AS col1 FROM tab2
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7467
SELECT col2 * col0 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7467
SELECT col2 * col0 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 5 * col2 FROM tab0 WHERE NULL NOT BETWEEN + - col2 AND NULL
----

query I rowsort
SELECT 33 * + - 13 AS col1 FROM tab2
----
-429
-429
-429

query I rowsort
SELECT 50 * - 70 FROM tab0
----
-3500
-3500
-3500

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT - ( - - COUNT( * ) ) col2 FROM tab0 cor0 WHERE NOT col0 * - col1 / - + 28 * - + col0 * col0 / + col2 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7471
SELECT - ( - - COUNT ( * ) ) col2 FROM tab0 cor0 WHERE NOT col0 * - col1 / - + 28 * - + col0 * col0 / + col2 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT DISTINCT - MAX( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-7472
SELECT DISTINCT - MAX ( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
15

query I rowsort
SELECT DISTINCT 25 FROM tab1 AS cor0 WHERE ( + col0 ) < NULL
----

query II rowsort
SELECT + col1 AS col0, col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

query I rowsort
SELECT DISTINCT 6 FROM tab2 AS cor0 WHERE NULL IS NULL
----
6

query II rowsort
SELECT + col0 AS col2, 61 FROM tab0 AS cor0
----
15
61
87
61
97
61

query I rowsort
SELECT ALL 96 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7478
SELECT DISTINCT 51 * - + SUM( - CAST( 20 AS SIGNED ) ) FROM tab2
----
3060

skipif mysql # not compatible
query I rowsort label-7478
SELECT DISTINCT 51 * - + SUM ( - CAST ( 20 AS INTEGER ) ) FROM tab2
----
3060

query II rowsort
SELECT 37 AS col0, + col1 + + - col1 * - + col2 FROM tab0
----
37
100
37
231
37
3888

query I rowsort
SELECT ALL - 52 * - 24 AS col1 FROM tab2 AS cor0
----
1248
1248
1248

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT DISTINCT + - MAX( DISTINCT - 29 ) AS col2 FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-7481
SELECT DISTINCT + - MAX ( DISTINCT - 29 ) AS col2 FROM tab2 AS cor0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT DISTINCT - SUM( 57 ) FROM tab1 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-7482
SELECT DISTINCT - SUM ( 57 ) FROM tab1 AS cor0
----
-171

query II rowsort
SELECT col1 + + - col1 - 5 + - col1, + ( col1 ) AS col0 FROM tab0 AS cor0
----
-26
21
-6
1
-86
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7484
SELECT DISTINCT MIN( DISTINCT + + col1 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7484
SELECT DISTINCT MIN ( DISTINCT + + col1 ) AS col2 FROM tab2 AS cor0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col2 col0 FROM tab2 cor0
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT DISTINCT + COUNT( * ) + + 52 FROM tab0 cor0 WHERE NOT 78 >= - col0 * + ( 89 ) - - 99 - - col0
----
52

skipif mysql # not compatible
query I rowsort label-7486
SELECT DISTINCT + COUNT ( * ) + + 52 FROM tab0 cor0 WHERE NOT 78 >= - col0 * + ( 89 ) - - 99 - - col0
----
52

query I rowsort
SELECT + col1 + - 99 FROM tab1 AS cor0
----
-52
-85
-94

query I rowsort
SELECT ALL - - 67 + - col0 - - col2 AS col2 FROM tab2 AS cor0 WHERE col2 / - 48 < + col2 * + col0
----
43
44
50

query II rowsort
SELECT - - col2 AS col2, col1 FROM tab2 cor0
----
23
51
40
77
58
67

onlyif mysql # DIV for integer division: 
query I rowsort label-7490
SELECT + col2 DIV col1 + - col2 + - - 34 FROM tab0 AS cor0 WHERE - 57 <= - + 40
----
-13
24
34

skipif mysql # not compatible
query I rowsort label-7490
SELECT + col2 / col1 + - col2 + - - 34 FROM tab0 AS cor0 WHERE - 57 <= - + 40
----
-13
24
34

query II rowsort
SELECT 19 AS col1, + col0 FROM tab2 AS cor0
----
19
46
19
64
19
75

query I rowsort
SELECT ALL + col2 + - + 36 FROM tab1
----
23
32
60

query I rowsort
SELECT ALL col2 + - col0 + + - col1 AS col2 FROM tab1
----
-31
-70
31

query I rowsort
SELECT ALL + col0 * col1 * col2 + - 23 AS col2 FROM tab0
----
18247
57082
9580

query I rowsort
SELECT - 33 FROM tab2 WHERE 80 NOT BETWEEN - 66 AND - col0
----
-33
-33
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7496
SELECT DISTINCT MAX( DISTINCT - 92 ) FROM tab0 WHERE ( + - col1 ) IS NOT NULL
----
-92

skipif mysql # not compatible
query I rowsort label-7496
SELECT DISTINCT MAX ( DISTINCT - 92 ) FROM tab0 WHERE ( + - col1 ) IS NOT NULL
----
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col0 + - + col2 - + col2 col2 FROM tab0
----
-102
-160
46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7498
SELECT * FROM tab0 AS cor0 WHERE NOT 41 + 99 + - - 73 - - col0 IS NULL OR + + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7498
SELECT * FROM tab0 AS cor0 WHERE NOT 41 + 99 + - - 73 - - col0 IS NULL OR + + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7499
SELECT col0 * - ( - CAST( NULL AS SIGNED ) ) + 59 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7499
SELECT col0 * - ( - CAST ( NULL AS INTEGER ) ) + 59 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7500
SELECT ALL + COUNT( * ) + + MAX( + ( 69 ) ) FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-7500
SELECT ALL + COUNT ( * ) + + MAX ( + ( 69 ) ) FROM tab1 AS cor0
----
72

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7501
SELECT + - 49 + - CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7501
SELECT + - 49 + - CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7502
SELECT ALL - + CAST( NULL AS SIGNED ) * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7502
SELECT ALL - + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 49 - - col1 + + col1 * + 58 + + col2 AS col0 FROM tab2
----
2983
3962
4534

onlyif mysql # aggregate syntax: 
query I rowsort label-7504
SELECT DISTINCT + ( + - COUNT( * ) ) - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-7504
SELECT DISTINCT + ( + - COUNT ( * ) ) - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

query I rowsort
SELECT + + 78 * 10 * - - 60 AS col1 FROM tab2 AS cor0
----
46800
46800
46800

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 - - 69 / + - col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7507
SELECT DISTINCT + COUNT( * ) AS col0, + COUNT( * ) col0 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7507
SELECT DISTINCT + COUNT ( * ) AS col0, + COUNT ( * ) col0 FROM tab1 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7508
SELECT DISTINCT 70 * - SUM( - - 38 ) AS col0 FROM tab1
----
-7980

skipif mysql # not compatible
query I rowsort label-7508
SELECT DISTINCT 70 * - SUM ( - - 38 ) AS col0 FROM tab1
----
-7980

onlyif mysql # DIV for integer division: 
query I rowsort label-7509
SELECT 53 DIV - col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7509
SELECT 53 / - col1 FROM tab2
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7510
SELECT ALL 88 DIV - col2 AS col2 FROM tab0
----
-1
-8
0

skipif mysql # not compatible
query I rowsort label-7510
SELECT ALL 88 / - col2 AS col2 FROM tab0
----
-1
-8
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col0 FROM tab0 WHERE NOT 72 IS NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7512
SELECT - CAST( - col0 AS SIGNED ) FROM tab2 WHERE NOT - 6 / + - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7512
SELECT - CAST ( - col0 AS INTEGER ) FROM tab2 WHERE NOT - 6 / + - col1 IS NOT NULL
----

query I rowsort
SELECT + col2 * + - col1 AS col1 FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query II rowsort label-7514
SELECT + COUNT( * ) * ( - SUM( - - col2 ) ), 5 AS col2 FROM tab0
----
-468
5

skipif mysql # not compatible
query II rowsort label-7514
SELECT + COUNT ( * ) * ( - SUM ( - - col2 ) ), 5 AS col2 FROM tab0
----
-468
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7515
SELECT + ( + CAST( + - 71 AS SIGNED ) ) FROM tab2
----
-71
-71
-71

skipif mysql # not compatible
query I rowsort label-7515
SELECT + ( + CAST ( + - 71 AS INTEGER ) ) FROM tab2
----
-71
-71
-71

query I rowsort
SELECT 2 * + col2 * col0 AS col1 FROM tab0
----
1410
1740
19206

query II rowsort
SELECT - col2 * + + col0, + 70 AS col0 FROM tab1
----
-4896
70
-5015
70
-6188
70

query I rowsort
SELECT DISTINCT + - col2 * - + col2 + + col2 AS col0 FROM tab1 AS cor0
----
3540
4692
9312

query I rowsort
SELECT + 62 + col1 + col1 + ( ( - col2 ) ) FROM tab2 AS cor0 WHERE NOT ( 22 ) + + col0 + + - ( - ( - col0 ) ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7520
SELECT ALL - - COUNT( + 62 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7520
SELECT ALL - - COUNT ( + 62 ) AS col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col1 * + - col2 * col0 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7522
SELECT MIN( - + col0 ) AS col0 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-7522
SELECT MIN ( - + col0 ) AS col0 FROM tab0
----
-97

query III rowsort
SELECT * FROM tab1 WHERE - 79 + + 86 / - 30 + - 95 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7524
SELECT col2 AS col1, col1 AS col2 FROM tab0 WHERE - 43 - + CAST( col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-7524
SELECT col2 AS col1, col1 AS col2 FROM tab0 WHERE - 43 - + CAST ( col0 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT - COUNT( * ) * - - 86 FROM tab1 cor0
----
-258

skipif mysql # not compatible
query I rowsort label-7525
SELECT - COUNT ( * ) * - - 86 FROM tab1 cor0
----
-258

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 16 BETWEEN - col0 AND NULL
----
15
81
47

onlyif mysql # DIV for integer division: 
query I rowsort label-7527
SELECT col0 DIV + 62 + - col1 FROM tab0 AS cor0
----
-20
-81
0

skipif mysql # not compatible
query I rowsort label-7527
SELECT col0 / + 62 + - col1 FROM tab0 AS cor0
----
-20
-81
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT ALL + SUM( ALL 10 ) AS col0 FROM tab2 cor0
----
30

skipif mysql # not compatible
query I rowsort label-7528
SELECT ALL + SUM ( ALL 10 ) AS col0 FROM tab2 cor0
----
30

query I rowsort
SELECT ALL - - col0 + - - col2 - col1 - + col2 AS col0 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT col1 + - - col0 - - + col0 FROM tab2 AS cor0
----
143
205
217

onlyif mysql # aggregate syntax: 
query I rowsort label-7531
SELECT 73 + + + COUNT( * ) AS col0 FROM tab1 cor0
----
76

skipif mysql # not compatible
query I rowsort label-7531
SELECT 73 + + + COUNT ( * ) AS col0 FROM tab1 cor0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7532
SELECT - COUNT( * ) + - SUM( + 3 ) FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-7532
SELECT - COUNT ( * ) + - SUM ( + 3 ) FROM tab1
----
-12

query I rowsort
SELECT - 62 + - col1 + + col2 FROM tab0
----
-73
-96
36

query I rowsort
SELECT ALL ( ( col2 ) ) + - 6 + - col1 FROM tab1
----
15
48
76

query II rowsort
SELECT + col1 + - + col1, col1 FROM tab0
----
0
1
0
21
0
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7536
SELECT ALL - col2 + col2 + + ( ( + col0 ) ) - col2 DIV col0 FROM tab0
----
12
87
96

skipif mysql # not compatible
query I rowsort label-7536
SELECT ALL - col2 + col2 + + ( ( + col0 ) ) - col2 / col0 FROM tab0
----
12
87
96

query II rowsort
SELECT DISTINCT - col1 - + col2 * - ( - - col2 ) AS col2, + col2 AS col2 FROM tab0 AS cor0
----
2128
47
79
10
9800
99

query I rowsort
SELECT 42 - + - col1 AS col2 FROM tab1 AS cor0
----
47
56
89

onlyif mysql # DIV for integer division: 
query I rowsort label-7539
SELECT DISTINCT + 13 DIV - col0 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7539
SELECT DISTINCT + 13 / - col0 AS col0 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col2 col1 FROM tab2
----
-17
-23
-24

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> 27 * + col1
----

query I rowsort
SELECT DISTINCT - - 15 / - + col0 FROM tab1 AS cor0 WHERE col0 <> NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN - col0 + ( 13 ) AND col1
----

query I rowsort
SELECT - col2 * + 94 * - 51 FROM tab1 AS cor0
----
282846
325992
460224

onlyif mysql # aggregate syntax: 
query I rowsort label-7545
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE - col1 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-7545
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE - col1 <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7546
SELECT ALL - SUM( ALL + + ( - col1 ) ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7546
SELECT ALL - SUM ( ALL + + ( - col1 ) ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT ALL - MAX( ALL + col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-7547
SELECT ALL - MAX ( ALL + col0 ) FROM tab0
----
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7548
SELECT ALL * FROM tab2 WHERE NOT + - col0 + + col0 - + col0 * CAST( NULL AS DECIMAL ) - 16 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7548
SELECT ALL * FROM tab2 WHERE NOT + - col0 + + col0 - + col0 * CAST ( NULL AS REAL ) - 16 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7549
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7549
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2, tab1 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7550
SELECT * FROM tab2 WHERE NOT ( + 10 - - col1 / col2 * - 71 * - CAST( NULL AS SIGNED ) IS NULL )
----

skipif mysql # not compatible
query III rowsort label-7550
SELECT * FROM tab2 WHERE NOT ( + 10 - - col1 / col2 * - 71 * - CAST ( NULL AS INTEGER ) IS NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col0 / + col2 IS NOT NULL
----

query I rowsort
SELECT + + 33 * - + 75 AS col0 FROM tab2 AS cor0
----
-2475
-2475
-2475

onlyif mysql # DIV for integer division: 
query II rowsort label-7553
SELECT + 91 DIV + col0 - - col1, ( col0 ) AS col2 FROM tab0 AS cor0
----
1
97
22
87
87
15

skipif mysql # not compatible
query II rowsort label-7553
SELECT + 91 / + col0 - - col1, ( col0 ) AS col2 FROM tab0 AS cor0
----
1
97
22
87
87
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT + SUM( DISTINCT - + col1 ) col1 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7554
SELECT + SUM ( DISTINCT - + col1 ) col1 FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-7555
SELECT ALL - + MAX( - col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-7555
SELECT ALL - + MAX ( - col1 ) FROM tab1 AS cor0
----
5

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7556
SELECT * FROM tab2 WHERE ( CAST( NULL AS DECIMAL ) ) NOT BETWEEN col2 AND ( + 8 )
----

skipif mysql # not compatible
query III rowsort label-7556
SELECT * FROM tab2 WHERE ( CAST ( NULL AS REAL ) ) NOT BETWEEN col2 AND ( + 8 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7557
SELECT col0 AS col0 FROM tab1 WHERE NOT col1 * + CAST( NULL AS DECIMAL ) >= col1 + - 14 * 58
----

skipif mysql # not compatible
query I rowsort label-7557
SELECT col0 AS col0 FROM tab1 WHERE NOT col1 * + CAST ( NULL AS REAL ) >= col1 + - 14 * 58
----

query I rowsort
SELECT col1 + 26 FROM tab0
----
107
27
47

query I rowsort
SELECT - 70 + 73 AS col1 FROM tab1
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7560
SELECT - COUNT( * ) * - 47 AS col2 FROM tab0
----
141

skipif mysql # not compatible
query I rowsort label-7560
SELECT - COUNT ( * ) * - 47 AS col2 FROM tab0
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-7561
SELECT + COUNT( * ) - - COUNT( * ) FROM tab1 WHERE NOT ( + 87 * col0 ) IN ( col1 )
----
6

skipif mysql # not compatible
query I rowsort label-7561
SELECT + COUNT ( * ) - - COUNT ( * ) FROM tab1 WHERE NOT ( + 87 * col0 ) IN ( col1 )
----
6

query I rowsort
SELECT col2 + 97 FROM tab2 WHERE 1 * col2 IS NOT NULL
----
120
137
155

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT - 95 + MIN( col0 + + col1 ) FROM tab0 WHERE col0 + + col0 IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-7563
SELECT - 95 + MIN ( col0 + + col1 ) FROM tab0 WHERE col0 + + col0 IS NOT NULL
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7564
SELECT ALL CAST( 3 AS SIGNED ) * + COUNT( * ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-7564
SELECT ALL CAST ( 3 AS INTEGER ) * + COUNT ( * ) AS col1 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7565
SELECT DISTINCT + COUNT( * ) - + 27 FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-7565
SELECT DISTINCT + COUNT ( * ) - + 27 FROM tab2
----
-24

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( - 17 )
----

query I rowsort
SELECT ALL 40 + 13 * - 30 AS col0 FROM tab1
----
-350
-350
-350

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7569
SELECT MAX( DISTINCT 84 ) - - MAX( - col2 ) DIV + 89 FROM tab1 WHERE 24 * - 59 IS NOT NULL
----
84

skipif mysql # not compatible
query I rowsort label-7569
SELECT MAX ( DISTINCT 84 ) - - MAX ( - col2 ) / + 89 FROM tab1 WHERE 24 * - 59 IS NOT NULL
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7570
SELECT - MAX( 75 ) FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-7570
SELECT - MAX ( 75 ) FROM tab0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT ALL - ( - COUNT( * ) ) * - COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-7571
SELECT ALL - ( - COUNT ( * ) ) * - COUNT ( * ) FROM tab1
----
-9

query III rowsort
SELECT * FROM tab2 WHERE 91 + col1 < + 65
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7573
SELECT * FROM tab0 WHERE + CAST( NULL AS DECIMAL ) BETWEEN ( - col1 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-7573
SELECT * FROM tab0 WHERE + CAST ( NULL AS REAL ) BETWEEN ( - col1 ) AND NULL
----

query I rowsort
SELECT + ( - col2 ) AS col0 FROM tab0 WHERE NOT NULL >= ( col1 )
----

query I rowsort
SELECT - col2 - + 43 FROM tab0
----
-142
-53
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT ALL - COUNT( * ) + - COUNT( * ) FROM tab2 WHERE 77 * - col2 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7576
SELECT ALL - COUNT ( * ) + - COUNT ( * ) FROM tab2 WHERE 77 * - col2 <= NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 / col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7578
SELECT - 17 DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7578
SELECT - 17 / col2 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - 53 ) + col1 * col1 NOT BETWEEN - col2 AND NULL
----

query I rowsort
SELECT ALL + 77 - - col1 AS col2 FROM tab1
----
124
82
91

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL ) IN ( - col0 * - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT ALL + MAX( col2 ) - COUNT( * ) FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-7582
SELECT ALL + MAX ( col2 ) - COUNT ( * ) FROM tab1 AS cor0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT DISTINCT + MAX( + col0 ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-7583
SELECT DISTINCT + MAX ( + col0 ) AS col1 FROM tab2 AS cor0
----
75

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT 91 IS NULL
----
46
64
75

query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT COUNT( * ) * - 36 AS col1 FROM tab0
----
-108

skipif mysql # not compatible
query I rowsort label-7586
SELECT COUNT ( * ) * - 36 AS col1 FROM tab0
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-7587
SELECT DISTINCT + COUNT( * ) * COUNT( * ) col2 FROM tab1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7587
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) col2 FROM tab1
----
9

query I rowsort
SELECT DISTINCT - col1 * + 22 AS col2 FROM tab1 AS cor0 WHERE NOT col0 <> ( + col0 )
----
-1034
-110
-308

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT DISTINCT 58 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-7589
SELECT DISTINCT 58 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-174

query I rowsort
SELECT + col1 / + col1 FROM tab1 cor0 WHERE NOT col0 >= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT DISTINCT COUNT( * ) * - 60 FROM tab1 cor0
----
-180

skipif mysql # not compatible
query I rowsort label-7591
SELECT DISTINCT COUNT ( * ) * - 60 FROM tab1 cor0
----
-180

query III rowsort
SELECT * FROM tab0 WHERE NOT 18 / + 92 + - 3 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 - 20 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 FROM tab2 WHERE - col2 BETWEEN - ( - col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7595
SELECT ALL COUNT( * ) * + 55 FROM tab1
----
165

skipif mysql # not compatible
query I rowsort label-7595
SELECT ALL COUNT ( * ) * + 55 FROM tab1
----
165

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 * - 2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7597
SELECT - ( + COUNT( * ) ) * + 33 AS col2 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-7597
SELECT - ( + COUNT ( * ) ) * + 33 AS col2 FROM tab0
----
-99

query I rowsort
SELECT ALL col1 * + 24 * col2 FROM tab0
----
2376
5040
91368

query I rowsort
SELECT DISTINCT - 67 * - + col2 FROM tab0
----
3149
6633
670

query I rowsort
SELECT DISTINCT + 56 + - col1 * col1 FROM tab1
----
-140
-2153
31

query I rowsort
SELECT - col0 * - 77 FROM tab0
----
1155
6699
7469

query I rowsort
SELECT ALL col2 * col0 FROM tab2 WHERE NOT - 1 BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NOT col0 * + col2 NOT BETWEEN 51 AND ( - col2 * 94 )
----

query I rowsort
SELECT - col0 * + 60 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL AND NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7605
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - CAST( - col0 AS SIGNED ) * 51 + 93 ) <> col1 / col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7605
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - CAST ( - col0 AS INTEGER ) * 51 + 93 ) <> col1 / col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * 16 + + ( 80 ) * 46 FROM tab1 WHERE ( NULL ) IS NULL
----
2144
2592
2736

query IIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 WHERE NULL >= NULL
----

query II rowsort
SELECT + 35 AS col2, + col1 FROM tab1
----
35
14
35
47
35
5

query I rowsort
SELECT + 0 / 51 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 87 IS NULL
----

query II rowsort
SELECT 75 AS col1, col1 FROM tab0
----
75
1
75
21
75
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7611
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7611
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7612
SELECT - col0 DIV 70 * + + col2 + col0 AS col2 FROM tab2 AS cor0
----
17
46
64

skipif mysql # not compatible
query I rowsort label-7612
SELECT - col0 / 70 * + + col2 + col0 AS col2 FROM tab2 AS cor0
----
17
46
64

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col1 ) <= col0 + 37
----
15
81
47

query I rowsort
SELECT - + 76 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-76
-76
-76

query I rowsort
SELECT + ( - col1 ) + + + col2 * col0 FROM tab0 AS cor0
----
624
849
9602

onlyif mysql # DIV for integer division: 
query I rowsort label-7616
SELECT col1 + col2 + col1 DIV - - col1 AS col0 FROM tab1
----
111
116
65

skipif mysql # not compatible
query I rowsort label-7616
SELECT col1 + col2 + col1 / - - col1 AS col0 FROM tab1
----
111
116
65

query II rowsort
SELECT ALL 67 + - 74, col0 AS col1 FROM tab1
----
-7
51
-7
85
-7
91

query I rowsort
SELECT col0 + + col0 + 66 FROM tab1
----
168
236
248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7619
SELECT DISTINCT - 3 - + COUNT( * ) FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) - - col2 NOT IN ( + col0 * + col1 )
----
-3

skipif mysql # not compatible
query I rowsort label-7619
SELECT DISTINCT - 3 - + COUNT ( * ) FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) - - col2 NOT IN ( + col0 * + col1 )
----
-3

query II rowsort
SELECT 16 + - col1, col2 AS col1 FROM tab1
----
-31
68
11
59
2
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT + COUNT( * ) * - COUNT( * ) FROM tab0 WHERE ( + 5 ) = ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-7621
SELECT + COUNT ( * ) * - COUNT ( * ) FROM tab0 WHERE ( + 5 ) = ( - col2 )
----
0

query I rowsort
SELECT ALL + 67 + - - col0 + col2 AS col0 FROM tab0
----
129
164
263

query I rowsort
SELECT DISTINCT + col1 * + - col2 + - col0 + 62 + col0 FROM tab0
----
-148
-37
-3745

query I rowsort
SELECT DISTINCT - 33 - 87 FROM tab2
----
-120

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col2 = - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7626
SELECT ALL - 53 DIV + 14 - + - ( + - col1 ) FROM tab1
----
-17
-50
-8

skipif mysql # not compatible
query I rowsort label-7626
SELECT ALL - 53 / + 14 - + - ( + - col1 ) FROM tab1
----
-17
-50
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7627
SELECT DISTINCT + COUNT( * ) * - 86 FROM tab0 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-7627
SELECT DISTINCT + COUNT ( * ) * - 86 FROM tab0 AS cor0
----
-258

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7628
SELECT ALL COUNT( * ) * 41 AS col2 FROM tab1 AS cor0 WHERE NOT ( 36 * - CAST( NULL AS DECIMAL ) - + col1 ) IS NOT NULL
----
123

skipif mysql # not compatible
query I rowsort label-7628
SELECT ALL COUNT ( * ) * 41 AS col2 FROM tab1 AS cor0 WHERE NOT ( 36 * - CAST ( NULL AS REAL ) - + col1 ) IS NOT NULL
----
123

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + col2 NOT BETWEEN NULL AND - col1 / - col0 - 27 * + ( + col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - ( - ( - 71 ) ) ) = ( NULL )
----

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE NOT - col0 NOT IN ( 20 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 12 col0 FROM tab0 cor0
----
-12
-12
-12

query I rowsort
SELECT ALL ( - col2 ) AS col0 FROM tab1 AS cor0 WHERE col0 = NULL
----

query I rowsort
SELECT ALL + 43 * - col0 FROM tab1 AS cor0
----
-2193
-3655
-3913

query I rowsort
SELECT DISTINCT - + 66 * col2 * - - col0 + + - col1 FROM tab0 AS cor0
----
-46611
-57441
-633799

query I rowsort
SELECT ALL ( + 24 ) - col1 AS col0 FROM tab1 cor0 WHERE ( NULL ) BETWEEN - + 11 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 93 col0 FROM tab1 AS cor0
----
-93
-93
-93

query I rowsort
SELECT DISTINCT - col1 * col1 - + - col0 * - 2 FROM tab1 WHERE + col2 IS NOT NULL
----
-195
-2391
-298

query I rowsort
SELECT ALL - - 75 - - col0 AS col0 FROM tab1 WHERE NULL IS NULL
----
126
160
166

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT col2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL col2, 57 AS col2, + col0 col0 FROM tab2
----
9 values hashing to a48e6311ad78b81b40fb07963e8e1825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 + - col2 * - + 94 + + col0 AS col1, 52 col2 FROM tab0
----
1114
52
4448
52
9500
52

query I rowsort
SELECT ALL col1 + - - col1 AS col2 FROM tab2
----
102
134
154

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7644
SELECT * FROM tab0 WHERE NOT + + CAST( NULL AS DECIMAL ) IN ( col1 )
----

skipif mysql # not compatible
query III rowsort label-7644
SELECT * FROM tab0 WHERE NOT + + CAST ( NULL AS REAL ) IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT 55 * - COUNT( * ) AS col0 FROM tab1
----
-165

skipif mysql # not compatible
query I rowsort label-7645
SELECT 55 * - COUNT ( * ) AS col0 FROM tab1
----
-165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7646
SELECT ALL CAST( col0 AS SIGNED ) * - + 43 FROM tab1 AS cor0
----
-2193
-3655
-3913

skipif mysql # not compatible
query I rowsort label-7646
SELECT ALL CAST ( col0 AS INTEGER ) * - + 43 FROM tab1 AS cor0
----
-2193
-3655
-3913

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7647
SELECT - col2 * + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7647
SELECT - col2 * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7648
SELECT ALL - + col1 DIV col0 DIV + col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7648
SELECT ALL - + col1 / col0 / + col2 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col1 AS col1, - col0 col2 FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

query I rowsort
SELECT - col2 * - ( col0 ) * + col1 * + col1 AS col2 FROM tab2 AS cor0
----
15178240
19527150
2751858

query I rowsort
SELECT DISTINCT + 29 + + col2 - col1 FROM tab0 AS cor0
----
-5
127
18

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7652
SELECT * FROM tab2 WHERE + col1 * - 40 + CAST( - 14 AS SIGNED ) + - + col2 + col2 >= ( NULL )
----

skipif mysql # not compatible
query III rowsort label-7652
SELECT * FROM tab2 WHERE + col1 * - 40 + CAST ( - 14 AS INTEGER ) + - + col2 + col2 >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col2 + - - 34 col2 FROM tab2
----
1207
3114
3920

query II rowsort
SELECT DISTINCT col2 + - 20 AS col1, 73 FROM tab0
----
-10
73
27
73
79
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * col2 + col2, + ( - - ( - - 59 ) ) col2 FROM tab0
----
198
59
220
59
3854
59

onlyif mysql # DIV for integer division: 
query II rowsort label-7656
SELECT ALL - ( col1 ) - + col2 - - col1 * + col0, col2 DIV + col2 AS col2 FROM tab1 AS cor0
----
361
1
4162
1
604
1

skipif mysql # not compatible
query II rowsort label-7656
SELECT ALL - ( col1 ) - + col2 - - col1 * + col0, col2 / + col2 AS col2 FROM tab1 AS cor0
----
361
1
4162
1
604
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND 39
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7658
SELECT - - 39 DIV 44 * - + col1 - + - col0 AS col2 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7658
SELECT - - 39 / 44 * - + col1 - + - col0 AS col2 FROM tab1 AS cor0
----
51
85
91

query II rowsort
SELECT - col1 * - + col0 AS col1, - 15 + - 17 FROM tab2 AS cor0
----
2346
-32
4928
-32
5025
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7660
SELECT ALL + col2 - - + col1 + + CAST( ( + - col1 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-7660
SELECT ALL + col2 - - + col1 + + CAST ( ( + - col1 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL < 72 / col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7662
SELECT ( + 84 ) * + SUM( + + 58 ) FROM tab0 AS cor0
----
14616

skipif mysql # not compatible
query I rowsort label-7662
SELECT ( + 84 ) * + SUM ( + + 58 ) FROM tab0 AS cor0
----
14616

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7663
SELECT + MAX( ALL 10 ) * + CAST( 98 AS SIGNED ) FROM tab0 AS cor0
----
980

skipif mysql # not compatible
query I rowsort label-7663
SELECT + MAX ( ALL 10 ) * + CAST ( 98 AS INTEGER ) FROM tab0 AS cor0
----
980

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 11 * + 75 col0 FROM tab1 AS cor0
----
825
825
825

query I rowsort
SELECT ALL + 24 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT COUNT( col1 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7666
SELECT COUNT ( col1 ) FROM tab1 cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-7667
SELECT DISTINCT col1, col1 + - 57 DIV 97 FROM tab1
----
14
14
47
47
5
5

skipif mysql # not compatible
query II rowsort label-7667
SELECT DISTINCT col1, col1 + - 57 / 97 FROM tab1
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7668
SELECT DISTINCT COUNT( * ) + - 90 FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-7668
SELECT DISTINCT COUNT ( * ) + - 90 FROM tab0
----
-87

query I rowsort
SELECT ALL 6 FROM tab2 WHERE ( + 10 ) < col0
----
6
6
6

query III rowsort
SELECT * FROM tab1 WHERE col1 / + col2 + + ( + - col1 ) + ( - col1 ) NOT BETWEEN + col2 / col1 AND ( NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( col2 ) - - col2 + - - 2 * + 79 FROM tab1
----
276
294
350

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 / + 96 * - col1 IS NOT NULL
----

query I rowsort
SELECT 46 - col1 FROM tab1
----
-1
32
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, + 10 col0 FROM tab0
----
1
10
21
10
81
10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7675
SELECT ALL COUNT( * ) + - 3 FROM tab1 WHERE NOT NULL BETWEEN + CAST( NULL AS DECIMAL ) AND NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7675
SELECT ALL COUNT ( * ) + - 3 FROM tab1 WHERE NOT NULL BETWEEN + CAST ( NULL AS REAL ) AND NULL
----
-3

query I rowsort
SELECT DISTINCT - col0 * + col1 * + + col2 FROM tab2 AS cor0
----
-197120
-291450
-53958

query II rowsort
SELECT ALL - 59, + col1 AS col0 FROM tab1 AS cor0
----
-59
14
-59
47
-59
5

query II rowsort
SELECT DISTINCT - 94, col0 FROM tab0 AS cor0
----
-94
15
-94
87
-94
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 9 col2, 98 AS col1 FROM tab2 AS cor0
----
9
98
9
98
9
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7680
SELECT - ( COUNT( * ) ) FROM tab0, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7680
SELECT - ( COUNT ( * ) ) FROM tab0, tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7681
SELECT DISTINCT + MIN( DISTINCT + 70 ) FROM tab0 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-7681
SELECT DISTINCT + MIN ( DISTINCT + 70 ) FROM tab0 AS cor0
----
70

query I rowsort
SELECT DISTINCT - ( + - ( - 30 ) ) * + col0 * col1 FROM tab0 AS cor0
----
-2910
-36450
-54810

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col0 < ( + col0 + + 36 + 69 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 > + col1 - - col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - - 89 + + + col1 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7686
SELECT 16 AS col2, MIN( ALL - col0 ) * + - CAST( NULL AS SIGNED ) + + + MAX( DISTINCT + 58 ) AS col1 FROM tab0
----
16
NULL

skipif mysql # not compatible
query II rowsort label-7686
SELECT 16 AS col2, MIN ( ALL - col0 ) * + - CAST ( NULL AS INTEGER ) + + + MAX ( DISTINCT + 58 ) AS col1 FROM tab0
----
16
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT ALL - 73 + + COUNT( - col0 ) * + 72 FROM tab1
----
143

skipif mysql # not compatible
query I rowsort label-7687
SELECT ALL - 73 + + COUNT ( - col0 ) * + 72 FROM tab1
----
143

query I rowsort
SELECT ALL col1 * 12 FROM tab0
----
12
252
972

query I rowsort
SELECT DISTINCT - col2 + - + 7 + + col1 AS col1 FROM tab0
----
-105
27
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT + SUM( col0 ) + - - SUM( - col2 ) FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-7690
SELECT + SUM ( col0 ) + - - SUM ( - col2 ) FROM tab1
----
4

query I rowsort
SELECT + 80 * col1 + - - ( - + col1 ) - + + ( - col1 ) + 70 + 58 * col2 + - 61 * + col2 * 99 * - col2 AS col2 FROM tab1
----
21025651
27932110
55662182

query II rowsort
SELECT ALL + 46 + + + 82 * - col2 AS col0, - col1 AS col1 FROM tab0
----
-3808
-81
-774
-21
-8072
-1

query I rowsort
SELECT col2 AS col0 FROM tab0 cor0 WHERE ( ( - - col0 * + col1 ) IS NOT NULL )
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <= + 66
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN col2 + - col1 AND - + col1
----

query I rowsort
SELECT - 94 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7697
SELECT - col1 AS col0, ( + + col2 ) FROM tab1 WHERE + - CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-7697
SELECT - col1 AS col0, ( + + col2 ) FROM tab1 WHERE + - CAST ( NULL AS REAL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 20 NOT BETWEEN NULL AND - col1 AND - ( + - col1 ) + 31 < ( NULL )
----

query I rowsort
SELECT ALL + - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL AND - 41 * - - col1 + col0 + col0 / col0 / + 81 * + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7700
SELECT - - col0 DIV - col1 + col0 FROM tab2 AS cor0
----
46
64
74

skipif mysql # not compatible
query I rowsort label-7700
SELECT - - col0 / - col1 + col0 FROM tab2 AS cor0
----
46
64
74

query I rowsort
SELECT ALL - - col1 - + 29 AS col0 FROM tab0 cor0
----
-28
-8
52

query I rowsort
SELECT + 48 + col1 AS col2 FROM tab0 AS cor0
----
129
49
69

query I rowsort
SELECT ALL + 79 * col0 + - - 82 + col2 * - 55 FROM tab2 AS cor0
----
2451
2817
2938

onlyif mysql # aggregate syntax: 
query I rowsort label-7704
SELECT DISTINCT + MAX( - 89 ) * - 52 AS col0 FROM tab1
----
4628

skipif mysql # not compatible
query I rowsort label-7704
SELECT DISTINCT + MAX ( - 89 ) * - 52 AS col0 FROM tab1
----
4628

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7705
SELECT - CAST( - - col2 AS SIGNED ) * col2 AS col1 FROM tab1
----
-3481
-4624
-9216

skipif mysql # not compatible
query I rowsort label-7705
SELECT - CAST ( - - col2 AS INTEGER ) * col2 AS col1 FROM tab1
----
-3481
-4624
-9216

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7707
SELECT DISTINCT 60 * + col1 * + CAST( - 95 AS SIGNED ) FROM tab1
----
-267900
-28500
-79800

skipif mysql # not compatible
query I rowsort label-7707
SELECT DISTINCT 60 * + col1 * + CAST ( - 95 AS INTEGER ) FROM tab1
----
-267900
-28500
-79800

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT - 15 < NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7709
SELECT + 8 DIV + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7709
SELECT + 8 / + col2 FROM tab1
----
0
0
0

query II rowsort
SELECT col2 * + + 18 AS col2, col2 * + 77 FROM tab2
----
1044
4466
414
1771
720
3080

query I rowsort
SELECT ALL - 2 FROM tab2 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 15 ) col2 FROM tab1
----
15
15
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7713
SELECT ( - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) ) col0, - 99 * COUNT( * ) * + + COUNT( * ) + - - COUNT( * ) * ( - + 18 ) AS col0 FROM tab0 cor0
----
NULL
-945

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7713
SELECT ( - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) col0, - 99 * COUNT ( * ) * + + COUNT ( * ) + - - COUNT ( * ) * ( - + 18 ) AS col0 FROM tab0 cor0
----
NULL
-945

query I rowsort
SELECT + col1 FROM tab2 cor0 WHERE NOT col1 NOT BETWEEN NULL AND - col2
----

query II rowsort
SELECT DISTINCT col0 AS col0, 14 + - 71 + + - 53 FROM tab0
----
15
-110
87
-110
97
-110

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 61 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 43 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT ALL + MIN( - 88 ) FROM tab1 cor0
----
-88

skipif mysql # not compatible
query I rowsort label-7718
SELECT ALL + MIN ( - 88 ) FROM tab1 cor0
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-7719
SELECT - ( + ( col2 ) ) + - ( + 89 ) DIV + + 97 - + col1 FROM tab2 AS cor0
----
-117
-125
-74

skipif mysql # not compatible
query I rowsort label-7719
SELECT - ( + ( col2 ) ) + - ( + 89 ) / + + 97 - + col1 FROM tab2 AS cor0
----
-117
-125
-74

query II rowsort
SELECT DISTINCT col0 AS col2, - 7 FROM tab1 AS cor0
----
51
-7
85
-7
91
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7721
SELECT ALL + CAST( NULL AS SIGNED ) + - + 11 + - - col0 - col2 + - - 96 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7721
SELECT ALL + CAST ( NULL AS INTEGER ) + - + 11 + - - col0 - col2 + - - 96 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7722
SELECT DISTINCT + - col2 / col2 + - + col2 + - 37 + + + col2 * CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7722
SELECT DISTINCT + - col2 / col2 + - + col2 + - 37 + + + col2 * CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 74 NOT BETWEEN 17 AND + - col0 + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 84 <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( 97 * col1, col1 + 77 * - - col1 * - - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7726
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 6 + - - col2 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7726
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 6 + - - col2 AS col1 FROM tab2
----
NULL

query II rowsort
SELECT - 20 * + + 34, 9 AS col0 FROM tab1
----
-680
9
-680
9
-680
9

query I rowsort
SELECT col1 + - - col2 FROM tab2 WHERE + + 68 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT - + SUM( - col0 ) FROM tab1 AS cor0 WHERE ( NULL ) >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7729
SELECT - + SUM ( - col0 ) FROM tab1 AS cor0 WHERE ( NULL ) >= NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7730
SELECT - - CAST( NULL AS SIGNED ) - + - CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7730
SELECT - - CAST ( NULL AS INTEGER ) - + - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + ( - + 75 ) AS col2 FROM tab1 AS cor0
----
75
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 AS cor0 JOIN tab2 AS cor1 ON NOT NULL IN ( - 33 )
----
0

skipif mysql # not compatible
query I rowsort label-7732
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 AS cor0 JOIN tab2 AS cor1 ON NOT NULL IN ( - 33 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7733
SELECT CAST( NULL AS SIGNED ) FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7733
SELECT CAST ( NULL AS INTEGER ) FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query I rowsort label-7734
SELECT DISTINCT + col0 - + - col1 DIV ( + - col0 ) * - 83 + - - 97 * + + 6 AS col2 FROM tab0
----
1012
669
679

skipif mysql # not compatible
query I rowsort label-7734
SELECT DISTINCT + col0 - + - col1 / ( + - col0 ) * - 83 + - - 97 * + + 6 AS col2 FROM tab0
----
1012
669
679

onlyif mysql # aggregate syntax: 
query I rowsort label-7735
SELECT + 53 * + 70 * + + COUNT( - col0 ) FROM tab2 AS cor0
----
11130

skipif mysql # not compatible
query I rowsort label-7735
SELECT + 53 * + 70 * + + COUNT ( - col0 ) FROM tab2 AS cor0
----
11130

query I rowsort
SELECT DISTINCT + 84 - col2 + + col2 * 95 FROM tab0 AS cor0
----
1024
4502
9390

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + 15 * - + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT ALL + SUM( ALL col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-7738
SELECT ALL + SUM ( ALL col0 ) FROM tab2 AS cor0
----
185

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL = col2
----

query I rowsort
SELECT DISTINCT - ( - + col0 ) * - ( - col1 ) FROM tab2
----
2346
4928
5025

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE - col2 + - + col1 - col2 * + col0 IS NULL
----

query II rowsort
SELECT + ( + col1 ) AS col0, col0 FROM tab1
----
14
51
47
91
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7743
SELECT - SUM( DISTINCT + col0 ) AS col1 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-7743
SELECT - SUM ( DISTINCT + col0 ) AS col1 FROM tab1
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT DISTINCT - SUM( ( col1 ) ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-7744
SELECT DISTINCT - SUM ( ( col1 ) ) FROM tab2
----
-195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7745
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + SUM( + + 20 ) + + 74 + + COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL = + - ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7745
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + SUM ( + + 20 ) + + 74 + + COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL = + - ( - col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7746
SELECT ALL COUNT( * ) AS col2, - 43 FROM tab0
----
3
-43

skipif mysql # not compatible
query II rowsort label-7746
SELECT ALL COUNT ( * ) AS col2, - 43 FROM tab0
----
3
-43

query I rowsort
SELECT ALL - 78 * - - 24 FROM tab2
----
-1872
-1872
-1872

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + col2, col0 AS col0, - 44 - 5 col1 FROM tab0
----
9 values hashing to 8126c67199db65a85ef4c07b2522b719

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7749
SELECT ALL * FROM tab1 AS cor0 WHERE - 61 + col1 - + + ( col0 ) * - CAST( NULL AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-7749
SELECT ALL * FROM tab1 AS cor0 WHERE - 61 + col1 - + + ( col0 ) * - CAST ( NULL AS INTEGER ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 * - + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7751
SELECT DISTINCT + + CAST( + col2 AS SIGNED ) DIV - col1 AS col0 FROM tab0 cor0
----
-99
0

skipif mysql # not compatible
query I rowsort label-7751
SELECT DISTINCT + + CAST ( + col2 AS INTEGER ) / - col1 AS col0 FROM tab0 cor0
----
-99
0

query I rowsort
SELECT + + col2 FROM tab0 cor0 WHERE 25 + + 23 BETWEEN 20 * + 62 - + col1 AND - col1 - 43
----

query I rowsort
SELECT - col0 + - col0 * - col0 + + ( - - col1 ) FROM tab1
----
2564
7145
8237

query I rowsort
SELECT - col2 + + ( 19 ) AS col1 FROM tab2
----
-21
-39
-4

query I rowsort
SELECT + col0 * 12 + - col2 FROM tab0
----
1034
1065
133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7756
SELECT ALL col2 * - 74 + CAST( - 47 AS SIGNED ) AS col0 FROM tab0
----
-3525
-7373
-787

skipif mysql # not compatible
query I rowsort label-7756
SELECT ALL col2 * - 74 + CAST ( - 47 AS INTEGER ) AS col0 FROM tab0
----
-3525
-7373
-787

onlyif mysql # DIV for integer division: 
query I rowsort label-7757
SELECT 92 DIV + + col1 + + col0 - col2 AS col1 FROM tab0
----
-31
81
90

skipif mysql # not compatible
query I rowsort label-7757
SELECT 92 / + + col1 + + col0 - col2 AS col1 FROM tab0
----
-31
81
90

onlyif mysql # aggregate syntax: 
query II rowsort label-7758
SELECT ALL 86, + COUNT( DISTINCT - - col0 ) AS col1 FROM tab1
----
86
3

skipif mysql # not compatible
query II rowsort label-7758
SELECT ALL 86, + COUNT ( DISTINCT - - col0 ) AS col1 FROM tab1
----
86
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT DISTINCT COUNT( * ) + + 57 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-7759
SELECT DISTINCT COUNT ( * ) + + 57 FROM tab1
----
60

query II rowsort
SELECT DISTINCT + col0 AS col0, col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

query I rowsort
SELECT DISTINCT 51 * 71 * - ( - col0 ) + col0 FROM tab0 AS cor0
----
315114
351334
54330

query I rowsort
SELECT + col2 * + col2 - + col2 AS col0 FROM tab1
----
3422
4556
9120

query I rowsort
SELECT - 42 AS col1 FROM tab1 WHERE NULL NOT IN ( + col2, + 52 * - 12 )
----

query I rowsort
SELECT DISTINCT - col1 * - col2 * col0 * 75 + - 21 FROM tab0
----
1370229
4282854
720204

query I rowsort
SELECT ALL - 36 FROM tab1 AS cor0 WHERE NOT 71 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT - ( - ( - COUNT( ALL + 87 ) ) ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7766
SELECT - ( - ( - COUNT ( ALL + 87 ) ) ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT col1 * + + 79 FROM tab1
----
1106
3713
395

query II rowsort
SELECT - col2 AS col1, 13 FROM tab0
----
-10
13
-47
13
-99
13

onlyif mysql # DIV for integer division: 
query I rowsort label-7769
SELECT DISTINCT + col0 DIV - - col2 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-7769
SELECT DISTINCT + col0 / - - col2 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT ( + 83 ) + - + col0 AS col2 FROM tab1
----
-2
-8
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7771
SELECT + + MIN( DISTINCT 62 ) + MAX( + - ( - col2 ) ) + + + 50 AS col0 FROM tab0 AS cor0
----
211

skipif mysql # not compatible
query I rowsort label-7771
SELECT + + MIN ( DISTINCT 62 ) + MAX ( + - ( - col2 ) ) + + + 50 AS col0 FROM tab0 AS cor0
----
211

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7772
SELECT DISTINCT + COUNT( + - ( - col2 ) ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7772
SELECT DISTINCT + COUNT ( + - ( - col2 ) ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col2 + - 89 AS col0 FROM tab1 AS cor0
----
-148
-157
-185

onlyif mysql # DIV for integer division: 
query I rowsort label-7774
SELECT ALL ( + + col1 ) DIV col2 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-7774
SELECT ALL ( + + col1 ) / col2 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT AVG ( DISTINCT - + 49 ) FROM tab0 AS cor0 WHERE 54 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1 * - - 85 col1, col0 * - col1 - + ( - col1 ) FROM tab0 cor0
----
1785
-1806
6885
-1134
85
-96

query II rowsort
SELECT - ( - col0 ) AS col0, - 21 + + - ( 35 ) FROM tab1 AS cor0
----
51
-56
85
-56
91
-56

query I rowsort
SELECT + col2 * + 77 AS col2 FROM tab0 AS cor0
----
3619
7623
770

query III rowsort
SELECT * FROM tab1 WHERE NULL > ( - col2 * - - 18 )
----

query I rowsort
SELECT DISTINCT + 20 AS col1 FROM tab2 cor0
----
20

query I rowsort
SELECT DISTINCT - + 6 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-6

onlyif mysql # DIV for integer division: 
query II rowsort label-7782
SELECT DISTINCT - - col0, - ( 27 ) DIV 14 - 72 AS col2 FROM tab2 cor0
----
46
-73
64
-73
75
-73

skipif mysql # not compatible
query II rowsort label-7782
SELECT DISTINCT - - col0, - ( 27 ) / 14 - 72 AS col2 FROM tab2 cor0
----
46
-73
64
-73
75
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT ALL + + MAX( DISTINCT + + ( + col2 ) ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-7783
SELECT ALL + + MAX ( DISTINCT + + ( + col2 ) ) FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT + + MIN( 40 ) AS col2 FROM tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-7784
SELECT + + MIN ( 40 ) AS col2 FROM tab0 AS cor0
----
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 col0 FROM tab0
----
83
83
83

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( - col0 + + 3 ) BETWEEN NULL AND col0 )
----

query II rowsort
SELECT ALL 18 / col0 - + col2 + col2 + + 67 * - col1 * + 42 - col1 + - - 85 + 52 * col1 * + col2, - col1 * + 99 FROM tab2 WHERE NOT NULL >= - col0 * + ( + 87 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col0 * + 70 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7789
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + SUM( - CAST( col2 AS SIGNED ) ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7789
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + SUM ( - CAST ( col2 AS INTEGER ) ) col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT + MAX( 72 ) FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-7790
SELECT + MAX ( 72 ) FROM tab1
----
72

query I rowsort
SELECT - - col0 AS col1 FROM tab1 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT - col2 + + + col0 FROM tab0 AS cor0
----
-2
-32
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col2 ) + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - + 54 col1 FROM tab0 AS cor0
----
-33
-53
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7795
SELECT DISTINCT + COUNT( ALL - 65 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7795
SELECT DISTINCT + COUNT ( ALL - 65 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7796
SELECT DISTINCT 16 + - ( CAST( + - col0 AS SIGNED ) ) FROM tab2 cor0
----
62
80
91

skipif mysql # not compatible
query I rowsort label-7796
SELECT DISTINCT 16 + - ( CAST ( + - col0 AS INTEGER ) ) FROM tab2 cor0
----
62
80
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 18 col1 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 92 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col0, - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7799
SELECT DISTINCT - col0 DIV col1 + col1 + + + col1 AS col0 FROM tab1 AS cor0
----
-7
25
93

skipif mysql # not compatible
query I rowsort label-7799
SELECT DISTINCT - col0 / col1 + col1 + + + col1 AS col0 FROM tab1 AS cor0
----
-7
25
93

query I rowsort
SELECT + col2 * - col0 AS col2 FROM tab0 cor0 WHERE ( NULL IS NULL )
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-7801
SELECT ALL - 63 * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-7801
SELECT ALL - 63 * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
189

query I rowsort
SELECT + 5 + 56 * - - col1 FROM tab2 AS cor0
----
2861
3757
4317

query I rowsort
SELECT ALL - 18 AS col0 FROM tab2 cor0
----
-18
-18
-18

query I rowsort
SELECT - ( col0 ) + col0 + + + 67 FROM tab0 AS cor0
----
67
67
67

query I rowsort
SELECT DISTINCT col2 * col2 * + col0 + - - col0 FROM tab1
----
295970
420875
470067

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT - 56 + + COUNT( col2 ) FROM tab2
----
-53

skipif mysql # not compatible
query I rowsort label-7806
SELECT - 56 + + COUNT ( col2 ) FROM tab2
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7807
SELECT + 4 + - CAST( NULL AS SIGNED ) + col0 - + col2 + + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7807
SELECT + 4 + - CAST ( NULL AS INTEGER ) + col0 - + col2 + + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE - + ( + - col1 ) NOT BETWEEN - col0 AND + - ( + - 71 )
----
15
81
47

query II rowsort
SELECT DISTINCT col2, 25 FROM tab0
----
10
25
47
25
99
25

onlyif mysql # DIV for integer division: 
query I rowsort label-7810
SELECT ALL 38 DIV - 24 + col2 AS col1 FROM tab2
----
22
39
57

skipif mysql # not compatible
query I rowsort label-7810
SELECT ALL 38 / - 24 + col2 AS col1 FROM tab2
----
22
39
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7811
SELECT ( - 58 ) + - + COUNT( * ) FROM tab2
----
-61

skipif mysql # not compatible
query I rowsort label-7811
SELECT ( - 58 ) + - + COUNT ( * ) FROM tab2
----
-61

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7812
SELECT + col1, CAST( NULL AS DECIMAL ) - + - col2 + - CAST( - 14 AS SIGNED ) FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-7812
SELECT + col1, CAST ( NULL AS REAL ) - + - col2 + - CAST ( - 14 AS INTEGER ) FROM tab2
----
51
NULL
67
NULL
77
NULL

query I rowsort
SELECT ALL - col0 + + col1 + col0 AS col1 FROM tab1
----
14
47
5

query I rowsort
SELECT col1 * + - col1 - + 36 * - ( col2 ) FROM tab0 AS cor0
----
-4869
-81
3563

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 + - + col1 * - 71 IN ( + 67, + col0, col2 - - col1, + 14, + col0, col1 * - - ( - + 65 ) )
----

query I rowsort
SELECT DISTINCT + 48 * - - 47 * - col2 - + 2 * - 79 * col1 + + 41 FROM tab0 AS cor0
----
-19201
-223145
-93193

query I rowsort
SELECT ALL + col0 * + col2 * - - col1 AS col2 FROM tab0 AS cor0
----
18270
57105
9603

query I rowsort
SELECT ( + - 69 ) * + 40 + - col2 AS col1 FROM tab1 AS cor0
----
-2819
-2828
-2856

onlyif mysql # DIV for integer division: 
query II rowsort label-7819
SELECT DISTINCT - ( col0 ), + col0 * col2 DIV 14 AS col0 FROM tab1
----
-51
349
-85
358
-91
442

skipif mysql # not compatible
query II rowsort label-7819
SELECT DISTINCT - ( col0 ), + col0 * col2 / 14 AS col0 FROM tab1
----
-51
349
-85
358
-91
442

onlyif mysql # DIV for integer division: 
query I rowsort label-7820
SELECT + ( - 50 ) DIV + col1 col2 FROM tab1
----
-1
-10
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7820
SELECT + ( - 50 ) / + col1 col2 FROM tab1
----
-1
-10
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7821
SELECT + - col2 col0 FROM tab2 AS cor0 WHERE NOT CAST( + - col1 AS SIGNED ) * - col2 * + 45 + col2 + col2 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7821
SELECT + - col2 col0 FROM tab2 AS cor0 WHERE NOT CAST ( + - col1 AS INTEGER ) * - col2 * + 45 + col2 + col2 IS NOT NULL
----

query I rowsort
SELECT + col2 + 69 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
128
137
165

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7823
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST( - col0 AS SIGNED ) NOT IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7823
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST ( - col0 AS INTEGER ) NOT IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 55 / - + 89 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7825
SELECT - COUNT( col1 ) AS col2, COUNT( * ) * - - COUNT( * ) DIV COUNT( * ) * - ( + 53 ) FROM tab1 AS cor0
----
-3
-159

skipif mysql # not compatible
query II rowsort label-7825
SELECT - COUNT ( col1 ) AS col2, COUNT ( * ) * - - COUNT ( * ) / COUNT ( * ) * - ( + 53 ) FROM tab1 AS cor0
----
-3
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT DISTINCT - MIN( - 56 ) FROM tab0 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-7826
SELECT DISTINCT - MIN ( - 56 ) FROM tab0 AS cor0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7827
SELECT + CAST( - + 6 AS SIGNED ) AS col0 FROM tab0 cor0
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-7827
SELECT + CAST ( - + 6 AS INTEGER ) AS col0 FROM tab0 cor0
----
-6
-6
-6

query II rowsort
SELECT col2, 70 + col1 + - + col1 * - - col1 * - col2 AS col1 FROM tab1
----
59
1550
68
150329
96
18900

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT - + ( - COUNT( * ) ) AS col1 FROM tab2 WHERE NOT + col0 + - col1 >= + 44 * + + 62
----
3

skipif mysql # not compatible
query I rowsort label-7829
SELECT - + ( - COUNT ( * ) ) AS col1 FROM tab2 WHERE NOT + col0 + - col1 >= + 44 * + + 62
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7830
SELECT DISTINCT COUNT( * ) col2 FROM tab2 WHERE - - 57 > - - col1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7830
SELECT DISTINCT COUNT ( * ) col2 FROM tab2 WHERE - - 57 > - - col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT - COUNT( * ) FROM tab1 WHERE NOT ( + col1 ) < 30
----
-1

skipif mysql # not compatible
query I rowsort label-7831
SELECT - COUNT ( * ) FROM tab1 WHERE NOT ( + col1 ) < 30
----
-1

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( - col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7833
SELECT DISTINCT * FROM tab1 WHERE - col2 NOT BETWEEN - + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-7833
SELECT DISTINCT * FROM tab1 WHERE - col2 NOT BETWEEN - + CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT - col2 * col1 - + + 44 FROM tab1 WHERE NOT + 94 IS NULL
----
-1388
-3240
-339

query I rowsort
SELECT DISTINCT + col1 * + col1 * - col0 FROM tab0
----
-38367
-97
-98415

query I rowsort
SELECT DISTINCT + 3 + + + 40 * - - 17 * col1 FROM tab0
----
14283
55083
683

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT - COUNT( ALL + col0 ) + - - MAX( 29 ) * - - COUNT( * ) + - + COUNT( * ) AS col1 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-7837
SELECT - COUNT ( ALL + col0 ) + - - MAX ( 29 ) * - - COUNT ( * ) + - + COUNT ( * ) AS col1 FROM tab1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT DISTINCT + COUNT( - - 30 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7838
SELECT DISTINCT + COUNT ( - - 30 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7839
SELECT + 64 * + - ( COUNT( * ) ) FROM tab1 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-7839
SELECT + 64 * + - ( COUNT ( * ) ) FROM tab1 AS cor0
----
-192

onlyif mysql # DIV for integer division: 
query I rowsort label-7840
SELECT col0 DIV col1 + col0 AS col1 FROM tab1 AS cor0
----
102
54
92

skipif mysql # not compatible
query I rowsort label-7840
SELECT col0 / col1 + col0 AS col1 FROM tab1 AS cor0
----
102
54
92

query I rowsort
SELECT ALL + col0 * - - col2 AS col1 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT + 72 * + 89 * ( - col1 ) + - 92 AS col2 FROM tab2 cor0
----
-326900
-429428
-493508

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7843
SELECT + + 76 / - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7843
SELECT + + 76 / - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 > + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT ALL + COUNT( DISTINCT + col2 ) col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7845
SELECT ALL + COUNT ( DISTINCT + col2 ) col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 IN ( - - col1 )
----

query I rowsort
SELECT 39 * + col1 AS col0 FROM tab0 AS cor0
----
3159
39
819

onlyif mysql # aggregate syntax: 
query I rowsort label-7848
SELECT DISTINCT + 22 * COUNT( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-7848
SELECT DISTINCT + 22 * COUNT ( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
66

query I rowsort
SELECT ALL - col1 + + col0 + - + 11 AS col1 FROM tab0
----
-77
55
85

query I rowsort
SELECT DISTINCT 19 + + 76 FROM tab0
----
95

query I rowsort
SELECT ALL col2 + 93 FROM tab0
----
103
140
192

query I rowsort
SELECT - - col1 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 + - 13 + 56 * col2 FROM tab2
----
1326
2304
3302

onlyif mysql # aggregate syntax: 
query I rowsort label-7854
SELECT + COUNT( * ) AS col1 FROM tab0, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7854
SELECT + COUNT ( * ) AS col1 FROM tab0, tab0 AS cor0
----
9

query I rowsort
SELECT DISTINCT 66 + col2 FROM tab2
----
106
124
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7856
SELECT DISTINCT + col0 - CAST( col1 AS SIGNED ) + - 57 AS col2 FROM tab1 AS cor0
----
-13
-20
23

skipif mysql # not compatible
query I rowsort label-7856
SELECT DISTINCT + col0 - CAST ( col1 AS INTEGER ) + - 57 AS col2 FROM tab1 AS cor0
----
-13
-20
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7857
SELECT CAST( NULL AS SIGNED ) * - col1 * - 73 + + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7857
SELECT CAST ( NULL AS INTEGER ) * - col1 * - 73 + + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL OR - 4 IS NULL
----

query I rowsort
SELECT ALL + - col0 * + 62 FROM tab2 AS cor0
----
-2852
-3968
-4650

query I rowsort
SELECT 6 * + col2 AS col0 FROM tab2
----
138
240
348

onlyif mysql # DIV for integer division: 
query I rowsort label-7861
SELECT + 5 DIV ( col0 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7861
SELECT + 5 / ( col0 ) FROM tab1
----
0
0
0

query I rowsort
SELECT 21 AS col0 FROM tab1 AS cor0 WHERE NOT - ( + 65 ) + + 56 + ( col2 ) + - - ( - - col1 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * + col0 + 68 * + 16 col0 FROM tab0 AS cor0
----
10691
1793
1958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, 57 col1 FROM tab1 AS cor0
----
14
57
47
57
5
57

query I rowsort
SELECT DISTINCT col1 + + + col2 * - col0 FROM tab0
----
-624
-849
-9602

onlyif mysql # aggregate syntax: 
query I rowsort label-7866
SELECT 51 * COUNT( * ) AS col2 FROM tab2
----
153

skipif mysql # not compatible
query I rowsort label-7866
SELECT 51 * COUNT ( * ) AS col2 FROM tab2
----
153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7867
SELECT ALL 25 + - - 86 AS col1, + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
111
NULL

skipif mysql # not compatible
query II rowsort label-7867
SELECT ALL 25 + - - 86 AS col1, + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
111
NULL

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col0 + col0 * 61 * - 42 col1 FROM tab1
----
-135558
-222785
-239330

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + col2 col1, - col2 AS col0 FROM tab2
----
0
-23
0
-40
0
-58

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 NOT BETWEEN + col1 AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col0 / 10 FROM tab2 AS cor0 WHERE ( col0 ) NOT BETWEEN + col2 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7873
SELECT * FROM tab0 AS cor0 WHERE CAST( - + col2 AS DECIMAL ) * + 77 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7873
SELECT * FROM tab0 AS cor0 WHERE CAST ( - + col2 AS REAL ) * + 77 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7874
SELECT + - ( + + col2 ) * + - col1 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7874
SELECT + - ( + + col2 ) * + - col1 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 57 + + col0 FROM tab0
----
144
154
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7876
SELECT 91 - - - COUNT( * ) FROM tab1 cor0
----
88

skipif mysql # not compatible
query I rowsort label-7876
SELECT 91 - - - COUNT ( * ) FROM tab1 cor0
----
88

query I rowsort
SELECT DISTINCT - + 73 * + - col2 AS col1 FROM tab0 cor0
----
3431
7227
730

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 17 - + col2 + 7 * + 52 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 75 * + - 75 - col2 - - col2 FROM tab1 AS cor0
----
-5625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7880
SELECT DISTINCT + - col1 * + + col0 * - 22 - - col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7880
SELECT DISTINCT + - col1 * + + col0 * - 22 - - col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7881
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND + 90 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7881
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND + 90 * + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - 54 * col0 AS col2 FROM tab1 AS cor0
----
-2754
-4590
-4914

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 * + col0 col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 2 FROM tab0 AS cor0 WHERE NOT + col1 * + + col0 IN ( + col0, + col1 )
----
-2

query III rowsort
SELECT * FROM tab0 WHERE + + col2 BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL + 31 + - - 2 AS col1, col1 + - col0 AS col0 FROM tab2
----
33
-8
33
13
33
5

query I rowsort
SELECT DISTINCT 34 + + - 70 * col0 AS col1 FROM tab2 WHERE NOT + + col0 IS NULL
----
-3186
-4446
-5216

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7888
SELECT DISTINCT ( + + col2 ) * col2 + col0 + - + CAST( NULL AS DECIMAL ) * + col2 + col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7888
SELECT DISTINCT ( + + col2 ) * col2 + col0 + - + CAST ( NULL AS REAL ) * + col2 + col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - col1 * 88 FROM tab1 AS cor0
----
-1232
-4136
-440

query I rowsort
SELECT + ( - - col2 ) AS col1 FROM tab2
----
23
40
58

query II rowsort
SELECT DISTINCT 32 AS col0, - 11 FROM tab0 cor0
----
32
-11

query I rowsort
SELECT DISTINCT 28 * - 13 - - 17 FROM tab2 AS cor0
----
-347

onlyif mysql # DIV for integer division: 
query I rowsort label-7893
SELECT DISTINCT - - col2 DIV - col0 AS col2 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-7893
SELECT DISTINCT - - col2 / - col0 AS col2 FROM tab0 AS cor0
----
-1
-3
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7894
SELECT ALL + ( + CAST( NULL AS SIGNED ) ) / + 49 + + - col1 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-7894
SELECT ALL + ( + CAST ( NULL AS INTEGER ) ) / + 49 + + - col1 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT + MAX( + col2 ) AS col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-7895
SELECT + MAX ( + col2 ) AS col2 FROM tab2 AS cor0
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 21 col1, - 76 col1 FROM tab0
----
21
-76
21
-76
21
-76

query I rowsort
SELECT ALL - col1 * + + 17 + + col0 FROM tab1
----
-187
-708
0

query I rowsort
SELECT DISTINCT + 98 + + + ( - col0 ) AS col2 FROM tab1
----
13
47
7

query I rowsort
SELECT DISTINCT 54 * 41 FROM tab0
----
2214

query I rowsort
SELECT 25 AS col0 FROM tab0 WHERE ( ( NULL ) IS NULL )
----
25
25
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 56 col0 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7902
SELECT DISTINCT + ( + - COUNT( ALL + col2 ) ) * + COUNT( * ) + + + COUNT( * ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-7902
SELECT DISTINCT + ( + - COUNT ( ALL + col2 ) ) * + COUNT ( * ) + + + COUNT ( * ) FROM tab2
----
-6

query I rowsort
SELECT ( - + col2 ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT - + col1 + + ( 30 ) FROM tab1 AS cor0
----
-17
16
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7905
SELECT + + CAST( COUNT( * ) AS SIGNED ) + - + 73 AS col0 FROM tab2 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-7905
SELECT + + CAST ( COUNT ( * ) AS INTEGER ) + - + 73 AS col0 FROM tab2 AS cor0
----
-70

query II rowsort
SELECT ALL - col1 AS col0, - 53 AS col2 FROM tab2 cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT ALL - - 54 - + - 7 AS col0 FROM tab1 AS cor0
----
61
61
61

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col0 * + 94 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7909
SELECT + SUM( ALL + - ( col2 ) ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-7909
SELECT + SUM ( ALL + - ( col2 ) ) FROM tab0 AS cor0
----
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-7910
SELECT DISTINCT - 36 - + 77 + - col2 DIV col1 AS col2 FROM tab1 AS cor0
----
-114
-119
-124

skipif mysql # not compatible
query I rowsort label-7910
SELECT DISTINCT - 36 - + 77 + - col2 / col1 AS col2 FROM tab1 AS cor0
----
-114
-119
-124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7911
SELECT + 9 - + CAST( - + 8 AS SIGNED ) FROM tab0 cor0
----
17
17
17

skipif mysql # not compatible
query I rowsort label-7911
SELECT + 9 - + CAST ( - + 8 AS INTEGER ) FROM tab0 cor0
----
17
17
17

query I rowsort
SELECT + + col1 AS col1 FROM tab2 AS cor0 WHERE + col2 - + - 52 IS NOT NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7913
SELECT col0 FROM tab2 AS cor0 WHERE + CAST( - 96 AS SIGNED ) * col1 IS NOT NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7913
SELECT col0 FROM tab2 AS cor0 WHERE + CAST ( - 96 AS INTEGER ) * col1 IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT DISTINCT 70 * - SUM( - + 71 ) - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
14907

skipif mysql # not compatible
query I rowsort label-7914
SELECT DISTINCT 70 * - SUM ( - + 71 ) - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
14907

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 = + 62 + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-7916
SELECT COUNT( * ) AS col0, MAX( col1 ) FROM tab2
----
3
77

skipif mysql # not compatible
query II rowsort label-7916
SELECT COUNT ( * ) AS col0, MAX ( col1 ) FROM tab2
----
3
77

query I rowsort
SELECT + col2 * - + col1 * - - col2 FROM tab0
----
-178929
-2100
-9801

query II rowsort
SELECT 61 AS col1, col0 FROM tab2
----
61
46
61
64
61
75

onlyif mysql # DIV for integer division: 
query II rowsort label-7919
SELECT ALL - col1 AS col0, 9 DIV + col1 FROM tab1
----
-14
0
-47
0
-5
1

skipif mysql # not compatible
query II rowsort label-7919
SELECT ALL - col1 AS col0, 9 / + col1 FROM tab1
----
-14
0
-47
0
-5
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7920
SELECT - MIN( - - 67 ) AS col2 FROM tab1 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-7920
SELECT - MIN ( - - 67 ) AS col2 FROM tab1 AS cor0
----
-67

query I rowsort
SELECT ALL - - 59 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query II rowsort
SELECT - 14 * col2, col1 FROM tab0 AS cor0
----
-1386
1
-140
21
-658
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT ALL + - MIN( + 55 ) FROM tab0 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-7923
SELECT ALL + - MIN ( + 55 ) FROM tab0 AS cor0
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-7924
SELECT DISTINCT COUNT( * ) AS col1, + 12 FROM tab0 AS cor0 WHERE NOT - col0 <> + col2 / - col2 + - col0 - + 5
----
0
12

skipif mysql # not compatible
query II rowsort label-7924
SELECT DISTINCT COUNT ( * ) AS col1, + 12 FROM tab0 AS cor0 WHERE NOT - col0 <> + col2 / - col2 + - col0 - + 5
----
0
12

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7925
SELECT ALL - CAST( + col2 AS SIGNED ) DIV - - 72 AS col2 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7925
SELECT ALL - CAST ( + col2 AS INTEGER ) / - - 72 AS col2 FROM tab0 cor0
----
-1
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7926
SELECT ALL - - CAST( NULL AS SIGNED ) / ( - - COUNT( ALL + - col1 ) ) col0, COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7926
SELECT ALL - - CAST ( NULL AS INTEGER ) / ( - - COUNT ( ALL + - col1 ) ) col0, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT 34 * + - MIN( ALL col1 ) + - COUNT( * ) * + 96 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-2022

skipif mysql # not compatible
query I rowsort label-7927
SELECT 34 * + - MIN ( ALL col1 ) + - COUNT ( * ) * + 96 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-2022

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7928
SELECT DISTINCT + - MIN( ALL + + 81 ) AS col0 FROM tab1 AS cor0 WHERE col0 BETWEEN + + col1 AND - col1 * + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7928
SELECT DISTINCT + - MIN ( ALL + + 81 ) AS col0 FROM tab1 AS cor0 WHERE col0 BETWEEN + + col1 AND - col1 * + + CAST ( NULL AS REAL )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col0 col0 FROM tab0 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7930
SELECT + CAST( col2 AS SIGNED ) AS col0 FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-7930
SELECT + CAST ( col2 AS INTEGER ) AS col0 FROM tab1 cor0
----
59
68
96

query I rowsort
SELECT - col2 / - 32 * - - 19 - - 47 FROM tab0 WHERE 31 IS NULL
----

query I rowsort
SELECT + ( + ( - col2 ) ) + + col2 - + + col1 + - col1 * col1 * col0 AS col0 FROM tab2
----
-119697
-336742
-379533

query I rowsort
SELECT 10 + + - col1 FROM tab2
----
-41
-57
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-7934
SELECT - MAX( DISTINCT 77 ) + 94 AS col0, SUM( - col2 ) FROM tab1
----
17
-223

skipif mysql # not compatible
query II rowsort label-7934
SELECT - MAX ( DISTINCT 77 ) + 94 AS col0, SUM ( - col2 ) FROM tab1
----
17
-223

query I rowsort
SELECT DISTINCT - 6 FROM tab0 WHERE - + 62 IS NOT NULL
----
-6

query I rowsort
SELECT DISTINCT 45 + + col0 + - col2 * col0 AS col1 FROM tab0
----
-645
-738
-9461

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT DISTINCT SUM( - + col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-7937
SELECT DISTINCT SUM ( - + col0 ) FROM tab2
----
-185

onlyif mysql # DIV for integer division: 
query I rowsort label-7938
SELECT col1 + col1 DIV + - col0 AS col0 FROM tab2 AS cor0
----
50
67
76

skipif mysql # not compatible
query I rowsort label-7938
SELECT col1 + col1 / + - col0 AS col0 FROM tab2 AS cor0
----
50
67
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7939
SELECT DISTINCT CAST( + 3 AS SIGNED ) / MAX( ALL - 21 ) + - MAX( - + 50 ) * MAX( + - 64 ) FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7939
SELECT DISTINCT CAST ( + 3 AS INTEGER ) / MAX ( ALL - 21 ) + - MAX ( - + 50 ) * MAX ( + - 64 ) FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7940
SELECT ALL - COUNT( col0 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7940
SELECT ALL - COUNT ( col0 ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7941
SELECT - 57 DIV + MAX( + - col2 ) AS col2 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-7941
SELECT - 57 / + MAX ( + - col2 ) AS col2 FROM tab2 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7942
SELECT 4 - + ( 20 ) + + COUNT( * ) AS col1 FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-7942
SELECT 4 - + ( 20 ) + + COUNT ( * ) AS col1 FROM tab2
----
-13

query I rowsort
SELECT DISTINCT 63 + - col2 FROM tab2
----
23
40
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7944
SELECT col2 - + 14 + - col1 DIV + col0 + - - col1 - + - col0 FROM tab0
----
104
124
183

skipif mysql # not compatible
query I rowsort label-7944
SELECT col2 - + 14 + - col1 / + col0 + - - col1 - + - col0 FROM tab0
----
104
124
183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 33 col0, - col0 FROM tab2 AS cor0
----
33
-46
33
-64
33
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-7946
SELECT DISTINCT - - COUNT( * ) AS col0, - MIN( DISTINCT col1 ) * 8 AS col2 FROM tab1 AS cor0 WHERE NOT - ( + col0 ) IS NOT NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-7946
SELECT DISTINCT - - COUNT ( * ) AS col0, - MIN ( DISTINCT col1 ) * 8 AS col2 FROM tab1 AS cor0 WHERE NOT - ( + col0 ) IS NOT NULL
----
0
NULL

query II rowsort
SELECT ALL - col0, col2 * - col1 AS col1 FROM tab2 AS cor0
----
-46
-1173
-64
-3080
-75
-3886

onlyif mysql # DIV for integer division: 
query II rowsort label-7948
SELECT + 76 AS col2, + 13 DIV - col2 col1 FROM tab1 AS cor0
----
76
0
76
0
76
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7948
SELECT + 76 AS col2, + 13 / - col2 col1 FROM tab1 AS cor0
----
76
0
76
0
76
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7949
SELECT DISTINCT - 35, COUNT( * ) AS col1 FROM tab1 AS cor0
----
-35
3

skipif mysql # not compatible
query II rowsort label-7949
SELECT DISTINCT - 35, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-35
3

query I rowsort
SELECT - col1 * - col2 * + + col0 AS col2 FROM tab2 AS cor0
----
197120
291450
53958

onlyif mysql # aggregate syntax: 
query I rowsort label-7951
SELECT + COUNT( ALL + + 20 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7951
SELECT + COUNT ( ALL + + 20 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + + col2 AS col2 FROM tab2 WHERE + 17 IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7953
SELECT COUNT( * ) * + MIN( - + col1 ) FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-7953
SELECT COUNT ( * ) * + MIN ( - + col1 ) FROM tab2
----
-231

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 24 * + 38 col1, 66 FROM tab2 AS cor0
----
-912
66
-912
66
-912
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT + MIN( ALL + 48 ) FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-7955
SELECT + MIN ( ALL + 48 ) FROM tab2 AS cor0
----
48

query I rowsort
SELECT - + 45 + col2 FROM tab1 AS cor0
----
14
23
51

query II rowsort
SELECT DISTINCT 89 AS col1, - 99 * 75 FROM tab1 AS cor0
----
89
-7425

query I rowsort
SELECT + - ( - - col2 ) + - - 10 FROM tab2 cor0
----
-13
-30
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7959
SELECT DISTINCT + + MAX( + col0 ) AS col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-7959
SELECT DISTINCT + + MAX ( + col0 ) AS col0 FROM tab0 AS cor0
----
97

query I rowsort
SELECT + col1 + + col2 + - col1 FROM tab1 AS cor0
----
59
68
96

query II rowsort
SELECT - col2 AS col1, 0 AS col1 FROM tab0 AS cor0
----
-10
0
-47
0
-99
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 * col0 / - col0 + + 7 NOT BETWEEN NULL AND + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col0 * 13 + 32 FROM tab1 AS cor0
----
1137
1215
695

query I rowsort
SELECT DISTINCT col1 + ( + col2 ) FROM tab2
----
117
125
74

query III rowsort
SELECT * FROM tab0 WHERE 73 + + 10 + - 5 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 37 * + + col1 - col2 FROM tab1
----
126
1671
422

onlyif mysql # aggregate syntax: 
query I rowsort label-7967
SELECT - 95 * ( + - COUNT( * ) ) - - COUNT( * ) + 85 FROM tab2
----
373

skipif mysql # not compatible
query I rowsort label-7967
SELECT - 95 * ( + - COUNT ( * ) ) - - COUNT ( * ) + 85 FROM tab2
----
373

query I rowsort
SELECT + 90 * col1 - col2 AS col2 FROM tab1 AS cor0
----
1164
391
4162

onlyif mysql # DIV for integer division: 
query I rowsort label-7969
SELECT + + col0 DIV + col0 + - - 72 AS col0 FROM tab0 AS cor0
----
73
73
73

skipif mysql # not compatible
query I rowsort label-7969
SELECT + + col0 / + col0 + - - 72 AS col0 FROM tab0 AS cor0
----
73
73
73

query I rowsort
SELECT - col2 - ( col2 ) * - + col0 AS col1 FROM tab0 AS cor0 WHERE 14 <> + col0 - 26
----
658
860
9504

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT ALL + 24 + SUM( + 43 ) FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-7971
SELECT ALL + 24 + SUM ( + 43 ) FROM tab0
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7972
SELECT DISTINCT + 13 * - col2 * CAST( 10 AS SIGNED ) * - col0 * 72 FROM tab1
----
45826560
46940400
57919680

skipif mysql # not compatible
query I rowsort label-7972
SELECT DISTINCT + 13 * - col2 * CAST ( 10 AS INTEGER ) * - col0 * 72 FROM tab1
----
45826560
46940400
57919680

query I rowsort
SELECT ALL + col0 * col0 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 73 * + 37 FROM tab1 AS cor0
----
2701
2701
2701

onlyif mysql # aggregate syntax: 
query I rowsort label-7975
SELECT ALL - MAX( ALL + 24 ) AS col1 FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-7975
SELECT ALL - MAX ( ALL + 24 ) AS col1 FROM tab2 AS cor0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7976
SELECT COUNT( DISTINCT + 0 ) * 44 FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-7976
SELECT COUNT ( DISTINCT + 0 ) * 44 FROM tab1
----
44

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 NOT IN ( - col0 * - + col1 + - 22 )
----

query I rowsort
SELECT - col0 * - 68 FROM tab1
----
3468
5780
6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7979
SELECT CAST( NULL AS SIGNED ) * - + 49 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7979
SELECT CAST ( NULL AS INTEGER ) * - + 49 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7980
SELECT DISTINCT 80 DIV 44 DIV + col0 col0 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7980
SELECT DISTINCT 80 / 44 / + col0 col0 FROM tab0
----
0

query II rowsort
SELECT DISTINCT 62 AS col1, - col1 + - col1 AS col0 FROM tab2
----
62
-102
62
-134
62
-154

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT ( NOT + col1 * - col2 * + col2 = col2 * 85 ) )
----

query I rowsort
SELECT ALL col2 + - col0 * + + col2 * - - col2 FROM tab0
----
-33088
-8690
-950598

query I rowsort
SELECT + - ( 67 ) * - col1 * + col1 AS col2 FROM tab0 AS cor0
----
29547
439587
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7985
SELECT ALL + CAST( NULL AS SIGNED ) * - SUM( + col1 ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7985
SELECT ALL + CAST ( NULL AS INTEGER ) * - SUM ( + col1 ) AS col2 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT - col2 + - col0 AS col1, col2 FROM tab0 AS cor0
----
-196
99
-62
47
-97
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 5 AS col1, + col1 col2 FROM tab0
----
5
1
5
21
5
81

query I rowsort
SELECT DISTINCT - 70 + + 33 FROM tab2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT ALL COUNT( * ) * 25 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-7989
SELECT ALL COUNT ( * ) * 25 FROM tab2
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7990
SELECT CAST( NULL AS SIGNED ) + - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7990
SELECT CAST ( NULL AS INTEGER ) + - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 / col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7992
SELECT COUNT( - - ( - 63 ) ) * 7 FROM tab1, tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-7992
SELECT COUNT ( - - ( - 63 ) ) * 7 FROM tab1, tab1 AS cor0
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-7993
SELECT col0 DIV - + 40 + - col0 + - - 86 AS col2 FROM tab1
----
-1
-7
34

skipif mysql # not compatible
query I rowsort label-7993
SELECT col0 / - + 40 + - col0 + - - 86 AS col2 FROM tab1
----
-1
-7
34

query I rowsort
SELECT DISTINCT 71 + + + 76 AS col1 FROM tab0
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT ALL 32 * COUNT( * ) AS col2 FROM tab1, tab0 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-7995
SELECT ALL 32 * COUNT ( * ) AS col2 FROM tab1, tab0 AS cor0
----
288

query I rowsort
SELECT ALL - col2 - - col2 + + - 26 FROM tab2
----
-26
-26
-26

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 >= + col1
----
75
67
58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 < + col2 * - 11 - - col1 - - col2 * - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7999
SELECT ALL - 5 DIV - 2 FROM tab1 cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-7999
SELECT ALL - 5 / - 2 FROM tab1 cor0
----
2
2
2

query I rowsort
SELECT ALL + 12 - + 36 FROM tab1
----
-24
-24
-24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8001
SELECT DISTINCT * FROM tab0 WHERE ( CAST( NULL AS SIGNED ) ) > - col1
----

skipif mysql # not compatible
query III rowsort label-8001
SELECT DISTINCT * FROM tab0 WHERE ( CAST ( NULL AS INTEGER ) ) > - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT ALL 13 + - ( MIN( - 29 ) ) * 29 FROM tab2
----
854

skipif mysql # not compatible
query I rowsort label-8002
SELECT ALL 13 + - ( MIN ( - 29 ) ) * 29 FROM tab2
----
854

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT DISTINCT - 68 + MIN( col1 ) * + COUNT( * ) AS col1 FROM tab1
----
-53

skipif mysql # not compatible
query I rowsort label-8003
SELECT DISTINCT - 68 + MIN ( col1 ) * + COUNT ( * ) AS col1 FROM tab1
----
-53

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 + col0 IS NOT NULL
----

query I rowsort
SELECT + col0 + - col2 * col0 FROM tab2
----
-1012
-2496
-4275

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT ( NULL ) = ( col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col0 * - 78 ) NOT BETWEEN col2 - 26 AND 71 + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8008
SELECT * FROM tab1 WHERE + col0 IN ( + CAST( - 84 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8008
SELECT * FROM tab1 WHERE + col0 IN ( + CAST ( - 84 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8009
SELECT ALL - COUNT( DISTINCT col1 ) * + MAX( ALL col1 * + col2 ) FROM tab1 WHERE NOT NULL NOT BETWEEN ( col0 + col2 ) AND col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8009
SELECT ALL - COUNT ( DISTINCT col1 ) * + MAX ( ALL col1 * + col2 ) FROM tab1 WHERE NOT NULL NOT BETWEEN ( col0 + col2 ) AND col2
----
NULL

query I rowsort
SELECT + col0 + - 2 FROM tab1 WHERE NULL IN ( + col1 * 6 )
----

query I rowsort
SELECT + 8 AS col1 FROM tab2 WHERE NOT - col2 * col2 - col2 IS NULL
----
8
8
8

query I rowsort
SELECT DISTINCT 95 / 18 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( - col1 * + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( col1 + col2 / 76 )
----

query I rowsort
SELECT DISTINCT - 15 * - 5 AS col0 FROM tab1 WHERE 87 IS NULL
----

query I rowsort
SELECT 56 + col2 FROM tab1
----
115
124
152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col2 * col0 - col0 FROM tab1
----
-4947
-5100
-6279

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8018
SELECT * FROM tab0 WHERE NOT ( + col2 + col0 ) NOT IN ( col1 + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8018
SELECT * FROM tab0 WHERE NOT ( + col2 + col0 ) NOT IN ( col1 + - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT - COUNT( ALL + col1 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8019
SELECT - COUNT ( ALL + col1 ) AS col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT ALL ( + COUNT( ALL 28 ) ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8020
SELECT ALL ( + COUNT ( ALL 28 ) ) AS col0 FROM tab2 cor0
----
3

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT NULL <= 86
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8022
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8022
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 83 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1
----
83

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT ALL COUNT( * ) + COUNT( * ) AS col2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-8025
SELECT ALL COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-8026
SELECT + 37 DIV col2 + col0 AS col0 FROM tab2
----
47
64
75

skipif mysql # not compatible
query I rowsort label-8026
SELECT + 37 / col2 + col0 AS col0 FROM tab2
----
47
64
75

query I rowsort
SELECT DISTINCT col2 / - 93 FROM tab0 WHERE 45 <= ( NULL )
----

query I rowsort
SELECT + - 5 + col2 FROM tab2 AS cor0
----
18
35
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8029
SELECT col1 FROM tab0 AS cor0 WHERE NULL <> ( + ( + CAST( NULL AS SIGNED ) ) / - col2 )
----

skipif mysql # not compatible
query I rowsort label-8029
SELECT col1 FROM tab0 AS cor0 WHERE NULL <> ( + ( + CAST ( NULL AS INTEGER ) ) / - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT DISTINCT + MIN( ALL - col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-91

skipif mysql # not compatible
query I rowsort label-8030
SELECT DISTINCT + MIN ( ALL - col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8031
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN ( NULL ) AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8031
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN ( NULL ) AND + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + + 1 * - col1 AS col0 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8033
SELECT CAST( + 77 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
77
77
77

skipif mysql # not compatible
query I rowsort label-8033
SELECT CAST ( + 77 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT ALL + ( - MIN( DISTINCT - 47 ) ) FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-8034
SELECT ALL + ( - MIN ( DISTINCT - 47 ) ) FROM tab0 AS cor0
----
47

query I rowsort
SELECT ALL - 47 + 47 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 + - 61 FROM tab2 AS cor0 WHERE NOT ( col0 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8037
SELECT DISTINCT - + 49 + col0 DIV col2 FROM tab1 AS cor0
----
-48
-49

skipif mysql # not compatible
query I rowsort label-8037
SELECT DISTINCT - + 49 + col0 / col2 FROM tab1 AS cor0
----
-48
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8038
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE ( col1 * CAST( col1 / - col2 AS SIGNED ) + - col0 * - 74 ) BETWEEN + ( + col0 ) AND - col2
----

skipif mysql # not compatible
query I rowsort label-8038
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE ( col1 * CAST ( col1 / - col2 AS INTEGER ) + - col0 * - 74 ) BETWEEN + ( + col0 ) AND - col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 BETWEEN - col1 * + col0 AND ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL IN ( - col2 )
----

query I rowsort
SELECT ALL - col0 * + 78 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-3978
-6630
-7098

onlyif mysql # DIV for integer division: 
query I rowsort label-8042
SELECT ALL + col1 + - col2 DIV col0 FROM tab0
----
0
21
78

skipif mysql # not compatible
query I rowsort label-8042
SELECT ALL + col1 + - col2 / col0 FROM tab0
----
0
21
78

query I rowsort
SELECT ALL - ( 33 ) * - col0 FROM tab1
----
1683
2805
3003

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col0 ) NOT IN ( - 10 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT - ( - ( + COUNT( * ) ) ) + + 33 FROM tab1 WHERE NULL IS NULL
----
36

skipif mysql # not compatible
query I rowsort label-8045
SELECT - ( - ( + COUNT ( * ) ) ) + + 33 FROM tab1 WHERE NULL IS NULL
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8046
SELECT ALL + ( CAST( 45 AS SIGNED ) ) * CAST( - SUM( ALL + col2 ) AS SIGNED ) AS col2 FROM tab2 WHERE NOT 75 * + col1 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8046
SELECT ALL + ( CAST ( 45 AS INTEGER ) ) * CAST ( - SUM ( ALL + col2 ) AS INTEGER ) AS col2 FROM tab2 WHERE NOT 75 * + col1 <> NULL
----
NULL

query I rowsort
SELECT DISTINCT + col1 + + 52 + + 85 FROM tab2
----
188
204
214

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) IN ( 85 )
----

query I rowsort
SELECT DISTINCT + col0 + - 53 AS col2 FROM tab1
----
-2
32
38

query I rowsort
SELECT ALL + - col1 - + 99 AS col1 FROM tab0 cor0
----
-100
-120
-180

query I rowsort
SELECT col2 + + 84 * col1 FROM tab1 AS cor0
----
1272
4016
479

onlyif mysql # DIV for integer division: 
query I rowsort label-8052
SELECT - col0 + col0 DIV + col2 FROM tab0 AS cor0
----
-15
-79
-97

skipif mysql # not compatible
query I rowsort label-8052
SELECT - col0 + col0 / + col2 FROM tab0 AS cor0
----
-15
-79
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8053
SELECT + MAX( + - 31 ) + COUNT( * ) FROM tab1 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-8053
SELECT + MAX ( + - 31 ) + COUNT ( * ) FROM tab1 AS cor0
----
-28

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 / + ( + col2 / - col2 ) NOT BETWEEN 84 + col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8055
SELECT col1 DIV + col1 + - col2 AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-58
-67
-95

skipif mysql # not compatible
query I rowsort label-8055
SELECT col1 / + col1 + - col2 AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-58
-67
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab1 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8057
SELECT + COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8057
SELECT + COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query II rowsort
SELECT DISTINCT col1 AS col0, + 89 * + 57 FROM tab0
----
1
5073
21
5073
81
5073

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8059
SELECT - col1 * - + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8059
SELECT - col1 * - + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - 84 ) AS col1 FROM tab2 AS cor0
----
-84
-84
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-8061
SELECT - 89 AS col2, - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-89
-3

skipif mysql # not compatible
query II rowsort label-8061
SELECT - 89 AS col2, - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-89
-3

query I rowsort
SELECT ALL + - col2 * - - col1 AS col1 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8063
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( - 81 AS SIGNED ) >= ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8063
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( - 81 AS INTEGER ) >= ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT ALL + ( COUNT( - col1 ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8064
SELECT ALL + ( COUNT ( - col1 ) ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL ( - col0 ) FROM tab1 AS cor0 WHERE col0 = + col1 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8066
SELECT + col1 / CAST( NULL AS SIGNED ) * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8066
SELECT + col1 / CAST ( NULL AS INTEGER ) * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - ( + 43 ) + + ( + col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8067
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - ( + 43 ) + + ( + col2 ) )
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 >= - - col2
----
51
14
96

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
14
47
5

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( - col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8071
SELECT ALL - + COUNT( * ) / + CAST( NULL AS SIGNED ) * - 18 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8071
SELECT ALL - + COUNT ( * ) / + CAST ( NULL AS INTEGER ) * - 18 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8072
SELECT ALL 16 DIV - COUNT( * ) FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8072
SELECT ALL 16 / - COUNT ( * ) FROM tab1 cor0
----
-5

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 72 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 53 * + + col0 FROM tab0
----
4611
5141
795

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 35 col2 FROM tab1
----
120
126
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8076
SELECT - COUNT( - 16 ) + 60 AS col2 FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-8076
SELECT - COUNT ( - 16 ) + 60 AS col2 FROM tab1
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8077
SELECT col1 + - CAST( NULL AS SIGNED ) * 48 * - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8077
SELECT col1 + - CAST ( NULL AS INTEGER ) * 48 * - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 44 * col0 < - col0
----

query I rowsort
SELECT + 71 + + col1 * col2 + - + ( 52 ) + col1 FROM tab2 AS cor0
----
1243
3176
3972

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8080
SELECT ALL + + ( + COUNT( * ) ) DIV + + COUNT( * ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8080
SELECT ALL + + ( + COUNT ( * ) ) / + + COUNT ( * ) FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT - + MAX( 48 ) FROM tab1 cor0
----
-48

skipif mysql # not compatible
query I rowsort label-8081
SELECT - + MAX ( 48 ) FROM tab1 cor0
----
-48

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + - 25 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 4 + - col1 FROM tab2 WHERE NULL IN ( - 51 / + - ( - col2 ) + - col1 )
----

query I rowsort
SELECT ( - ( - ( - 91 ) ) ) AS col1 FROM tab0
----
-91
-91
-91

query I rowsort
SELECT col2 - + - 10 AS col1 FROM tab2 AS cor0
----
33
50
68

query I rowsort
SELECT ALL + col2 + 94 FROM tab0 AS cor0
----
104
141
193

query II rowsort
SELECT ALL - 45 AS col2, - 71 AS col2 FROM tab2 AS cor0
----
-45
-71
-45
-71
-45
-71

query I rowsort
SELECT + col0 + - col2 - 80 AS col0 FROM tab1 AS cor0
----
-125
-54
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-8089
SELECT col2 * - - col1 + col2 DIV + - 32 AS col1 FROM tab1
----
1341
294
3194

skipif mysql # not compatible
query I rowsort label-8089
SELECT col2 * - - col1 + col2 / + - 32 AS col1 FROM tab1
----
1341
294
3194

onlyif mysql # aggregate syntax: 
query I rowsort label-8090
SELECT + + COUNT( * ) AS col2 FROM tab0 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8090
SELECT + + COUNT ( * ) AS col2 FROM tab0 WHERE NULL >= NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - 0 * - 83 * + col1 ) < col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8092
SELECT - col1 DIV + - 63 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8092
SELECT - col1 / + - 63 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8093
SELECT MAX( - + ( col0 ) ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-8093
SELECT MAX ( - + ( col0 ) ) FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT + ( COUNT( * ) ) AS col0 FROM tab0 WHERE ( 7 ) NOT BETWEEN col2 * col2 * + 98 + + ( + col2 ) * + col1 AND 82 / - col1
----
3

skipif mysql # not compatible
query I rowsort label-8094
SELECT + ( COUNT ( * ) ) AS col0 FROM tab0 WHERE ( 7 ) NOT BETWEEN col2 * col2 * + 98 + + ( + col2 ) * + col1 AND 82 / - col1
----
3

query I rowsort
SELECT col1 + - col2 FROM tab1 WHERE col1 > NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col0 NOT BETWEEN 77 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8097
SELECT DISTINCT COUNT( * ) * - COUNT( * ) * MAX( - CAST( NULL AS SIGNED ) ) / + 64 + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8097
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) * MAX ( - CAST ( NULL AS INTEGER ) ) / + 64 + COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE - - 80 <> - col2
----
10
47
99

query III rowsort
SELECT * FROM tab2 WHERE - 63 BETWEEN ( + 85 + + - 59 * - - col2 ) AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + ( - + col0 ), col0 AS col2 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 34 * - col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * + 4 IS NOT NULL
----

query I rowsort
SELECT - 32 * col0 FROM tab0 cor0
----
-2784
-3104
-480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8104
SELECT + COUNT( * ) DIV + - 28 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8104
SELECT + COUNT ( * ) / + - 28 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( 75 ) AS col2, col1 + + + col2 col1 FROM tab2 AS cor0
----
75
117
75
125
75
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 26 * - col0 col0 FROM tab1 AS cor0
----
1326
2210
2366

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT ALL MIN( DISTINCT + col1 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8107
SELECT ALL MIN ( DISTINCT + col1 ) AS col1 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8108
SELECT SUM( + + 2 ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8108
SELECT SUM ( + + 2 ) FROM tab2 AS cor0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8109
SELECT + ( + MAX( DISTINCT + - CAST( + - col0 AS SIGNED ) ) ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-8109
SELECT + ( + MAX ( DISTINCT + - CAST ( + - col0 AS INTEGER ) ) ) FROM tab0 AS cor0
----
97

query I rowsort
SELECT DISTINCT 85 AS col1 FROM tab2 AS cor0
----
85

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 15 * col2 IS NOT NULL
----

query I rowsort
SELECT - + col1 * 91 AS col0 FROM tab0 cor0
----
-1911
-7371
-91

query III rowsort
SELECT ALL * FROM tab1 WHERE - + col0 NOT BETWEEN + ( + col1 ) AND ( - 29 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT - COUNT( - 3 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8114
SELECT - COUNT ( - 3 ) FROM tab0
----
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col2 > + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT DISTINCT COUNT( * ) + - 25 AS col1 FROM tab0
----
-22

skipif mysql # not compatible
query I rowsort label-8116
SELECT DISTINCT COUNT ( * ) + - 25 AS col1 FROM tab0
----
-22

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IS NOT NULL OR NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= 85
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 50 + col2 col0 FROM tab1
----
109
118
146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8120
SELECT ALL COUNT( * ) DIV - 14 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8120
SELECT ALL COUNT ( * ) / - 14 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 24 col0 FROM tab0
----
-1944
-24
-504

query I rowsort
SELECT + ( - col0 ) FROM tab1 AS cor0 WHERE - ( + 67 ) IS NULL
----

query II rowsort
SELECT + + ( col1 ) * - + 11 AS col1, + ( - col0 ) AS col0 FROM tab0 AS cor0
----
-11
-97
-231
-87
-891
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-8124
SELECT + + 6 * col1 + - col2 + + - col1 - - col0 DIV + ( - col0 ) + + col2 * + 85 AS col2 FROM tab1 AS cor0
----
4980
5946
8133

skipif mysql # not compatible
query I rowsort label-8124
SELECT + + 6 * col1 + - col2 + + - col1 - - col0 / + ( - col0 ) + + col2 * + 85 AS col2 FROM tab1 AS cor0
----
4980
5946
8133

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col0 * - 74 col1 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - 73 > NULL
----

query I rowsort
SELECT 3 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT ALL 81 + + - 27 * col2 + 94 FROM tab1 AS cor0
----
-1418
-1661
-2417

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT ALL + + SUM( ALL - col1 ) FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-8129
SELECT ALL + + SUM ( ALL - col1 ) FROM tab0 cor0
----
-103

query II rowsort
SELECT + ( + 45 ) AS col0, - col2 AS col2 FROM tab0 cor0
----
45
-10
45
-47
45
-99

query I rowsort
SELECT ALL - + col1 * - - 82 FROM tab0 AS cor0
----
-1722
-6642
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8132
SELECT ALL + + MIN( DISTINCT col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-8132
SELECT ALL + + MIN ( DISTINCT col0 ) FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8133
SELECT - COUNT( * ) - 23 DIV + MAX( DISTINCT + col1 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8133
SELECT - COUNT ( * ) - 23 / + MAX ( DISTINCT + col1 ) FROM tab2
----
-3

query I rowsort
SELECT col2 * 84 AS col1 FROM tab1 WHERE NULL >= + col2 * - - 33
----

query I rowsort
SELECT ALL ( - ( - col1 ) ) FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query II rowsort label-8136
SELECT + COUNT( * ), - 62 AS col1 FROM tab0 AS cor0
----
3
-62

skipif mysql # not compatible
query II rowsort label-8136
SELECT + COUNT ( * ), - 62 AS col1 FROM tab0 AS cor0
----
3
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8137
SELECT - + COUNT( * ) AS col1 FROM tab0 cor0 WHERE NOT + col1 + - col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8137
SELECT - + COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NOT + col1 + - col1 IS NULL
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8138
SELECT - CAST( - MAX( DISTINCT - 20 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-8138
SELECT - CAST ( - MAX ( DISTINCT - 20 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT DISTINCT MAX( DISTINCT + 62 ) FROM tab1 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-8139
SELECT DISTINCT MAX ( DISTINCT + 62 ) FROM tab1 AS cor0
----
62

query I rowsort
SELECT DISTINCT + - col1 AS col2 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= - 92 * - + col0 + - col1
----

query I rowsort
SELECT - 70 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

onlyif mysql # aggregate syntax: 
query II rowsort label-8143
SELECT + 62 AS col0, + COUNT( * ) AS col0 FROM tab2
----
62
3

skipif mysql # not compatible
query II rowsort label-8143
SELECT + 62 AS col0, + COUNT ( * ) AS col0 FROM tab2
----
62
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8144
SELECT + col2 * - CAST( - + 16 AS SIGNED ) * + CAST( NULL AS SIGNED ) - + col2 * col2 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8144
SELECT + col2 * - CAST ( - + 16 AS INTEGER ) * + CAST ( NULL AS INTEGER ) - + col2 * col2 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * - col1 NOT BETWEEN ( + - 83 ) * + - col0 + - - col1 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8146
SELECT - + col2 AS col1, + CAST( NULL AS DECIMAL ) + - + ( + - 74 ) + + 60 AS col1 FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-8146
SELECT - + col2 AS col1, + CAST ( NULL AS REAL ) + - + ( + - 74 ) + + 60 AS col1 FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

query II rowsort
SELECT ALL - - 61, + col1 FROM tab1 AS cor0
----
61
14
61
47
61
5

query II rowsort
SELECT ALL col2 AS col1, col1 AS col0 FROM tab1 AS cor0
----
59
5
68
47
96
14

query I rowsort
SELECT + col0 + + col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL > + col2 + - 16
----

query I rowsort
SELECT - ( + ( + 74 ) ) FROM tab2
----
-74
-74
-74

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 NOT BETWEEN - + 87 + - 97 + + 54 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - - 4 <> - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 20 / + 82 BETWEEN NULL AND - col1 * - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8154
SELECT 75 + ( + ( + 48 ) ) + + CAST( - 44 AS SIGNED ) FROM tab2
----
79
79
79

skipif mysql # not compatible
query I rowsort label-8154
SELECT 75 + ( + ( + 48 ) ) + + CAST ( - 44 AS INTEGER ) FROM tab2
----
79
79
79

query I rowsort
SELECT - 55 + - col2 FROM tab1 WHERE - ( - + 21 ) IS NOT NULL
----
-114
-123
-151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8156
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 37 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8156
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 37 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8157
SELECT + col0 + + 78 + - CAST( - col0 AS SIGNED ) + + col2 + col1 * - col1 AS col0 FROM tab2
----
-2408
-4203
-5683

skipif mysql # not compatible
query I rowsort label-8157
SELECT + col0 + + 78 + - CAST ( - col0 AS INTEGER ) + + col2 + col1 * - col1 AS col0 FROM tab2
----
-2408
-4203
-5683

query I rowsort
SELECT ALL + ( - col1 ) + + + col1 + - 73 + - + col1 FROM tab2
----
-124
-140
-150

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col1 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 + - col0 - - - col2 FROM tab2
----
-120
-181
-200

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL OR NULL IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 96 * + col1 FROM tab1 AS cor0
----
1344
4512
480

query I rowsort
SELECT DISTINCT + - col0 + - + col0 + 75 + + 80 FROM tab0 AS cor0
----
-19
-39
125

query I rowsort
SELECT ALL - col0 + - 4 FROM tab2
----
-50
-68
-79

query I rowsort
SELECT DISTINCT col2 * + 90 FROM tab2 AS cor0
----
2070
3600
5220

onlyif mysql # aggregate syntax: 
query I rowsort label-8166
SELECT - 43 + - 99 + + COUNT( * ) FROM tab2 AS cor0
----
-139

skipif mysql # not compatible
query I rowsort label-8166
SELECT - 43 + - 99 + + COUNT ( * ) FROM tab2 AS cor0
----
-139

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( + ( + 84 ) ) * - col2 col2 FROM tab1 AS cor0
----
4956
5712
8064

onlyif mysql # DIV for integer division: 
query I rowsort label-8168
SELECT DISTINCT ( - - col1 ) DIV + col1 AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8168
SELECT DISTINCT ( - - col1 ) / + col1 AS col2 FROM tab0
----
1

query I rowsort
SELECT + 4 * + ( 29 ) AS col2 FROM tab2
----
116
116
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8170
SELECT DISTINCT + CAST( + MIN( ALL col0 ) AS SIGNED ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-8170
SELECT DISTINCT + CAST ( + MIN ( ALL col0 ) AS INTEGER ) AS col2 FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8171
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 WHERE col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8171
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 WHERE col0 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8172
SELECT ALL - COUNT( * ) DIV COUNT( * ) * 28 col2 FROM tab1
----
-28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8172
SELECT ALL - COUNT ( * ) / COUNT ( * ) * 28 col2 FROM tab1
----
-28

query I rowsort
SELECT ALL - col1 * 89 AS col2 FROM tab0 WHERE - ( + 23 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col1, + 11 - - col2 + - col2 + - - 40, + col2 ) OR NOT - col1 IS NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT DISTINCT - MAX( 42 ) AS col2 FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-8175
SELECT DISTINCT - MAX ( 42 ) AS col2 FROM tab1 AS cor0
----
-42

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 + - col1 + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8177
SELECT - + 66 + - ( - - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-8177
SELECT - + 66 + - ( - - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-69

query I rowsort
SELECT ALL - - 29 AS col0 FROM tab2 AS cor0
----
29
29
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8179
SELECT 80 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8179
SELECT 80 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-8180
SELECT col2 DIV 42 + + + ( ( + 53 ) ) AS col2 FROM tab2 AS cor0
----
53
53
54

skipif mysql # not compatible
query I rowsort label-8180
SELECT col2 / 42 + + + ( ( + 53 ) ) AS col2 FROM tab2 AS cor0
----
53
53
54

query I rowsort
SELECT ALL 39 + col2 + + col1 + + col0 FROM tab1 AS cor0
----
188
200
245

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT + MIN( + 77 ) AS col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8182
SELECT + MIN ( + 77 ) AS col0 FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT MAX( ALL + 47 ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-8183
SELECT MAX ( ALL + 47 ) AS col0 FROM tab1 AS cor0
----
47

query I rowsort
SELECT DISTINCT + ( 7 ) + + - col1 AS col0 FROM tab0 AS cor0
----
-14
-74
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8185
SELECT CAST( + - 75 AS SIGNED ) FROM tab2
----
-75
-75
-75

skipif mysql # not compatible
query I rowsort label-8185
SELECT CAST ( + - 75 AS INTEGER ) FROM tab2
----
-75
-75
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8186
SELECT ALL - 65 DIV + COUNT( * ) FROM tab2 WHERE 55 * - - col0 * + col2 IS NOT NULL
----
-21

skipif mysql # not compatible
query I rowsort label-8186
SELECT ALL - 65 / + COUNT ( * ) FROM tab2 WHERE 55 * - - col0 * + col2 IS NOT NULL
----
-21

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( + col0, + col1 + - col1 )
----

query II rowsort
SELECT DISTINCT col1 + - + 16, col2 FROM tab2
----
35
23
51
58
61
40

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 33 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE 34 + + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8191
SELECT ALL 43 + - COUNT( * ) + 28 AS col1 FROM tab0
----
68

skipif mysql # not compatible
query I rowsort label-8191
SELECT ALL 43 + - COUNT ( * ) + 28 AS col1 FROM tab0
----
68

query I rowsort
SELECT col0 * + + col0 * - ( col0 ) * - 12 + col0 FROM tab0 AS cor0
----
10952173
40515
7902123

query I rowsort
SELECT ALL + ( + 3 ) FROM tab1 cor0
----
3
3
3

query II rowsort
SELECT DISTINCT + col0 AS col0, - col0 * - col2 AS col2 FROM tab0 AS cor0
----
15
705
87
870
97
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + - 5 ) + 25 - + col0 * col2 - ( + col0 ) col1 FROM tab1 AS cor0
----
-4927
-5080
-6259

query I rowsort
SELECT ALL col1 + - + col2 AS col2 FROM tab0
----
-98
11
34

query I rowsort
SELECT DISTINCT col1 + - 29 * - + 98 AS col1 FROM tab0
----
2843
2863
2923

query I rowsort
SELECT + 29 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col2 + + - 69 FROM tab2
----
-109
-127
-92

query I rowsort
SELECT + + 24 AS col2 FROM tab1 cor0
----
24
24
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + 26 col0 FROM tab0 AS cor0
----
125
36
73

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 97 * + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8203
SELECT + col2 * - col0 * col1 + CAST( NULL AS SIGNED ) + - col1 + ( col0 ) + - - col1 + + col1 * 1 * + - col0 + + 59 * - col1 * + - col1 * col0 AS col0, - col2 FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
query II rowsort label-8203
SELECT + col2 * - col0 * col1 + CAST ( NULL AS INTEGER ) + - col1 + ( col0 ) + - - col1 + + col1 * 1 * + - col0 + + 59 * - col1 * + - col1 * col0 AS col0, - col2 FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96

query I rowsort
SELECT DISTINCT - - 95 * + col0 FROM tab1 AS cor0
----
4845
8075
8645

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT ALL + 34 * + 97 * COUNT( * ) FROM tab0 cor0
----
9894

skipif mysql # not compatible
query I rowsort label-8205
SELECT ALL + 34 * + 97 * COUNT ( * ) FROM tab0 cor0
----
9894

query I rowsort
SELECT - col0 * - 92 FROM tab1 cor0
----
4692
7820
8372

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8208
SELECT DISTINCT + 69 AS col2, COUNT( * ) AS col0 FROM tab1
----
69
3

skipif mysql # not compatible
query II rowsort label-8208
SELECT DISTINCT + 69 AS col2, COUNT ( * ) AS col0 FROM tab1
----
69
3

query III rowsort
SELECT * FROM tab0 WHERE NOT - 46 * + - col2 IS NOT NULL
----

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT + 79 NOT BETWEEN - col0 + - 71 AND NULL
----

query II rowsort
SELECT - col2 AS col2, + col1 AS col2 FROM tab2
----
-23
51
-40
77
-58
67

onlyif mysql # aggregate syntax: 
query II rowsort label-8212
SELECT ALL + 58 col2, COUNT( * ) FROM tab1
----
58
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8212
SELECT ALL + 58 col2, COUNT ( * ) FROM tab1
----
58
3

query I rowsort
SELECT - col1 * - 77 AS col1 FROM tab2
----
3927
5159
5929

query I rowsort
SELECT - ( + 40 ) FROM tab2 cor0
----
-40
-40
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 13, + 10 + + 77 col1 FROM tab0 AS cor0
----
13
87
13
87
13
87

query I rowsort
SELECT ALL 69 * - 14 * + col0 * + + 88 AS col0 FROM tab1 AS cor0
----
-4335408
-7225680
-7735728

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col0 * 27 * + - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= - col2 * + col0 + - - col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( NOT NULL <> NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 60 ) col2 FROM tab0 cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT + + COUNT( * ) + 97 FROM tab1 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-8221
SELECT + + COUNT ( * ) + 97 FROM tab1 AS cor0
----
100

query I rowsort
SELECT - 39 + + - col1 * col1 FROM tab2
----
-2640
-4528
-5968

query I rowsort
SELECT ALL + col1 + + - col2 + + col2 + ( + 81 ) AS col2 FROM tab0
----
102
162
82

onlyif mysql # DIV for integer division: 
query II rowsort label-8224
SELECT ( - col2 ) + + col0 AS col1, - col1 DIV + + ( - + col1 ) + + col0 AS col1 FROM tab0
----
-2
98
-32
16
77
88

skipif mysql # not compatible
query II rowsort label-8224
SELECT ( - col2 ) + + col0 AS col1, - col1 / + + ( - + col1 ) + + col0 AS col1 FROM tab0
----
-2
98
-32
16
77
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8225
SELECT + 1 + + - COUNT( * ) FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-8225
SELECT + 1 + + - COUNT ( * ) FROM tab1
----
-2

query I rowsort
SELECT ALL 41 + + 27 FROM tab2
----
68
68
68

query I rowsort
SELECT ( 67 ) + - col1 FROM tab1
----
20
53
62

query I rowsort
SELECT + 33 + col1 FROM tab0
----
114
34
54

onlyif mysql # DIV for integer division: 
query I rowsort label-8229
SELECT col1 + - col0 * - col1 + - 72 + + - 37 DIV + + col0 AS col2 FROM tab0
----
1222
1776
26

skipif mysql # not compatible
query I rowsort label-8229
SELECT col1 + - col0 * - col1 + - 72 + + - 37 / + + col0 AS col2 FROM tab0
----
1222
1776
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8230
SELECT - MAX( CAST( - + 61 AS SIGNED ) ) * + 11 * CAST( NULL AS SIGNED ) - ( ( + + COUNT( * ) ) ) * + + 9 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8230
SELECT - MAX ( CAST ( - + 61 AS INTEGER ) ) * + 11 * CAST ( NULL AS INTEGER ) - ( ( + + COUNT ( * ) ) ) * + + 9 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8231
SELECT + COUNT( * ) - ( - COUNT( * ) ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8231
SELECT + COUNT ( * ) - ( - COUNT ( * ) ) FROM tab0 AS cor0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8232
SELECT CAST( + ( - MAX( - col1 ) ) AS SIGNED ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-8232
SELECT CAST ( + ( - MAX ( - col1 ) ) AS INTEGER ) FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8233
SELECT ALL ( + SUM( + ( 77 ) ) ) * + COUNT( * ) FROM tab0 cor0
----
693

skipif mysql # not compatible
query I rowsort label-8233
SELECT ALL ( + SUM ( + ( 77 ) ) ) * + COUNT ( * ) FROM tab0 cor0
----
693

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8234
SELECT ALL + + COUNT( * ) * 85 / - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8234
SELECT ALL + + COUNT ( * ) * 85 / - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8235
SELECT ALL + - MAX( + ( - col2 ) ) AS col2 FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-8235
SELECT ALL + - MAX ( + ( - col2 ) ) AS col2 FROM tab1 cor0
----
59

query I rowsort
SELECT col1 * 29 FROM tab2 AS cor0
----
1479
1943
2233

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8237
SELECT - col1 * col0 * - CAST( - col0 AS SIGNED ) FROM tab1 cor0
----
-36125
-36414
-389207

skipif mysql # not compatible
query I rowsort label-8237
SELECT - col1 * col0 * - CAST ( - col0 AS INTEGER ) FROM tab1 cor0
----
-36125
-36414
-389207

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - ( + col0 ) / + col2 )
----

query I rowsort
SELECT ( - col2 ) * - 10 + + - col0 FROM tab0
----
13
455
893

query II rowsort
SELECT ALL + col0 * - col2, col2 AS col2 FROM tab0
----
-705
47
-870
10
-9603
99

query I rowsort
SELECT DISTINCT - col2 * - - col1 * + 64 AS col2 FROM tab0 WHERE NOT + + ( - col2 ) IS NULL
----
-13440
-243648
-6336

query III rowsort
SELECT * FROM tab1 WHERE NOT + 40 <= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8243
SELECT DISTINCT * FROM tab0 WHERE NOT CAST( NULL AS DECIMAL ) * + + col1 = NULL
----

skipif mysql # not compatible
query III rowsort label-8243
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( NULL AS REAL ) * + + col1 = NULL
----

query I rowsort
SELECT ALL - col2 * - 83 FROM tab2 AS cor0
----
1909
3320
4814

onlyif mysql # DIV for integer division: 
query I rowsort label-8245
SELECT + ( + - col2 ) DIV + - 67 + - col0 AS col1 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-8245
SELECT + ( + - col2 ) / + - 67 + - col0 AS col1 FROM tab2 AS cor0
----
-46
-64
-75

query II rowsort
SELECT ALL - + col2 * + col0 AS col2, + ( + 6 ) AS col0 FROM tab1 AS cor0
----
-4896
6
-5015
6
-6188
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8247
SELECT + CAST( NULL AS SIGNED ) * col1 + + + col0 / + col2 col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8247
SELECT + CAST ( NULL AS INTEGER ) * col1 + + + col0 / + col2 col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 64 + + 95 AS col2 FROM tab0
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT DISTINCT COUNT( * ) + + 3 + + + ( - COUNT( * ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8249
SELECT DISTINCT COUNT ( * ) + + 3 + + + ( - COUNT ( * ) ) FROM tab0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * col2 >= col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 + + + 90 - - - 18 AS col0 FROM tab0 AS cor0
----
153
73
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 91 + - + col0 col2 FROM tab0 AS cor0
----
-106
-178
-188

query I rowsort
SELECT DISTINCT 32 * + + col2 * col1 AS col2 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 66 col2 FROM tab2 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8255
SELECT MAX( - - 9 ) col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8255
SELECT MAX ( - - 9 ) col2 FROM tab0 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8256
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 9 * - CAST( NULL AS SIGNED ) + + ( + col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8256
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 9 * - CAST ( NULL AS INTEGER ) + + ( + col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8257
SELECT + + 78 * CAST( + 31 AS SIGNED ) DIV + COUNT( * ) AS col1, COUNT( * ) AS col0 FROM tab1 AS cor0
----
806
3

skipif mysql # not compatible
query II rowsort label-8257
SELECT + + 78 * CAST ( + 31 AS INTEGER ) / + COUNT ( * ) AS col1, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
806
3

query II rowsort
SELECT ALL + col1, 40 FROM tab1 AS cor0
----
14
40
47
40
5
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT ALL + COUNT( * ) + + 63 AS col2 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8259
SELECT ALL + COUNT ( * ) + + 63 AS col2 FROM tab0 AS cor0
----
66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 10 + - col2 IS NULL
----

query I rowsort
SELECT col2 + col0 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL < + - col1 + col1
----

query I rowsort
SELECT ALL col2 + + 26 * + col0 FROM tab1
----
1422
2269
2434

query I rowsort
SELECT DISTINCT 72 AS col0 FROM tab1, tab0 AS cor0
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8265
SELECT DISTINCT + col2 - + col0 * - CAST( + col0 AS SIGNED ) FROM tab2
----
2139
4136
5683

skipif mysql # not compatible
query I rowsort label-8265
SELECT DISTINCT + col2 - + col0 * - CAST ( + col0 AS INTEGER ) FROM tab2
----
2139
4136
5683

query I rowsort
SELECT ( - 2 ) - - ( + - col2 ) - + col2 AS col0 FROM tab1
----
-120
-138
-194

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 / 23 IS NULL
----

query II rowsort
SELECT - col2 + + col2 AS col1, col0 FROM tab1 AS cor0
----
0
51
0
85
0
91

query I rowsort
SELECT - col0 + + col1 + - col2 FROM tab2 cor0
----
-18
-27
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8270
SELECT COUNT( * ) AS col2 FROM tab0 cor0 WHERE - 95 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8270
SELECT COUNT ( * ) AS col2 FROM tab0 cor0 WHERE - 95 IS NULL
----
0

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + ( 41 ) FROM tab0
----
41
41
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8274
SELECT - CAST( + + ( ( - + 32 ) ) AS SIGNED ) FROM tab1 AS cor0
----
32
32
32

skipif mysql # not compatible
query I rowsort label-8274
SELECT - CAST ( + + ( ( - + 32 ) ) AS INTEGER ) FROM tab1 AS cor0
----
32
32
32

query I rowsort
SELECT + + 0 AS col1 FROM tab1 cor0 WHERE NOT col2 IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT COUNT( + + 22 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8276
SELECT COUNT ( + + 22 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - col0 + col1 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-37
-44
-80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8278
SELECT col2 * + col2 col1, CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3481
NULL
4624
NULL
9216
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8278
SELECT col2 * + col2 col1, CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3481
NULL
4624
NULL
9216
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8279
SELECT DISTINCT - MIN( ALL - - col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-8279
SELECT DISTINCT - MIN ( ALL - - col0 ) FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8280
SELECT DISTINCT + MIN( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8280
SELECT DISTINCT + MIN ( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8281
SELECT ALL SUM( DISTINCT + col1 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
195

skipif mysql # not compatible
query I rowsort label-8281
SELECT ALL SUM ( DISTINCT + col1 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
195

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 5 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col1 AS col2, - ( + + col1 ) AS col0 FROM tab1
----
14
-14
47
-47
5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT ALL - ( - + COUNT( * ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8284
SELECT ALL - ( - + COUNT ( * ) ) AS col1 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8285
SELECT ALL + CAST( 86 AS SIGNED ) * - + ( col1 ), + col2 FROM tab2
----
-4386
23
-5762
58
-6622
40

skipif mysql # not compatible
query II rowsort label-8285
SELECT ALL + CAST ( 86 AS INTEGER ) * - + ( col1 ), + col2 FROM tab2
----
-4386
23
-5762
58
-6622
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8286
SELECT - MIN( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8286
SELECT - MIN ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8287
SELECT + ( - - MIN( ALL + 1 ) ) DIV + + 80 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8287
SELECT + ( - - MIN ( ALL + 1 ) ) / + + 80 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + 99 * - - 87 FROM tab1
----
8613

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 IS NULL OR col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( + col2 ) FROM tab2 WHERE NOT + + col1 * + + 1 IS NULL
----
-23
-40
-58

query I rowsort
SELECT DISTINCT col1 * col0 * + col2 AS col0 FROM tab1
----
25075
290836
68544

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 < - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - 28 + col2 FROM tab1 AS cor0
----
31
40
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8294
SELECT DISTINCT CAST( - col2 AS SIGNED ) col1 FROM tab0 AS cor0 WHERE NOT 86 * + 71 <> - - 32 - 85 + - 65 + + 27
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8294
SELECT DISTINCT CAST ( - col2 AS INTEGER ) col1 FROM tab0 AS cor0 WHERE NOT 86 * + 71 <> - - 32 - 85 + - 65 + + 27
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8295
SELECT DISTINCT CAST( + - ( + - col1 ) AS SIGNED ) * + - col0 AS col2, col1 FROM tab2 cor0
----
-2346
51
-4928
77
-5025
67

skipif mysql # not compatible
query II rowsort label-8295
SELECT DISTINCT CAST ( + - ( + - col1 ) AS INTEGER ) * + - col0 AS col2, col1 FROM tab2 cor0
----
-2346
51
-4928
77
-5025
67

query II rowsort
SELECT DISTINCT - 55 + - + 35, col1 + + - ( - col0 ) AS col0 FROM tab0 AS cor0
----
-90
108
-90
96
-90
98

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 63 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query I rowsort label-8298
SELECT + 37 * + 5 + + COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
194

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8298
SELECT + 37 * + 5 + + COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
194

query I rowsort
SELECT - 9 / 61 + + col2 AS col0 FROM tab1 WHERE NULL <= - - 90
----

query III rowsort
SELECT * FROM tab0 WHERE col1 NOT BETWEEN + col2 AND + 51
----
15
81
47
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8301
SELECT ALL col2 DIV ( col1 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8301
SELECT ALL col2 / ( col1 ) FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + 19 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
19

query I rowsort
SELECT + - ( col0 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-46
-64
-75

query I rowsort
SELECT + - 2 / - - 49 * - + 11 - + col1 AS col1 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT 61 + + col0 * + col2 FROM tab1 AS cor0
----
4957
5076
6249

query III rowsort
SELECT * FROM tab2 WHERE + 40 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT - ( + - 10 ) + 20 + + MIN( ALL + col0 ) AS col1 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-8307
SELECT - ( + - 10 ) + 20 + + MIN ( ALL + col0 ) AS col1 FROM tab1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8308
SELECT - 59 + - + ( + + COUNT( * ) ) FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-8308
SELECT - 59 + - + ( + + COUNT ( * ) ) FROM tab1
----
-62

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN NULL AND col0 + - + col2 + + col0
----

query I rowsort
SELECT + - col2 AS col1 FROM tab0 WHERE ( - col2 ) <= col2 - - - col1 - - 59 * + - col0
----

query I rowsort
SELECT ( - 91 ) FROM tab1
----
-91
-91
-91

query I rowsort
SELECT ALL - col0 - + 67 AS col2 FROM tab2 cor0
----
-113
-131
-142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8313
SELECT + COUNT( - + 30 ) * + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8313
SELECT + COUNT ( - + 30 ) * + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + + 64 AS col1 FROM tab1 AS cor0
----
64
64
64

onlyif mysql # DIV for integer division: 
query II rowsort label-8315
SELECT 2 DIV col1 AS col1, col0 FROM tab1
----
0
51
0
85
0
91

skipif mysql # not compatible
query II rowsort label-8315
SELECT 2 / col1 AS col1, col0 FROM tab1
----
0
51
0
85
0
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8316
SELECT ALL + col1 * - col0 * - - col2 * 89 DIV + col2 AS col1 FROM tab1
----
-37825
-380653
-63546

skipif mysql # not compatible
query I rowsort label-8316
SELECT ALL + col1 * - col0 * - - col2 * 89 / + col2 AS col1 FROM tab1
----
-37825
-380653
-63546

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT - ( COUNT( * ) ) col2 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8317
SELECT - ( COUNT ( * ) ) col2 FROM tab0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 col2 FROM tab2
----
92
92
92

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN + col1 + - - 73 AND col0
----
15
81
47
87
21
10

query I rowsort
SELECT - col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8321
SELECT DISTINCT + + 56 * 8 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8321
SELECT DISTINCT + + 56 * 8 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col0 * col1 * + col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
36125
36414
389207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8323
SELECT - + CAST( + 81 AS SIGNED ) FROM tab1 AS cor0
----
-81
-81
-81

skipif mysql # not compatible
query I rowsort label-8323
SELECT - + CAST ( + 81 AS INTEGER ) FROM tab1 AS cor0
----
-81
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8324
SELECT DISTINCT MIN( - + col1 ) FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-8324
SELECT DISTINCT MIN ( - + col1 ) FROM tab1 cor0
----
-47

query I rowsort
SELECT - + 21 AS col0 FROM tab1 AS cor0
----
-21
-21
-21

query II rowsort
SELECT DISTINCT col2 AS col1, 51 FROM tab0 cor0 WHERE col0 * + + 49 IS NOT NULL
----
10
51
47
51
99
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT ALL - ( + + SUM( ALL - col2 ) ) AS col1 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-8327
SELECT ALL - ( + + SUM ( ALL - col2 ) ) AS col1 FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT SUM( + 52 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-8328
SELECT SUM ( + 52 ) FROM tab0
----
156

query I rowsort
SELECT ALL - 50 * + col1 * + col0 * + - ( - col0 ) FROM tab0
----
-470450
-7947450
-911250

onlyif mysql # aggregate syntax: 
query I rowsort label-8330
SELECT ALL + COUNT( * ) * + COUNT( * ) col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8330
SELECT ALL + COUNT ( * ) * + COUNT ( * ) col1 FROM tab2 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8331
SELECT - 5 / + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8331
SELECT - 5 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 BETWEEN col2 AND ( col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( + col0 ) = - col1 * + col0
----
97
1
99

query I rowsort
SELECT col2 + - - 21 + 69 * + - col0 AS col1 FROM tab0
----
-5972
-6573
-967

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col1 <= + - 72 + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + col2 - + col1 + + + col1 + + 40 AS col0, + 32 AS col0 FROM tab2 AS cor0
----
63
32
80
32
98
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8337
SELECT - - COUNT( + + col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8337
SELECT - - COUNT ( + + col0 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8338
SELECT DISTINCT 80 AS col2, COUNT( * ) FROM tab0 AS cor0
----
80
3

skipif mysql # not compatible
query II rowsort label-8338
SELECT DISTINCT 80 AS col2, COUNT ( * ) FROM tab0 AS cor0
----
80
3

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NOT NULL < ( NULL )
----

query I rowsort
SELECT - 27 * + col0 FROM tab0 AS cor0 WHERE ( NOT 87 + col0 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8341
SELECT ALL - 99 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8341
SELECT ALL - 99 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE - + 11 NOT BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8343
SELECT DISTINCT - SUM( + + col0 ) FROM tab2 WHERE - + col0 * col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8343
SELECT DISTINCT - SUM ( + + col0 ) FROM tab2 WHERE - + col0 * col1 IS NULL
----
NULL

query I rowsort
SELECT ALL - ( 26 ) AS col1 FROM tab1 WHERE + 55 / - col0 + - + 78 IS NOT NULL
----
-26
-26
-26

query I rowsort
SELECT DISTINCT ( + 88 ) AS col1 FROM tab0 AS cor0
----
88

query I rowsort
SELECT - - 53 FROM tab0 cor0
----
53
53
53

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8347
SELECT DISTINCT * FROM tab0 cor0 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8347
SELECT DISTINCT * FROM tab0 cor0 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT - MAX( - 43 ) AS col0 FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-8348
SELECT - MAX ( - 43 ) AS col0 FROM tab2 AS cor0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT + COUNT( ( 55 ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8349
SELECT + COUNT ( ( 55 ) ) AS col2 FROM tab2 AS cor0
----
3

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 22 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT ( - col2 * + - 12 ) > NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-8352
SELECT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE + CAST( NULL AS DECIMAL ) IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

skipif mysql # not compatible
query IIIIII rowsort label-8352
SELECT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE + CAST ( NULL AS REAL ) IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # aggregate syntax: 
query II rowsort label-8353
SELECT COUNT( * ), COUNT( * ) FROM tab1 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8353
SELECT COUNT ( * ), COUNT ( * ) FROM tab1 cor0
----
3
3

query I rowsort
SELECT + - col1 * + + ( - col0 ) AS col2 FROM tab2 cor0
----
2346
4928
5025

query I rowsort
SELECT ALL - 79 * col0 AS col1 FROM tab0 AS cor0
----
-1185
-6873
-7663

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8356
SELECT ALL + col2 / + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8356
SELECT ALL + col2 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query II rowsort
SELECT col2 AS col2, - col1 * col0 AS col0 FROM tab0 AS cor0
----
10
-1827
47
-1215
99
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-8358
SELECT ALL ( SUM( DISTINCT col1 ) ) AS col1, + COUNT( - col2 ) FROM tab2 AS cor0
----
195
3

skipif mysql # not compatible
query II rowsort label-8358
SELECT ALL ( SUM ( DISTINCT col1 ) ) AS col1, + COUNT ( - col2 ) FROM tab2 AS cor0
----
195
3

query I rowsort
SELECT ALL + + 22 FROM tab1 cor0
----
22
22
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8360
SELECT - CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8360
SELECT - CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
-3

query I rowsort
SELECT + col2 * - + ( + col0 ) FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT 66 + - + COUNT( * ) * - 75 * + COUNT( * ) FROM tab0
----
741

skipif mysql # not compatible
query I rowsort label-8362
SELECT 66 + - + COUNT ( * ) * - 75 * + COUNT ( * ) FROM tab0
----
741

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8363
SELECT 43 * + col1 + + CAST( - col2 AS SIGNED ) FROM tab0
----
-56
3436
893

skipif mysql # not compatible
query I rowsort label-8363
SELECT 43 * + col1 + + CAST ( - col2 AS INTEGER ) FROM tab0
----
-56
3436
893

onlyif mysql # DIV for integer division: 
query I rowsort label-8364
SELECT DISTINCT - 12 DIV ( - - col0 ) + 28 FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-8364
SELECT DISTINCT - 12 / ( - - col0 ) + 28 FROM tab1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT ALL MAX( ALL - 83 ) AS col2 FROM tab0
----
-83

skipif mysql # not compatible
query I rowsort label-8365
SELECT ALL MAX ( ALL - 83 ) AS col2 FROM tab0
----
-83

query I rowsort
SELECT 7 + + + col2 * - 72 FROM tab0
----
-3377
-7121
-713

query I rowsort
SELECT - 84 FROM tab1 AS cor0 WHERE ( - + col0 - + - col2 + - col0 * 57 >= col0 )
----

query I rowsort
SELECT ALL - 94 - - col0 AS col2 FROM tab2
----
-19
-30
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 28 col0 FROM tab2 cor0
----
28

query I rowsort
SELECT ALL + 66 * + 64 AS col0 FROM tab2 AS cor0
----
4224
4224
4224

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 22 = NULL AND NOT ( + 2 ) + - - 7 IS NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col1 NOT BETWEEN - + col0 + - col1 + + col2 AND + + col2 * - 22
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 + - col1 >= - ( + - col1 )
----

query I rowsort
SELECT - - col0 + - - 93 FROM tab1 AS cor0
----
144
178
184

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT ALL + - COUNT( * ) * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8375
SELECT ALL + - COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
9

query I rowsort
SELECT 9 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8377
SELECT - col0 DIV 87 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8377
SELECT - col0 / 87 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL + 89 + 77 AS col1 FROM tab2
----
166
166
166

query I rowsort
SELECT DISTINCT col1 + - 69 * ( + 13 ) FROM tab1
----
-850
-883
-892

onlyif mysql # DIV for integer division: 
query I rowsort label-8380
SELECT + 20 DIV + col1 col2 FROM tab1
----
0
1
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8380
SELECT + 20 / + col1 col2 FROM tab1
----
0
1
4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8381
SELECT col1 * - + CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8381
SELECT col1 * - + CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8382
SELECT ALL - - col0 * - + CAST( NULL AS SIGNED ) / + col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8382
SELECT ALL - - col0 * - + CAST ( NULL AS INTEGER ) / + col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8383
SELECT DISTINCT + - MIN( ALL 31 ) * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8383
SELECT DISTINCT + - MIN ( ALL 31 ) * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8384
SELECT - 1 AS col1, - COUNT( * ) FROM tab2 AS cor0
----
-1
-3

skipif mysql # not compatible
query II rowsort label-8384
SELECT - 1 AS col1, - COUNT ( * ) FROM tab2 AS cor0
----
-1
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + col1 ) col2 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8386
SELECT + COUNT( * ) + - + COUNT( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8386
SELECT + COUNT ( * ) + - + COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query I rowsort
SELECT - ( - 35 ) AS col0 FROM tab2
----
35
35
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT DISTINCT - - COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8388
SELECT DISTINCT - - COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8389
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) * - 93 * + - 74 FROM tab2
----
-20646

skipif mysql # not compatible
query I rowsort label-8389
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) * - 93 * + - 74 FROM tab2
----
-20646

query I rowsort
SELECT ALL - 61 * + col2 AS col2 FROM tab2 AS cor0
----
-1403
-2440
-3538

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN - col1 AND NULL
----

query I rowsort
SELECT ALL + - 60 * + col1 * col0 FROM tab2 AS cor0
----
-140760
-295680
-301500

onlyif mysql # aggregate syntax: 
query I rowsort label-8393
SELECT + COUNT( ALL + col1 ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8393
SELECT + COUNT ( ALL + col1 ) AS col2 FROM tab2 cor0
----
3

query II rowsort
SELECT - - col2 * + col1 AS col1, col2 AS col0 FROM tab0 AS cor0
----
210
10
3807
47
99
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( col1 ) * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT + MAX( DISTINCT col0 ) col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8396
SELECT + MAX ( DISTINCT col0 ) col2 FROM tab2 AS cor0
----
75

query I rowsort
SELECT DISTINCT + col0 + 63 AS col1 FROM tab2 AS cor0
----
109
127
138

query I rowsort
SELECT ALL - + 86 AS col2 FROM tab0 cor0
----
-86
-86
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8399
SELECT ALL - + MAX( - - col2 ) DIV + - ( COUNT( DISTINCT + - 92 ) ) + - 12 FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-8399
SELECT ALL - + MAX ( - - col2 ) / + - ( COUNT ( DISTINCT + - 92 ) ) + - 12 FROM tab1 AS cor0
----
84

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <> + 76 / + 86 * col0 / - col1 - + col1
----

query I rowsort
SELECT DISTINCT + 87 + - col2 FROM tab0
----
-12
40
77

query I rowsort
SELECT ALL col1 + - col0 * col0 * col2 FROM tab0
----
-10494
-75669
-931490

onlyif mysql # aggregate syntax: 
query I rowsort label-8403
SELECT ALL MAX( - 77 ) AS col2 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-8403
SELECT ALL MAX ( - 77 ) AS col2 FROM tab2
----
-77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 >= - + col2
----

query I rowsort
SELECT DISTINCT + col1 * - + 11 * + col2 + + col2 AS col0 FROM tab1 AS cor0
----
-14688
-3186
-35088

onlyif mysql # aggregate syntax: 
query II rowsort label-8406
SELECT 87 AS col1, COUNT( * ) FROM tab0 cor0
----
87
3

skipif mysql # not compatible
query II rowsort label-8406
SELECT 87 AS col1, COUNT ( * ) FROM tab0 cor0
----
87
3

query I rowsort
SELECT col2 + + col2 + - col1 - - col2 * + - ( - col2 ) AS col1 FROM tab2 AS cor0
----
1603
3413
524

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 / + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 83 col0 FROM tab0
----
-83

query I rowsort
SELECT DISTINCT + 68 AS col0 FROM tab2 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8411
SELECT DISTINCT - 18 - - - ( CAST( NULL AS SIGNED ) ) + - 8 * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8411
SELECT DISTINCT - 18 - - - ( CAST ( NULL AS INTEGER ) ) + - 8 * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + + col2 * col1 - + - 88 AS col0 FROM tab2 AS cor0
----
1261
3168
3974

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8413
SELECT CAST( - 51 AS SIGNED ), 43 AS col2 FROM tab2 AS cor0
----
-51
43
-51
43
-51
43

skipif mysql # not compatible
query II rowsort label-8413
SELECT CAST ( - 51 AS INTEGER ), 43 AS col2 FROM tab2 AS cor0
----
-51
43
-51
43
-51
43

query I rowsort
SELECT + col2 - + + col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
15
87
97

query I rowsort
SELECT + col1 - + col1 * 89 + - - 5 * + col1 AS col1 FROM tab2 AS cor0
----
-4233
-5561
-6391

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8417
SELECT + 3 + + CAST( - col1 AS SIGNED ) + + - col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-8417
SELECT + 3 + + CAST ( - col1 AS INTEGER ) + + - col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT - ( 71 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT COUNT( * ) * - - 64 FROM tab0
----
192

skipif mysql # not compatible
query I rowsort label-8419
SELECT COUNT ( * ) * - - 64 FROM tab0
----
192

onlyif mysql # DIV for integer division: 
query I rowsort label-8420
SELECT - col1 DIV - 42 + + 62 col1 FROM tab1 AS cor0
----
62
62
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8420
SELECT - col1 / - 42 + + 62 col1 FROM tab1 AS cor0
----
62
62
63

query I rowsort
SELECT ALL - + col2 * col1 + + + col0 * - - col0 * - 47 AS col1 FROM tab1 AS cor0
----
-123591
-339870
-392403

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8422
SELECT CAST( - col1 AS DECIMAL ) * + col2 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-8422
SELECT CAST ( - col1 AS REAL ) * + col2 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8423
SELECT DISTINCT - 15 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8423
SELECT DISTINCT - 15 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT 64 * col2, + ( - - col1 ) AS col1 FROM tab1
----
3776
5
4352
47
6144
14

onlyif mysql # DIV for integer division: 
query I rowsort label-8425
SELECT + - col2 DIV - 3 - + - 88 FROM tab0 AS cor0
----
103
121
91

skipif mysql # not compatible
query I rowsort label-8425
SELECT + - col2 / - 3 - + - 88 FROM tab0 AS cor0
----
103
121
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8426
SELECT CAST( NULL AS DECIMAL ) * col2 * + 18 + + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8426
SELECT CAST ( NULL AS REAL ) * col2 * + 18 + + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( + - 17 ) + + col2 FROM tab2 cor0 WHERE NOT + col0 * 2 BETWEEN + col0 * + col0 AND + 16 * + + col2 + - ( - 42 ) + col2
----
40
57
75

query I rowsort
SELECT DISTINCT - - ( + 21 ) AS col2 FROM tab1 cor0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8429
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( + + col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8429
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( + + col1 AS INTEGER ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + + 87 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8431
SELECT DISTINCT CAST( + + AVG ( - - col0 ) AS SIGNED ) FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-8431
SELECT DISTINCT CAST ( + + AVG ( - - col0 ) AS INTEGER ) FROM tab0
----
66

query I rowsort
SELECT ALL - ( - + 91 ) AS col2 FROM tab1 WHERE + 15 NOT IN ( - + col2, - col1 )
----
91
91
91

query II rowsort
SELECT ALL + col0 * + col2, col2 FROM tab1
----
4896
96
5015
59
6188
68

query I rowsort
SELECT - col2 * + - col1 + col2 FROM tab0
----
198
220
3854

query III rowsort
SELECT * FROM tab0 WHERE + + 70 * + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * + 33 * - col1 * - 44 + + + col2 FROM tab1
----
1951584
428399
4640660

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - - col1 + col2 * - col0 col2 FROM tab0
----
-1080
-4512
-9702

query I rowsort
SELECT col1 + - + 7 AS col2 FROM tab1
----
-2
40
7

query I rowsort
SELECT DISTINCT 55 + col2 * - col2 FROM tab0
----
-2154
-45
-9746

onlyif mysql # aggregate syntax: 
query I rowsort label-8440
SELECT COUNT( * ) + + 41 FROM tab0
----
44

skipif mysql # not compatible
query I rowsort label-8440
SELECT COUNT ( * ) + + 41 FROM tab0
----
44

query II rowsort
SELECT ALL + ( - col2 ) + + - col1 AS col0, 36 FROM tab2
----
-117
36
-125
36
-74
36

query I rowsort
SELECT ALL 38 * - - col0 + - 58 AS col2 FROM tab1 AS cor0
----
1880
3172
3400

onlyif mysql # aggregate syntax: 
query I rowsort label-8443
SELECT + - 17 * COUNT( DISTINCT ( col0 ) ) + - COUNT( * ) FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-8443
SELECT + - 17 * COUNT ( DISTINCT ( col0 ) ) + - COUNT ( * ) FROM tab0 AS cor0
----
-54

query I rowsort
SELECT ALL + 0 * col2 * - col0 + - col1 + + 3 FROM tab1 AS cor0
----
-11
-2
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT - + COUNT( * ) * ( - COUNT( * ) ) * 11 col2 FROM tab1 cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8445
SELECT - + COUNT ( * ) * ( - COUNT ( * ) ) * 11 col2 FROM tab1 cor0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8446
SELECT 51 * - COUNT( ALL - 68 ) - - + ( + + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8446
SELECT 51 * - COUNT ( ALL - 68 ) - - + ( + + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * - col1 IS NOT NULL AND - ( - + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT ( + MAX( ALL col0 ) ) + - 80 FROM tab0 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-8448
SELECT ( + MAX ( ALL col0 ) ) + - 80 FROM tab0 AS cor0
----
17

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 89 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 AS col0 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8451
SELECT + CAST( - + COUNT( * ) AS SIGNED ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8451
SELECT + CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab2 cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 / + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT DISTINCT MIN( ALL - ( - - col0 ) ) AS col0 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-8453
SELECT DISTINCT MIN ( ALL - ( - - col0 ) ) AS col0 FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT - COUNT( * ) FROM tab1 WHERE NOT - 27 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8454
SELECT - COUNT ( * ) FROM tab1 WHERE NOT - 27 >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8455
SELECT ALL 46 * - COUNT( * ) FROM tab2
----
-138

skipif mysql # not compatible
query I rowsort label-8455
SELECT ALL 46 * - COUNT ( * ) FROM tab2
----
-138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8456
SELECT DISTINCT + col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8456
SELECT DISTINCT + col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8457
SELECT + 51 + - CAST( - 90 AS SIGNED ) + ( + 40 ), col2 AS col2 FROM tab1 AS cor0
----
181
59
181
68
181
96

skipif mysql # not compatible
query II rowsort label-8457
SELECT + 51 + - CAST ( - 90 AS INTEGER ) + ( + 40 ), col2 AS col2 FROM tab1 AS cor0
----
181
59
181
68
181
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8458
SELECT + 60 + + ( - COUNT( * ) ) AS col0 FROM tab0 cor0
----
57

skipif mysql # not compatible
query I rowsort label-8458
SELECT + 60 + + ( - COUNT ( * ) ) AS col0 FROM tab0 cor0
----
57

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + + + 83 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * - 30 FROM tab0 AS cor0
----
-2430
-30
-630

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT - COUNT( * ) * ( + - COUNT( * ) ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8461
SELECT - COUNT ( * ) * ( + - COUNT ( * ) ) FROM tab0 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8462
SELECT - ( + CAST( - 85 AS SIGNED ) ) FROM tab2 AS cor0
----
85
85
85

skipif mysql # not compatible
query I rowsort label-8462
SELECT - ( + CAST ( - 85 AS INTEGER ) ) FROM tab2 AS cor0
----
85
85
85

query II rowsort
SELECT col1 * - + col2 + col1 AS col2, col2 AS col1 FROM tab0 AS cor0
----
-189
10
-3726
47
-98
99

query I rowsort
SELECT DISTINCT + col1 + + 80 - - - col1 AS col1 FROM tab0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8465
SELECT DISTINCT - col0 * + + col2 * - + CAST( col0 AS SIGNED ) + 48 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
249744
426323
563156

skipif mysql # not compatible
query I rowsort label-8465
SELECT DISTINCT - col0 * + + col2 * - + CAST ( col0 AS INTEGER ) + 48 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
249744
426323
563156

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8466
SELECT ALL col2 * col2 DIV CAST( - col2 AS SIGNED ) + + ( + - 31 ) AS col1 FROM tab2
----
-54
-71
-89

skipif mysql # not compatible
query I rowsort label-8466
SELECT ALL col2 * col2 / CAST ( - col2 AS INTEGER ) + + ( + - 31 ) AS col1 FROM tab2
----
-54
-71
-89

query III rowsort
SELECT * FROM tab0 WHERE NULL > + + 94
----

query I rowsort
SELECT ALL col2 + ( - + col2 ) AS col2 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8469
SELECT ALL + 53 DIV - col2 - - + 8 FROM tab1
----
8
8
8

skipif mysql # not compatible
query I rowsort label-8469
SELECT ALL + 53 / - col2 - - + 8 FROM tab1
----
8
8
8

query I rowsort
SELECT - 20 - - col2 FROM tab0
----
-10
27
79

query I rowsort
SELECT ALL - col0 * - col0 * col2 + + + col0 AS col1 FROM tab0
----
10590
75777
931588

query I rowsort
SELECT + col1 + + + ( + ( col2 ) ) FROM tab0 AS cor0
----
100
128
31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8473
SELECT - CAST( NULL AS DECIMAL ) + 29 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8473
SELECT - CAST ( NULL AS REAL ) + 29 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= + 40 * + col1 * + col1
----

query II rowsort
SELECT DISTINCT col1 AS col2, - 1 FROM tab1 AS cor0
----
14
-1
47
-1
5
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8476
SELECT col0 / + col0 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8476
SELECT col0 / + col0 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8477
SELECT ALL - ( - ( CAST( NULL AS SIGNED ) ) ) + - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8477
SELECT ALL - ( - ( CAST ( NULL AS INTEGER ) ) ) + - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8478
SELECT - 84 DIV - col1 AS col2 FROM tab1
----
1
16
6

skipif mysql # not compatible
query I rowsort label-8478
SELECT - 84 / - col1 AS col2 FROM tab1
----
1
16
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 18 col1 FROM tab1 AS cor0
----
18
18
18

query I rowsort
SELECT + col2 + + col1 FROM tab1 AS cor0 WHERE NOT NULL >= col2 + - col1
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 23 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 AS col1, - col1 * + 52 + col0 col0 FROM tab0
----
15
-4197
87
-1005
97
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT - COUNT( * ) - 74 FROM tab2 WHERE NOT + - col1 <= NULL
----
-74

skipif mysql # not compatible
query I rowsort label-8483
SELECT - COUNT ( * ) - 74 FROM tab2 WHERE NOT + - col1 <= NULL
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8484
SELECT - col2 AS col2, + CAST( - col1 AS SIGNED ) * col0 - + col0 AS col0 FROM tab0
----
-10
-1914
-47
-1230
-99
-194

skipif mysql # not compatible
query II rowsort label-8484
SELECT - col2 AS col2, + CAST ( - col1 AS INTEGER ) * col0 - + col0 AS col0 FROM tab0
----
-10
-1914
-47
-1230
-99
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT ALL ( + - COUNT( * ) ) col1 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8485
SELECT ALL ( + - COUNT ( * ) ) col1 FROM tab0
----
-3

query I rowsort
SELECT 26 AS col0 FROM tab1 WHERE NOT + col0 IS NULL
----
26
26
26

query I rowsort
SELECT + col2 * - + 55 FROM tab1
----
-3245
-3740
-5280

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( 56 )
----

query I rowsort
SELECT - col2 * 76 + + 80 AS col0 FROM tab1
----
-4404
-5088
-7216

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT 71 * + COUNT( * ) + - MIN( col2 - - 68 ) AS col1 FROM tab2
----
122

skipif mysql # not compatible
query I rowsort label-8490
SELECT 71 * + COUNT ( * ) + - MIN ( col2 - - 68 ) AS col1 FROM tab2
----
122

query I rowsort
SELECT DISTINCT - col2 * + 14 AS col1 FROM tab1 WHERE NOT NULL <= col0 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT + SUM( ALL - col0 ) AS col0 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-8492
SELECT + SUM ( ALL - col0 ) AS col0 FROM tab1
----
-227

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NOT 69 IS NULL
----
-59
-68
-96

query I rowsort
SELECT ALL col1 * + 25 FROM tab2
----
1275
1675
1925

query I rowsort
SELECT + 16 + + col1 * + 44 FROM tab0 WHERE NOT col2 * + 55 NOT IN ( ( - col1 ) )
----

query I rowsort
SELECT + col0 FROM tab1 WHERE NULL NOT IN ( - col1 )
----

query I rowsort
SELECT col2 / - ( col1 ) FROM tab2 WHERE ( - col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - col0 * + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT ALL + 79 * - COUNT( * ) AS col2 FROM tab0
----
-237

skipif mysql # not compatible
query I rowsort label-8499
SELECT ALL + 79 * - COUNT ( * ) AS col2 FROM tab0
----
-237

onlyif mysql # DIV for integer division: 
query I rowsort label-8500
SELECT col2 DIV col2 + - 62 FROM tab0
----
-61
-61
-61

skipif mysql # not compatible
query I rowsort label-8500
SELECT col2 / col2 + - 62 FROM tab0
----
-61
-61
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8501
SELECT DISTINCT - col2 * + 78 + + 91 FROM tab2 WHERE + CAST( + col2 AS SIGNED ) IN ( - ( 61 ) * col0 )
----

skipif mysql # not compatible
query I rowsort label-8501
SELECT DISTINCT - col2 * + 78 + + 91 FROM tab2 WHERE + CAST ( + col2 AS INTEGER ) IN ( - ( 61 ) * col0 )
----

query I rowsort
SELECT + 58 * + 31 FROM tab1
----
1798
1798
1798

query I rowsort
SELECT ALL col0 + + col0 AS col0 FROM tab1 WHERE 66 NOT IN ( - col0 / - col0 + + col2 )
----
102
170
182

query I rowsort
SELECT DISTINCT + 31 / + 73 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT 11 + MAX( + col2 ) AS col2 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-8505
SELECT 11 + MAX ( + col2 ) AS col2 FROM tab2
----
69

query I rowsort
SELECT ALL + 46 * col2 FROM tab2 WHERE ( - col1 ) NOT IN ( + 50 * col1 )
----
1058
1840
2668

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8507
SELECT - CAST( NULL AS SIGNED ) FROM tab2 WHERE ( NULL ) > NULL
----

skipif mysql # not compatible
query I rowsort label-8507
SELECT - CAST ( NULL AS INTEGER ) FROM tab2 WHERE ( NULL ) > NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 46 / ( col1 ) NOT IN ( + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8509
SELECT ALL 56 DIV - ( col1 * + col0 ) AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8509
SELECT ALL 56 / - ( col1 * + col0 ) AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE - ( + col0 ) <> col0 * - col0
----
51
67
77

query I rowsort
SELECT + col1 + - col2 AS col2 FROM tab0 WHERE NOT - col1 <= ( NULL )
----

query I rowsort
SELECT ALL - col2 + + col2 FROM tab2 WHERE NOT + 72 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8513
SELECT - col0 - - CAST( NULL AS SIGNED ) / col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8513
SELECT - col0 - - CAST ( NULL AS INTEGER ) / col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 29 BETWEEN ( NULL ) AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT ALL MIN( ALL - col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> 9 + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8515
SELECT ALL MIN ( ALL - col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> 9 + col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8516
SELECT ALL CAST( NULL AS SIGNED ) * CAST( NULL AS DECIMAL ) - col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8516
SELECT ALL CAST ( NULL AS INTEGER ) * CAST ( NULL AS REAL ) - col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8517
SELECT col2 - CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
-23
-26
45

skipif mysql # not compatible
query I rowsort label-8517
SELECT col2 - CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
-23
-26
45

query I rowsort
SELECT col2 - 69 AS col1 FROM tab1 AS cor0
----
-1
-10
27

query I rowsort
SELECT DISTINCT - 21 * + col0 AS col0 FROM tab0 AS cor0
----
-1827
-2037
-315

query I rowsort
SELECT ALL + col2 + + 48 FROM tab0 WHERE NOT - col1 NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8521
SELECT DISTINCT COUNT( * ) DIV + ( MAX( DISTINCT - col0 ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8521
SELECT DISTINCT COUNT ( * ) / + ( MAX ( DISTINCT - col0 ) ) FROM tab1
----
0

query I rowsort
SELECT DISTINCT col2 + col1 AS col2 FROM tab1 WHERE NOT ( + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT ALL - MAX( - 32 ) FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-8523
SELECT ALL - MAX ( - 32 ) FROM tab1
----
32

query I rowsort
SELECT ( - 77 ) FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

query I rowsort
SELECT DISTINCT - - 43 * - 33 AS col2 FROM tab1 AS cor0
----
-1419

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8526
SELECT ALL 52 AS col1 FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) > ( NULL )
----

skipif mysql # not compatible
query I rowsort label-8526
SELECT ALL 52 AS col1 FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) > ( NULL )
----

query I rowsort
SELECT DISTINCT ( + 5 ) * - 94 AS col1 FROM tab0 AS cor0
----
-470

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 - - col2 <> NULL
----

query I rowsort
SELECT + col1 AS col2 FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN - 44 AND col0
----
1
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8530
SELECT SUM( ALL col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-8530
SELECT SUM ( ALL col1 ) FROM tab0 AS cor0
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8531
SELECT + AVG ( DISTINCT + col1 ) + - 27 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8531
SELECT + AVG ( DISTINCT + col1 ) + - 27 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + CAST ( NULL AS INTEGER ) )
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 * + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8533
SELECT ALL - CAST( 20 AS SIGNED ) FROM tab1 AS cor0
----
-20
-20
-20

skipif mysql # not compatible
query I rowsort label-8533
SELECT ALL - CAST ( 20 AS INTEGER ) FROM tab1 AS cor0
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8534
SELECT ALL - COUNT( - col2 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8534
SELECT ALL - COUNT ( - col2 ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT ( + 83 ) * col1 FROM tab2
----
4233
5561
6391

onlyif mysql # aggregate syntax: 
query I rowsort label-8536
SELECT - 66 * + COUNT( DISTINCT + ( ( + col2 ) ) ) AS col1 FROM tab1
----
-198

skipif mysql # not compatible
query I rowsort label-8536
SELECT - 66 * + COUNT ( DISTINCT + ( ( + col2 ) ) ) AS col1 FROM tab1
----
-198

query I rowsort
SELECT + col0 * + 78 * + 82 FROM tab2
----
294216
409344
479700

query I rowsort
SELECT ALL - col1 + col1 * col2 FROM tab1 WHERE NOT ( - col0 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT DISTINCT + ( + MIN( 79 ) ) FROM tab2 cor0
----
79

skipif mysql # not compatible
query I rowsort label-8539
SELECT DISTINCT + ( + MIN ( 79 ) ) FROM tab2 cor0
----
79

query I rowsort
SELECT ALL 51 + 71 + col1 * col1 * 38 FROM tab0 AS cor0
----
160
16880
249440

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN NULL AND - 79
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( + col1 * + col2 ) NOT BETWEEN col0 * col0 AND ( + col2 )
----

query I rowsort
SELECT DISTINCT + ( + - col1 ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT + + 0 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8544
SELECT + + 0 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col1 ) + - 10 col0 FROM tab1
----
-15
-24
-57

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + col2 * + 21 * - col1 - + col1 AS col2 FROM tab1 AS cor0
----
-28238
-6200
-67163

query II rowsort
SELECT DISTINCT - + 25 AS col0, + col1 FROM tab2 AS cor0
----
-25
51
-25
67
-25
77

query I rowsort
SELECT + 91 * - col0 FROM tab0 AS cor0 WHERE - col1 / col1 - + 10 >= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8550
SELECT + col0, + ( - + 34 ) DIV + col0 FROM tab1 AS cor0
----
51
0
85
0
91
0

skipif mysql # not compatible
query II rowsort label-8550
SELECT + col0, + ( - + 34 ) / + col0 FROM tab1 AS cor0
----
51
0
85
0
91
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( + 83 - + col1 * + 67 NOT BETWEEN + col2 + col2 AND ( - ( - col2 ) * - col2 + - ( - col0 + col0 ) ) ) OR NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8551
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( + 83 - + col1 * + 67 NOT BETWEEN + col2 + col2 AND ( - ( - col2 ) * - col2 + - ( - col0 + col0 ) ) ) OR NOT + col0 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( - col1 ) * - col1 col1 FROM tab2 cor0
----
2601
4489
5929

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * col1 BETWEEN ( col0 * col1 + 89 ) AND ( + ( col1 ) )
----

query I rowsort
SELECT ALL 15 * - 94 AS col0 FROM tab1 AS cor0
----
-1410
-1410
-1410

onlyif mysql # aggregate syntax: 
query I rowsort label-8555
SELECT COUNT( ALL + 17 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8555
SELECT COUNT ( ALL + 17 ) AS col1 FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 WHERE + ( - - col0 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8557
SELECT DISTINCT - col0 * - col2 DIV - + col2 + col2 AS col0 FROM tab2
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-8557
SELECT DISTINCT - col0 * - col2 / - + col2 + col2 AS col0 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 WHERE NOT NULL < ( col1 + col0 ) AND NOT 27 IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8559
SELECT + ( - 61 ) + col2 AS col0 FROM tab0 WHERE - - col1 * - + 69 * CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8559
SELECT + ( - 61 ) + col2 AS col0 FROM tab0 WHERE - - col1 * - + 69 * CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL + col0 + - col1 + + col1 + - + col0 * - col0 FROM tab1
----
2652
7310
8372

query I rowsort
SELECT - col0 * + col0 + 23 FROM tab2
----
-2093
-4073
-5602

query I rowsort
SELECT DISTINCT - + col0 * 37 * 59 - + + col0 FROM tab1 AS cor0
----
-111384
-185640
-198744

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT - + 89 + + COUNT( * ) FROM tab0 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-8563
SELECT - + 89 + + COUNT ( * ) FROM tab0 AS cor0
----
-86

query I rowsort
SELECT + - col1 + - 83 FROM tab0 AS cor0
----
-104
-164
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8565
SELECT + + CAST( + 33 AS SIGNED ) + - col0 FROM tab0 AS cor0
----
-54
-64
18

skipif mysql # not compatible
query I rowsort label-8565
SELECT + + CAST ( + 33 AS INTEGER ) + - col0 FROM tab0 AS cor0
----
-54
-64
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 54 col1 FROM tab0 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8567
SELECT MIN( ALL ( + 57 ) ) FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-8567
SELECT MIN ( ALL ( + 57 ) ) FROM tab2 AS cor0
----
57

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT ALL - COUNT( * ) - 33 AS col0 FROM tab2 AS cor0 WHERE NOT ( + + col2 ) NOT IN ( + - 89 * ( 81 * + 92 ) )
----
-33

skipif mysql # not compatible
query I rowsort label-8569
SELECT ALL - COUNT ( * ) - 33 AS col0 FROM tab2 AS cor0 WHERE NOT ( + + col2 ) NOT IN ( + - 89 * ( 81 * + 92 ) )
----
-33

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT ( + 33 ) BETWEEN NULL AND col0 * + 77 + - 18 * 13 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8571
SELECT - + col0 DIV + - col1 FROM tab0 WHERE NOT - + col1 IS NULL
----
0
4
97

skipif mysql # not compatible
query I rowsort label-8571
SELECT - + col0 / + - col1 FROM tab0 WHERE NOT - + col1 IS NULL
----
0
4
97

query I rowsort
SELECT + 79 * - + 68 AS col2 FROM tab1
----
-5372
-5372
-5372

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 39 col2 FROM tab1
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8574
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + MIN( - col1 ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8574
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + MIN ( - col1 ) col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8575
SELECT + 91 DIV - col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8575
SELECT + 91 / - col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL col0 * + + 40 AS col2 FROM tab2 AS cor0
----
1840
2560
3000

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8577
SELECT - CAST( NULL AS DECIMAL ), + 12 AS col0 FROM tab0 AS cor0
----
NULL
12
NULL
12
NULL
12

skipif mysql # not compatible
query II rowsort label-8577
SELECT - CAST ( NULL AS REAL ), + 12 AS col0 FROM tab0 AS cor0
----
NULL
12
NULL
12
NULL
12

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( col0 - + - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8579
SELECT ALL + col1 DIV + - col0 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8579
SELECT ALL + col1 / + - col0 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8580
SELECT COUNT( - col2 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8580
SELECT COUNT ( - col2 ) FROM tab2 cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col2 * - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT ALL MIN( DISTINCT - col1 ) * - COUNT( * ) + + MIN( col2 ) col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( - col2 / - 88 + + col0 * + - col1 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8582
SELECT ALL MIN ( DISTINCT - col1 ) * - COUNT ( * ) + + MIN ( col2 ) col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( - col2 / - 88 + + col0 * + - col1 )
----
NULL

query I rowsort
SELECT 48 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
48
48
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8584
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8584
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8585
SELECT DISTINCT col1 DIV - 67 AS col1 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-8585
SELECT DISTINCT col1 / - 67 AS col1 FROM tab2
----
-1
0

query I rowsort
SELECT 18 + 52 FROM tab2
----
70
70
70

query I rowsort
SELECT DISTINCT 37 * - col2 + - col2 AS col2 FROM tab0
----
-1786
-3762
-380

query I rowsort
SELECT 41 + 72 AS col0 FROM tab1
----
113
113
113

query I rowsort
SELECT ( col2 ) + col0 AS col1 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8590
SELECT - MAX( + col2 ) * AVG ( - 69 ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IN ( + + col0 - - 75 * - 8 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8590
SELECT - MAX ( + col2 ) * AVG ( - 69 ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IN ( + + col0 - - 75 * - 8 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8591
SELECT DISTINCT - COUNT( * ) * + 12 * 43 FROM tab0 AS cor0
----
-1548

skipif mysql # not compatible
query I rowsort label-8591
SELECT DISTINCT - COUNT ( * ) * + 12 * 43 FROM tab0 AS cor0
----
-1548

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE col2 + + 48 - + ( - + col1 ) + + + 55 / ( - col2 ) IS NOT NULL
----
23
40
58

query I rowsort
SELECT + col0 * - + 68 * + + col1 FROM tab0
----
-124236
-6596
-82620

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT ALL + + MIN( col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8594
SELECT ALL + + MIN ( col0 ) FROM tab1 AS cor0
----
51

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 82 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8596
SELECT ALL col1 AS col2, - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 * - col0 - col0 AND NULL
----

skipif mysql # not compatible
query II rowsort label-8596
SELECT ALL col1 AS col2, - CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 * - col0 - col0 AND NULL
----

query I rowsort
SELECT col2 * col2 FROM tab0 AS cor0 WHERE + col1 IS NULL
----

query I rowsort
SELECT + - ( - col2 ) + + 93 FROM tab1 AS cor0
----
152
161
189

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT DISTINCT + MIN( + 53 ) FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-8599
SELECT DISTINCT + MIN ( + 53 ) FROM tab2 AS cor0
----
53

query I rowsort
SELECT + col0 + - col2 FROM tab2 WHERE col1 / - col0 * + col1 * 19 + + col2 IS NOT NULL
----
17
23
24

query I rowsort
SELECT ALL + AVG ( DISTINCT - 59 ) AS col1 FROM tab0 WHERE + + col1 <= ( - ( + col2 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8602
SELECT ALL MIN( 31 ) FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-8602
SELECT ALL MIN ( 31 ) FROM tab1
----
31

query II rowsort
SELECT col1 AS col1, col0 * col0 * - 32 AS col2 FROM tab0
----
1
-301088
21
-242208
81
-7200

onlyif mysql # aggregate syntax: 
query II rowsort label-8604
SELECT - 23 AS col2, + COUNT( ALL + + ( - 35 ) ) AS col2 FROM tab1
----
-23
3

skipif mysql # not compatible
query II rowsort label-8604
SELECT - 23 AS col2, + COUNT ( ALL + + ( - 35 ) ) AS col2 FROM tab1
----
-23
3

query I rowsort
SELECT - 54 * + col1 FROM tab2
----
-2754
-3618
-4158

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8606
SELECT DISTINCT - CAST( col1 AS SIGNED ) + - col1 FROM tab1
----
-10
-28
-94

skipif mysql # not compatible
query I rowsort label-8606
SELECT DISTINCT - CAST ( col1 AS INTEGER ) + - col1 FROM tab1
----
-10
-28
-94

query III rowsort
SELECT * FROM tab2 WHERE NOT + 84 / col0 NOT BETWEEN - col2 AND ( + - col2 )
----

query I rowsort
SELECT ALL + ( - col2 ) * + 61 FROM tab1 AS cor0
----
-3599
-4148
-5856

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col1 ) NOT IN ( - col2, col2 * - - 47 * + ( - + col2 ) )
----

query I rowsort
SELECT DISTINCT col2 + - - ( col0 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
104
133
69

query I rowsort
SELECT ALL - col0 * + + 9 + + - col2 AS col1 FROM tab1 AS cor0
----
-555
-824
-887

query II rowsort
SELECT 57 AS col1, - col1 * + col2 + 39 AS col2 FROM tab2 AS cor0
----
57
-1134
57
-3041
57
-3847

query II rowsort
SELECT + - 42 AS col2, 81 AS col2 FROM tab2 AS cor0
----
-42
81
-42
81
-42
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8614
SELECT + ( + - SUM( 52 ) ) AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-156

skipif mysql # not compatible
query I rowsort label-8614
SELECT + ( + - SUM ( 52 ) ) AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-156

query I rowsort
SELECT DISTINCT - + 4 * + 80 FROM tab0 AS cor0
----
-320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 74 * + col0 col2 FROM tab0 cor0 WHERE + col0 * + 25 * 36 IS NOT NULL
----
-1110
-6438
-7178

query I rowsort
SELECT + 20 * col2 AS col0 FROM tab2
----
1160
460
800

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT MIN( - 10 ) AS col0 FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-8618
SELECT MIN ( - 10 ) AS col0 FROM tab2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT ALL COUNT( * ) * 28 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
252

skipif mysql # not compatible
query I rowsort label-8619
SELECT ALL COUNT ( * ) * 28 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
252

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8620
SELECT MIN( ALL + CAST( NULL AS DECIMAL ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8620
SELECT MIN ( ALL + CAST ( NULL AS REAL ) ) AS col0 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col2 + + col0 AND 20
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8622
SELECT + 65 DIV + 93 AS col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8622
SELECT + 65 / + 93 AS col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 44 + col0 FROM tab0 AS cor0
----
131
141
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8624
SELECT DISTINCT CAST( col2 AS SIGNED ) * + - 69 FROM tab2
----
-1587
-2760
-4002

skipif mysql # not compatible
query I rowsort label-8624
SELECT DISTINCT CAST ( col2 AS INTEGER ) * + - 69 FROM tab2
----
-1587
-2760
-4002

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT ALL - COUNT( * ) * + 5 AS col2 FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-8625
SELECT ALL - COUNT ( * ) * + 5 AS col2 FROM tab1
----
-15

query I rowsort
SELECT ALL + col2 + - col0 AS col1 FROM tab2 WHERE - + col0 * + 20 * 83 + + col1 NOT BETWEEN NULL AND + 77
----

query I rowsort
SELECT 31 * - 48 FROM tab2
----
-1488
-1488
-1488

query I rowsort
SELECT 69 * + 27 AS col2 FROM tab1
----
1863
1863
1863

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8629
SELECT * FROM tab2 WHERE 16 / + 36 <> + ( + 81 ) * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8629
SELECT * FROM tab2 WHERE 16 / + 36 <> + ( + 81 ) * - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - 27 + col0 + + + col0 FROM tab0
----
147
167
3

query I rowsort
SELECT DISTINCT - - 35 AS col0 FROM tab1 AS cor0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8632
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN - col2 + + col2 - 89 - col1 + col2 / col2 AND ( col1 * 42 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8632
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN - col2 + + col2 - 89 - col1 + col2 / col2 AND ( col1 * 42 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8633
SELECT + 25 + - + SUM( DISTINCT ( col2 ) ) AS col2 FROM tab0
----
-131

skipif mysql # not compatible
query I rowsort label-8633
SELECT + 25 + - + SUM ( DISTINCT ( col2 ) ) AS col2 FROM tab0
----
-131

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8634
SELECT * FROM tab1 WHERE + - CAST( NULL AS SIGNED ) >= col1
----

skipif mysql # not compatible
query III rowsort label-8634
SELECT * FROM tab1 WHERE + - CAST ( NULL AS INTEGER ) >= col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 81 < - col1 / - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT - MIN( + 66 ) col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8636
SELECT - MIN ( + 66 ) col0 FROM tab1 AS cor0
----
-66

query II rowsort
SELECT + col1, col1 + + + ( - + 96 ) * - col2 FROM tab1 AS cor0
----
14
9230
47
6575
5
5669

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8638
SELECT col0 AS col0, col1 + CAST( + 78 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
15
159
87
99
97
79

skipif mysql # not compatible
query II rowsort label-8638
SELECT col0 AS col0, col1 + CAST ( + 78 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
15
159
87
99
97
79

query I rowsort
SELECT ALL ( + col0 ) - + col0 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 - - 38 FROM tab0 AS cor0
----
-61
-9
28

onlyif mysql # DIV for integer division: 
query I rowsort label-8641
SELECT - col0 DIV + col2 - + - col2 - + col0 FROM tab2
----
-18
-25
-25

skipif mysql # not compatible
query I rowsort label-8641
SELECT - col0 / + col2 - + - col2 - + col0 FROM tab2
----
-18
-25
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT DISTINCT + COUNT( + 71 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8642
SELECT DISTINCT + COUNT ( + 71 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT + col0 * 83 * - col0 AS col1 FROM tab1
----
-215883
-599675
-687323

query I rowsort
SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8645
SELECT + COUNT( * ) * + 93 col1 FROM tab1
----
279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8645
SELECT + COUNT ( * ) * + 93 col1 FROM tab1
----
279

query I rowsort
SELECT DISTINCT + col1 * + - 48 + + + col1 FROM tab2 cor0 WHERE NOT ( NULL ) > + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 65 col0, + 92 * - - ( - 16 ) FROM tab1 AS cor0
----
65
-1472

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT ALL + ( COUNT( * ) ) + - - 83 AS col2 FROM tab1
----
86

skipif mysql # not compatible
query I rowsort label-8648
SELECT ALL + ( COUNT ( * ) ) + - - 83 AS col2 FROM tab1
----
86

query I rowsort
SELECT ALL col0 + + 12 FROM tab0
----
109
27
99

query I rowsort
SELECT DISTINCT col1 * 5 * - col0 AS col2 FROM tab1
----
-2125
-21385
-3570

query I rowsort
SELECT 0 + - 14 AS col1 FROM tab2
----
-14
-14
-14

query II rowsort
SELECT DISTINCT - 61 * + col2 * 71 * 24 AS col1, 28 FROM tab1
----
-6132696
28
-7068192
28
-9978624
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 69 col1 FROM tab0
----
156
166
84

query I rowsort
SELECT + col0 + + ( col2 ) + + 30 FROM tab1
----
174
177
189

query I rowsort
SELECT DISTINCT + ( 30 ) + col0 + + 17 AS col0 FROM tab1
----
132
138
98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8656
SELECT + CAST( NULL AS DECIMAL ) + - + col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8656
SELECT + CAST ( NULL AS REAL ) + - + col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8657
SELECT ALL + col2 + - - 10 - CAST( col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
10
10
10

skipif mysql # not compatible
query I rowsort label-8657
SELECT ALL + col2 + - - 10 - CAST ( col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
10
10
10

query I rowsort
SELECT - + 11 FROM tab2 cor0
----
-11
-11
-11

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 15 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8660
SELECT 38 * - col0 DIV - col0 FROM tab1
----
38
38
38

skipif mysql # not compatible
query I rowsort label-8660
SELECT 38 * - col0 / - col0 FROM tab1
----
38
38
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT DISTINCT 70 + - MIN( ALL - col0 ) FROM tab1
----
161

skipif mysql # not compatible
query I rowsort label-8661
SELECT DISTINCT 70 + - MIN ( ALL - col0 ) FROM tab1
----
161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8662
SELECT ALL + 7 / CAST( NULL AS SIGNED ) - - COUNT( * ) AS col2, 34 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
34

skipif mysql # not compatible
query II rowsort label-8662
SELECT ALL + 7 / CAST ( NULL AS INTEGER ) - - COUNT ( * ) AS col2, 34 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8663
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

query II rowsort
SELECT ALL - 49 * - col0 AS col0, col0 AS col0 FROM tab1 AS cor0 WHERE NULL = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8665
SELECT 94 + + 36 - - + 0 DIV 24 FROM tab1 AS cor0
----
130
130
130

skipif mysql # not compatible
query I rowsort label-8665
SELECT 94 + + 36 - - + 0 / 24 FROM tab1 AS cor0
----
130
130
130

onlyif mysql # aggregate syntax: 
query I rowsort label-8666
SELECT + COUNT( * ) * + 69 AS col0 FROM tab1 cor0
----
207

skipif mysql # not compatible
query I rowsort label-8666
SELECT + COUNT ( * ) * + 69 AS col0 FROM tab1 cor0
----
207

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8667
SELECT * FROM tab2 cor0 WHERE NOT + col1 + 94 - + col2 * + col2 > + + col2 + - - col0 + + CAST( col1 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8667
SELECT * FROM tab2 cor0 WHERE NOT + col1 + 94 - + col2 * + col2 > + + col2 + - - col0 + + CAST ( col1 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * 21 + + col0 AS col1 FROM tab0 AS cor0
----
1914
2134
330

query II rowsort
SELECT DISTINCT - col0, col0 AS col1 FROM tab1
----
-51
51
-85
85
-91
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8670
SELECT ALL CAST( + - ( + col0 ) AS SIGNED ) AS col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-8670
SELECT ALL CAST ( + - ( + col0 ) AS INTEGER ) AS col0 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8671
SELECT + COUNT( * ) DIV - COUNT( + + 68 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-8671
SELECT + COUNT ( * ) / - COUNT ( + + 68 ) FROM tab1
----
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8672
SELECT DISTINCT CAST( - col0 AS DECIMAL ) / CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8672
SELECT DISTINCT CAST ( - col0 AS REAL ) / CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 9 + - + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT + COUNT( + 62 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8674
SELECT + COUNT ( + 62 ) FROM tab0
----
3

query III rowsort
SELECT * FROM tab2 WHERE col2 NOT IN ( - col2 ) AND NULL IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8676
SELECT - col2 DIV - 96 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8676
SELECT - col2 / - 96 FROM tab1
----
0
0
1

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 58 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8678
SELECT 0 col0, CAST( col1 AS SIGNED ) FROM tab1
----
0
14
0
47
0
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8678
SELECT 0 col0, CAST ( col1 AS INTEGER ) FROM tab1
----
0
14
0
47
0
5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 NOT IN ( col0, col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8680
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + 93 AND - - col0
----
0

skipif mysql # not compatible
query I rowsort label-8680
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + 93 AND - - col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT ALL MAX( DISTINCT - 76 ) FROM tab2 AS cor0 WHERE col2 BETWEEN - col1 AND - - col1
----
-76

skipif mysql # not compatible
query I rowsort label-8681
SELECT ALL MAX ( DISTINCT - 76 ) FROM tab2 AS cor0 WHERE col2 BETWEEN - col1 AND - - col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT DISTINCT MIN( DISTINCT - col1 ) FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8682
SELECT DISTINCT MIN ( DISTINCT - col1 ) FROM tab0 cor0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8683
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) NOT IN ( + + 82 - + col0 )
----

skipif mysql # not compatible
query III rowsort label-8683
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) NOT IN ( + + 82 - + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8684
SELECT - + col0 * + 41 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8684
SELECT - + col0 * + 41 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8685
SELECT 78 DIV + + col0 AS col1, - col2 AS col1 FROM tab1 AS cor0
----
0
-59
0
-68
1
-96

skipif mysql # not compatible
query II rowsort label-8685
SELECT 78 / + + col0 AS col1, - col2 AS col1 FROM tab1 AS cor0
----
0
-59
0
-68
1
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8686
SELECT DISTINCT + + col2 + - + col1, col1, - - col0 * col1 - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
9 values hashing to 4f2582b006f69ee35b73268af6bf07fc

skipif mysql # not compatible
query III rowsort label-8686
SELECT DISTINCT + + col2 + - + col1, col1, - - col0 * col1 - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
9 values hashing to 4f2582b006f69ee35b73268af6bf07fc

query I rowsort
SELECT + col0 * - + 68 * + 67 AS col2 FROM tab0 cor0
----
-396372
-441932
-68340

onlyif mysql # aggregate syntax: 
query II rowsort label-8688
SELECT COUNT( * ), + ( + MAX( ALL - col1 ) ) AS col1 FROM tab0
----
3
-1

skipif mysql # not compatible
query II rowsort label-8688
SELECT COUNT ( * ), + ( + MAX ( ALL - col1 ) ) AS col1 FROM tab0
----
3
-1

query I rowsort
SELECT DISTINCT + + col2 - 72 FROM tab1 WHERE NULL > + col2
----

query III rowsort
SELECT * FROM tab0 WHERE - col1 NOT BETWEEN + 9 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8691
SELECT ALL MIN( + ( col2 ) ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-8691
SELECT ALL MIN ( + ( col2 ) ) FROM tab2
----
23

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 <= + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8693
SELECT ALL COUNT( * ) + COUNT( * ) FROM tab1 WHERE NOT + 70 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8693
SELECT ALL COUNT ( * ) + COUNT ( * ) FROM tab1 WHERE NOT + 70 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT COUNT( * ) + 85 FROM tab2 WHERE + col1 IS NOT NULL
----
88

skipif mysql # not compatible
query I rowsort label-8694
SELECT COUNT ( * ) + 85 FROM tab2 WHERE + col1 IS NOT NULL
----
88

query I rowsort
SELECT DISTINCT ( + + 56 ) AS col2 FROM tab1 AS cor0 WHERE ( + col1 / - 7 * + - 92 ) IS NOT NULL
----
56

query I rowsort
SELECT col2 + 29 AS col1 FROM tab2 AS cor0
----
52
69
87

query I rowsort
SELECT DISTINCT 37 + + col2 AS col0 FROM tab0 AS cor0
----
136
47
84

query I rowsort
SELECT ALL col1 + - col2 * - - col2 AS col0 FROM tab1
----
-3476
-4577
-9202

query I rowsort
SELECT + + col1 * - 90 - 48 - col0 FROM tab2 WHERE - 22 IS NOT NULL
----
-4684
-6153
-7042

query II rowsort
SELECT ALL + + 48 + col0 AS col0, 92 + + - col2 + - col1 + 15 - + 64 * + col0 * + + col2 FROM tab0 AS cor0
----
135
-55604
145
-614585
63
-45141

query I rowsort
SELECT + col1 * 87 * - col0 * 25 FROM tab1 AS cor0 WHERE NOT NULL <> col1
----

query I rowsort
SELECT - 94 AS col0 FROM tab0 AS cor0 WHERE NOT - 47 NOT BETWEEN + col2 * + col2 + + - col2 AND NULL
----

query II rowsort
SELECT col0 * - col1 AS col1, 41 FROM tab2 cor0
----
-2346
41
-4928
41
-5025
41

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col0 <= - - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8705
SELECT DISTINCT col1 DIV + 1 AS col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8705
SELECT DISTINCT col1 / + 1 AS col2 FROM tab1
----
14
47
5

query I rowsort
SELECT ALL + ( - + col2 ) * - ( 11 ) FROM tab1
----
1056
649
748

onlyif mysql # DIV for integer division: 
query I rowsort label-8707
SELECT + col2 DIV - ( - - col1 ) FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-8707
SELECT + col2 / - ( - - col1 ) FROM tab1
----
-1
-11
-6

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 * 56 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, - col1 col1 FROM tab2
----
-46
-51
-64
-77
-75
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-8710
SELECT 32 * - 90 * ( col2 ) DIV col2 * + col1 FROM tab1
----
-135360
-14400
-40320

skipif mysql # not compatible
query I rowsort label-8710
SELECT 32 * - 90 * ( col2 ) / col2 * + col1 FROM tab1
----
-135360
-14400
-40320

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN - 58 AND NULL
----

query II rowsort
SELECT DISTINCT col2, - 94 FROM tab1 AS cor0
----
59
-94
68
-94
96
-94

query I rowsort
SELECT ALL - 71 AS col0 FROM tab2 cor0 WHERE NULL IS NULL
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT + MIN( + col0 ) AS col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-8714
SELECT + MIN ( + col0 ) AS col1 FROM tab2 AS cor0
----
46

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 14 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 * - - 74 FROM tab2 cor0
----
3404
4736
5550

onlyif mysql # DIV for integer division: 
query I rowsort label-8717
SELECT DISTINCT - + col0 DIV - 74 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-8717
SELECT DISTINCT - + col0 / - 74 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT ALL + col2 + 14 FROM tab1
----
110
73
82

query I rowsort
SELECT - 17 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

onlyif mysql # aggregate syntax: 
query II rowsort label-8720
SELECT COUNT( col1 ) AS col0, SUM( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
3
195

skipif mysql # not compatible
query II rowsort label-8720
SELECT COUNT ( col1 ) AS col0, SUM ( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
3
195

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col1 ) = + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8722
SELECT ALL ( - col1 ) + - 22 + - 49 * col0 * 99 * 49 DIV + - 32 col2 FROM tab0 AS cor0
----
111318
646201
720502

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8722
SELECT ALL ( - col1 ) + - 22 + - 49 * col0 * 99 * 49 / + - 32 col2 FROM tab0 AS cor0
----
111318
646201
720502

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + + col0 col1 FROM tab2
----
17
23
24

query I rowsort
SELECT ( - col0 ) + - col1 AS col2 FROM tab0
----
-108
-96
-98

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 WHERE NULL BETWEEN 51 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT ALL + COUNT( * ) FROM tab1 WHERE - col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8726
SELECT ALL + COUNT ( * ) FROM tab1 WHERE - col1 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE ( 86 ) IS NOT NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8728
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND col2
----

skipif mysql # not compatible
query III rowsort label-8728
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT + 4 * + - ( + COUNT( * ) ) FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-8729
SELECT + 4 * + - ( + COUNT ( * ) ) FROM tab0 AS cor0
----
-12

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 >= - - col1 + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - 69 * + col2 AS col1, col1 FROM tab1
----
-4071
5
-4692
47
-6624
14

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT NULL NOT IN ( + col0 ) )
----

query I rowsort
SELECT DISTINCT - col2 * - + 95 FROM tab0
----
4465
9405
950

query I rowsort
SELECT + col2 AS col1 FROM tab0 WHERE NOT NULL BETWEEN - 57 * - col2 AND NULL
----

query I rowsort
SELECT DISTINCT - col2 * 88 * + + col2 AS col2 FROM tab1 AS cor0
----
-306328
-406912
-811008

query I rowsort
SELECT ALL + - col1 * - 6 FROM tab1 cor0
----
282
30
84

query I rowsort
SELECT ALL col1 * - col0 * + col0 * - col1 * col1 AS col1 FROM tab0 cor0
----
119574225
70096509
9409

onlyif mysql # DIV for integer division: 
query I rowsort label-8738
SELECT - col0 DIV - 19 col1 FROM tab1 cor0
----
2
4
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8738
SELECT - col0 / - 19 col1 FROM tab1 cor0
----
2
4
4

query I rowsort
SELECT 26 + - - 18 FROM tab1
----
44
44
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8740
SELECT ALL SUM( - CAST( - - 49 AS SIGNED ) ) AS col2 FROM tab0
----
-147

skipif mysql # not compatible
query I rowsort label-8740
SELECT ALL SUM ( - CAST ( - - 49 AS INTEGER ) ) AS col2 FROM tab0
----
-147

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN - + col2 AND 57
----
51
14
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8743
SELECT - ( COUNT( * ) ) DIV - - COUNT( * ) - - + MAX( + + 70 ) * + - MAX( ALL - - col0 ) FROM tab1 AS cor0
----
-6371

skipif mysql # not compatible
query I rowsort label-8743
SELECT - ( COUNT ( * ) ) / - - COUNT ( * ) - - + MAX ( + + 70 ) * + - MAX ( ALL - - col0 ) FROM tab1 AS cor0
----
-6371

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT ALL - COUNT( * ) + 93 AS col2 FROM tab2 cor0 WHERE NULL <= NULL
----
93

skipif mysql # not compatible
query I rowsort label-8744
SELECT ALL - COUNT ( * ) + 93 AS col2 FROM tab2 cor0 WHERE NULL <= NULL
----
93

query I rowsort
SELECT - + 1 * - col0 AS col0 FROM tab2 cor0
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8746
SELECT ALL - - CAST( - + col0 AS SIGNED ) FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-8746
SELECT ALL - - CAST ( - + col0 AS INTEGER ) FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8747
SELECT + ( - + 48 ) * CAST( AVG ( - col2 ) AS SIGNED ) FROM tab0
----
2496

skipif mysql # not compatible
query I rowsort label-8747
SELECT + ( - + 48 ) * CAST ( AVG ( - col2 ) AS INTEGER ) FROM tab0
----
2496

query I rowsort
SELECT ALL 74 + - + col0 FROM tab0
----
-13
-23
59

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col2 <> 78
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 41 + + 29 FROM tab2
----
70
70
70

query I rowsort
SELECT ALL + col0 - + + col0 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT COUNT( - - col2 ) + + 66 AS col1 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-8752
SELECT COUNT ( - - col2 ) + + 66 AS col1 FROM tab1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT DISTINCT 72 + - COUNT( * ) col2 FROM tab1
----
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8753
SELECT DISTINCT 72 + - COUNT ( * ) col2 FROM tab1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT ALL + + MAX( col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-8754
SELECT ALL + + MAX ( col2 ) FROM tab1 AS cor0
----
96

query II rowsort
SELECT - - 90, - col0 AS col2 FROM tab1 AS cor0
----
90
-51
90
-85
90
-91

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - col2 <> - + ( ( col0 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 11 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 * + 66 AS col2 FROM tab1 WHERE + + col2 BETWEEN - col0 AND - col0 / + col0 + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - ( + col0 ) + col0 >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8760
SELECT + - COUNT( * ) DIV - 97 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-8760
SELECT + - COUNT ( * ) / - 97 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT ALL MIN( ( + 72 ) ) AS col0 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-8761
SELECT ALL MIN ( ( + 72 ) ) AS col0 FROM tab1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT - + 88 * + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-792

skipif mysql # not compatible
query I rowsort label-8762
SELECT - + 88 * + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-792

query I rowsort
SELECT ALL - + col0 * - ( + col0 ) AS col2 FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT ALL + COUNT( * ) * + 94 FROM tab1 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-8764
SELECT ALL + COUNT ( * ) * + 94 FROM tab1 AS cor0
----
282

query I rowsort
SELECT DISTINCT - 81 * 35 AS col0 FROM tab1 AS cor0
----
-2835

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT ALL - MAX( DISTINCT - ( - 49 ) ) FROM tab0 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-8766
SELECT ALL - MAX ( DISTINCT - ( - 49 ) ) FROM tab0 AS cor0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT + - COUNT( * ) * COUNT( * ) AS col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8767
SELECT + - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8768
SELECT + - CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8768
SELECT + - CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT ALL + COUNT( + - 98 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8769
SELECT ALL + COUNT ( + - 98 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL col1 + ( + col2 ) AS col1 FROM tab0 WHERE + ( + 21 ) * - + ( 85 ) IS NOT NULL
----
100
128
31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8771
SELECT ALL CAST( NULL AS DECIMAL ) * + + col0 / 81 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8771
SELECT ALL CAST ( NULL AS REAL ) * + + col0 / 81 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8772
SELECT ALL 93 DIV col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8772
SELECT ALL 93 / col0 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8773
SELECT 90 DIV - + COUNT( * ) FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-8773
SELECT 90 / - + COUNT ( * ) FROM tab2
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8774
SELECT CAST( NULL AS SIGNED ) + + + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8774
SELECT CAST ( NULL AS INTEGER ) + + + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * + 0 FROM tab0
----
0

query I rowsort
SELECT ALL - - col1 * - col1 AS col0 FROM tab0 AS cor0
----
-1
-441
-6561

query I rowsort
SELECT ALL - col0 * - + 14 + + - 52 FROM tab2 AS cor0
----
592
844
998

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT DISTINCT MIN( DISTINCT + - col2 ) FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8778
SELECT DISTINCT MIN ( DISTINCT + - col2 ) FROM tab1 cor0
----
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8779
SELECT DISTINCT - + CAST( + - col2 AS DECIMAL ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT - col1 + + 56 + + 89 IN ( + col0 * - + 85, col2, ( + 55 ) ) )
----

skipif mysql # not compatible
query I rowsort label-8779
SELECT DISTINCT - + CAST ( + - col2 AS REAL ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT - col1 + + 56 + + 89 IN ( + col0 * - + 85, col2, ( + 55 ) ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8781
SELECT DISTINCT + 78 + CAST( col2 AS SIGNED ) * + 41 AS col2 FROM tab2 AS cor0
----
1021
1718
2456

skipif mysql # not compatible
query I rowsort label-8781
SELECT DISTINCT + 78 + CAST ( col2 AS INTEGER ) * + 41 AS col2 FROM tab2 AS cor0
----
1021
1718
2456

query I rowsort
SELECT - 51 * + 7 FROM tab2
----
-357
-357
-357

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8783
SELECT DISTINCT - ( 96 ) + + col0 + + CAST( + col2 AS SIGNED ) * + 24 AS col0 FROM tab1 AS cor0
----
1405
1627
2259

skipif mysql # not compatible
query I rowsort label-8783
SELECT DISTINCT - ( 96 ) + + col0 + + CAST ( + col2 AS INTEGER ) * + 24 AS col0 FROM tab1 AS cor0
----
1405
1627
2259

query II rowsort
SELECT DISTINCT col2 * - col1, 52 AS col1 FROM tab0 AS cor0
----
-210
52
-3807
52
-99
52

onlyif mysql # DIV for integer division: 
query I rowsort label-8785
SELECT ALL + col0 DIV col0 * + - 30 AS col1 FROM tab0 AS cor0
----
-30
-30
-30

skipif mysql # not compatible
query I rowsort label-8785
SELECT ALL + col0 / col0 * + - 30 AS col1 FROM tab0 AS cor0
----
-30
-30
-30

query I rowsort
SELECT - + 83 AS col1 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
-83
-83
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8787
SELECT 5 + + 92 DIV + COUNT( * ) FROM tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-8787
SELECT 5 + + 92 / + COUNT ( * ) FROM tab2 AS cor0
----
35

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT + 38 NOT BETWEEN - - 18 + + 31 - + col2 * + - col2 AND - col0
----

query I rowsort
SELECT ALL - col0 + - + col0 * col1 AS col0 FROM tab0
----
-1230
-1914
-194

query I rowsort
SELECT DISTINCT col0 + + + 79 * - 60 AS col1 FROM tab2
----
-4665
-4676
-4694

query I rowsort
SELECT ALL col0 * col2 - + col0 * col1 - - + col1 FROM tab0
----
-429
-936
9507

query I rowsort
SELECT ALL - col1 * - col1 * + col0 + col2 - + - col1 AS col2 FROM tab1
----
10106
201134
2189

query II rowsort
SELECT DISTINCT 37 + col1 * 63, + col2 FROM tab0
----
100
99
1360
10
5140
47

query II rowsort
SELECT col0 * + col1 * - col2 AS col0, - col2 - - col1 FROM tab2
----
-197120
37
-291450
9
-53958
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 64 * + + 25 - - - col2 col1 FROM tab2
----
1542
1560
1577

onlyif mysql # aggregate syntax: 
query II rowsort label-8796
SELECT DISTINCT - + COUNT( * ) AS col1, COUNT( * ) FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-8796
SELECT DISTINCT - + COUNT ( * ) AS col1, COUNT ( * ) FROM tab1 AS cor0
----
-3
3

query I rowsort
SELECT - 15 AS col0 FROM tab1 cor0 WHERE NOT NULL > NULL
----

query II rowsort
SELECT 33 AS col2, - 44 FROM tab2
----
33
-44
33
-44
33
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT ALL COUNT( * ) AS col0 FROM tab0 WHERE NOT 94 NOT BETWEEN NULL AND col2
----
0

skipif mysql # not compatible
query I rowsort label-8799
SELECT ALL COUNT ( * ) AS col0 FROM tab0 WHERE NOT 94 NOT BETWEEN NULL AND col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT COUNT( ALL col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8800
SELECT COUNT ( ALL col1 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8801
SELECT DISTINCT 51 AS col0, ( - - 46 ) * CAST( NULL AS SIGNED ) + - ( col1 ) + col0 FROM tab2
----
51
NULL

skipif mysql # not compatible
query II rowsort label-8801
SELECT DISTINCT 51 AS col0, ( - - 46 ) * CAST ( NULL AS INTEGER ) + - ( col1 ) + col0 FROM tab2
----
51
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 - - col0 + 22 / - col1 NOT BETWEEN NULL AND - - col1
----

query II rowsort
SELECT 25 AS col1, 62 * + 16 * col0 + col1 AS col0 FROM tab0
----
25
14961
25
86325
25
96225

onlyif mysql # aggregate syntax: 
query I rowsort label-8804
SELECT DISTINCT MIN( - col0 ) FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8804
SELECT DISTINCT MIN ( - col0 ) FROM tab1 cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT + SUM( ALL - 62 ) FROM tab2 cor0
----
-186

skipif mysql # not compatible
query I rowsort label-8805
SELECT + SUM ( ALL - 62 ) FROM tab2 cor0
----
-186

query II rowsort
SELECT - col0 AS col2, + col0 AS col2 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query I rowsort
SELECT ALL - 41 * ( + col1 ) AS col2 FROM tab1
----
-1927
-205
-574

query I rowsort
SELECT col2 * col0 * - + col1 FROM tab1
----
-25075
-290836
-68544

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT DISTINCT - SUM( DISTINCT ( + col1 ) ) + 15 AS col2 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-8809
SELECT DISTINCT - SUM ( DISTINCT ( + col1 ) ) + 15 AS col2 FROM tab1
----
-51

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 41 NOT BETWEEN 90 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8811
SELECT ALL 76 + + SUM( 1 ) col0 FROM tab0
----
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8811
SELECT ALL 76 + + SUM ( 1 ) col0 FROM tab0
----
79

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8812
SELECT DISTINCT - CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) * + + col0 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8812
SELECT DISTINCT - CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) * + + col0 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - col1 * - 45 AS col0 FROM tab1
----
2115
225
630

query III rowsort
SELECT * FROM tab2 WHERE + - col1 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT + 83 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT ALL MAX( col0 ) + - + 99 + - 66 AS col0 FROM tab0
----
-68

skipif mysql # not compatible
query I rowsort label-8817
SELECT ALL MAX ( col0 ) + - + 99 + - 66 AS col0 FROM tab0
----
-68

query II rowsort
SELECT ALL - + col0 AS col0, + 89 FROM tab2 AS cor0
----
-46
89
-64
89
-75
89

query I rowsort
SELECT ALL 54 + 98 FROM tab2 cor0
----
152
152
152

query II rowsort
SELECT DISTINCT - - col1 AS col0, - col0 FROM tab1 AS cor0
----
14
-51
47
-91
5
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8821
SELECT + - 76 * COUNT( * ) - CAST( - 48 AS SIGNED ) FROM tab2 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-8821
SELECT + - 76 * COUNT ( * ) - CAST ( - 48 AS INTEGER ) FROM tab2 AS cor0
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-8822
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL = NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 11 col1 FROM tab0 AS cor0
----
-11
-11
-11

query II rowsort
SELECT DISTINCT col0 AS col1, ( + + col1 ) AS col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

query I rowsort
SELECT - 56 * - + col1 + - - col0 * - col1 FROM tab0 AS cor0 WHERE NULL > 51 * col0
----

query III rowsort
SELECT * FROM tab2 WHERE + col0 > col1
----
75
67
58

query I rowsort
SELECT col0 * + col0 AS col2 FROM tab2 WHERE - col0 < NULL AND NOT col2 IS NULL
----

query II rowsort
SELECT ALL col0 - + col1, - ( - col2 ) * + ( col1 ) * - 47 AS col1 FROM tab1
----
37
-63168
44
-150212
80
-13865

query I rowsort
SELECT - 34 * 67 FROM tab1
----
-2278
-2278
-2278

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT DISTINCT + ( - - COUNT( * ) ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8830
SELECT DISTINCT + ( - - COUNT ( * ) ) col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - - col0 * 41 FROM tab0 AS cor0
----
3567
3977
615

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 42 * + 41 col1 FROM tab0 AS cor0
----
1722
1722
1722

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col2 ) + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col2 - + - col0 IS NOT NULL
----

query I rowsort
SELECT 76 - 76 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8836
SELECT DISTINCT col1 + + col0 + col0, + 84 * - col2 * - - CAST( col2 AS SIGNED ) col0 FROM tab0 AS cor0
----
111
-185556
195
-823284
195
-8400

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8836
SELECT DISTINCT col1 + + col0 + col0, + 84 * - col2 * - - CAST ( col2 AS INTEGER ) col0 FROM tab0 AS cor0
----
111
-185556
195
-823284
195
-8400

query II rowsort
SELECT ALL - ( + col2 ), + 83 * + col0 AS col0 FROM tab2
----
-23
3818
-40
5312
-58
6225

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT DISTINCT - ( SUM( DISTINCT - 64 ) ) AS col2 FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-8838
SELECT DISTINCT - ( SUM ( DISTINCT - 64 ) ) AS col2 FROM tab1
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-8839
SELECT - 20, + MAX( 88 ) col0 FROM tab0 AS cor0
----
-20
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8839
SELECT - 20, + MAX ( 88 ) col0 FROM tab0 AS cor0
----
-20
88

query I rowsort
SELECT ALL + 43 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT + 18 + + + col2 * + col1 AS col0 FROM tab0 AS cor0
----
117
228
3825

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 98 * 89 * ( + 45 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 48 col0 FROM tab2 cor0
----
48
48
48

query I rowsort
SELECT ALL + 28 - col2 AS col1 FROM tab2 cor0
----
-12
-30
5

query I rowsort
SELECT ALL col1 - + + 43 AS col1 FROM tab2 AS cor0
----
24
34
8

query I rowsort
SELECT DISTINCT - 89 * + - 81 FROM tab1 AS cor0
----
7209

query II rowsort
SELECT + + 70 * - - col0 AS col1, + 27 + - col2 FROM tab0 AS cor0
----
1050
-20
6090
17
6790
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + col1 - + 28
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT ALL MAX( + col0 ) + - ( - - SUM( 58 ) ) FROM tab1
----
-83

skipif mysql # not compatible
query I rowsort label-8849
SELECT ALL MAX ( + col0 ) + - ( - - SUM ( 58 ) ) FROM tab1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT + 25 * COUNT( * ) col0 FROM tab1
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8850
SELECT + 25 * COUNT ( * ) col0 FROM tab1
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8851
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8851
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT + + col0 * - + col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1215
-1827
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 91, col0 * col0 col1 FROM tab0
----
91
225
91
7569
91
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT + MIN( ALL - - 70 ) FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-8854
SELECT + MIN ( ALL - - 70 ) FROM tab2
----
70

query I rowsort
SELECT + 10 * col1 FROM tab1
----
140
470
50

query I rowsort
SELECT ALL - 34 * - col1 * - col0 * + col1 FROM tab1
----
-339864
-6834646
-72250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8857
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - col2 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8857
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - col2 AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT + COUNT( col1 ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8858
SELECT + COUNT ( col1 ) col0 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 col2 FROM tab2
----
-18
-18
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-8860
SELECT + COUNT( * ), ( + - 96 ) AS col0 FROM tab0 AS cor0
----
3
-96

skipif mysql # not compatible
query II rowsort label-8860
SELECT + COUNT ( * ), ( + - 96 ) AS col0 FROM tab0 AS cor0
----
3
-96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * + 24 NOT BETWEEN + + 60 * 43 AND NULL
----

query I rowsort
SELECT DISTINCT - 45 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-45

query I rowsort
SELECT col2 * - - col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
100
2209
9801

query I rowsort
SELECT ALL - 6 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query I rowsort
SELECT DISTINCT + + 83 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT ALL - MIN( 83 ) FROM tab1 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-8866
SELECT ALL - MIN ( 83 ) FROM tab1 AS cor0
----
-83

query I rowsort
SELECT ALL + + 4 FROM tab0 cor0
----
4
4
4

query I rowsort
SELECT + + ( - col2 ) + + 77 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8869
SELECT DISTINCT COUNT( * ) * + 16 AS col0 FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-8869
SELECT DISTINCT COUNT ( * ) * + 16 AS col0 FROM tab2 AS cor0
----
48

query I rowsort
SELECT - col1 FROM tab0 WHERE + col0 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 + col0 + + col1 AS col1 FROM tab0
----
129
177
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 60 col1 FROM tab0 WHERE + 74 <> - - 0
----
60
60
60

query I rowsort
SELECT DISTINCT 82 + - 7 + + col1 FROM tab1
----
122
80
89

query I rowsort
SELECT ALL + col0 + + 22 AS col2 FROM tab1
----
107
113
73

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 68 BETWEEN + col0 AND NULL
----
75
67
58

query I rowsort
SELECT col1 + + 94 FROM tab2 AS cor0
----
145
161
171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8877
SELECT DISTINCT + + CAST( col2 AS SIGNED ) + col0 * 25 FROM tab0 AS cor0
----
2185
2524
422

skipif mysql # not compatible
query I rowsort label-8877
SELECT DISTINCT + + CAST ( col2 AS INTEGER ) + col0 * 25 FROM tab0 AS cor0
----
2185
2524
422

query I rowsort
SELECT DISTINCT - 12 * + col1 * - col0 + col1 AS col2 FROM tab0 AS cor0
----
1165
14661
21945

onlyif mysql # aggregate syntax: 
query I rowsort label-8879
SELECT - + MAX( ALL + + 56 ) col2 FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8879
SELECT - + MAX ( ALL + + 56 ) col2 FROM tab1 AS cor0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT - 91 - 57 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
-262

skipif mysql # not compatible
query I rowsort label-8880
SELECT - 91 - 57 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-262

onlyif mysql # aggregate syntax: 
query I rowsort label-8881
SELECT ( - 6 ) - + COUNT( * ) + MIN( DISTINCT + col1 ) * + COUNT( * ) col1 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8881
SELECT ( - 6 ) - + COUNT ( * ) + MIN ( DISTINCT + col1 ) * + COUNT ( * ) col1 FROM tab1 AS cor0
----
6

query II rowsort
SELECT - col1, + col1 + + + col0 AS col0 FROM tab1 AS cor0
----
-14
65
-47
138
-5
90

query I rowsort
SELECT - - col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8884
SELECT + + col1 DIV + 37 col1, col2 * col1 * + + col0 FROM tab1 AS cor0
----
0
25075
0
68544
1
290836

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8884
SELECT + + col1 / + 37 col1, col2 * col1 * + + col0 FROM tab1 AS cor0
----
0
25075
0
68544
1
290836

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT DISTINCT MAX( ALL + - 96 ) AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN col1 AND - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8885
SELECT DISTINCT MAX ( ALL + - 96 ) AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN col1 AND - col2
----
NULL

query I rowsort
SELECT + col2 * + col0 * + 23 FROM tab2 AS cor0
----
100050
24334
58880

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT DISTINCT - MAX( DISTINCT ( - - col2 ) ) AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-8887
SELECT DISTINCT - MAX ( DISTINCT ( - - col2 ) ) AS col1 FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT + MAX( 25 ) FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-8888
SELECT + MAX ( 25 ) FROM tab0 AS cor0
----
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col0 col0 FROM tab1 AS cor0
----
-425
-4277
-714

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 42 * 10 = 10
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8891
SELECT DISTINCT + - col1 DIV - - col1 AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8891
SELECT DISTINCT + - col1 / - - col1 AS col0 FROM tab2 AS cor0
----
-1

query II rowsort
SELECT col1 AS col1, col1 * + col0 AS col1 FROM tab0
----
1
97
21
1827
81
1215

query I rowsort
SELECT ALL + + col2 FROM tab2 AS cor0 WHERE NOT ( NOT - + ( - col1 ) < - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
90
90
90

onlyif mysql # DIV for integer division: 
query I rowsort label-8895
SELECT DISTINCT + - ( - 15 ) DIV + col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8895
SELECT DISTINCT + - ( - 15 ) / + col2 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 65 * 68 / - + 86 + + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8897
SELECT ALL + 58 + - MAX( ALL - 25 ) + COUNT( * ) FROM tab1
----
86

skipif mysql # not compatible
query I rowsort label-8897
SELECT ALL + 58 + - MAX ( ALL - 25 ) + COUNT ( * ) FROM tab1
----
86

query I rowsort
SELECT + col0 * col2 + - + col1 FROM tab1
----
4882
5010
6141

query III rowsort
SELECT * FROM tab0 WHERE NULL <> - 44
----

query I rowsort
SELECT ALL 33 + 67 FROM tab0
----
100
100
100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 25 * + col2 - 35 * + + ( + 15 ) col1, + col2 * col1 - - 96 FROM tab2
----
475
3176
50
1269
925
3982

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8902
SELECT DISTINCT CAST( - + SUM( DISTINCT 73 ) AS SIGNED ) - + + ( + + COUNT( * ) ) * + SUM( ALL - col1 ) col1 FROM tab0
----
236

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8902
SELECT DISTINCT CAST ( - + SUM ( DISTINCT 73 ) AS INTEGER ) - + + ( + + COUNT ( * ) ) * + SUM ( ALL - col1 ) col1 FROM tab0
----
236

query I rowsort
SELECT + col2 * - + 46 + col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) > - col2
----

query I rowsort
SELECT + 21 FROM tab1 cor0 WHERE NOT 65 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 17 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 72 * ( - + col0 ) - - - col0 FROM tab0 AS cor0 WHERE + col0 - + col2 IS NOT NULL
----
-1095
-6351
-7081

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 - - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col2 AS col2, col0 AS col1 FROM tab1 cor0
----
-59
85
-68
91
-96
51

query I rowsort
SELECT - - 15 * + col0 FROM tab0 AS cor0
----
1305
1455
225

onlyif mysql # DIV for integer division: 
query I rowsort label-8910
SELECT - 21 DIV - col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8910
SELECT - 21 / - col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT 7 * - + COUNT( * ) FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-8911
SELECT 7 * - + COUNT ( * ) FROM tab1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8912
SELECT - MIN( col1 ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-8912
SELECT - MIN ( col1 ) AS col2 FROM tab2
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8913
SELECT + CAST( - + COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8913
SELECT + CAST ( - + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
-3

query I rowsort
SELECT col1 * - 6 FROM tab2
----
-306
-402
-462

onlyif mysql # aggregate syntax: 
query I rowsort label-8915
SELECT DISTINCT 37 * - - MAX( DISTINCT + + ( col0 ) ) FROM tab2
----
2775

skipif mysql # not compatible
query I rowsort label-8915
SELECT DISTINCT 37 * - - MAX ( DISTINCT + + ( col0 ) ) FROM tab2
----
2775

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8916
SELECT CAST( NULL AS SIGNED ) * + + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8916
SELECT CAST ( NULL AS INTEGER ) * + + col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( - col1 ) NOT BETWEEN NULL AND + col1
----

query I rowsort
SELECT ALL col1 * + + col0 + - 59 FROM tab2 AS cor0
----
2287
4869
4966

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8919
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 36 * - + 55 NOT BETWEEN + - col0 AND + CAST( - - 46 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8919
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 36 * - + 55 NOT BETWEEN + - col0 AND + CAST ( - - 46 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8920
SELECT DISTINCT + + 25 * + col2 + - - col0 + 44 - + ( - - col2 ) DIV + 73 + - 86 FROM tab1 AS cor0
----
1518
1749
2408

skipif mysql # not compatible
query I rowsort label-8920
SELECT DISTINCT + + 25 * + col2 + - - col0 + 44 - + ( - - col2 ) / + 73 + - 86 FROM tab1 AS cor0
----
1518
1749
2408

query I rowsort
SELECT + - 26 * 79 AS col0 FROM tab1 AS cor0
----
-2054
-2054
-2054

query I rowsort
SELECT + + 37 AS col2 FROM tab0 AS cor0
----
37
37
37

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 67 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 85 col1 FROM tab1 AS cor0
----
85
85
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8925
SELECT - CAST( - 8 AS SIGNED ) FROM tab1 AS cor0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-8925
SELECT - CAST ( - 8 AS INTEGER ) FROM tab1 AS cor0
----
8
8
8

onlyif mysql # aggregate syntax: 
query II rowsort label-8926
SELECT - COUNT( * ) * COUNT( * ), ( - 86 ) AS col2 FROM tab2 AS cor0
----
-9
-86

skipif mysql # not compatible
query II rowsort label-8926
SELECT - COUNT ( * ) * COUNT ( * ), ( - 86 ) AS col2 FROM tab2 AS cor0
----
-9
-86

query I rowsort
SELECT ALL col1 + 41 AS col2 FROM tab0 AS cor0
----
122
42
62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8928
SELECT DISTINCT + col2 col1, ( - + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8928
SELECT DISTINCT + col2 col1, ( - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8929
SELECT CAST( - - 81 AS SIGNED ) AS col2 FROM tab0
----
81
81
81

skipif mysql # not compatible
query I rowsort label-8929
SELECT CAST ( - - 81 AS INTEGER ) AS col2 FROM tab0
----
81
81
81

query II rowsort
SELECT col2 AS col1, col2 AS col2 FROM tab2
----
23
23
40
40
58
58

query I rowsort
SELECT 36 + 83 AS col0 FROM tab1
----
119
119
119

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT DISTINCT COUNT( * ) - - ( + 76 ) + - - COUNT( + col2 ) + 27 col1 FROM tab0
----
109

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8932
SELECT DISTINCT COUNT ( * ) - - ( + 76 ) + - - COUNT ( + col2 ) + 27 col1 FROM tab0
----
109

query I rowsort
SELECT ALL col1 - 97 AS col1 FROM tab2
----
-20
-30
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-8934
SELECT DISTINCT - col0 DIV col0 * + - ( col2 ) + - 8 - col1 AS col0 FROM tab1 AS cor0
----
13
46
74

skipif mysql # not compatible
query I rowsort label-8934
SELECT DISTINCT - col0 / col0 * + - ( col2 ) + - 8 - col1 AS col0 FROM tab1 AS cor0
----
13
46
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8935
SELECT - + col2 * + 89 + + 41 - CAST( NULL AS SIGNED ) - - + 48 * 10 * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8935
SELECT - + col2 * + 89 + + 41 - CAST ( NULL AS INTEGER ) - - + 48 * 10 * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * col0 AS col0 FROM tab1 WHERE NULL >= col1
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8937
SELECT ALL - CAST( NULL AS DECIMAL ) * COUNT( * ) FROM tab1 WHERE NOT ( + col0 + col2 * col2 ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8937
SELECT ALL - CAST ( NULL AS REAL ) * COUNT ( * ) FROM tab1 WHERE NOT ( + col0 + col2 * col2 ) <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT + COUNT( - ( - 82 ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8938
SELECT + COUNT ( - ( - 82 ) ) AS col1 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 51 col1 FROM tab0
----
51

query I rowsort
SELECT ( + 30 ) + 74 * - 98 FROM tab1
----
-7222
-7222
-7222

query I rowsort
SELECT ALL - 58 + 83 AS col1 FROM tab2 WHERE + 23 BETWEEN col2 AND - ( 5 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8942
SELECT col1 DIV + 76 + + CAST( - ( - 14 ) AS SIGNED ) AS col2 FROM tab2
----
14
14
15

skipif mysql # not compatible
query I rowsort label-8942
SELECT col1 / + 76 + + CAST ( - ( - 14 ) AS INTEGER ) AS col2 FROM tab2
----
14
14
15

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 0 ) NOT BETWEEN NULL AND + col1 / col0
----

query III rowsort
SELECT * FROM tab0 WHERE ( + col2 ) NOT IN ( + 96 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 89 - 60 FROM tab1 WHERE ( NULL ) IN ( + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8946
SELECT DISTINCT + col2 DIV + ( 71 ) + col2 FROM tab0
----
10
100
47

skipif mysql # not compatible
query I rowsort label-8946
SELECT DISTINCT + col2 / + ( 71 ) + col2 FROM tab0
----
10
100
47

query I rowsort
SELECT - 56 + - 27 AS col0 FROM tab2
----
-83
-83
-83

query I rowsort
SELECT ALL - 5 * 92 AS col0 FROM tab2 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8949
SELECT - 36 + + COUNT( * ) FROM tab2 WHERE NOT CAST( + col2 AS SIGNED ) > NULL
----
-36

skipif mysql # not compatible
query I rowsort label-8949
SELECT - 36 + + COUNT ( * ) FROM tab2 WHERE NOT CAST ( + col2 AS INTEGER ) > NULL
----
-36

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 WHERE - col1 IS NULL
----

query I rowsort
SELECT + 45 + 29 AS col2 FROM tab1
----
74
74
74

query I rowsort
SELECT DISTINCT col2 + - col2 * 10 AS col0 FROM tab1
----
-531
-612
-864

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT DISTINCT 35 + + COUNT( * ) AS col0 FROM tab1
----
38

skipif mysql # not compatible
query I rowsort label-8953
SELECT DISTINCT 35 + + COUNT ( * ) AS col0 FROM tab1
----
38

query I rowsort
SELECT - 46 + 98 * 29 FROM tab2
----
2796
2796
2796

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 * col1 NOT IN ( col1 )
----

query I rowsort
SELECT - col2 AS col0 FROM tab1 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT + 68 / - col2 FROM tab2 WHERE ( NULL ) IN ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8958
SELECT CAST( - 48 AS SIGNED ) DIV col2 + - col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-8958
SELECT CAST ( - 48 AS INTEGER ) / col2 + - col0 FROM tab1
----
-51
-85
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8959
SELECT ALL col0 * - 48 AS col1 FROM tab0 WHERE NOT ( CAST( NULL AS DECIMAL ) ) = ( + 82 / + col1 )
----

skipif mysql # not compatible
query I rowsort label-8959
SELECT ALL col0 * - 48 AS col1 FROM tab0 WHERE NOT ( CAST ( NULL AS REAL ) ) = ( + 82 / + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT + COUNT( * ) AS col1 FROM tab2 WHERE 83 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8960
SELECT + COUNT ( * ) AS col1 FROM tab2 WHERE 83 IS NOT NULL
----
3

query I rowsort
SELECT 91 AS col2 FROM tab1 WHERE NOT - col1 IS NULL
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT DISTINCT MIN( DISTINCT col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-8962
SELECT DISTINCT MIN ( DISTINCT col0 ) FROM tab2
----
46

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( - col1 + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - - col2 col2 FROM tab2
----
104
133
69

onlyif mysql # DIV for integer division: 
query I rowsort label-8965
SELECT + ( - col2 ) DIV col2 - - col0 FROM tab2
----
45
63
74

skipif mysql # not compatible
query I rowsort label-8965
SELECT + ( - col2 ) / col2 - - col0 FROM tab2
----
45
63
74

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( + 22 * - col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col0 )
----

query I rowsort
SELECT DISTINCT + 58 * 13 AS col1 FROM tab2 AS cor0 WHERE ( - 42 ) NOT BETWEEN NULL AND ( col0 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 + col0 * 8 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8971
SELECT + col2 + col0 FROM tab2 WHERE col1 + CAST( NULL AS SIGNED ) < ( - col0 )
----

skipif mysql # not compatible
query I rowsort label-8971
SELECT + col2 + col0 FROM tab2 WHERE col1 + CAST ( NULL AS INTEGER ) < ( - col0 )
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 WHERE NOT NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8973
SELECT AVG ( DISTINCT + 17 ) AS col2 FROM tab1 WHERE ( NULL ) >= col1 * CAST( NULL AS SIGNED ) + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8973
SELECT AVG ( DISTINCT + 17 ) AS col2 FROM tab1 WHERE ( NULL ) >= col1 * CAST ( NULL AS INTEGER ) + col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8974
SELECT * FROM tab1 WHERE ( - 59 * CAST( 40 AS DECIMAL ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8974
SELECT * FROM tab1 WHERE ( - 59 * CAST ( 40 AS REAL ) ) IS NULL
----

query I rowsort
SELECT ALL col1 + 63 * + 69 AS col2 FROM tab1
----
4352
4361
4394

query I rowsort
SELECT DISTINCT + AVG ( ALL - col0 ) FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----
NULL

query I rowsort
SELECT + + ( col0 ) * col2 + col2 FROM tab1 AS cor0
----
4992
5074
6256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8978
SELECT DISTINCT + + CAST( COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8978
SELECT DISTINCT + + CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL 52 * - col2 + col0 * - col2 AS col2 FROM tab2 AS cor0
----
-2254
-4640
-7366

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col2 ) = ( + col2 * col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8981
SELECT ALL CAST( NULL AS SIGNED ) * col0 + col2 * - ( + col0 ) col2 FROM tab2 AS cor0 WHERE NULL <= - col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8981
SELECT ALL CAST ( NULL AS INTEGER ) * col0 + col2 * - ( + col0 ) col2 FROM tab2 AS cor0 WHERE NULL <= - col0
----

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE col0 * 83 > col2
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 NOT IN ( 92 )
----

query I rowsort
SELECT DISTINCT + 7 * col2 AS col1 FROM tab2 AS cor0 WHERE col2 < col0 * col2
----
161
280
406

query I rowsort
SELECT ALL + 84 + - 37 FROM tab1
----
47
47
47

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND ( col0 - col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( + 59 / + col1 + 65 * + col2 ) BETWEEN + ( col2 ) * + col0 - col0 AND NULL
----

query I rowsort
SELECT DISTINCT col1 + col0 + 25 FROM tab1
----
115
163
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT + 6 + + COUNT( * ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-8989
SELECT + 6 + + COUNT ( * ) AS col1 FROM tab0
----
9

query I rowsort
SELECT ALL 73 * + col2 FROM tab1 WHERE 88 + + ( + col0 + - col1 ) <= col1
----

query III rowsort
SELECT * FROM tab0 WHERE 83 > ( - col0 + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 59 * + - col2 * 39 + - col0 AS col1 FROM tab0
----
-108162
-227896
-23097

onlyif mysql # aggregate syntax: 
query I rowsort label-8993
SELECT COUNT( * ) AS col1 FROM tab2 WHERE ( col0 + + col2 ) BETWEEN + col1 AND 87 * - col2
----
0

skipif mysql # not compatible
query I rowsort label-8993
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE ( col0 + + col2 ) BETWEEN + col1 AND 87 * - col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8994
SELECT col0 DIV col2 - - col1 FROM tab1 WHERE col1 IS NOT NULL
----
14
48
6

skipif mysql # not compatible
query I rowsort label-8994
SELECT col0 / col2 - - col1 FROM tab1 WHERE col1 IS NOT NULL
----
14
48
6

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE col1 * + col0 NOT IN ( 22 )
----
-46
-64
-75

query I rowsort
SELECT DISTINCT 0 - col0 + + ( 89 ) FROM tab2
----
14
25
43

query I rowsort
SELECT ALL 39 + 95 FROM tab2
----
134
134
134

query I rowsort
SELECT - 12 FROM tab1 WHERE NULL IN ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - + col1 col2 FROM tab1
----
-138
-65
-90

query I rowsort
SELECT DISTINCT - col2 - - + 49 AS col2 FROM tab0 AS cor0
----
-50
2
39

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col2 ) BETWEEN + ( - ( + 42 ) ) AND - ( 68 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col1 * 27 AS col2 FROM tab2 AS cor0
----
-1377
-1809
-2079

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9003
SELECT + COUNT( ALL + 55 ) * - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9003
SELECT + COUNT ( ALL + 55 ) * - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9004
SELECT - - COUNT( * ) + 69 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
78

skipif mysql # not compatible
query I rowsort label-9004
SELECT - - COUNT ( * ) + 69 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT COUNT( * ) - + 6 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
3

skipif mysql # not compatible
query I rowsort label-9005
SELECT COUNT ( * ) - + 6 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
3

query II rowsort
SELECT ALL + col0 AS col0, - col1 * + 37 * + col0 FROM tab1
----
51
-26418
85
-15725
91
-158249

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) IN ( col2 * col2 )
----

query I rowsort
SELECT DISTINCT + 73 AS col1 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT col2 <> NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 56 + - + col0 * + 9 >= - 29
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 41 col2 FROM tab0 AS cor0 WHERE col0 IS NULL
----

query II rowsort
SELECT DISTINCT - col1 AS col1, col1 AS col0 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 col1 FROM tab1 AS cor0 WHERE NOT NULL < ( NULL )
----

query I rowsort
SELECT - 24 + 39 FROM tab0 AS cor0 WHERE NOT - ( col2 ) BETWEEN ( col0 ) AND NULL
----
15
15
15

query I rowsort
SELECT ( col0 ) + col1 AS col2 FROM tab0 AS cor0 WHERE NOT col0 < + + 5
----
108
96
98

query I rowsort
SELECT ALL + col1 * + - col0 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # DIV for integer division: 
query I rowsort label-9017
SELECT ALL 86 DIV + col0 + - col0 + - col2 FROM tab0 AS cor0
----
-196
-57
-97

skipif mysql # not compatible
query I rowsort label-9017
SELECT ALL 86 / + col0 + - col0 + - col2 FROM tab0 AS cor0
----
-196
-57
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9018
SELECT DISTINCT - 22 * + ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9018
SELECT DISTINCT - 22 * + ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 7 * - + col0 FROM tab2
----
-322
-448
-525

onlyif mysql # DIV for integer division: 
query II rowsort label-9020
SELECT ALL col0 DIV 38, - ( + 88 ) col0 FROM tab0
----
0
-88
2
-88
2
-88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9020
SELECT ALL col0 / 38, - ( + 88 ) col0 FROM tab0
----
0
-88
2
-88
2
-88

query II rowsort
SELECT + 38 * + col2, + col1 * + + col0 AS col0 FROM tab2
----
1520
4928
2204
5025
874
2346

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT 94 * + - ( + + SUM( - + col1 ) ) AS col0 FROM tab1
----
6204

skipif mysql # not compatible
query I rowsort label-9022
SELECT 94 * + - ( + + SUM ( - + col1 ) ) AS col0 FROM tab1
----
6204

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + 39 ) NOT BETWEEN 15 AND ( NULL )
----

query I rowsort
SELECT DISTINCT - 43 * col2 FROM tab1 WHERE NOT NULL BETWEEN NULL AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9025
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( + + col1 AS SIGNED ) * - 88 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9025
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( + + col1 AS INTEGER ) * - 88 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( + + 89 ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT + + MAX( - 64 ) col0 FROM tab2 cor0
----
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9027
SELECT + + MAX ( - 64 ) col0 FROM tab2 cor0
----
-64

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 * + col1 / + col0 ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT ALL - 62 + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-9029
SELECT ALL - 62 + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9030
SELECT + COUNT( * ) + 59 FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-9030
SELECT + COUNT ( * ) + 59 FROM tab2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT + ( - SUM( + - col2 ) ) * MIN( ALL + 63 ) + - ( 81 ) * - 3 AS col0 FROM tab0 AS cor0
----
10071

skipif mysql # not compatible
query I rowsort label-9031
SELECT + ( - SUM ( + - col2 ) ) * MIN ( ALL + 63 ) + - ( 81 ) * - 3 AS col0 FROM tab0 AS cor0
----
10071

onlyif mysql # DIV for integer division: 
query I rowsort label-9032
SELECT + col1 DIV 33 col0 FROM tab2 AS cor0
----
1
2
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9032
SELECT + col1 / 33 col0 FROM tab2 AS cor0
----
1
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9033
SELECT ALL + 14 + + MAX( DISTINCT 88 ) + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9033
SELECT ALL + 14 + + MAX ( DISTINCT 88 ) + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT - MIN( ALL + 11 ) FROM tab2 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-9034
SELECT - MIN ( ALL + 11 ) FROM tab2 AS cor0
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9035
SELECT ALL ( + + 65 ) * + CAST( NULL AS SIGNED ) AS col2, col0 AS col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-9035
SELECT ALL ( + + 65 ) * + CAST ( NULL AS INTEGER ) AS col2, col0 AS col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT ALL + - MIN( DISTINCT 61 ) FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-9036
SELECT ALL + - MIN ( DISTINCT 61 ) FROM tab2 AS cor0
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9037
SELECT * FROM tab2 AS cor0 WHERE NULL = - CAST( - col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9037
SELECT * FROM tab2 AS cor0 WHERE NULL = - CAST ( - col1 AS INTEGER )
----

query I rowsort
SELECT ALL - ( col0 ) * + ( + - col2 ) AS col0 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT + col0 * + + col1 AS col2 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9040
SELECT COUNT( * ) * 51 AS col2 FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-9040
SELECT COUNT ( * ) * 51 AS col2 FROM tab2 AS cor0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT MAX( ALL - col2 ) AS col2 FROM tab0 AS cor0 WHERE NULL = ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9041
SELECT MAX ( ALL - col2 ) AS col2 FROM tab0 AS cor0 WHERE NULL = ( NULL )
----
NULL

query I rowsort
SELECT - col0 * + col2 + col2 FROM tab1 WHERE - col0 - - + 56 BETWEEN ( NULL ) AND ( - 70 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col1 / col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE ( - 25 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE + 41 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT MIN( 72 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9046
SELECT MIN ( 72 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT col1 + 76 + 91 + + col2 AS col1 FROM tab0
----
198
267
295

query I rowsort
SELECT ALL + ( + col2 ) - - - col2 AS col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9049
SELECT + AVG ( ALL - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9049
SELECT + AVG ( ALL - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT ALL - 57 * COUNT( * ) + + COUNT( * ) + + + COUNT( * ) FROM tab2 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-9050
SELECT ALL - 57 * COUNT ( * ) + + COUNT ( * ) + + + COUNT ( * ) FROM tab2 AS cor0
----
-165

query I rowsort
SELECT DISTINCT 56 * + 15 FROM tab0 AS cor0
----
840

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT * FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query I rowsort label-9054
SELECT COUNT( ALL - + 82 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9054
SELECT COUNT ( ALL - + 82 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT - col1 + + + col0 * - - ( col0 ) NOT BETWEEN NULL AND - col1 / - col2 * + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9056
SELECT DISTINCT 48 DIV col2 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-9056
SELECT DISTINCT 48 / col2 FROM tab2 AS cor0
----
0
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab2 AS cor0 WHERE NOT col0 BETWEEN ( NULL ) AND + col2 + - col1 * - 35
----

query II rowsort
SELECT + col2 AS col0, 99 FROM tab0
----
10
99
47
99
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT DISTINCT + + MIN( 98 ) FROM tab0 WHERE NOT NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9059
SELECT DISTINCT + + MIN ( 98 ) FROM tab0 WHERE NOT NULL = NULL
----
NULL

query I rowsort
SELECT + col1 + + col1 FROM tab2 WHERE NOT + + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9061
SELECT ALL CAST( NULL AS SIGNED ) * - ( - COUNT( * ) ) FROM tab2 WHERE NOT ( - col0 ) NOT IN ( + 93 * + 32 * - 93 + - 12 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9061
SELECT ALL CAST ( NULL AS INTEGER ) * - ( - COUNT ( * ) ) FROM tab2 WHERE NOT ( - col0 ) NOT IN ( + 93 * + 32 * - 93 + - 12 )
----
NULL

query I rowsort
SELECT DISTINCT ( col2 ) * - col2 + col2 FROM tab0
----
-2162
-90
-9702

query II rowsort
SELECT DISTINCT + 73, col2 AS col0 FROM tab2
----
73
23
73
40
73
58

query I rowsort
SELECT + col1 + + - col0 - col2 FROM tab0
----
-195
-76
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT DISTINCT MIN( col0 ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-9065
SELECT DISTINCT MIN ( col0 ) AS col1 FROM tab2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9066
SELECT CAST( col2 AS SIGNED ) + - col1 AS col2 FROM tab0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-9066
SELECT CAST ( col2 AS INTEGER ) + - col1 AS col2 FROM tab0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT COUNT( * ) + - + COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9067
SELECT COUNT ( * ) + - + COUNT ( * ) FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + 38 * + 24 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT - + COUNT( * ) * 79 FROM tab1 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-9069
SELECT - + COUNT ( * ) * 79 FROM tab1 AS cor0
----
-237

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9070
SELECT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) > ( - col1 )
----

skipif mysql # not compatible
query III rowsort label-9070
SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) > ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9071
SELECT ALL + SUM( DISTINCT + col0 ) FROM tab0 AS cor0 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9071
SELECT ALL + SUM ( DISTINCT + col0 ) FROM tab0 AS cor0 WHERE col2 IS NULL
----
NULL

query I rowsort
SELECT + 11 FROM tab0 AS cor0 WHERE col2 + - col2 IS NOT NULL
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9073
SELECT DISTINCT SUM( ALL - + col2 ) AS col2 FROM tab1 WHERE + col2 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9073
SELECT DISTINCT SUM ( ALL - + col2 ) AS col2 FROM tab1 WHERE + col2 >= NULL
----
NULL

query I rowsort
SELECT 3 - + + 6 + - col1 + + col1 * - col0 AS col0 FROM tab0
----
-101
-1299
-1851

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT DISTINCT - MIN( - + col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9075
SELECT DISTINCT - MIN ( - + col0 ) FROM tab1 AS cor0
----
91

query I rowsort
SELECT ALL - + col1 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 + + col0 NOT BETWEEN NULL AND - 22 / + - ( 56 )
----

query I rowsort
SELECT DISTINCT - col1 * - col2 * - col0 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
-25075
-290836
-68544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col0 * + col2 col1 FROM tab2 AS cor0 WHERE NOT ( 27 * + col0 / 28 ) NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT col2 * + col1, col2 FROM tab0 cor0
----
210
10
3807
47
99
99

query II rowsort
SELECT 44 AS col2, + col0 AS col0 FROM tab1
----
44
51
44
85
44
91

query I rowsort
SELECT - + col1 * - - col2 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col2 + + + 18 + + - col0 AS col0 FROM tab2
----
-5
-6
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9083
SELECT ( - + ( + CAST( + col0 AS SIGNED ) ) ) AS col2 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-9083
SELECT ( - + ( + CAST ( + col0 AS INTEGER ) ) ) AS col2 FROM tab0
----
-15
-87
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9084
SELECT - COUNT( + - col2 ) / - CAST( NULL AS SIGNED ) * - ( - + COUNT( * ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9084
SELECT - COUNT ( + - col2 ) / - CAST ( NULL AS INTEGER ) * - ( - + COUNT ( * ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-9085
SELECT ALL 80, - 13 * - 78 col1, - COUNT( * ) AS col0 FROM tab1
----
80
1014
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-9085
SELECT ALL 80, - 13 * - 78 col1, - COUNT ( * ) AS col0 FROM tab1
----
80
1014
-3

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE - ( col0 ) IS NOT NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT MAX( - 54 ) AS col1 FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-9087
SELECT MAX ( - 54 ) AS col1 FROM tab2
----
-54

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND + + col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 10 + + 52 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9090
SELECT + COUNT( * ) DIV + 18 + - + COUNT( * ) * 90 AS col1 FROM tab0 cor0 WHERE NOT + ( ( col2 ) ) + - col0 IS NULL
----
-270

skipif mysql # not compatible
query I rowsort label-9090
SELECT + COUNT ( * ) / + 18 + - + COUNT ( * ) * 90 AS col1 FROM tab0 cor0 WHERE NOT + ( ( col2 ) ) + - col0 IS NULL
----
-270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9091
SELECT + CAST( NULL AS SIGNED ) * 72 + + - col1 / col0 / - 84 * + - 1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9091
SELECT + CAST ( NULL AS INTEGER ) * 72 + + - col1 / col0 / - 84 * + - 1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 + + - col2 / - col0 IS NOT NULL
----

query II rowsort
SELECT + col1 AS col1, - col1 AS col0 FROM tab2 cor0
----
51
-51
67
-67
77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT COUNT( - 0 ) * - COUNT( col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-9094
SELECT COUNT ( - 0 ) * - COUNT ( col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + col0 )
----
0

query I rowsort
SELECT DISTINCT 46 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9096
SELECT + 57 DIV + COUNT( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( col0 ) IN ( col0 + + 57 )
----
19

skipif mysql # not compatible
query I rowsort label-9096
SELECT + 57 / + COUNT ( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( col0 ) IN ( col0 + + 57 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9097
SELECT ALL COUNT( * ) * - 24 * - + 55 FROM tab2 AS cor0
----
3960

skipif mysql # not compatible
query I rowsort label-9097
SELECT ALL COUNT ( * ) * - 24 * - + 55 FROM tab2 AS cor0
----
3960

query II rowsort
SELECT - - 79 AS col0, - col2 * col2 FROM tab1 AS cor0
----
79
-3481
79
-4624
79
-9216

onlyif mysql # DIV for integer division: 
query I rowsort label-9099
SELECT DISTINCT col1 DIV + 11 FROM tab1 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-9099
SELECT DISTINCT col1 / + 11 FROM tab1 AS cor0
----
0
1
4

query I rowsort
SELECT DISTINCT + 67 + - 69 AS col0 FROM tab0 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT - MIN( DISTINCT + + 24 ) AS col0 FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-9101
SELECT - MIN ( DISTINCT + + 24 ) AS col0 FROM tab0 AS cor0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9102
SELECT + CAST( NULL AS SIGNED ) * + + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9102
SELECT + CAST ( NULL AS INTEGER ) * + + col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * - col1 * col1 + + col1 FROM tab2
----
-119595
-336608
-379379

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9104
SELECT ALL 52 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9104
SELECT ALL 52 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9105
SELECT - MIN( - CAST( NULL AS SIGNED ) ) * + + COUNT( * ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9105
SELECT - MIN ( - CAST ( NULL AS INTEGER ) ) * + + COUNT ( * ) col2 FROM tab1
----
NULL

query I rowsort
SELECT - 38 * - col1 * - col2 FROM tab0
----
-144666
-3762
-7980

onlyif mysql # aggregate syntax: 
query I rowsort label-9107
SELECT - COUNT( ALL 83 ) * 42 col2 FROM tab0 AS cor0
----
-126

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9107
SELECT - COUNT ( ALL 83 ) * 42 col2 FROM tab0 AS cor0
----
-126

onlyif mysql # DIV for integer division: 
query I rowsort label-9108
SELECT ALL + 96 DIV - 42 FROM tab1 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-9108
SELECT ALL + 96 / - 42 FROM tab1 AS cor0
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT DISTINCT + COUNT( + ( col2 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9109
SELECT DISTINCT + COUNT ( + ( col2 ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + col2 AS col0 FROM tab2 AS cor0 WHERE NOT + 66 IS NULL
----
23
40
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 NOT IN ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 FROM tab0 WHERE + col1 >= - col1 + - 19
----
15
87
97

query I rowsort
SELECT + col0 * + + 89 * + ( + col2 ) AS col1 FROM tab0
----
62745
77430
854667

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT col1 + - 30 < NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT ALL + 32 - + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-9115
SELECT ALL + 32 - + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9116
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) + + - 84 * - + 69 + + - col0 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-9116
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + + - 84 * - + 69 + + - col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - - col2 - - col2 FROM tab2 cor0
----
116
46
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 - col1 + + col2 col1 FROM tab1 AS cor0
----
-31
-70
31

query I rowsort
SELECT - 36 - 91 AS col2 FROM tab0 AS cor0
----
-127
-127
-127

onlyif mysql # DIV for integer division: 
query II rowsort label-9120
SELECT + col1 DIV ( - - ( - col1 ) ) DIV + col1 - + col2, - col2 * + 76 col1 FROM tab0 AS cor0
----
-10
-760
-100
-7524
-47
-3572

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9120
SELECT + col1 / ( - - ( - col1 ) ) / + col1 - + col2, - col2 * + 76 col1 FROM tab0 AS cor0
----
-10
-760
-100
-7524
-47
-3572

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 83 + + 87 + 20 - - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - ( - + col0 ), col0 FROM tab2
----
46
46
64
64
75
75

query I rowsort
SELECT + ( - + 54 ) FROM tab0
----
-54
-54
-54

query I rowsort
SELECT ( ( + + 56 ) ) FROM tab0
----
56
56
56

query III rowsort
SELECT * FROM tab0 WHERE NOT + 31 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9126
SELECT 49 DIV - 98 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9126
SELECT 49 / - 98 AS col0 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - + 44 AND - 69 + + 34
----

query I rowsort
SELECT DISTINCT - ( + 65 ) FROM tab2
----
-65

query I rowsort
SELECT DISTINCT + col0 * + 70 AS col1 FROM tab0 AS cor0
----
1050
6090
6790

onlyif mysql # aggregate syntax: 
query II rowsort label-9130
SELECT ALL - ( - 66 ) AS col2, + COUNT( * ) FROM tab2 AS cor0
----
66
3

skipif mysql # not compatible
query II rowsort label-9130
SELECT ALL - ( - 66 ) AS col2, + COUNT ( * ) FROM tab2 AS cor0
----
66
3

query I rowsort
SELECT - 3 * - col0 FROM tab1 WHERE NOT NULL <= 82
----

query I rowsort
SELECT - ( 74 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5a567947d14593676e3825756f8e6130

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL <= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 NOT BETWEEN NULL AND NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9135
SELECT - + 63 DIV + col1 col2 FROM tab1 AS cor0
----
-1
-12
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9135
SELECT - + 63 / + col1 col2 FROM tab1 AS cor0
----
-1
-12
-4

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 + + col2 * + col0 * - + col1 = NULL
----

query I rowsort
SELECT 12 * - - 61 FROM tab0 AS cor0
----
732
732
732

query I rowsort
SELECT ( col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9139
SELECT + - col2 DIV - CAST( - 78 AS SIGNED ) * + col2 + ( col0 ) + + + 82 + - + 10 FROM tab2 AS cor0
----
118
136
147

skipif mysql # not compatible
query I rowsort label-9139
SELECT + - col2 / - CAST ( - 78 AS INTEGER ) * + col2 + ( col0 ) + + + 82 + - + 10 FROM tab2 AS cor0
----
118
136
147

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9140
SELECT * FROM tab2 cor0 WHERE NOT - col1 + - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9140
SELECT * FROM tab2 cor0 WHERE NOT - col1 + - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 89 * + 25 AS col1 FROM tab0 AS cor0
----
-2225
-2225
-2225

query I rowsort
SELECT DISTINCT - - 55 + + + 71 AS col1 FROM tab1 AS cor0
----
126

query I rowsort
SELECT - 11 FROM tab1 AS cor0 WHERE NULL <> + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9144
SELECT + COUNT( * ) * + + SUM( DISTINCT - col1 ) + + 79, + COUNT( * ) AS col2 FROM tab0
----
-230
3

skipif mysql # not compatible
query II rowsort label-9144
SELECT + COUNT ( * ) * + + SUM ( DISTINCT - col1 ) + + 79, + COUNT ( * ) AS col2 FROM tab0
----
-230
3

query I rowsort
SELECT DISTINCT 60 + - - col0 FROM tab1
----
111
145
151

query I rowsort
SELECT DISTINCT col0 + - - col1 - - 0 + col2 - + 28 AS col1 FROM tab0
----
115
169
90

query I rowsort
SELECT ALL ( - 58 ) + + - ( + + col1 ) FROM tab0
----
-139
-59
-79

query I rowsort
SELECT ALL 48 * - col2 AS col2 FROM tab2
----
-1104
-1920
-2784

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9149
SELECT ( 16 ) * - col0 + + col2 + - 41 * + CAST( col2 AS SIGNED ) col2, + col1 AS col2 FROM tab2
----
-1656
51
-2624
77
-3520
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9149
SELECT ( 16 ) * - col0 + + col2 + - 41 * + CAST ( col2 AS INTEGER ) col2, + col1 AS col2 FROM tab2
----
-1656
51
-2624
77
-3520
67

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN - + col1 AND col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9151
SELECT DISTINCT - MIN( CAST( + + col1 AS SIGNED ) ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9151
SELECT DISTINCT - MIN ( CAST ( + + col1 AS INTEGER ) ) FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9152
SELECT COUNT( * ) * 48 FROM tab2
----
144

skipif mysql # not compatible
query I rowsort label-9152
SELECT COUNT ( * ) * 48 FROM tab2
----
144

query I rowsort
SELECT DISTINCT + 54 * ( - - col0 ) + - + 10 + 15 FROM tab1
----
2759
4595
4919

onlyif mysql # aggregate syntax: 
query II rowsort label-9154
SELECT ALL - - MAX( col1 ), 33 AS col0 FROM tab0 cor0
----
81
33

skipif mysql # not compatible
query II rowsort label-9154
SELECT ALL - - MAX ( col1 ), 33 AS col0 FROM tab0 cor0
----
81
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9155
SELECT DISTINCT col1 * + CAST( NULL AS SIGNED ) + ( + + col1 ) * 71 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9155
SELECT DISTINCT col1 * + CAST ( NULL AS INTEGER ) + ( + + col1 ) * 71 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT ( - col1 ) - col0 * col0 + + col0 FROM tab1
----
-2564
-7145
-8237

query III rowsort
SELECT * FROM tab1 WHERE ( - 66 ) * - 84 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 7 AS col0 FROM tab2 cor0
----
-7
-7
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9159
SELECT DISTINCT - 45 - - + COUNT( * ) - - + 83 FROM tab0 cor0
----
41

skipif mysql # not compatible
query I rowsort label-9159
SELECT DISTINCT - 45 - - + COUNT ( * ) - - + 83 FROM tab0 cor0
----
41

query II rowsort
SELECT + col2 * + col2 AS col0, - ( - - 12 ) FROM tab2 AS cor0
----
1600
-12
3364
-12
529
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col0 + - 27 col2 FROM tab2 AS cor0
----
2089
4069
5598

query III rowsort
SELECT * FROM tab1 WHERE NOT - 12 NOT BETWEEN col2 AND NULL
----

query II rowsort
SELECT col0 AS col2, + col0 - - + col1 AS col1 FROM tab2
----
46
97
64
141
75
142

onlyif mysql # aggregate syntax: 
query I rowsort label-9164
SELECT + MAX( 31 ) * + 18 FROM tab0
----
558

skipif mysql # not compatible
query I rowsort label-9164
SELECT + MAX ( 31 ) * + 18 FROM tab0
----
558

onlyif mysql # DIV for integer division: 
query I rowsort label-9165
SELECT 87 DIV + - col1 FROM tab1
----
-1
-17
-6

skipif mysql # not compatible
query I rowsort label-9165
SELECT 87 / + - col1 FROM tab1
----
-1
-17
-6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9166
SELECT ALL * FROM tab0 WHERE NOT - - CAST( NULL AS SIGNED ) * col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9166
SELECT ALL * FROM tab0 WHERE NOT - - CAST ( NULL AS INTEGER ) * col0 IS NULL
----

query I rowsort
SELECT - ( + 81 ) + + - 3 FROM tab1
----
-84
-84
-84

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9168
SELECT DISTINCT + + 22 + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9168
SELECT DISTINCT + + 22 + CAST ( NULL AS REAL ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9169
SELECT - col0 DIV - 99 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9169
SELECT - col0 / - 99 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + ( - ( col2 ) ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE - + col0 > NULL
----

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9173
SELECT DISTINCT CAST( NULL AS SIGNED ) + - ( - col1 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9173
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - ( - col1 ) FROM tab1
----
NULL

query I rowsort
SELECT ALL 44 + - 96 FROM tab0
----
-52
-52
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT ALL 72 + - - COUNT( * ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-9175
SELECT ALL 72 + - - COUNT ( * ) FROM tab2
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9176
SELECT CAST( NULL AS SIGNED ) + + + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9176
SELECT CAST ( NULL AS INTEGER ) + + + COUNT ( * ) FROM tab0
----
NULL

query II rowsort
SELECT ALL col0 * + col2 * + 1 * + col2 - + + 14 AS col0, - col0 AS col0 FROM tab0 AS cor0
----
33121
-15
8686
-87
950683
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9178
SELECT + CAST( - COUNT( col1 ) AS SIGNED ) + - 21 + + MIN( - col1 ) FROM tab2 AS cor0
----
-101

skipif mysql # not compatible
query I rowsort label-9178
SELECT + CAST ( - COUNT ( col1 ) AS INTEGER ) + - 21 + + MIN ( - col1 ) FROM tab2 AS cor0
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT ALL + - SUM( + - 52 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
468

skipif mysql # not compatible
query I rowsort label-9179
SELECT ALL + - SUM ( + - 52 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
468

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT DISTINCT COUNT( * ) FROM tab2, tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-9180
SELECT DISTINCT COUNT ( * ) FROM tab2, tab2 cor0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9181
SELECT - MIN( - col0 ) * 61 DIV + 96 + + 18 AS col1 FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-9181
SELECT - MIN ( - col0 ) * 61 / + 96 + + 18 AS col1 FROM tab0 AS cor0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT ALL - + COUNT( * ) * + + 64 FROM tab1 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-9182
SELECT ALL - + COUNT ( * ) * + + 64 FROM tab1 AS cor0
----
-192

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9184
SELECT + + MAX( ALL + - 16 ) FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-9184
SELECT + + MAX ( ALL + - 16 ) FROM tab0 AS cor0
----
-16

query I rowsort
SELECT ALL + + 3 AS col0 FROM tab1 AS cor0
----
3
3
3

query I rowsort
SELECT ALL - col1 * + 67 AS col1 FROM tab2 AS cor0
----
-3417
-4489
-5159

query I rowsort
SELECT DISTINCT ( - col1 ) * ( + + 60 ) - + 39 AS col0 FROM tab1 AS cor0
----
-2859
-339
-879

onlyif mysql # DIV for integer division: 
query I rowsort label-9188
SELECT DISTINCT - col0 DIV - 80 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9188
SELECT DISTINCT - col0 / - 80 FROM tab1 AS cor0
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9189
SELECT DISTINCT - CAST( - 5 AS SIGNED ) * 58 * - - col0 FROM tab1
----
14790
24650
26390

skipif mysql # not compatible
query I rowsort label-9189
SELECT DISTINCT - CAST ( - 5 AS INTEGER ) * 58 * - - col0 FROM tab1
----
14790
24650
26390

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 80 col0 FROM tab0 WHERE NOT - 66 * 63 IS NULL
----
80
80
80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9191
SELECT DISTINCT * FROM tab0 WHERE NOT - - col1 <= + - ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9191
SELECT DISTINCT * FROM tab0 WHERE NOT - - col1 <= + - ( + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - 51 * 57 AS col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9193
SELECT - - col0 AS col2 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) / - col1 >= NULL
----

skipif mysql # not compatible
query I rowsort label-9193
SELECT - - col0 AS col2 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) / - col1 >= NULL
----

query I rowsort
SELECT ALL - 53 * + - col1 AS col1 FROM tab2 AS cor0
----
2703
3551
4081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 85 col2 FROM tab2 AS cor0
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-9196
SELECT DISTINCT - col0 + + - 56 DIV + col1 - - col2 AS col0 FROM tab0 cor0
----
-54
-79
32

skipif mysql # not compatible
query I rowsort label-9196
SELECT DISTINCT - col0 + + - 56 / + col1 - - col2 AS col0 FROM tab0 cor0
----
-54
-79
32

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9197
SELECT + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9197
SELECT + CAST ( NULL AS REAL ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT - COUNT( * ) * - 92 FROM tab2
----
276

skipif mysql # not compatible
query I rowsort label-9198
SELECT - COUNT ( * ) * - 92 FROM tab2
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT DISTINCT - - COUNT( * ) * COUNT( * ) * 60 + + 85 col0 FROM tab2 AS cor0
----
625

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9199
SELECT DISTINCT - - COUNT ( * ) * COUNT ( * ) * 60 + + 85 col0 FROM tab2 AS cor0
----
625

query I rowsort
SELECT + - ( + + col0 ) AS col0 FROM tab0 cor0
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 5 col0 FROM tab1 cor0
----
-5
-5
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col1 col2, col2 * - col0 FROM tab0 AS cor0
----
-1
-9603
-21
-870
-81
-705

query II rowsort
SELECT col2 + - 98 * + col0 * 81 AS col2, 52 * 78 FROM tab0
----
-119023
4056
-690596
4056
-769887
4056

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9204
SELECT ALL + col2 / - ( + - CAST( NULL AS SIGNED ) ) + + 69 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9204
SELECT ALL + col2 / - ( + - CAST ( NULL AS INTEGER ) ) + + 69 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9205
SELECT ALL col1 + col2 + col0 DIV col0 * - col1 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9205
SELECT ALL col1 + col2 + col0 / col0 * - col1 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT - MAX( + + 22 ) FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-9206
SELECT - MAX ( + + 22 ) FROM tab2
----
-22

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( col0 / 53, col1, + col2, - - 68 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col2 < + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 * + col2 AS col1 FROM tab2 WHERE + 19 BETWEEN - + 74 * - - 57 * + col0 - - col2 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9211
SELECT ALL + MIN( DISTINCT col2 ) * - 93 DIV + COUNT( DISTINCT + col2 ) FROM tab2 AS cor0
----
-713

skipif mysql # not compatible
query I rowsort label-9211
SELECT ALL + MIN ( DISTINCT col2 ) * - 93 / + COUNT ( DISTINCT + col2 ) FROM tab2 AS cor0
----
-713

query I rowsort
SELECT col0 * + 27 * col2 * - col1 + - - col1 AS col2 FROM tab1 AS cor0
----
-1850674
-677020
-7852525

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-9213
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT COUNT( ALL - - 14 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9214
SELECT COUNT ( ALL - - 14 ) AS col2 FROM tab1 AS cor0
----
3

query II rowsort
SELECT 0 + + col1 AS col0, 67 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9216
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT + 91 - + col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9216
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + 91 - + col1 IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9217
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + col2 / - CAST( - col2 AS SIGNED ) * - col1 / - - col2 + - - ( - 59 ) * - - 39 * + col1 / + - 99
----

skipif mysql # not compatible
query III rowsort label-9217
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + col2 / - CAST ( - col2 AS INTEGER ) * - col1 / - - col2 + - - ( - 59 ) * - - 39 * + col1 / + - 99
----

query I rowsort
SELECT + col2 * - col1 * + col0 AS col1 FROM tab2
----
-197120
-291450
-53958

onlyif mysql # DIV for integer division: 
query I rowsort label-9219
SELECT + col0 DIV + 94 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9219
SELECT + col0 / + 94 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT 21 * - 38 FROM tab0
----
-798
-798
-798

query II rowsort
SELECT + 35 AS col2, + ( + 56 ) AS col0 FROM tab0
----
35
56
35
56
35
56

onlyif mysql # DIV for integer division: 
query II rowsort label-9222
SELECT DISTINCT - col0, col2 DIV - col2 AS col2 FROM tab2
----
-46
-1
-64
-1
-75
-1

skipif mysql # not compatible
query II rowsort label-9222
SELECT DISTINCT - col0, col2 / - col2 AS col2 FROM tab2
----
-46
-1
-64
-1
-75
-1

query III rowsort
SELECT * FROM tab1 WHERE NOT - 9 = col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col2 <> NULL
----

query I rowsort
SELECT ALL + 55 FROM tab1 WHERE NOT + 45 + + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = - col1
----

query II rowsort
SELECT - col0, col0 FROM tab1 cor0
----
-51
51
-85
85
-91
91

query I rowsort
SELECT - + col0 FROM tab2 AS cor0 WHERE NOT ( col2 ) BETWEEN NULL AND col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9229
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, + SUM( DISTINCT + 7 ) AS col0 FROM tab2 AS cor0
----
NULL
7

skipif mysql # not compatible
query II rowsort label-9229
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, + SUM ( DISTINCT + 7 ) AS col0 FROM tab2 AS cor0
----
NULL
7

query II rowsort
SELECT + + 73 AS col0, 21 AS col1 FROM tab1 cor0
----
73
21
73
21
73
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT ALL + COUNT( * ) + - 16 AS col2 FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-9231
SELECT ALL + COUNT ( * ) + - 16 AS col2 FROM tab0 AS cor0
----
-13

query I rowsort
SELECT - - 68 + - 44 FROM tab2 cor0
----
24
24
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9233
SELECT ALL + CAST( NULL AS SIGNED ) + + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9233
SELECT ALL + CAST ( NULL AS INTEGER ) + + col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT COUNT( * ) AS col2 FROM tab1 WHERE col1 <= 94
----
3

skipif mysql # not compatible
query I rowsort label-9235
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE col1 <= 94
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 < - col2 + - ( col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9237
SELECT DISTINCT + ( + col0 ) DIV + + col0 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-9237
SELECT DISTINCT + ( + col0 ) / + + col0 FROM tab0 cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9238
SELECT + 66 DIV + - 85 * + col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9238
SELECT + 66 / + - 85 * + col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 76 + - ( col1 ) FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT + + col2 * - 18 + + ( - 75 ) FROM tab2 AS cor0
----
-1119
-489
-795

query II rowsort
SELECT ALL col2 + col1 * + - col2 AS col2, col0 + - 58 FROM tab0
----
-200
29
-3760
-43
0
39

query I rowsort
SELECT + 45 - 71 FROM tab2
----
-26
-26
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9243
SELECT ALL CAST( NULL AS SIGNED ) + - - 54 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9243
SELECT ALL CAST ( NULL AS INTEGER ) + - - 54 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 27 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + ( - + col2 ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT ALL + COUNT( ALL + 79 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9246
SELECT ALL + COUNT ( ALL + 79 ) FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - 38 ) col1 FROM tab2 AS cor0
----
38
38
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9248
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col0 * + col1 * + + col1 - - col1 AS col0 FROM tab2 AS cor0 WHERE 13 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9248
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col0 * + col1 * + + col1 - - col1 AS col0 FROM tab2 AS cor0 WHERE 13 IS NULL
----

query I rowsort
SELECT ALL ( 43 ) FROM tab0 AS cor0
----
43
43
43

query I rowsort
SELECT DISTINCT - col0 + 43 * col2 AS col2 FROM tab2
----
1656
2419
943

onlyif mysql # aggregate syntax: 
query I rowsort label-9251
SELECT ALL - 14 * COUNT( * ) AS col2 FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-9251
SELECT ALL - 14 * COUNT ( * ) AS col2 FROM tab0
----
-42

query I rowsort
SELECT ALL - + 47 FROM tab2 WHERE ( NOT + col1 + - + col2 * + col0 > NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - + col2 * + col0 col1 FROM tab2 AS cor0
----
197120
291450
53958

query I rowsort
SELECT DISTINCT + col1 * + 46 * + col2 FROM tab0 AS cor0
----
175122
4554
9660

onlyif mysql # aggregate syntax: 
query I rowsort label-9255
SELECT + 97 * + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-9255
SELECT + 97 * + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-291

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9256
SELECT DISTINCT - col2 + - CAST( NULL AS SIGNED ) + - col0 / col2 col1, - 68 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
-68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9256
SELECT DISTINCT - col2 + - CAST ( NULL AS INTEGER ) + - col0 / col2 col1, - 68 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
-68

query I rowsort
SELECT DISTINCT - ( + + 95 ) FROM tab1
----
-95

query III rowsort
SELECT * FROM tab2 WHERE col2 = 33
----

query I rowsort
SELECT - 19 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

query I rowsort
SELECT DISTINCT - col0 + - 64 + + - col0 FROM tab2
----
-156
-192
-214

onlyif mysql # DIV for integer division: 
query I rowsort label-9261
SELECT - 54 + - col2 DIV 97 AS col2 FROM tab1
----
-54
-54
-54

skipif mysql # not compatible
query I rowsort label-9261
SELECT - 54 + - col2 / 97 AS col2 FROM tab1
----
-54
-54
-54

query I rowsort
SELECT ALL + + col0 AS col1 FROM tab2 AS cor0 WHERE NOT 32 + + + 68 = - ( 0 )
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9263
SELECT ALL - col1 / - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9263
SELECT ALL - col1 / - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT - col0 / - col1 + col2 - + 34 / - col1 IS NOT NULL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9266
SELECT + - 82 DIV - SUM( - 58 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9266
SELECT + - 82 / - SUM ( - 58 ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT DISTINCT MIN( DISTINCT ( - col1 ) ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-9267
SELECT DISTINCT MIN ( DISTINCT ( - col1 ) ) FROM tab2
----
-77

query II rowsort
SELECT - 62 * col2 AS col1, 19 * - ( 49 ) FROM tab2
----
-1426
-931
-2480
-931
-3596
-931

query I rowsort
SELECT ALL + + 38 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9270
SELECT 99 DIV + + 2 FROM tab1
----
49
49
49

skipif mysql # not compatible
query I rowsort label-9270
SELECT 99 / + + 2 FROM tab1
----
49
49
49

onlyif mysql # aggregate syntax: 
query II rowsort label-9271
SELECT ALL + - MAX( - + col1 ) AS col2, 87 AS col0 FROM tab1 WHERE NULL BETWEEN - + col2 + + - col2 + + 32 AND NULL
----
NULL
87

skipif mysql # not compatible
query II rowsort label-9271
SELECT ALL + - MAX ( - + col1 ) AS col2, 87 AS col0 FROM tab1 WHERE NULL BETWEEN - + col2 + + - col2 + + 32 AND NULL
----
NULL
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9272
SELECT DISTINCT 71 * - MAX( col2 ) DIV + COUNT( ALL - col2 ) + - + 14 AS col0 FROM tab1
----
-2286

skipif mysql # not compatible
query I rowsort label-9272
SELECT DISTINCT 71 * - MAX ( col2 ) / + COUNT ( ALL - col2 ) + - + 14 AS col0 FROM tab1
----
-2286

query III rowsort
SELECT * FROM tab0 WHERE col1 >= NULL
----

query I rowsort
SELECT DISTINCT - 81 - + col2 AS col0 FROM tab2
----
-104
-121
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-9275
SELECT DISTINCT SUM( DISTINCT + 78 ) - - 84 AS col0 FROM tab2
----
162

skipif mysql # not compatible
query I rowsort label-9275
SELECT DISTINCT SUM ( DISTINCT + 78 ) - - 84 AS col0 FROM tab2
----
162

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - 61 - - + col1, col0 + - + 42 AS col2 FROM tab0
----
-40
45
-60
55
20
-27

query I rowsort
SELECT DISTINCT col0 - - col2 AS col1 FROM tab2
----
104
133
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col0, 77 + - - col1 + - col0 * - + col1 col2 FROM tab1
----
-59
507
-68
4401
-96
805

onlyif mysql # DIV for integer division: 
query I rowsort label-9280
SELECT col1 DIV + 71 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9280
SELECT col1 / + 71 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT ALL + COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 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-9281
SELECT ALL + COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NOT ( NULL IS NOT NULL ) )
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col2 * + col2 / - - 3 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9283
SELECT CAST( NULL AS SIGNED ) - + - col1 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9283
SELECT CAST ( NULL AS INTEGER ) - + - col1 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col0 AS col1, col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT + - COUNT( * ) * + + SUM( + + col0 ) * + COUNT( * ) * + 11 FROM tab1 AS cor0
----
-22473

skipif mysql # not compatible
query I rowsort label-9285
SELECT + - COUNT ( * ) * + + SUM ( + + col0 ) * + COUNT ( * ) * + 11 FROM tab1 AS cor0
----
-22473

query II rowsort
SELECT ALL col0, + 15 AS col1 FROM tab1 cor0
----
51
15
85
15
91
15

query II rowsort
SELECT col1 AS col0, - col1 + - + col2 AS col1 FROM tab0 AS cor0
----
1
-100
21
-31
81
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT + + MIN( ALL - 38 ) AS col1 FROM tab1 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-9288
SELECT + + MIN ( ALL - 38 ) AS col1 FROM tab1 AS cor0
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-9289
SELECT + + COUNT( * ) AS col1, + 15 FROM tab0 AS cor0
----
3
15

skipif mysql # not compatible
query II rowsort label-9289
SELECT + + COUNT ( * ) AS col1, + 15 FROM tab0 AS cor0
----
3
15

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 32 + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + 71, ( - col0 ) + - + col1 AS col2 FROM tab1 AS cor0
----
71
-138
71
-65
71
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, 81 AS col2 FROM tab2 WHERE NOT - col0 + - col2 + + 91 * - col0 IS NULL
----
51
81
67
81
77
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9293
SELECT + 72 DIV + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-9293
SELECT + 72 / + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
24

query I rowsort
SELECT + AVG ( + col2 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT - 86 + - col1 FROM tab0 AS cor0
----
-107
-167
-87

query II rowsort
SELECT DISTINCT ( + - col0 ) AS col0, + col0 AS col2 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query I rowsort
SELECT 2 + ( col0 ) * + col2 AS col1 FROM tab1 AS cor0
----
4898
5017
6190

query I rowsort
SELECT - col2 + + 99 * - ( col1 ) AS col0 FROM tab0 AS cor0
----
-198
-2089
-8066

onlyif mysql # DIV for integer division: 
query I rowsort label-9299
SELECT - 42 + 71 DIV + col0 FROM tab1 AS cor0
----
-41
-42
-42

skipif mysql # not compatible
query I rowsort label-9299
SELECT - 42 + 71 / + col0 FROM tab1 AS cor0
----
-41
-42
-42

query I rowsort
SELECT - ( - 80 ) + col0 * + - 56 FROM tab0
----
-4792
-5352
-760

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9301
SELECT ALL - col1 * - ( - col0 ) - - ( col2 ), CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
-1168
NULL
-1817
NULL
2
NULL

skipif mysql # not compatible
query II rowsort label-9301
SELECT ALL - col1 * - ( - col0 ) - - ( col2 ), CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
-1168
NULL
-1817
NULL
2
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 + - col0 + - - 97 NOT IN ( - ( - 71 ), 10 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * - ( col2 ), col2 + + 31 + + col0 col1 FROM tab0 AS cor0
----
-705
93
-870
128
-9603
227

query II rowsort
SELECT DISTINCT - + col0 * - - col0 + col0 AS col2, + col1 FROM tab2 AS cor0
----
-2070
51
-4032
77
-5550
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9305
SELECT ALL - ( + + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9305
SELECT ALL - ( + + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT ( col2 ) + ( ( - col1 ) ) AS col0 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9307
SELECT + - COUNT( * ) FROM tab2 AS cor0 WHERE - col1 + - 74 - + - col0 = - CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9307
SELECT + - COUNT ( * ) FROM tab2 AS cor0 WHERE - col1 + - 74 - + - col0 = - CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT - + col2 - - - col1 FROM tab0 AS cor0
----
-100
-128
-31

query I rowsort
SELECT ALL - col0 * + - 20 FROM tab1 AS cor0
----
1020
1700
1820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9310
SELECT DISTINCT col0 + col0 + - 46 * - - col1 + 71 * - + CAST( col2 AS SIGNED ) * + CAST( NULL AS SIGNED ) + - 11 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9310
SELECT DISTINCT col0 + col0 + - 46 * - - col1 + 71 * - + CAST ( col2 AS INTEGER ) * + CAST ( NULL AS INTEGER ) + - 11 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( NOT col0 + + - col2 IS NOT NULL )
----

query II rowsort
SELECT DISTINCT + col0, + 30 AS col1 FROM tab1
----
51
30
85
30
91
30

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE - - col1 < + - 50
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT - COUNT( * ) * COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-9314
SELECT - COUNT ( * ) * COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9315
SELECT - col1 * - - CAST( NULL AS SIGNED ) / + + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9315
SELECT - col1 * - - CAST ( NULL AS INTEGER ) / + + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9316
SELECT + col0 + + col0 FROM tab0 cor0 WHERE NOT ( + CAST( + col0 AS SIGNED ) * - + CAST( NULL AS DECIMAL ) * - + col0 IS NOT NULL )
----
174
194
30

skipif mysql # not compatible
query I rowsort label-9316
SELECT + col0 + + col0 FROM tab0 cor0 WHERE NOT ( + CAST ( + col0 AS INTEGER ) * - + CAST ( NULL AS REAL ) * - + col0 IS NOT NULL )
----
174
194
30

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9317
SELECT + + MIN( DISTINCT CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9317
SELECT + + MIN ( DISTINCT CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT - + SUM( - col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-9318
SELECT - + SUM ( - col1 ) FROM tab0 AS cor0
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9319
SELECT DISTINCT + CAST( + 72 AS SIGNED ) FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-9319
SELECT DISTINCT + CAST ( + 72 AS INTEGER ) FROM tab0 AS cor0
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9320
SELECT - - col1 * - CAST( NULL AS SIGNED ) * - - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9320
SELECT - - col1 * - CAST ( NULL AS INTEGER ) * - - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 14 + + + col2 + - + col2 * - - col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL - 64 AS col1 FROM tab0 cor0
----
-64
-64
-64

query II rowsort
SELECT - 72, col0 + + + col1 * - 55 + - + 56 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - + col0 * + - col1 <> + 34 * + 36
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 + + col0 + - + 55 AS col2 FROM tab1
----
-11
-18
25

query III rowsort
SELECT * FROM tab1 WHERE col0 NOT IN ( + - 85, 25, col0 + - + col0, - - 70 - - - 71 - col2, - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( + col2 ) * 84 AS col0 FROM tab2
----
1932
3360
4872

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT + MIN( - - col0 ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-9328
SELECT + MIN ( - - col0 ) AS col0 FROM tab2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9329
SELECT + 44 / CAST( NULL AS SIGNED ) + col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9329
SELECT + 44 / CAST ( NULL AS INTEGER ) + col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 10 AS col1 FROM ( tab0 cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

query I rowsort
SELECT 76 + ( + col0 ) FROM tab2
----
122
140
151

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 36 >= col2 / + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9333
SELECT ALL CAST( NULL AS SIGNED ) * + col1 AS col2, + CAST( - col2 AS SIGNED ) DIV col1 + - col2 + + col0 * + col0 * + col2 + - col1 + col1 AS col2 FROM tab0 AS cor0
----
NULL
10528
NULL
75680
NULL
931293

skipif mysql # not compatible
query II rowsort label-9333
SELECT ALL CAST ( NULL AS INTEGER ) * + col1 AS col2, + CAST ( - col2 AS INTEGER ) / col1 + - col2 + + col0 * + col0 * + col2 + - col1 + col1 AS col2 FROM tab0 AS cor0
----
NULL
10528
NULL
75680
NULL
931293

query III rowsort
SELECT * FROM tab0 WHERE NOT 35 + - 78 * - 32 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9335
SELECT MIN( DISTINCT + 36 ) AS col2 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-9335
SELECT MIN ( DISTINCT + 36 ) AS col2 FROM tab0
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9336
SELECT DISTINCT + 4 DIV COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9336
SELECT DISTINCT + 4 / COUNT ( * ) FROM tab1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 22 col1 FROM tab0
----
-22
-22
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-9338
SELECT ALL + col0 DIV - - col2 AS col1 FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-9338
SELECT ALL + col0 / - - col2 AS col1 FROM tab0
----
0
0
8

query II rowsort
SELECT + 34, col1 + 14 + col0 AS col1 FROM tab1
----
34
104
34
152
34
79

query I rowsort
SELECT col1 * - ( col2 ) FROM tab0
----
-210
-3807
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 70 col0 FROM tab1
----
-70
-70
-70

query I rowsort
SELECT ALL + 79 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 38 col2, 78 AS col2 FROM tab2 AS cor0
----
38
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9344
SELECT ALL + MIN( DISTINCT + - col0 ) AS col1 FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9344
SELECT ALL + MIN ( DISTINCT + - col0 ) AS col1 FROM tab1 cor0
----
-91

query II rowsort
SELECT + col1 AS col2, + col1 - - col0 * + + 29 - - - 85 FROM tab1 AS cor0
----
14
1408
47
2601
5
2385

query I rowsort
SELECT DISTINCT - + col1 * 92 AS col2 FROM tab1 AS cor0
----
-1288
-4324
-460

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + 16 ) >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 24, - col0 + - - col0 col2 FROM tab2 AS cor0
----
24
0
24
0
24
0

query I rowsort
SELECT - 82 * - 44 FROM tab0 AS cor0
----
3608
3608
3608

query II rowsort
SELECT - ( col1 ) AS col2, + 72 AS col2 FROM tab0 cor0
----
-1
72
-21
72
-81
72

onlyif mysql # aggregate syntax: 
query II rowsort label-9351
SELECT ALL + 37 col0, + COUNT( * ) AS col2 FROM tab2 AS cor0
----
37
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9351
SELECT ALL + 37 col0, + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
37
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9352
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN - col1 * + + CAST( + + col0 AS SIGNED ) + + col1 AND - + ( + col1 ) + - + col2
----

skipif mysql # not compatible
query III rowsort label-9352
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN - col1 * + + CAST ( + + col0 AS INTEGER ) + + col1 AND - + ( + col1 ) + - + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9353
SELECT + CAST( + COUNT( * ) AS SIGNED ) col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9353
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) col1 FROM tab1 cor0
----
3

query I rowsort
SELECT DISTINCT + 70 + 52 FROM tab0
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT ALL MIN( ALL - + col2 ) + - - ( 28 ) FROM tab0
----
-71

skipif mysql # not compatible
query I rowsort label-9355
SELECT ALL MIN ( ALL - + col2 ) + - - ( 28 ) FROM tab0
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-9356
SELECT DISTINCT - COUNT( * ) + 88 AS col1, 56 AS col0 FROM tab0
----
85
56

skipif mysql # not compatible
query II rowsort label-9356
SELECT DISTINCT - COUNT ( * ) + 88 AS col1, 56 AS col0 FROM tab0
----
85
56

query III rowsort
SELECT * FROM tab2 WHERE + 37 - col0 / - col1 * + 90 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT ALL ( + - COUNT( - 85 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9358
SELECT ALL ( + - COUNT ( - 85 ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ( + + col1 ) + + - col2 + - 15 AS col2 FROM tab2 cor0
----
-6
13
22

onlyif mysql # aggregate syntax: 
query II rowsort label-9360
SELECT DISTINCT + MIN( col1 ), 86 AS col1 FROM tab2 AS cor0
----
51
86

skipif mysql # not compatible
query II rowsort label-9360
SELECT DISTINCT + MIN ( col1 ), 86 AS col1 FROM tab2 AS cor0
----
51
86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9361
SELECT DISTINCT + 23 - 16 + - col2 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9361
SELECT DISTINCT + 23 - 16 + - col2 * - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + - ( + 48 ) - col2 * + col1 AS col1 FROM tab0 AS cor0
----
-147
-258
-3855

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9363
SELECT - ( + CAST( + col1 AS SIGNED ) ) * col0 col1 FROM tab0 AS cor0 WHERE NULL <= - col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9363
SELECT - ( + CAST ( + col1 AS INTEGER ) ) * col0 col1 FROM tab0 AS cor0 WHERE NULL <= - col1
----

query I rowsort
SELECT 12 - - col1 AS col2 FROM tab1 AS cor0
----
17
26
59

query I rowsort
SELECT + + ( + - col0 ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT ALL - - col0 * - - 95 FROM tab2 AS cor0
----
4370
6080
7125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9367
SELECT + ( CAST( + + 51 AS SIGNED ) ) * - 99 FROM tab0 cor0
----
-5049
-5049
-5049

skipif mysql # not compatible
query I rowsort label-9367
SELECT + ( CAST ( + + 51 AS INTEGER ) ) * - 99 FROM tab0 cor0
----
-5049
-5049
-5049

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN ( col0 ) AND NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT - MAX( col1 ) col1 FROM tab0 cor0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9369
SELECT - MAX ( col1 ) col1 FROM tab0 cor0
----
-81

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 76 IN ( - 19, col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT - 29 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9372
SELECT DISTINCT + 49 / CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9372
SELECT DISTINCT + 49 / CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 86 / - 18 + + col0 <> + - col1 / + 54 + - + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9374
SELECT ( - CAST( NULL AS SIGNED ) ) * + COUNT( * ) / - 82 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9374
SELECT ( - CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) / - 82 FROM tab1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9375
SELECT * FROM tab1 WHERE NOT CAST( NULL AS DECIMAL ) * + col0 + + 14 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9375
SELECT * FROM tab1 WHERE NOT CAST ( NULL AS REAL ) * + col0 + + 14 IS NULL
----

query I rowsort
SELECT ( + + col2 ) * - + 98 AS col2 FROM tab1
----
-5782
-6664
-9408

query I rowsort
SELECT ALL 33 * col2 AS col0 FROM tab1
----
1947
2244
3168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9378
SELECT ALL + COUNT( * ) DIV MAX( DISTINCT + col0 ) DIV 81 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9378
SELECT ALL + COUNT ( * ) / MAX ( DISTINCT + col0 ) / 81 FROM tab0 AS cor0
----
0

query II rowsort
SELECT ALL + 95 + col2, + col0 * - 59 * + - col0 * - + col1 AS col2 FROM tab0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT COUNT( * ) * + 95 AS col2 FROM tab0
----
285

skipif mysql # not compatible
query I rowsort label-9380
SELECT COUNT ( * ) * + 95 AS col2 FROM tab0
----
285

query II rowsort
SELECT - col2, + col1 FROM tab1
----
-59
5
-68
47
-96
14

query I rowsort
SELECT ( + col0 ) * - 86 FROM tab2 AS cor0
----
-3956
-5504
-6450

query I rowsort
SELECT DISTINCT - + col2 * - 76 AS col2 FROM tab2 AS cor0
----
1748
3040
4408

query I rowsort
SELECT ALL + col0 * - 51 + - col2 + - col1 AS col2 FROM tab2 AS cor0
----
-2420
-3381
-3950

query I rowsort
SELECT + + ( - 75 ) * 42 * + col1 FROM tab1 AS cor0
----
-148050
-15750
-44100

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 81 + + col1 * + - 18 IS NOT NULL
----

query I rowsort
SELECT + ( 14 ) - 93 FROM tab1 AS cor0 WHERE - col0 + + 89 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE + 29 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9388
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE + 29 IS NOT NULL
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9389
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, MAX( - CAST( - + col2 AS SIGNED ) ) FROM tab2
----
NULL
58

skipif mysql # not compatible
query II rowsort label-9389
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, MAX ( - CAST ( - + col2 AS INTEGER ) ) FROM tab2
----
NULL
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9390
SELECT ALL col0 - - + col0 AS col2 FROM tab2 WHERE NOT ( + ( - CAST( NULL AS DECIMAL ) ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9390
SELECT ALL col0 - - + col0 AS col2 FROM tab2 WHERE NOT ( + ( - CAST ( NULL AS REAL ) ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9391
SELECT DISTINCT COUNT( * ) + - + 91 + - SUM( + - col2 ) + - 32 - + + SUM( col2 ) * - + COUNT( DISTINCT - ( + + col0 ) ) col1 FROM tab2
----
364

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9391
SELECT DISTINCT COUNT ( * ) + - + 91 + - SUM ( + - col2 ) + - 32 - + + SUM ( col2 ) * - + COUNT ( DISTINCT - ( + + col0 ) ) col1 FROM tab2
----
364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9392
SELECT ALL col1 + - + CAST( NULL AS SIGNED ) / 6 + - + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9392
SELECT ALL col1 + - + CAST ( NULL AS INTEGER ) / 6 + - + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT col0 AS col1, col0 * col2 FROM tab1 AS cor0
----
51
4896
85
5015
91
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-9394
SELECT + - col2 - - ( + + col2 ) * col1 DIV + col1 - col1 AS col0 FROM tab2 cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-9394
SELECT + - col2 - - ( + + col2 ) * col1 / + col1 - col1 AS col0 FROM tab2 cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9395
SELECT - MAX( DISTINCT - 36 ) DIV - 88 + - + COUNT( * ) + 63 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-9395
SELECT - MAX ( DISTINCT - 36 ) / - 88 + - + COUNT ( * ) + 63 FROM tab2
----
60

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 IN ( col2 )
----

query I rowsort
SELECT ALL + ( - 43 ) AS col1 FROM tab1 AS cor0
----
-43
-43
-43

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * + col0 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 72 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 43 * + + 86 col2 FROM tab0 cor0
----
3698

query I rowsort
SELECT col1 * - 44 + 73 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT DISTINCT - COUNT( DISTINCT 40 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9402
SELECT DISTINCT - COUNT ( DISTINCT 40 ) FROM tab1 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9403
SELECT ( - CAST( NULL AS SIGNED ) ) / col1 * + - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9403
SELECT ( - CAST ( NULL AS INTEGER ) ) / col1 * + - col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9404
SELECT DISTINCT - COUNT( * ) * + 82 AS col1 FROM tab1
----
-246

skipif mysql # not compatible
query I rowsort label-9404
SELECT DISTINCT - COUNT ( * ) * + 82 AS col1 FROM tab1
----
-246

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - 67 ) + + 72 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9406
SELECT ALL - col1 DIV + 12 FROM tab2 AS cor0
----
-4
-5
-6

skipif mysql # not compatible
query I rowsort label-9406
SELECT ALL - col1 / + 12 FROM tab2 AS cor0
----
-4
-5
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT - + MIN( - 17 ) AS col0 FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-9407
SELECT - + MIN ( - 17 ) AS col0 FROM tab1 AS cor0
----
17

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9408
SELECT ALL CAST( NULL AS DECIMAL ) * ( AVG ( - col0 ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9408
SELECT ALL CAST ( NULL AS REAL ) * ( AVG ( - col0 ) ) AS col2 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN col0 * col0 AND ( - col1 )
----

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NULL NOT BETWEEN ( + col1 ) AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9411
SELECT DISTINCT - COUNT( * ) + - SUM( - 57 ) col0 FROM tab0
----
168

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9411
SELECT DISTINCT - COUNT ( * ) + - SUM ( - 57 ) col0 FROM tab0
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-9412
SELECT ALL - SUM( - 73 ) * - MAX( ALL + col0 ) + 60 * SUM( ALL 87 * - col0 ) col0 FROM tab0
----
-1060023

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9412
SELECT ALL - SUM ( - 73 ) * - MAX ( ALL + col0 ) + 60 * SUM ( ALL 87 * - col0 ) col0 FROM tab0
----
-1060023

query I rowsort
SELECT + col0 * + 94 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 21 FROM tab0 WHERE col0 * - 93 NOT IN ( col0 * + col1 )
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9415
SELECT 49 / + COUNT( * ) + - 14 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9415
SELECT 49 / + COUNT ( * ) + - 14 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + col2 * col1 AS col1 FROM tab2 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT DISTINCT COUNT( - 58 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9417
SELECT DISTINCT COUNT ( - 58 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT 99 * col1 FROM tab0
----
2079
8019
99

query I rowsort
SELECT 36 + - col2 * col2 AS col0 FROM tab1
----
-3445
-4588
-9180

query III rowsort
SELECT ALL * FROM tab2 WHERE ( 7 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * - 16 + - col2 FROM tab0
----
-115
-1343
-346

query I rowsort
SELECT DISTINCT 63 FROM tab0 WHERE NOT col0 * col0 > NULL
----

query I rowsort
SELECT col1 * - 67 AS col2 FROM tab1 WHERE + col2 * 85 = ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 48 + col1 * col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 WHERE NOT - col0 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9426
SELECT * FROM tab1 WHERE NOT - CAST( - 81 AS SIGNED ) NOT BETWEEN ( 73 / col1 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-9426
SELECT * FROM tab1 WHERE NOT - CAST ( - 81 AS INTEGER ) NOT BETWEEN ( 73 / col1 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 - col0 col2 FROM tab0
----
-16
-26
56

query I rowsort
SELECT DISTINCT - 22 + - col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col0 FROM tab1 WHERE ( NULL ) < ( NULL )
----

query I rowsort
SELECT ( + 0 ) FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NULL BETWEEN ( 61 ) AND NULL
----

query I rowsort
SELECT DISTINCT + col1 + - col0 * + col0 AS col1 FROM tab2
----
-2065
-4019
-5558

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( ( 8 ) * 34 + 62 ) NOT BETWEEN ( - 85 + col2 ) AND ( 18 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9434
SELECT 21 DIV col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9434
SELECT 21 / col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL 2 * col1 FROM tab1
----
10
28
94

onlyif mysql # DIV for integer division: 
query I rowsort label-9436
SELECT DISTINCT ( col1 ) DIV - 64 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9436
SELECT DISTINCT ( col1 ) / - 64 FROM tab0
----
-1
0

query I rowsort
SELECT DISTINCT - 57 * col0 + + 21 FROM tab0
----
-4938
-5508
-834

query I rowsort
SELECT col1 * 60 FROM tab2
----
3060
4020
4620

query I rowsort
SELECT 82 * - 95 FROM tab0
----
-7790
-7790
-7790

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT COUNT( 80 ) - 78 FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-9440
SELECT COUNT ( 80 ) - 78 FROM tab1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT - COUNT( * ) * + AVG ( ALL col1 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9441
SELECT - COUNT ( * ) * + AVG ( ALL col1 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT COUNT( * ) * - COUNT( * ) + 92 FROM tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-9442
SELECT COUNT ( * ) * - COUNT ( * ) + 92 FROM tab2 AS cor0
----
83

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col2 ) NOT IN ( 95 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT + COUNT( * ) * - 72 AS col1 FROM tab0 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-9444
SELECT + COUNT ( * ) * - 72 AS col1 FROM tab0 AS cor0
----
-216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9445
SELECT ALL + CAST( NULL AS SIGNED ) + + col0 FROM tab0 WHERE NULL = ( col1 * 56 )
----

skipif mysql # not compatible
query I rowsort label-9445
SELECT ALL + CAST ( NULL AS INTEGER ) + + col0 FROM tab0 WHERE NULL = ( col1 * 56 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT + - COUNT( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9446
SELECT + - COUNT ( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col0 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT - - COUNT( DISTINCT - col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9448
SELECT - - COUNT ( DISTINCT - col2 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9449
SELECT DISTINCT - CAST( + 12 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-9449
SELECT DISTINCT - CAST ( + 12 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 5 col0 FROM tab2 AS cor0
----
-5
-5
-5

query I rowsort
SELECT ALL 29 FROM tab2 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9452
SELECT - + MAX( DISTINCT 21 ) FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-9452
SELECT - + MAX ( DISTINCT 21 ) FROM tab2 AS cor0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9453
SELECT ALL + MIN( DISTINCT + 88 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) < - 47 - - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-9453
SELECT ALL + MIN ( DISTINCT + 88 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) < - 47 - - 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9454
SELECT - SUM( ALL + 59 ) FROM tab2 cor0
----
-177

skipif mysql # not compatible
query I rowsort label-9454
SELECT - SUM ( ALL + 59 ) FROM tab2 cor0
----
-177

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 5 * + col1 ) >= + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < ( 98 )
----

query I rowsort
SELECT DISTINCT + col1 FROM tab0 cor0 WHERE NULL = ( ( col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9458
SELECT ALL ( COUNT( * ) ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9458
SELECT ALL ( COUNT ( * ) ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT ALL SUM( + col1 ) FROM tab2 WHERE NULL BETWEEN NULL AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9459
SELECT ALL SUM ( + col1 ) FROM tab2 WHERE NULL BETWEEN NULL AND ( NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9460
SELECT - CAST( + col0 AS SIGNED ) FROM tab2 WHERE NOT ( + 56 ) < ( - 64 + 35 )
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9460
SELECT - CAST ( + col0 AS INTEGER ) FROM tab2 WHERE NOT ( + 56 ) < ( - 64 + 35 )
----
-46
-64
-75

query I rowsort
SELECT 60 FROM tab0 WHERE NOT ( NULL ) <= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = 86
----

query I rowsort
SELECT + 6 * + - col0 FROM tab1
----
-306
-510
-546

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * + 93 IN ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT COUNT( * ) * + AVG ( DISTINCT + col2 ) FROM tab0 WHERE NOT NULL NOT BETWEEN col2 + + col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9465
SELECT COUNT ( * ) * + AVG ( DISTINCT + col2 ) FROM tab0 WHERE NOT NULL NOT BETWEEN col2 + + col2 AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9466
SELECT ALL + col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9466
SELECT ALL + col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * - col2 * + 43 FROM tab2
----
144652
22747
68800

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( ( col0 ) - col2 ) <> ( + col0 - + 17 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9469
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( NULL AS DECIMAL ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-9469
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( NULL AS REAL ) <> NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 19 * - col1 <= ( - col0 )
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT ALL + COUNT( * ) / ( ( AVG ( DISTINCT - 62 ) ) * - COUNT( + 39 ) ) FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9471
SELECT ALL + COUNT ( * ) / ( ( AVG ( DISTINCT - 62 ) ) * - COUNT ( + 39 ) ) FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT DISTINCT 57 + - - col1 AS col2 FROM tab2
----
108
124
134

onlyif mysql # aggregate syntax: 
query I rowsort label-9473
SELECT ( MAX( ALL - col0 ) ) * COUNT( * ) FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-9473
SELECT ( MAX ( ALL - col0 ) ) * COUNT ( * ) FROM tab0
----
-45

query I rowsort
SELECT + col0 * - 70 * + col1 FROM tab2
----
-164220
-344960
-351750

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT ALL - COUNT( ALL - ( - 11 ) ) * + 33 AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-9475
SELECT ALL - COUNT ( ALL - ( - 11 ) ) * + 33 AS col0 FROM tab0
----
-99

query I rowsort
SELECT col2 + + col1 * + col0 AS col2 FROM tab2
----
2369
4968
5083

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9477
SELECT DISTINCT - 21 DIV 96 * + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9477
SELECT DISTINCT - 21 / 96 * + COUNT ( * ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT - 95 + col0 FROM tab1 cor0
----
-10
-4
-44

query II rowsort
SELECT ALL - col1 AS col2, - 84 FROM tab1 cor0
----
-14
-84
-47
-84
-5
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9480
SELECT 52 + MIN( - 25 ) AS col1 FROM tab1 AS cor0 WHERE - col1 IN ( - col0 + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9480
SELECT 52 + MIN ( - 25 ) AS col1 FROM tab1 AS cor0 WHERE - col1 IN ( - col0 + col0 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9481
SELECT - - col0 + - col0 + + CAST( NULL AS SIGNED ) / + 19 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9481
SELECT - - col0 + - col0 + + CAST ( NULL AS INTEGER ) / + 19 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9482
SELECT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE col1 - + 18 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9482
SELECT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE col1 - + 18 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col1 * 9 col2 FROM tab2 AS cor0
----
23409
40401
53361

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT DISTINCT - COUNT( * ) + + 49 AS col2 FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-9484
SELECT DISTINCT - COUNT ( * ) + + 49 AS col2 FROM tab0
----
46

query I rowsort
SELECT ALL + col0 * + col1 * + col0 FROM tab0
----
158949
18225
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( - col1 + - 32 )
----
0

skipif mysql # not compatible
query I rowsort label-9486
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( - col1 + - 32 )
----
0

query I rowsort
SELECT DISTINCT - ( + 15 ) * ( - 22 ) + - ( col0 ) + - col0 FROM tab0
----
136
156
300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 col1 FROM tab0
----
91
91
91

query I rowsort
SELECT DISTINCT 48 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col2 + + 4 + - 44 FROM tab1
----
19
28
56

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN ( NULL ) AND + col0 + + + 22
----

query I rowsort
SELECT ALL col1 * - + col0 - + ( - col0 ) + 44 * + col1 AS col0 FROM tab0
----
-816
2364
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9493
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE ( col0 * + + CAST( NULL AS SIGNED ) * + col0 * + CAST( NULL AS SIGNED ) ) <> ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-9493
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE ( col0 * + + CAST ( NULL AS INTEGER ) * + col0 * + CAST ( NULL AS INTEGER ) ) <> ( + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9494
SELECT DISTINCT CAST( + 12 AS SIGNED ) DIV COUNT( col2 ) + - COUNT( * ) - + 96 FROM tab1 cor0
----
-95

skipif mysql # not compatible
query I rowsort label-9494
SELECT DISTINCT CAST ( + 12 AS INTEGER ) / COUNT ( col2 ) + - COUNT ( * ) - + 96 FROM tab1 cor0
----
-95

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT ALL + COUNT( - 40 ) * 71 FROM tab1 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-9496
SELECT ALL + COUNT ( - 40 ) * 71 FROM tab1 AS cor0
----
213

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT + 36 * SUM( + 57 ) AS col2 FROM tab2 AS cor0
----
6156

skipif mysql # not compatible
query I rowsort label-9497
SELECT + 36 * SUM ( + 57 ) AS col2 FROM tab2 AS cor0
----
6156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9498
SELECT ALL SUM( ALL + col1 ) DIV + + COUNT( - + col0 ) FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-9498
SELECT ALL SUM ( ALL + col1 ) / + + COUNT ( - + col0 ) FROM tab0
----
34

query I rowsort
SELECT DISTINCT - + 28 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9500
SELECT + col1 DIV - + col2 AS col0 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-9500
SELECT + col1 / - + col2 AS col0 FROM tab2
----
-1
-1
-2

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 - + col0 + + 87 - - col1 * - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9502
SELECT - col1 - - ( 44 ) DIV - col2 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-9502
SELECT - col1 - - ( 44 ) / - col2 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-14
-47
-5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 <= + col0 + - col2 + - - col1 * - col0 * - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT ALL + - COUNT( ALL 44 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9504
SELECT ALL + - COUNT ( ALL 44 ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9506
SELECT DISTINCT - CAST( 17 AS SIGNED ) * + ( + MAX( ALL + 84 ) ) AS col1 FROM tab2 AS cor0
----
-1428

skipif mysql # not compatible
query I rowsort label-9506
SELECT DISTINCT - CAST ( 17 AS INTEGER ) * + ( + MAX ( ALL + 84 ) ) AS col1 FROM tab2 AS cor0
----
-1428

query I rowsort
SELECT ALL - - 47 * + col0 + + 31 AS col2 FROM tab1 AS cor0
----
2428
4026
4308

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9508
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 / + CAST( - 11 AS SIGNED ) NOT IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9508
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 / + CAST ( - 11 AS INTEGER ) NOT IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT COUNT( ALL - col1 ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9509
SELECT COUNT ( ALL - col1 ) AS col1 FROM tab0 cor0
----
3

query I rowsort
SELECT + 74 - - col0 * 81 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + 26 )
----

query I rowsort
SELECT - col0 AS col0 FROM tab0 WHERE NOT NULL >= NULL
----

query II rowsort
SELECT col1 AS col0, - 38 AS col1 FROM tab1
----
14
-38
47
-38
5
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9513
SELECT DISTINCT MIN( ALL + 48 ) FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-9513
SELECT DISTINCT MIN ( ALL + 48 ) FROM tab0
----
48

query I rowsort
SELECT 55 * - col0 FROM tab0
----
-4785
-5335
-825

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT DISTINCT COUNT( ALL - 62 ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9515
SELECT DISTINCT COUNT ( ALL - 62 ) col1 FROM tab0
----
3

query I rowsort
SELECT - 20 FROM tab1 AS cor0 WHERE NOT + col1 * - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9517
SELECT col2 DIV - ( - - col2 ) + 98 * 71 FROM tab1 AS cor0
----
6957
6957
6957

skipif mysql # not compatible
query I rowsort label-9517
SELECT col2 / - ( - - col2 ) + 98 * 71 FROM tab1 AS cor0
----
6957
6957
6957

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE + - col1 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9519
SELECT - + COUNT( * ) * - 5 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9519
SELECT - + COUNT ( * ) * - 5 FROM tab0 AS cor0
----
15

query I rowsort
SELECT ALL - col1 - 31 AS col0 FROM tab0 AS cor0
----
-112
-32
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9521
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9521
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT NULL = 1 )
----

query II rowsort
SELECT + - col1 * + - col2, 53 * - - 52 AS col2 FROM tab0 AS cor0
----
210
2756
3807
2756
99
2756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - ( + col1 ) col1 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT - col0 - col0 * col2 FROM tab0 AS cor0
----
-720
-957
-9700

query II rowsort
SELECT + - col2 - + col1, col2 * col1 * 3 * - col2 AS col2 FROM tab0 AS cor0
----
-100
-29403
-128
-536787
-31
-6300

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( - ( + col1 ) + col1 + - col1 ) NOT IN ( - col1 * - 13 + - 89 )
----

query I rowsort
SELECT - - col1 FROM tab2 WHERE + col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( - col1 + - col1 + - 51 + col2 * + 13 )
----

query II rowsort
SELECT DISTINCT - 69, + 16 * - 6 AS col0 FROM tab2 WHERE - + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 82 ) col1 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL col1 - + + 97 AS col2 FROM tab1
----
-50
-83
-92

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9533
SELECT 65 * + CAST( - - ( - - CAST( - + col2 AS SIGNED ) ) AS SIGNED ) + - col2 + + ( - - col0 ) - 84 DIV - 32 * col1 DIV col1 AS col1 FROM tab0
----
-3085
-571
-6435

skipif mysql # not compatible
query I rowsort label-9533
SELECT 65 * + CAST ( - - ( - - CAST ( - + col2 AS INTEGER ) ) AS INTEGER ) + - col2 + + ( - - col0 ) - 84 / - 32 * col1 / col1 AS col1 FROM tab0
----
-3085
-571
-6435

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT ALL - SUM( ALL 66 ) col0 FROM tab1 AS cor0
----
-198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9534
SELECT ALL - SUM ( ALL 66 ) col0 FROM tab1 AS cor0
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-9535
SELECT + COUNT( * ) FROM tab1 WHERE NOT ( - col1 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9535
SELECT + COUNT ( * ) FROM tab1 WHERE NOT ( - col1 ) IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE + + 71 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 - - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + ( + col1 ) AS col0, 17 * - col0 AS col1 FROM tab0
----
1
-1649
21
-1479
81
-255

query II rowsort
SELECT ALL col2 AS col2, 4 FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN - - 55 + + 17 * + + col1 AND - - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9540
SELECT ( 49 ) DIV - - col1 AS col0 FROM tab1 AS cor0
----
1
3
9

skipif mysql # not compatible
query I rowsort label-9540
SELECT ( 49 ) / - - col1 AS col0 FROM tab1 AS cor0
----
1
3
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 13 ) - - + 13 NOT IN ( col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9542
SELECT DISTINCT + col1 DIV - - col2 AS col1 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-9542
SELECT DISTINCT + col1 / - - col2 AS col1 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT ALL col1 * + - ( + col1 ) AS col0 FROM tab0 AS cor0
----
-1
-441
-6561

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9544
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 15 NOT BETWEEN col0 AND - 66 * + - CAST( NULL AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9544
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 15 NOT BETWEEN col0 AND - 66 * + - CAST ( NULL AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT ALL + ( COUNT( * ) ) + - 62 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-9545
SELECT ALL + ( COUNT ( * ) ) + - 62 FROM tab1
----
-59

query I rowsort
SELECT ALL col1 + + - col2 FROM tab0
----
-98
11
34

query I rowsort
SELECT + ( col1 ) AS col0 FROM tab0 WHERE NOT ( + col0 ) NOT IN ( col0 ) AND + ( + ( + col1 ) ) IS NOT NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9548
SELECT - 41 AS col2 FROM tab0 WHERE NOT + + col1 / - - 40 * - CAST( NULL AS SIGNED ) / + - col2 * + 27 + - col0 IS NOT NULL
----
-41
-41
-41

skipif mysql # not compatible
query I rowsort label-9548
SELECT - 41 AS col2 FROM tab0 WHERE NOT + + col1 / - - 40 * - CAST ( NULL AS INTEGER ) / + - col2 * + 27 + - col0 IS NOT NULL
----
-41
-41
-41

query I rowsort
SELECT DISTINCT + 70 * - - col2 * - col0 AS col1 FROM tab1
----
-342720
-351050
-433160

onlyif mysql # aggregate syntax: 
query I rowsort label-9550
SELECT + 99 + - - COUNT( * ) * 79 + + COUNT( DISTINCT - 70 ) * + 26 AS col0 FROM tab0
----
362

skipif mysql # not compatible
query I rowsort label-9550
SELECT + 99 + - - COUNT ( * ) * 79 + + COUNT ( DISTINCT - 70 ) * + 26 AS col0 FROM tab0
----
362

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT 72 * MIN( + 46 ) * - 82 AS col2 FROM tab1
----
-271584

skipif mysql # not compatible
query I rowsort label-9551
SELECT 72 * MIN ( + 46 ) * - 82 AS col2 FROM tab1
----
-271584

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9552
SELECT DISTINCT - CAST( - + 44 AS SIGNED ) FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-9552
SELECT DISTINCT - CAST ( - + 44 AS INTEGER ) FROM tab1
----
44

query I rowsort
SELECT + col1 * col2 * + - ( - - 41 ) AS col1 FROM tab1 AS cor0
----
-12095
-131036
-55104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9554
SELECT DISTINCT CAST( - SUM( ALL 32 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9554
SELECT DISTINCT CAST ( - SUM ( ALL 32 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-96

query II rowsort
SELECT ALL 21 AS col0, col0 FROM tab0 AS cor0
----
21
15
21
87
21
97

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 22 = - col0
----

query II rowsort
SELECT ALL + 83, + col1 * - ( 59 ) * - 76 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= - 6
----

query I rowsort
SELECT 63 AS col0 FROM tab0 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9559
SELECT DISTINCT - MAX( DISTINCT + col1 ) * + 39 AS col0 FROM tab1 AS cor0
----
-1833

skipif mysql # not compatible
query I rowsort label-9559
SELECT DISTINCT - MAX ( DISTINCT + col1 ) * + 39 AS col0 FROM tab1 AS cor0
----
-1833

onlyif mysql # DIV for integer division: 
query I rowsort label-9560
SELECT DISTINCT + col0 + - - col0 - - + col2 DIV + + col2 AS col1 FROM tab0 cor0
----
175
195
31

skipif mysql # not compatible
query I rowsort label-9560
SELECT DISTINCT + col0 + - - col0 - - + col2 / + + col2 AS col1 FROM tab0 cor0
----
175
195
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT - - COUNT( * ) * - COUNT( DISTINCT + col2 ) col0 FROM tab1 cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9561
SELECT - - COUNT ( * ) * - COUNT ( DISTINCT + col2 ) col0 FROM tab1 cor0
----
-9

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 = - col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9563
SELECT ALL col2 DIV - + col0 + + + CAST( + col0 AS SIGNED ) * + col1 + + col1 AS col2 FROM tab2
----
2397
5005
5092

skipif mysql # not compatible
query I rowsort label-9563
SELECT ALL col2 / - + col0 + + + CAST ( + col0 AS INTEGER ) * + col1 + + col1 AS col2 FROM tab2
----
2397
5005
5092

onlyif mysql # aggregate syntax: 
query I rowsort label-9564
SELECT - COUNT( - - col2 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9564
SELECT - COUNT ( - - col2 ) AS col2 FROM tab2
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <= - - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9566
SELECT - col1 DIV + + 71 col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9566
SELECT - col1 / + + 71 col1 FROM tab2
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT ALL + MAX( 45 ) AS col2 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-9567
SELECT ALL + MAX ( 45 ) AS col2 FROM tab0
----
45

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 + - col2 * + ( + - col2 ) NOT IN ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE NOT - 62 IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9570
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( + col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9570
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( + col2 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( col0 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 95 * + - 51 col2, 92 * - + col0 - - 96 + - col0 AS col0 FROM tab2 AS cor0
----
4845
-4182
4845
-5856
4845
-6879

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT DISTINCT - SUM( - + 9 ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9573
SELECT DISTINCT - SUM ( - + 9 ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
81

query II rowsort
SELECT DISTINCT ( - col0 ) * + col1, col1 - + col1 * - + ( + 33 ) AS col2 FROM tab2
----
-2346
1734
-4928
2618
-5025
2278

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9575
SELECT - CAST( col0 AS SIGNED ) + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-9575
SELECT - CAST ( col0 AS INTEGER ) + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9576
SELECT - 37 DIV col1 - + - col1 * + 52 col1 FROM tab2 AS cor0
----
2652
3484
4004

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9576
SELECT - 37 / col1 - + - col1 * + 52 col1 FROM tab2 AS cor0
----
2652
3484
4004

query I rowsort
SELECT ALL - col0 * + 99 AS col1 FROM tab0 AS cor0 WHERE + 77 * + 4 IS NULL
----

query II rowsort
SELECT + col1, - col0 * + col1 FROM tab0 AS cor0
----
1
-97
21
-1827
81
-1215

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE ( 45 * + + 48 + col0 ) NOT BETWEEN 50 + + col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9580
SELECT ALL col0 DIV - 25 + + - 59 AS col1 FROM tab2
----
-60
-61
-62

skipif mysql # not compatible
query I rowsort label-9580
SELECT ALL col0 / - 25 + + - 59 AS col1 FROM tab2
----
-60
-61
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9581
SELECT + COUNT( + 54 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9581
SELECT + COUNT ( + 54 ) FROM tab2
----
3

query I rowsort
SELECT + ( - - ( - - ( + col2 ) ) ) FROM tab2
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col1 col2 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT ALL 75 * - + 85 FROM tab0
----
-6375
-6375
-6375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9585
SELECT ALL col2 AS col2 FROM tab1 WHERE col2 / ( - 23 ) * + col1 * + ( - 48 ) * - + col2 + 62 + 81 NOT IN ( col2 * 62 / + CAST( col2 AS SIGNED ) )
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9585
SELECT ALL col2 AS col2 FROM tab1 WHERE col2 / ( - 23 ) * + col1 * + ( - 48 ) * - + col2 + 62 + 81 NOT IN ( col2 * 62 / + CAST ( col2 AS INTEGER ) )
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT DISTINCT + COUNT( * ) * - - 38 AS col2 FROM tab0
----
114

skipif mysql # not compatible
query I rowsort label-9586
SELECT DISTINCT + COUNT ( * ) * - - 38 AS col2 FROM tab0
----
114

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * - col0, col0 col1 FROM tab2
----
-2116
46
-4096
64
-5625
75

query I rowsort
SELECT ALL + ( + 67 ) * - + 85 FROM tab2
----
-5695
-5695
-5695

query I rowsort
SELECT - 92 AS col1 FROM tab2 WHERE 24 < - 16
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9590
SELECT DISTINCT col2 DIV - - col0 + + 35 AS col1 FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-9590
SELECT DISTINCT col2 / - - col0 + + 35 AS col1 FROM tab2
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9591
SELECT + col0 + col2 AS col2, CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
144
NULL
147
NULL
159
NULL

skipif mysql # not compatible
query II rowsort label-9591
SELECT + col0 + col2 AS col2, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
144
NULL
147
NULL
159
NULL

query I rowsort
SELECT col0 + - col0 + + - 22 + 45 AS col2 FROM tab1
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9593
SELECT - ( + + ( - COUNT( * ) ) ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-9593
SELECT - ( + + ( - COUNT ( * ) ) ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
9

query I rowsort
SELECT DISTINCT - col0 - + col2 FROM tab2 cor0
----
-104
-133
-69

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 cor0 WHERE NOT col1 / - col1 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 6 - + + 52 * + col0 col0, 87 + - + col0 FROM tab2 AS cor0
----
-2386
41
-3322
23
-3894
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT COUNT( * ) - - - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9597
SELECT COUNT ( * ) - - - COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT ALL + - MIN( DISTINCT + + 37 ) AS col0 FROM tab1 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-9598
SELECT ALL + - MIN ( DISTINCT + + 37 ) AS col0 FROM tab1 AS cor0
----
-37

query I rowsort
SELECT ( - 93 ) * - col2 AS col1 FROM tab1
----
5487
6324
8928

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9600
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col0 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9600
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - - col1 * + 0 FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT ( ( NULL ) IS NOT NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + col0 * + col0 + + 86 FROM tab2 AS cor0
----
2202
4182
5711

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT + 15 * - ( - + MIN( 55 ) ) + - 24 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
801

skipif mysql # not compatible
query I rowsort label-9604
SELECT + 15 * - ( - + MIN ( 55 ) ) + - 24 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
801

query I rowsort
SELECT 0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9606
SELECT DISTINCT COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9606
SELECT DISTINCT COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9607
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) DIV + - 32 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9607
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) / + - 32 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9608
SELECT ALL - 70 * col0 * - + col2 DIV + col2 FROM tab1 AS cor0
----
3570
5950
6370

skipif mysql # not compatible
query I rowsort label-9608
SELECT ALL - 70 * col0 * - + col2 / + col2 FROM tab1 AS cor0
----
3570
5950
6370

query I rowsort
SELECT ALL - 21 * + col1 FROM tab1 AS cor0
----
-105
-294
-987

query I rowsort
SELECT ALL - + col1 FROM tab0 AS cor0 WHERE NOT col1 + 95 - 61 + + - col1 * - col1 * - col1 / col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9611
SELECT + + SUM( + 23 ) AS col0, + ( + + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
69
3

skipif mysql # not compatible
query II rowsort label-9611
SELECT + + SUM ( + 23 ) AS col0, + ( + + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
69
3

query I rowsort
SELECT ALL col0 - + + 90 FROM tab2 AS cor0 WHERE 15 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9613
SELECT ALL - + CAST( NULL AS SIGNED ) / - col0 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9613
SELECT ALL - + CAST ( NULL AS INTEGER ) / - col0 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9614
SELECT DISTINCT COUNT( ALL + ( - 38 ) ) DIV + 31 - - COUNT( * ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9614
SELECT DISTINCT COUNT ( ALL + ( - 38 ) ) / + 31 - - COUNT ( * ) col2 FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 * col2 < NULL
----

query I rowsort
SELECT col2 + + - 72 AS col1 FROM tab1
----
-13
-4
24

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT ALL - col1 * - 61 + + col2 FROM tab0 AS cor0
----
1291
160
4988

query I rowsort
SELECT - 65 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-65
-65
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9620
SELECT - COUNT( - col0 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9620
SELECT - COUNT ( - col0 ) FROM tab2 cor0
----
-3

query I rowsort
SELECT ( - ( + col2 ) ) AS col1 FROM tab0
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab0 WHERE - - col2 = NULL
----

query I rowsort
SELECT col2 * + + 14 FROM tab1
----
1344
826
952

query I rowsort
SELECT col2 * - - ( + - 62 ) AS col2 FROM tab2
----
-1426
-2480
-3596

onlyif mysql # aggregate syntax: 
query I rowsort label-9625
SELECT SUM( DISTINCT + col2 ) col1 FROM tab2
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9625
SELECT SUM ( DISTINCT + col2 ) col1 FROM tab2
----
121

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9626
SELECT ALL - CAST( NULL AS DECIMAL ), col0 col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9626
SELECT ALL - CAST ( NULL AS REAL ), col0 col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

onlyif mysql # DIV for integer division: 
query I rowsort label-9627
SELECT - col2 DIV - ( - col1 ) * + 22 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9627
SELECT - col2 / - ( - col1 ) * + 22 AS col2 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 39 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT DISTINCT MIN( DISTINCT col1 ) * + ( - 49 ) FROM tab2
----
-2499

skipif mysql # not compatible
query I rowsort label-9629
SELECT DISTINCT MIN ( DISTINCT col1 ) * + ( - 49 ) FROM tab2
----
-2499

query I rowsort
SELECT col2 * + 18 + - col0 * + + col1 AS col0 FROM tab1 AS cor0
----
-3053
1014
637

query I rowsort
SELECT ALL - col0 + + col1 + + col2 FROM tab1 WHERE - col2 - - + ( + + ( - ( - + col2 ) ) ) + + 82 <= + - col1
----

query II rowsort
SELECT col1 AS col2, 0 + - + col0 - - + col2 FROM tab0
----
1
2
21
-77
81
32

onlyif mysql # DIV for integer division: 
query I rowsort label-9633
SELECT col0 DIV - - col2 + col0 + + col2 AS col1 FROM tab0
----
105
196
62

skipif mysql # not compatible
query I rowsort label-9633
SELECT col0 / - - col2 + col0 + + col2 AS col1 FROM tab0
----
105
196
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT COUNT( * ) AS col0 FROM tab1 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9634
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE NOT col0 IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT - col0 AS col2, - col2 * + 65 FROM tab2 AS cor0
----
-46
-1495
-64
-2600
-75
-3770

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9636
SELECT DISTINCT + CAST( NULL AS SIGNED ), SUM( 88 ) AS col2 FROM tab2 AS cor0
----
NULL
264

skipif mysql # not compatible
query II rowsort label-9636
SELECT DISTINCT + CAST ( NULL AS INTEGER ), SUM ( 88 ) AS col2 FROM tab2 AS cor0
----
NULL
264

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9637
SELECT + COUNT( * ) DIV - - ( + ( - + 2 ) ) + + 74 AS col1 FROM tab2 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-9637
SELECT + COUNT ( * ) / - - ( + ( - + 2 ) ) + + 74 AS col1 FROM tab2 AS cor0
----
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 20 col2, 38 * 23 - + - ( col1 ) AS col0 FROM tab0 AS cor0
----
-20
875
-20
895
-20
955

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT ( + COUNT( 44 ) ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9639
SELECT ( + COUNT ( 44 ) ) col0 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9640
SELECT + CAST( 28 AS SIGNED ) * - col0 - + 70 FROM tab0
----
-2506
-2786
-490

skipif mysql # not compatible
query I rowsort label-9640
SELECT + CAST ( 28 AS INTEGER ) * - col0 - + 70 FROM tab0
----
-2506
-2786
-490

query I rowsort
SELECT ALL - + 21 AS col0 FROM tab1 WHERE 71 * col1 * - col0 + + col2 + + - 70 IS NOT NULL
----
-21
-21
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT ALL - COUNT( DISTINCT - 24 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-9642
SELECT ALL - COUNT ( DISTINCT - 24 ) FROM tab1
----
-1

query I rowsort
SELECT - col0 + + col0 + - col2 FROM tab2
----
-23
-40
-58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT ( - 57 IS NOT NULL ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 * - col2 * + + 4 = 44 * - col0 + col0
----

query I rowsort
SELECT DISTINCT - ( + - col1 ) - - 24 + - + col2 + + col0 FROM tab0
----
122
23
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT + + ( SUM( + col0 ) ) col2 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9647
SELECT + + ( SUM ( + col0 ) ) col2 FROM tab2 AS cor0
----
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 92 col1 FROM tab1 AS cor0
----
92
92
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT ALL - SUM( DISTINCT col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-9649
SELECT ALL - SUM ( DISTINCT col0 ) FROM tab0 AS cor0
----
-199

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 = 93 + - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + - col0, + 0 * + 28 AS col0 FROM tab0 AS cor0
----
-15
0
-87
0
-97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9652
SELECT - + MIN( ALL - col1 ) col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9652
SELECT - + MIN ( ALL - col1 ) col2 FROM tab1 AS cor0
----
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - + 66 * - - col2 FROM tab0 AS cor0
----
-3102
-6534
-660

query II rowsort
SELECT ALL + col1, col2 AS col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

query I rowsort
SELECT DISTINCT - + col1 * + 76 FROM tab2 cor0
----
-3876
-5092
-5852

query II rowsort
SELECT col1, - 64 AS col0 FROM tab1 cor0
----
14
-64
47
-64
5
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9658
SELECT ALL + col1 * + CAST( - 83 AS SIGNED ) + col1 FROM tab1 AS cor0
----
-1148
-3854
-410

skipif mysql # not compatible
query I rowsort label-9658
SELECT ALL + col1 * + CAST ( - 83 AS INTEGER ) + col1 FROM tab1 AS cor0
----
-1148
-3854
-410

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9659
SELECT ALL SUM( 84 ) AS col1, 87 DIV + + COUNT( * ) + - 28 + - COUNT( * ) * + + COUNT( * ) + - + 71 col1 FROM tab0
----
252
-79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9659
SELECT ALL SUM ( 84 ) AS col1, 87 / + + COUNT ( * ) + - 28 + - COUNT ( * ) * + + COUNT ( * ) + - + 71 col1 FROM tab0
----
252
-79

query II rowsort
SELECT ALL + col1 AS col0, - col1 AS col2 FROM tab0 WHERE NOT - col1 + - col1 IS NULL
----
1
-1
21
-21
81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9661
SELECT + SUM( ALL - 54 ) AS col2 FROM tab1
----
-162

skipif mysql # not compatible
query I rowsort label-9661
SELECT + SUM ( ALL - 54 ) AS col2 FROM tab1
----
-162

onlyif mysql # DIV for integer division: 
query I rowsort label-9662
SELECT - 40 DIV - col0 * + + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9662
SELECT - 40 / - col0 * + + col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 cor0 WHERE NULL <= col2
----
0

skipif mysql # not compatible
query I rowsort label-9663
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NULL <= col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT - MIN( - 63 ) FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-9664
SELECT - MIN ( - 63 ) FROM tab2
----
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 39 col0 FROM tab1
----
39

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 20 * + + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9667
SELECT ( + 66 ) DIV - 6 + + 33 AS col2 FROM tab0 AS cor0
----
22
22
22

skipif mysql # not compatible
query I rowsort label-9667
SELECT ( + 66 ) / - 6 + + 33 AS col2 FROM tab0 AS cor0
----
22
22
22

query I rowsort
SELECT 50 + ( + col1 ) + + col1 FROM tab2 AS cor0
----
152
184
204

query I rowsort
SELECT DISTINCT - - 70 AS col2 FROM tab2 AS cor0
----
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 79 + - + col1 col0 FROM tab1
----
32
65
74

query I rowsort
SELECT DISTINCT 58 * col1 FROM tab0
----
1218
4698
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT MAX( + col1 ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-9672
SELECT MAX ( + col1 ) AS col0 FROM tab0
----
81

query I rowsort
SELECT 98 * + 14 AS col2 FROM tab0
----
1372
1372
1372

query I rowsort
SELECT DISTINCT + col0 + + + col1 FROM tab1
----
138
65
90

query I rowsort
SELECT - ( + + 26 ) AS col1 FROM tab2
----
-26
-26
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-9676
SELECT DISTINCT ( + - COUNT( * ) ), - 68 * 94 AS col2 FROM tab1 AS cor0
----
-3
-6392

skipif mysql # not compatible
query II rowsort label-9676
SELECT DISTINCT ( + - COUNT ( * ) ), - 68 * 94 AS col2 FROM tab1 AS cor0
----
-3
-6392

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9677
SELECT DISTINCT MAX( - 44 ) * - SUM( DISTINCT col0 ) + + 50 + + + 26 - + 60 + + COUNT( + 32 ) DIV + - 4 col0 FROM tab1 AS cor0 WHERE NOT 66 IS NULL
----
10004

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9677
SELECT DISTINCT MAX ( - 44 ) * - SUM ( DISTINCT col0 ) + + 50 + + + 26 - + 60 + + COUNT ( + 32 ) / + - 4 col0 FROM tab1 AS cor0 WHERE NOT 66 IS NULL
----
10004

query I rowsort
SELECT - col2 - - 27 + - 88 FROM tab2 AS cor0
----
-101
-119
-84

query II rowsort
SELECT DISTINCT + - ( + col1 ) * - col0 + - - col2 + + 64 * + col0 AS col1, - ( + - ( col0 ) ) * + col2 FROM tab1 AS cor0
----
10169
6188
4074
4896
5924
5015

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( + 2 ) AND + col2 + + col0
----

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) < - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 50 + - 78 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col0 * + 52 AS col0 FROM tab0 AS cor0
----
4524
5044
780

query I rowsort
SELECT - - 90 * - 87 + + - 31 * - - col1 FROM tab0 AS cor0
----
-10341
-7861
-8481

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 6 = NULL
----

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT + - 27 + - col1 IS NULL
----
23
40
58

query II rowsort
SELECT + 77, col0 * + ( + col2 ) AS col2 FROM tab0
----
77
705
77
870
77
9603

query III rowsort
SELECT * FROM tab1 WHERE - 4 <= NULL AND NOT - col1 IS NULL
----

query I rowsort
SELECT ALL ( + + col2 ) AS col1 FROM tab1
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col0 col2 FROM tab1 WHERE NOT - - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9691
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - CAST( NULL AS SIGNED ) + 29 AND NULL
----

skipif mysql # not compatible
query III rowsort label-9691
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - CAST ( NULL AS INTEGER ) + 29 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9692
SELECT CAST( NULL AS DECIMAL ) + col0 * ( + col0 ) + col1 - 56 * - 99 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9692
SELECT CAST ( NULL AS REAL ) + col0 * ( + col0 ) + col1 - 56 * - 99 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col1 * + col0 + + 76 + - col2 FROM tab2 AS cor0
----
2399
4964
5043

query I rowsort
SELECT DISTINCT - col0 * + 98 * + col2 FROM tab2
----
-103684
-250880
-426300

query I rowsort
SELECT DISTINCT col2 * - 61 + - ( 90 ) + col0 FROM tab0
----
-2942
-6032
-613

onlyif mysql # DIV for integer division: 
query I rowsort label-9696
SELECT ALL - col1 DIV 21 AS col2 FROM tab1 cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-9696
SELECT ALL - col1 / 21 AS col2 FROM tab1 cor0
----
-2
0
0

query I rowsort
SELECT ALL + - ( 29 ) AS col1 FROM tab2 AS cor0
----
-29
-29
-29

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 >= - - 24
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9699
SELECT ALL - - col1 + CAST( + 68 AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT + 68 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9699
SELECT ALL - - col1 + CAST ( + 68 AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT + 68 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9700
SELECT + COUNT( * ) AS col0 FROM tab0 cor0 WHERE ( NULL ) <= + ( + 65 )
----
0

skipif mysql # not compatible
query I rowsort label-9700
SELECT + COUNT ( * ) AS col0 FROM tab0 cor0 WHERE ( NULL ) <= + ( + 65 )
----
0

query I rowsort
SELECT DISTINCT 45 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col0 * col0 AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9702
SELECT DISTINCT + 67 * + CAST( NULL AS SIGNED ) * + - col2 + - + col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9702
SELECT DISTINCT + 67 * + CAST ( NULL AS INTEGER ) * + - col2 + - + col2 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL + col1, col2 FROM tab2 AS cor0 WHERE ( NULL ) > ( - + 28 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9704
SELECT CAST( NULL AS SIGNED ) * - 77 * + col2 * col1 / - + 30 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9704
SELECT CAST ( NULL AS INTEGER ) * - 77 * + col2 * col1 / - + 30 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT 56 - - + col0 AS col2, col1 AS col0 FROM tab1 AS cor0
----
107
14
141
5
147
47

query I rowsort
SELECT DISTINCT + col0 * col2 * col0 + + col2 AS col2 FROM tab0
----
10622
75700
931590

onlyif mysql # aggregate syntax: 
query I rowsort label-9707
SELECT 60 - + COUNT( * ) AS col2 FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-9707
SELECT 60 - + COUNT ( * ) AS col2 FROM tab0
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-9708
SELECT - 55 + - SUM( ALL - col1 ) AS col2, COUNT( * ) FROM tab0
----
48
3

skipif mysql # not compatible
query II rowsort label-9708
SELECT - 55 + - SUM ( ALL - col1 ) AS col2, COUNT ( * ) FROM tab0
----
48
3

query I rowsort
SELECT DISTINCT + col1 - 53 + - + 13 * - 10 AS col1 FROM tab1
----
124
82
91

query I rowsort
SELECT ALL - - col1 AS col0 FROM tab1 WHERE col2 <= + 13 + col2
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT DISTINCT SUM( - 80 ) FROM tab1, tab0 AS cor0
----
-720

skipif mysql # not compatible
query I rowsort label-9711
SELECT DISTINCT SUM ( - 80 ) FROM tab1, tab0 AS cor0
----
-720

query I rowsort
SELECT DISTINCT - col1 - - - col1 AS col0 FROM tab0
----
-162
-2
-42

query I rowsort
SELECT - col0 + - col0 + - col0 + - col1 * col0 AS col0 FROM tab2 AS cor0
----
-2484
-5120
-5250

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 29 NOT IN ( + col0, - 0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 cor0 WHERE col1 / col2 * col2 * - 45 * + col2 * + - col0 <= + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9716
SELECT CAST( NULL AS SIGNED ) AS col0, ( col2 ) * + 90 * col1 FROM tab0 AS cor0
----
NULL
18900
NULL
342630
NULL
8910

skipif mysql # not compatible
query II rowsort label-9716
SELECT CAST ( NULL AS INTEGER ) AS col0, ( col2 ) * + 90 * col1 FROM tab0 AS cor0
----
NULL
18900
NULL
342630
NULL
8910

query I rowsort
SELECT - - ( - col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 * col2 + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9718
SELECT - col0 DIV 62 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9718
SELECT - col0 / 62 FROM tab2
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9719
SELECT - COUNT( * ) * COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9719
SELECT - COUNT ( * ) * COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
-6

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 + - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + 31 * - - ( + 64 ) AS col2 FROM tab2 AS cor0
----
1984

onlyif mysql # aggregate syntax: 
query II rowsort label-9722
SELECT COUNT( * ) AS col1, + COUNT( * ) col1 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9722
SELECT COUNT ( * ) AS col1, + COUNT ( * ) col1 FROM tab0 AS cor0
----
3
3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9723
SELECT DISTINCT 98 AS col2, ( - CAST( NULL AS DECIMAL ) ) + - 33 FROM tab2 AS cor0
----
98
NULL

skipif mysql # not compatible
query II rowsort label-9723
SELECT DISTINCT 98 AS col2, ( - CAST ( NULL AS REAL ) ) + - 33 FROM tab2 AS cor0
----
98
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 >= 40 * + 95
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9725
SELECT DISTINCT + - col0 DIV - + ( - ( + + col1 ) ) AS col2 FROM tab1 AS cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-9725
SELECT DISTINCT + - col0 / - + ( - ( + + col1 ) ) AS col2 FROM tab1 AS cor0
----
-1
-17
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT + + col1 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9727
SELECT - CAST( NULL AS SIGNED ) * - col2 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9727
SELECT - CAST ( NULL AS INTEGER ) * - col2 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - - 25 AS col1, 9 FROM tab2 cor0
----
25
9
25
9
25
9

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 WHERE - + 59 IS NOT NULL
----
1
21
81

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 99 * + + col2 IS NOT NULL
----

query I rowsort
SELECT col1 + + - col0 * - col0 * - - 55 FROM tab1
----
143069
397380
455502

onlyif mysql # aggregate syntax: 
query I rowsort label-9732
SELECT DISTINCT MAX( ALL - 38 ) * - MAX( - - 86 ) AS col1 FROM tab2
----
3268

skipif mysql # not compatible
query I rowsort label-9732
SELECT DISTINCT MAX ( ALL - 38 ) * - MAX ( - - 86 ) AS col1 FROM tab2
----
3268

onlyif mysql # DIV for integer division: 
query I rowsort label-9733
SELECT ( + 77 ) DIV 15 + + 55 * - - col2 FROM tab2
----
1270
2205
3195

skipif mysql # not compatible
query I rowsort label-9733
SELECT ( + 77 ) / 15 + + 55 * - - col2 FROM tab2
----
1270
2205
3195

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT - ( ( - + COUNT( * ) ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9734
SELECT - ( ( - + COUNT ( * ) ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + ( col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT col2 > NULL
----

query I rowsort
SELECT - col0 * - 7 + 95 FROM tab1 AS cor0
----
452
690
732

query I rowsort
SELECT + ( 68 ) FROM tab2 AS cor0
----
68
68
68

query II rowsort
SELECT - - col1 * - + 8, - 19 * - 3 + + 67 AS col0 FROM tab1 AS cor0
----
-112
124
-376
124
-40
124

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 1 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT + 99 + + col0 - col2 * - col0 AS col0 FROM tab1
----
5046
5199
6378

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT - ( - COUNT( * ) ) + + COUNT( - - col1 ) AS col0 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-9741
SELECT - ( - COUNT ( * ) ) + + COUNT ( - - col1 ) AS col0 FROM tab1
----
6

query II rowsort
SELECT ALL + 43, col2 FROM tab1 AS cor0
----
43
59
43
68
43
96

query I rowsort
SELECT DISTINCT + ( - + ( + + 0 ) ) AS col2 FROM tab2 AS cor0
----
0

query II rowsort
SELECT + col0, 24 FROM tab1 AS cor0
----
51
24
85
24
91
24

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 35 AS col0 FROM tab0 cor0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9747
SELECT + CAST( + - 95 AS SIGNED ) FROM tab0
----
-95
-95
-95

skipif mysql # not compatible
query I rowsort label-9747
SELECT + CAST ( + - 95 AS INTEGER ) FROM tab0
----
-95
-95
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT + SUM( DISTINCT + + col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-9748
SELECT + SUM ( DISTINCT + + col1 ) FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT DISTINCT - + COUNT( * ) + - COUNT( * ) * COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-90

skipif mysql # not compatible
query I rowsort label-9749
SELECT DISTINCT - + COUNT ( * ) + - COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-90

query I rowsort
SELECT ALL + 14 * + 88 AS col0 FROM tab2 AS cor0
----
1232
1232
1232

query I rowsort
SELECT DISTINCT + + 23 * + col0 AS col1 FROM tab1 AS cor0
----
1173
1955
2093

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 84 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT DISTINCT - - SUM( DISTINCT + col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-9753
SELECT DISTINCT - - SUM ( DISTINCT + col2 ) FROM tab2 AS cor0
----
121

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 51 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col0, - col1 FROM tab2
----
46
-51
64
-77
75
-67

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 NOT BETWEEN 48 + + + col2 AND NULL
----

query I rowsort
SELECT DISTINCT - 29 * - - col2 AS col1 FROM tab1
----
-1711
-1972
-2784

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT NULL BETWEEN - col1 / - col2 * 85 AND NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9759
SELECT DISTINCT SUM( ALL - CAST( + - 91 AS SIGNED ) ) * 4 FROM tab1
----
1092

skipif mysql # not compatible
query I rowsort label-9759
SELECT DISTINCT SUM ( ALL - CAST ( + - 91 AS INTEGER ) ) * 4 FROM tab1
----
1092

query II rowsort
SELECT DISTINCT col2, + 96 FROM tab0
----
10
96
47
96
99
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9761
SELECT DISTINCT - - col2 * col1 DIV - - 54 AS col0 FROM tab2 AS cor0
----
21
57
71

skipif mysql # not compatible
query I rowsort label-9761
SELECT DISTINCT - - col2 * col1 / - - 54 AS col0 FROM tab2 AS cor0
----
21
57
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT ALL COUNT( * ) col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( + col2 * col0, 21, + col2 - + - col2 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9762
SELECT ALL COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( + col2 * col0, 21, + col2 - + - col2 )
----
0

query I rowsort
SELECT 26 * + col2 + - col1 + 94 AS col0 FROM tab0 cor0
----
1235
2667
333

query I rowsort
SELECT + + col0 + + 54 AS col0 FROM tab2 AS cor0
----
100
118
129

onlyif mysql # DIV for integer division: 
query I rowsort label-9765
SELECT - 94 DIV - ( 45 ) + - - col0 FROM tab2 AS cor0
----
48
66
77

skipif mysql # not compatible
query I rowsort label-9765
SELECT - 94 / - ( 45 ) + - - col0 FROM tab2 AS cor0
----
48
66
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9766
SELECT DISTINCT COUNT( * ) * + 22 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
198

skipif mysql # not compatible
query I rowsort label-9766
SELECT DISTINCT COUNT ( * ) * + 22 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9767
SELECT + CAST( - col2 AS SIGNED ) * ( - 19 ) FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9767
SELECT + CAST ( - col2 AS INTEGER ) * ( - 19 ) FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) < - + 77
----

query I rowsort
SELECT DISTINCT + 19 AS col0 FROM tab2 cor0
----
19

query I rowsort
SELECT - col1 - - - 42 * - col1 AS col2 FROM tab1 AS cor0
----
1927
205
574

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
23
40
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - - col1 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + - col1 - + col1, - col0 * - col2 AS col2 FROM tab0 AS cor0
----
-162
705
-2
9603
-42
870

query I rowsort
SELECT col1 * + + col1 - - col0 AS col0 FROM tab0 cor0
----
528
6576
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9775
SELECT + COUNT( * ) + MAX( ALL + 8 ) col0 FROM tab1 AS cor0
----
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9775
SELECT + COUNT ( * ) + MAX ( ALL + 8 ) col0 FROM tab1 AS cor0
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9776
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - ( - AVG ( DISTINCT + col1 ) ) - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9776
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - ( - AVG ( DISTINCT + col1 ) ) - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - - col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
51
85
91

query I rowsort
SELECT + - col0 * - 68 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - - col2 * - + col1
----

query I rowsort
SELECT ALL - - col0 * col1 AS col0 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
2346
4928
5025

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 <> - - 35
----

query I rowsort
SELECT - 92 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT + - COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-9782
SELECT + - COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

query I rowsort
SELECT col1 * - 58 AS col0 FROM tab1
----
-2726
-290
-812

query I rowsort
SELECT ALL 86 * - col0 * + col1 FROM tab0 AS cor0
----
-104490
-157122
-8342

onlyif mysql # aggregate syntax: 
query I rowsort label-9785
SELECT SUM( ALL + - col0 ) * - - COUNT( * ) FROM tab1 AS cor0
----
-681

skipif mysql # not compatible
query I rowsort label-9785
SELECT SUM ( ALL + - col0 ) * - - COUNT ( * ) FROM tab1 AS cor0
----
-681

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9786
SELECT DISTINCT - CAST( - - col2 AS SIGNED ) FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-9786
SELECT DISTINCT - CAST ( - - col2 AS INTEGER ) FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT ALL - 12 AS col2 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-12
-12
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-9788
SELECT DISTINCT - COUNT( * ) AS col2, 52 AS col2 FROM tab2
----
-3
52

skipif mysql # not compatible
query II rowsort label-9788
SELECT DISTINCT - COUNT ( * ) AS col2, 52 AS col2 FROM tab2
----
-3
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT - ( MIN( ALL - col1 ) ) + - 64 AS col0 FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-9789
SELECT - ( MIN ( ALL - col1 ) ) + - 64 AS col0 FROM tab0
----
17

query I rowsort
SELECT ALL - + col1 FROM tab1 WHERE - 41 * 45 BETWEEN + col0 + + - col0 * - + 93 * + col0 AND + col0 * - 82
----

query I rowsort
SELECT ALL - 68 + + col2 AS col2 FROM tab0
----
-21
-58
31

query I rowsort
SELECT DISTINCT 53 * - col0 AS col0 FROM tab0
----
-4611
-5141
-795

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9793
SELECT - CAST( NULL AS SIGNED ) + + - 74 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9793
SELECT - CAST ( NULL AS INTEGER ) + + - 74 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + 70 AS col1 FROM tab0
----
151
71
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9795
SELECT - AVG ( + col2 ) FROM tab1 WHERE NULL NOT IN ( col2 * CAST( NULL AS SIGNED ) + col1 * + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9795
SELECT - AVG ( + col2 ) FROM tab1 WHERE NULL NOT IN ( col2 * CAST ( NULL AS INTEGER ) + col1 * + col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9796
SELECT + 10 AS col2, COUNT( DISTINCT + col0 ) AS col2 FROM tab1
----
10
3

skipif mysql # not compatible
query II rowsort label-9796
SELECT + 10 AS col2, COUNT ( DISTINCT + col0 ) AS col2 FROM tab1
----
10
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9797
SELECT DISTINCT CAST( - 22 AS SIGNED ) AS col1 FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-9797
SELECT DISTINCT CAST ( - 22 AS INTEGER ) AS col1 FROM tab1
----
-22

query I rowsort
SELECT col0 * - - 31 FROM tab1 AS cor0
----
1581
2635
2821

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9799
SELECT * FROM tab0 AS cor0 WHERE + col0 <> CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9799
SELECT * FROM tab0 AS cor0 WHERE + col0 <> CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - col2 + + col0 - col2 + + + col2 * + 23 FROM tab2
----
1293
529
904

query I rowsort
SELECT - 99 AS col0 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9802
SELECT ALL - 0 * col2 - 66 DIV col1 - + - ( - col1 ) FROM tab1 cor0
----
-18
-18
-48

skipif mysql # not compatible
query I rowsort label-9802
SELECT ALL - 0 * col2 - 66 / col1 - + - ( - col1 ) FROM tab1 cor0
----
-18
-18
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> col2
----
0

skipif mysql # not compatible
query I rowsort label-9803
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> col2
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col2 - + + 28 >= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= 16 * + + col0 * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9806
SELECT ALL + col2 * - + 49 - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9806
SELECT ALL + col2 * - + 49 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 65 ) = - 6 * - + 71 - - 17
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + ( - + 61 ) * + 9 + + col2 FROM tab0 AS cor0
----
-450
-502
-539

onlyif mysql # DIV for integer division: 
query II rowsort label-9809
SELECT ALL col1 DIV col0 AS col2, + col0 col2 FROM tab0
----
0
87
0
97
5
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9809
SELECT ALL col1 / col0 AS col2, + col0 col2 FROM tab0
----
0
87
0
97
5
15

onlyif mysql # DIV for integer division: 
query II rowsort label-9810
SELECT 49 DIV 40 AS col1, - col2 DIV + col0 AS col1 FROM tab2
----
1
0
1
0
1
0

skipif mysql # not compatible
query II rowsort label-9810
SELECT 49 / 40 AS col1, - col2 / + col0 AS col1 FROM tab2
----
1
0
1
0
1
0

query I rowsort
SELECT DISTINCT + 49 * - col2 AS col2 FROM tab0
----
-2303
-4851
-490

onlyif mysql # DIV for integer division: 
query I rowsort label-9812
SELECT - 27 DIV 58 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9812
SELECT - 27 / 58 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 * + 41 * + - col2 * col1 + 22 col2 FROM tab1 WHERE NOT ( 72 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + 69 * + col1 FROM tab2 AS cor0
----
3519
4623
5313

onlyif mysql # aggregate syntax: 
query I rowsort label-9815
SELECT ALL - MIN( + + col1 ) FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9815
SELECT ALL - MIN ( + + col1 ) FROM tab1 cor0
----
-5

query I rowsort
SELECT + + 26 * + col2 FROM tab1 AS cor0
----
1534
1768
2496

query I rowsort
SELECT ( - col2 ) + + + col0 + + col2 AS col0 FROM tab0
----
15
87
97

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 36 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9819
SELECT ALL + col0 AS col1, + col1 + + CAST( - + col1 AS SIGNED ) * - 22 FROM tab2 cor0
----
46
1173
64
1771
75
1541

skipif mysql # not compatible
query II rowsort label-9819
SELECT ALL + col0 AS col1, + col1 + + CAST ( - + col1 AS INTEGER ) * - 22 FROM tab2 cor0
----
46
1173
64
1771
75
1541

query I rowsort
SELECT 90 FROM tab1 AS cor0 WHERE NOT ( NULL <= NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, col2 * + col0 FROM tab0 AS cor0
----
15
705
87
870
97
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-9822
SELECT MAX( + 90 ) AS col1 FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-9822
SELECT MAX ( + 90 ) AS col1 FROM tab2 AS cor0
----
90

query I rowsort
SELECT DISTINCT - + 2 FROM tab2 WHERE NULL = + - 30 * + col2 / + col0 + - + col2
----

query I rowsort
SELECT DISTINCT - 2 + - col1 * + 92 * - col1 FROM tab2
----
239290
412986
545466

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9825
SELECT DISTINCT MIN( + CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9825
SELECT DISTINCT MIN ( + CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col1 + - + col1 AS col0 FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < col1 / ( - - col2 ) + - - 19 - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9828
SELECT + - ( + - CAST( NULL AS SIGNED ) ) + ( + col2 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9828
SELECT + - ( + - CAST ( NULL AS INTEGER ) ) + ( + col2 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9829
SELECT ALL - + CAST( - + 73 AS SIGNED ) * + col2 + - col0 AS col1 FROM tab2 AS cor0
----
1633
2856
4159

skipif mysql # not compatible
query I rowsort label-9829
SELECT ALL - + CAST ( - + 73 AS INTEGER ) * + col2 + - col0 AS col1 FROM tab2 AS cor0
----
1633
2856
4159

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col1 + ( + - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9831
SELECT ALL - COUNT( * ) + + + 80 AS col2 FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-9831
SELECT ALL - COUNT ( * ) + + + 80 AS col2 FROM tab0
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 41 col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-41

query I rowsort
SELECT col2 - - - col0 + + col1 FROM tab1
----
-21
24
59

query I rowsort
SELECT DISTINCT + + col2 - - - col1 AS col1 FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT ALL - - col2 - - col2 FROM tab0 AS cor0
----
198
20
94

query I rowsort
SELECT DISTINCT 52 AS col2 FROM tab2 cor0
----
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 95 col2 FROM tab0 AS cor0
----
95
95
95

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9838
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( col0 AS DECIMAL ) NOT IN ( + col2 + - + col0, - col0 )
----

skipif mysql # not compatible
query III rowsort label-9838
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( col0 AS REAL ) NOT IN ( + col2 + - + col0, - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT ALL + + COUNT( ALL - col2 ) * 14 AS col0 FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-9839
SELECT ALL + + COUNT ( ALL - col2 ) * 14 AS col0 FROM tab1 AS cor0
----
42

query I rowsort
SELECT col0 * col2 - - + 80 + + col2 FROM tab2 cor0
----
1161
2680
4488

query I rowsort
SELECT DISTINCT - col0 * + + col2 * + col1 AS col1 FROM tab0 AS cor0
----
-18270
-57105
-9603

query I rowsort
SELECT DISTINCT + 53 * - + col1 FROM tab0 AS cor0
----
-1113
-4293
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-9843
SELECT ALL - col0 DIV + + 36 FROM tab0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-9843
SELECT ALL - col0 / + + 36 FROM tab0
----
-2
-2
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT MAX( 99 ) AS col2 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-9845
SELECT MAX ( 99 ) AS col2 FROM tab0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9846
SELECT CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) + - 39 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9846
SELECT CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) + - 39 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9847
SELECT DISTINCT col2, + CAST( NULL AS SIGNED ) * col2 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-9847
SELECT DISTINCT col2, + CAST ( NULL AS INTEGER ) * col2 FROM tab0
----
10
NULL
47
NULL
99
NULL

query II rowsort
SELECT ALL - col2 AS col1, - col2 FROM tab2
----
-23
-23
-40
-40
-58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT MAX( ALL - col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-9849
SELECT MAX ( ALL - col1 ) FROM tab2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT ALL - COUNT( * ) * + 2 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-9850
SELECT ALL - COUNT ( * ) * + 2 FROM tab2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT + SUM( col2 ) * 26 FROM tab0 AS cor0
----
4056

skipif mysql # not compatible
query I rowsort label-9851
SELECT + SUM ( col2 ) * 26 FROM tab0 AS cor0
----
4056

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT ALL + MIN( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-9852
SELECT ALL + MIN ( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-9853
SELECT DISTINCT + COUNT( * ), - COUNT( * ) col1 FROM tab1 AS cor0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9853
SELECT DISTINCT + COUNT ( * ), - COUNT ( * ) col1 FROM tab1 AS cor0
----
3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9854
SELECT DISTINCT - COUNT( * ) * - MAX( + - col0 ) FROM tab2 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-9854
SELECT DISTINCT - COUNT ( * ) * - MAX ( + - col0 ) FROM tab2 AS cor0
----
-138

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * + - 9 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( + ( 43 ) ) FROM tab0 AS cor0
----
43

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 WHERE NOT - + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9858
SELECT 43 DIV 48 * ( + 64 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9858
SELECT 43 / 48 * ( + 64 ) FROM tab1
----
0
0
0

query I rowsort
SELECT 35 * - - col2 AS col1 FROM tab2 AS cor0
----
1400
2030
805

query II rowsort
SELECT DISTINCT 25 * - - 39, - 54 AS col2 FROM tab2 AS cor0
----
975
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9861
SELECT ALL + + CAST( NULL AS SIGNED ) / 0 * CAST( - col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9861
SELECT ALL + + CAST ( NULL AS INTEGER ) / 0 * CAST ( - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + col1 + - col1, + 13 AS col1 FROM tab1 AS cor0
----
0
13
0
13
0
13

query I rowsort
SELECT DISTINCT col2 + col0 + + - col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - - 45 AS col2 FROM tab0 AS cor0
----
45
45
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9865
SELECT ALL 59 * + ( - CAST( 94 AS SIGNED ) ) + - col2, col2 AS col2 FROM tab1 AS cor0
----
-5605
59
-5614
68
-5642
96

skipif mysql # not compatible
query II rowsort label-9865
SELECT ALL 59 * + ( - CAST ( 94 AS INTEGER ) ) + - col2, col2 AS col2 FROM tab1 AS cor0
----
-5605
59
-5614
68
-5642
96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9866
SELECT DISTINCT - - CAST( + COUNT( * ) AS DECIMAL ) + - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9866
SELECT DISTINCT - - CAST ( + COUNT ( * ) AS REAL ) + - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 73 + - + col2 * 35 * - col1 * - col2 FROM tab0
----
-343108
-6262588
-73573

query I rowsort
SELECT DISTINCT + col2 * + + col1 - col0 FROM tab1
----
1293
210
3105

query I rowsort
SELECT ALL col2 * - + ( + 50 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 33 <= ( 38 - col0 )
----

query I rowsort
SELECT - + 43 * col1 + 5 - 45 + - - col2 + + - 32 + - 37 + col0 * + 8 AS col1 FROM tab1 cor0
----
-1334
-207
415

query I rowsort
SELECT DISTINCT - - 67 AS col0 FROM tab1 AS cor0
----
67

query I rowsort
SELECT ALL - col0 + + - 16 FROM tab2 cor0
----
-62
-80
-91

query I rowsort
SELECT + 81 * + col0 FROM tab2
----
3726
5184
6075

onlyif mysql # DIV for integer division: 
query I rowsort label-9875
SELECT col1 DIV col2 + + 32 AS col0 FROM tab2
----
33
33
34

skipif mysql # not compatible
query I rowsort label-9875
SELECT col1 / col2 + + 32 AS col0 FROM tab2
----
33
33
34

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9876
SELECT * FROM tab1 WHERE ( - 87 * + CAST( NULL AS SIGNED ) ) < NULL
----

skipif mysql # not compatible
query III rowsort label-9876
SELECT * FROM tab1 WHERE ( - 87 * + CAST ( NULL AS INTEGER ) ) < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9878
SELECT - COUNT( * ) * - MAX( ALL + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9878
SELECT - COUNT ( * ) * - MAX ( ALL + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE + 12 <= NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NOT - col2 >= ( col0 )
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9881
SELECT MAX( DISTINCT - col1 ) + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9881
SELECT MAX ( DISTINCT - col1 ) + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col1 col0 FROM tab1 WHERE NOT col0 NOT IN ( col0 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT ALL COUNT( DISTINCT - col0 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9883
SELECT ALL COUNT ( DISTINCT - col0 ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9884
SELECT DISTINCT MAX( DISTINCT + col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-9884
SELECT DISTINCT MAX ( DISTINCT + col1 ) FROM tab0
----
81

query I rowsort
SELECT ALL + col2 + 8 FROM tab2
----
31
48
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT ALL COUNT( * ) AS col0 FROM tab2 WHERE 17 * 34 >= ( ( + col1 ) )
----
3

skipif mysql # not compatible
query I rowsort label-9886
SELECT ALL COUNT ( * ) AS col0 FROM tab2 WHERE 17 * 34 >= ( ( + col1 ) )
----
3

query I rowsort
SELECT + col0 + 2 AS col1 FROM tab0
----
17
89
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9888
SELECT ALL - COUNT( + CAST( + col2 AS SIGNED ) ) - - 36 AS col2 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-9888
SELECT ALL - COUNT ( + CAST ( + col2 AS INTEGER ) ) - - 36 AS col2 FROM tab1
----
33

query I rowsort
SELECT col2 * + col2 - col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9890
SELECT ALL CAST( NULL AS SIGNED ) * ( - COUNT( * ) ) + 94 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9890
SELECT ALL CAST ( NULL AS INTEGER ) * ( - COUNT ( * ) ) + 94 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + col0 + 5 FROM tab0
----
102
20
92

query I rowsort
SELECT ALL + 17 AS col2 FROM tab2 WHERE - col1 > 21
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT 7 + + MIN( ALL col2 ) AS col1 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-9893
SELECT 7 + + MIN ( ALL col2 ) AS col1 FROM tab2
----
30

query I rowsort
SELECT ALL col2 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + col0 + 69 AS col1 FROM tab1
----
120
154
160

query I rowsort
SELECT DISTINCT ( col2 ) + - col1 AS col2 FROM tab0
----
-11
-34
98

query I rowsort
SELECT 31 - - col2 FROM tab2
----
54
71
89

query I rowsort
SELECT ALL - 44 * + col0 AS col2 FROM tab2 cor0
----
-2024
-2816
-3300

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 + + 73 * 49 IS NULL
----

query I rowsort
SELECT 10 + - col0 AS col1 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9901
SELECT 84 * col2 + 76 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9901
SELECT 84 * col2 + 76 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9902
SELECT - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-9902
SELECT - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 WHERE NULL < NULL
----
0

query I rowsort
SELECT ALL 56 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT DISTINCT 53 * col0 FROM tab1
----
2703
4505
4823

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9905
SELECT ALL - SUM( 40 ) DIV + COUNT( + col2 ) FROM tab0 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-9905
SELECT ALL - SUM ( 40 ) / + COUNT ( + col2 ) FROM tab0 AS cor0
----
-40

query I rowsort
SELECT - - col2 * + 96 AS col0 FROM tab0 AS cor0
----
4512
9504
960

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 68 IN ( + col2 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9908
SELECT ALL MAX( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9908
SELECT ALL MAX ( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-9909
SELECT - col0 DIV + 96 + - col0 * col1 col1 FROM tab0 AS cor0 WHERE ( col2 ) * col2 IS NOT NULL
----
-1215
-1827
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9909
SELECT - col0 / + 96 + - col0 * col1 col1 FROM tab0 AS cor0 WHERE ( col2 ) * col2 IS NOT NULL
----
-1215
-1827
-98

query I rowsort
SELECT + + col0 * 41 FROM tab1 AS cor0
----
2091
3485
3731

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 95 * - 32 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9912
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) + - 54 <> ( 88 )
----

skipif mysql # not compatible
query III rowsort label-9912
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) + - 54 <> ( 88 )
----

query I rowsort
SELECT - 3 AS col2 FROM tab2 cor0
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9914
SELECT + MIN( DISTINCT 77 ) AS col1 FROM tab1 cor0
----
77

skipif mysql # not compatible
query I rowsort label-9914
SELECT + MIN ( DISTINCT 77 ) AS col1 FROM tab1 cor0
----
77

query I rowsort
SELECT - 85 * col1 AS col2 FROM tab1 AS cor0
----
-1190
-3995
-425

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 61 <= col2
----
85
5
59

query I rowsort
SELECT ALL + + 34 + 74 AS col1 FROM tab2 AS cor0
----
108
108
108

onlyif mysql # aggregate syntax: 
query I rowsort label-9918
SELECT 8 * + COUNT( * ) AS col0 FROM tab1 WHERE 41 IS NOT NULL
----
24

skipif mysql # not compatible
query I rowsort label-9918
SELECT 8 * + COUNT ( * ) AS col0 FROM tab1 WHERE 41 IS NOT NULL
----
24

query I rowsort
SELECT 50 - - col2 FROM tab2
----
108
73
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9920
SELECT ALL 10 + - CAST( + 36 AS SIGNED ) + col2 FROM tab1
----
33
42
70

skipif mysql # not compatible
query I rowsort label-9920
SELECT ALL 10 + - CAST ( + 36 AS INTEGER ) + col2 FROM tab1
----
33
42
70

query I rowsort
SELECT ALL + col2 + + + col2 + + col2 AS col2 FROM tab1
----
177
204
288

query I rowsort
SELECT DISTINCT col1 + + 18 * + ( col2 ) FROM tab1
----
1067
1271
1742

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> ( col2 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT DISTINCT - MAX( ALL - col0 ) - 25 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-9924
SELECT DISTINCT - MAX ( ALL - col0 ) - 25 FROM tab0
----
-10

query I rowsort
SELECT ALL - ( col2 ) + - col0 AS col0 FROM tab1
----
-144
-147
-159

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN 46 + - col2 AND + 9
----

query I rowsort
SELECT + 64 FROM tab0 WHERE + col2 >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9928
SELECT COUNT( * ) DIV 16 AS col0 FROM tab2 AS cor0 WHERE col1 + - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9928
SELECT COUNT ( * ) / 16 AS col0 FROM tab2 AS cor0 WHERE col1 + - col2 IS NULL
----
0

query I rowsort
SELECT + + col0 * + - col2 AS col0 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT col0 * col2 * - col0 + - 96 FROM tab1 AS cor0
----
-249792
-426371
-563204

onlyif mysql # aggregate syntax: 
query I rowsort label-9931
SELECT + - SUM( ALL + + 36 ) FROM tab0 cor0
----
-108

skipif mysql # not compatible
query I rowsort label-9931
SELECT + - SUM ( ALL + + 36 ) FROM tab0 cor0
----
-108

query I rowsort
SELECT + 67 + - 12 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT ( col1 * - 21 / + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT ALL - - 28 * + + COUNT( - ( + 45 ) ) AS col2 FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-9934
SELECT ALL - - 28 * + + COUNT ( - ( + 45 ) ) AS col2 FROM tab2 AS cor0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9935
SELECT + - ( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9935
SELECT + - ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 76 col0 FROM tab0 AS cor0
----
-76
-76
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT + SUM( + + col2 ) AS col0 FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-9937
SELECT + SUM ( + + col2 ) AS col0 FROM tab2 cor0
----
121

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 35 >= + ( 65 ) - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9939
SELECT + ( + - MAX( ALL + - col0 ) ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-9939
SELECT + ( + - MAX ( ALL + - col0 ) ) FROM tab2 AS cor0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9940
SELECT ALL - CAST( 46 AS SIGNED ), + col1 * - col0 AS col2 FROM tab1
----
-46
-425
-46
-4277
-46
-714

skipif mysql # not compatible
query II rowsort label-9940
SELECT ALL - CAST ( 46 AS INTEGER ), + col1 * - col0 AS col2 FROM tab1
----
-46
-425
-46
-4277
-46
-714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9941
SELECT DISTINCT 99 + - col1 / + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT ( + - 90 + 74 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9941
SELECT DISTINCT 99 + - col1 / + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT ( + - 90 + 74 ) IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 <= col2
----
85
5
59
91
47
68

query II rowsort
SELECT col1 * - + col1, + 79 AS col1 FROM tab1
----
-196
79
-2209
79
-25
79

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 = - col2 + 97 / col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 49 * - col0, - 32 AS col0 FROM tab2
----
-2254
-32
-3136
-32
-3675
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT COUNT( * ) * MIN( ALL + 18 ) * + + COUNT( * ) FROM tab2
----
162

skipif mysql # not compatible
query I rowsort label-9946
SELECT COUNT ( * ) * MIN ( ALL + 18 ) * + + COUNT ( * ) FROM tab2
----
162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9947
SELECT ALL - CAST( col2 AS SIGNED ) * - 28 + + 76 + col2 AS col2 FROM tab2
----
1236
1758
743

skipif mysql # not compatible
query I rowsort label-9947
SELECT ALL - CAST ( col2 AS INTEGER ) * - 28 + + 76 + col2 AS col2 FROM tab2
----
1236
1758
743

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9948
SELECT col0 * + - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9948
SELECT col0 * + - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT + COUNT( * ) * COUNT( * ) + 14 FROM tab1 cor0
----
23

skipif mysql # not compatible
query I rowsort label-9949
SELECT + COUNT ( * ) * COUNT ( * ) + 14 FROM tab1 cor0
----
23

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 86 <> + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9951
SELECT DISTINCT CAST( 40 AS SIGNED ) + - - 61 FROM tab1 cor0
----
101

skipif mysql # not compatible
query I rowsort label-9951
SELECT DISTINCT CAST ( 40 AS INTEGER ) + - - 61 FROM tab1 cor0
----
101

query I rowsort
SELECT ALL - col1 + + 38 AS col1 FROM tab0 cor0
----
-43
17
37

query I rowsort
SELECT - col2 FROM tab1 WHERE NULL < + - ( + - 12 ) + col2 * + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9954
SELECT DISTINCT + col0 DIV + + col2 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-9954
SELECT DISTINCT + col0 / + + col2 FROM tab2 AS cor0
----
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9955
SELECT - col2 + + col0 + - + col0 * 25 DIV - col1 AS col2 FROM tab0 AS cor0
----
-28
180
2423

skipif mysql # not compatible
query I rowsort label-9955
SELECT - col2 + + col0 + - + col0 * 25 / - col1 AS col2 FROM tab0 AS cor0
----
-28
180
2423

onlyif mysql # DIV for integer division: 
query I rowsort label-9956
SELECT - + 67 DIV 67 + col1 + + 66 + + + col0 AS col0 FROM tab0 cor0
----
161
163
173

skipif mysql # not compatible
query I rowsort label-9956
SELECT - + 67 / 67 + col1 + + 66 + + + col0 AS col0 FROM tab0 cor0
----
161
163
173

query I rowsort
SELECT - col0 * + 20 + col2 AS col0 FROM tab1 AS cor0 WHERE col2 - + col0 / + 72 IS NOT NULL
----
-1641
-1752
-924

query II rowsort
SELECT DISTINCT 79, col1 AS col0 FROM tab2 cor0
----
79
51
79
67
79
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9959
SELECT - MAX( DISTINCT - + col1 ) AS col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9959
SELECT - MAX ( DISTINCT - + col1 ) AS col1 FROM tab1 AS cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9960
SELECT + 1 / + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9960
SELECT + 1 / + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT 95 AS col0, 4 FROM tab2
----
95
4
95
4
95
4

query I rowsort
SELECT - col2 FROM tab1 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9963
SELECT DISTINCT col0 * - col2 FROM tab0 WHERE + CAST( 25 AS SIGNED ) * ( + col2 ) + col1 IS NOT NULL
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-9963
SELECT DISTINCT col0 * - col2 FROM tab0 WHERE + CAST ( 25 AS INTEGER ) * ( + col2 ) + col1 IS NOT NULL
----
-705
-870
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-9964
SELECT ALL col1 - - 48 DIV - + 62 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9964
SELECT ALL col1 - - 48 / - + 62 FROM tab0
----
1
21
81

query I rowsort
SELECT col2 - + 39 FROM tab1
----
20
29
57

query II rowsort
SELECT DISTINCT col0, - ( - 11 ) + - col1 AS col2 FROM tab0 AS cor0
----
15
-70
87
-10
97
10

query I rowsort
SELECT ALL - - 6 AS col0 FROM tab0 cor0
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9968
SELECT DISTINCT - - MIN( DISTINCT + + 59 ) AS col2 FROM tab1 WHERE NOT + - 53 > + + col1
----
59

skipif mysql # not compatible
query I rowsort label-9968
SELECT DISTINCT - - MIN ( DISTINCT + + 59 ) AS col2 FROM tab1 WHERE NOT + - 53 > + + col1
----
59

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( ( - col0 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9970
SELECT ALL * FROM tab0 AS cor0 WHERE 71 * + 64 + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9970
SELECT ALL * FROM tab0 AS cor0 WHERE 71 * + 64 + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 26 AS col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
26

query I rowsort
SELECT DISTINCT + + 52 AS col0 FROM tab0 cor0
----
52

query I rowsort
SELECT ALL + - ( + 34 ) FROM tab0 AS cor0
----
-34
-34
-34

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9974
SELECT ALL * FROM tab0 AS cor0 WHERE ( - 23 * - CAST( col2 AS SIGNED ) + - - col1 ) > NULL
----

skipif mysql # not compatible
query III rowsort label-9974
SELECT ALL * FROM tab0 AS cor0 WHERE ( - 23 * - CAST ( col2 AS INTEGER ) + - - col1 ) > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 97 AND col1
----

query I rowsort
SELECT col0 * - + 9 FROM tab0
----
-135
-783
-873

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9977
SELECT CAST( NULL AS SIGNED ) AS col0, col2 DIV - col0 AS col0 FROM tab2
----
NULL
0
NULL
0
NULL
0

skipif mysql # not compatible
query II rowsort label-9977
SELECT CAST ( NULL AS INTEGER ) AS col0, col2 / - col0 AS col0 FROM tab2
----
NULL
0
NULL
0
NULL
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9978
SELECT col1 DIV - + 19 AS col2 FROM tab2
----
-2
-3
-4

skipif mysql # not compatible
query I rowsort label-9978
SELECT col1 / - + 19 AS col2 FROM tab2
----
-2
-3
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - - 63 col2 FROM tab2
----
103
121
86

query I rowsort
SELECT col1 * - col1 * - - col2 FROM tab1
----
-1475
-150212
-18816

query I rowsort
SELECT + col0 - - col0 - 14 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 99 + + - col2 + + col2 * + col2 FROM tab2 AS cor0
----
1659
3405
605

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col2 col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 + col2 - + - col0 * - 31 FROM tab0
----
-2697
-3007
-465

onlyif mysql # aggregate syntax: 
query I rowsort label-9985
SELECT - 60 + + COUNT( + col0 ) AS col0 FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-9985
SELECT - 60 + + COUNT ( + col0 ) AS col0 FROM tab2
----
-57

query I rowsort
SELECT ALL - 72 * ( - col1 ) + col1 + - col1 FROM tab0
----
1512
5832
72

query III rowsort
SELECT * FROM tab0 WHERE + col0 IN ( col2, 7 + 25 )
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT 76 IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9989
SELECT DISTINCT + col2 - - - col1 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9989
SELECT DISTINCT + col2 - - - col1 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9990
SELECT - COUNT( * ) * - 17 AS col0 FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9990
SELECT - COUNT ( * ) * - 17 AS col0 FROM tab0 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9991
SELECT DISTINCT + COUNT( - 5 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9991
SELECT DISTINCT + COUNT ( - 5 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 82 <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col1 ) <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 - - + col1 NOT IN ( + 51 / + col2 / - col2 + - col0 + - + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT DISTINCT + - MAX( col1 ) + 51 AS col0 FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-9995
SELECT DISTINCT + - MAX ( col1 ) + 51 AS col0 FROM tab2 AS cor0
----
-26

query I rowsort
SELECT col2 + + - 58 FROM tab0
----
-11
-48
41

query II rowsort
SELECT + 10 + - ( - - col1 ), + col1 FROM tab1
----
-37
47
-4
14
5
5

query III rowsort
SELECT * FROM tab2 WHERE - ( + - col2 ) IN ( + col1 )
----

query I rowsort
SELECT ALL ( + col0 ) + + + col1 AS col2 FROM tab0
----
108
96
98

