sqllogictest
Artifact Content
Not logged in

Artifact e7004278bdeb81f071ed1e553c5f460b96383325:


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 ) / -