sqllogictest
Artifact Content
Not logged in

Artifact fdceb89ce86874e02d96a8d2dc55fd0a07adef32:


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 # aggregate syntax: 
query I rowsort label-0
SELECT DISTINCT MAX( DISTINCT ( 7 ) ) FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-0
SELECT DISTINCT MAX ( DISTINCT ( 7 ) ) FROM tab2
----
7

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

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

query I rowsort
SELECT + ( - 96 ) FROM tab2
----
-96
-96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3
SELECT ALL 88 + + 62 * COUNT( * ) AS col0 FROM tab1
----
274

skipif mysql # not compatible
query I rowsort label-3
SELECT ALL 88 + + 62 * COUNT ( * ) AS col0 FROM tab1
----
274

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT ALL + 0 + SUM( + 3 ) FROM tab1 WHERE ( NULL ) IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-4
SELECT ALL + 0 + SUM ( + 3 ) FROM tab1 WHERE ( NULL ) IS NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5
SELECT SUM( col1 ) col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5
SELECT SUM ( col1 ) col2 FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-6
SELECT MAX( ALL 53 ) AS col1 FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-6
SELECT MAX ( ALL 53 ) AS col1 FROM tab2 AS cor0
----
53

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

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

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

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

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

query I rowsort
SELECT + 62 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < 66
----

query I rowsort
SELECT DISTINCT + 56 * 21 FROM tab1 AS cor0
----
1176

query I rowsort
SELECT ( - 27 ) * + ( - 92 ) FROM tab2 AS cor0
----
2484
2484
2484

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

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * + 34 IN ( + 64 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 * - 12 AS col1 FROM tab1 AS cor0 WHERE NULL = ( - 50 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-19
SELECT - col0 + + CAST( ( 28 ) AS SIGNED ) * - col2 AS col0 FROM tab0 AS cor0 WHERE col1 * + col1 IS NOT NULL
----
-1331
-2869
-367

skipif mysql # not compatible
query I rowsort label-19
SELECT - col0 + + CAST ( ( 28 ) AS INTEGER ) * - col2 AS col0 FROM tab0 AS cor0 WHERE col1 * + col1 IS NOT NULL
----
-1331
-2869
-367

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

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

query I rowsort
SELECT + 55 FROM tab0 WHERE ( NULL ) IS NULL
----
55
55
55

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col2 ) = 19
----

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

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

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 WHERE ( + 96 ) IS NOT NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-25
SELECT ALL + COUNT( * ) + - CAST( SUM( ALL col0 ) AS SIGNED ) FROM tab2
----
-182

skipif mysql # not compatible
query I rowsort label-25
SELECT ALL + COUNT ( * ) + - CAST ( SUM ( ALL col0 ) AS INTEGER ) FROM tab2
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-26
SELECT ALL + SUM( - - 83 ) FROM tab0
----
249

skipif mysql # not compatible
query I rowsort label-26
SELECT ALL + SUM ( - - 83 ) FROM tab0
----
249

onlyif mysql # DIV for integer division: 
query I rowsort label-27
SELECT DISTINCT - ( + 1 ) DIV col0 + col2 DIV + col0 AS col2 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-27
SELECT DISTINCT - ( + 1 ) / col0 + col2 / + col0 AS col2 FROM tab1
----
0
1

query I rowsort
SELECT ( + + col2 ) + + 61 * col0 FROM tab0
----
5317
6016
962

query I rowsort
SELECT ALL + 47 + - col1 + 23 FROM tab0
----
-11
49
69

query I rowsort
SELECT DISTINCT + col0 * - + col1 * + col1 FROM tab2
----
-119646
-336675
-379456

query I rowsort
SELECT - col1 + 55 FROM tab2 AS cor0 WHERE col2 IN ( ( col1 ) )
----

query I rowsort
SELECT - - ( - - col1 ) + 67 FROM tab0 AS cor0
----
148
68
88

query I rowsort
SELECT DISTINCT - col2 + + 48 * ( + col2 ) FROM tab2 AS cor0
----
1081
1880
2726

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT 6 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-35
SELECT 31 DIV - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-3

skipif mysql # not compatible
query I rowsort label-35
SELECT 31 / - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-37
SELECT + SUM( DISTINCT - col1 ) AS col0 FROM tab2 cor0 WHERE + 57 IN ( - - col0 * 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-37
SELECT + SUM ( DISTINCT - col1 ) AS col0 FROM tab2 cor0 WHERE + 57 IN ( - - col0 * 24 )
----
NULL

query I rowsort
SELECT - 40 * - col1 - + 31 * - 8 AS col1 FROM tab0 AS cor0
----
1088
288
3488

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-40
SELECT DISTINCT - SUM( + + 24 ) AS col0 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-40
SELECT DISTINCT - SUM ( + + 24 ) AS col0 FROM tab2 AS cor0
----
-72

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-43
SELECT DISTINCT - SUM( ALL + col2 ) * COUNT( * ) FROM tab2 WHERE NOT ( + col0 + - - col1 + - col2 * CAST( NULL AS SIGNED ) ) IS NOT NULL
----
-363

skipif mysql # not compatible
query I rowsort label-43
SELECT DISTINCT - SUM ( ALL + col2 ) * COUNT ( * ) FROM tab2 WHERE NOT ( + col0 + - - col1 + - col2 * CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
-363

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-44
SELECT ALL COUNT( - col1 ) FROM tab2 WHERE NOT - 3 IN ( - CAST( + col1 AS SIGNED ) )
----
3

skipif mysql # not compatible
query I rowsort label-44
SELECT ALL COUNT ( - col1 ) FROM tab2 WHERE NOT - 3 IN ( - CAST ( + col1 AS INTEGER ) )
----
3

query I rowsort
SELECT ALL - 50 FROM tab1 WHERE NOT - 90 <= - 54 * + col0
----
-50
-50
-50

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT DISTINCT + COUNT( * ) * - + 84 FROM tab1
----
-252

skipif mysql # not compatible
query I rowsort label-47
SELECT DISTINCT + COUNT ( * ) * - + 84 FROM tab1
----
-252

onlyif mysql # DIV for integer division: 
query I rowsort label-48
SELECT 93 DIV col0 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-48
SELECT 93 / col0 FROM tab0
----
0
1
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-49
SELECT ALL 87 * - col2 * + - CAST( + col2 AS SIGNED ) col0 FROM tab0
----
192183
852687
8700

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-49
SELECT ALL 87 * - col2 * + - CAST ( + col2 AS INTEGER ) col0 FROM tab0
----
192183
852687
8700

query II rowsort
SELECT - ( + + col2 ) AS col0, 50 AS col0 FROM tab2
----
-23
50
-40
50
-58
50

onlyif mysql # DIV for integer division: 
query II rowsort label-51
SELECT ALL + col0 DIV 68 AS col2, col1 + 69 DIV 37 FROM tab2
----
0
52
0
78
1
68

skipif mysql # not compatible
query II rowsort label-51
SELECT ALL + col0 / 68 AS col2, col1 + 69 / 37 FROM tab2
----
0
52
0
78
1
68

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

onlyif mysql # aggregate syntax: 
query I rowsort label-53
SELECT ( - SUM( - 17 ) ) AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-53
SELECT ( - SUM ( - 17 ) ) AS col1 FROM tab2
----
51

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

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

query I rowsort
SELECT + col2 AS col2 FROM tab1 cor0 WHERE NOT NULL = col0 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-56
SELECT DISTINCT - SUM( 41 ) AS col1 FROM tab2 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-56
SELECT DISTINCT - SUM ( 41 ) AS col1 FROM tab2 AS cor0
----
-123

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

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

query I rowsort
SELECT DISTINCT + 25 + col0 FROM tab0 AS cor0
----
112
122
40

query I rowsort
SELECT + - col0 + - 97 FROM tab1 AS cor0
----
-148
-182
-188

query I rowsort
SELECT ALL col2 + - col2 + 92 FROM tab2
----
92
92
92

query I rowsort
SELECT ALL + col2 + - col2 * col0 FROM tab2
----
-1035
-2520
-4292

query I rowsort
SELECT col0 * - - 13 FROM tab1
----
1105
1183
663

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NULL IN ( + 39 )
----

query I rowsort
SELECT col2 - + 51 FROM tab0 AS cor0
----
-4
-41
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-65
SELECT + col1 - - CAST( - - 42 AS SIGNED ) AS col1, + col1 + 71 + + col0 FROM tab1
----
47
161
56
136
89
209

skipif mysql # not compatible
query II rowsort label-65
SELECT + col1 - - CAST ( - - 42 AS INTEGER ) AS col1, + col1 + 71 + + col0 FROM tab1
----
47
161
56
136
89
209

onlyif mysql # aggregate syntax: 
query I rowsort label-66
SELECT DISTINCT 11 * COUNT( * ) * - COUNT( - 91 ) AS col0 FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-66
SELECT DISTINCT 11 * COUNT ( * ) * - COUNT ( - 91 ) AS col0 FROM tab1
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-67
SELECT DISTINCT - CAST( NULL AS SIGNED ) col1 FROM tab2 WHERE ( NULL ) NOT IN ( + col2, 99 * + col2 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-67
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col1 FROM tab2 WHERE ( NULL ) NOT IN ( + col2, 99 * + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 3 * - + 71 * col2 > + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-69
SELECT DISTINCT ( - - MIN( col1 ) ) * - + ( 98 ) FROM tab2 cor0
----
-4998

skipif mysql # not compatible
query I rowsort label-69
SELECT DISTINCT ( - - MIN ( col1 ) ) * - + ( 98 ) FROM tab2 cor0
----
-4998

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 >= col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * 22 AS col1, 44 col1 FROM tab2 AS cor0
----
1122
44
1474
44
1694
44

query I rowsort
SELECT ALL + + 88 AS col0 FROM tab0 AS cor0
----
88
88
88

query II rowsort
SELECT - + 32 * - col2 AS col0, 40 FROM tab1 AS cor0
----
1888
40
2176
40
3072
40

query I rowsort
SELECT DISTINCT 63 FROM tab1 AS cor0 WHERE NOT ( NOT NULL NOT IN ( ( + 70 ) ) )
----

query I rowsort
SELECT + col0 - + 16 FROM tab2 AS cor0 WHERE NOT - 16 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-77
SELECT ALL + - MAX( DISTINCT + 62 ) DIV COUNT( * ) DIV - + 19 AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-77
SELECT ALL + - MAX ( DISTINCT + 62 ) / COUNT ( * ) / - + 19 AS col0 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col2 col1 FROM tab0
----
100
2209
9801

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-82
SELECT + col1 DIV + col0 - col1 AS col0 FROM tab0 WHERE NOT + ( col1 ) IS NULL
----
-1
-21
-76

skipif mysql # not compatible
query I rowsort label-82
SELECT + col1 / + col0 - col1 AS col0 FROM tab0 WHERE NOT + ( col1 ) IS NULL
----
-1
-21
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-83
SELECT DISTINCT 29 DIV 81 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-83
SELECT DISTINCT 29 / 81 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 1 AS col2, + col2 + - 81 col1 FROM tab2
----
1
-23
1
-41
1
-58

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

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

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 AS cor0 WHERE 3 NOT IN ( - 28, col0 * + + ( 97 ) )
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-88
SELECT COUNT( * ) col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE - 33 >= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-88
SELECT COUNT ( * ) col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE - 33 >= NULL
----
0

query I rowsort
SELECT + - col1 * - ( + + ( col1 ) ) * ( - - col2 ) * - + 42 + - + ( + col0 ) FROM tab0 AS cor0
----
-12951429
-185307
-4255

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

onlyif mysql # DIV for integer division: 
query I rowsort label-91
SELECT + col2 DIV + col1 * + col2 * + 67 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-91
SELECT + col2 / + col1 * + col2 * + 67 FROM tab2 cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 2 * + - 47 + + col0 + - 77 + 49 <= 25
----

onlyif mysql # DIV for integer division: 
query I rowsort label-93
SELECT ALL - col1 DIV + col2 + + col0 * - 83 FROM tab2
----
-3820
-5313
-6226

skipif mysql # not compatible
query I rowsort label-93
SELECT ALL - col1 / + col2 + + col0 * - 83 FROM tab2
----
-3820
-5313
-6226

query I rowsort
SELECT - + col2 FROM tab2 WHERE + + 34 * + col1 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 IN ( 79, - 44 + col0 ) AND NULL <= ( - ( + + col1 ) )
----

query I rowsort
SELECT DISTINCT col2 + col1 * + - 48 AS col0 FROM tab2
----
-2425
-3158
-3656

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab2 WHERE ( NULL ) IS NOT NULL AND 18 IS NOT NULL
----

query I rowsort
SELECT - 78 * - 69 + 97 FROM tab0
----
5479
5479
5479

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

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

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

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

query I rowsort
SELECT col0 FROM tab2 WHERE ( - col2 ) IS NOT NULL
----
46
64
75

query I rowsort
SELECT DISTINCT 20 + - + col0 + - 8 FROM tab2
----
-34
-52
-63

query I rowsort
SELECT - - 38 + col1 AS col2 FROM tab1 AS cor0
----
43
52
85

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

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

query I rowsort
SELECT DISTINCT col2 - - - 23 AS col2 FROM tab2 AS cor0
----
0
17
35

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

skipif mysql # not compatible
query I rowsort label-106
SELECT ALL + ( + - COUNT ( * ) ) + - 95 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
-104

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

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

query II rowsort
SELECT + col1, - col2 * + col1 FROM tab0 AS cor0
----
1
-99
21
-210
81
-3807

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-109
SELECT ALL - + CAST( MAX( DISTINCT + + ( col0 ) ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-109
SELECT ALL - + CAST ( MAX ( DISTINCT + + ( col0 ) ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-110
SELECT DISTINCT + COUNT( 60 ) * + ( + 18 ), SUM( ALL + + 91 ) AS col0 FROM tab1 AS cor0
----
54
273

skipif mysql # not compatible
query II rowsort label-110
SELECT DISTINCT + COUNT ( 60 ) * + ( + 18 ), SUM ( ALL + + 91 ) AS col0 FROM tab1 AS cor0
----
54
273

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + - col2 BETWEEN col1 AND + col0 * 93
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT DISTINCT col2 + 54 FROM tab2 AS cor0 WHERE NOT - col2 * - ( - + 13 ) BETWEEN NULL AND ( NULL )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 * + + 10 col2 FROM tab0
----
850
850
850

query II rowsort
SELECT - col2 * - - 55, 16 * + + 6 + + col2 AS col0 FROM tab0
----
-2585
143
-5445
195
-550
106

onlyif mysql # DIV for integer division: 
query II rowsort label-118
SELECT col0 DIV + 54 col1, col2 FROM tab0
----
0
47
1
10
1
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-118
SELECT col0 / + 54 col1, col2 FROM tab0
----
0
47
1
10
1
99

query I rowsort
SELECT - col0 + - ( 48 ) FROM tab2 AS cor0 WHERE NOT - col1 = - col0
----
-112
-123
-94

query I rowsort
SELECT + - col2 + - col1 * - 44 AS col1 FROM tab0 cor0 WHERE NOT col1 IN ( col1, 87 + + col1 * - col2 )
----

query I rowsort
SELECT DISTINCT - col0 + - col2 * + col0 * - - 92 AS col2 FROM tab0 AS cor0
----
-64875
-80127
-883573

query II rowsort
SELECT col1, + 9 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col2 + + + 44 FROM tab0
----
143
54
91

query I rowsort
SELECT DISTINCT ( + col2 ) * + - col2 FROM tab2
----
-1600
-3364
-529

onlyif mysql # DIV for integer division: 
query I rowsort label-125
SELECT DISTINCT + 70 DIV + 66 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
1

skipif mysql # not compatible
query I rowsort label-125
SELECT DISTINCT + 70 / + 66 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
1

query I rowsort
SELECT ALL - col1 * + ( + + ( + ( - 44 ) ) ) + col1 - + 30 FROM tab1 AS cor0
----
195
2085
600

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

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

query I rowsort
SELECT ALL + col2 * - 30 + + col1 * col0 * + + 37 FROM tab0 AS cor0
----
43545
619
67299

onlyif mysql # aggregate syntax: 
query I rowsort label-129
SELECT ALL + 37 + + MIN( col0 ) AS col2 FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-129
SELECT ALL + 37 + + MIN ( col0 ) AS col2 FROM tab0
----
52

query I rowsort
SELECT col0 * 78 AS col1 FROM tab2
----
3588
4992
5850

query I rowsort
SELECT ALL col0 + + col1 + col0 FROM tab2
----
143
205
217

query I rowsort
SELECT DISTINCT 18 - - col0 AS col0 FROM tab1
----
103
109
69

query II rowsort
SELECT col1 * - 72 AS col2, - 53 * + ( - col1 ) AS col2 FROM tab2
----
-3672
2703
-4824
3551
-5544
4081

query I rowsort
SELECT DISTINCT - col0 * - ( - 4 ) AS col1 FROM tab2 AS cor0
----
-184
-256
-300

onlyif mysql # DIV for integer division: 
query I rowsort label-135
SELECT ALL col0 DIV + - col2 AS col0 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-135
SELECT ALL col0 / + - col2 AS col0 FROM tab2
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-136
SELECT DISTINCT 38 * + COUNT( * ) FROM tab2 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-136
SELECT DISTINCT 38 * + COUNT ( * ) FROM tab2 AS cor0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-137
SELECT DISTINCT MIN( - 44 ) FROM tab2 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-137
SELECT DISTINCT MIN ( - 44 ) FROM tab2 AS cor0
----
-44

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * 21 >= - 23 + + col0 + + ( col2 ) - + col0 + + 54
----

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

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

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

skipif mysql # not compatible
query I rowsort label-141
SELECT DISTINCT MIN ( DISTINCT + - ( + col2 ) ) AS col2 FROM tab0
----
-99

query I rowsort
SELECT ALL - col2 + - - col0 AS col1 FROM tab1 WHERE NULL IS NULL
----
-45
23
26

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-145
SELECT DISTINCT ( 55 ) * + + col1 * - - CAST( + + col2 AS SIGNED ) * + col2 FROM tab1 AS cor0
----
11953040
7096320
957275

skipif mysql # not compatible
query I rowsort label-145
SELECT DISTINCT ( 55 ) * + + col1 * - - CAST ( + + col2 AS INTEGER ) * + col2 FROM tab1 AS cor0
----
11953040
7096320
957275

onlyif mysql # aggregate syntax: 
query I rowsort label-146
SELECT DISTINCT - - MIN( - col2 ) * - 55 FROM tab1 AS cor0
----
5280

skipif mysql # not compatible
query I rowsort label-146
SELECT DISTINCT - - MIN ( - col2 ) * - 55 FROM tab1 AS cor0
----
5280

query III rowsort
SELECT ALL * FROM tab0 WHERE - - col0 NOT IN ( - - 48 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-149
SELECT DISTINCT + CAST( - 44 AS SIGNED ) * 58 * col2 AS col0 FROM tab1
----
-150568
-173536
-244992

skipif mysql # not compatible
query I rowsort label-149
SELECT DISTINCT + CAST ( - 44 AS INTEGER ) * 58 * col2 AS col0 FROM tab1
----
-150568
-173536
-244992

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

query I rowsort
SELECT + ( - 70 ) * + 55 * col1 FROM tab1
----
-180950
-19250
-53900

onlyif mysql # DIV for integer division: 
query I rowsort label-152
SELECT DISTINCT - col0 DIV + col2 - + col2 AS col0 FROM tab2 AS cor0
----
-25
-41
-59

skipif mysql # not compatible
query I rowsort label-152
SELECT DISTINCT - col0 / + col2 - + col2 AS col0 FROM tab2 AS cor0
----
-25
-41
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-153
SELECT DISTINCT - - CAST( - - col1 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT col2 < + col0
----

skipif mysql # not compatible
query I rowsort label-153
SELECT DISTINCT - - CAST ( - - col1 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT col2 < + col0
----

query I rowsort
SELECT ALL - - col1 * - col0 * 77 AS col1 FROM tab1 AS cor0
----
-32725
-329329
-54978

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT 67 + + SUM( - col2 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-54

skipif mysql # not compatible
query I rowsort label-155
SELECT 67 + + SUM ( - col2 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-54

onlyif mysql # DIV for integer division: 
query II rowsort label-156
SELECT ALL + 89 DIV - col0, col2 FROM tab1 AS cor0
----
-1
59
-1
96
0
68

skipif mysql # not compatible
query II rowsort label-156
SELECT ALL + 89 / - col0, col2 FROM tab1 AS cor0
----
-1
59
-1
96
0
68

onlyif mysql # DIV for integer division: 
query II rowsort label-157
SELECT ALL + 19 DIV col1 - - col0, col0 col1 FROM tab1 AS cor0
----
52
51
88
85
91
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-157
SELECT ALL + 19 / col1 - - col0, col0 col1 FROM tab1 AS cor0
----
52
51
88
85
91
91

query I rowsort
SELECT ALL - - 23 * + - col0 + - + ( col1 ) + + col2 FROM tab2 AS cor0
----
-1086
-1509
-1734

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-159
SELECT ALL + - 59 + + + 30 AS col1 FROM tab0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-159
SELECT ALL + - 59 + + + 30 AS col1 FROM tab0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - 99 >= NULL
----

query I rowsort
SELECT DISTINCT - col1 * + + 11 * + 39 + + + 91 AS col1 FROM tab2
----
-21788
-28652
-32942

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-162
SELECT ALL + 76 + CAST( 46 AS SIGNED ) AS col2 FROM tab2
----
122
122
122

skipif mysql # not compatible
query I rowsort label-162
SELECT ALL + 76 + CAST ( 46 AS INTEGER ) AS col2 FROM tab2
----
122
122
122

query I rowsort
SELECT + 95 + 41 FROM tab1
----
136
136
136

query III rowsort
SELECT * FROM tab1 WHERE NULL > - 40
----

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

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

query I rowsort
SELECT ALL col0 * + + col2 + + col0 + - col2 AS col1 FROM tab2
----
1081
2584
4367

query II rowsort
SELECT col1, - ( 64 ) FROM tab1 AS cor0
----
14
-64
47
-64
5
-64

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

onlyif mysql # aggregate syntax: 
query I rowsort label-169
SELECT ( - MIN( - - col2 ) ) AS col2 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-169
SELECT ( - MIN ( - - col2 ) ) AS col2 FROM tab1
----
-59

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-173
SELECT - 97 * COUNT( * ) FROM tab1 cor0
----
-291

skipif mysql # not compatible
query I rowsort label-173
SELECT - 97 * COUNT ( * ) FROM tab1 cor0
----
-291

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-175
SELECT ALL + MIN( ALL - - 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-175
SELECT ALL + MIN ( ALL - - CAST ( NULL AS INTEGER ) ) col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-176
SELECT ALL - ( + + MAX( + 26 ) ), - 95 col1 FROM tab0
----
-26
-95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-176
SELECT ALL - ( + + MAX ( + 26 ) ), - 95 col1 FROM tab0
----
-26
-95

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-177
SELECT - col1 + 82 + CAST( NULL AS DECIMAL ) * col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-177
SELECT - col1 + 82 + CAST ( NULL AS REAL ) * col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 63 * + - col2 FROM tab2 WHERE + col2 + + - col0 IS NOT NULL
----
1449
2520
3654

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

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

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

query I rowsort
SELECT - col0 + + + 14 AS col2 FROM tab2
----
-32
-50
-61

query I rowsort
SELECT DISTINCT 86 + + 7 + + col1 FROM tab1
----
107
140
98

onlyif mysql # aggregate syntax: 
query I rowsort label-183
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE ( - ( + 30 ) * - 4 + - ( - 3 ) ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-183
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE ( - ( + 30 ) * - 4 + - ( - 3 ) ) IS NULL
----
0

query II rowsort
SELECT 67 * - col2 AS col1, + 91 AS col1 FROM tab0 AS cor0 WHERE col1 NOT IN ( col1 )
----

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

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

query I rowsort
SELECT DISTINCT - ( + 57 ) FROM tab2, tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 7 - - 77 FROM tab0
----
70
70
70

query III rowsort
SELECT * FROM tab2 WHERE + col0 NOT BETWEEN - 20 AND - - col0 - col0 + col1
----
75
67
58

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

query I rowsort
SELECT DISTINCT col0 - + ( - 54 ) + + - 64 AS col0 FROM tab1
----
41
75
81

query I rowsort
SELECT 18 + + 70 FROM tab0 AS cor0
----
88
88
88

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

onlyif mysql # DIV for integer division: 
query I rowsort label-194
SELECT + + 86 DIV - col0 + + col1 AS col1 FROM tab1 AS cor0
----
13
4
47

skipif mysql # not compatible
query I rowsort label-194
SELECT + + 86 / - col0 + + col1 AS col1 FROM tab1 AS cor0
----
13
4
47

onlyif mysql # aggregate syntax: 
query I rowsort label-195
SELECT + + SUM( ALL - 77 ) * 19 FROM tab0 AS cor0
----
-4389

skipif mysql # not compatible
query I rowsort label-195
SELECT + + SUM ( ALL - 77 ) * 19 FROM tab0 AS cor0
----
-4389

query I rowsort
SELECT - 92 * + col2 * + ( + 78 ) + + col0 FROM tab1 AS cor0
----
-423299
-487877
-688845

query I rowsort
SELECT DISTINCT col1 - + 63 + - + col2 * col0 - + col2 FROM tab2 AS cor0
----
-1093
-2586
-4404

onlyif mysql # DIV for integer division: 
query I rowsort label-198
SELECT DISTINCT col0 * + - 24 - + - 41 DIV - + col2 FROM tab0 AS cor0
----
-2092
-2328
-360

skipif mysql # not compatible
query I rowsort label-198
SELECT DISTINCT col0 * + - 24 - + - 41 / - + col2 FROM tab0 AS cor0
----
-2092
-2328
-360

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - 92 IS NOT NULL
----

query II rowsort
SELECT ( - col1 ) AS col2, col0 - col1 AS col0 FROM tab1
----
-14
37
-47
44
-5
80

query I rowsort
SELECT - col1 * - 26 AS col0 FROM tab2
----
1326
1742
2002

query I rowsort
SELECT + 71 * + 31 * + col2 AS col0 FROM tab2
----
127658
50623
88040

onlyif mysql # aggregate syntax: 
query II rowsort label-203
SELECT ALL SUM( - 79 ), - 72 AS col1 FROM tab2
----
-237
-72

skipif mysql # not compatible
query II rowsort label-203
SELECT ALL SUM ( - 79 ), - 72 AS col1 FROM tab2
----
-237
-72

query II rowsort
SELECT ALL 11 * col1 AS col2, col2 AS col0 FROM tab1
----
154
96
517
68
55
59

query I rowsort
SELECT ALL 77 * + col2 FROM tab0
----
3619
7623
770

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-206
SELECT DISTINCT MIN( + 84 ) DIV 70 AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-206
SELECT DISTINCT MIN ( + 84 ) / 70 AS col0 FROM tab0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-207
SELECT DISTINCT - col0 DIV + 2 FROM tab2
----
-23
-32
-37

skipif mysql # not compatible
query I rowsort label-207
SELECT DISTINCT - col0 / + 2 FROM tab2
----
-23
-32
-37

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-209
SELECT ALL CAST( - col1 AS SIGNED ) AS col2 FROM tab0 cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-209
SELECT ALL CAST ( - col1 AS INTEGER ) AS col2 FROM tab0 cor0
----
-1
-21
-81

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

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

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

skipif mysql # not compatible
query I rowsort label-211
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) + - col1 + CAST ( col0 AS INTEGER ) * - + col1 * - col2 * + - col0 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT ALL + ( col2 ) * col1 * + 3 - - col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 45 AND + 7
----

query I rowsort
SELECT + col1 * 67 AS col1 FROM tab2 AS cor0
----
3417
4489
5159

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col2 AS col2, 55 col0 FROM tab0 AS cor0
----
-10
55
-47
55
-99
55

onlyif mysql # DIV for integer division: 
query II rowsort label-216
SELECT + col2, + col2 DIV col2 AS col1 FROM tab0 AS cor0
----
10
1
47
1
99
1

skipif mysql # not compatible
query II rowsort label-216
SELECT + col2, + col2 / col2 AS col1 FROM tab0 AS cor0
----
10
1
47
1
99
1

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-217
SELECT + MIN ( DISTINCT + - 36 ) col0 FROM tab2 AS cor0
----
-36

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-221
SELECT ALL - COUNT( * ) FROM tab2, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-221
SELECT ALL - COUNT ( * ) FROM tab2, tab0 AS cor0
----
-9

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

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

query I rowsort
SELECT - col2 + - + col2 AS col0 FROM tab2
----
-116
-46
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-224
SELECT DISTINCT + 72 + - col2 DIV + col2 AS col2 FROM tab2
----
71

skipif mysql # not compatible
query I rowsort label-224
SELECT DISTINCT + 72 + - col2 / + col2 AS col2 FROM tab2
----
71

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

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

query I rowsort
SELECT - 98 - + col2 + - col1 + + - col1 FROM tab1 AS cor0
----
-167
-222
-260

query II rowsort
SELECT ALL + 34 * - col1 + - + col0, - col2 AS col2 FROM tab0 AS cor0
----
-131
-99
-2769
-47
-801
-10

query I rowsort
SELECT DISTINCT + col1 * + - 6 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * + col0 - + col1 col0 FROM tab0 AS cor0
----
-786
-891
-9604

query III rowsort
SELECT ALL - 79 AS col1, col2, 80 * + + col0 AS col0 FROM tab1
----
9 values hashing to 0bb63fb4af1b9a31d284c7804ebe3114

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

query I rowsort
SELECT DISTINCT + col2 * + 93 FROM tab0
----
4371
9207
930

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 IS NOT NULL OR ( - - col1 ) >= NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT 37 * 50 AS col2, + col0 * + - 87 AS col0, + col1 AS col0 FROM tab0
----
9 values hashing to c24739388d57a313a244bf18357fa60e

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

onlyif mysql # DIV for integer division: 
query I rowsort label-237
SELECT DISTINCT 35 DIV 65 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-237
SELECT DISTINCT 35 / 65 FROM tab1
----
0

query I rowsort
SELECT - ( - - 84 ) * + 59 AS col0 FROM tab0
----
-4956
-4956
-4956

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

onlyif mysql # aggregate syntax: 
query I rowsort label-240
SELECT + + COUNT( DISTINCT ( - 67 ) ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-240
SELECT + + COUNT ( DISTINCT ( - 67 ) ) FROM tab2 AS cor0
----
1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-242
SELECT - COUNT( - col0 ) DIV + MIN( DISTINCT 61 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-242
SELECT - COUNT ( - col0 ) / + MIN ( DISTINCT 61 ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - ( col2 ) > - + col1
----
15
81
47
87
21
10

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

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

query II rowsort
SELECT - - 12 + + 28 * + col0 AS col0, col2 FROM tab0 cor0
----
2448
10
2728
99
432
47

query I rowsort
SELECT col2 + 19 AS col0 FROM tab2 cor0
----
42
59
77

query I rowsort
SELECT DISTINCT + col2 * - ( + + col0 ) * + 66 * - 61 + + col1 FROM tab1 AS cor0
----
19711310
20190395
24912935

query I rowsort
SELECT - 61 * - col1 + - col0 AS col0 FROM tab2
----
3065
4012
4633

query I rowsort
SELECT DISTINCT - col1 + - + col1 FROM tab0
----
-162
-2
-42

query I rowsort
SELECT ALL - 21 + + col2 * - 3 AS col2 FROM tab0
----
-162
-318
-51

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 63 BETWEEN + - col0 / col1 * + col0 + - col2 AND NULL
----

query I rowsort
SELECT + 2 * col1 FROM tab0 cor0
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-255
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE ( - - 18 > - - 9 )
----
3

skipif mysql # not compatible
query I rowsort label-255
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE ( - - 18 > - - 9 )
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 12 - + - col0 * - col0 col1 FROM tab2 AS cor0
----
-2128
-4108
-5637

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-257
SELECT + col1 + - col0 * col1 + col1 FROM tab1 AS cor0 WHERE NULL <= CAST( 89 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-257
SELECT + col1 + - col0 * col1 + col1 FROM tab1 AS cor0 WHERE NULL <= CAST ( 89 AS INTEGER )
----

query I rowsort
SELECT col1 * - col0 - + col1 + + 66 + - col1 AS col0 FROM tab0
----
-1311
-1803
-33

query I rowsort
SELECT ALL col1 * - col0 + 42 FROM tab0
----
-1173
-1785
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT 20 * ( - COUNT( * ) ) + - - 56 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-4

skipif mysql # not compatible
query I rowsort label-260
SELECT 20 * ( - COUNT ( * ) ) + - - 56 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-4

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-262
SELECT * FROM tab2 AS cor0 WHERE NOT - 30 + - col0 + - 0 / + col2 NOT IN ( - 28, - col0 * + 62 + + col2 / col2 + + 37, CAST( NULL AS SIGNED ) + + 2 + + col2 )
----

skipif mysql # not compatible
query III rowsort label-262
SELECT * FROM tab2 AS cor0 WHERE NOT - 30 + - col0 + - 0 / + col2 NOT IN ( - 28, - col0 * + 62 + + col2 / col2 + + 37, CAST ( NULL AS INTEGER ) + + 2 + + col2 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-264
SELECT ( - - col0 ) DIV col1 FROM tab0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-264
SELECT ( - - col0 ) / col1 FROM tab0
----
0
4
97

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col2 * + col0 col1 FROM tab1
----
-25075
-290836
-68544

onlyif mysql # DIV for integer division: 
query I rowsort label-268
SELECT ALL 79 * 45 DIV - + col0 + + col2 FROM tab2 AS cor0
----
-15
-54
11

skipif mysql # not compatible
query I rowsort label-268
SELECT ALL 79 * 45 / - + col0 + + col2 FROM tab2 AS cor0
----
-15
-54
11

query I rowsort
SELECT DISTINCT + 9 + + + col1 FROM tab2
----
60
76
86

query I rowsort
SELECT ALL - - 21 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-275
SELECT ALL - 39 + + + COUNT( * ) FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-275
SELECT ALL - 39 + + + COUNT ( * ) FROM tab0 AS cor0
----
-36

query I rowsort
SELECT DISTINCT - col2 * 80 AS col1 FROM tab1 AS cor0
----
-4720
-5440
-7680

onlyif mysql # aggregate syntax: 
query II rowsort label-277
SELECT SUM( - col1 ) AS col2, MIN( - 50 ) * + 30 + - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-103
-1497

skipif mysql # not compatible
query II rowsort label-277
SELECT SUM ( - col1 ) AS col2, MIN ( - 50 ) * + 30 + - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-103
-1497

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

query I rowsort
SELECT ALL col1 * + 42 AS col2 FROM tab0 AS cor0
----
3402
42
882

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-280
SELECT - MAX ( DISTINCT 98 ) col0 FROM tab0 AS cor0
----
-98

query I rowsort
SELECT 98 - - col2 FROM tab0
----
108
145
197

query I rowsort
SELECT ALL 90 + - col1 * - 73 + + + col1 AS col1 FROM tab2
----
3864
5048
5788

query I rowsort
SELECT ALL - + col2 FROM tab2 WHERE + col2 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT 65 FROM tab1 WHERE - col2 * - 47 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 71 * + col2 + - - 70 - + + col0 + - + col0 col2 FROM tab1
----
4089
4716
6784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-286
SELECT DISTINCT - col0 - - CAST( - + col1 AS SIGNED ) AS col0 FROM tab1
----
-138
-65
-90

skipif mysql # not compatible
query I rowsort label-286
SELECT DISTINCT - col0 - - CAST ( - + col1 AS INTEGER ) AS col0 FROM tab1
----
-138
-65
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-287
SELECT DISTINCT COUNT( * ) DIV + - COUNT( * ), - 71 AS col1 FROM tab0 AS cor0
----
-1
-71

skipif mysql # not compatible
query II rowsort label-287
SELECT DISTINCT COUNT ( * ) / + - COUNT ( * ), - 71 AS col1 FROM tab0 AS cor0
----
-1
-71

query I rowsort
SELECT 4 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-289
SELECT + 44 * - - COUNT( * ) col0 FROM tab2
----
132

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

onlyif mysql # aggregate syntax: 
query I rowsort label-290
SELECT + SUM( DISTINCT col2 ) col2 FROM tab0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-290
SELECT + SUM ( DISTINCT col2 ) col2 FROM tab0
----
156

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

query II rowsort
SELECT + 48, + col1 AS col2 FROM tab2 AS cor0
----
48
51
48
67
48
77

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

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

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

query I rowsort
SELECT + 2 AS col2 FROM tab1 WHERE NOT + col0 * - col0 IS NULL
----
2
2
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-297
SELECT MIN( - 93 ) AS col1 FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-297
SELECT MIN ( - 93 ) AS col1 FROM tab1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-298
SELECT 45 * 0 * + - COUNT( * ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-298
SELECT 45 * 0 * + - COUNT ( * ) AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-299
SELECT ( + MIN( ALL + 26 ) ) DIV 10 FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-299
SELECT ( + MIN ( ALL + 26 ) ) / 10 FROM tab2
----
2

query I rowsort
SELECT + + col1 FROM tab0 WHERE NOT + - col0 / - col2 < - 56 - - ( - 92 )
----
1
21
81

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

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT DISTINCT - MIN( + - 16 ) AS col0 FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-302
SELECT DISTINCT - MIN ( + - 16 ) AS col0 FROM tab0
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-303
SELECT - ( 13 ) * - COUNT( ALL + col0 ) FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + + 34 NOT IN ( - col0 * - col1 + + - 43 + + - col2 / + + 77, - col0, - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-303
SELECT - ( 13 ) * - COUNT ( ALL + col0 ) FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + + 34 NOT IN ( - col0 * - col1 + + - 43 + + - col2 / + + 77, - col0, - col2 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-304
SELECT DISTINCT + col2 + + 23 DIV + ( col1 ) AS col1 FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-304
SELECT DISTINCT + col2 + + 23 / + ( col1 ) AS col1 FROM tab2 cor0
----
23
40
58

query I rowsort
SELECT ALL - 19 * + 0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 15 - + col0 + - 70 col1 FROM tab0 AS cor0
----
-1300
-182
-472

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-310
SELECT DISTINCT + + col1 DIV - col0 + + col0 * col1 FROM tab1 AS cor0
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-310
SELECT DISTINCT + + col1 / - col0 + + col0 * col1 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT DISTINCT col2 + + + 96 FROM tab2
----
119
136
154

query I rowsort
SELECT ALL col1 FROM tab2 WHERE col2 > + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-313
SELECT * FROM tab0 WHERE NULL >= + + col1 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-313
SELECT * FROM tab0 WHERE NULL >= + + col1 + CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-314
SELECT + col2 DIV - + 11 FROM tab0
----
-4
-9
0

skipif mysql # not compatible
query I rowsort label-314
SELECT + col2 / - + 11 FROM tab0
----
-4
-9
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 81, + col1 * + ( - col1 ) * + col2 * col2 + - col1 + - - col1 + + col2 col2 FROM tab2
----
81
-1375906
81
-15100938
81
-9486360

query I rowsort
SELECT ALL - 76 + + + col1 AS col1 FROM tab1
----
-29
-62
-71

query I rowsort
SELECT DISTINCT col0 + - - col1 - + col1 + - + 21 FROM tab0
----
-6
66
76

onlyif mysql # DIV for integer division: 
query I rowsort label-318
SELECT ALL 37 DIV - col0 - + col2 col1 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-318
SELECT ALL 37 / - col0 - + col2 col1 FROM tab2
----
-23
-40
-58

query III rowsort
SELECT * FROM tab2 WHERE - 26 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-320
SELECT ALL + COUNT( * ) FROM tab0 WHERE + col1 / + - 98 >= 9
----
0

skipif mysql # not compatible
query I rowsort label-320
SELECT ALL + COUNT ( * ) FROM tab0 WHERE + col1 / + - 98 >= 9
----
0

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

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

query I rowsort
SELECT DISTINCT - + col0 * + col2 - + 74 AS col1 FROM tab1 AS cor0
----
-4970
-5089
-6262

query I rowsort
SELECT + col1 * + col1 - + col0 * - col2 - col0 FROM tab2 AS cor0
----
3613
8425
8764

query I rowsort
SELECT + 30 - + col0 FROM tab1 cor0
----
-21
-55
-61

query II rowsort
SELECT 98 * col2 - - - col2 * + - col2, col0 AS col0 FROM tab1 AS cor0
----
11288
91
18624
51
9263
85

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 26 <> NULL
----

query I rowsort
SELECT - col0 * - + 51 AS col0 FROM tab1
----
2601
4335
4641

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

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

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

query I rowsort
SELECT DISTINCT + + 0 * + col0 * col0 FROM tab0 AS cor0
----
0

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - 62 + + 4 + col2 > - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query II rowsort
SELECT ALL + col0 AS col0, + col2 FROM tab1 AS cor0 WHERE ( - col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-335
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-335
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-336
SELECT + - CAST( MIN( DISTINCT col0 ) AS SIGNED ) col2 FROM tab0 cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-336
SELECT + - CAST ( MIN ( DISTINCT col0 ) AS INTEGER ) col2 FROM tab0 cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-337
SELECT * FROM tab1 WHERE NOT NULL >= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-337
SELECT * FROM tab1 WHERE NOT NULL >= - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-338
SELECT ALL + MIN( DISTINCT + 51 ) * + ( + MIN( - ( - - col2 ) ) ) col0 FROM tab1
----
-4896

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-338
SELECT ALL + MIN ( DISTINCT + 51 ) * + ( + MIN ( - ( - - col2 ) ) ) col0 FROM tab1
----
-4896

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 = 30 * - + col2 + + 77 + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-340
SELECT DISTINCT + 40 AS col0, CAST( NULL AS SIGNED ) * + COUNT( * ) * - + 12 AS col0 FROM tab0
----
40
NULL

skipif mysql # not compatible
query II rowsort label-340
SELECT DISTINCT + 40 AS col0, CAST ( NULL AS INTEGER ) * + COUNT ( * ) * - + 12 AS col0 FROM tab0
----
40
NULL

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

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

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 WHERE NOT + col2 + + col2 IN ( 88 )
----
-23
-40
-58

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT ( - 95 ) <= ( NULL )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-345
SELECT ( - col2 ) * - CAST( NULL AS SIGNED ) AS col0, col2 AS col1, ( - col2 ) AS col0 FROM tab1 cor0
----
9 values hashing to 7a6879701b905ebd485a81332ccec585

skipif mysql # not compatible
query III rowsort label-345
SELECT ( - col2 ) * - CAST ( NULL AS INTEGER ) AS col0, col2 AS col1, ( - col2 ) AS col0 FROM tab1 cor0
----
9 values hashing to 7a6879701b905ebd485a81332ccec585

onlyif mysql # aggregate syntax: 
query I rowsort label-346
SELECT ALL - 98 * COUNT( * ) * + + COUNT( * ) FROM tab0 cor0
----
-882

skipif mysql # not compatible
query I rowsort label-346
SELECT ALL - 98 * COUNT ( * ) * + + COUNT ( * ) FROM tab0 cor0
----
-882

query II rowsort
SELECT + - 63 AS col2, 66 AS col0 FROM tab0 AS cor0
----
-63
66
-63
66
-63
66

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 col2 FROM tab0 WHERE NULL <= 63
----

query II rowsort
SELECT col0 * col0 AS col0, col2 AS col0 FROM tab1
----
2601
96
7225
59
8281
68

query I rowsort
SELECT + - 42 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9894093f29c0defae91347934f060329

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - + 8 - - col1 col1 FROM tab2 AS cor0
----
-357
-469
-539

query I rowsort
SELECT - ( - col1 ) * - - 60 * - col2 FROM tab2 cor0
----
-184800
-233160
-70380

query I rowsort
SELECT - col2 * 90 * - 32 + + - col2 + col2 + + + col2 AS col1 FROM tab2 AS cor0
----
115240
167098
66263

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 BETWEEN + col2 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-356
SELECT DISTINCT - COUNT( * ) + + 62 AS col1 FROM tab2
----
59

skipif mysql # not compatible
query I rowsort label-356
SELECT DISTINCT - COUNT ( * ) + + 62 AS col1 FROM tab2
----
59

query I rowsort
SELECT ALL col0 - - 97 FROM tab0
----
112
184
194

query I rowsort
SELECT - col2 + + 92 FROM tab1
----
-4
24
33

query I rowsort
SELECT col2 + + col0 * + 17 FROM tab1
----
1504
1615
963

query I rowsort
SELECT col0 * + 9 * + 17 * - + col1 + col0 + - + col1 + - - ( + col1 ) FROM tab1 AS cor0
----
-109191
-64940
-654290

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

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

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

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

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

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

query II rowsort
SELECT 46 AS col2, 53 AS col0 FROM tab1 cor0
----
46
53
46
53
46
53

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

query I rowsort
SELECT ALL + - col0 * + 30 FROM tab2 cor0
----
-1380
-1920
-2250

query II rowsort
SELECT ALL - ( ( - 24 ) ) * + - col0 AS col2, + col0 + + + 26 FROM tab1 AS cor0
----
-1224
77
-2040
111
-2184
117

query I rowsort
SELECT DISTINCT - col1 * + - col2 + + + col1 FROM tab2 AS cor0
----
1224
3157
3953

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 WHERE ( col0 ) IS NULL
----

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

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

query I rowsort
SELECT col1 + + - 82 * - - 5 + - - 84 + + col2 FROM tab1
----
-211
-216
-262

query II rowsort
SELECT - 2 * - - col1 AS col0, col0 AS col0 FROM tab2
----
-102
46
-134
75
-154
64

onlyif mysql # DIV for integer division: 
query II rowsort label-374
SELECT ALL - 76 * + 26 AS col1, col2 * + + col0 + - col1 DIV - col1 FROM tab0 AS cor0
----
-1976
706
-1976
871
-1976
9604

skipif mysql # not compatible
query II rowsort label-374
SELECT ALL - 76 * + 26 AS col1, col2 * + + col0 + - col1 / - col1 FROM tab0 AS cor0
----
-1976
706
-1976
871
-1976
9604

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, - ( - + col2 ) AS col2 FROM tab0
----
10
10
47
47
99
99

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

skipif mysql # not compatible
query I rowsort label-377
SELECT DISTINCT 88 + CAST ( NULL AS INTEGER ) - + + 14 * + col1 * - - col2 + - col2 * col1 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT col2 + - - 15 FROM tab1
----
111
74
83

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL > - col2 * ( - col1 )
----

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-383
SELECT + - col0 AS col1, CAST( NULL AS DECIMAL ) / + - 97, - - 16 FROM tab0 AS cor0 WHERE NULL <> + col0 + - - col1
----

skipif mysql # not compatible
query III rowsort label-383
SELECT + - col0 AS col1, CAST ( NULL AS REAL ) / + - 97, - - 16 FROM tab0 AS cor0 WHERE NULL <> + col0 + - - col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL ) >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-385
SELECT - COUNT( * ), + SUM( col1 ) AS col0 FROM tab1 AS cor0
----
-3
66

skipif mysql # not compatible
query II rowsort label-385
SELECT - COUNT ( * ), + SUM ( col1 ) AS col0 FROM tab1 AS cor0
----
-3
66

onlyif mysql # DIV for integer division: 
query I rowsort label-386
SELECT - col1 DIV 64 * - + col0 FROM tab2 AS cor0
----
0
64
75

skipif mysql # not compatible
query I rowsort label-386
SELECT - col1 / 64 * - + col0 FROM tab2 AS cor0
----
0
64
75

query I rowsort
SELECT + col0 * - - col1 * + col1 AS col1 FROM tab0 AS cor0
----
38367
97
98415

onlyif mysql # aggregate syntax: 
query I rowsort label-388
SELECT ALL COUNT( * ) + 8 col1 FROM tab1
----
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-388
SELECT ALL COUNT ( * ) + 8 col1 FROM tab1
----
11

query II rowsort
SELECT - col0 * - + col1 AS col1, + col2 FROM tab1
----
425
59
4277
68
714
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-390
SELECT - 21 DIV + COUNT( * ) FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-390
SELECT - 21 / + COUNT ( * ) FROM tab0
----
-7

query I rowsort
SELECT + 74 * + - col2 * + - col0 FROM tab2
----
189440
321900
78292

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-394
SELECT ALL - col0 * + col1 * + 2 * + col2 + - + CAST( - col1 AS SIGNED ) * col2 AS col2, col1 DIV + 99 col0 FROM tab0 AS cor0
----
-110403
0
-19107
0
-36330
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-394
SELECT ALL - col0 * + col1 * + 2 * + col2 + - + CAST ( - col1 AS INTEGER ) * col2 AS col2, col1 / + 99 col0 FROM tab0 AS cor0
----
-110403
0
-19107
0
-36330
0

onlyif mysql # DIV for integer division: 
query I rowsort label-395
SELECT DISTINCT col0 * col2 DIV col2 AS col2 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-395
SELECT DISTINCT col0 * col2 / col2 AS col2 FROM tab2 AS cor0
----
46
64
75

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 51 = NULL
----

query I rowsort
SELECT DISTINCT - col0 + col2 * - col0 AS col0 FROM tab1 WHERE 44 / - + col0 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 54 * ( - col1 ) col2 FROM tab0 cor0
----
1134
4374
54

onlyif mysql # aggregate syntax: 
query I rowsort label-399
SELECT - MIN( - - col2 ) AS col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-399
SELECT - MIN ( - - col2 ) AS col0 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT ALL - + 13 AS col0 FROM tab0 cor0 WHERE NULL >= 46 * + col2
----

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

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

query I rowsort
SELECT - + 99 * col1 FROM tab2 cor0
----
-5049
-6633
-7623

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

skipif mysql # not compatible
query I rowsort label-403
SELECT - MAX ( + 17 ) AS col1 FROM tab2 AS cor0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-404
SELECT DISTINCT + MAX( - - col0 ) * + - SUM( ALL col0 ) * + - 10 * - COUNT( * ) FROM tab2 cor0
----
-416250

skipif mysql # not compatible
query I rowsort label-404
SELECT DISTINCT + MAX ( - - col0 ) * + - SUM ( ALL col0 ) * + - 10 * - COUNT ( * ) FROM tab2 cor0
----
-416250

onlyif mysql # aggregate syntax: 
query I rowsort label-405
SELECT ALL - - 24 * - ( - COUNT( ALL + - col0 ) ) AS col1 FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-405
SELECT ALL - - 24 * - ( - COUNT ( ALL + - col0 ) ) AS col1 FROM tab1 AS cor0
----
72

query I rowsort
SELECT ALL 59 * - col0 * - - ( col0 ) FROM tab1
----
-153459
-426275
-488579

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-412
SELECT CAST( NULL AS SIGNED ) * - 9 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-412
SELECT CAST ( NULL AS INTEGER ) * - 9 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 99 FROM tab0 WHERE NOT col2 IS NULL
----
-99
-99
-99

query I rowsort
SELECT - col2 + 57 FROM tab2
----
-1
17
34

query I rowsort
SELECT - 99 + col0 AS col1 FROM tab0 cor0
----
-12
-2
-84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-416
SELECT DISTINCT * FROM tab0 WHERE - + CAST( col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-416
SELECT DISTINCT * FROM tab0 WHERE - + CAST ( col0 AS INTEGER ) IS NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-418
SELECT - SUM ( DISTINCT - col2 ) FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-419
SELECT ALL SUM( ALL - col2 ) - - 46 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-419
SELECT ALL SUM ( ALL - col2 ) - - 46 FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-420
SELECT - 25 - COUNT( * ) AS col2, - MIN( ALL 33 ) AS col0 FROM tab2 AS cor0
----
-28
-33

skipif mysql # not compatible
query II rowsort label-420
SELECT - 25 - COUNT ( * ) AS col2, - MIN ( ALL 33 ) AS col0 FROM tab2 AS cor0
----
-28
-33

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

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

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

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

query I rowsort
SELECT - 51 * - - col0 * - col2 + - col1 FROM tab2 WHERE NOT - - col2 IS NOT NULL
----

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

query II rowsort
SELECT - 91, + col1 * + ( - col1 ) * + + 2 AS col2 FROM tab0
----
-91
-13122
-91
-2
-91
-882

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-429
SELECT ALL COUNT( * ) + COUNT( * ) DIV + SUM( DISTINCT - 79 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-429
SELECT ALL COUNT ( * ) + COUNT ( * ) / + SUM ( DISTINCT - 79 ) AS col0 FROM tab2
----
3

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

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

query I rowsort
SELECT ALL 51 AS col1 FROM tab2 WHERE - col1 NOT IN ( - col2 * - col0 )
----
51
51
51

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

query I rowsort
SELECT - 30 - col1 FROM tab1
----
-35
-44
-77

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 12 * 60 + + 24 IS NOT NULL
----

query I rowsort
SELECT ALL + 52 AS col2 FROM tab1 WHERE NOT - ( 23 ) NOT BETWEEN 41 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-439
SELECT ALL - ( MIN( ALL + 98 ) ) FROM tab0
----
-98

skipif mysql # not compatible
query I rowsort label-439
SELECT ALL - ( MIN ( ALL + 98 ) ) FROM tab0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-440
SELECT 78 - COUNT( * ) AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-440
SELECT 78 - COUNT ( * ) AS col0 FROM tab2
----
75

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 / - col0 - col0 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE ( + col2 ) <= - col0 / col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-443
SELECT + COUNT( * ) * + 56 col1 FROM tab1
----
168

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

query I rowsort
SELECT - col2 - 69 AS col1 FROM tab0
----
-116
-168
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 * col1 col1 FROM tab0
----
1092
4212
52

onlyif mysql # aggregate syntax: 
query I rowsort label-446
SELECT ALL + 27 * + SUM( - 79 * col1 ) FROM tab1
----
-140778

skipif mysql # not compatible
query I rowsort label-446
SELECT ALL + 27 * + SUM ( - 79 * col1 ) FROM tab1
----
-140778

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

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

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

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

query I rowsort
SELECT ALL col0 + 38 FROM tab2
----
102
113
84

query I rowsort
SELECT ALL - col2 + 12 AS col0 FROM tab1
----
-47
-56
-84

query I rowsort
SELECT ( col0 ) FROM tab0 WHERE NOT ( 57 + 41 * - col1 ) NOT IN ( 13 )
----

query I rowsort
SELECT ALL + ( col1 ) * - 88 FROM tab0
----
-1848
-7128
-88

query I rowsort
SELECT 57 * col1 AS col1 FROM tab0
----
1197
4617
57

query I rowsort
SELECT ALL col1 + - col0 * + col2 FROM tab2
----
-1007
-2483
-4283

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

onlyif mysql # aggregate syntax: 
query I rowsort label-457
SELECT DISTINCT - 17 + SUM( DISTINCT col1 ) col2 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-457
SELECT DISTINCT - 17 + SUM ( DISTINCT col1 ) col2 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-458
SELECT SUM( ( - 92 ) ) FROM tab1
----
-276

skipif mysql # not compatible
query I rowsort label-458
SELECT SUM ( ( - 92 ) ) FROM tab1
----
-276

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

skipif mysql # not compatible
query I rowsort label-459
SELECT ALL + CAST ( col0 AS INTEGER ) AS col1 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-460
SELECT - SUM( ALL 64 ) FROM tab1
----
-192

skipif mysql # not compatible
query I rowsort label-460
SELECT - SUM ( ALL 64 ) FROM tab1
----
-192

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-463
SELECT DISTINCT 14 DIV COUNT( * ) AS col2 FROM tab2 cor0
----
4

skipif mysql # not compatible
query I rowsort label-463
SELECT DISTINCT 14 / COUNT ( * ) AS col2 FROM tab2 cor0
----
4

query I rowsort
SELECT + col2 + + col1 AS col0 FROM tab2 AS cor0 WHERE - col1 / + ( col0 ) NOT BETWEEN ( 98 ) AND ( + ( + ( + 88 ) ) * + col2 )
----
117
125
74

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

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

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

skipif mysql # not compatible
query I rowsort label-467
SELECT ALL - COUNT ( * ) + 3 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-468
SELECT 65 + + COUNT( * ) * + 66 AS col1 FROM tab1
----
263

skipif mysql # not compatible
query I rowsort label-468
SELECT 65 + + COUNT ( * ) * + 66 AS col1 FROM tab1
----
263

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN 64 AND 52
----

query I rowsort
SELECT ALL + 34 - + col0 AS col1 FROM tab2
----
-12
-30
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-472
SELECT + col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NULL <= NULL
----

skipif mysql # not compatible
query I rowsort label-472
SELECT + col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-473
SELECT ALL - MIN( ALL - col2 ) DIV COUNT( * ) + 61 AS col0 FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-473
SELECT ALL - MIN ( ALL - col2 ) / COUNT ( * ) + 61 AS col0 FROM tab2 AS cor0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-474
SELECT + col0 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE ( - col1 + - col2 ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-474
SELECT + col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE ( - col1 + - col2 ) BETWEEN NULL AND NULL
----

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

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

query I rowsort
SELECT DISTINCT - col0 - + 0 * + 71 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-477
SELECT ALL - + MAX( ALL + col0 ) AS col2 FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-477
SELECT ALL - + MAX ( ALL + col0 ) AS col2 FROM tab0 cor0
----
-97

query III rowsort
SELECT * FROM tab2 cor0 WHERE + ( col1 ) / + col2 + col0 * col1 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-479
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( col0 AS SIGNED ) <> 19
----

skipif mysql # not compatible
query III rowsort label-479
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( col0 AS INTEGER ) <> 19
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 * - col0 col0 FROM tab0 AS cor0
----
-1131
-1261
-195

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

query I rowsort
SELECT ALL 19 + - col2 * + col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( 30 ) >= + 47
----
-1154
-3061
-3867

query I rowsort
SELECT - 94 * + ( col1 ) FROM tab0 AS cor0
----
-1974
-7614
-94

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - ( 39 ) * ( + 31 ) ) IS NOT NULL
----

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

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

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

query I rowsort
SELECT + 82 * - - col0 FROM tab0
----
1230
7134
7954

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 <= col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 68 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-491
SELECT ALL col1 / - col1 AS col1 FROM tab2 WHERE NOT NULL IN ( CAST( 79 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-491
SELECT ALL col1 / - col1 AS col1 FROM tab2 WHERE NOT NULL IN ( CAST ( 79 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT 55 * col1 FROM tab1 WHERE + 98 IS NOT NULL
----
2585
275
770

query I rowsort
SELECT ( - 83 ) AS col1 FROM tab0 WHERE NOT NULL <> ( + col1 + col1 )
----

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT ( NULL ) IN ( + col1 * 92 )
----

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 * 40 NOT IN ( + 47 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-498
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-498
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

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

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

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT - col2 / - 87 > NULL
----

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-503
SELECT DISTINCT col2 AS col0 FROM tab0 AS cor0 WHERE NOT - col1 * CAST( col1 AS DECIMAL ) NOT BETWEEN col1 AND col2
----

skipif mysql # not compatible
query I rowsort label-503
SELECT DISTINCT col2 AS col0 FROM tab0 AS cor0 WHERE NOT - col1 * CAST ( col1 AS REAL ) NOT BETWEEN col1 AND col2
----

query I rowsort
SELECT + col2 + col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL < - 75
----

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

skipif mysql # not compatible
query I rowsort label-505
SELECT - col1 / - + col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col1 * - + col2 AS col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

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

onlyif mysql # DIV for integer division: 
query II rowsort label-508
SELECT col0, + col2 + - col0 + - col2 DIV 25 AS col0 FROM tab0 AS cor0
----
15
31
87
-77
97
-1

skipif mysql # not compatible
query II rowsort label-508
SELECT col0, + col2 + - col0 + - col2 / 25 AS col0 FROM tab0 AS cor0
----
15
31
87
-77
97
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-509
SELECT ALL col1 + + - CAST( - col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
162
2
42

skipif mysql # not compatible
query I rowsort label-509
SELECT ALL col1 + + - CAST ( - col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
162
2
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 40 + + col2 col2 FROM tab2 WHERE ( ( - 97 ) * col1 + + 32 ) NOT IN ( col0 )
----
63
80
98

query I rowsort
SELECT DISTINCT - col1 * col0 + - + col0 - col2 AS col2 FROM tab0
----
-1277
-1924
-293

query I rowsort
SELECT ALL - col2 * ( - col1 ) FROM tab0
----
210
3807
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-513
SELECT 65 AS col2 FROM tab1 WHERE ( - - col1 / + CAST( col0 AS SIGNED ) * - col0 + - col1 ) > NULL
----

skipif mysql # not compatible
query I rowsort label-513
SELECT 65 AS col2 FROM tab1 WHERE ( - - col1 / + CAST ( col0 AS INTEGER ) * - col0 + - col1 ) > NULL
----

query I rowsort
SELECT ALL - 23 * - col0 AS col1 FROM tab2
----
1058
1472
1725

query I rowsort
SELECT ALL col0 + - + col0 + + col2 AS col1 FROM tab2
----
23
40
58

query I rowsort
SELECT ALL + 55 * + 23 - + col0 + col2 * col2 FROM tab1 AS cor0
----
10430
4661
5798

query I rowsort
SELECT - - col2 + 34 AS col2 FROM tab1 AS cor0
----
102
130
93

onlyif mysql # aggregate syntax: 
query I rowsort label-518
SELECT + 88 - COUNT( * ) FROM tab1 cor0 WHERE ( col2 / + 56 ) NOT IN ( - 58 )
----
85

skipif mysql # not compatible
query I rowsort label-518
SELECT + 88 - COUNT ( * ) FROM tab1 cor0 WHERE ( col2 / + 56 ) NOT IN ( - 58 )
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-519
SELECT ALL + CAST( - col0 AS SIGNED ) * + - col0 AS col0 FROM tab0 AS cor0
----
225
7569
9409

skipif mysql # not compatible
query I rowsort label-519
SELECT ALL + CAST ( - col0 AS INTEGER ) * + - col0 AS col0 FROM tab0 AS cor0
----
225
7569
9409

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

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

query I rowsort
SELECT ALL - - 44 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT ALL col0 + + 85 AS col2 FROM tab0
----
100
172
182

query I rowsort
SELECT + col1 - + - 9 + col2 + - col1 FROM tab2 AS cor0
----
32
49
67

onlyif mysql # aggregate syntax: 
query I rowsort label-524
SELECT 18 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-524
SELECT 18 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
54

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

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

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

query II rowsort
SELECT - 38 AS col0, - 75 FROM tab2 AS cor0
----
-38
-75
-38
-75
-38
-75

query I rowsort
SELECT + 30 + col2 FROM tab0 AS cor0 WHERE NOT 75 NOT IN ( + col2, col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 28 / + - 45 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-530
SELECT ALL - COUNT( * ) AS col2, - 24 DIV 11 FROM tab0 cor0
----
-3
-2

skipif mysql # not compatible
query II rowsort label-530
SELECT ALL - COUNT ( * ) AS col2, - 24 / 11 FROM tab0 cor0
----
-3
-2

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-531
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT + ( + CAST( NULL AS DECIMAL ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-531
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT + ( + CAST ( NULL AS REAL ) ) IS NULL
----

query II rowsort
SELECT ALL col2 AS col0, col1 - - 35 FROM tab0 cor0
----
10
56
47
116
99
36

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

skipif mysql # not compatible
query I rowsort label-533
SELECT COUNT ( * ) * 52 AS col2 FROM tab1
----
156

query I rowsort
SELECT DISTINCT 97 * col1 * - col2 AS col2 FROM tab0
----
-20370
-369279
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-535
SELECT ALL - 78 * - ( - - COUNT( * ) ) AS col2 FROM tab1
----
234

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-538
SELECT ALL col1 DIV - 59 AS col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-538
SELECT ALL col1 / - 59 AS col2 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE - ( + col1 ) <> ( - ( - ( - 55 ) ) - 92 )
----
51
67
77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-541
SELECT - 82 * COUNT( * ) FROM tab1
----
-246

skipif mysql # not compatible
query I rowsort label-541
SELECT - 82 * COUNT ( * ) FROM tab1
----
-246

query I rowsort
SELECT DISTINCT - col2 + col1 + + 79 FROM tab1
----
-3
25
58

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( 69 - - col2 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 * 62 + + 8 + - col2 col2 FROM tab1 AS cor0
----
2268
2296
2305

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

query I rowsort
SELECT - AVG ( col0 ) AS col1 FROM tab1 AS cor0 WHERE NULL = ( 12 )
----
NULL

query I rowsort
SELECT + 82 + + + col1 AS col0 FROM tab0
----
103
163
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-551
SELECT 83 + - - MAX( - 84 ) DIV - COUNT( * ) FROM tab1
----
111

skipif mysql # not compatible
query I rowsort label-551
SELECT 83 + - - MAX ( - 84 ) / - COUNT ( * ) FROM tab1
----
111

query I rowsort
SELECT col0 + + 94 FROM tab0
----
109
181
191

query I rowsort
SELECT ALL col2 + + 17 AS col0 FROM tab0
----
116
27
64

query I rowsort
SELECT - col1 FROM tab2 WHERE NULL <= ( + col1 * + 49 / - + col0 * + 49 )
----

query I rowsort
SELECT ALL + col1 * - + col0 * - 79 + - col1 AS col0 FROM tab2
----
185283
389235
396908

query I rowsort
SELECT DISTINCT 15 * + col2 AS col2 FROM tab1
----
1020
1440
885

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

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) = 4
----

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT DISTINCT 48 + + + ( + COUNT( * ) ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-559
SELECT DISTINCT 48 + + + ( + COUNT ( * ) ) AS col0 FROM tab1
----
51

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

skipif mysql # not compatible
query I rowsort label-560
SELECT ALL - + COUNT ( col2 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT 20 + - - col1 * + - col2 AS col1 FROM tab2 AS cor0
----
-1153
-3060
-3866

query I rowsort
SELECT ALL + 34 + + col2 AS col2 FROM tab1
----
102
130
93

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL < 44
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-565
SELECT MIN( - col0 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-565
SELECT MIN ( - col0 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col2 * - 28 AS col0 FROM tab2 AS cor0
----
-1120
-1624
-644

query II rowsort
SELECT ALL + - col0 * - col0, + col1 FROM tab0 AS cor0
----
225
81
7569
21
9409
1

query I rowsort
SELECT 0 * col0 FROM tab0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 / - ( - ( col1 ) ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-570
SELECT + MAX( DISTINCT ( - 11 ) ) AS col1 FROM tab1
----
-11

skipif mysql # not compatible
query I rowsort label-570
SELECT + MAX ( DISTINCT ( - 11 ) ) AS col1 FROM tab1
----
-11

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT col0 * + col2 - + col0 + - + col0 / - + col2 <= + 35 + - ( + col1 )
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 * col2 / - ( + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-573
SELECT ALL - COUNT( * ), 87 AS col1 FROM tab2 cor0
----
-3
87

skipif mysql # not compatible
query II rowsort label-573
SELECT ALL - COUNT ( * ), 87 AS col1 FROM tab2 cor0
----
-3
87

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-576
SELECT + 4 * + 49 * - CAST( + 82 AS SIGNED ) AS col2 FROM tab2 cor0
----
-16072
-16072
-16072

skipif mysql # not compatible
query I rowsort label-576
SELECT + 4 * + 49 * - CAST ( + 82 AS INTEGER ) AS col2 FROM tab2 cor0
----
-16072
-16072
-16072

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 >= col0 * - 89
----

query I rowsort
SELECT col2 + + 67 AS col1 FROM tab2
----
107
125
90

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

onlyif mysql # DIV for integer division: 
query II rowsort label-581
SELECT + col1 DIV + 1 AS col0, col2 * - 95 FROM tab1 AS cor0
----
14
-9120
47
-6460
5
-5605

skipif mysql # not compatible
query II rowsort label-581
SELECT + col1 / + 1 AS col0, col2 * - 95 FROM tab1 AS cor0
----
14
-9120
47
-6460
5
-5605

onlyif mysql # DIV for integer division: 
query I rowsort label-582
SELECT + + 5 DIV - - 22 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-582
SELECT + + 5 / - - 22 AS col2 FROM tab0 AS cor0
----
0
0
0

query II rowsort
SELECT ALL + 0, col0 FROM tab0 AS cor0
----
0
15
0
87
0
97

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-585
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col1, - col1 * - 82 )
----

skipif mysql # not compatible
query I rowsort label-585
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col1, - col1 * - 82 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-586
SELECT ALL + + CAST( col2 AS SIGNED ), col1 * - 43 AS col0 FROM tab0 cor0
----
10
-903
47
-3483
99
-43

skipif mysql # not compatible
query II rowsort label-586
SELECT ALL + + CAST ( col2 AS INTEGER ), col1 * - 43 AS col0 FROM tab0 cor0
----
10
-903
47
-3483
99
-43

query I rowsort
SELECT + - col2 - 18 FROM tab1 AS cor0
----
-114
-77
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-588
SELECT DISTINCT 84 - 12 * - COUNT( * ) FROM tab1 WHERE ( NOT ( NULL ) <> 45 + - - col0 )
----
84

skipif mysql # not compatible
query I rowsort label-588
SELECT DISTINCT 84 - 12 * - COUNT ( * ) FROM tab1 WHERE ( NOT ( NULL ) <> 45 + - - col0 )
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-589
SELECT DISTINCT ( + - 9 ), 6 * - CAST( 13 AS SIGNED ) + + + 67 AS col2 FROM tab1 WHERE + + col0 * col2 + - col1 IS NOT NULL
----
-9
-11

skipif mysql # not compatible
query II rowsort label-589
SELECT DISTINCT ( + - 9 ), 6 * - CAST ( 13 AS INTEGER ) + + + 67 AS col2 FROM tab1 WHERE + + col0 * col2 + - col1 IS NOT NULL
----
-9
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-590
SELECT DISTINCT 62 + CAST( col1 AS SIGNED ) AS col1 FROM tab1 WHERE + col1 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-590
SELECT DISTINCT 62 + CAST ( col1 AS INTEGER ) AS col1 FROM tab1 WHERE + col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-591
SELECT - ( + + 43 ) + COUNT( * ) FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-591
SELECT - ( + + 43 ) + COUNT ( * ) FROM tab2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-592
SELECT - COUNT( * ) + - + MAX( col0 ) AS col1 FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-592
SELECT - COUNT ( * ) + - + MAX ( col0 ) AS col1 FROM tab2
----
-78

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

onlyif mysql # aggregate syntax: 
query I rowsort label-594
SELECT ALL - + 60 - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-594
SELECT ALL - + 60 - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-57

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

query II rowsort
SELECT - col1, 5 * - 82 AS col1 FROM tab1
----
-14
-410
-47
-410
-5
-410

onlyif mysql # aggregate syntax: 
query I rowsort label-597
SELECT ALL + SUM( - + col2 ) AS col2 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-597
SELECT ALL + SUM ( - + col2 ) AS col2 FROM tab2
----
-121

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

query I rowsort
SELECT DISTINCT - - 60 * 63 AS col0 FROM tab1 AS cor0
----
3780

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

query I rowsort
SELECT ALL + 62 - - 96 + - - 44 FROM tab2 AS cor0 WHERE ( + 47 ) = NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-603
SELECT DISTINCT ( col1 ) DIV col0 + + - ( + - 69 ) AS col2 FROM tab0
----
69
74

skipif mysql # not compatible
query I rowsort label-603
SELECT DISTINCT ( col1 ) / col0 + + - ( + - 69 ) AS col2 FROM tab0
----
69
74

onlyif mysql # aggregate syntax: 
query I rowsort label-604
SELECT DISTINCT ( 2 ) + COUNT( * ) FROM tab1 WHERE + + 32 IS NULL
----
2

skipif mysql # not compatible
query I rowsort label-604
SELECT DISTINCT ( 2 ) + COUNT ( * ) FROM tab1 WHERE + + 32 IS NULL
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-605
SELECT ALL COUNT( * ) * - 47 * - 97 FROM tab1
----
13677

skipif mysql # not compatible
query I rowsort label-605
SELECT ALL COUNT ( * ) * - 47 * - 97 FROM tab1
----
13677

query II rowsort
SELECT 69 * - col1 AS col1, col0 FROM tab1
----
-3243
91
-345
85
-966
51

query I rowsort
SELECT DISTINCT ( - + 28 ) FROM tab2
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-608
SELECT CAST( NULL AS SIGNED ) * - 89 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-608
SELECT CAST ( NULL AS INTEGER ) * - 89 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 33 * 32 AS col0 FROM tab2
----
1056
1056
1056

onlyif mysql # aggregate syntax: 
query I rowsort label-610
SELECT ALL MAX( ( - - col2 ) ) + + 50 + + + SUM( - + col1 ) AS col0 FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-610
SELECT ALL MAX ( ( - - col2 ) ) + + 50 + + + SUM ( - + col1 ) AS col0 FROM tab2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-611
SELECT + COUNT( DISTINCT + + 39 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-611
SELECT + COUNT ( DISTINCT + + 39 ) FROM tab2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-612
SELECT DISTINCT + col2 DIV col0 + col0 FROM tab1
----
52
85
91

skipif mysql # not compatible
query I rowsort label-612
SELECT DISTINCT + col2 / col0 + col0 FROM tab1
----
52
85
91

onlyif mysql # aggregate syntax: 
query II rowsort label-613
SELECT - MIN( - 90 ), 0 AS col1 FROM tab1, tab1 AS cor0
----
90
0

skipif mysql # not compatible
query II rowsort label-613
SELECT - MIN ( - 90 ), 0 AS col1 FROM tab1, tab1 AS cor0
----
90
0

query I rowsort
SELECT ALL col0 * + 5 * 62 FROM tab2
----
14260
19840
23250

onlyif mysql # aggregate syntax: 
query II rowsort label-615
SELECT ALL 17 AS col0, + COUNT( * ) FROM tab1 cor0
----
17
3

skipif mysql # not compatible
query II rowsort label-615
SELECT ALL 17 AS col0, + COUNT ( * ) FROM tab1 cor0
----
17
3

onlyif mysql # DIV for integer division: 
query I rowsort label-616
SELECT ALL - + col2 - col2 + col2 DIV + col2 col2 FROM tab1 AS cor0
----
-117
-135
-191

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-616
SELECT ALL - + col2 - col2 + col2 / + col2 col2 FROM tab1 AS cor0
----
-117
-135
-191

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT DISTINCT + - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= - col2
----
0

skipif mysql # not compatible
query I rowsort label-617
SELECT DISTINCT + - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= - col2
----
0

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

skipif mysql # not compatible
query I rowsort label-618
SELECT ALL + - col0 * - col1 * + CAST ( + - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT + col1 * col2 <= NULL
----

query I rowsort
SELECT DISTINCT + + 92 + - col0 FROM tab1 AS cor0
----
1
41
7

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

skipif mysql # not compatible
query I rowsort label-620
SELECT - SUM ( DISTINCT + 4 ) FROM tab1 AS cor0
----
-4

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

onlyif mysql # aggregate syntax: 
query I rowsort label-622
SELECT - SUM( - - col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-622
SELECT - SUM ( - - col1 ) FROM tab0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-623
SELECT DISTINCT - 99 * MIN( DISTINCT col2 ) - COUNT( * ) AS col0 FROM tab0
----
-993

skipif mysql # not compatible
query I rowsort label-623
SELECT DISTINCT - 99 * MIN ( DISTINCT col2 ) - COUNT ( * ) AS col0 FROM tab0
----
-993

query II rowsort
SELECT DISTINCT 36 - - - 53, + col0 FROM tab1 AS cor0 WHERE NOT 99 BETWEEN - col0 * + + 41 * col2 AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * + + 52 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-626
SELECT DISTINCT MAX( ALL + + col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-626
SELECT DISTINCT MAX ( ALL + + col0 ) FROM tab2 AS cor0
----
75

query I rowsort
SELECT 44 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-628
SELECT ALL col1 FROM tab2 cor0 WHERE NOT ( NOT ( - CAST( NULL AS SIGNED ) ) < NULL )
----

skipif mysql # not compatible
query I rowsort label-628
SELECT ALL col1 FROM tab2 cor0 WHERE NOT ( NOT ( - CAST ( NULL AS INTEGER ) ) < NULL )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-629
SELECT ALL MAX ( DISTINCT - - col2 ) col0 FROM tab0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-630
SELECT * FROM tab1 WHERE NOT - + CAST( + CAST( - col2 AS SIGNED ) AS SIGNED ) <= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-630
SELECT * FROM tab1 WHERE NOT - + CAST ( + CAST ( - col2 AS INTEGER ) AS INTEGER ) <= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-632
SELECT col2 + + col0 + + col1 + - + col2 / + col2 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 + - 31 NOT BETWEEN - 70 + + + ( - CAST( NULL AS SIGNED ) ) AND + 31
----

skipif mysql # not compatible
query I rowsort label-632
SELECT col2 + + col0 + + col1 + - + col2 / + col2 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 + - 31 NOT BETWEEN - 70 + + + ( - CAST ( NULL AS INTEGER ) ) AND + 31
----

query I rowsort
SELECT DISTINCT + col2 * + col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-634
SELECT DISTINCT - - MAX( col1 ) * - 31 AS col2 FROM tab0 AS cor0
----
-2511

skipif mysql # not compatible
query I rowsort label-634
SELECT DISTINCT - - MAX ( col1 ) * - 31 AS col2 FROM tab0 AS cor0
----
-2511

query I rowsort
SELECT + 61 * - + col0 AS col1 FROM tab0
----
-5307
-5917
-915

onlyif mysql # DIV for integer division: 
query I rowsort label-636
SELECT - 28 * + col0 DIV + col0 FROM tab0
----
-28
-28
-28

skipif mysql # not compatible
query I rowsort label-636
SELECT - 28 * + col0 / + col0 FROM tab0
----
-28
-28
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-637
SELECT DISTINCT col1 DIV + col2 + + col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-637
SELECT DISTINCT col1 / + col2 + + col1 FROM tab1
----
14
47
5

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

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

skipif mysql # not compatible
query II rowsort label-639
SELECT - CAST ( NULL AS INTEGER ), - COUNT ( * ) AS col0 FROM tab0
----
NULL
-3

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

skipif mysql # not compatible
query I rowsort label-640
SELECT DISTINCT 14 + COUNT ( * ) FROM tab0
----
17

query I rowsort
SELECT ALL 1 * + 60 FROM tab1
----
60
60
60

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

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

query I rowsort
SELECT col1 * - 84 AS col0 FROM tab0 AS cor0
----
-1764
-6804
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-644
SELECT + 61 + + MAX( - + col0 ) * - COUNT( * ), SUM( ALL 87 ) * - COUNT( * ) + + 21 AS col1 FROM tab2 AS cor0
----
199
-762

skipif mysql # not compatible
query II rowsort label-644
SELECT + 61 + + MAX ( - + col0 ) * - COUNT ( * ), SUM ( ALL 87 ) * - COUNT ( * ) + + 21 AS col1 FROM tab2 AS cor0
----
199
-762

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-645
SELECT ALL CAST( - 36 AS SIGNED ) * - col2 FROM tab2 AS cor0
----
1440
2088
828

skipif mysql # not compatible
query I rowsort label-645
SELECT ALL CAST ( - 36 AS INTEGER ) * - col2 FROM tab2 AS cor0
----
1440
2088
828

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + 92 IN ( 54 - - col0 )
----

query I rowsort
SELECT ALL 13 + - col0 FROM tab2
----
-33
-51
-62

query II rowsort
SELECT DISTINCT ( col0 ), + col0 AS col2 FROM tab1 WHERE col2 NOT BETWEEN + col1 AND ( - - 70 )
----
51
51

query I rowsort
SELECT ALL + col0 * - - col0 + + 61 AS col1 FROM tab2 AS cor0
----
2177
4157
5686

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

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

query I rowsort
SELECT + 36 * + - col2 AS col1 FROM tab2 AS cor0
----
-1440
-2088
-828

query I rowsort
SELECT 10 * col1 * + 35 AS col1 FROM tab1 AS cor0
----
16450
1750
4900

onlyif mysql # DIV for integer division: 
query I rowsort label-653
SELECT DISTINCT - col0 * - col2 DIV - col2 AS col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-653
SELECT DISTINCT - col0 * - col2 / - col2 AS col0 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT col2 * - 64 FROM tab0 AS cor0
----
-3008
-6336
-640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( - + 91 ) col1, col1 * + ( - - col0 ) AS col0 FROM tab2 cor0
----
-91
2346
-91
4928
-91
5025

query I rowsort
SELECT + col2 * - - ( col1 ) * + 65 + 13 * - 44 AS col1 FROM tab0
----
13078
246883
5863

query I rowsort
SELECT ( + 20 ) + - col0 + 80 AS col1 FROM tab1
----
15
49
9

query I rowsort
SELECT DISTINCT - 34 + col0 * col2 FROM tab2
----
1024
2526
4316

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

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

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

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

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

query I rowsort
SELECT 15 * - col0 * + 43 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-663
SELECT CAST( + - 15 AS SIGNED ) DIV + col0 + 91 FROM tab0
----
90
91
91

skipif mysql # not compatible
query I rowsort label-663
SELECT CAST ( + - 15 AS INTEGER ) / + col0 + 91 FROM tab0
----
90
91
91

query I rowsort
SELECT - - 59 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

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

query II rowsort
SELECT - - 5, 41 * + + 89 AS col2 FROM tab0 AS cor0
----
5
3649
5
3649
5
3649

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

query I rowsort
SELECT DISTINCT - col2 * - 55 * 7 * + col2 FROM tab2 cor0
----
1295140
203665
616000

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 IN ( - col1, 31, - - 33 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-671
SELECT col1 DIV - 80 + - + ( - 55 ) FROM tab0
----
54
55
55

skipif mysql # not compatible
query I rowsort label-671
SELECT col1 / - 80 + - + ( - 55 ) FROM tab0
----
54
55
55

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

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

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

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

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

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

query I rowsort
SELECT + col1 * + 22 AS col0 FROM tab2
----
1122
1474
1694

onlyif mysql # aggregate syntax: 
query II rowsort label-676
SELECT ALL COUNT( * ) * + - 79, + 28 AS col0 FROM tab0
----
-237
28

skipif mysql # not compatible
query II rowsort label-676
SELECT ALL COUNT ( * ) * + - 79, + 28 AS col0 FROM tab0
----
-237
28

query I rowsort
SELECT - 55 + col2 AS col0 FROM tab0 WHERE NULL NOT BETWEEN + col0 AND col0 * - - 92 - - col2 + 84
----

query I rowsort
SELECT DISTINCT + - 52 FROM tab1 cor0
----
-52

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

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

query I rowsort
SELECT DISTINCT 95 + + col1 * + 24 AS col1 FROM tab0
----
119
2039
599

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT ALL COUNT( * ) + + SUM( + col2 ) AS col1 FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-681
SELECT ALL COUNT ( * ) + + SUM ( + col2 ) AS col1 FROM tab0
----
159

query I rowsort
SELECT ALL + 83 - + - 61 AS col0 FROM tab0 cor0
----
144
144
144

onlyif mysql # aggregate syntax: 
query I rowsort label-683
SELECT DISTINCT - MAX( ALL 75 ) - MAX( - - 64 ) AS col1 FROM tab0 AS cor0
----
-139

skipif mysql # not compatible
query I rowsort label-683
SELECT DISTINCT - MAX ( ALL 75 ) - MAX ( - - 64 ) AS col1 FROM tab0 AS cor0
----
-139

query I rowsort
SELECT - + 94 + col1 + - 11 AS col1 FROM tab2 AS cor0
----
-28
-38
-54

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

query I rowsort
SELECT ALL + 74 - + 79 FROM tab2 AS cor0
----
-5
-5
-5

query III rowsort
SELECT col1 * - col2 * - 16 AS col1, col1, - 35 FROM tab2 AS cor0
----
9 values hashing to 6acf857b9012d715489b3ff25a74fa4b

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-689
SELECT ALL + CAST( + CAST( - + col1 AS DECIMAL ) AS SIGNED ) + + col1 AS col1, col1 AS col0 FROM tab0 cor0
----
0
1
0
21
0
81

skipif mysql # not compatible
query II rowsort label-689
SELECT ALL + CAST ( + CAST ( - + col1 AS REAL ) AS INTEGER ) + + col1 AS col1, col1 AS col0 FROM tab0 cor0
----
0
1
0
21
0
81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-691
SELECT - ( - 33 ) * + - COUNT( * ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-691
SELECT - ( - 33 ) * + - COUNT ( * ) FROM tab0
----
-99

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

skipif mysql # not compatible
query I rowsort label-692
SELECT - CAST ( - - col2 AS INTEGER ) AS col0 FROM tab1
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-693
SELECT col0 DIV + - 92 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-693
SELECT col0 / + - 92 AS col0 FROM tab2
----
0
0
0

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

query I rowsort
SELECT 32 * - col1 AS col1 FROM tab0
----
-2592
-32
-672

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

skipif mysql # not compatible
query II rowsort label-696
SELECT DISTINCT + col2 / - 55, + col0 FROM tab0
----
-1
97
0
15
0
87

onlyif mysql # aggregate syntax: 
query I rowsort label-697
SELECT ALL - MIN( - 8 ) AS col0 FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-697
SELECT ALL - MIN ( - 8 ) AS col0 FROM tab0
----
8

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 77 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 49 * - col0 col1 FROM tab1 AS cor0
----
-2499
-4165
-4459

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-700
SELECT DISTINCT - - col0 * - CAST( NULL AS SIGNED ) + - 79 / + col0 FROM tab0 AS cor0 WHERE - col2 + + 54 + + + 12 IS NULL
----

skipif mysql # not compatible
query I rowsort label-700
SELECT DISTINCT - - col0 * - CAST ( NULL AS INTEGER ) + - 79 / + col0 FROM tab0 AS cor0 WHERE - col2 + + 54 + + + 12 IS NULL
----

query II rowsort
SELECT col1 * + 98 * + - col1 * 10, + col1 AS col2 FROM tab2 AS cor0
----
-2548980
51
-4399220
67
-5810420
77

onlyif mysql # aggregate syntax: 
query I rowsort label-702
SELECT ALL COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-702
SELECT ALL COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-704
SELECT COUNT( * ) + + 72 + 84 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
165

skipif mysql # not compatible
query I rowsort label-704
SELECT COUNT ( * ) + + 72 + 84 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
165

query I rowsort
SELECT + 99 * - col0 AS col2 FROM tab0 AS cor0
----
-1485
-8613
-9603

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

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

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

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

query I rowsort
SELECT ALL col0 + + col1 + - 39 FROM tab1
----
26
51
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 + + col0 + + col0 + + 14 col2, ( - - ( - - col2 ) ) * 76 * - col2 + + col1 * - ( + col2 ) FROM tab0
----
125
-171691
209
-744975
209
-7810

onlyif mysql # DIV for integer division: 
query I rowsort label-711
SELECT DISTINCT 8 + + + 87 + + col2 DIV - col0 - + col0 FROM tab0
----
-3
77
8

skipif mysql # not compatible
query I rowsort label-711
SELECT DISTINCT 8 + + + 87 + + col2 / - col0 - + col0 FROM tab0
----
-3
77
8

query I rowsort
SELECT ALL 35 + ( col0 ) FROM tab2
----
110
81
99

query I rowsort
SELECT - col0 + + col0 + 23 * + - 78 * - col2 FROM tab1
----
105846
121992
172224

onlyif mysql # DIV for integer division: 
query I rowsort label-714
SELECT col2 + - 60 DIV - col0 AS col2 FROM tab0
----
10
51
99

skipif mysql # not compatible
query I rowsort label-714
SELECT col2 + - 60 / - col0 AS col2 FROM tab0
----
10
51
99

onlyif mysql # aggregate syntax: 
query I rowsort label-715
SELECT ALL - SUM( - 6 ) AS col2 FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-715
SELECT ALL - SUM ( - 6 ) AS col2 FROM tab1
----
18

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-717
SELECT + + CAST( + 53 AS SIGNED ) DIV + COUNT( * ) + + 1 AS col2 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-717
SELECT + + CAST ( + 53 AS INTEGER ) / + COUNT ( * ) + + 1 AS col2 FROM tab0 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-718
SELECT - + SUM( ALL 86 ) * - 88 FROM tab1 AS cor0
----
22704

skipif mysql # not compatible
query I rowsort label-718
SELECT - + SUM ( ALL 86 ) * - 88 FROM tab1 AS cor0
----
22704

query II rowsort
SELECT DISTINCT - col2, 57 AS col1 FROM tab0 AS cor0
----
-10
57
-47
57
-99
57

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 65 > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-721
SELECT DISTINCT + MAX( + + 39 ), 35 AS col2 FROM tab2 WHERE - 55 IS NOT NULL
----
39
35

skipif mysql # not compatible
query II rowsort label-721
SELECT DISTINCT + MAX ( + + 39 ), 35 AS col2 FROM tab2 WHERE - 55 IS NOT NULL
----
39
35

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

onlyif mysql # aggregate syntax: 
query I rowsort label-723
SELECT - SUM( ALL + + 97 ) AS col2 FROM tab2
----
-291

skipif mysql # not compatible
query I rowsort label-723
SELECT - SUM ( ALL + + 97 ) AS col2 FROM tab2
----
-291

query I rowsort
SELECT - col2 - - + ( ( col2 ) ) * + col0 + + col0 AS col2 FROM tab0 cor0
----
673
947
9601

onlyif mysql # aggregate syntax: 
query II rowsort label-725
SELECT ALL - COUNT( * ) - + + COUNT( * ) + + COUNT( * ) * ( + 62 ) + - MIN( ALL + col1 ), - 88 * - COUNT( * ) AS col2 FROM tab1 cor0
----
175
264

skipif mysql # not compatible
query II rowsort label-725
SELECT ALL - COUNT ( * ) - + + COUNT ( * ) + + COUNT ( * ) * ( + 62 ) + - MIN ( ALL + col1 ), - 88 * - COUNT ( * ) AS col2 FROM tab1 cor0
----
175
264

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

query II rowsort
SELECT + col0 - + - col0 AS col1, 64 AS col2 FROM tab1 cor0
----
102
64
170
64
182
64

query I rowsort
SELECT ALL - - 46 AS col0 FROM tab0 AS cor0
----
46
46
46

query I rowsort
SELECT ALL - - col0 * + + col0 - + col0 AS col2 FROM tab0 AS cor0
----
210
7482
9312

query I rowsort
SELECT ALL + - 52 AS col1 FROM tab2 cor0
----
-52
-52
-52

query I rowsort
SELECT DISTINCT + ( + + ( - + ( - col1 ) ) ) AS col2 FROM tab2 AS cor0
----
51
67
77

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

query I rowsort
SELECT 21 * - col2 AS col2 FROM tab0
----
-2079
-210
-987

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT ALL MAX( ALL ( + 96 ) ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-734
SELECT ALL MAX ( ALL ( + 96 ) ) FROM tab1
----
96

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-736
SELECT 1 * + - MAX( - 16 ) AS col2, - COUNT( * ) AS col0 FROM tab1
----
16
-3

skipif mysql # not compatible
query II rowsort label-736
SELECT 1 * + - MAX ( - 16 ) AS col2, - COUNT ( * ) AS col0 FROM tab1
----
16
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 BETWEEN + 65 + col2 AND + 21
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # DIV for integer division: 
query I rowsort label-739
SELECT ALL - col1 DIV - + ( 61 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-739
SELECT ALL - col1 / - + ( 61 ) FROM tab1
----
0
0
0

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

query II rowsort
SELECT DISTINCT + 26 AS col1, - 9 FROM tab0
----
26
-9

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 IN ( col0, col0, + 86 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

query I rowsort
SELECT col2 * + col2 * + - col0 AS col0 FROM tab1
----
-295885
-420784
-470016

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-747
SELECT col1 * + + CAST( NULL AS SIGNED ) AS col1, col0 AS col2 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-747
SELECT col1 * + + CAST ( NULL AS INTEGER ) AS col1, col0 AS col2 FROM tab2
----
NULL
46
NULL
64
NULL
75

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

onlyif mysql # aggregate syntax: 
query II rowsort label-749
SELECT DISTINCT 86 col1, COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----
86
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-749
SELECT DISTINCT 86 col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----
86
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-750
SELECT DISTINCT 34 * + col1 + CAST( 78 AS SIGNED ) FROM tab2
----
1812
2356
2696

skipif mysql # not compatible
query I rowsort label-750
SELECT DISTINCT 34 * + col1 + CAST ( 78 AS INTEGER ) FROM tab2
----
1812
2356
2696

query I rowsort
SELECT col2 + 30 + col1 AS col1 FROM tab1
----
140
145
94

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-754
SELECT DISTINCT - 23 * - SUM( DISTINCT - 27 ) AS col2, + MIN( DISTINCT - 10 ) FROM tab2
----
-621
-10

skipif mysql # not compatible
query II rowsort label-754
SELECT DISTINCT - 23 * - SUM ( DISTINCT - 27 ) AS col2, + MIN ( DISTINCT - 10 ) FROM tab2
----
-621
-10

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

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

query I rowsort
SELECT + 52 FROM tab0 WHERE 61 IS NULL
----

query I rowsort
SELECT - - col2 - - + col0 AS col0 FROM tab0 AS cor0
----
196
62
97

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 - - - col0 * - col0 * + 5 * col1 * - 5 BETWEEN - col1 AND NULL
----

query I rowsort
SELECT ALL - - 29 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 21 * col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-761
SELECT ( CAST( NULL AS SIGNED ) ) AS col2, 41 AS col1 FROM tab0 AS cor0
----
NULL
41
NULL
41
NULL
41

skipif mysql # not compatible
query II rowsort label-761
SELECT ( CAST ( NULL AS INTEGER ) ) AS col2, 41 AS col1 FROM tab0 AS cor0
----
NULL
41
NULL
41
NULL
41

query I rowsort
SELECT + 53 * + ( - col1 ) FROM tab1 AS cor0
----
-2491
-265
-742

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN + 68 + - - 3 / - ( - col2 ) AND - col0
----

query I rowsort
SELECT DISTINCT - 66 * 71 AS col0 FROM tab2 AS cor0
----
-4686

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

query I rowsort
SELECT + col2 * + 3 * - 98 FROM tab0
----
-13818
-29106
-2940

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-770
SELECT - 55 col0 FROM tab0 WHERE NOT - col2 + - 80 + - CAST ( NULL AS INTEGER ) * - 89 + col1 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-771
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE NOT col0 = NULL
----
0

query I rowsort
SELECT ALL + + 86 + + col2 + - col0 + + + 65 FROM tab2 WHERE NOT + ( ( col2 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-773
SELECT ALL + + COUNT( * ) * 13 + + + 70 * - COUNT( * ) - - 62 AS col0 FROM tab2 AS cor0
----
-109

skipif mysql # not compatible
query I rowsort label-773
SELECT ALL + + COUNT ( * ) * 13 + + + 70 * - COUNT ( * ) - - 62 AS col0 FROM tab2 AS cor0
----
-109

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-775
SELECT DISTINCT + + col1 * - CAST( NULL AS DECIMAL ) / 68 * + 17 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-775
SELECT DISTINCT + + col1 * - CAST ( NULL AS REAL ) / 68 * + 17 AS col2 FROM tab1 AS cor0
----
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col2 + + col2 col1 FROM tab2 AS cor0
----
-1150
-3040
-3828

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-780
SELECT DISTINCT - COUNT( * ) - - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-780
SELECT DISTINCT - COUNT ( * ) - - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query I rowsort
SELECT DISTINCT - + 39 + - 72 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-111

query I rowsort
SELECT col2 * 9 - col1 + + 97 FROM tab0 AS cor0
----
166
439
987

query I rowsort
SELECT DISTINCT - 1 * - + 46 FROM tab1 AS cor0
----
46

query I rowsort
SELECT + + col0 * - ( + + 5 ) FROM tab1 AS cor0
----
-255
-425
-455

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col0 + 18 - col1 col1 FROM tab0 cor0
----
114
1152
1824

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 * + + 80 * + 44 col0, col0 + col1 + - - col2 FROM tab2 AS cor0
----
-179520
120
-235840
200
-271040
181

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 NOT IN ( - col2, col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # DIV for integer division: 
query I rowsort label-790
SELECT ALL col1 + col1 + - col1 + - 6 DIV - - col1 FROM tab0
----
-5
21
81

skipif mysql # not compatible
query I rowsort label-790
SELECT ALL col1 + col1 + - col1 + - 6 / - - col1 FROM tab0
----
-5
21
81

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

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

query I rowsort
SELECT DISTINCT - + 61 AS col1 FROM tab1 AS cor0
----
-61

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

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

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

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

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT - + 31 NOT BETWEEN - - col0 + - col2 AND NULL
----

query I rowsort
SELECT + 94 FROM tab2 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - 28 AS col2, 87 FROM tab1
----
-28
87
-28
87
-28
87

query II rowsort
SELECT ALL + + col0 AS col2, col1 AS col0 FROM tab1 AS cor0
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-801
SELECT SUM( - 1 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-801
SELECT SUM ( - 1 ) FROM tab2 AS cor0
----
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-803
SELECT ALL + COUNT( DISTINCT + + 20 ) AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-803
SELECT ALL + COUNT ( DISTINCT + + 20 ) AS col1 FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT - + 66 * 62 * - col1 FROM tab1 AS cor0
----
192324
20460
57288

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + 36 / + 93 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col2 AS col2, col1 FROM tab1 WHERE NOT + col2 IS NULL
----
59
5
68
47
96
14

query II rowsort
SELECT - 67 AS col2, 20 * - + 57 FROM tab2
----
-67
-1140
-67
-1140
-67
-1140

query I rowsort
SELECT col0 * - 63 * - 74 FROM tab1
----
237762
396270
424242

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-813
SELECT + 54 DIV + 56 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-813
SELECT + 54 / + 56 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT + col1 + - 54 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-816
SELECT + 72 DIV + col1 col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-816
SELECT + 72 / + col1 col0 FROM tab2
----
0
1
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-818
SELECT ALL - col1 + + + CAST( col1 AS SIGNED ) FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-818
SELECT ALL - col1 + + + CAST ( col1 AS INTEGER ) FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

query II rowsort
SELECT ( + col0 ), 66 + - - col1 AS col2 FROM tab0 cor0
----
15
147
87
87
97
67

query I rowsort
SELECT - - 87 FROM tab1 AS cor0 WHERE NOT - col1 NOT BETWEEN + - col2 AND - col2 - - 1 + col2
----
87
87
87

query II rowsort
SELECT DISTINCT - col1 AS col2, - col1 FROM tab0 cor0
----
-1
-1
-21
-21
-81
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-822
SELECT CAST( + - 59 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-59
-59
-59

skipif mysql # not compatible
query I rowsort label-822
SELECT CAST ( + - 59 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-59
-59
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-823
SELECT 68 col1, MIN( + col1 ) FROM tab0 AS cor0
----
68
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-823
SELECT 68 col1, MIN ( + col1 ) FROM tab0 AS cor0
----
68
1

onlyif mysql # DIV for integer division: 
query I rowsort label-824
SELECT DISTINCT ( + 84 ) + - col0 DIV col2 FROM tab2
----
82
83

skipif mysql # not compatible
query I rowsort label-824
SELECT DISTINCT ( + 84 ) + - col0 / col2 FROM tab2
----
82
83

query I rowsort
SELECT DISTINCT + col1 * + 43 * col2 AS col1 FROM tab2 AS cor0
----
132440
167098
50439

query II rowsort
SELECT DISTINCT + col2 * col1, 12 AS col0 FROM tab1 cor0
----
1344
12
295
12
3196
12

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

query I rowsort
SELECT + + 31 * + 75 * - col2 AS col1 FROM tab2 AS cor0
----
-134850
-53475
-93000

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-830
SELECT ALL * FROM tab1 WHERE - ( + CAST( + 16 AS SIGNED ) ) NOT IN ( col1 * + col2 - 79 * + col0 + + col2, col2 + - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-830
SELECT ALL * FROM tab1 WHERE - ( + CAST ( + 16 AS INTEGER ) ) NOT IN ( col1 * + col2 - 79 * + col0 + + col2, col2 + - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-831
SELECT DISTINCT + COUNT( DISTINCT + 46 ) - + + 7 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-831
SELECT DISTINCT + COUNT ( DISTINCT + 46 ) - + + 7 FROM tab2
----
-6

query III rowsort
SELECT * FROM tab2 WHERE + + col2 >= + + 28
----
64
77
40
75
67
58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + ( + col2 ) >= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-836
SELECT DISTINCT col1 - col1 + - col1 DIV 96 * + - col0 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-836
SELECT DISTINCT col1 - col1 + - col1 / 96 * + - col0 AS col0 FROM tab1
----
0

query I rowsort
SELECT + - col0 FROM tab1 WHERE ( 1 ) <= col1
----
-51
-85
-91

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

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

query I rowsort
SELECT 15 - - 41 AS col1 FROM tab0
----
56
56
56

query I rowsort
SELECT col0 - + 51 AS col1 FROM tab0 AS cor0
----
-36
36
46

query I rowsort
SELECT ALL - - 76 - - col0 FROM tab2 AS cor0
----
122
140
151

query I rowsort
SELECT + 11 + - - 41 + - 62 * + - col1 AS col0 FROM tab1 cor0
----
2966
362
920

query I rowsort
SELECT - - 56 * + col0 FROM tab2 cor0
----
2576
3584
4200

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

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

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

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

query I rowsort
SELECT + col2 * - 88 * - + col2 AS col0 FROM tab0
----
194392
862488
8800

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

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

query I rowsort
SELECT DISTINCT col0 - + 90 FROM tab1 WHERE NOT col0 + + + 34 + 97 * + 5 > + col1
----

query I rowsort
SELECT DISTINCT col0 * + - ( col2 ) AS col2 FROM tab0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-851
SELECT DISTINCT MAX( ALL - 0 ) AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-851
SELECT DISTINCT MAX ( ALL - 0 ) AS col1 FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-852
SELECT DISTINCT + ( SUM( + 77 ) ) FROM tab0 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-852
SELECT DISTINCT + ( SUM ( + 77 ) ) FROM tab0 AS cor0
----
231

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-856
SELECT DISTINCT + ( - + MAX( ALL - 18 ) ) AS col2 FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-856
SELECT DISTINCT + ( - + MAX ( ALL - 18 ) ) AS col2 FROM tab1 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-857
SELECT ALL COUNT( - 3 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-857
SELECT ALL COUNT ( - 3 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-858
SELECT ALL COUNT( * ) AS col1, - 14 FROM tab0
----
3
-14

skipif mysql # not compatible
query II rowsort label-858
SELECT ALL COUNT ( * ) AS col1, - 14 FROM tab0
----
3
-14

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NOT col0 - - col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT DISTINCT - SUM( DISTINCT - 28 ) AS col0 FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-860
SELECT DISTINCT - SUM ( DISTINCT - 28 ) AS col0 FROM tab2
----
28

query I rowsort
SELECT ALL - col2 * + 54 + - col2 AS col0 FROM tab0 WHERE NOT + ( - - col2 ) < col1 * col0
----
-5445

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-863
SELECT - COUNT( * ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NOT + + col1 + + + 32 + + 77 + - + col1 * + - 21 IN ( + - col0, - col0 - + - 24, + + col1, col1 + - CAST( - - col0 AS SIGNED ), - 13 + - col1 * col2, - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-863
SELECT - COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NOT + + col1 + + + 32 + + 77 + - + col1 * + - 21 IN ( + - col0, - col0 - + - 24, + + col1, col1 + - CAST ( - - col0 AS INTEGER ), - 13 + - col1 * col2, - col2 )
----
NULL

query I rowsort
SELECT DISTINCT col0 * - + col0 AS col0 FROM tab0
----
-225
-7569
-9409

query I rowsort
SELECT 62 * + 38 FROM tab0
----
2356
2356
2356

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

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

query I rowsort
SELECT + col2 + - col0 * col1 AS col2 FROM tab2 AS cor0
----
-2323
-4888
-4967

query I rowsort
SELECT DISTINCT - 17 + - col1 FROM tab0 AS cor0 WHERE 93 > NULL
----

query I rowsort
SELECT ALL - 8 + 81 FROM tab1 AS cor0
----
73
73
73

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - col1 > NULL
----

query I rowsort
SELECT + col1 * - - 6 + + col1 * col1 FROM tab1 AS cor0
----
2491
280
55

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

onlyif mysql # DIV for integer division: 
query I rowsort label-873
SELECT DISTINCT col0 DIV - - col2 FROM tab0 AS cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-873
SELECT DISTINCT col0 / - - col2 FROM tab0 AS cor0
----
0
8

query I rowsort
SELECT col0 * - - 13 FROM tab1 cor0
----
1105
1183
663

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-876
SELECT - CAST( - COUNT( * ) AS SIGNED ) - - 82 AS col1 FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-876
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) - - 82 AS col1 FROM tab2 AS cor0
----
85

query II rowsort
SELECT DISTINCT 87, col0 FROM tab1 AS cor0
----
87
51
87
85
87
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-878
SELECT DISTINCT + SUM( 15 ) + - 12 + - - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-878
SELECT DISTINCT + SUM ( 15 ) + - 12 + - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab2
----
NULL

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

query I rowsort
SELECT DISTINCT - col0 + + col0 - - + 49 * - col2 + + col1 FROM tab0
----
-2222
-469
-4850

query I rowsort
SELECT ALL ( 78 ) - col0 + + col0 AS col1 FROM tab2
----
78
78
78

query I rowsort
SELECT DISTINCT + 76 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT - - col0 * 15 AS col0, col0 AS col2 FROM tab1 AS cor0
----
1275
85
1365
91
765
51

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 >= col2 * - 66 + + col1
----

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

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

query II rowsort
SELECT ALL col1 AS col2, + 6 + + ( + - col0 ) FROM tab0
----
1
-91
21
-81
81
-9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN 29 AND - col0 * 20
----

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

query I rowsort
SELECT - col0 * - col0 + - ( + col0 ) AS col0 FROM tab1
----
2550
7140
8190

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-891
SELECT - COUNT( * ) DIV - COUNT( * ) + - COUNT( * ) FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-891
SELECT - COUNT ( * ) / - COUNT ( * ) + - COUNT ( * ) FROM tab0
----
-2

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-892
SELECT - COUNT ( * ) * + CAST ( NULL AS INTEGER ) * CAST ( + 28 AS INTEGER ) col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-893
SELECT COUNT( - col1 ) * 94 AS col1 FROM tab0
----
282

skipif mysql # not compatible
query I rowsort label-893
SELECT COUNT ( - col1 ) * 94 AS col1 FROM tab0
----
282

onlyif mysql # aggregate syntax: 
query I rowsort label-894
SELECT DISTINCT + ( COUNT( * ) ) * - ( + 4 ) - 28 AS col0 FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-894
SELECT DISTINCT + ( COUNT ( * ) ) * - ( + 4 ) - 28 AS col0 FROM tab2
----
-40

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 * - col1 - + 68 + + ( + - col0 ) * + - 68 AS col2 FROM tab1 cor0
----
1843
2686
5287

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-900
SELECT AVG ( DISTINCT + col0 ) FROM tab1 WHERE + col0 = + + ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-900
SELECT AVG ( DISTINCT + col0 ) FROM tab1 WHERE + col0 = + + ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-901
SELECT ALL + ( + 63 ) + - CAST( NULL AS SIGNED ) * + - 71 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-901
SELECT ALL + ( + 63 ) + - CAST ( NULL AS INTEGER ) * + - 71 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 35 - + - 13 FROM tab1 AS cor0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-903
SELECT - col0 DIV + 68 col0 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-903
SELECT - col0 / + 68 col0 FROM tab1
----
-1
-1
0

query I rowsort
SELECT ( + col0 ) * + col0 * + col2 AS col0 FROM tab0
----
10575
75690
931491

query I rowsort
SELECT + col2 + + col1 * - + ( + + 24 ) FROM tab1 WHERE - ( + col1 ) = + - col1
----
-1060
-240
-61

query I rowsort
SELECT 58 * - - 97 AS col1 FROM tab2
----
5626
5626
5626

query I rowsort
SELECT col0 - + col1 * + col2 + + - col0 + - 63 * + - col0 AS col0 FROM tab1
----
1869
2537
5060

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-908
SELECT CAST( NULL AS SIGNED ) * - + col2 * + - col1 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-908
SELECT CAST ( NULL AS INTEGER ) * - + col2 * + - col1 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----

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

query II rowsort
SELECT ALL - ( + + 82 ) AS col0, - col2 AS col2 FROM tab1
----
-82
-59
-82
-68
-82
-96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-912
SELECT DISTINCT 56 + - + CAST( 72 AS SIGNED ) + + 66 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-912
SELECT DISTINCT 56 + - + CAST ( 72 AS INTEGER ) + + 66 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col1, + col1 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1
1
21
21
81
81

query I rowsort
SELECT + + 67 * col0 AS col1 FROM tab2 AS cor0
----
3082
4288
5025

onlyif mysql # DIV for integer division: 
query II rowsort label-915
SELECT ALL col0 DIV + col1, - 15 AS col2 FROM tab0
----
0
-15
4
-15
97
-15

skipif mysql # not compatible
query II rowsort label-915
SELECT ALL col0 / + col1, - 15 AS col2 FROM tab0
----
0
-15
4
-15
97
-15

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

onlyif mysql # aggregate syntax: 
query I rowsort label-917
SELECT + MAX( 91 ) AS col1 FROM tab0 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-917
SELECT + MAX ( 91 ) AS col1 FROM tab0 AS cor0
----
91

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - 27 IN ( - - col2 * - col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-919
SELECT ALL MIN( ALL - 27 ) AS col1, + COUNT( * ) FROM tab2 AS cor0
----
-27
3

skipif mysql # not compatible
query II rowsort label-919
SELECT ALL MIN ( ALL - 27 ) AS col1, + COUNT ( * ) FROM tab2 AS cor0
----
-27
3

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-922
SELECT ALL + 64 + MAX( ALL CAST( + 26 AS SIGNED ) ) FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-922
SELECT ALL + 64 + MAX ( ALL CAST ( + 26 AS INTEGER ) ) FROM tab0
----
90

query II rowsort
SELECT ALL col0 AS col0, + 11 * - 42 FROM tab2
----
46
-462
64
-462
75
-462

query I rowsort
SELECT DISTINCT + col0 + + 68 FROM tab2
----
114
132
143

query I rowsort
SELECT DISTINCT + col0 * - col1 * - - 72 AS col1 FROM tab2
----
-168912
-354816
-361800

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

query I rowsort
SELECT DISTINCT - col0 + 80 AS col0 FROM tab2 AS cor0
----
16
34
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-928
SELECT ALL 81 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-929
SELECT 1 * - col0 FROM tab1 WHERE NOT 53 * + col2 <= CAST( + col0 AS SIGNED )
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-929
SELECT 1 * - col0 FROM tab1 WHERE NOT 53 * + col2 <= CAST ( + col0 AS INTEGER )
----
-51
-85
-91

query III rowsort
SELECT * FROM tab1 WHERE 4 / + col0 = ( - 45 - + col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 / col0 IS NOT NULL
----

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

query III rowsort
SELECT * FROM tab1 WHERE col0 < ( - 16 )
----

query III rowsort
SELECT * FROM tab2 WHERE - col0 > ( - col0 )
----

query I rowsort
SELECT + col0 + 86 * col2 FROM tab1
----
5159
5939
8307

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-936
SELECT ALL + ( + ( + 17 ) ) / - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-936
SELECT ALL + ( + ( + 17 ) ) / - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-937
SELECT 65 DIV - COUNT( * ) FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-937
SELECT 65 / - COUNT ( * ) FROM tab2
----
-21

query I rowsort
SELECT DISTINCT 95 FROM tab0 WHERE ( NULL ) = - 63
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-939
SELECT 8 DIV - ( COUNT( * ) ) FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-939
SELECT 8 / - ( COUNT ( * ) ) FROM tab2
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-940
SELECT DISTINCT - ( - col1 ) DIV col0 FROM tab0
----
0
5

skipif mysql # not compatible
query I rowsort label-940
SELECT DISTINCT - ( - col1 ) / col0 FROM tab0
----
0
5

query I rowsort
SELECT ALL col1 * 25 + - col1 AS col1 FROM tab1
----
1128
120
336

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-943
SELECT col2 DIV + 96 col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-943
SELECT col2 / + 96 col1 FROM tab2
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-944
SELECT + MAX ( ALL - col2 ) / - 98 AS col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-945
SELECT SUM( + ( - col0 ) ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-945
SELECT SUM ( + ( - col0 ) ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
21
81

query I rowsort
SELECT col2 FROM tab0 WHERE - col1 + 23 IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-948
SELECT + COUNT( * ) * + 60 col0 FROM tab2
----
180

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-951
SELECT ALL - 97 * - SUM( ALL - 43 * 18 ) FROM tab2
----
-225234

skipif mysql # not compatible
query I rowsort label-951
SELECT ALL - 97 * - SUM ( ALL - 43 * 18 ) FROM tab2
----
-225234

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
46
64
75

query I rowsort
SELECT DISTINCT 53 * col2 + - 87 FROM tab1
----
3040
3517
5001

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

skipif mysql # not compatible
query I rowsort label-954
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL <> ( NULL )
----
0

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

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NOT - 46 <> ( + col1 )
----

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-958
SELECT ALL CAST ( + col0 AS INTEGER ) col1 FROM tab0 AS cor0
----
15
87
97

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < + ( 61 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col1 ) IN ( col1 )
----

query I rowsort
SELECT DISTINCT 39 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0
----
39

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( col1 ) BETWEEN + col1 AND - col2 / - 37
----
46
64
75

query I rowsort
SELECT ALL - col0 * 37 FROM tab0 AS cor0
----
-3219
-3589
-555

query I rowsort
SELECT - col0 AS col1 FROM tab0 cor0 WHERE NOT - col2 * col1 - + 83 BETWEEN col2 AND NULL
----
-15
-87
-97

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

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

query I rowsort
SELECT ALL + 35 * col1 FROM tab0 AS cor0
----
2835
35
735

query I rowsort
SELECT DISTINCT + 46 + + 92 AS col0 FROM tab1 AS cor0
----
138

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

query I rowsort
SELECT ALL ( + 58 ) * 8 + col1 FROM tab2 AS cor0
----
515
531
541

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

query I rowsort
SELECT DISTINCT + ( col1 ) + 55 FROM tab0 WHERE - 34 IS NOT NULL
----
136
56
76

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

onlyif mysql # aggregate syntax: 
query I rowsort label-974
SELECT + ( - - COUNT( * ) ) * + 44 AS col1 FROM tab1
----
132

skipif mysql # not compatible
query I rowsort label-974
SELECT + ( - - COUNT ( * ) ) * + 44 AS col1 FROM tab1
----
132

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 * - ( col0 ) NOT BETWEEN col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
query I rowsort label-976
SELECT - 0 * - - COUNT ( * ) AS col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT 88 * 56 AS col0 FROM tab1
----
4928

query I rowsort
SELECT + 66 * ( + ( - col1 ) ) AS col2 FROM tab1
----
-3102
-330
-924

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 75 * col0 - 77 NOT BETWEEN NULL AND 14 * - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-980
SELECT DISTINCT CAST( 85 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL >= col0
----

skipif mysql # not compatible
query I rowsort label-980
SELECT DISTINCT CAST ( 85 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL >= col0
----

query I rowsort
SELECT ALL 9 FROM tab1 AS cor0 WHERE NOT ( + col1 ) IN ( - col2 - 18 / col0 )
----
9
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-982
SELECT ALL + + 62 * COUNT( * ) AS col0 FROM tab2 cor0
----
186

skipif mysql # not compatible
query I rowsort label-982
SELECT ALL + + 62 * COUNT ( * ) AS col0 FROM tab2 cor0
----
186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-983
SELECT col1 + - - CAST( + + 38 AS SIGNED ) AS col1 FROM tab2
----
105
115
89

skipif mysql # not compatible
query I rowsort label-983
SELECT col1 + - - CAST ( + + 38 AS INTEGER ) AS col1 FROM tab2
----
105
115
89

query I rowsort
SELECT 39 * - + col2 + 63 FROM tab2
----
-1497
-2199
-834

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

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

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

skipif mysql # not compatible
query I rowsort label-987
SELECT - + AVG ( DISTINCT col0 ) * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 * + col1 col2 FROM tab1 AS cor0
----
1288
4324
460

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

skipif mysql # not compatible
query I rowsort label-989
SELECT DISTINCT - MAX ( DISTINCT - - col2 ) FROM tab1 AS cor0
----
-96

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

skipif mysql # not compatible
query I rowsort label-990
SELECT ( + - MAX ( 6 ) ) FROM tab0 AS cor0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-991
SELECT DISTINCT - ( - - col1 ) DIV col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-991
SELECT DISTINCT - ( - - col1 ) / col0 FROM tab1
----
0

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

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < ( col0 - - ( 91 ) * + 39 )
----

query I rowsort
SELECT ALL - col2 AS col0 FROM tab2 WHERE ( - 78 ) IS NULL
----

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

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

query I rowsort
SELECT + + col2 - col0 AS col0 FROM tab2 AS cor0 WHERE NOT col0 = + col1
----
-17
-23
-24

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

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

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

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

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 WHERE NOT ( + col1 + - col0 ) = col0 * 9
----
10
47
99

query I rowsort
SELECT + 67 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT + col0 * - 76 AS col1 FROM tab2 AS cor0
----
-3496
-4864
-5700

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

query I rowsort
SELECT ALL + 37 * col1 + + - col0 FROM tab2 AS cor0
----
1841
2404
2785

query I rowsort
SELECT ALL 76 * - - ( - col2 ) AS col1 FROM tab0 AS cor0
----
-3572
-7524
-760

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1010
SELECT ALL - - COUNT( * ) * COUNT( * ) * ( 4 ) AS col1 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-1010
SELECT ALL - - COUNT ( * ) * COUNT ( * ) * ( 4 ) AS col1 FROM tab2 AS cor0
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-1011
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-1011
SELECT - - col2 / col2 col2 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1012
SELECT + MIN( - col0 ) DIV - 57 + - 1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1012
SELECT + MIN ( - col0 ) / - 57 + - 1 FROM tab2 cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 >= + col2 * - 53 + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL NOT IN ( - col0, + col1 * - col0 + col0 + 98 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1016
SELECT DISTINCT COUNT( 76 ) FROM tab2 AS cor0 WHERE + 44 - - - col0 - col0 NOT IN ( - 53 )
----
3

skipif mysql # not compatible
query I rowsort label-1016
SELECT DISTINCT COUNT ( 76 ) FROM tab2 AS cor0 WHERE + 44 - - - col0 - col0 NOT IN ( - 53 )
----
3

query I rowsort
SELECT 14 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 WHERE NOT NULL > 15
----

query I rowsort
SELECT DISTINCT + 81 * col1 AS col1 FROM tab2
----
4131
5427
6237

query I rowsort
SELECT ALL col2 * + col2 + + 31 + col2 * - - col0 AS col0 FROM tab0
----
1001
19435
2945

query I rowsort
SELECT DISTINCT - 5 FROM tab0 WHERE - col1 <> NULL
----

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

query I rowsort
SELECT + col2 + - 67 + - + col1 * - 97 * - col1 + - 15 AS col2 FROM tab1
----
-18998
-214287
-2448

query I rowsort
SELECT + col0 FROM tab1 WHERE NULL >= + - 89 - ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT + MIN( + 14 ) + + - 72 FROM tab1 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-1025
SELECT + MIN ( + 14 ) + + - 72 FROM tab1 AS cor0
----
-58

query I rowsort
SELECT col1 + - col0 + + col1 FROM tab1 cor0
----
-23
-75
3

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

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

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

query I rowsort
SELECT ALL 62 + - col2 * 66 * - col1 AS col2 FROM tab2
----
203342
256538
77480

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1031
SELECT ALL + 63 DIV + SUM( DISTINCT + CAST( - + 67 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1031
SELECT ALL + 63 / + SUM ( DISTINCT + CAST ( - + 67 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
0

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

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

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

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

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE ( NULL < ( + col0 * + col0 + col1 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1035
SELECT - - col0 * col2 DIV 42 FROM tab1 AS cor0
----
116
119
147

skipif mysql # not compatible
query I rowsort label-1035
SELECT - - col0 * col2 / 42 FROM tab1 AS cor0
----
116
119
147

onlyif mysql # DIV for integer division: 
query II rowsort label-1036
SELECT ALL + 40 DIV - 23 AS col1, col1 + col2 FROM tab0 AS cor0
----
-1
100
-1
128
-1
31

skipif mysql # not compatible
query II rowsort label-1036
SELECT ALL + 40 / - 23 AS col1, col1 + col2 FROM tab0 AS cor0
----
-1
100
-1
128
-1
31

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1038
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) * - - col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-1038
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) * - - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1039
SELECT 39 DIV col0 FROM tab1 AS cor0 WHERE NOT ( 56 ) IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1039
SELECT 39 / col0 FROM tab1 AS cor0 WHERE NOT ( 56 ) IS NULL
----
0
0
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1041
SELECT col1 DIV - - col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1041
SELECT col1 / - - col0 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE NOT + 12 NOT BETWEEN + - col2 AND - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1043
SELECT 84 DIV + + col1 FROM tab1 AS cor0
----
1
16
6

skipif mysql # not compatible
query I rowsort label-1043
SELECT 84 / + + col1 FROM tab1 AS cor0
----
1
16
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1044
SELECT DISTINCT + CAST( 35 AS SIGNED ) FROM tab1 AS cor0
----
35

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1045
SELECT DISTINCT + + col0 * - - 54 + - col2 + + - col0 * + CAST( col1 AS SIGNED ) + + col0 FROM tab0 cor0
----
-437
2948
5139

skipif mysql # not compatible
query I rowsort label-1045
SELECT DISTINCT + + col0 * - - 54 + - col2 + + - col0 * + CAST ( col1 AS INTEGER ) + + col0 FROM tab0 cor0
----
-437
2948
5139

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NOT ( NOT ( NOT NULL IS NOT NULL ) ) )
----

query I rowsort
SELECT ( - - 58 ) FROM tab2
----
58
58
58

query I rowsort
SELECT + 68 + col2 + + - 55 FROM tab2 AS cor0
----
36
53
71

query I rowsort
SELECT DISTINCT col1 * 57 + + col2 AS col1 FROM tab1 AS cor0
----
2747
344
894

query I rowsort
SELECT DISTINCT 17 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 / + 15 * ( - col2 ) + + - col0 / + - 48 <> - 15
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1053
SELECT ALL - 3 + - ( SUM( ALL + col0 ) ) AS col2 FROM tab0
----
-202

skipif mysql # not compatible
query I rowsort label-1053
SELECT ALL - 3 + - ( SUM ( ALL + col0 ) ) AS col2 FROM tab0
----
-202

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1055
SELECT DISTINCT col1 + 33 * col0 * + col1 * col0 DIV ( + col1 ) AS col0 FROM tab2
----
135245
185692
69879

skipif mysql # not compatible
query I rowsort label-1055
SELECT DISTINCT col1 + 33 * col0 * + col1 * col0 / ( + col1 ) AS col0 FROM tab2
----
135245
185692
69879

onlyif mysql # aggregate syntax: 
query I rowsort label-1056
SELECT ( + COUNT( * ) ) FROM tab0 WHERE - 22 + - col2 BETWEEN + ( + col1 ) + ( + + col1 ) + 84 * - col2 * 51 AND col1
----
3

skipif mysql # not compatible
query I rowsort label-1056
SELECT ( + COUNT ( * ) ) FROM tab0 WHERE - 22 + - col2 BETWEEN + ( + col1 ) + ( + + col1 ) + 84 * - col2 * 51 AND col1
----
3

query I rowsort
SELECT ALL + 20 + - col2 AS col1 FROM tab1
----
-39
-48
-76

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

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NULL <> + ( - - col2 )
----

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1064
SELECT - col0 DIV - col2 + + 51 * col2 + + - 8 FROM tab1 AS cor0
----
3002
3461
4888

skipif mysql # not compatible
query I rowsort label-1064
SELECT - col0 / - col2 + + 51 * col2 + + - 8 FROM tab1 AS cor0
----
3002
3461
4888

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1065
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1065
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1067
SELECT ALL ( - MAX( DISTINCT col2 ) ) * 79 * - - 51 FROM tab0
----
-398871

skipif mysql # not compatible
query I rowsort label-1067
SELECT ALL ( - MAX ( DISTINCT col2 ) ) * 79 * - - 51 FROM tab0
----
-398871

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col1 <= + 78
----
15
81
47

query I rowsort
SELECT 70 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1072
SELECT DISTINCT - - COUNT( * ) col1, 72 DIV + COUNT( * ) + - 95 FROM tab0 cor0
----
3
-71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1072
SELECT DISTINCT - - COUNT ( * ) col1, 72 / + COUNT ( * ) + - 95 FROM tab0 cor0
----
3
-71

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

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

query I rowsort
SELECT ALL - 3 * - col1 - - col2 * - - col1 FROM tab0 AS cor0
----
102
273
4050

query I rowsort
SELECT + + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL < 98
----

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 96 = - 58 + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT DISTINCT + COUNT( DISTINCT - col1 ) FROM tab1 WHERE + 89 * - - col1 + + + col0 IN ( + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-1078
SELECT DISTINCT + COUNT ( DISTINCT - col1 ) FROM tab1 WHERE + 89 * - - col1 + + + col0 IN ( + col1 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1079
SELECT COUNT( * ) DIV - 39 + + + SUM( + 81 ) FROM tab1 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-1079
SELECT COUNT ( * ) / - 39 + + + SUM ( + 81 ) FROM tab1 AS cor0
----
243

query II rowsort
SELECT DISTINCT ( + col2 ) AS col0, col2 + - col0 FROM tab0 AS cor0
----
10
-77
47
32
99
2

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

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

query II rowsort
SELECT + ( + col1 ) + + col2, col1 * + - 84 AS col0 FROM tab1 AS cor0
----
110
-1176
115
-3948
64
-420

query II rowsort
SELECT ALL - ( col0 ) + - 72 AS col2, col1 * - col1 * + col0 FROM tab0
----
-159
-38367
-169
-97
-87
-98415

query III rowsort
SELECT * FROM tab2 WHERE col0 * - + 66 * - - 24 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1085
SELECT SUM( - col1 ) FROM tab1 WHERE NULL NOT IN ( + + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1085
SELECT SUM ( - col1 ) FROM tab1 WHERE NULL NOT IN ( + + col1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1086
SELECT * FROM tab2 WHERE + - ( + - CAST( + - 85 AS SIGNED ) ) + col1 * - - col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-1086
SELECT * FROM tab2 WHERE + - ( + - CAST ( + - 85 AS INTEGER ) ) + col1 * - - col0 IS NULL
----

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1089
SELECT COUNT ( * ) * - - ( + COUNT ( * ) ) FROM tab0 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1090
SELECT ALL + ( + - SUM( DISTINCT - 51 ) ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-1090
SELECT ALL + ( + - SUM ( DISTINCT - 51 ) ) FROM tab1
----
51

query I rowsort
SELECT - 91 FROM tab1 WHERE ( - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 WHERE col1 * - col2 * - - 96 = col0 * - 86
----
0

skipif mysql # not compatible
query I rowsort label-1092
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 WHERE col1 * - col2 * - - 96 = col0 * - 86
----
0

query I rowsort
SELECT ( - col2 ) + - col0 AS col2 FROM tab0
----
-196
-62
-97

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

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

query I rowsort
SELECT 80 * - 99 * 37 + + 78 * + 76 * + - col0 FROM tab0
----
-381960
-808776
-868056

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

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

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

query I rowsort
SELECT 95 + - ( - - ( - 54 ) ) * - col2 FROM tab2
----
-1147
-2065
-3037

query I rowsort
SELECT DISTINCT 64 * - - col2 AS col1 FROM tab1 AS cor0
----
3776
4352
6144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1100
SELECT + 41 DIV - + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-4

skipif mysql # not compatible
query I rowsort label-1100
SELECT + 41 / - + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT 45 + - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
36

skipif mysql # not compatible
query I rowsort label-1101
SELECT 45 + - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
36

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

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

query I rowsort
SELECT DISTINCT 75 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) >= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1104
SELECT ALL - 85 * - + ( 36 ) + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
3063

skipif mysql # not compatible
query I rowsort label-1104
SELECT ALL - 85 * - + ( 36 ) + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3063

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 18 col0 FROM tab2 AS cor0
----
1152
1350
828

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1106
SELECT DISTINCT 99 / - col1 * - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1106
SELECT DISTINCT 99 / - col1 * - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1107
SELECT DISTINCT - 96 * + col0 * + CAST( col2 AS SIGNED ) - + + col0 + - col1 * - 51 * + 86 FROM tab1 AS cor0
----
-387997
-408663
-459595

skipif mysql # not compatible
query I rowsort label-1107
SELECT DISTINCT - 96 * + col0 * + CAST ( col2 AS INTEGER ) - + + col0 + - col1 * - 51 * + 86 FROM tab1 AS cor0
----
-387997
-408663
-459595

onlyif mysql # DIV for integer division: 
query I rowsort label-1108
SELECT ALL + col0 DIV 21 col2 FROM tab0 cor0
----
0
4
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1108
SELECT ALL + col0 / 21 col2 FROM tab0 cor0
----
0
4
4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1109
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + col2 * + 62 + + col1 * + col1 col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1109
SELECT DISTINCT + CAST ( NULL AS REAL ) * + col2 * + 62 + + col1 * + col1 col2 FROM tab2
----
NULL

query II rowsort
SELECT ALL col0 AS col2, + 99 FROM tab1
----
51
99
85
99
91
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1112
SELECT ALL + SUM( ALL - - col1 ) + COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
198

skipif mysql # not compatible
query I rowsort label-1112
SELECT ALL + SUM ( ALL - - col1 ) + COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
198

query I rowsort
SELECT - col0 * 71 AS col0 FROM tab1
----
-3621
-6035
-6461

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

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

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col1 >= + + col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT NULL IN ( + ( + col1 ) ) )
----

query I rowsort
SELECT + 47 + col1 + + col2 AS col2 FROM tab0
----
147
175
78

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col2 + col0 ) < 43 * 9
----

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

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

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

query I rowsort
SELECT - 10 - - - col1 + - 49 * col2 + + - 54 * 86 FROM tab2 WHERE ( NOT + 72 IS NULL )
----
-5832
-6691
-7563

onlyif mysql # DIV for integer division: 
query I rowsort label-1124
SELECT col2 DIV - 61 AS col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1124
SELECT col2 / - 61 AS col0 FROM tab0
----
-1
0
0

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE ( ( NULL ) BETWEEN col2 AND - col1 )
----

query I rowsort
SELECT DISTINCT 99 + 57 AS col1 FROM tab1
----
156

query I rowsort
SELECT DISTINCT + 25 + + 77 AS col2 FROM tab1
----
102

query I rowsort
SELECT col1 - + - 98 - col2 AS col1 FROM tab2
----
107
126
135

query III rowsort
SELECT ALL * FROM tab2 WHERE + ( col0 ) <> - col0 * col2 + - + ( 43 ) * col0 + + - 3
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1130
SELECT ALL + COUNT( * ) + - + MAX( ALL - ( - 62 ) ) FROM tab0
----
-59

skipif mysql # not compatible
query I rowsort label-1130
SELECT ALL + COUNT ( * ) + - + MAX ( ALL - ( - 62 ) ) FROM tab0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1131
SELECT DISTINCT - 98 + - MIN( ALL + col0 ) FROM tab2
----
-144

skipif mysql # not compatible
query I rowsort label-1131
SELECT DISTINCT - 98 + - MIN ( ALL + col0 ) FROM tab2
----
-144

query I rowsort
SELECT DISTINCT col1 + col1 * + col0 FROM tab0 WHERE NOT + + col1 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1133
SELECT col1 DIV - ( - col1 ) col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1133
SELECT col1 / - ( - col1 ) col2 FROM tab1
----
1
1
1

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

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - 3 * - 49 - col1 IS NULL
----

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

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

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

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

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

query I rowsort
SELECT ALL col1 + + - 84 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-37
-70
-79

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1141
SELECT ALL 5 + MIN( - + 29 ) FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-1141
SELECT ALL 5 + MIN ( - + 29 ) FROM tab0
----
-24

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

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

query I rowsort
SELECT ALL - 65 * + col2 AS col2 FROM tab1
----
-3835
-4420
-6240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 11 * 27 col2 FROM tab0 AS cor0
----
297

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab2 AS cor0 WHERE + 68 >= NULL
----

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

query I rowsort
SELECT DISTINCT + col2 + + + col0 * + col2 AS col1 FROM tab2 AS cor0
----
1081
2600
4408

query I rowsort
SELECT + + col1 + - 52 FROM tab1 AS cor0
----
-38
-47
-5

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

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

query I rowsort
SELECT + - 13 - + col1 FROM tab2 cor0
----
-64
-80
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-1152
SELECT DISTINCT + 73 DIV - + col0 + + col1 FROM tab0 AS cor0
----
1
21
77

skipif mysql # not compatible
query I rowsort label-1152
SELECT DISTINCT + 73 / - + col0 + + col1 FROM tab0 AS cor0
----
1
21
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1153
SELECT - + COUNT( * ) / + - SUM( ALL + + col0 ) FROM tab0 AS cor0 WHERE NULL <= + ( + 39 ) + - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1153
SELECT - + COUNT ( * ) / + - SUM ( ALL + + col0 ) FROM tab0 AS cor0 WHERE NULL <= + ( + 39 ) + - col1
----
NULL

query I rowsort
SELECT ALL + 84 AS col2 FROM tab0 AS cor0 WHERE NOT 99 <> NULL
----

query I rowsort
SELECT - 86 - - - 19 AS col2 FROM tab2 cor0
----
-105
-105
-105

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

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

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

skipif mysql # not compatible
query I rowsort label-1157
SELECT DISTINCT CAST ( + col1 AS INTEGER ) AS col0 FROM tab2 cor0
----
51
67
77

query I rowsort
SELECT DISTINCT - ( col2 ) * + 76 FROM tab2 AS cor0
----
-1748
-3040
-4408

query I rowsort
SELECT DISTINCT + 50 + + 69 FROM tab1 cor0
----
119

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

query III rowsort
SELECT + - col2 + - + col1 AS col0, ( - - 95 ), + - col2 AS col0 FROM tab0 AS cor0
----
9 values hashing to 8f2da9ec9e6a5e9778d48af0b9db65b1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 IN ( + col0, col1 * - 92 - col0, - - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 62 * - - 94 AS col2 FROM tab2 WHERE ( NULL ) NOT BETWEEN col0 + + col0 - + col0 AND - col0 * 58 * + col0 + + - 65 * - 43
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1164
SELECT MIN( DISTINCT CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1164
SELECT MIN ( DISTINCT CAST ( NULL AS REAL ) ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col2 FROM tab1 WHERE NULL IS NULL
----
59
68
96

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1167
SELECT - 32 * 69 + - CAST ( NULL AS INTEGER ) col2 FROM tab0 cor0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1169
SELECT DISTINCT col1 * CAST( col2 AS SIGNED ) * - ( + col0 ) + + 48 AS col0 FROM tab2
----
-197072
-291402
-53910

skipif mysql # not compatible
query I rowsort label-1169
SELECT DISTINCT col1 * CAST ( col2 AS INTEGER ) * - ( + col0 ) + + 48 AS col0 FROM tab2
----
-197072
-291402
-53910

query II rowsort
SELECT ALL col2 AS col0, col2 AS col1 FROM tab0
----
10
10
47
47
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1171
SELECT + 95 * - - COUNT( * ) * + + COUNT( * ) FROM tab1
----
855

skipif mysql # not compatible
query I rowsort label-1171
SELECT + 95 * - - COUNT ( * ) * + + COUNT ( * ) FROM tab1
----
855

query I rowsort
SELECT DISTINCT + - 50 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-50

query I rowsort
SELECT + - col0 * - 86 FROM tab2 AS cor0
----
3956
5504
6450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col0 ) * col2 col1 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT col0 + 26 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
113
123
41

query I rowsort
SELECT + - 95 + - 81 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-176
-176
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-1177
SELECT ALL + 31 + + 13 * COUNT( * ) AS col2 FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-1177
SELECT ALL + 31 + + 13 * COUNT ( * ) AS col2 FROM tab2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1178
SELECT DISTINCT - - MAX( ALL + col1 ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1178
SELECT DISTINCT - - MAX ( ALL + col1 ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1179
SELECT ( col1 ), - col2 DIV - + col0 AS col0 FROM tab0
----
1
1
21
0
81
3

skipif mysql # not compatible
query II rowsort label-1179
SELECT ( col1 ), - col2 / - + col0 AS col0 FROM tab0
----
1
1
21
0
81
3

query I rowsort
SELECT + - 27 + col0 + - 93 FROM tab2 WHERE ( col1 ) < ( NULL )
----

query I rowsort
SELECT DISTINCT 14 * - 41 FROM tab0
----
-574

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

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

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

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

query I rowsort
SELECT col2 + - 71 + + col0 + - 32 + - 56 AS col1 FROM tab1
----
-12
-15
0

query I rowsort
SELECT - col2 * col1 + - + col1 * - + col1 FROM tab1 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1186
SELECT ALL - MIN( DISTINCT col1 ) + + COUNT( * ) FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-1186
SELECT ALL - MIN ( DISTINCT col1 ) + + COUNT ( * ) FROM tab2
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-1187
SELECT DISTINCT col2 DIV + 38 + + ( + 61 ) AS col1 FROM tab0 AS cor0
----
61
62
63

skipif mysql # not compatible
query I rowsort label-1187
SELECT DISTINCT col2 / + 38 + + ( + 61 ) AS col1 FROM tab0 AS cor0
----
61
62
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1188
SELECT ALL 75 - 94 - COUNT( * ) DIV - COUNT( * ) col0 FROM tab2 cor0
----
-18

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

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

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

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

query I rowsort
SELECT + + 83 * - col0 FROM tab0 AS cor0
----
-1245
-7221
-8051

query I rowsort
SELECT 14 * - + col2 AS col2 FROM tab1 AS cor0
----
-1344
-826
-952

query I rowsort
SELECT ALL + + col1 + 44 AS col0 FROM tab2 AS cor0
----
111
121
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1194
SELECT DISTINCT + MIN( col2 ) * CAST( + ( - ( + SUM( ALL - col1 ) ) ) AS SIGNED ) AS col2 FROM tab1
----
3894

skipif mysql # not compatible
query I rowsort label-1194
SELECT DISTINCT + MIN ( col2 ) * CAST ( + ( - ( + SUM ( ALL - col1 ) ) ) AS INTEGER ) AS col2 FROM tab1
----
3894

onlyif mysql # DIV for integer division: 
query I rowsort label-1195
SELECT - 39 DIV - - 64 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1195
SELECT - 39 / - - 64 FROM tab1
----
0
0
0

query I rowsort
SELECT - col1 * col1 * - 67 AS col0 FROM tab2
----
174267
300763
397243

query II rowsort
SELECT - 65 AS col1, ( - col0 ) FROM tab0 AS cor0
----
-65
-15
-65
-87
-65
-97

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

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col0 / + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1200
SELECT DISTINCT + - SUM( DISTINCT 67 ) FROM tab0 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-1200
SELECT DISTINCT + - SUM ( DISTINCT 67 ) FROM tab0 AS cor0
----
-67

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

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

query I rowsort
SELECT + - col2 * - col1 - - 22 FROM tab1 AS cor0
----
1366
317
3218

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1203
SELECT - COUNT( * ) DIV - + 74 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1203
SELECT - COUNT ( * ) / - + 74 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - - 24 * + - col1 * - col1 * col2 FROM tab2 cor0
----
1435752
5691840
6248688

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

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

query I rowsort
SELECT ALL - 59 + 76 AS col2 FROM tab2 AS cor0
----
17
17
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1207
SELECT - MAX( ( - - col2 ) ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-1207
SELECT - MAX ( ( - - col2 ) ) AS col0 FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1208
SELECT - MAX( - 43 ) FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-1208
SELECT - MAX ( - 43 ) FROM tab2 AS cor0
----
43

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

query II rowsort
SELECT ALL - col2 + - ( 20 ) AS col0, + 7 AS col0 FROM tab1 AS cor0
----
-116
7
-79
7
-88
7

query II rowsort
SELECT ALL + 96 + - 62 + 15 AS col0, 45 AS col0 FROM tab2
----
49
45
49
45
49
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1212
SELECT COUNT( * ) + MAX( ALL - col2 ) FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-1212
SELECT COUNT ( * ) + MAX ( ALL - col2 ) FROM tab0
----
-7

query I rowsort
SELECT 1 + - - ( - - 71 ) * - col2 + col0 AS col1 FROM tab0
----
-3321
-622
-6931

query I rowsort
SELECT - 6 + - col1 FROM tab0 cor0
----
-27
-7
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1215
SELECT - + CAST( NULL AS SIGNED ) + - ( - COUNT( * ) ) + + - CAST( 35 AS SIGNED ) - ( + 56 ) * - - 15 + MIN( + - 92 ) * - 15 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1215
SELECT - + CAST ( NULL AS INTEGER ) + - ( - COUNT ( * ) ) + + - CAST ( 35 AS INTEGER ) - ( + 56 ) * - - 15 + MIN ( + - 92 ) * - 15 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1217
SELECT ALL - col2 + ( col0 ) + - 61 AS col0, - col2 + + CAST( col2 AS SIGNED ) * 56 * + + col2 * 90 FROM tab2
----
-37
8063960
-38
2666137
-44
16954502

skipif mysql # not compatible
query II rowsort label-1217
SELECT ALL - col2 + ( col0 ) + - 61 AS col0, - col2 + + CAST ( col2 AS INTEGER ) * 56 * + + col2 * 90 FROM tab2
----
-37
8063960
-38
2666137
-44
16954502

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

skipif mysql # not compatible
query I rowsort label-1218
SELECT + 68 * CAST ( NULL AS INTEGER ) - - col1 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1219
SELECT - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1219
SELECT - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 - - col1 * col2 FROM tab1 AS cor0
----
1358
300
3243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1221
SELECT ALL - + CAST( - - ( - col2 ) AS SIGNED ) col1 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1221
SELECT ALL - + CAST ( - - ( - col2 ) AS INTEGER ) col1 FROM tab2 AS cor0
----
23
40
58

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

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

query I rowsort
SELECT DISTINCT + + 11 AS col0 FROM tab2 WHERE NOT ( NOT ( NULL >= NULL ) )
----

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

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

query I rowsort
SELECT DISTINCT 16 * - - col0 FROM tab1
----
1360
1456
816

onlyif mysql # DIV for integer division: 
query I rowsort label-1226
SELECT ALL col1 DIV + + col0 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-1226
SELECT ALL col1 / + + col0 FROM tab0
----
0
0
5

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < - 81
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1230
SELECT DISTINCT 50 * CAST( - col1 AS SIGNED ) col1 FROM tab1 AS cor0
----
-2350
-250
-700

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1230
SELECT DISTINCT 50 * CAST ( - col1 AS INTEGER ) col1 FROM tab1 AS cor0
----
-2350
-250
-700

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1231
SELECT - CAST( NULL AS DECIMAL ) * - COUNT( * ) * - + 32 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1231
SELECT - CAST ( NULL AS REAL ) * - COUNT ( * ) * - + 32 AS col2 FROM tab2
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-1233
SELECT ALL - COUNT ( * ) * + 48 * + COUNT ( ALL - - col0 ) AS col1 FROM tab2 AS cor0
----
-432

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1235
SELECT COUNT( * ) + COUNT( * ), - COUNT( * ) col0 FROM tab1 AS cor0
----
6
-3

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

query I rowsort
SELECT DISTINCT + 33 + + 70 * + col1 AS col2 FROM tab2 AS cor0
----
3603
4723
5423

query II rowsort
SELECT + col1 * - col0 AS col2, - 60 AS col1 FROM tab1
----
-425
-60
-4277
-60
-714
-60

query I rowsort
SELECT DISTINCT 23 + + + col0 * + col2 * + - col0 FROM tab1
----
-249673
-426252
-563085

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 WHERE NULL <> - col2 * + ( + + ( - 43 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1240
SELECT ALL - COUNT( * ) + MAX( + + col0 ) FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-1240
SELECT ALL - COUNT ( * ) + MAX ( + + col0 ) FROM tab1
----
88

query I rowsort
SELECT DISTINCT + 86 + - col2 AS col0 FROM tab0
----
-13
39
76

query II rowsort
SELECT + col1, 34 AS col0 FROM tab2 WHERE + 69 <= col2 OR - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1243
SELECT ALL - MAX( col1 ) - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-1243
SELECT ALL - MAX ( col1 ) - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1244
SELECT + + CAST( NULL AS SIGNED ) + - col2 + - CAST( + 79 AS SIGNED ) / - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1244
SELECT + + CAST ( NULL AS INTEGER ) + - col2 + - CAST ( + 79 AS INTEGER ) / - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 0 col1, 24 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
18 values hashing to a369a7b2417ad1aae870686dd461937c

query III rowsort
SELECT ALL * FROM tab2 WHERE 45 < + + col0 * - col1 * col0 * + + ( 89 )
----

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

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

query I rowsort
SELECT + 80 + - col1 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 + - col2 + + col0 - - col2 / col1 * - col0 IS NULL
----
-1
59
79

query II rowsort
SELECT - 12 AS col0, col1 * + ( + col2 ) AS col2 FROM tab1 AS cor0
----
-12
1344
-12
295
-12
3196

onlyif mysql # aggregate syntax: 
query II rowsort label-1250
SELECT + MIN( col2 ) * + - 37 AS col2, COUNT( * ) FROM tab1 AS cor0
----
-2183
3

skipif mysql # not compatible
query II rowsort label-1250
SELECT + MIN ( col2 ) * + - 37 AS col2, COUNT ( * ) FROM tab1 AS cor0
----
-2183
3

query I rowsort
SELECT ( + 71 ) * + col0 FROM tab1
----
3621
6035
6461

query I rowsort
SELECT 82 * + - col2 AS col0 FROM tab1
----
-4838
-5576
-7872

query I rowsort
SELECT col1 * col2 * + - 61 FROM tab1
----
-17995
-194956
-81984

query I rowsort
SELECT ALL + 42 AS col0 FROM tab1 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1255
SELECT DISTINCT * FROM tab0 cor0 WHERE + col2 + 22 NOT BETWEEN NULL AND + 59 + + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-1255
SELECT DISTINCT * FROM tab0 cor0 WHERE + col2 + 22 NOT BETWEEN NULL AND + 59 + + CAST ( NULL AS REAL )
----

query II rowsort
SELECT - ( 82 ) AS col2, - col0 AS col0 FROM tab0 AS cor0
----
-82
-15
-82
-87
-82
-97

query II rowsort
SELECT ALL + + col1 * col0 AS col0, + col1 AS col2 FROM tab0 AS cor0
----
1215
81
1827
21
97
1

query I rowsort
SELECT - col2 + - + ( + col1 ) FROM tab2 AS cor0
----
-117
-125
-74

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 51 * - 73 * - + col1 col0 FROM tab0 AS cor0
----
301563
3723
78183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 19 * + + 10 col2 FROM tab0
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT DISTINCT COUNT( * ) + + 76 col1 FROM tab1
----
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1262
SELECT DISTINCT COUNT ( * ) + + 76 col1 FROM tab1
----
79

query I rowsort
SELECT - 20 * + + 84 * - 57 FROM tab1
----
95760
95760
95760

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1265
SELECT DISTINCT ( - - COUNT( * ) ) * + - 70 FROM tab0 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-1265
SELECT DISTINCT ( - - COUNT ( * ) ) * + - 70 FROM tab0 AS cor0
----
-210

onlyif mysql # DIV for integer division: 
query I rowsort label-1266
SELECT - 8 DIV - col0 * - col2 * + - 50 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1266
SELECT - 8 / - col0 * - col2 * + - 50 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL + - 60 + col2 * col1 FROM tab2 AS cor0
----
1113
3020
3826

query I rowsort
SELECT col2 * - col2 * + col0 FROM tab2 AS cor0
----
-102400
-24334
-252300

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + - ( - col2 ) col2 FROM tab1
----
110
115
64

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

query II rowsort
SELECT 92, - col2 * + col0 * + col2 FROM tab0 WHERE ( + col1 ) IS NULL
----

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

query I rowsort
SELECT - - 90 + + col1 FROM tab2 WHERE - - 88 <> NULL
----

query I rowsort
SELECT - col0 * - 37 + + 16 AS col2 FROM tab2
----
1718
2384
2791

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

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

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

query I rowsort
SELECT - - 60 * 44 FROM tab1 AS cor0
----
2640
2640
2640

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

skipif mysql # not compatible
query III rowsort label-1279
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( 34, - CAST ( NULL AS INTEGER ) * ( col0 ) * 15, + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1280
SELECT - - COUNT( * ) * - + 73 AS col2 FROM tab2 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-1280
SELECT - - COUNT ( * ) * - + 73 AS col2 FROM tab2 AS cor0
----
-219

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

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 < ( - col2 )
----
97
1
99

query I rowsort
SELECT + + 61 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 * - - ( + col0 ) * - + col1 * + col0 col0 FROM tab1
----
-361250
-364140
-3892070

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( + ( + - 66 ) ) * col0, col1 col0 FROM tab0
----
-5742
21
-6402
1
-990
81

query I rowsort
SELECT - ( + col1 ) * - + col0 * + col2 FROM tab0
----
18270
57105
9603

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

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

query I rowsort
SELECT 0 * - - col0 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col1, col2 * - col1 FROM tab1 AS cor0 WHERE ( NULL ) = NULL
----

query I rowsort
SELECT - 95 FROM tab0 WHERE NULL IS NULL
----
-95
-95
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + 15 * - col1 col0 FROM tab2
----
-1080
-1219
-811

onlyif mysql # aggregate syntax: 
query II rowsort label-1294
SELECT ALL - COUNT( * ), 88 AS col0 FROM tab2 AS cor0 LEFT OUTER JOIN tab0 AS cor1 ON NOT NULL IS NOT NULL
----
-9
88

skipif mysql # not compatible
query II rowsort label-1294
SELECT ALL - COUNT ( * ), 88 AS col0 FROM tab2 AS cor0 LEFT OUTER JOIN tab0 AS cor1 ON NOT NULL IS NOT NULL
----
-9
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1295
SELECT 77 + 94 * - ( + COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-769

skipif mysql # not compatible
query I rowsort label-1295
SELECT 77 + 94 * - ( + COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-769

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NULL IN ( ( + col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + + 70 * + col1 col2 FROM tab1 cor0
----
13720
154630
1750

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 88 + + col1, ( - col0 ) * + + col0 * - - 46 col1 FROM tab0 AS cor0
----
-67
-348174
-7
-10350
-87
-432814

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1300
SELECT DISTINCT + 93 + - + 77 * + SUM( DISTINCT + 54 ) + - COUNT( * ) col0 FROM tab2 AS cor0
----
-4068

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1300
SELECT DISTINCT + 93 + - + 77 * + SUM ( DISTINCT + 54 ) + - COUNT ( * ) col0 FROM tab2 AS cor0
----
-4068

onlyif mysql # aggregate syntax: 
query I rowsort label-1301
SELECT DISTINCT 70 + + + ( 65 ) * COUNT( DISTINCT 53 ) AS col2 FROM tab1 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-1301
SELECT DISTINCT 70 + + + ( 65 ) * COUNT ( DISTINCT 53 ) AS col2 FROM tab1 AS cor0
----
135

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1303
SELECT ALL + col2 + + col0 DIV + + 31 FROM tab0
----
102
12
47

skipif mysql # not compatible
query I rowsort label-1303
SELECT ALL + col2 + + col0 / + + 31 FROM tab0
----
102
12
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1304
SELECT ALL col1 + - ( + CAST( + col0 AS SIGNED ) ) * - 53 FROM tab0
----
4632
5142
876

skipif mysql # not compatible
query I rowsort label-1304
SELECT ALL col1 + - ( + CAST ( + col0 AS INTEGER ) ) * - 53 FROM tab0
----
4632
5142
876

onlyif mysql # aggregate syntax: 
query I rowsort label-1305
SELECT MAX( ALL col2 ) AS col1 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-1305
SELECT MAX ( ALL col2 ) AS col1 FROM tab2
----
58

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

skipif mysql # not compatible
query I rowsort label-1306
SELECT ALL COUNT ( * ) - - + 96 FROM tab2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT + - MIN( + + col1 ) FROM tab2 WHERE NULL > - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1307
SELECT + - MIN ( + + col1 ) FROM tab2 WHERE NULL > - col1
----
NULL

query I rowsort
SELECT DISTINCT + col2 - - col1 * col0 + - col0 FROM tab1
----
399
4254
759

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

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

query I rowsort
SELECT 29 * - col1 FROM tab1
----
-1363
-145
-406

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

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

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

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

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

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

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

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

query II rowsort
SELECT - col0 AS col1, 13 * + 94 FROM tab2 AS cor0
----
-46
1222
-64
1222
-75
1222

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT DISTINCT COUNT( ALL - 2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1318
SELECT DISTINCT COUNT ( ALL - 2 ) FROM tab1 AS cor0
----
3

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1321
SELECT - COUNT( * ) * + - 77 col1, 37 col0 FROM tab1
----
231
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1321
SELECT - COUNT ( * ) * + - 77 col1, 37 col0 FROM tab1
----
231
37

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col0 >= + - 16
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1323
SELECT DISTINCT - CAST( + col2 AS SIGNED ) AS col1 FROM tab2 cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-1323
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) AS col1 FROM tab2 cor0
----
-23
-40
-58

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

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

query I rowsort
SELECT - col1 + + - 87 * + - ( - + 41 ) FROM tab0 AS cor0
----
-3568
-3588
-3648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1326
SELECT CAST( NULL AS SIGNED ) * - 27 * - - col0 * + col0 - 41 / - - col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-1326
SELECT CAST ( NULL AS INTEGER ) * - 27 * - - col0 * + col0 - 41 / - - col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT + 52 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT ALL 93 + + col1 FROM tab2
----
144
160
170

onlyif mysql # aggregate syntax: 
query I rowsort label-1329
SELECT DISTINCT COUNT( * ) * - + 13 FROM tab1
----
-39

skipif mysql # not compatible
query I rowsort label-1329
SELECT DISTINCT COUNT ( * ) * - + 13 FROM tab1
----
-39

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1331
SELECT + col1 DIV + + col1 - + + col0 * col0 FROM tab2 AS cor0
----
-2115
-4095
-5624

skipif mysql # not compatible
query I rowsort label-1331
SELECT + col1 / + + col1 - + + col0 * col0 FROM tab2 AS cor0
----
-2115
-4095
-5624

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1332
SELECT + col1 - col2 * - col0 * - - CAST( 2 AS SIGNED ) * + col2 * - col2 + + - col2 DIV + col1 * + col1 AS col2 FROM tab0 AS cor0
----
-173979
-188238104
-3114609

skipif mysql # not compatible
query I rowsort label-1332
SELECT + col1 - col2 * - col0 * - - CAST ( 2 AS INTEGER ) * + col2 * - col2 + + - col2 / + col1 * + col1 AS col2 FROM tab0 AS cor0
----
-173979
-188238104
-3114609

query I rowsort
SELECT ALL + 15 - + 20 * col1 * - - 50 AS col2 FROM tab0 AS cor0
----
-20985
-80985
-985

onlyif mysql # DIV for integer division: 
query I rowsort label-1334
SELECT DISTINCT + - ( + + 81 ) DIV + col2 + col1 FROM tab1 cor0
----
14
4
46

skipif mysql # not compatible
query I rowsort label-1334
SELECT DISTINCT + - ( + + 81 ) / + col2 + col1 FROM tab1 cor0
----
14
4
46

query I rowsort
SELECT + - 96 + - 66 AS col0 FROM tab0 AS cor0
----
-162
-162
-162

query I rowsort
SELECT + + col0 + - + 81 FROM tab0 AS cor0
----
-66
16
6

query II rowsort
SELECT DISTINCT col2 * col0 + + + col1 AS col2, + col1 AS col1 FROM tab0 AS cor0
----
786
81
891
21
9604
1

query I rowsort
SELECT - col2 * 99 + - col0 * - col1 FROM tab1
----
-2455
-5416
-8790

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-1340
SELECT ALL - CAST( + + CAST( - 26 AS DECIMAL ) AS SIGNED ) + - 98 DIV COUNT( * ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-1340
SELECT ALL - CAST ( + + CAST ( - 26 AS REAL ) AS INTEGER ) + - 98 / COUNT ( * ) FROM tab0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1341
SELECT ALL + MIN( + 10 ) - - COUNT( * ) FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-1341
SELECT ALL + MIN ( + 10 ) - - COUNT ( * ) FROM tab0
----
13

onlyif mysql # DIV for integer division: 
query II rowsort label-1342
SELECT ALL - 75 DIV + + 61 col2, 22 AS col0 FROM tab1 AS cor0
----
-1
22
-1
22
-1
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1342
SELECT ALL - 75 / + + 61 col2, 22 AS col0 FROM tab1 AS cor0
----
-1
22
-1
22
-1
22

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT + COUNT( * ) * - - 12 AS col0 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-1344
SELECT + COUNT ( * ) * - - 12 AS col0 FROM tab2 AS cor0
----
36

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

query I rowsort
SELECT 88 * - + col0 FROM tab2
----
-4048
-5632
-6600

query I rowsort
SELECT + + 38 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT COUNT( * ) * + ( - - 49 ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
147

skipif mysql # not compatible
query I rowsort label-1349
SELECT COUNT ( * ) * + ( - - 49 ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
147

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1351
SELECT DISTINCT MIN( ALL + 8 ) FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-1351
SELECT DISTINCT MIN ( ALL + 8 ) FROM tab0 AS cor0
----
8

query II rowsort
SELECT ALL + col0 AS col0, col0 - - col1 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN + - col1 AND - + 47
----

query I rowsort
SELECT + col1 + + col0 + + col1 AS col2 FROM tab0
----
129
177
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 <= 22
----
15
81
47
97
1
99

query II rowsort
SELECT 2 AS col1, - 7 FROM tab0
----
2
-7
2
-7
2
-7

query I rowsort
SELECT - col1 * - 46 FROM tab2
----
2346
3082
3542

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

skipif mysql # not compatible
query I rowsort label-1357
SELECT DISTINCT + COUNT ( * ) / - SUM ( - col2 ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1358
SELECT 43 * + + ( + SUM( col2 ) ), 25 col2 FROM tab0
----
6708
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1358
SELECT 43 * + + ( + SUM ( col2 ) ), 25 col2 FROM tab0
----
6708
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, - 35 FROM tab0 WHERE NOT + - col1 = - ( + ( col0 ) )
----
1
-35
21
-35
81
-35

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

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

query I rowsort
SELECT col0 * - 90 * - + col2 FROM tab1
----
440640
451350
556920

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

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 82 ) * 49 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( - + col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT - 80 + - ( + - 42 ) IS NULL
----
-1
-21
-81

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * - + 44 col1 FROM tab0 AS cor0
----
2068
4356
440

query I rowsort
SELECT ALL col0 * - + ( - - 54 ) + 28 FROM tab1 AS cor0
----
-2726
-4562
-4886

query I rowsort
SELECT + col0 FROM tab1 WHERE ( ( NULL ) IS NOT NULL )
----

query I rowsort
SELECT 42 - 22 + + + col0 * - 61 FROM tab0
----
-5287
-5897
-895

query I rowsort
SELECT DISTINCT + col0 + + col2 + col1 * + + col2 + col0 AS col2 FROM tab2
----
1288
3248
4094

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

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

query I rowsort
SELECT ALL - ( + 45 ) * + ( - + ( + 65 ) ) FROM tab1
----
2925
2925
2925

onlyif mysql # aggregate syntax: 
query I rowsort label-1376
SELECT + MAX( col1 ) col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1376
SELECT + MAX ( col1 ) col2 FROM tab1 AS cor0
----
47

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1378
SELECT 28 + - ( CAST( + col0 AS SIGNED ) ) AS col2 FROM tab1
----
-23
-57
-63

skipif mysql # not compatible
query I rowsort label-1378
SELECT 28 + - ( CAST ( + col0 AS INTEGER ) ) AS col2 FROM tab1
----
-23
-57
-63

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT DISTINCT - COUNT( * ) - + 41 FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-1380
SELECT DISTINCT - COUNT ( * ) - + 41 FROM tab0
----
-44

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

query I rowsort
SELECT DISTINCT - 16 - 45 FROM tab2
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1383
SELECT ALL * FROM tab2 WHERE 12 IN ( CAST( col2 AS SIGNED ) * ( - col1 * - col0 ) )
----

skipif mysql # not compatible
query III rowsort label-1383
SELECT ALL * FROM tab2 WHERE 12 IN ( CAST ( col2 AS INTEGER ) * ( - col1 * - col0 ) )
----

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

skipif mysql # not compatible
query I rowsort label-1384
SELECT - COUNT ( DISTINCT col1 ) AS col1 FROM tab2
----
-3

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

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

query I rowsort
SELECT DISTINCT col1 * 23 + + col1 * - 53 AS col1 FROM tab2
----
-1530
-2010
-2310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1387
SELECT DISTINCT - col0 - - 21 AS col2 FROM tab1 WHERE NOT ( NULL ) IN ( col0 * ( - CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-1387
SELECT DISTINCT - col0 - - 21 AS col2 FROM tab1 WHERE NOT ( NULL ) IN ( col0 * ( - CAST ( NULL AS INTEGER ) ) )
----

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1390
SELECT DISTINCT - COUNT ( ALL col2 ) AS col2 FROM tab1
----
-3

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

query III rowsort
SELECT * FROM tab2 WHERE 79 >= ( NULL )
----

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

query I rowsort
SELECT ALL + 92 AS col1 FROM tab1
----
92
92
92

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

skipif mysql # not compatible
query III rowsort label-1395
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( ( - CAST ( NULL AS INTEGER ) ) )
----

query III rowsort
SELECT * FROM tab0 WHERE 99 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT COUNT( * ) + - COUNT( * ) FROM tab1 WHERE NOT - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1397
SELECT COUNT ( * ) + - COUNT ( * ) FROM tab1 WHERE NOT - col0 IS NULL
----
0

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

query I rowsort
SELECT ALL - 94 * - 93 AS col2 FROM tab0
----
8742
8742
8742

onlyif mysql # aggregate syntax: 
query I rowsort label-1400
SELECT ALL + COUNT( * ) - + COUNT( - col1 + 64 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1400
SELECT ALL + COUNT ( * ) - + COUNT ( - col1 + 64 ) AS col0 FROM tab2
----
0

query I rowsort
SELECT - 94 * - col2 FROM tab0
----
4418
9306
940

query I rowsort
SELECT - 10 * col1 FROM tab1
----
-140
-470
-50

query I rowsort
SELECT + col1 * - 25 FROM tab0
----
-2025
-25
-525

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1404
SELECT DISTINCT 43 FROM tab2 WHERE - CAST( NULL AS SIGNED ) < ( 2 * 25 )
----

skipif mysql # not compatible
query I rowsort label-1404
SELECT DISTINCT 43 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) < ( 2 * 25 )
----

query I rowsort
SELECT 20 + - 23 * - 97 FROM tab2 cor0
----
2251
2251
2251

query I rowsort
SELECT DISTINCT + 53 FROM tab0 AS cor0 WHERE NOT - col0 IN ( col2 )
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-1407
SELECT 68 + 8 DIV col2 FROM tab0 AS cor0
----
68
68
68

skipif mysql # not compatible
query I rowsort label-1407
SELECT 68 + 8 / col2 FROM tab0 AS cor0
----
68
68
68

query I rowsort
SELECT + 80 * + col0 + col2 AS col1 FROM tab1 AS cor0
----
4176
6859
7348

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1409
SELECT ALL 13 DIV COUNT( * ) + COUNT( * ) AS col1 FROM tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-1409
SELECT ALL 13 / COUNT ( * ) + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
7

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( - 28 ) BETWEEN ( - col1 * col1 ) AND NULL
----

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

query I rowsort
SELECT + 34 - - col2 * - col2 AS col0 FROM tab0
----
-2175
-66
-9767

query I rowsort
SELECT + 52 * - 55 - + 40 FROM tab2 AS cor0
----
-2900
-2900
-2900

query I rowsort
SELECT - col1 - ( - 98 ) AS col1 FROM tab1 AS cor0
----
51
84
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT SUM( DISTINCT - col1 ) - + 32 AS col0 FROM tab2 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-1415
SELECT SUM ( DISTINCT - col1 ) - + 32 AS col0 FROM tab2 AS cor0
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-1416
SELECT + - 26 + + 70 * COUNT( * ) col1 FROM tab1 AS cor0
----
184

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1416
SELECT + - 26 + + 70 * COUNT ( * ) col1 FROM tab1 AS cor0
----
184

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = 3
----

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

query I rowsort
SELECT 67 - col2 AS col2 FROM tab1 cor0 WHERE col0 BETWEEN col1 AND + col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 + col0 / - 81 IN ( + col2 * + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT + 92 + COUNT( ALL + col0 ) AS col0 FROM tab0 cor0
----
95

skipif mysql # not compatible
query I rowsort label-1421
SELECT + 92 + COUNT ( ALL + col0 ) AS col0 FROM tab0 cor0
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-1422
SELECT ALL - + 71 DIV - 36 - col2 col1 FROM tab1 AS cor0
----
-58
-67
-95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1422
SELECT ALL - + 71 / - 36 - col2 col1 FROM tab1 AS cor0
----
-58
-67
-95

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1424
SELECT - 97 + CAST( CAST( AVG ( + col1 ) AS DECIMAL ) AS SIGNED ) FROM tab0 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-1424
SELECT - 97 + CAST ( CAST ( AVG ( + col1 ) AS REAL ) AS INTEGER ) FROM tab0 AS cor0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1425
SELECT DISTINCT MIN( + col0 ) * 6 AS col0 FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-1425
SELECT DISTINCT MIN ( + col0 ) * 6 AS col0 FROM tab0 AS cor0
----
90

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1427
SELECT SUM( 5 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - 14 - 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1427
SELECT SUM ( 5 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - 14 - 60 )
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1429
SELECT + col0 FROM tab1 WHERE NOT ( - 6 + CAST( NULL AS SIGNED ) ) IN ( - 17 - + 41 )
----

skipif mysql # not compatible
query I rowsort label-1429
SELECT + col0 FROM tab1 WHERE NOT ( - 6 + CAST ( NULL AS INTEGER ) ) IN ( - 17 - + 41 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1431
SELECT * FROM tab1 WHERE NOT - 12 NOT IN ( - ( CAST( - col0 AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-1431
SELECT * FROM tab1 WHERE NOT - 12 NOT IN ( - ( CAST ( - col0 AS INTEGER ) ) )
----

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

query I rowsort
SELECT + 58 FROM tab1 WHERE NOT ( - col0 + + col2 * 72 ) IS NOT NULL
----

query I rowsort
SELECT ALL + 88 * - 2 FROM tab0
----
-176
-176
-176

onlyif mysql # DIV for integer division: 
query I rowsort label-1435
SELECT col0 DIV - 70 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1435
SELECT col0 / - 70 FROM tab2
----
-1
0
0

query I rowsort
SELECT + 40 * 5 * 60 FROM tab2
----
12000
12000
12000

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

query I rowsort
SELECT DISTINCT + 20 * 99 AS col2 FROM tab0 AS cor0
----
1980

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

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

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NOT + - col1 NOT IN ( 92 )
----

query I rowsort
SELECT 12 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT + col1 * - + ( + col1 ) FROM tab2
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-1443
SELECT - - SUM( - 89 ) FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
-801

skipif mysql # not compatible
query I rowsort label-1443
SELECT - - SUM ( - 89 ) FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
-801

query I rowsort
SELECT ALL - 80 * 52 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7ce231c372b244f00ad1318274f5857d

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1445
SELECT 80 DIV COUNT( * ) FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-1445
SELECT 80 / COUNT ( * ) FROM tab1
----
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - - col0 ) * + 14 col0 FROM tab1 AS cor0
----
1190
1274
714

query I rowsort
SELECT + col1 + - 51 + + - ( + col0 ) + col1 FROM tab2 AS cor0
----
39
5
8

query I rowsort
SELECT DISTINCT + + col2 * - 6 + + - col0 + - col1 FROM tab0 AS cor0
----
-168
-378
-692

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1449
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 76 / CAST( col1 AS SIGNED ) * + 57 ) NOT BETWEEN 74 AND NULL
----

skipif mysql # not compatible
query III rowsort label-1449
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 76 / CAST ( col1 AS INTEGER ) * + 57 ) NOT BETWEEN 74 AND NULL
----

query I rowsort
SELECT ALL - col0 * + 44 * col0 FROM tab0 AS cor0
----
-333036
-413996
-9900

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1452
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE - col0 * - col2 + 62 IN ( 19 + - col0 / - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-1452
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE - col0 * - col2 + 62 IN ( 19 + - col0 / - col1 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 80 + col2 + + col2 * + col2 col1 FROM tab0 AS cor0
----
211
2417
9981

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

query I rowsort
SELECT ALL col1 + + col1 - - col2 FROM tab1 AS cor0
----
124
162
69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1457
SELECT DISTINCT + SUM( ALL - - col2 ) * 4 FROM tab1
----
892

skipif mysql # not compatible
query I rowsort label-1457
SELECT DISTINCT + SUM ( ALL - - col2 ) * 4 FROM tab1
----
892

query I rowsort
SELECT DISTINCT + col1 + - col1 * + col2 + col0 FROM tab0
----
-1
-102
-3711

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( col0 ) col1, col1 col0 FROM tab2
----
46
51
64
77
75
67

onlyif mysql # DIV for integer division: 
query I rowsort label-1460
SELECT ALL col0 * - col0 + col0 DIV + col2 FROM tab1
----
-2601
-7224
-8280

skipif mysql # not compatible
query I rowsort label-1460
SELECT ALL col0 * - col0 + col0 / + col2 FROM tab1
----
-2601
-7224
-8280

query I rowsort
SELECT ALL 83 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
83
83
83

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1464
SELECT COUNT( * ) * + 10 AS col0 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-1464
SELECT COUNT ( * ) * + 10 AS col0 FROM tab2
----
30

query I rowsort
SELECT ALL + 54 + + 79 AS col0 FROM tab2
----
133
133
133

query I rowsort
SELECT DISTINCT - col0 + col0 * + + ( col1 ) AS col0 FROM tab2
----
2300
4864
4950

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1467
SELECT ALL * FROM tab1 WHERE NOT - col1 NOT BETWEEN - CAST( + 49 AS SIGNED ) AND + 60
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1467
SELECT ALL * FROM tab1 WHERE NOT - col1 NOT BETWEEN - CAST ( + 49 AS INTEGER ) AND + 60
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 10 + - col2 FROM tab2
----
-13
-30
-48

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 77 NOT BETWEEN col2 * - 63 - col0 AND NULL
----

query II rowsort
SELECT DISTINCT - 28 + - col2 AS col1, + col0 * col0 + col1 FROM tab1
----
-124
2615
-87
7230
-96
8328

query III rowsort
SELECT * FROM tab1 WHERE 26 <= 30 * + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 20 * - 25 AS col2 FROM tab1 AS cor0
----
500
500
500

query I rowsort
SELECT ALL + col2 * + col0 + - + 54 FROM tab1 AS cor0
----
4842
4961
6134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1474
SELECT DISTINCT col2 + ( CAST( - - col0 AS SIGNED ) ) FROM tab0 AS cor0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-1474
SELECT DISTINCT col2 + ( CAST ( - - col0 AS INTEGER ) ) FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 AS cor0 WHERE NOT col0 > NULL
----

query I rowsort
SELECT + ( + - col2 ) AS col1 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT - 69 NOT IN ( - 57 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 62 + - + col2 col1 FROM tab2
----
22
39
4

query I rowsort
SELECT DISTINCT + 93 * 46 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

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

query I rowsort
SELECT ALL + 49 - - + 26 AS col0 FROM tab1
----
75
75
75

query I rowsort
SELECT col0 AS col1 FROM tab2 cor0 WHERE ( col0 + - 38 ) > 31 * + col2 * - col0 + - 83 * 99
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1483
SELECT DISTINCT SUM( + 50 ) AS col2 FROM tab2 AS cor0
----
150

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

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

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

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

query I rowsort
SELECT DISTINCT - + 86 AS col2 FROM tab2 AS cor0
----
-86

onlyif mysql # DIV for integer division: 
query II rowsort label-1488
SELECT col1 * + + col2 * + + 21 AS col2, - col2 DIV 66 AS col0 FROM tab2 AS cor0
----
24633
0
64680
0
81606
0

skipif mysql # not compatible
query II rowsort label-1488
SELECT col1 * + + col2 * + + 21 AS col2, - col2 / 66 AS col0 FROM tab2 AS cor0
----
24633
0
64680
0
81606
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1489
SELECT ALL - + CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-1489
SELECT ALL - + CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
-14
-47
-5

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

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

query II rowsort
SELECT DISTINCT - col1 AS col0, col0 + - 99 FROM tab0
----
-1
-2
-21
-12
-81
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1492
SELECT COUNT( * ) * - + ( + 42 ) FROM tab1
----
-126

skipif mysql # not compatible
query I rowsort label-1492
SELECT COUNT ( * ) * - + ( + 42 ) FROM tab1
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-1493
SELECT DISTINCT MIN( DISTINCT col2 ) col1 FROM tab0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1493
SELECT DISTINCT MIN ( DISTINCT col2 ) col1 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-1494
SELECT ALL 25, - COUNT( * ) AS col1 FROM tab0
----
25
-3

skipif mysql # not compatible
query II rowsort label-1494
SELECT ALL 25, - COUNT ( * ) AS col1 FROM tab0
----
25
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1495
SELECT ALL * FROM tab0 WHERE NOT ( + + 72 * + col0 + - CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1495
SELECT ALL * FROM tab0 WHERE NOT ( + + 72 * + col0 + - CAST ( NULL AS INTEGER ) ) IS NULL
----

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

query I rowsort
SELECT DISTINCT 84 AS col2 FROM tab2 cor0
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1498
SELECT - 27 DIV - COUNT( * ) AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1498
SELECT - 27 / - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col1, - 13 AS col2 FROM tab0 AS cor0
----
1
-13
21
-13
81
-13

query I rowsort
SELECT - col0 * 32 AS col0 FROM tab0 AS cor0
----
-2784
-3104
-480

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1501
SELECT col0 AS col2, CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
51
96
85
59
91
68

skipif mysql # not compatible
query II rowsort label-1501
SELECT col0 AS col2, CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
51
96
85
59
91
68

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1503
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) NOT BETWEEN 78 * + col0 + 7 AND + + col2
----

skipif mysql # not compatible
query III rowsort label-1503
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) NOT BETWEEN 78 * + col0 + 7 AND + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1504
SELECT ALL + 99 * + 91 * - 2 * - - COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0
----
-54057

skipif mysql # not compatible
query I rowsort label-1504
SELECT ALL + 99 * + 91 * - 2 * - - COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0
----
-54057

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT ( - col2 * - 77 ) <= - ( + col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1509
SELECT MAX( 66 ) col2 FROM tab2 AS cor0
----
66

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col1 * - 70 + + + col1 col1 FROM tab1 AS cor0
----
20655
223767
94094

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

query I rowsort
SELECT ALL + 62 * + + col2 + 82 FROM tab0 AS cor0
----
2996
6220
702

query I rowsort
SELECT - 71 * + + ( 93 ) FROM tab2 AS cor0
----
-6603
-6603
-6603

query I rowsort
SELECT DISTINCT + col0 * - col1 * - + 50 + + - 1 + 30 * - + col0 - - col0 FROM tab2 cor0
----
115965
244543
249074

onlyif mysql # aggregate syntax: 
query I rowsort label-1515
SELECT ALL + 27 * - - COUNT( * ) * COUNT( * ) AS col1 FROM tab2
----
243

skipif mysql # not compatible
query I rowsort label-1515
SELECT ALL + 27 * - - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-1516
SELECT COUNT( * ) + + 75 AS col0 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-1516
SELECT COUNT ( * ) + + 75 AS col0 FROM tab0
----
78

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NULL NOT BETWEEN + 72 AND - 36 * - 44
----

query II rowsort
SELECT ALL - col0 + + col1 + col0, - 52 * - col1 + 84 * col0 + col2 AS col1 FROM tab0
----
1
8299
21
8410
81
5519

query I rowsort
SELECT + 40 + col0 FROM tab2
----
104
115
86

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1520
SELECT ALL * FROM tab2 WHERE ( + 6 ) <= ( + col2 / - + CAST( + - col0 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-1520
SELECT ALL * FROM tab2 WHERE ( + 6 ) <= ( + col2 / - + CAST ( + - col0 AS REAL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1521
SELECT DISTINCT + col2 * - col2 * - - ( CAST( - ( 66 ) AS SIGNED ) ) FROM tab1
----
229746
305184
608256

skipif mysql # not compatible
query I rowsort label-1521
SELECT DISTINCT + col2 * - col2 * - - ( CAST ( - ( 66 ) AS INTEGER ) ) FROM tab1
----
229746
305184
608256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1522
SELECT - MAX( col0 ) + - MIN( + - CAST( NULL AS SIGNED ) ) + MIN( 54 ) AS col2 FROM tab1 AS cor0 WHERE col0 * + CAST( NULL AS SIGNED ) IN ( - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1522
SELECT - MAX ( col0 ) + - MIN ( + - CAST ( NULL AS INTEGER ) ) + MIN ( 54 ) AS col2 FROM tab1 AS cor0 WHERE col0 * + CAST ( NULL AS INTEGER ) IN ( - col2 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1523
SELECT col1 + - col0 DIV col2 FROM tab2 cor0
----
49
66
76

skipif mysql # not compatible
query I rowsort label-1523
SELECT col1 + - col0 / col2 FROM tab2 cor0
----
49
66
76

query I rowsort
SELECT ALL col1 - 83 * + col0 AS col1 FROM tab0 AS cor0
----
-1164
-7200
-8050

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

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

query I rowsort
SELECT DISTINCT + col1 * - col1 + + col2 FROM tab1
----
-100
-2141
34

query I rowsort
SELECT ALL + col2 * + 7 * + col0 AS col2 FROM tab0
----
4935
6090
67221

query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE - 49 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT MAX( DISTINCT - 69 ) FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-1529
SELECT MAX ( DISTINCT - 69 ) FROM tab2 AS cor0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1530
SELECT ALL ( - SUM( - col1 ) ) AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-1530
SELECT ALL ( - SUM ( - col1 ) ) AS col0 FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1531
SELECT DISTINCT 49 DIV - MAX( + col0 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1531
SELECT DISTINCT 49 / - MAX ( + col0 ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1532
SELECT COUNT( * ) * - 13 FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-1532
SELECT COUNT ( * ) * - 13 FROM tab1 AS cor0
----
-39

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1534
SELECT DISTINCT + CAST( + - col2 AS SIGNED ) FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-1534
SELECT DISTINCT + CAST ( + - col2 AS INTEGER ) FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT ( + ( + - COUNT( * ) ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1535
SELECT ( + ( + - COUNT ( * ) ) ) FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-1536
SELECT DISTINCT col0 DIV + - 63 AS col1 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-1536
SELECT DISTINCT col0 / + - 63 AS col1 FROM tab1
----
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1537
SELECT + 93 DIV + - MAX( + col0 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-1537
SELECT + 93 / + - MAX ( + col0 ) FROM tab1
----
-1

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * - 26 IS NOT NULL
----

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

query II rowsort
SELECT DISTINCT col1 AS col2, 88 * + 86 FROM tab0 AS cor0
----
1
7568
21
7568
81
7568

query I rowsort
SELECT col2 + - col2 + + col1 - - + col0 AS col2 FROM tab1
----
138
65
90

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1546
SELECT + COUNT( * ) + - MIN( - 40 ) FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-1546
SELECT + COUNT ( * ) + - MIN ( - 40 ) FROM tab2 AS cor0
----
43

query II rowsort
SELECT ALL - + col1 AS col0, + 97 * + 84 AS col0 FROM tab1 AS cor0
----
-14
8148
-47
8148
-5
8148

query I rowsort
SELECT - - 0 * - - 1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + ( col1 ) * - col1 + - 38 FROM tab2
----
-2639
-4527
-5967

query I rowsort
SELECT DISTINCT ( - col1 ) + - 26 AS col1 FROM tab2
----
-103
-77
-93

query II rowsort
SELECT DISTINCT + 59 + + 81 AS col1, + ( + col2 ) * - col1 FROM tab1
----
140
-1344
140
-295
140
-3196

onlyif mysql # DIV for integer division: 
query I rowsort label-1552
SELECT + col1 - - ( - col2 ) DIV + 14 FROM tab2
----
50
63
75

skipif mysql # not compatible
query I rowsort label-1552
SELECT + col1 - - ( - col2 ) / + 14 FROM tab2
----
50
63
75

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

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

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

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

query I rowsort
SELECT - ( + ( - col1 ) ) + 1 FROM tab0 AS cor0
----
2
22
82

query I rowsort
SELECT - 86 + - col2 FROM tab1 AS cor0
----
-145
-154
-182

onlyif mysql # DIV for integer division: 
query I rowsort label-1558
SELECT col0 DIV - col0 + col2 AS col1 FROM tab2
----
22
39
57

skipif mysql # not compatible
query I rowsort label-1558
SELECT col0 / - col0 + col2 AS col1 FROM tab2
----
22
39
57

onlyif mysql # DIV for integer division: 
query I rowsort label-1559
SELECT DISTINCT + 22 DIV - - 76 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1559
SELECT DISTINCT + 22 / - - 76 AS col1 FROM tab2
----
0

query I rowsort
SELECT - 14 * + 40 FROM tab2 WHERE NOT NULL <= NULL
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1563
SELECT DISTINCT + + col0 DIV 32 AS col2 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-1563
SELECT DISTINCT + + col0 / 32 AS col2 FROM tab2 AS cor0
----
1
2

query I rowsort
SELECT DISTINCT + - 1 FROM tab1 cor0 WHERE NULL > col1
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1566
SELECT - CAST( - - 22 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-22
-22
-22

skipif mysql # not compatible
query I rowsort label-1566
SELECT - CAST ( - - 22 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-22
-22
-22

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

skipif mysql # not compatible
query II rowsort label-1567
SELECT + + COUNT ( * ), 84 AS col1 FROM tab2 cor0
----
3
84

query I rowsort
SELECT + col2 * + + col2 AS col1 FROM tab0 AS cor0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query II rowsort label-1569
SELECT + MAX( - 74 ), SUM( DISTINCT col1 ) + - COUNT( * ) AS col0 FROM tab1
----
-74
63

skipif mysql # not compatible
query II rowsort label-1569
SELECT + MAX ( - 74 ), SUM ( DISTINCT col1 ) + - COUNT ( * ) AS col0 FROM tab1
----
-74
63

query I rowsort
SELECT - 21 * - col1 AS col0 FROM tab0
----
1701
21
441

query I rowsort
SELECT ALL + col2 * - - col1 AS col2 FROM tab0
----
210
3807
99

onlyif mysql # DIV for integer division: 
query I rowsort label-1572
SELECT DISTINCT + 77 DIV + 8 AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-1572
SELECT DISTINCT + 77 / + 8 AS col1 FROM tab0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1573
SELECT DISTINCT COUNT( * ) DIV 16 AS col2, - COUNT( * ) AS col1 FROM tab2
----
0
-3

skipif mysql # not compatible
query II rowsort label-1573
SELECT DISTINCT COUNT ( * ) / 16 AS col2, - COUNT ( * ) AS col1 FROM tab2
----
0
-3

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

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

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT - col2 + + 83 IN ( + 93 )
----
46
64
75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT COUNT( * ) + + 29 * 81 * 56 FROM tab0 AS cor0
----
131547

skipif mysql # not compatible
query I rowsort label-1577
SELECT COUNT ( * ) + + 29 * 81 * 56 FROM tab0 AS cor0
----
131547

query I rowsort
SELECT DISTINCT - + 5 + 20 * - col2 * col2 AS col0 FROM tab0 AS cor0
----
-196025
-2005
-44185

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

query I rowsort
SELECT - col1 FROM tab1 WHERE col1 * + col2 >= ( NULL )
----

query I rowsort
SELECT + 12 * 85 FROM tab1 AS cor0
----
1020
1020
1020

query I rowsort
SELECT + + ( - ( col1 ) ) FROM tab2 cor0
----
-51
-67
-77

query I rowsort
SELECT - 22 - + col0 + - col1 * - 79 FROM tab0 AS cor0
----
-40
1550
6362

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

query I rowsort
SELECT ALL 40 FROM tab0 AS cor0 WHERE NULL IS NULL
----
40
40
40

query I rowsort
SELECT + col0 + + col0 + + 28 FROM tab2
----
120
156
178

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

query I rowsort
SELECT ALL + 49 + + col0 FROM tab0
----
136
146
64

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

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

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

query I rowsort
SELECT DISTINCT - 10 - 12 FROM tab1
----
-22

query I rowsort
SELECT - col2 + - 52 * - col2 AS col0 FROM tab2
----
1173
2040
2958

onlyif mysql # DIV for integer division: 
query II rowsort label-1593
SELECT ALL - col1 DIV + 96 - - col2 + - 78, + col0 AS col2 FROM tab0
----
-31
15
-68
87
21
97

skipif mysql # not compatible
query II rowsort label-1593
SELECT ALL - col1 / + 96 - - col2 + - 78, + col0 AS col2 FROM tab0
----
-31
15
-68
87
21
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1594
SELECT DISTINCT COUNT( ALL - 55 ) + + 3 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-1594
SELECT DISTINCT COUNT ( ALL - 55 ) + + 3 FROM tab1 AS cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 98 * + 5 col0 FROM tab1 AS cor0
----
490

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT + SUM( ALL - + ( + ( + 68 ) ) ) FROM tab0 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-1596
SELECT + SUM ( ALL - + ( + ( + 68 ) ) ) FROM tab0 AS cor0
----
-204

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1598
SELECT DISTINCT COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0 WHERE NULL = + 73
----
0

skipif mysql # not compatible
query I rowsort label-1598
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL = + 73
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1599
SELECT ALL - + SUM( - + 80 ) * - COUNT( ALL + + col1 ) AS col1 FROM tab1 cor0
----
-720

skipif mysql # not compatible
query I rowsort label-1599
SELECT ALL - + SUM ( - + 80 ) * - COUNT ( ALL + + col1 ) AS col1 FROM tab1 cor0
----
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-1600
SELECT ( - SUM( col2 ) ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-1600
SELECT ( - SUM ( col2 ) ) FROM tab2
----
-121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 23 col1 FROM tab1
----
-1357
-1564
-2208

query I rowsort
SELECT ALL + 16 * - col2 FROM tab2
----
-368
-640
-928

query II rowsort
SELECT DISTINCT - col0, - col1 + col0 AS col2 FROM tab2
----
-46
-5
-64
-13
-75
8

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1605
SELECT DISTINCT - + COUNT( * ) + + - 90 AS col2 FROM tab1 cor0
----
-93

skipif mysql # not compatible
query I rowsort label-1605
SELECT DISTINCT - + COUNT ( * ) + + - 90 AS col2 FROM tab1 cor0
----
-93

query I rowsort
SELECT - 17 + + + col0 * - 74 * - col0 AS col0 FROM tab0
----
16633
560089
696249

query I rowsort
SELECT + 53 * col0 + + col0 AS col0 FROM tab1
----
2754
4590
4914

query II rowsort
SELECT ALL 36 * - col2, + col0 AS col0 FROM tab0
----
-1692
15
-3564
97
-360
87

query I rowsort
SELECT ( - col0 ) * - - 27 + - col2 FROM tab1 AS cor0
----
-1473
-2354
-2525

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

skipif mysql # not compatible
query I rowsort label-1610
SELECT ALL - + COUNT ( - col2 ) FROM tab1 cor0
----
-3

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1612
SELECT + - ( - SUM( ALL - 99 ) ) DIV - - 24 + + - CAST( + 7 AS SIGNED ) FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-1612
SELECT + - ( - SUM ( ALL - 99 ) ) / - - 24 + + - CAST ( + 7 AS INTEGER ) FROM tab1 AS cor0
----
-19

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

query I rowsort
SELECT ALL + + 83 + col0 + - - col0 + col2 FROM tab0 AS cor0
----
160
267
376

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 85 BETWEEN + 91 AND ( + - col2 )
----

query I rowsort
SELECT + 1 * + col2 - 74 * 43 AS col0 FROM tab1
----
-3086
-3114
-3123

query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE NOT + col1 > - col1 * + col2
----

query I rowsort
SELECT DISTINCT - + 40 FROM tab2 cor0
----
-40

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

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

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

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

query I rowsort
SELECT DISTINCT + 21 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1622
SELECT + 90 DIV - SUM( ALL + - 70 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1622
SELECT + 90 / - SUM ( ALL + - 70 ) AS col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - 9 + 68 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
59

query II rowsort
SELECT ALL col0 AS col0, - 60 * - col1 FROM tab1 WHERE NOT col2 IS NOT NULL
----

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

skipif mysql # not compatible
query II rowsort label-1625
SELECT DISTINCT COUNT ( * ) AS col1, - COUNT ( * ) FROM tab0
----
3
-3

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1627
SELECT DISTINCT - + 6 AS col0, + 51 DIV + - 62 FROM tab2 cor0
----
-6
0

skipif mysql # not compatible
query II rowsort label-1627
SELECT DISTINCT - + 6 AS col0, + 51 / + - 62 FROM tab2 cor0
----
-6
0

query I rowsort
SELECT ALL - col1 * - + col0 + + 28 AS col0 FROM tab1 AS cor0
----
4305
453
742

query I rowsort
SELECT + 78 * + + 19 * + col2 * + + col1 + - - ( 68 ) AS col1 FROM tab0 AS cor0
----
146786
311288
5642042

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col1 AS col1, col2 col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT - COUNT( DISTINCT 87 ) * 10 FROM tab2 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-1631
SELECT - COUNT ( DISTINCT 87 ) * 10 FROM tab2 AS cor0
----
-10

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 45 - - - col0 * - col2 > NULL
----

query II rowsort
SELECT col0 AS col1, ( + col1 ) + + col0 FROM tab1 AS cor0
----
51
65
85
90
91
138

query II rowsort
SELECT DISTINCT - + 62 AS col0, col0 + - 65 FROM tab0 AS cor0
----
-62
-50
-62
22
-62
32

query I rowsort
SELECT DISTINCT + 7 * col0 * col0 AS col0 FROM tab0 AS cor0 WHERE col1 + + 59 * + - col2 > - + col2
----

query I rowsort
SELECT ALL - - 46 * + - col2 FROM tab2 AS cor0
----
-1058
-1840
-2668

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT DISTINCT - SUM( - - 25 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-1637
SELECT DISTINCT - SUM ( - - 25 ) FROM tab2
----
-75

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

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

query I rowsort
SELECT + 28 + - col2 * + ( col0 ) AS col0 FROM tab0 AS cor0
----
-677
-842
-9575

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

query I rowsort
SELECT ALL col1 * + + 92 * + 26 + - 70 AS col2 FROM tab2 cor0 WHERE NOT 27 IS NULL
----
121922
160194
184114

query I rowsort
SELECT DISTINCT + 57 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - + col2 AS col1, - col0 * + col2 AS col1 FROM tab1 WHERE NULL NOT IN ( - - col0 * - + col1 * + - 24 * - col0, - col1, + 5, - - 59, + 14 )
----

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

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

query I rowsort
SELECT ALL + col1 + - col2 + + col2 AS col2 FROM tab0
----
1
21
81

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1648
SELECT DISTINCT + col2 DIV - 67 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1648
SELECT DISTINCT + col2 / - 67 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + col0 * - - 96 * - 68 FROM tab0 AS cor0
----
-567936
-633216
-97920

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT MIN( 50 ) FROM tab2 WHERE NOT ( ( ( NOT - 87 IS NULL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1652
SELECT MIN ( 50 ) FROM tab2 WHERE NOT ( ( ( NOT - 87 IS NULL ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1653
SELECT ALL - 15 * + COUNT( + + col2 ) AS col0 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-1653
SELECT ALL - 15 * + COUNT ( + + col2 ) AS col0 FROM tab0
----
-45

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 23 col2 FROM tab0 cor0 WHERE col1 = NULL
----

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

skipif mysql # not compatible
query I rowsort label-1656
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL < ( NULL )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1657
SELECT - COUNT( * ) DIV + 66 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1657
SELECT - COUNT ( * ) / + 66 AS col0 FROM tab1
----
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE - 7 IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query I rowsort label-1659
SELECT ALL + + MAX( + col1 ) * + 88 * - - COUNT( * ) * - COUNT( ( + 84 ) ) FROM tab0 AS cor0
----
-64152

skipif mysql # not compatible
query I rowsort label-1659
SELECT ALL + + MAX ( + col1 ) * + 88 * - - COUNT ( * ) * - COUNT ( ( + 84 ) ) FROM tab0 AS cor0
----
-64152

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 56 AND NULL
----

query II rowsort
SELECT col2 * + col2 * + 16 AS col1, + col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( col1 ) IS NOT NULL
----

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

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

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

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

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

query II rowsort
SELECT 15 AS col1, col2 + + col2 FROM tab0
----
15
198
15
20
15
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1668
SELECT DISTINCT 96 AS col0, + CAST( 72 AS SIGNED ) + + col2 FROM tab2
----
96
112
96
130
96
95

skipif mysql # not compatible
query II rowsort label-1668
SELECT DISTINCT 96 AS col0, + CAST ( 72 AS INTEGER ) + + col2 FROM tab2
----
96
112
96
130
96
95

query I rowsort
SELECT ( 91 ) FROM tab2
----
91
91
91

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) NOT BETWEEN - 43 AND + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1671
SELECT col1 * - 52 + col1 DIV 2 FROM tab0
----
-1082
-4172
-52

skipif mysql # not compatible
query I rowsort label-1671
SELECT col1 * - 52 + col1 / 2 FROM tab0
----
-1082
-4172
-52

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1673
SELECT + 94 * 5 * + COUNT( * ) * COUNT( * ) + + COUNT( * ) AS col2, + MIN( DISTINCT - + 22 ) FROM tab2
----
4233
-22

skipif mysql # not compatible
query II rowsort label-1673
SELECT + 94 * 5 * + COUNT ( * ) * COUNT ( * ) + + COUNT ( * ) AS col2, + MIN ( DISTINCT - + 22 ) FROM tab2
----
4233
-22

query I rowsort
SELECT DISTINCT + ( col2 ) * + col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 23 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT DISTINCT - col2 - + col1 FROM tab0 AS cor0
----
-100
-128
-31

query I rowsort
SELECT ALL - 95 - + col1 FROM tab1 cor0
----
-100
-109
-142

query I rowsort
SELECT - 29 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-29
-29
-29

query I rowsort
SELECT DISTINCT + ( + col0 ) - + col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + - 91 * - + col0 * col2 * col1 AS col2 FROM tab0 AS cor0
----
1662570
5196555
873873

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1682
SELECT COUNT( * ) AS col0, 5 * - - MIN( DISTINCT col0 ) FROM tab0
----
3
75

skipif mysql # not compatible
query II rowsort label-1682
SELECT COUNT ( * ) AS col0, 5 * - - MIN ( DISTINCT col0 ) FROM tab0
----
3
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT DISTINCT + MIN( DISTINCT - + col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-1683
SELECT DISTINCT + MIN ( DISTINCT - + col0 ) FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT DISTINCT + COUNT( * ) * 73 * - SUM( ALL - 2 ) AS col2 FROM tab2
----
1314

skipif mysql # not compatible
query I rowsort label-1684
SELECT DISTINCT + COUNT ( * ) * 73 * - SUM ( ALL - 2 ) AS col2 FROM tab2
----
1314

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1686
SELECT ALL MIN( DISTINCT + 46 ) * + - 45 AS col0 FROM tab1
----
-2070

skipif mysql # not compatible
query I rowsort label-1686
SELECT ALL MIN ( DISTINCT + 46 ) * + - 45 AS col0 FROM tab1
----
-2070

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1687
SELECT ALL 31 DIV CAST( + 61 AS SIGNED ) DIV + - col0 * 91 - col0 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-1687
SELECT ALL 31 / CAST ( + 61 AS INTEGER ) / + - col0 * 91 - col0 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + + 21 AS col2 FROM tab1 WHERE col2 IS NOT NULL
----
21

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1693
SELECT ALL COUNT( DISTINCT + 56 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1693
SELECT ALL COUNT ( DISTINCT + 56 ) FROM tab1
----
1

query I rowsort
SELECT DISTINCT ( 76 ) FROM tab2
----
76

query I rowsort
SELECT + col2 * - 59 * + 68 FROM tab1 AS cor0
----
-236708
-272816
-385152

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1697
SELECT ALL + CAST( - - col0 AS SIGNED ) FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-1697
SELECT ALL + CAST ( - - col0 AS INTEGER ) FROM tab0 AS cor0
----
15
87
97

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

query III rowsort
SELECT ALL * FROM tab0 WHERE 62 <> NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 10 > + col1 + + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 35 + - col2 + + 49 col2 FROM tab1
----
-12
16
25

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( - 3 ) > - col2 * - 51
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col2 * + - 25 AS col2 FROM tab2 AS cor0
----
1000
1450
575

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 IS NOT NULL AND NULL = 36
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col0 * ( + 42 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1708
SELECT - 38 + COUNT( * ) * + - COUNT( * ) * + - 44 FROM tab1 AS cor0
----
358

skipif mysql # not compatible
query I rowsort label-1708
SELECT - 38 + COUNT ( * ) * + - COUNT ( * ) * + - 44 FROM tab1 AS cor0
----
358

query II rowsort
SELECT + + col1, col1 * + 90 FROM tab0 AS cor0
----
1
90
21
1890
81
7290

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1710
SELECT ALL + col0, - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-1710
SELECT ALL + col0, - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1711
SELECT DISTINCT + 62, ( - CAST( - MAX( ALL + 58 ) AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
62
58

skipif mysql # not compatible
query II rowsort label-1711
SELECT DISTINCT + 62, ( - CAST ( - MAX ( ALL + 58 ) AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
62
58

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

skipif mysql # not compatible
query I rowsort label-1712
SELECT - + COUNT ( - 84 ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 91 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 * + - 34 + + col0 AS col2 FROM tab0 AS cor0
----
-2739
-627
63

onlyif mysql # aggregate syntax: 
query II rowsort label-1715
SELECT ALL + 77 col2, 93 * + + COUNT( * ) + - + COUNT( * ) FROM tab1 cor0
----
77
276

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1715
SELECT ALL + 77 col2, 93 * + + COUNT ( * ) + - + COUNT ( * ) FROM tab1 cor0
----
77
276

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1716
SELECT - col1 + - - ( - + 28 ) AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN 43 AND CAST( NULL AS DECIMAL ) * - col1
----

skipif mysql # not compatible
query I rowsort label-1716
SELECT - col1 + - - ( - + 28 ) AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN 43 AND CAST ( NULL AS REAL ) * - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1717
SELECT DISTINCT + col2 FROM tab2 WHERE NOT 54 + + - ( - CAST( - + col0 AS SIGNED ) ) * - + col1 <> 9
----

skipif mysql # not compatible
query I rowsort label-1717
SELECT DISTINCT + col2 FROM tab2 WHERE NOT 54 + + - ( - CAST ( - + col0 AS INTEGER ) ) * - + col1 <> 9
----

query I rowsort
SELECT + col2 * + col0 * - col0 AS col2 FROM tab2
----
-163840
-326250
-48668

onlyif mysql # aggregate syntax: 
query I rowsort label-1719
SELECT ALL COUNT( * ) * 0 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1719
SELECT ALL COUNT ( * ) * 0 AS col1 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1720
SELECT col1 DIV col0 col0 FROM tab0
----
0
0
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1720
SELECT col1 / col0 col0 FROM tab0
----
0
0
5

query II rowsort
SELECT ALL ( + col0 ) AS col1, - ( + - col1 ) + 51 + - 77 FROM tab0 AS cor0
----
15
55
87
-5
97
-25

query I rowsort
SELECT DISTINCT + col0 + 23 AS col0 FROM tab1
----
108
114
74

onlyif mysql # DIV for integer division: 
query I rowsort label-1723
SELECT ALL 99 DIV + + 33 FROM tab1
----
3
3
3

skipif mysql # not compatible
query I rowsort label-1723
SELECT ALL 99 / + + 33 FROM tab1
----
3
3
3

query II rowsort
SELECT - ( + - 91 ) + col1 AS col0, ( + col0 ) * + col0 + - col2 AS col1 FROM tab0
----
112
7559
172
178
92
9310

query I rowsort
SELECT ( + 93 ) + - col2 FROM tab0 AS cor0
----
-6
46
83

onlyif mysql # aggregate syntax: 
query II rowsort label-1726
SELECT ( - COUNT( * ) ) * + 14 + + COUNT( * ) AS col2, 28 AS col0 FROM tab2 AS cor0
----
-39
28

skipif mysql # not compatible
query II rowsort label-1726
SELECT ( - COUNT ( * ) ) * + 14 + + COUNT ( * ) AS col2, 28 AS col0 FROM tab2 AS cor0
----
-39
28

query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 AS cor0 WHERE + col1 * 52 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 62 - - 84 AS col0 FROM tab2 WHERE - col2 = + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 9 * - + 58 col1 FROM tab2
----
-26622
-34974
-40194

query I rowsort
SELECT ALL - col2 * - + col1 * - + 58 * + + col1 + + col1 AS col2 FROM tab1
----
-1091314
-85545
-8712249

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1731
SELECT DISTINCT 94 * - 68 * - + CAST( NULL AS DECIMAL ) + 35 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1731
SELECT DISTINCT 94 * - 68 * - + CAST ( NULL AS REAL ) + 35 AS col1 FROM tab0
----
NULL

query I rowsort
SELECT + - col0 * - col0 FROM tab2 WHERE + + ( col2 ) / - col1 + 61 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT ALL + COUNT( * ) + - - 98 AS col1 FROM tab2
----
101

skipif mysql # not compatible
query I rowsort label-1733
SELECT ALL + COUNT ( * ) + - - 98 AS col1 FROM tab2
----
101

query I rowsort
SELECT DISTINCT + 82 - col1 FROM tab0 AS cor0 WHERE NOT - 44 <> + col0
----

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

query III rowsort
SELECT * FROM tab2 WHERE NULL <> + col0 / col2 + - col0 - - col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( - 59 * col1 * - - ( - 7 ) + + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 97 = + col0
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1741
SELECT DISTINCT MAX( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-1741
SELECT DISTINCT MAX ( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
97

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1742
SELECT - 28 AS col0, + ( + + CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
-28
NULL
-28
NULL
-28
NULL

skipif mysql # not compatible
query II rowsort label-1742
SELECT - 28 AS col0, + ( + + CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
-28
NULL
-28
NULL
-28
NULL

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 = - col0 * + 61 - + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT DISTINCT 38 * + ( + col0 ) AS col0 FROM tab0
----
3306
3686
570

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1749
SELECT - COUNT( * ) - + 35 FROM tab2, tab2 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-1749
SELECT - COUNT ( * ) - + 35 FROM tab2, tab2 AS cor0
----
-44

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 26 * - + col2 = NULL
----

query I rowsort
SELECT ALL 63 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 18 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 95 col0 FROM tab2 AS cor0 WHERE NOT - col1 > + col0
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT + 43 + + SUM( ALL - 58 ) AS col0 FROM tab0 AS cor0
----
-131

skipif mysql # not compatible
query I rowsort label-1753
SELECT + 43 + + SUM ( ALL - 58 ) AS col0 FROM tab0 AS cor0
----
-131

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

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

query I rowsort
SELECT DISTINCT + - col2 * - col2 * + col0 FROM tab2 AS cor0
----
102400
24334
252300

onlyif mysql # DIV for integer division: 
query I rowsort label-1756
SELECT - 41 * + col2 + - col1 DIV - 82 + + col0 FROM tab0 AS cor0
----
-1912
-323
-3962

skipif mysql # not compatible
query I rowsort label-1756
SELECT - 41 * + col2 + - col1 / - 82 + + col0 FROM tab0 AS cor0
----
-1912
-323
-3962

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1 + - col0, col1 col1 FROM tab1 cor0
----
-138
47
-65
14
-90
5

query I rowsort
SELECT - col2 * + - col0 + + 74 + 34 FROM tab2 AS cor0
----
1166
2668
4458

query II rowsort
SELECT ALL + col1 + - - col2 + + col0 + + 91 * - + col2 AS col0, col1 AS col0 FROM tab0 AS cor0
----
-4134
81
-792
21
-8812
1

query III rowsort
SELECT * FROM tab2 WHERE col0 BETWEEN 1 AND col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1761
SELECT DISTINCT - 83 DIV - - col1 AS col0 FROM tab0
----
-1
-3
-83

skipif mysql # not compatible
query I rowsort label-1761
SELECT DISTINCT - 83 / - - col1 AS col0 FROM tab0
----
-1
-3
-83

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1763
SELECT ALL MIN( + - 70 ) + + COUNT( DISTINCT col1 ) AS col0 FROM tab1
----
-67

skipif mysql # not compatible
query I rowsort label-1763
SELECT ALL MIN ( + - 70 ) + + COUNT ( DISTINCT col1 ) AS col0 FROM tab1
----
-67

onlyif mysql # DIV for integer division: 
query II rowsort label-1764
SELECT DISTINCT - col2 * - col1 + + + col2 - + + col1, 39 DIV - col1 + + col2 * + col0 * - + 90 AS col2 FROM tab1 AS cor0
----
1426
-440642
3217
-556920
349
-451357

skipif mysql # not compatible
query II rowsort label-1764
SELECT DISTINCT - col2 * - col1 + + + col2 - + + col1, 39 / - col1 + + col2 * + col0 * - + 90 AS col2 FROM tab1 AS cor0
----
1426
-440642
3217
-556920
349
-451357

query II rowsort
SELECT col1 AS col1, col1 AS col2 FROM tab2 AS cor0
----
51
51
67
67
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 - + + 50 col0 FROM tab0 AS cor0
----
-3
-40
49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT + MIN( DISTINCT - + 73 ) FROM tab2
----
-73

skipif mysql # not compatible
query I rowsort label-1768
SELECT + MIN ( DISTINCT - + 73 ) FROM tab2
----
-73

query II rowsort
SELECT ALL - ( col1 ), + col0 - 46 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1775
SELECT ( - ( - CAST( col2 AS SIGNED ) ) ) * + + col1 AS col0 FROM tab0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-1775
SELECT ( - ( - CAST ( col2 AS INTEGER ) ) ) * + + col1 AS col0 FROM tab0
----
210
3807
99

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1777
SELECT 99 * + col0 * + CAST( + col2 AS SIGNED ) FROM tab2
----
104742
253440
430650

skipif mysql # not compatible
query I rowsort label-1777
SELECT 99 * + col0 * + CAST ( + col2 AS INTEGER ) FROM tab2
----
104742
253440
430650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1778
SELECT ALL MIN( ALL - CAST( - col0 AS SIGNED ) ) col0 FROM tab1
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1778
SELECT ALL MIN ( ALL - CAST ( - col0 AS INTEGER ) ) col0 FROM tab1
----
51

query I rowsort
SELECT col1 * - 91 * - col0 FROM tab1
----
38675
389207
64974

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

query I rowsort
SELECT 40 * 13 FROM tab1
----
520
520
520

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( - 98 ) = + col2 + - col0 * + 14
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT DISTINCT - 9 + - - 81 * - - 29 - - col0 AS col2 FROM tab2 AS cor0
----
2386
2404
2415

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT DISTINCT - ( + 54 ) * + + SUM( - 69 ) FROM tab1 cor0
----
11178

skipif mysql # not compatible
query I rowsort label-1785
SELECT DISTINCT - ( + 54 ) * + + SUM ( - 69 ) FROM tab1 cor0
----
11178

query I rowsort
SELECT + 78 AS col2 FROM tab2 WHERE NULL = NULL
----

query I rowsort
SELECT DISTINCT col0 / 84 AS col0 FROM tab2 WHERE NOT - 18 IS NOT NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1789
SELECT DISTINCT 67 DIV + 56 AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1789
SELECT DISTINCT 67 / + 56 AS col1 FROM tab1 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1790
SELECT DISTINCT + col1 * 33 DIV col2 AS col1 FROM tab1 cor0
----
2
22
4

skipif mysql # not compatible
query I rowsort label-1790
SELECT DISTINCT + col1 * 33 / col2 AS col1 FROM tab1 cor0
----
2
22
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1791
SELECT ALL + 55 * COUNT( ALL - + col2 ) AS col2 FROM tab0 cor0
----
165

skipif mysql # not compatible
query I rowsort label-1791
SELECT ALL + 55 * COUNT ( ALL - + col2 ) AS col2 FROM tab0 cor0
----
165

query I rowsort
SELECT ALL + col2 + - - 96 AS col2 FROM tab2 AS cor0
----
119
136
154

query II rowsort
SELECT - 87 AS col2, ( + 73 ) AS col1 FROM tab2 cor0
----
-87
73
-87
73
-87
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT + MAX( ALL + col0 ) * + ( - SUM( ALL - ( 93 ) ) ) - + + 34 AS col1 FROM tab0
----
27029

skipif mysql # not compatible
query I rowsort label-1794
SELECT + MAX ( ALL + col0 ) * + ( - SUM ( ALL - ( 93 ) ) ) - + + 34 AS col1 FROM tab0
----
27029

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

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

query II rowsort
SELECT DISTINCT + ( col0 ), + col0 FROM tab0
----
15
15
87
87
97
97

query I rowsort
SELECT ALL 39 - + 31 + col0 AS col0 FROM tab2
----
54
72
83

query III rowsort
SELECT ALL * FROM tab2 WHERE - 28 * col0 - - col2 - - col1 NOT BETWEEN NULL AND + - 30
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT SUM( DISTINCT + 85 ) - + MIN( ALL - - col0 ) FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-1801
SELECT SUM ( DISTINCT + 85 ) - + MIN ( ALL - - col0 ) FROM tab0
----
70

query II rowsort
SELECT ALL col0 * - col0 - - + col0, + col2 AS col0 FROM tab1
----
-2550
96
-7140
59
-8190
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT DISTINCT 70 * + - COUNT( * ) + ( + 77 ) FROM tab1
----
-133

skipif mysql # not compatible
query I rowsort label-1803
SELECT DISTINCT 70 * + - COUNT ( * ) + ( + 77 ) FROM tab1
----
-133

onlyif mysql # aggregate syntax: 
query II rowsort label-1804
SELECT DISTINCT + COUNT( * ) - - + 11 col2, - 16 AS col1 FROM tab2 AS cor0
----
14
-16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1804
SELECT DISTINCT + COUNT ( * ) - - + 11 col2, - 16 AS col1 FROM tab2 AS cor0
----
14
-16

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

skipif mysql # not compatible
query II rowsort label-1805
SELECT DISTINCT + COUNT ( * ) AS col1, 22 * + COUNT ( * ) FROM tab2
----
3
66

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1807
SELECT + MAX( + 18 ) AS col2 FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-1807
SELECT + MAX ( + 18 ) AS col2 FROM tab2
----
18

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

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

query I rowsort
SELECT ( + 53 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 99
----

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - 74 + + 46 + - col0 FROM tab2
----
-103
-74
-92

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 NOT BETWEEN + 22 * + col2 / - 63 AND - col0 * - 86
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT 37 + + COUNT( * ) + - 56 FROM tab0
----
-16

skipif mysql # not compatible
query I rowsort label-1818
SELECT 37 + + COUNT ( * ) + - 56 FROM tab0
----
-16

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 17 + - col1, col0 + - + 74 col1 FROM tab2 WHERE NOT NULL = NULL
----

query I rowsort
SELECT col2 * 93 * - + 68 + col2 + 80 + + + col2 FROM tab1 AS cor0
----
-372918
-429816
-606832

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1823
SELECT - MAX( DISTINCT + + 32 ) col2, 54 DIV - 1 FROM tab0 AS cor0
----
-32
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1823
SELECT - MAX ( DISTINCT + + 32 ) col2, 54 / - 1 FROM tab0 AS cor0
----
-32
-54

query I rowsort
SELECT - 84 - + + 3 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1825
SELECT * FROM tab0 AS cor0 WHERE + col1 * + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1825
SELECT * FROM tab0 AS cor0 WHERE + col1 * + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 35 * - col1 + - - 59 AS col2 FROM tab2 AS cor0
----
-1726
-2286
-2636

query I rowsort
SELECT + 47 - - 1 AS col1 FROM tab2 AS cor0
----
48
48
48

onlyif mysql # DIV for integer division: 
query I rowsort label-1828
SELECT DISTINCT 30 DIV - + 60 AS col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1828
SELECT DISTINCT 30 / - + 60 AS col0 FROM tab1 cor0
----
0

query I rowsort
SELECT - ( + col2 ) + - ( - - col1 ) FROM tab2 AS cor0
----
-117
-125
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1830
SELECT ALL COUNT( * ) + - 2 DIV COUNT( * ) col0 FROM tab2
----
3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1831
SELECT DISTINCT + 48 DIV col2 + + col2 * - col2 FROM tab1
----
-3481
-4624
-9216

skipif mysql # not compatible
query I rowsort label-1831
SELECT DISTINCT + 48 / col2 + + col2 * - col2 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1832
SELECT CAST( col2 AS SIGNED ) + - - col2 AS col1 FROM tab2
----
116
46
80

skipif mysql # not compatible
query I rowsort label-1832
SELECT CAST ( col2 AS INTEGER ) + - - col2 AS col1 FROM tab2
----
116
46
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 49 + - + col1 col1 FROM tab0
----
-32
28
48

onlyif mysql # aggregate syntax: 
query II rowsort label-1834
SELECT 38 AS col1, COUNT( ALL + - 18 ) FROM tab0
----
38
3

skipif mysql # not compatible
query II rowsort label-1834
SELECT 38 AS col1, COUNT ( ALL + - 18 ) FROM tab0
----
38
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1835
SELECT DISTINCT 61 DIV - COUNT( * ) + - COUNT( * ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-1835
SELECT DISTINCT 61 / - COUNT ( * ) + - COUNT ( * ) FROM tab2
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-1836
SELECT - 37 DIV col2 * 73 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1836
SELECT - 37 / col2 * 73 FROM tab1
----
0
0
0

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

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

query I rowsort
SELECT ALL - col2 * + 27 * + 36 + - + col0 AS col1 FROM tab1 WHERE - col1 > 8
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1839
SELECT DISTINCT 3 DIV + col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1839
SELECT DISTINCT 3 / + col0 FROM tab1
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1842
SELECT 35 AS col2, MAX( DISTINCT - - col1 ) AS col0 FROM tab0 AS cor0
----
35
81

skipif mysql # not compatible
query II rowsort label-1842
SELECT 35 AS col2, MAX ( DISTINCT - - col1 ) AS col0 FROM tab0 AS cor0
----
35
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1843
SELECT ALL + 83 DIV - - COUNT( - col0 ) AS col2 FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-1843
SELECT ALL + 83 / - - COUNT ( - col0 ) AS col2 FROM tab2 AS cor0
----
27

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

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE NOT 48 * - col2 IS NULL
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1846
SELECT - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1846
SELECT - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1847
SELECT ALL + ( - + COUNT( * ) ) FROM tab0 WHERE NOT NULL > col2
----
0

skipif mysql # not compatible
query I rowsort label-1847
SELECT ALL + ( - + COUNT ( * ) ) FROM tab0 WHERE NOT NULL > col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT - COUNT( * ) * 44 AS col2 FROM tab0
----
-132

skipif mysql # not compatible
query I rowsort label-1848
SELECT - COUNT ( * ) * 44 AS col2 FROM tab0
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT MIN( + 61 ) AS col0 FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-1849
SELECT MIN ( + 61 ) AS col0 FROM tab0
----
61

query II rowsort
SELECT col1, col2 * - col0 FROM tab2
----
51
-1058
67
-4350
77
-2560

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1852
SELECT ALL 7 + - COUNT( * ) FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-1852
SELECT ALL 7 + - COUNT ( * ) FROM tab2
----
4

query II rowsort
SELECT DISTINCT - 40 AS col1, 50 AS col1 FROM tab0
----
-40
50

query I rowsort
SELECT DISTINCT + col1 * + - col1 * - + 87 FROM tab0 cor0
----
38367
570807
87

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

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

query I rowsort
SELECT - ( 80 ) FROM tab0 AS cor0
----
-80
-80
-80

query II rowsort
SELECT DISTINCT + + ( + 29 ) + + + col1 AS col1, 58 AS col2 FROM tab2 AS cor0
----
106
58
80
58
96
58

query I rowsort
SELECT - col2 * - 13 AS col1 FROM tab1
----
1248
767
884

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT 8 + COUNT( * ) col0 FROM tab0
----
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1860
SELECT 8 + COUNT ( * ) col0 FROM tab0
----
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 24 col1 FROM tab2
----
1104
1536
1800

query I rowsort
SELECT ALL col1 * + 95 AS col2 FROM tab1 WHERE ( 12 * + col1 ) > ( 93 )
----
1330
4465

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1863
SELECT ALL * FROM tab1 WHERE ( 87 ) <> 78 * + CAST( 92 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1863
SELECT ALL * FROM tab1 WHERE ( 87 ) <> 78 * + CAST ( 92 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT DISTINCT 63 + + ( col0 + 31 ) * + col2 AS col2 FROM tab1
----
6907
7935
8359

query I rowsort
SELECT - ( 29 ) * col1 AS col0 FROM tab0
----
-2349
-29
-609

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT + 8 * COUNT( * ) AS col0 FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-1868
SELECT + 8 * COUNT ( * ) AS col0 FROM tab1
----
24

query I rowsort
SELECT ALL col1 * + col2 + col2 AS col0 FROM tab1
----
1440
3264
354

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 2 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 - - col1 < NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1872
SELECT + COUNT ( * ) - - COUNT ( + 15 + col2 * col0 ) col1 FROM tab0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-1873
SELECT col0 DIV + 60 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1873
SELECT col0 / + 60 FROM tab2
----
0
1
1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1874
SELECT * FROM tab2 WHERE NOT ( col1 * 44 + CAST( NULL AS DECIMAL ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1874
SELECT * FROM tab2 WHERE NOT ( col1 * 44 + CAST ( NULL AS REAL ) ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1875
SELECT ALL + col1 + - 59 DIV + col1 FROM tab0
----
-58
19
81

skipif mysql # not compatible
query I rowsort label-1875
SELECT ALL + col1 + - 59 / + col1 FROM tab0
----
-58
19
81

query III rowsort
SELECT * FROM tab1 WHERE col2 * 61 BETWEEN 79 AND - col0 + col1
----

query I rowsort
SELECT DISTINCT - 98 * - col2 FROM tab1 WHERE ( col0 ) IS NULL
----

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 + 82 ) = ( + ( ( col2 ) ) ) + 52 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + 55 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT + 81 - - COUNT( * ) AS col1 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-1882
SELECT + 81 - - COUNT ( * ) AS col1 FROM tab1
----
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-51
-67
-77

query I rowsort
SELECT - 61 * col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL < ( 13 + - 74 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT DISTINCT 86 * COUNT( * ) FROM tab2 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-1886
SELECT DISTINCT 86 * COUNT ( * ) FROM tab2 AS cor0
----
258

query I rowsort
SELECT DISTINCT + col1 * + 37 FROM tab1 AS cor0
----
1739
185
518

onlyif mysql # DIV for integer division: 
query I rowsort label-1888
SELECT ALL 31 DIV col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1888
SELECT ALL 31 / col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE NOT col2 IN ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1890
SELECT ALL - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) / - 70 col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1890
SELECT ALL - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) / - 70 col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 93 ) NOT IN ( 82 * + col1 )
----

query I rowsort
SELECT - 89 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - ( 74 ) FROM tab0 AS cor0
----
-74
-74
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1894
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 cor0 WHERE NOT + col2 * - col1 NOT IN ( - 71 )
----
0

skipif mysql # not compatible
query I rowsort label-1894
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 cor0 WHERE NOT + col2 * - col1 NOT IN ( - 71 )
----
0

query I rowsort
SELECT ALL + 38 + + col0 FROM tab0 AS cor0
----
125
135
53

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col0 + - col1 * + 14 BETWEEN NULL AND ( 42 - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT ALL - 7 * MAX( - ( - col0 ) ) + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-682

skipif mysql # not compatible
query I rowsort label-1897
SELECT ALL - 7 * MAX ( - ( - col0 ) ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-682

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE ( - col0 ) IN ( col2 + + 95 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT DISTINCT - 79 + - 26 + COUNT( * ) * COUNT( * ) AS col1 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-1899
SELECT DISTINCT - 79 + - 26 + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1
----
-96

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

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT col0 < 61
----
67
77

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 + + 73 col1 FROM tab2
----
2419
5001
5098

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1905
SELECT DISTINCT - 65 + COUNT( * ) * - 71 FROM tab1 AS cor0 WHERE NOT NULL >= col1
----
-65

skipif mysql # not compatible
query I rowsort label-1905
SELECT DISTINCT - 65 + COUNT ( * ) * - 71 FROM tab1 AS cor0 WHERE NOT NULL >= col1
----
-65

query I rowsort
SELECT + - col1 * + 67 + - col1 FROM tab0 AS cor0
----
-1428
-5508
-68

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

query I rowsort
SELECT - 30 + + - col0 FROM tab2 AS cor0
----
-105
-76
-94

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 46 + - col1 ) > col1
----
87
21
10
97
1
99

query I rowsort
SELECT + - 35 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1911
SELECT DISTINCT * FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT ( NULL ) >= CAST( 40 AS SIGNED ) + + 65
----

skipif mysql # not compatible
query IIIIII rowsort label-1911
SELECT DISTINCT * FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT ( NULL ) >= CAST ( 40 AS INTEGER ) + + 65
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1912
SELECT + 49 DIV - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-5

skipif mysql # not compatible
query I rowsort label-1912
SELECT + 49 / - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT DISTINCT - + COUNT( * ) + - 39 * 93 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-3636

skipif mysql # not compatible
query I rowsort label-1914
SELECT DISTINCT - + COUNT ( * ) + - 39 * 93 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-3636

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

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

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

query I rowsort
SELECT + 45 FROM tab0 AS cor0 WHERE 78 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT 3 * - - COUNT( col2 ) + - 49 * - 8 AS col0 FROM tab1 AS cor0
----
401

skipif mysql # not compatible
query I rowsort label-1918
SELECT 3 * - - COUNT ( col2 ) + - 49 * - 8 AS col0 FROM tab1 AS cor0
----
401

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

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

query I rowsort
SELECT 45 + col1 FROM tab1 AS cor0
----
50
59
92

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT - + COUNT( * ) * 5 + + COUNT( * ) FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-1922
SELECT - + COUNT ( * ) * 5 + + COUNT ( * ) FROM tab1 AS cor0
----
-12

query I rowsort
SELECT DISTINCT + + 81 - + col2 * + 73 * - col2 + col0 * col0 AS col1 FROM tab1 AS cor0
----
261419
345914
675450

onlyif mysql # aggregate syntax: 
query I rowsort label-1924
SELECT MAX( + 93 ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) = + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1924
SELECT MAX ( + 93 ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) = + col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1925
SELECT + col2 + + col2 DIV - + 50 AS col2 FROM tab2 AS cor0
----
23
40
57

skipif mysql # not compatible
query I rowsort label-1925
SELECT + col2 + + col2 / - + 50 AS col2 FROM tab2 AS cor0
----
23
40
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + + col0 col0 FROM tab1 AS cor0
----
425
4277
714

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1929
SELECT DISTINCT - 46 * + MIN( ALL col2 ) FROM tab1
----
-2714

skipif mysql # not compatible
query I rowsort label-1929
SELECT DISTINCT - 46 * + MIN ( ALL col2 ) FROM tab1
----
-2714

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

skipif mysql # not compatible
query I rowsort label-1930
SELECT ALL COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN - 52 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1932
SELECT + col2 + + col1 FROM tab1 WHERE NOT col1 + CAST( + ( - CAST( NULL AS SIGNED ) ) AS SIGNED ) + - ( 85 + + 87 ) IS NOT NULL
----
110
115
64

skipif mysql # not compatible
query I rowsort label-1932
SELECT + col2 + + col1 FROM tab1 WHERE NOT col1 + CAST ( + ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) + - ( 85 + + 87 ) IS NOT NULL
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT DISTINCT 28 * - - COUNT( * ) AS col0 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-1933
SELECT DISTINCT 28 * - - COUNT ( * ) AS col0 FROM tab0
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-1934
SELECT ALL + 19 DIV + 22 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1934
SELECT ALL + 19 / + 22 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE 71 IN ( + - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab0 AS cor0 WHERE NOT NULL = col2
----

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

skipif mysql # not compatible
query I rowsort label-1937
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) * - - CAST ( + 76 AS INTEGER ) FROM tab1 AS cor0
----
684

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1939
SELECT DISTINCT col0 DIV 68 FROM tab0 AS cor0 WHERE NOT ( NOT - - 33 NOT BETWEEN + col1 * col1 - CAST( NULL AS SIGNED ) AND - CAST( 27 AS SIGNED ) )
----
0
1

skipif mysql # not compatible
query I rowsort label-1939
SELECT DISTINCT col0 / 68 FROM tab0 AS cor0 WHERE NOT ( NOT - - 33 NOT BETWEEN + col1 * col1 - CAST ( NULL AS INTEGER ) AND - CAST ( 27 AS INTEGER ) )
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1940
SELECT ALL + SUM( - 35 ) AS col2 FROM tab0
----
-105

skipif mysql # not compatible
query I rowsort label-1940
SELECT ALL + SUM ( - 35 ) AS col2 FROM tab0
----
-105

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1942
SELECT ALL - col0 DIV - 15 + - col1 FROM tab1
----
-11
-41
0

skipif mysql # not compatible
query I rowsort label-1942
SELECT ALL - col0 / - 15 + - col1 FROM tab1
----
-11
-41
0

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

query I rowsort
SELECT DISTINCT + 29 * + col2 AS col0 FROM tab1 AS cor0
----
1711
1972
2784

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT ALL - SUM( DISTINCT col1 ) - - 37 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1945
SELECT ALL - SUM ( DISTINCT col1 ) - - 37 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) <> NULL
----
NULL

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

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( 21 / col2 ) AND - col0 + - + col1
----

query I rowsort
SELECT ALL + 53 - - col2 AS col1 FROM tab2 AS cor0 WHERE NULL IN ( - 77, - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1950
SELECT ALL - MAX( ALL + + ( + col0 ) ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-1950
SELECT ALL - MAX ( ALL + + ( + col0 ) ) FROM tab2 AS cor0
----
-75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT ALL + 16 * COUNT( * ) col1 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1953
SELECT ALL + 16 * COUNT ( * ) col1 FROM tab1 AS cor0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1954
SELECT + CAST( + col0 AS SIGNED ) * + + col0 AS col0 FROM tab2
----
2116
4096
5625

skipif mysql # not compatible
query I rowsort label-1954
SELECT + CAST ( + col0 AS INTEGER ) * + + col0 AS col0 FROM tab2
----
2116
4096
5625

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

query I rowsort
SELECT DISTINCT col0 + 98 FROM tab2
----
144
162
173

query I rowsort
SELECT ALL - col0 + + - 53 * - + col2 FROM tab1
----
3042
3513
5037

onlyif mysql # aggregate syntax: 
query II rowsort label-1958
SELECT - COUNT( - 9 ) * SUM( DISTINCT + - col0 ), 25 AS col2 FROM tab1
----
681
25

skipif mysql # not compatible
query II rowsort label-1958
SELECT - COUNT ( - 9 ) * SUM ( DISTINCT + - col0 ), 25 AS col2 FROM tab1
----
681
25

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

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

query I rowsort
SELECT ALL + 4 + - col2 + + + 97 * - col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-4966
-6553
-7505

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

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

query I rowsort
SELECT col1 + - col0 - - - col2 AS col2 FROM tab1 AS cor0
----
-112
-133
-139

query II rowsort
SELECT ALL 33 + 77 AS col1, + col2 + ( + col2 ) * col0 FROM tab1
----
110
4992
110
5074
110
6256

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 33 <= 91
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # DIV for integer division: 
query II rowsort label-1965
SELECT DISTINCT - col0 * - col0 AS col2, + col1 DIV - col2 FROM tab0 WHERE 76 IS NOT NULL
----
225
-1
7569
-2
9409
0

skipif mysql # not compatible
query II rowsort label-1965
SELECT DISTINCT - col0 * - col0 AS col2, + col1 / - col2 FROM tab0 WHERE 76 IS NOT NULL
----
225
-1
7569
-2
9409
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1966
SELECT ALL + SUM( 7 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
63

skipif mysql # not compatible
query I rowsort label-1966
SELECT ALL + SUM ( 7 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
63

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 <> - + 12
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
query I rowsort label-1968
SELECT ALL + COUNT ( + 86 ) AS col2 FROM tab1 cor0
----
3

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

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

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

query I rowsort
SELECT - col0 * ( + col2 ) AS col0 FROM tab2
----
-1058
-2560
-4350

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1973
SELECT + COUNT( * ) AS col1 FROM tab0 WHERE NOT + col0 / - + col0 + col1 * + col0 <> - col2
----
0

skipif mysql # not compatible
query I rowsort label-1973
SELECT + COUNT ( * ) AS col1 FROM tab0 WHERE NOT + col0 / - + col0 + col1 * + col0 <> - col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1974
SELECT DISTINCT MAX( ALL - - col1 ), SUM( col2 ) * 5 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1974
SELECT DISTINCT MAX ( ALL - - col1 ), SUM ( col2 ) * 5 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
NULL
NULL

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

query I rowsort
SELECT DISTINCT ( - 82 ) FROM tab1
----
-82

query I rowsort
SELECT ALL - - AVG ( DISTINCT - - 54 ) AS col2 FROM tab2 AS cor0 WHERE + col2 IS NULL
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-1979
SELECT + 35 / col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 49 * - col0 AS col0 FROM tab1 AS cor0
----
-2499
-4165
-4459

onlyif mysql # aggregate syntax: 
query I rowsort label-1981
SELECT ALL COUNT( * ) + + - ( 16 ) AS col0 FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-1981
SELECT ALL COUNT ( * ) + + - ( 16 ) AS col0 FROM tab0 AS cor0
----
-13

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

skipif mysql # not compatible
query I rowsort label-1982
SELECT DISTINCT - COUNT ( * ) + ( + 33 ) AS col0 FROM tab2 AS cor0
----
30

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 cor0 WHERE NOT ( 78 * 21 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1984
SELECT DISTINCT - 19 + + 64 AS col2, COUNT( * ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
45
9

skipif mysql # not compatible
query II rowsort label-1984
SELECT DISTINCT - 19 + + 64 AS col2, COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
45
9

query I rowsort
SELECT ALL col0 * - - 51 FROM tab0 AS cor0
----
4437
4947
765

onlyif mysql # aggregate syntax: 
query II rowsort label-1986
SELECT + - 29 + - - 62 AS col2, COUNT( * ) AS col2 FROM tab2 AS cor0
----
33
3

skipif mysql # not compatible
query II rowsort label-1986
SELECT + - 29 + - - 62 AS col2, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
33
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT ALL - COUNT( * ) + - 70 AS col2 FROM tab1
----
-73

skipif mysql # not compatible
query I rowsort label-1987
SELECT ALL - COUNT ( * ) + - 70 AS col2 FROM tab1
----
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col0 col2 FROM tab0
----
-66
66
96

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1990
SELECT + + col2 AS col0 FROM tab2 WHERE + col2 * - + 13 * + + 80 = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1990
SELECT + + col2 AS col0 FROM tab2 WHERE + col2 * - + 13 * + + 80 = - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - 47 AS col2 FROM tab0 WHERE - col0 NOT BETWEEN - col1 AND - col0 - col1
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT - + SUM( + 78 ) col0 FROM tab2 AS cor0
----
-234

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1992
SELECT - + SUM ( + 78 ) col0 FROM tab2 AS cor0
----
-234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 85 + + col0 col0 FROM tab0 AS cor0
----
100
172
182

query I rowsort
SELECT DISTINCT 20 FROM tab0 AS cor0 WHERE NOT NULL > 69
----

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

skipif mysql # not compatible
query I rowsort label-1995
SELECT + 49 * - - CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab1
----
-147

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1997
SELECT + 35 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN - CAST( + - col2 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-1997
SELECT + 35 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN - CAST ( + - col2 AS INTEGER ) AND NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-1999
SELECT ALL COUNT ( * ) / - 27 FROM tab0 AS cor0
----
0

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2001
SELECT + col0, + CAST ( NULL AS REAL ) col2 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-2002
SELECT + + COUNT( * ), + COUNT( * ), ( + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
3
3
3

skipif mysql # not compatible
query III rowsort label-2002
SELECT + + COUNT ( * ), + COUNT ( * ), ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2003
SELECT - 53 * - MIN( + col2 ) AS col2 FROM tab1 AS cor0
----
3127

skipif mysql # not compatible
query I rowsort label-2003
SELECT - 53 * - MIN ( + col2 ) AS col2 FROM tab1 AS cor0
----
3127

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2006
SELECT * FROM tab1 WHERE NOT col2 * 42 + - + col1 * CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2006
SELECT * FROM tab1 WHERE NOT col2 * 42 + - + col1 * CAST ( NULL AS INTEGER ) IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-2007
SELECT ALL - MAX ( DISTINCT - col0 ) AS col0 FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2008
SELECT ALL - - COUNT( * ) col2 FROM tab2 WHERE NOT ( ( NULL ) IS NOT NULL )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2008
SELECT ALL - - COUNT ( * ) col2 FROM tab2 WHERE NOT ( ( NULL ) IS NOT NULL )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2009
SELECT - CAST( - 57 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
57
57
57

skipif mysql # not compatible
query I rowsort label-2009
SELECT - CAST ( - 57 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
57
57
57

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2010
SELECT * FROM tab0 cor0 WHERE NOT ( col1 ) NOT IN ( - 94, - CAST( - col0 AS SIGNED ), col0 * + 75 )
----

skipif mysql # not compatible
query III rowsort label-2010
SELECT * FROM tab0 cor0 WHERE NOT ( col1 ) NOT IN ( - 94, - CAST ( - col0 AS INTEGER ), col0 * + 75 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 61 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query I rowsort
SELECT DISTINCT - - col1 * + col1 * - col0 AS col0 FROM tab0 AS cor0
----
-38367
-97
-98415

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * col1 * + + 35 * - 83 / - + col2 col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT 17 * + 49 FROM tab2 AS cor0
----
833

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2015
SELECT CAST( + col1 AS SIGNED ) FROM tab1 AS cor0 WHERE ( + col0 IS NULL )
----

skipif mysql # not compatible
query I rowsort label-2015
SELECT CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0 WHERE ( + col0 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2016
SELECT ALL + + CAST( - - col0 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( 66 ) AND col0
----

skipif mysql # not compatible
query I rowsort label-2016
SELECT ALL + + CAST ( - - col0 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( 66 ) AND col0
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2017
SELECT DISTINCT + 15, CAST( NULL AS DECIMAL ) - + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
15
NULL

skipif mysql # not compatible
query II rowsort label-2017
SELECT DISTINCT + 15, CAST ( NULL AS REAL ) - + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
15
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2018
SELECT + 2 DIV + ( - col1 ) AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2018
SELECT + 2 / + ( - col1 ) AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + 57 + ( - - ( col1 ) ) AS col1 FROM tab2 AS cor0
----
108
124
134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2020
SELECT ALL - CAST( NULL AS SIGNED ) + + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2020
SELECT ALL - CAST ( NULL AS INTEGER ) + + col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 55 + - col1 * - 5 FROM tab1
----
125
290
80

query II rowsort
SELECT DISTINCT - 35 - col0 AS col0, - col0 + + col1 FROM tab0
----
-122
-66
-132
-96
-50
66

query II rowsort
SELECT ( 28 ), + ( - + col2 ) AS col1 FROM tab1
----
28
-59
28
-68
28
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2024
SELECT ALL + COUNT( * ) - - COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-2024
SELECT ALL + COUNT ( * ) - - COUNT ( * ) FROM tab2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-2025
SELECT ALL col1 DIV + 66 - 93 DIV 15 + + - col0 AS col2 FROM tab2
----
-52
-69
-80

skipif mysql # not compatible
query I rowsort label-2025
SELECT ALL col1 / + 66 - 93 / 15 + + - col0 AS col2 FROM tab2
----
-52
-69
-80

query I rowsort
SELECT ALL + 63 * - col1 - - col0 FROM tab1 AS cor0
----
-230
-2870
-831

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2027
SELECT - col1 * + 92 - 82 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2027
SELECT - col1 * + 92 - 82 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NULL IN ( col1 * - - col0, + col0, + + 80, + + col0 * col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2028
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IN ( col1 * - - col0, + col0, + + 80, + + col0 * col2 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NULL ) NOT IN ( - 44 )
----

query I rowsort
SELECT ( 27 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2031
SELECT DISTINCT 88 + - 4 DIV 59 DIV + - COUNT( * ) * + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
88

skipif mysql # not compatible
query I rowsort label-2031
SELECT DISTINCT 88 + - 4 / 59 / + - COUNT ( * ) * + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-2032
SELECT ALL - + col2 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-2032
SELECT ALL - + col2 / - col1 col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + ( + 60 ) * - + col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2820
-5940
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT - + MIN( ALL col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-2034
SELECT - + MIN ( ALL col2 ) FROM tab1 AS cor0
----
-59

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 + + - 67 / - - col0 IS NOT NULL
----

query I rowsort
SELECT - - ( ( - 40 ) ) AS col2 FROM tab0 AS cor0
----
-40
-40
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2037
SELECT DISTINCT - col0 * - - ( + col0 ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2037
SELECT DISTINCT - col0 * - - ( + col0 ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 42 * + col0 IS NULL
----

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE NOT ( NULL ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2040
SELECT DISTINCT - col0 * + 14 AS col1, CAST( - + col1 AS SIGNED ) FROM tab1
----
-1190
-5
-1274
-47
-714
-14

skipif mysql # not compatible
query II rowsort label-2040
SELECT DISTINCT - col0 * + 14 AS col1, CAST ( - + col1 AS INTEGER ) FROM tab1
----
-1190
-5
-1274
-47
-714
-14

query I rowsort
SELECT ALL col0 * + - ( col0 ) FROM tab1
----
-2601
-7225
-8281

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( - 35 * + - col2 )
----

query I rowsort
SELECT DISTINCT 99 FROM tab0 WHERE NOT + - 51 * + 38 NOT IN ( - col2 )
----

query II rowsort
SELECT ALL + col1 AS col2, - col2 + + col2 AS col1 FROM tab2
----
51
0
67
0
77
0

query I rowsort
SELECT - 6 * col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - - ( 87 ) + - col0 FROM tab2 AS cor0
----
12
23
41

query I rowsort
SELECT ALL - ( col2 ) FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN - 49 AND + - 89 + - 0
----
-23
-40
-58

query II rowsort
SELECT ALL + col0, - col2 * + col2 * col0 FROM tab1 AS cor0
----
51
-470016
85
-295885
91
-420784

query II rowsort
SELECT col2 AS col0, - col1 - - col1 FROM tab0 AS cor0
----
10
0
47
0
99
0

query I rowsort
SELECT DISTINCT - col2 + + ( - col0 ) - - + col2 FROM tab0 AS cor0 WHERE - col0 * - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2051
SELECT + col1 * col0 + - 89 col1, CAST( 11 AS SIGNED ) AS col2 FROM tab1 WHERE - col0 NOT BETWEEN NULL AND + + 52
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2051
SELECT + col1 * col0 + - 89 col1, CAST ( 11 AS INTEGER ) AS col2 FROM tab1 WHERE - col0 NOT BETWEEN NULL AND + + 52
----

query I rowsort
SELECT DISTINCT 85 + + 25 * + + 56 + col0 FROM tab0
----
1500
1572
1582

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2053
SELECT DISTINCT CAST( - 76 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-2053
SELECT DISTINCT CAST ( - 76 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2054
SELECT + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col0, + COUNT( * ) + + 38 FROM tab1 AS cor0
----
NULL
41

skipif mysql # not compatible
query II rowsort label-2054
SELECT + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col0, + COUNT ( * ) + + 38 FROM tab1 AS cor0
----
NULL
41

onlyif mysql # DIV for integer division: 
query I rowsort label-2055
SELECT + col0 + + - col1 DIV col0 AS col1 FROM tab0 AS cor0
----
10
87
97

skipif mysql # not compatible
query I rowsort label-2055
SELECT + col0 + + - col1 / col0 AS col1 FROM tab0 AS cor0
----
10
87
97

query I rowsort
SELECT + col1 * + + col2 + - col0 FROM tab0 cor0 WHERE NULL NOT BETWEEN - 17 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2057
SELECT DISTINCT - COUNT( * ) + ( - 7 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-2057
SELECT DISTINCT - COUNT ( * ) + ( - 7 ) FROM tab0
----
-10

query I rowsort
SELECT col1 * + col2 + - col0 + + 6 AS col0 FROM tab0
----
129
3798
8

query I rowsort
SELECT DISTINCT col0 - + - col2 AS col1 FROM tab0
----
196
62
97

query I rowsort
SELECT ALL + 1 * - 65 * ( - col0 ) FROM tab2
----
2990
4160
4875

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT 28 * + - COUNT( * ) * + 19 * - COUNT( * ) FROM tab1
----
4788

skipif mysql # not compatible
query I rowsort label-2061
SELECT 28 * + - COUNT ( * ) * + 19 * - COUNT ( * ) FROM tab1
----
4788

query I rowsort
SELECT DISTINCT 14 * - col1 - col1 + + + col0 + - 61 FROM tab1 AS cor0 WHERE + 57 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - - col0 * + 17 col2 FROM tab1 AS cor0
----
105196
83232
85255

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 3 BETWEEN NULL AND - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2065
SELECT DISTINCT + 41 DIV + - col1 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2065
SELECT DISTINCT + 41 / + - col1 AS col0 FROM tab2
----
0

query I rowsort
SELECT ( + col0 ) * - ( + col2 ) * + 81 FROM tab2
----
-207360
-352350
-85698

onlyif mysql # DIV for integer division: 
query I rowsort label-2067
SELECT - 25 DIV col1 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2067
SELECT - 25 / col1 AS col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2068
SELECT DISTINCT + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NOT NULL BETWEEN - + 27 AND - - col1 - - 19
----

skipif mysql # not compatible
query I rowsort label-2068
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NOT NULL BETWEEN - + 27 AND - - col1 - - 19
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2069
SELECT 33 * + COUNT( * ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-2069
SELECT 33 * + COUNT ( * ) FROM tab0
----
99

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <> col2 - - + col1 + - 35 * + 36 OR NOT NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 23 * col1 AS col0 FROM tab1
----
-1081
-115
-322

query I rowsort
SELECT col0 * - + 11 AS col1 FROM tab1
----
-1001
-561
-935

onlyif mysql # DIV for integer division: 
query I rowsort label-2073
SELECT DISTINCT - col1 DIV - 83 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2073
SELECT DISTINCT - col1 / - 83 AS col0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( 71 )
----

query I rowsort
SELECT ALL - + 96 + col0 AS col2 FROM tab1 cor0
----
-11
-45
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT COUNT( * ) + 63 * - 10 FROM tab0
----
-627

skipif mysql # not compatible
query I rowsort label-2076
SELECT COUNT ( * ) + 63 * - 10 FROM tab0
----
-627

onlyif mysql # DIV for integer division: 
query I rowsort label-2077
SELECT DISTINCT + 0 DIV + col0 * - col2 col0 FROM tab1 WHERE NOT + col1 + - col1 + - col0 * - col1 * col2 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2077
SELECT DISTINCT + 0 / + col0 * - col2 col0 FROM tab1 WHERE NOT + col1 + - col1 + - col0 * - col1 * col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2078
SELECT 20 + + COUNT( * ) AS col0 FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-2078
SELECT 20 + + COUNT ( * ) AS col0 FROM tab1
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2079
SELECT * FROM tab1 cor0 WHERE CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-2079
SELECT * FROM tab1 cor0 WHERE CAST ( NULL AS INTEGER ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT DISTINCT + SUM( ALL - col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-2080
SELECT DISTINCT + SUM ( ALL - col2 ) FROM tab0 AS cor0
----
-156

query II rowsort
SELECT - 28, col0 + col1 AS col2 FROM tab2 cor0
----
-28
141
-28
142
-28
97

query II rowsort
SELECT ALL col2 AS col1, col1 AS col1 FROM tab0 cor0
----
10
21
47
81
99
1

query I rowsort
SELECT DISTINCT + + 72 AS col2 FROM tab2 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2084
SELECT - MAX( col0 ) AS col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2084
SELECT - MAX ( col0 ) AS col2 FROM tab2 AS cor0
----
-75

query III rowsort
SELECT * FROM tab1 WHERE NULL >= + col1 * + ( + 14 )
----

query I rowsort
SELECT - col0 * + ( 30 ) FROM tab1
----
-1530
-2550
-2730

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT - 28 - - COUNT( col1 ) FROM tab0
----
-25

skipif mysql # not compatible
query I rowsort label-2087
SELECT - 28 - - COUNT ( col1 ) FROM tab0
----
-25

query I rowsort
SELECT - col1 - - + 31 * 13 + col0 AS col1 FROM tab0
----
337
469
499

query II rowsort
SELECT DISTINCT - col1 + + col2 * 49 AS col2, ( + - col2 ) FROM tab1
----
2886
-59
3285
-68
4690
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT + - SUM( DISTINCT + col1 ) FROM tab0 WHERE + 47 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2090
SELECT + - SUM ( DISTINCT + col1 ) FROM tab0 WHERE + 47 IS NULL
----
NULL

query I rowsort
SELECT - col0 - + - col2 + col0 AS col1 FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2092
SELECT DISTINCT CAST( - - col0 AS SIGNED ) - 70 AS col2, col1 FROM tab2
----
-24
51
-6
77
5
67

skipif mysql # not compatible
query II rowsort label-2092
SELECT DISTINCT CAST ( - - col0 AS INTEGER ) - 70 AS col2, col1 FROM tab2
----
-24
51
-6
77
5
67

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) NOT IN ( 34 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT ALL - COUNT( + ( + 9 ) ) AS col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2094
SELECT ALL - COUNT ( + ( + 9 ) ) AS col0 FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT SUM( + col0 ) FROM tab1 WHERE NOT - - col2 IS NULL
----
227

skipif mysql # not compatible
query I rowsort label-2095
SELECT SUM ( + col0 ) FROM tab1 WHERE NOT - - col2 IS NULL
----
227

query I rowsort
SELECT ALL ( 89 ) AS col1 FROM tab2
----
89
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT DISTINCT 74 * - - MIN( col0 ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
3777

skipif mysql # not compatible
query I rowsort label-2097
SELECT DISTINCT 74 * - - MIN ( col0 ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3777

query II rowsort
SELECT col2, col2 + - col2 FROM tab1 AS cor0
----
59
0
68
0
96
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 33 AS col1, col1 col2 FROM tab2 AS cor0
----
-33
51
-33
67
-33
77

query II rowsort
SELECT ALL col0 * col0 * + col1 AS col2, - col2 AS col1 FROM tab2 AS cor0
----
107916
-23
315392
-40
376875
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT DISTINCT 7 + + + COUNT( * ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-2101
SELECT DISTINCT 7 + + + COUNT ( * ) FROM tab0
----
10

query I rowsort
SELECT - col2 * 23 + col0 FROM tab1
----
-1272
-1473
-2157

query I rowsort
SELECT + - 97 AS col2 FROM tab2 WHERE col2 IS NOT NULL
----
-97
-97
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 59 col0 FROM tab0 AS cor0
----
59

query I rowsort
SELECT ALL 72 * - - col2 * - col2 + - col1 + + col2 FROM tab1
----
-250578
-332907
-663470

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2106
SELECT DISTINCT - 49 DIV - 31 + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
10

skipif mysql # not compatible
query I rowsort label-2106
SELECT DISTINCT - 49 / - 31 + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
10

query I rowsort
SELECT + ( - 62 ) FROM tab2 cor0 WHERE NULL <= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT DISTINCT + MIN( + + 17 ) * + 63 * 96 * COUNT( * ) - + COUNT( * ) FROM tab1 AS cor0
----
308445

skipif mysql # not compatible
query I rowsort label-2108
SELECT DISTINCT + MIN ( + + 17 ) * + 63 * 96 * COUNT ( * ) - + COUNT ( * ) FROM tab1 AS cor0
----
308445

query I rowsort
SELECT DISTINCT + col2 * + - 9 / col0 FROM tab2 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN NULL AND NULL )
----

query I rowsort
SELECT + col0 + + + 80 FROM tab2 AS cor0
----
126
144
155

query I rowsort
SELECT - col1 + + - col1 FROM tab1 AS cor0
----
-10
-28
-94

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= col0 * - col1
----

query I rowsort
SELECT - 17 * ( 8 ) AS col2 FROM tab2 cor0 WHERE ( NULL NOT BETWEEN NULL AND NULL )
----

query II rowsort
SELECT ALL - col1, + 24 * + 11 * + 67 AS col2 FROM tab0 AS cor0
----
-1
17688
-21
17688
-81
17688

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 71 col1 FROM tab0
----
-1065
-6177
-6887

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2116
SELECT + 79 * - + CAST( NULL AS SIGNED ) * - - COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2116
SELECT + 79 * - + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col1 FROM tab0
----
NULL

query II rowsort
SELECT - 65 AS col0, + col1 AS col2 FROM tab0 AS cor0
----
-65
1
-65
21
-65
81

query II rowsort
SELECT DISTINCT 28 AS col2, 8 + - - col2 FROM tab1 AS cor0
----
28
104
28
67
28
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2119
SELECT DISTINCT - - SUM( - col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2119
SELECT DISTINCT - - SUM ( - col2 ) FROM tab2 AS cor0
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2120
SELECT ALL + CAST( - 84 AS SIGNED ) FROM tab1 cor0
----
-84
-84
-84

skipif mysql # not compatible
query I rowsort label-2120
SELECT ALL + CAST ( - 84 AS INTEGER ) FROM tab1 cor0
----
-84
-84
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT DISTINCT + COUNT( * ) + - 20 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-11

skipif mysql # not compatible
query I rowsort label-2121
SELECT DISTINCT + COUNT ( * ) + - 20 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-11

query II rowsort
SELECT DISTINCT - 73 AS col2, col0 * - + 45 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT + COUNT( * ) * + + 29 FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-2123
SELECT + COUNT ( * ) * + + 29 FROM tab1 AS cor0
----
87

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 77 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * + + 10 > NULL
----

query I rowsort
SELECT ALL + 64 + - 0 FROM tab1
----
64
64
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT + SUM( DISTINCT col0 ) AS col0 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-2127
SELECT + SUM ( DISTINCT col0 ) AS col0 FROM tab0
----
199

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 I rowsort
SELECT DISTINCT + 14 * - - 92 + - col0 + col2 AS col0 FROM tab0
----
1211
1290
1320

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT ALL + SUM( - 34 ) * 80 AS col0 FROM tab1
----
-8160

skipif mysql # not compatible
query I rowsort label-2130
SELECT ALL + SUM ( - 34 ) * 80 AS col0 FROM tab1
----
-8160

query I rowsort
SELECT DISTINCT + 69 * 47 AS col0 FROM tab1
----
3243

onlyif mysql # DIV for integer division: 
query I rowsort label-2132
SELECT ALL + col1 DIV - 47 col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2132
SELECT ALL + col1 / - 47 col2 FROM tab2 AS cor0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( ( NOT col1 IS NULL ) )
----

query I rowsort
SELECT ALL - + col1 + + col0 * col2 FROM tab2 cor0
----
1007
2483
4283

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT NULL < + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2136
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2136
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT ALL 35 + + + MAX( - - col2 ) FROM tab0
----
134

skipif mysql # not compatible
query I rowsort label-2137
SELECT ALL 35 + + + MAX ( - - col2 ) FROM tab0
----
134

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 * col1 = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2139
SELECT CAST( NULL AS DECIMAL ) 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-2139
SELECT CAST ( NULL AS REAL ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2140
SELECT - CAST( NULL AS DECIMAL ) * + 84 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2140
SELECT - CAST ( NULL AS REAL ) * + 84 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * col1 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT ALL - COUNT( ALL + - col0 ) - - MIN( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-2142
SELECT ALL - COUNT ( ALL + - col0 ) - - MIN ( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2143
SELECT ( COUNT( * ) ) col1 FROM tab2 AS cor0 WHERE 53 * 65 IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2143
SELECT ( COUNT ( * ) ) col1 FROM tab2 AS cor0 WHERE 53 * 65 IS NOT NULL
----
3

query II rowsort
SELECT + col2 - - - col0 AS col0, + col2 AS col0 FROM tab2 AS cor0
----
-17
58
-23
23
-24
40

query I rowsort
SELECT ALL - 53 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-53
-53
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT DISTINCT + SUM( ALL ( 25 ) ) FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-2146
SELECT DISTINCT + SUM ( ALL ( 25 ) ) FROM tab0 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT + ( + COUNT( * ) ) AS col1 FROM tab2 WHERE NOT + 93 NOT BETWEEN + col2 * + + col2 + col0 + 52 AND + 72
----
0

skipif mysql # not compatible
query I rowsort label-2147
SELECT + ( + COUNT ( * ) ) AS col1 FROM tab2 WHERE NOT + 93 NOT BETWEEN + col2 * + + col2 + col0 + 52 AND + 72
----
0

query I rowsort
SELECT ALL + 63 * - col1 AS col2 FROM tab2
----
-3213
-4221
-4851

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( 43 ) - - col1 NOT BETWEEN - col1 AND - col1 / + 3
----

query I rowsort
SELECT 96 * col0 * - ( - col0 ) FROM tab0
----
21600
726624
903264

query I rowsort
SELECT DISTINCT 16 FROM tab1 WHERE + ( + + col2 ) IN ( col2, ( - - col2 ) )
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2152
SELECT - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2152
SELECT - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - 13 * + + col2 AS col0 FROM tab1
----
-1248
-767
-884

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2154
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * col0 / + - CAST( NULL AS SIGNED ) >= - + ( ( - + 18 ) ) + + - col1
----

skipif mysql # not compatible
query III rowsort label-2154
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * col0 / + - CAST ( NULL AS INTEGER ) >= - + ( ( - + 18 ) ) + + - col1
----

query I rowsort
SELECT DISTINCT - + col0 / + + 71 FROM tab1 cor0 WHERE NOT ( NULL ) NOT IN ( col1, col0, - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT + MIN( DISTINCT col0 ) * + COUNT( * ) FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-2156
SELECT + MIN ( DISTINCT col0 ) * + COUNT ( * ) FROM tab0 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT + + COUNT( 81 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2157
SELECT + + COUNT ( 81 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2158
SELECT DISTINCT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + - 30 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2158
SELECT DISTINCT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + - 30 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2159
SELECT + + COUNT( * ) + - 39 AS col1 FROM tab1 cor0
----
-36

skipif mysql # not compatible
query I rowsort label-2159
SELECT + + COUNT ( * ) + - 39 AS col1 FROM tab1 cor0
----
-36

query III rowsort
SELECT * FROM tab2 WHERE - 55 <> - + 30 * + + 81
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 46 + + - col0 + 30 FROM tab0
----
-11
-21
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2162
SELECT + MIN( ALL - - CAST( - col1 AS SIGNED ) ) + 62 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-2162
SELECT + MIN ( ALL - - CAST ( - col1 AS INTEGER ) ) + 62 FROM tab1
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2163
SELECT ALL * FROM tab0 WHERE - 36 NOT BETWEEN CAST( + col2 AS SIGNED ) AND - col0 - - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2163
SELECT ALL * FROM tab0 WHERE - 36 NOT BETWEEN CAST ( + col2 AS INTEGER ) AND - col0 - - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE 95 * + - col2 * col0 * + col2 IS NOT NULL
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2165
SELECT DISTINCT - + col2 * + + 83 + + col0 DIV 10 FROM tab1 cor0
----
-4889
-5635
-7963

skipif mysql # not compatible
query I rowsort label-2165
SELECT DISTINCT - + col2 * + + 83 + + col0 / 10 FROM tab1 cor0
----
-4889
-5635
-7963

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN col2 AND - ( 50 ) / + 63
----

query II rowsort
SELECT - 99 AS col1, + col0 AS col1 FROM tab1 AS cor0
----
-99
51
-99
85
-99
91

query II rowsort
SELECT + - col1, col2 * + col0 AS col2 FROM tab1 AS cor0
----
-14
4896
-47
6188
-5
5015

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT DISTINCT + COUNT( ALL + 26 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2169
SELECT DISTINCT + COUNT ( ALL + 26 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL 86 * - - col1 AS col2 FROM tab1 AS cor0
----
1204
4042
430

onlyif mysql # aggregate syntax: 
query I rowsort label-2171
SELECT + MAX( ALL 38 ) AS col1 FROM tab1 cor0
----
38

skipif mysql # not compatible
query I rowsort label-2171
SELECT + MAX ( ALL 38 ) AS col1 FROM tab1 cor0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT ALL - MAX( DISTINCT col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-2172
SELECT ALL - MAX ( DISTINCT col0 ) FROM tab0 AS cor0
----
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 36 = + col0 + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + + 75 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 >= + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT DISTINCT - - COUNT( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2176
SELECT DISTINCT - - COUNT ( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2177
SELECT 16 * + + COUNT( * ) FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-2177
SELECT 16 * + + COUNT ( * ) FROM tab2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2178
SELECT MAX( + col0 ) * COUNT( * ) AS col1 FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-2178
SELECT MAX ( + col0 ) * COUNT ( * ) AS col1 FROM tab0
----
291

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 = - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 65 * 21 FROM tab0
----
1365
1365
1365

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( - col0 ) col2, col0 + - + col1 * col1 * - col1 col0 FROM tab0
----
-15
531456
-87
9348
-97
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2182
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 cor0 WHERE + col0 >= + - 66
----
3

skipif mysql # not compatible
query I rowsort label-2182
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 cor0 WHERE + col0 >= + - 66
----
3

query II rowsort
SELECT + ( col1 ), col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2184
SELECT ALL 66 * - 75 * - - COUNT( * ) FROM tab2 AS cor0
----
-14850

skipif mysql # not compatible
query I rowsort label-2184
SELECT ALL 66 * - 75 * - - COUNT ( * ) FROM tab2 AS cor0
----
-14850

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col2 + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - col2 + + 31 FROM tab1 AS cor0
----
127
90
99

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> col0 * - 25
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2188
SELECT SUM( DISTINCT + CAST( + 56 AS SIGNED ) ) + + COUNT( * ) col1 FROM tab1
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2188
SELECT SUM ( DISTINCT + CAST ( + 56 AS INTEGER ) ) + + COUNT ( * ) col1 FROM tab1
----
59

query I rowsort
SELECT col0 * + col2 + 76 AS col0 FROM tab1 AS cor0
----
4972
5091
6264

query I rowsort
SELECT ALL + + 77 AS col0 FROM tab2 AS cor0
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2191
SELECT ALL - COUNT( * ) * - 18 col1 FROM tab0 AS cor0
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2191
SELECT ALL - COUNT ( * ) * - 18 col1 FROM tab0 AS cor0
----
54

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + 41 + - 51 * + - col1 - + + col2 AS col1 FROM tab2 cor0
----
2537
3318
3846

query I rowsort
SELECT ALL + col0 * col0 + - + 8 FROM tab1
----
2593
7217
8273

query II rowsort
SELECT + 10, + col0 FROM tab2
----
10
46
10
64
10
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT ALL COUNT( * ) + COUNT( * ) + + - 53 AS col1 FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-2196
SELECT ALL COUNT ( * ) + COUNT ( * ) + + - 53 AS col1 FROM tab0
----
-47

query I rowsort
SELECT DISTINCT + col0 + 66 + 64 - col1 + 55 * - col2 + col1 FROM tab0
----
-2440
-333
-5218

onlyif mysql # DIV for integer division: 
query I rowsort label-2198
SELECT DISTINCT col1 DIV - - 85 - col1 AS col2 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2198
SELECT DISTINCT col1 / - - 85 - col1 AS col2 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-2199
SELECT 78, COUNT( * ) AS col0 FROM tab0
----
78
3

skipif mysql # not compatible
query II rowsort label-2199
SELECT 78, COUNT ( * ) AS col0 FROM tab0
----
78
3

onlyif mysql # DIV for integer division: 
query II rowsort label-2200
SELECT 63 - + 82 DIV col1 + col2, + col1 * col0 AS col0 FROM tab1
----
106
425
130
4277
154
714

skipif mysql # not compatible
query II rowsort label-2200
SELECT 63 - + 82 / col1 + col2, + col1 * col0 AS col0 FROM tab1
----
106
425
130
4277
154
714

query I rowsort
SELECT DISTINCT - 82 - - 81 AS col1 FROM tab0 cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2202
SELECT + - col0 * - CAST( NULL AS SIGNED ) * col0 + - + col1 + 24 * ( + 67 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2202
SELECT + - col0 * - CAST ( NULL AS INTEGER ) * col0 + - + col1 + 24 * ( + 67 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 91, col1 + + col2 col2 FROM tab1 AS cor0
----
91
110
91
115
91
64

query I rowsort
SELECT + 47 + - + 64 FROM tab1 AS cor0
----
-17
-17
-17

query III rowsort
SELECT * FROM tab1 WHERE + 81 / + col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT - COUNT( DISTINCT - - 30 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2206
SELECT - COUNT ( DISTINCT - - 30 ) FROM tab0
----
-1

query I rowsort
SELECT DISTINCT + - ( + 76 ) AS col0 FROM tab1 AS cor0
----
-76

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( - 9 * col2, col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2209
SELECT + CAST( - 38 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT col2 > - + col0
----

skipif mysql # not compatible
query I rowsort label-2209
SELECT + CAST ( - 38 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT col2 > - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2210
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col1 >= - col2
----
2

skipif mysql # not compatible
query I rowsort label-2210
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col1 >= - col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT + COUNT( * ) * - - ( + + COUNT( + col0 ) ) AS col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2211
SELECT + COUNT ( * ) * - - ( + + COUNT ( + col0 ) ) AS col1 FROM tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT 82 * - 3 FROM tab0
----
-246

query III rowsort
SELECT ALL * FROM tab0 WHERE 61 > - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 27 * - col2 AS col1 FROM tab2
----
1080
1566
621

onlyif mysql # DIV for integer division: 
query I rowsort label-2215
SELECT ALL + 82 DIV col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2215
SELECT ALL + 82 / col0 FROM tab1
----
0
0
1

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 <= col0
----
75
67
58

query I rowsort
SELECT DISTINCT 87 * + col0 - + 66 AS col2 FROM tab2 AS cor0 WHERE col1 >= - + col0
----
3936
5502
6459

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 35 col1 FROM tab2 AS cor0
----
-35
-35
-35

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2219
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( + + 47 AS DECIMAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2219
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( + + 47 AS REAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2220
SELECT + 5 + 88 DIV - col0 + 36 DIV - col1 FROM tab0 AS cor0
----
-31
0
3

skipif mysql # not compatible
query I rowsort label-2220
SELECT + 5 + 88 / - col0 + 36 / - col1 FROM tab0 AS cor0
----
-31
0
3

query I rowsort
SELECT + - 49 + - - 84 FROM tab1 AS cor0
----
35
35
35

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2222
SELECT + 52 * CAST( NULL AS DECIMAL ) + + - 29 AS col2, + SUM( ALL - - 16 ) FROM tab2 cor0
----
NULL
48

skipif mysql # not compatible
query II rowsort label-2222
SELECT + 52 * CAST ( NULL AS REAL ) + + - 29 AS col2, + SUM ( ALL - - 16 ) FROM tab2 cor0
----
NULL
48

query I rowsort
SELECT DISTINCT + col0 * + - 24 FROM tab2 AS cor0
----
-1104
-1536
-1800

onlyif mysql # DIV for integer division: 
query I rowsort label-2224
SELECT DISTINCT col1 * - + col1 DIV col1 + - - col0 + - + 30 AS col0 FROM tab2
----
-22
-35
-43

skipif mysql # not compatible
query I rowsort label-2224
SELECT DISTINCT col1 * - + col1 / col1 + - - col0 + - + 30 AS col0 FROM tab2
----
-22
-35
-43

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL NOT BETWEEN + 6 AND NULL
----

query I rowsort
SELECT ALL - col2 * 77 * - col0 * - + col0 FROM tab2 AS cor0
----
-12615680
-25121250
-3747436

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2227
SELECT * FROM tab2 AS cor0 WHERE CAST( - col1 AS SIGNED ) > + 92
----

skipif mysql # not compatible
query III rowsort label-2227
SELECT * FROM tab2 AS cor0 WHERE CAST ( - col1 AS INTEGER ) > + 92
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2228
SELECT ALL - COUNT( * ) * - + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2228
SELECT ALL - COUNT ( * ) * - + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + col1 + - 10 + col2 FROM tab1 AS cor0
----
11
44
72

query I rowsort
SELECT + col2 + + + col2 - + - col1 * - col0 FROM tab0 AS cor0
----
-1121
-1807
101

query I rowsort
SELECT ALL + 5 * - col2 + col0 AS col2 FROM tab1 AS cor0
----
-210
-249
-429

query I rowsort
SELECT - ( - - 8 ) + + col1 AS col0 FROM tab1 AS cor0
----
-3
39
6

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 78 * col1 - - col1 >= col1
----

query II rowsort
SELECT + col2 + + - col2, 6 AS col1 FROM tab0 AS cor0
----
0
6
0
6
0
6

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND 17
----

query I rowsort
SELECT ALL + ( - 13 ) + - col2 FROM tab1
----
-109
-72
-81

query II rowsort
SELECT ALL 75 * - col2 + - 34 AS col1, - col0 FROM tab1
----
-4459
-85
-5134
-91
-7234
-51

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN NULL AND - ( + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2239
SELECT ALL col0 + + col2 DIV + - col0 AS col1 FROM tab1
----
50
85
91

skipif mysql # not compatible
query I rowsort label-2239
SELECT ALL col0 + + col2 / + - col0 AS col1 FROM tab1
----
50
85
91

query I rowsort
SELECT DISTINCT - col2 + - 74 * - col2 AS col0 FROM tab0
----
3431
7227
730

query I rowsort
SELECT DISTINCT 7 * - col0 FROM tab2
----
-322
-448
-525

query I rowsort
SELECT DISTINCT 73 - - col1 AS col2 FROM tab2
----
124
140
150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 * + - col0 * - col2 * + - col0 col2 FROM tab2 AS cor0
----
-19901250
-2968748
-9994240

query I rowsort
SELECT - 4 * - col0 AS col0 FROM tab0 AS cor0
----
348
388
60

query II rowsort
SELECT DISTINCT - + 67 + + col1 * + - col1 * + col1 * + col2, - col2 + - col1 AS col2 FROM tab1 AS cor0
----
-263491
-110
-7060031
-115
-7442
-64

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 * 74 AS col0 FROM tab0
----
1554
5994
74

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 - - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2249
SELECT - COUNT( * ) * - 57 AS col0, 69 col1 FROM tab0
----
171
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2249
SELECT - COUNT ( * ) * - 57 AS col0, 69 col1 FROM tab0
----
171
69

query II rowsort
SELECT col1 AS col0, + ( - 37 ) * ( - - col1 ) FROM tab2
----
51
-1887
67
-2479
77
-2849

query I rowsort
SELECT - ( + + col0 ) AS col2 FROM tab1
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-2252
SELECT - 74 DIV col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2252
SELECT - 74 / col0 FROM tab1 AS cor0
----
-1
0
0

query II rowsort
SELECT + col2, - col1 AS col1 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT + ( - + ( + - COUNT( * ) ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2254
SELECT + ( - + ( + - COUNT ( * ) ) ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - + 46 * + ( + - 73 ) AS col2 FROM tab2 cor0
----
3358
3358
3358

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 33 * col0 >= + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT + COUNT( DISTINCT - + col1 ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2257
SELECT + COUNT ( DISTINCT - + col1 ) col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT DISTINCT + MAX( + col1 ) * - 82 AS col2 FROM tab0 AS cor0
----
-6642

skipif mysql # not compatible
query I rowsort label-2258
SELECT DISTINCT + MAX ( + col1 ) * - 82 AS col2 FROM tab0 AS cor0
----
-6642

query I rowsort
SELECT ALL + ( - col0 ) * + 69 AS col2 FROM tab2 cor0
----
-3174
-4416
-5175

query I rowsort
SELECT DISTINCT col2 * col1 * 59 AS col2 FROM tab1 AS cor0
----
17405
188564
79296

query I rowsort
SELECT DISTINCT - 93 / + - 92 AS col0 FROM tab2 WHERE col1 = NULL
----

query I rowsort
SELECT DISTINCT 79 * - col2 FROM tab1
----
-4661
-5372
-7584

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2263
SELECT - CAST( NULL AS DECIMAL ) * 45 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2263
SELECT - CAST ( NULL AS REAL ) * 45 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2264
SELECT + col1 * - CAST( NULL AS DECIMAL ) * + - ( ( + 70 ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2264
SELECT + col1 * - CAST ( NULL AS REAL ) * + - ( ( + 70 ) ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 25 * + col2 FROM tab1
----
-1475
-1700
-2400

query I rowsort
SELECT - 70 FROM tab2 AS cor0 WHERE NOT - 10 - col2 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 65 + col2 + + - 73 col2 FROM tab0
----
2
39
91

query I rowsort
SELECT ALL - 37 * - + col0 AS col0 FROM tab0 cor0
----
3219
3589
555

query I rowsort
SELECT - 46 * + - 18 FROM tab1 cor0
----
828
828
828

query I rowsort
SELECT ALL + col2 * - - 28 FROM tab1 AS cor0
----
1652
1904
2688

query I rowsort
SELECT DISTINCT col0 * + - col0 FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2272
SELECT ALL + + CAST( ( col1 ) AS SIGNED ) + + col0 AS col0, col0 AS col0 FROM tab2 AS cor0
----
141
64
142
75
97
46

skipif mysql # not compatible
query II rowsort label-2272
SELECT ALL + + CAST ( ( col1 ) AS INTEGER ) + + col0 AS col0, col0 AS col0 FROM tab2 AS cor0
----
141
64
142
75
97
46

onlyif mysql # DIV for integer division: 
query I rowsort label-2273
SELECT DISTINCT - - col2 DIV 81 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2273
SELECT DISTINCT - - col2 / 81 FROM tab2 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2274
SELECT ALL + 28 DIV - col1 * + col0 - - col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2274
SELECT ALL + 28 / - col1 * + col0 - - col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2275
SELECT + + col1 * - - col0 AS col2 FROM tab1 AS cor0 WHERE - col1 * col1 * - CAST( + col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2275
SELECT + + col1 * - - col0 AS col2 FROM tab1 AS cor0 WHERE - col1 * col1 * - CAST ( + col1 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2276
SELECT + COUNT( * ), - 49 AS col0 FROM tab1 cor0
----
3
-49

skipif mysql # not compatible
query II rowsort label-2276
SELECT + COUNT ( * ), - 49 AS col0 FROM tab1 cor0
----
3
-49

query II rowsort
SELECT ALL col0 AS col2, + col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2278
SELECT + col2 * - + col1 - - 92 + - ( + + CAST( - + col0 AS SIGNED ) ) FROM tab0
----
-31
-3700
90

skipif mysql # not compatible
query I rowsort label-2278
SELECT + col2 * - + col1 - - 92 + - ( + + CAST ( - + col0 AS INTEGER ) ) FROM tab0
----
-31
-3700
90

query I rowsort
SELECT ( 85 ) * + + 78 * col1 * - col0 - 20 AS col1 FROM tab1
----
-2817770
-28356530
-4733840

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT ALL COUNT( * ) - + + COUNT( ALL - + col0 ) + 87 AS col2 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-2280
SELECT ALL COUNT ( * ) - + + COUNT ( ALL - + col0 ) + 87 AS col2 FROM tab1
----
87

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE ( 29 ) IS NULL
----

query I rowsort
SELECT DISTINCT 85 * - 98 - 18 + + + col2 FROM tab0
----
-8249
-8301
-8338

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2283
SELECT DISTINCT + + CAST( NULL AS SIGNED ), + 95 AS col0 FROM tab0 WHERE NULL BETWEEN NULL AND col1
----

skipif mysql # not compatible
query II rowsort label-2283
SELECT DISTINCT + + CAST ( NULL AS INTEGER ), + 95 AS col0 FROM tab0 WHERE NULL BETWEEN NULL AND col1
----

query I rowsort
SELECT DISTINCT - col1 * + col2 FROM tab0 AS cor0 WHERE NOT col2 < + ( + + col2 )
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2285
SELECT col2 * - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2285
SELECT col2 * - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2286
SELECT ALL + 54 DIV col2 AS col1 FROM tab0 AS cor0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-2286
SELECT ALL + 54 / col2 AS col1 FROM tab0 AS cor0
----
0
1
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT DISTINCT - 15 AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col0, + 62 FROM tab0
----
1
62
21
62
81
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2290
SELECT ALL ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2290
SELECT ALL ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT DISTINCT COUNT( ALL - 47 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2291
SELECT DISTINCT COUNT ( ALL - 47 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2293
SELECT DISTINCT 29 * CAST( + 56 AS SIGNED ) * + + 43 FROM tab1 AS cor0
----
69832

skipif mysql # not compatible
query I rowsort label-2293
SELECT DISTINCT 29 * CAST ( + 56 AS INTEGER ) * + + 43 FROM tab1 AS cor0
----
69832

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT + + SUM( ALL col1 ) FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-2294
SELECT + + SUM ( ALL col1 ) FROM tab1 cor0
----
66

query I rowsort
SELECT DISTINCT 37 * 56 FROM tab0 AS cor0
----
2072

query II rowsort
SELECT - 62 AS col2, - col0 AS col2 FROM tab2
----
-62
-46
-62
-64
-62
-75

query II rowsort
SELECT - col0 * + + col0, col0 FROM tab1
----
-2601
51
-7225
85
-8281
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2298
SELECT ALL + col2 + - + col0 DIV - + col2 + + + col2 + + 21 - - - 91 + - col0 FROM tab2
----
-28
-53
-68

skipif mysql # not compatible
query I rowsort label-2298
SELECT ALL + col2 + - + col0 / - + col2 + + + col2 + + 21 - - - 91 + - col0 FROM tab2
----
-28
-53
-68

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * 54 > - 49
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT - COUNT( * ) FROM tab0 WHERE NOT + col2 * - + col2 / + ( + - col1 ) BETWEEN + col2 AND - 41
----
-3

skipif mysql # not compatible
query I rowsort label-2300
SELECT - COUNT ( * ) FROM tab0 WHERE NOT + col2 * - + col2 / + ( + - col1 ) BETWEEN + col2 AND - 41
----
-3

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - col2 + - col1 AS col1, + col1 AS col2 FROM tab1
----
-110
14
-115
47
-64
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2303
SELECT + 42 * - - ( + col0 ) - + CAST( - 39 AS SIGNED ) FROM tab2 AS cor0
----
1971
2727
3189

skipif mysql # not compatible
query I rowsort label-2303
SELECT + 42 * - - ( + col0 ) - + CAST ( - 39 AS INTEGER ) FROM tab2 AS cor0
----
1971
2727
3189

query I rowsort
SELECT DISTINCT + - col0 * + col0 + col2 AS col0 FROM tab1 AS cor0
----
-2505
-7166
-8213

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2305
SELECT DISTINCT - 76 + - COUNT( * ) / - - MAX( ALL + ( - CAST( NULL AS SIGNED ) ) ) * - 20 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2305
SELECT DISTINCT - 76 + - COUNT ( * ) / - - MAX ( ALL + ( - CAST ( NULL AS INTEGER ) ) ) * - 20 FROM tab2
----
NULL

query I rowsort
SELECT - col2 - - ( + col0 ) * + col2 + + col0 * 56 FROM tab1 AS cor0
----
11216
7656
9716

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2307
SELECT DISTINCT CAST( NULL AS SIGNED ) * + + 22 AS col0, + 73 AS col2 FROM tab2 AS cor0
----
NULL
73

skipif mysql # not compatible
query II rowsort label-2307
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + 22 AS col0, + 73 AS col2 FROM tab2 AS cor0
----
NULL
73

query II rowsort
SELECT + + col0 + - - 89, col2 * - col2 AS col2 FROM tab2 AS cor0
----
135
-529
153
-1600
164
-3364

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT + + COUNT( * ) + - COUNT( + + col1 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2309
SELECT + + COUNT ( * ) + - COUNT ( + + col1 ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2310
SELECT ALL - col0 DIV 48 col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2310
SELECT ALL - col0 / 48 col0 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT - + MAX( ALL - - 91 ) AS col0 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
-91

skipif mysql # not compatible
query I rowsort label-2311
SELECT - + MAX ( ALL - - 91 ) AS col0 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2312
SELECT * FROM tab1 AS cor0 WHERE ( - CAST( - col0 AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2312
SELECT * FROM tab1 AS cor0 WHERE ( - CAST ( - col0 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 = + + ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT DISTINCT COUNT( * ) * 19 AS col0 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-2314
SELECT DISTINCT COUNT ( * ) * 19 AS col0 FROM tab2
----
57

query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2316
SELECT CAST( NULL AS SIGNED ) * col1 - + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2316
SELECT CAST ( NULL AS INTEGER ) * col1 - + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 7 - col1 * col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + ( + 86 ) * - 74 ) < ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * ( + col2 ) + - col0 FROM tab2
----
1127
3016
3811

query I rowsort
SELECT + 49 * - col2 FROM tab1 WHERE NULL > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + 93 ) NOT IN ( + 21 )
----

query I rowsort
SELECT ALL ( 6 ) AS col1 FROM tab0
----
6
6
6

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col2 * 93 ) NOT BETWEEN ( NULL ) AND ( 51 + - ( col0 ) )
----

query I rowsort
SELECT DISTINCT ( 22 ) FROM tab1
----
22

query I rowsort
SELECT - 19 - + col2 FROM tab0
----
-118
-29
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab1 WHERE + col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2327
SELECT DISTINCT - ( + 40 ) - - COUNT( ALL col0 ) FROM tab2
----
-37

skipif mysql # not compatible
query I rowsort label-2327
SELECT DISTINCT - ( + 40 ) - - COUNT ( ALL col0 ) FROM tab2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT DISTINCT + 44 * COUNT( * ) AS col0 FROM tab1
----
132

skipif mysql # not compatible
query I rowsort label-2328
SELECT DISTINCT + 44 * COUNT ( * ) AS col0 FROM tab1
----
132

query I rowsort
SELECT ALL col0 * - 44 FROM tab0 WHERE ( NULL ) IS NULL
----
-3828
-4268
-660

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT DISTINCT 65 + MAX( + col1 + - col0 * + ( - col0 ) ) * + 42 FROM tab0
----
395285

skipif mysql # not compatible
query I rowsort label-2330
SELECT DISTINCT 65 + MAX ( + col1 + - col0 * + ( - col0 ) ) * + 42 FROM tab0
----
395285

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT ALL COUNT( * ) FROM tab1 WHERE NULL >= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2331
SELECT ALL COUNT ( * ) FROM tab1 WHERE NULL >= ( NULL )
----
0

query III rowsort
SELECT * FROM tab1 WHERE ( + 70 * col2 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT 31 AS col2 FROM tab1 WHERE NOT + col0 IN ( - col0 )
----
31
31
31

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 41 NOT BETWEEN col0 / - col2 AND - col2
----

query I rowsort
SELECT ALL - 57 * - 93 AS col2 FROM tab2
----
5301
5301
5301

query I rowsort
SELECT + 10 * col1 AS col2 FROM tab1 WHERE NOT + 86 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 55 * - col1 col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-2805
-3685
-4235

query I rowsort
SELECT - col0 * col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT ALL MIN( ALL col1 ) AS col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2339
SELECT ALL MIN ( ALL col1 ) AS col1 FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT DISTINCT COUNT( ALL 65 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2340
SELECT DISTINCT COUNT ( ALL 65 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT 64 + col0 AS col1 FROM tab2 AS cor0
----
110
128
139

query I rowsort
SELECT - col0 + - 34 AS col2 FROM tab0 AS cor0
----
-121
-131
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2343
SELECT DISTINCT - CAST( 51 AS SIGNED ) + col1 FROM tab2
----
0
16
26

skipif mysql # not compatible
query I rowsort label-2343
SELECT DISTINCT - CAST ( 51 AS INTEGER ) + col1 FROM tab2
----
0
16
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT ( 41 ) + - COUNT( * ) FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-2344
SELECT ( 41 ) + - COUNT ( * ) FROM tab2
----
38

query I rowsort
SELECT DISTINCT col2 + 10 AS col2 FROM tab1
----
106
69
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2346
SELECT - COUNT( * ) + 91 FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-2346
SELECT - COUNT ( * ) + 91 FROM tab2
----
88

query I rowsort
SELECT DISTINCT col0 - - 46 AS col0 FROM tab1 AS cor0
----
131
137
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2348
SELECT ALL - col1 * CAST( 98 AS SIGNED ) - - col2 AS col0 FROM tab0 AS cor0
----
-2048
-7891
1

skipif mysql # not compatible
query I rowsort label-2348
SELECT ALL - col1 * CAST ( 98 AS INTEGER ) - - col2 AS col0 FROM tab0 AS cor0
----
-2048
-7891
1

query I rowsort
SELECT - 73 * col0 FROM tab1 AS cor0 WHERE ( + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT DISTINCT SUM( + col1 ) - 10 AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-2350
SELECT DISTINCT SUM ( + col1 ) - 10 AS col0 FROM tab2 AS cor0
----
185

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT ( ( col0 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT ALL + + MAX( ALL col0 ) col1 FROM tab1 cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2352
SELECT ALL + + MAX ( ALL col0 ) col1 FROM tab1 cor0
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2353
SELECT ALL + 59 + + 14 DIV - col2 FROM tab0 AS cor0
----
58
59
59

skipif mysql # not compatible
query I rowsort label-2353
SELECT ALL + 59 + + 14 / - col2 FROM tab0 AS cor0
----
58
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2354
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NULL <> - col1 / - col1
----
0

skipif mysql # not compatible
query I rowsort label-2354
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL <> - col1 / - col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT ALL - SUM( DISTINCT col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-2355
SELECT ALL - SUM ( DISTINCT col2 ) FROM tab0 AS cor0
----
-156

query I rowsort
SELECT - col2 * 18 - col0 AS col2 FROM tab1 AS cor0
----
-1147
-1315
-1779

query I rowsort
SELECT DISTINCT 5 + 43 - col0 * + col1 FROM tab2
----
-2298
-4880
-4977

query I rowsort
SELECT ALL 23 * + - col2 * col0 AS col0 FROM tab2
----
-100050
-24334
-58880

query I rowsort
SELECT - col2 * + - col1 * col0 AS col0 FROM tab0
----
18270
57105
9603

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 BETWEEN ( 18 ) AND ( col0 )
----

query I rowsort
SELECT DISTINCT + col1 * ( - col2 ) FROM tab2
----
-1173
-3080
-3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - - col2 ) * col0 col0 FROM tab1
----
-4896
-5015
-6188

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN + col0 AND 3
----

query I rowsort
SELECT ( + - 38 ) AS col1 FROM tab2
----
-38
-38
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-2365
SELECT DISTINCT - col0 * 16 DIV + col2 AS col0 FROM tab0
----
-139
-15
-5

skipif mysql # not compatible
query I rowsort label-2365
SELECT DISTINCT - col0 * 16 / + col2 AS col0 FROM tab0
----
-139
-15
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2366
SELECT DISTINCT - MIN( 93 ) FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-2366
SELECT DISTINCT - MIN ( 93 ) FROM tab2
----
-93

query I rowsort
SELECT ALL col0 * 4 * 17 FROM tab2
----
3128
4352
5100

onlyif mysql # aggregate syntax: 
query I rowsort label-2368
SELECT ALL + SUM( DISTINCT + - col2 ) AS col0 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-2368
SELECT ALL + SUM ( DISTINCT + - col2 ) AS col0 FROM tab1
----
-223

query I rowsort
SELECT ALL col2 * + col1 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2370
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - + col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2370
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - + col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2371
SELECT + ( + CAST( + col2 AS SIGNED ) ) * - 5 FROM tab0 AS cor0
----
-235
-495
-50

skipif mysql # not compatible
query I rowsort label-2371
SELECT + ( + CAST ( + col2 AS INTEGER ) ) * - 5 FROM tab0 AS cor0
----
-235
-495
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2372
SELECT - 19 * + COUNT( * ) - MIN( col1 ) FROM tab0 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-2372
SELECT - 19 * + COUNT ( * ) - MIN ( col1 ) FROM tab0 AS cor0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2373
SELECT DISTINCT - col1 * 98 - CAST( - col0 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1321
-405
-4515

skipif mysql # not compatible
query I rowsort label-2373
SELECT DISTINCT - col1 * 98 - CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1321
-405
-4515

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT ALL - COUNT( * ) * - 67 FROM tab0
----
201

skipif mysql # not compatible
query I rowsort label-2374
SELECT ALL - COUNT ( * ) * - 67 FROM tab0
----
201

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT ( NULL ) <= 27 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2376
SELECT - MAX( + 88 ) FROM tab2
----
-88

skipif mysql # not compatible
query I rowsort label-2376
SELECT - MAX ( + 88 ) FROM tab2
----
-88

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col2 ) < ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT DISTINCT SUM( col2 ) FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-2378
SELECT DISTINCT SUM ( col2 ) FROM tab1 cor0
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2379
SELECT - + CAST( NULL AS SIGNED ) / col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2379
SELECT - + CAST ( NULL AS INTEGER ) / col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2380
SELECT MAX( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-2380
SELECT MAX ( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2381
SELECT + CAST( + ( - col0 ) AS SIGNED ) FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-2381
SELECT + CAST ( + ( - col0 ) AS INTEGER ) FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT + ( + ( - + col1 ) ) FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + 39 * - 25 + + col2 AS col1 FROM tab2 AS cor0
----
-917
-935
-952

onlyif mysql # DIV for integer division: 
query II rowsort label-2384
SELECT + 95 AS col0, + col2 DIV + + 30 FROM tab2 AS cor0
----
95
0
95
1
95
1

skipif mysql # not compatible
query II rowsort label-2384
SELECT + 95 AS col0, + col2 / + + 30 FROM tab2 AS cor0
----
95
0
95
1
95
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT COUNT( - col2 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2385
SELECT COUNT ( - col2 ) col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT COUNT( - - col2 ) + + - 22 * - - ( - 69 ) - - COUNT( * ) col2 FROM tab0
----
1524

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2386
SELECT COUNT ( - - col2 ) + + - 22 * - - ( - 69 ) - - COUNT ( * ) col2 FROM tab0
----
1524

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2387
SELECT CAST( + 12 AS SIGNED ) + + 90 - - col1 DIV + col2 FROM tab0
----
102
103
104

skipif mysql # not compatible
query I rowsort label-2387
SELECT CAST ( + 12 AS INTEGER ) + + 90 - - col1 / + col2 FROM tab0
----
102
103
104

query I rowsort
SELECT ALL + col1 * 7 + - ( + - col0 ) + - 1 FROM tab2
----
402
543
602

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2389
SELECT CAST( NULL AS SIGNED ) * - col0 / + 6 * - col1 + 72 / - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2389
SELECT CAST ( NULL AS INTEGER ) * - col0 / + 6 * - col1 + 72 / - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT - MIN( DISTINCT 83 ) FROM tab0 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-2390
SELECT - MIN ( DISTINCT 83 ) FROM tab0 AS cor0
----
-83

query I rowsort
SELECT DISTINCT - col1 + - - 72 AS col0 FROM tab1 AS cor0
----
25
58
67

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 * - ( col0 ) * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 * - + col2 - - + col1 * col0 * + + col1 * col0 FROM tab2
----
24287744
25254975
5504774

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE + + col0 NOT IN ( 83 )
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2395
SELECT DISTINCT ( + COUNT( * ) ) FROM tab0 WHERE col1 + - col0 - 59 + col0 * - col1 < ( col0 )
----
3

skipif mysql # not compatible
query I rowsort label-2395
SELECT DISTINCT ( + COUNT ( * ) ) FROM tab0 WHERE col1 + - col0 - 59 + col0 * - col1 < ( col0 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2396
SELECT DISTINCT - COUNT( DISTINCT - 3 ) - + COUNT( * ) col2 FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2396
SELECT DISTINCT - COUNT ( DISTINCT - 3 ) - + COUNT ( * ) col2 FROM tab1 AS cor0
----
-4

query I rowsort
SELECT + - col0 + + - 28 FROM tab1 AS cor0
----
-113
-119
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2398
SELECT + CAST( 45 AS SIGNED ) * - COUNT( * ) FROM tab2 AS cor0 WHERE NULL >= - 82
----
0

skipif mysql # not compatible
query I rowsort label-2398
SELECT + CAST ( 45 AS INTEGER ) * - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL >= - 82
----
0

query I rowsort
SELECT ALL - 59 FROM tab0 AS cor0 WHERE NOT + col2 IN ( + 15 )
----
-59
-59
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT col0 * col1 BETWEEN ( 17 ) AND + 96 * ( - 47 )
----
3

skipif mysql # not compatible
query I rowsort label-2400
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col0 * col1 BETWEEN ( 17 ) AND + 96 * ( - 47 )
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN - col0 * - col2 - col1 AND + col0
----

query I rowsort
SELECT + 2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL < - col1
----

query I rowsort
SELECT 41 * - col2 * - - col0 AS col2 FROM tab0 AS cor0
----
-28905
-35670
-393723

query I rowsort
SELECT DISTINCT + 33 * - 58 AS col2 FROM tab1 cor0
----
-1914

query II rowsort
SELECT ALL + 71 * - + 77 AS col1, + col0 FROM tab0
----
-5467
15
-5467
87
-5467
97

query III rowsort
SELECT * FROM tab1 WHERE NOT + - ( - col0 ) * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + 10 AS col1, col2 FROM tab1
----
10
59
10
68
10
96

query II rowsort
SELECT ALL 71 AS col2, col2 AS col1 FROM tab1
----
71
59
71
68
71
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 * + + 6 = + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2410
SELECT 76 DIV + 80 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2410
SELECT 76 / + 80 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT ALL ( 5 ) * + COUNT( * ) * - + 95 FROM tab1
----
-1425

skipif mysql # not compatible
query I rowsort label-2411
SELECT ALL ( 5 ) * + COUNT ( * ) * - + 95 FROM tab1
----
-1425

query II rowsort
SELECT DISTINCT 61, 47 + + - col2 AS col2 FROM tab0
----
61
-52
61
0
61
37

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= + 9
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT - + COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT NULL <= col0
----
0

skipif mysql # not compatible
query I rowsort label-2414
SELECT - + COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT NULL <= col0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( - col1 + - + col2 + col2 )
----

query I rowsort
SELECT ALL + - col2 * + + col0 + - ( ( - - 22 ) ) FROM tab2 AS cor0
----
-1080
-2582
-4372

query I rowsort
SELECT DISTINCT + ( ( + - col2 ) ) AS col2 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2418
SELECT ALL + ( ( - + COUNT( * ) ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2418
SELECT ALL + ( ( - + COUNT ( * ) ) ) FROM tab1
----
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 * + col2 NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2420
SELECT - - COUNT( * ) + 91 col1, 96 FROM tab1 AS cor0
----
94
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2420
SELECT - - COUNT ( * ) + 91 col1, 96 FROM tab1 AS cor0
----
94
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 = - - 97 - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL NOT BETWEEN + 76 + + col2 AND - 98 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE 69 NOT BETWEEN ( NULL ) AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + 11 * - col1 * - col0 BETWEEN - - col2 AND + 24 )
----

query I rowsort
SELECT ALL + + col2 + + 42 * + col1 * 25 FROM tab0 AS cor0
----
1149
22060
85097

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 8 NOT BETWEEN NULL AND ( + col0 )
----

query I rowsort
SELECT DISTINCT - 69 + col2 + - col2 + - col0 * + - 11 + - ( + col1 ) AS col0 FROM tab1
----
478
861
885

onlyif mysql # DIV for integer division: 
query I rowsort label-2428
SELECT DISTINCT 6 * + 98 DIV + - 24 FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-2428
SELECT DISTINCT 6 * + 98 / + - 24 FROM tab2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT ALL + 42 - - SUM( DISTINCT + 67 ) col1 FROM tab2
----
109

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2429
SELECT ALL + 42 - - SUM ( DISTINCT + 67 ) col1 FROM tab2
----
109

query I rowsort
SELECT - col0 AS col1 FROM tab2 AS cor0 WHERE col2 + col0 <> ( + ( - col2 ) / + col0 + + 59 - + 38 )
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT - - MAX( ALL + - col0 ) + - + COUNT( col2 ) * - - 63 AS col0 FROM tab2 AS cor0
----
-235

skipif mysql # not compatible
query I rowsort label-2431
SELECT - - MAX ( ALL + - col0 ) + - + COUNT ( col2 ) * - - 63 AS col0 FROM tab2 AS cor0
----
-235

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2432
SELECT ALL - + col0 * + col2 * + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2432
SELECT ALL - + col0 * + col2 * + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 92 + - - 51 FROM tab0 AS cor0
----
143
143
143

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT + COUNT( * ) + + COUNT( * ) * - 11 AS col2 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-2435
SELECT + COUNT ( * ) + + COUNT ( * ) * - 11 AS col2 FROM tab1
----
-30

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( - 41 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2437
SELECT DISTINCT - MAX( - 93 ) + + 17 * - + 10 AS col0 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-2437
SELECT DISTINCT - MAX ( - 93 ) + + 17 * - + 10 AS col0 FROM tab2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE 92 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-2438
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE 92 <> NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col1 * - col0 ) > + ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT - SUM( ALL - 26 ) FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-2440
SELECT - SUM ( ALL - 26 ) FROM tab0 AS cor0
----
78

query I rowsort
SELECT DISTINCT - - col1 * - + col2 + - col1 FROM tab0 AS cor0
----
-100
-231
-3888

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 * 53 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( + 21 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2444
SELECT + ( - 79 ) + + 80 DIV col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-78
-78
-78

skipif mysql # not compatible
query I rowsort label-2444
SELECT + ( - 79 ) + + 80 / col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-78
-78
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT + SUM( ALL - 9 ) FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-2445
SELECT + SUM ( ALL - 9 ) FROM tab0
----
-27

query I rowsort
SELECT ALL - ( + - 42 ) AS col1 FROM tab1
----
42
42
42

onlyif mysql # DIV for integer division: 
query I rowsort label-2447
SELECT - 44 DIV 51 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2447
SELECT - 44 / 51 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 WHERE NOT + col1 * 5 - - 77 IS NULL
----
46
64
75

onlyif mysql # DIV for integer division: 
query II rowsort label-2449
SELECT + col0 DIV ( - col2 ), - col0 AS col1 FROM tab1
----
-1
-85
-1
-91
0
-51

skipif mysql # not compatible
query II rowsort label-2449
SELECT + col0 / ( - col2 ), - col0 AS col1 FROM tab1
----
-1
-85
-1
-91
0
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2450
SELECT + ( - col2 ) / + - col1 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( ( NULL ) IS NOT NULL )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2450
SELECT + ( - col2 ) / + - col1 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( ( NULL ) IS NOT NULL )
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2451
SELECT ALL CAST( + MAX( - col0 ) AS SIGNED ) AS col2 FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2451
SELECT ALL CAST ( + MAX ( - col0 ) AS INTEGER ) AS col2 FROM tab0 cor0
----
-15

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT ( - + col2 * col2 * - ( + col0 ) ) <= + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2453
SELECT DISTINCT + COUNT( + col2 ) * - + COUNT( * ) * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2453
SELECT DISTINCT + COUNT ( + col2 ) * - + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2454
SELECT ALL - CAST( NULL AS DECIMAL ) + - + AVG ( + ( col1 ) ) / - 67 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2454
SELECT ALL - CAST ( NULL AS REAL ) + - + AVG ( + ( col1 ) ) / - 67 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT DISTINCT - 38 + MIN( + - 42 ) FROM tab2
----
-80

skipif mysql # not compatible
query I rowsort label-2455
SELECT DISTINCT - 38 + MIN ( + - 42 ) FROM tab2
----
-80

query III rowsort
SELECT * FROM tab2 WHERE NULL <> ( - + 97 + + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab1 AS cor0 WHERE - 11 * - + ( col1 ) <> + + col0 * + + ( + col2 )
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2458
SELECT + col2 * col2 + - col2 - - CAST( NULL AS SIGNED ) * + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2458
SELECT + col2 * col2 + - col2 - - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2459
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) <= + - col0 + - col2 * + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2459
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) <= + - col0 + - col2 * + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + - col2 + - 81 FROM tab2 AS cor0
----
-104
-121
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT DISTINCT + COUNT( + col1 ) * COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2461
SELECT DISTINCT + COUNT ( + col1 ) * COUNT ( * ) FROM tab0 AS cor0
----
9

query I rowsort
SELECT ALL - col2 * col0 + + col2 + - 78 + - col2 AS col2 FROM tab2 AS cor0
----
-1136
-2638
-4428

onlyif mysql # DIV for integer division: 
query I rowsort label-2463
SELECT ALL + col2 DIV + col2 + - - 99 AS col1 FROM tab2 AS cor0
----
100
100
100

skipif mysql # not compatible
query I rowsort label-2463
SELECT ALL + col2 / + col2 + - - 99 AS col1 FROM tab2 AS cor0
----
100
100
100

onlyif mysql # aggregate syntax: 
query I rowsort label-2464
SELECT 39 * + - 41 + - + 26 * - COUNT( * ) FROM tab0
----
-1521

skipif mysql # not compatible
query I rowsort label-2464
SELECT 39 * + - 41 + - + 26 * - COUNT ( * ) FROM tab0
----
-1521

query I rowsort
SELECT ALL + col1 + - - col2 FROM tab2
----
117
125
74

onlyif mysql # DIV for integer division: 
query I rowsort label-2466
SELECT ALL col0 - col0 + 28 + + 93 DIV col2 col2 FROM tab1
----
28
29
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2466
SELECT ALL col0 - col0 + 28 + + 93 / col2 col2 FROM tab1
----
28
29
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2467
SELECT ALL - COUNT( * ) DIV - + COUNT( ALL - col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2467
SELECT ALL - COUNT ( * ) / - + COUNT ( ALL - col1 ) FROM tab0
----
1

query I rowsort
SELECT ALL col1 - 19 * + - col1 FROM tab2 AS cor0
----
1020
1340
1540

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT + + COUNT( * ) * + MAX( ALL - 61 ) FROM tab1 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-2469
SELECT + + COUNT ( * ) * + MAX ( ALL - 61 ) FROM tab1 AS cor0
----
-183

query I rowsort
SELECT - + col1 * + col2 - 77 AS col0 FROM tab0 WHERE NULL IS NULL
----
-176
-287
-3884

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT - MIN( col2 ) col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2471
SELECT - MIN ( col2 ) col2 FROM tab0 AS cor0
----
-10

query II rowsort
SELECT ALL - + 12 AS col1, + col0 AS col2 FROM tab1 AS cor0
----
-12
51
-12
85
-12
91

query II rowsort
SELECT col1 AS col1, col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 25, + 53 + - - 86 col1 FROM tab2 AS cor0
----
25
139
25
139
25
139

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - col2 ) col0 FROM tab0 cor0
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 > - - 10
----
87
21
10

query I rowsort
SELECT ALL ( - + 22 ) FROM tab0
----
-22
-22
-22

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 79 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT 65 IS NOT NULL
----

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 WHERE NOT NULL > col0
----

query I rowsort
SELECT ( + + col1 ) AS col0 FROM tab0 WHERE NOT - 61 NOT BETWEEN - - ( + - 21 ) AND ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2482
SELECT ALL + - COUNT( * ) AS col1 FROM tab0 WHERE NOT - - col2 / - col0 * + + col1 * + col1 * - col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2482
SELECT ALL + - COUNT ( * ) AS col1 FROM tab0 WHERE NOT - - col2 / - col0 * + + col1 * + col1 * - col2 IS NULL
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2483
SELECT + 59 DIV + SUM( - - col0 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2483
SELECT + 59 / + SUM ( - - col0 ) AS col2 FROM tab2
----
0

query II rowsort
SELECT col0 * - col0 AS col0, + col1 AS col0 FROM tab1 AS cor0
----
-2601
14
-7225
5
-8281
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2485
SELECT DISTINCT + - ( - + MIN( DISTINCT + col2 ) ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-2485
SELECT DISTINCT + - ( - + MIN ( DISTINCT + col2 ) ) FROM tab1 AS cor0
----
59

query II rowsort
SELECT + ( col1 ), - 33 + - - 89 FROM tab1 AS cor0 WHERE NOT + col0 * - 53 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT ALL - MAX( - 54 ) AS col2 FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-2487
SELECT ALL - MAX ( - 54 ) AS col2 FROM tab0 AS cor0
----
54

query I rowsort
SELECT DISTINCT ( + 84 ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
84

query I rowsort
SELECT DISTINCT + - col0 * - 52 FROM tab0 AS cor0
----
4524
5044
780

query I rowsort
SELECT + 3 + + 35 AS col2 FROM tab0 cor0
----
38
38
38

query I rowsort
SELECT DISTINCT + col1 * - col2 + - + col1 AS col2 FROM tab0 AS cor0
----
-100
-231
-3888

query I rowsort
SELECT ALL - 19 AS col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ( - + col1 ) * - col1 FROM tab2 cor0 WHERE ( col0 ) IS NOT NULL
----
2601
4489
5929

query II rowsort
SELECT - + col2 AS col0, col0 AS col2 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2495
SELECT DISTINCT - 42 * + + col0 - - + 88 + + + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2495
SELECT DISTINCT - 42 * + + col0 - - + 88 + + + CAST ( NULL AS REAL ) FROM tab2
----
NULL

query I rowsort
SELECT col0 - + 22 FROM tab0
----
-7
65
75

query II rowsort
SELECT DISTINCT 4 AS col2, 30 FROM tab2 AS cor0
----
4
30

query II rowsort
SELECT ALL col0 AS col2, col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2499
SELECT - - COUNT( ALL - - 6 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2499
SELECT - - COUNT ( ALL - - 6 ) AS col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 * + col0 + + + col1 - - + col2 * - col0 * - 96 = - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT - 91 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2502
SELECT 7 + - - COUNT( * ) * + 7 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
70

skipif mysql # not compatible
query I rowsort label-2502
SELECT 7 + - - COUNT ( * ) * + 7 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2503
SELECT ALL - 37 * - MIN( col0 ) FROM tab0
----
555

skipif mysql # not compatible
query I rowsort label-2503
SELECT ALL - 37 * - MIN ( col0 ) FROM tab0
----
555

query I rowsort
SELECT DISTINCT + - col1 AS col0 FROM tab2 AS cor0 WHERE ( col0 ) IS NULL
----

query I rowsort
SELECT + col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - + 26 * - 20 FROM tab2 AS cor0
----
520
520
520

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 88 + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2508
SELECT DISTINCT col0 * col2, CAST( - col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
4896
-51
5015
-85
6188
-91

skipif mysql # not compatible
query II rowsort label-2508
SELECT DISTINCT col0 * col2, CAST ( - col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
4896
-51
5015
-85
6188
-91

query II rowsort
SELECT ALL + col2, - col0 FROM tab0
----
10
-87
47
-15
99
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT ( + COUNT( + + col2 ) ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2510
SELECT ( + COUNT ( + + col2 ) ) col1 FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2511
SELECT ALL col0 DIV col2 col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2511
SELECT ALL col0 / col2 col2 FROM tab1
----
0
1
1

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( - + 69 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 7 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 74 col0 FROM tab2 AS cor0
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2515
SELECT ALL SUM( DISTINCT - 33 ) + - + COUNT( * ) - + ( - 2 ) FROM tab0
----
-34

skipif mysql # not compatible
query I rowsort label-2515
SELECT ALL SUM ( DISTINCT - 33 ) + - + COUNT ( * ) - + ( - 2 ) FROM tab0
----
-34

query I rowsort
SELECT 61 + col2 + + 32 * - + col0 * - + col2 FROM tab1 AS cor0
----
156829
160600
198145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2517
SELECT DISTINCT + MIN( - CAST( - col2 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2517
SELECT DISTINCT + MIN ( - CAST ( - col2 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
23

query II rowsort
SELECT + col1 + + - col1 AS col1, + 71 FROM tab0 cor0
----
0
71
0
71
0
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2519
SELECT - col1 AS col1 FROM tab0 AS cor0 WHERE NULL < CAST( NULL AS SIGNED ) + + ( + CAST( - + 30 AS SIGNED ) ) * + + col0
----

skipif mysql # not compatible
query I rowsort label-2519
SELECT - col1 AS col1 FROM tab0 AS cor0 WHERE NULL < CAST ( NULL AS INTEGER ) + + ( + CAST ( - + 30 AS INTEGER ) ) * + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT DISTINCT 95 + SUM( + - 10 ) * 2 FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-2520
SELECT DISTINCT 95 + SUM ( + - 10 ) * 2 FROM tab2
----
35

query I rowsort
SELECT DISTINCT + col0 - - + col2 * ( + col2 ) AS col2 FROM tab1
----
3566
4715
9267

query I rowsort
SELECT ALL - 5 + + + col0 AS col2 FROM tab1
----
46
80
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2523
SELECT ALL + CAST( NULL AS SIGNED ) + + COUNT( * ) * + COUNT( * ) / + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2523
SELECT ALL + CAST ( NULL AS INTEGER ) + + COUNT ( * ) * + COUNT ( * ) / + COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2524
SELECT DISTINCT col0 - + col1 DIV + col1 AS col2 FROM tab0
----
14
86
96

skipif mysql # not compatible
query I rowsort label-2524
SELECT DISTINCT col0 - + col1 / + col1 AS col2 FROM tab0
----
14
86
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT ( + + SUM( DISTINCT 88 ) ) FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-2525
SELECT ( + + SUM ( DISTINCT 88 ) ) FROM tab2
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2526
SELECT ALL col0 - - col0 + col2 AS col2, + CAST( - - col1 AS SIGNED ) * col1 col0, ( - - 49 ) FROM tab0
----
9 values hashing to 8a5473ff11adf55999a3ed48035d6e03

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-2526
SELECT ALL col0 - - col0 + col2 AS col2, + CAST ( - - col1 AS INTEGER ) * col1 col0, ( - - 49 ) FROM tab0
----
9 values hashing to 8a5473ff11adf55999a3ed48035d6e03

query I rowsort
SELECT DISTINCT - 37 + + 43 FROM tab0
----
6

query II rowsort
SELECT DISTINCT - + 27 AS col2, ( + col1 ) FROM tab2 AS cor0
----
-27
51
-27
67
-27
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT ALL + - MIN( ALL - + 36 ) FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN + col0 * - col0 + 59 AND - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2529
SELECT ALL + - MIN ( ALL - + 36 ) FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN + col0 * - col0 + 59 AND - col2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 93 * - col0 col1 FROM tab2 AS cor0
----
4278
5952
6975

query I rowsort
SELECT ALL 85 AS col0 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
85
85
85

query I rowsort
SELECT + ( + + 86 ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2533
SELECT ALL ( - CAST( NULL AS SIGNED ) ) * - + SUM( col0 ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2533
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) * - + SUM ( col0 ) col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL - 9 * - - col1 AS col2 FROM tab0
----
-189
-729
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT MIN( col0 ) FROM tab1 WHERE NOT NULL NOT IN ( + col0 - + + col1 + + 52, col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2535
SELECT MIN ( col0 ) FROM tab1 WHERE NOT NULL NOT IN ( + col0 - + + col1 + + 52, col0 )
----
NULL

query I rowsort
SELECT 2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

onlyif mysql # DIV for integer division: 
query I rowsort label-2537
SELECT DISTINCT + col0 DIV - ( + + 80 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2537
SELECT DISTINCT + col0 / - ( + + 80 ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2538
SELECT ALL + 69, + MAX( DISTINCT - col2 ) * - COUNT( * ) AS col0 FROM tab1
----
69
177

skipif mysql # not compatible
query II rowsort label-2538
SELECT ALL + 69, + MAX ( DISTINCT - col2 ) * - COUNT ( * ) AS col0 FROM tab1
----
69
177

onlyif mysql # DIV for integer division: 
query I rowsort label-2539
SELECT 12 DIV + + 8 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2539
SELECT 12 / + + 8 FROM tab1
----
1
1
1

query I rowsort
SELECT + - ( col0 ) * - + 92 AS col1 FROM tab0 AS cor0
----
1380
8004
8924

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT + - MIN( DISTINCT + 39 ) FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-2541
SELECT + - MIN ( DISTINCT + 39 ) FROM tab0 AS cor0
----
-39

query II rowsort
SELECT + col1, 98 + + 40 AS col2 FROM tab1 AS cor0
----
14
138
47
138
5
138

query I rowsort
SELECT ALL + col2 * + - 92 AS col2 FROM tab1 AS cor0
----
-5428
-6256
-8832

query II rowsort
SELECT DISTINCT + + 61, col1 * - 98 AS col2 FROM tab1 AS cor0
----
61
-1372
61
-4606
61
-490

query I rowsort
SELECT + 74 / + + 29 / - col1 FROM tab2 WHERE NOT col1 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2546
SELECT CAST( + MAX( col0 ) AS SIGNED ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-2546
SELECT CAST ( + MAX ( col0 ) AS INTEGER ) FROM tab2
----
75

query I rowsort
SELECT + + col1 AS col0 FROM tab2 WHERE NOT 18 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2548
SELECT ALL + CAST( 50 AS SIGNED ) DIV - + COUNT( * ) col0 FROM tab0
----
-16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2548
SELECT ALL + CAST ( 50 AS INTEGER ) / - + COUNT ( * ) col0 FROM tab0
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-2549
SELECT col0 DIV + 53 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2549
SELECT col0 / + 53 FROM tab1
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( + 55 ), col0 + col2 * col2 * col0 * + 62 + + + 41 col0 FROM tab2
----
-55
1508795
-55
15642716
-55
6348905

onlyif mysql # DIV for integer division: 
query II rowsort label-2551
SELECT 88 DIV - col0, 14 AS col2 FROM tab2
----
-1
14
-1
14
-1
14

skipif mysql # not compatible
query II rowsort label-2551
SELECT 88 / - col0, 14 AS col2 FROM tab2
----
-1
14
-1
14
-1
14

onlyif mysql # DIV for integer division: 
query I rowsort label-2552
SELECT DISTINCT - 4 DIV col1 * - - 37 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2552
SELECT DISTINCT - 4 / col1 * - - 37 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT DISTINCT SUM( - col0 ) AS col0 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-2553
SELECT DISTINCT SUM ( - col0 ) AS col0 FROM tab1
----
-227

query I rowsort
SELECT ALL col1 * + col2 * + col0 FROM tab1
----
25075
290836
68544

onlyif mysql # DIV for integer division: 
query II rowsort label-2555
SELECT col1 DIV col2 AS col2, - 22 AS col0 FROM tab1
----
0
-22
0
-22
0
-22

skipif mysql # not compatible
query II rowsort label-2555
SELECT col1 / col2 AS col2, - 22 AS col0 FROM tab1
----
0
-22
0
-22
0
-22

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * col1 * - 79 + + col1 + 71 IS NULL
----

query I rowsort
SELECT DISTINCT - 20 + + col2 AS col2 FROM tab2
----
20
3
38

query I rowsort
SELECT ALL - col0 + + + col2 FROM tab0
----
-77
2
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2559
SELECT DISTINCT SUM( DISTINCT 99 ) + + COUNT( * ) + + ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2559
SELECT DISTINCT SUM ( DISTINCT 99 ) + + COUNT ( * ) + + ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2560
SELECT DISTINCT - col0 + + col1 * - 25 AS col1, - col2 * - + CAST( NULL AS SIGNED ) FROM tab1
----
-1266
NULL
-210
NULL
-401
NULL

skipif mysql # not compatible
query II rowsort label-2560
SELECT DISTINCT - col0 + + col1 * - 25 AS col1, - col2 * - + CAST ( NULL AS INTEGER ) FROM tab1
----
-1266
NULL
-210
NULL
-401
NULL

query I rowsort
SELECT DISTINCT + col2 + col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2562
SELECT + - 30 DIV + col1 AS col0 FROM tab1 AS cor0
----
-2
-6
0

skipif mysql # not compatible
query I rowsort label-2562
SELECT + - 30 / + col1 AS col0 FROM tab1 AS cor0
----
-2
-6
0

query I rowsort
SELECT col0 - 8 FROM tab1
----
43
77
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 40 - + 68 col0, col2 AS col0 FROM tab0
----
-28
10
-28
47
-28
99

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT DISTINCT COUNT( * ) * - + 2 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-2566
SELECT DISTINCT COUNT ( * ) * - + 2 FROM tab2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT 69 * - + COUNT( * ) FROM tab1
----
-207

skipif mysql # not compatible
query I rowsort label-2567
SELECT 69 * - + COUNT ( * ) FROM tab1
----
-207

query I rowsort
SELECT DISTINCT + 99 * - col0 AS col0 FROM tab2
----
-4554
-6336
-7425

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - 44 col2 FROM tab1 AS cor0
----
2596
2992
4224

query I rowsort
SELECT ALL + ( + 68 ) FROM tab1 cor0
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT + - COUNT( * ) * + 82 FROM tab1 AS cor0
----
-246

skipif mysql # not compatible
query I rowsort label-2571
SELECT + - COUNT ( * ) * + 82 FROM tab1 AS cor0
----
-246

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT 96 * - col2 >= ( - 24 )
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2573
SELECT ALL + col0 + 39 * 93 DIV - 5 AS col0 FROM tab1 AS cor0
----
-634
-640
-674

skipif mysql # not compatible
query I rowsort label-2573
SELECT ALL + col0 + 39 * 93 / - 5 AS col0 FROM tab1 AS cor0
----
-634
-640
-674

query II rowsort
SELECT col2, + 22 FROM tab0
----
10
22
47
22
99
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2575
SELECT ALL CAST( NULL AS SIGNED ) + + ( ( - 51 ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2575
SELECT ALL CAST ( NULL AS INTEGER ) + + ( ( - 51 ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2576
SELECT + - col1 * + ( - + col0 ) AS col2 FROM tab0 WHERE NOT - CAST( + 39 AS SIGNED ) NOT IN ( col2, col2 )
----

skipif mysql # not compatible
query I rowsort label-2576
SELECT + - col1 * + ( - + col0 ) AS col2 FROM tab0 WHERE NOT - CAST ( + 39 AS INTEGER ) NOT IN ( col2, col2 )
----

query I rowsort
SELECT ALL + - 57 * - col2 FROM tab2 WHERE NULL IS NULL
----
1311
2280
3306

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT ALL MIN( ALL - - 76 ) AS col0 FROM tab1
----
76

skipif mysql # not compatible
query I rowsort label-2578
SELECT ALL MIN ( ALL - - 76 ) AS col0 FROM tab1
----
76

query II rowsort
SELECT DISTINCT - ( - 39 ) AS col1, col1 AS col1 FROM tab1
----
39
14
39
47
39
5

query III rowsort
SELECT * FROM tab1 WHERE NULL > ( - 48 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2581
SELECT DISTINCT CAST( ( - col0 ) AS SIGNED ) + - 53 AS col0 FROM tab1
----
-104
-138
-144

skipif mysql # not compatible
query I rowsort label-2581
SELECT DISTINCT CAST ( ( - col0 ) AS INTEGER ) + - 53 AS col0 FROM tab1
----
-104
-138
-144

query I rowsort
SELECT DISTINCT + 20 * + col2 AS col1 FROM tab2 AS cor0
----
1160
460
800

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT - 62 * + COUNT( ALL - + 76 ) AS col0 FROM tab1 AS cor0 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2583
SELECT - 62 * + COUNT ( ALL - + 76 ) AS col0 FROM tab1 AS cor0 WHERE NULL >= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2584
SELECT - col0 - - col0 AS col1 FROM tab2 cor0 WHERE NULL BETWEEN NULL AND CAST( - - col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2584
SELECT - col0 - - col0 AS col1 FROM tab2 cor0 WHERE NULL BETWEEN NULL AND CAST ( - - col2 AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <> + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2586
SELECT col2 AS col2, + ( + + col0 ) + - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-2586
SELECT col2 AS col2, + ( + + col0 ) + - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE - col2 * - col0 * + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2587
SELECT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE - col2 * - col0 * + col2 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT DISTINCT - MAX( DISTINCT - - col1 ) - - MIN( 55 ) FROM tab0
----
-26

skipif mysql # not compatible
query I rowsort label-2588
SELECT DISTINCT - MAX ( DISTINCT - - col1 ) - - MIN ( 55 ) FROM tab0
----
-26

query I rowsort
SELECT - col2 + - 82 + + 65 AS col2 FROM tab0 AS cor0
----
-116
-27
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT + COUNT( * ) + - - 7 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-2590
SELECT + COUNT ( * ) + - - 7 FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT DISTINCT + COUNT( * ) - - 35 AS col2 FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-2591
SELECT DISTINCT + COUNT ( * ) - - 35 AS col2 FROM tab2 AS cor0
----
38

query I rowsort
SELECT 7 AS col0 FROM tab1 AS cor0 WHERE 87 + - 5 - + col1 NOT BETWEEN + col0 AND col0 + - col2
----
7
7
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2593
SELECT 26 + - ( + col2 ) + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2593
SELECT 26 + - ( + col2 ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT ALL COUNT( ( + 75 ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2594
SELECT ALL COUNT ( ( + 75 ) ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT ALL COUNT( * ) + + MIN( - col0 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2595
SELECT ALL COUNT ( * ) + + MIN ( - col0 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2596
SELECT + col0 FROM tab1 WHERE NOT NULL IN ( - CAST( + - 86 AS SIGNED ) + - + col2, 52 )
----

skipif mysql # not compatible
query I rowsort label-2596
SELECT + col0 FROM tab1 WHERE NOT NULL IN ( - CAST ( + - 86 AS INTEGER ) + - + col2, 52 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2597
SELECT + - col2 + - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 WHERE NOT + - 75 * + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2597
SELECT + - col2 + - CAST ( NULL AS REAL ) AS col1 FROM tab1 WHERE NOT + - 75 * + col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col2 AS col0, 4 FROM tab1
----
59
4
68
4
96
4

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 51 * + 71 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2600
SELECT 41 * + + COUNT( * ) FROM tab1
----
123

skipif mysql # not compatible
query I rowsort label-2600
SELECT 41 * + + COUNT ( * ) FROM tab1
----
123

query II rowsort
SELECT + 10 AS col1, - col1 FROM tab0
----
10
-1
10
-21
10
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 54 col0 FROM tab0
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-2603
SELECT ALL COUNT( * ) AS col1, 77 AS col2 FROM tab1
----
3
77

skipif mysql # not compatible
query II rowsort label-2603
SELECT ALL COUNT ( * ) AS col1, 77 AS col2 FROM tab1
----
3
77

query II rowsort
SELECT 91 AS col2, col0 AS col1 FROM tab1
----
91
51
91
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT DISTINCT - - 55 * - - COUNT( * ) + - 19 FROM tab1 AS cor0 WHERE 76 IS NOT NULL
----
146

skipif mysql # not compatible
query I rowsort label-2605
SELECT DISTINCT - - 55 * - - COUNT ( * ) + - 19 FROM tab1 AS cor0 WHERE 76 IS NOT NULL
----
146

query I rowsort
SELECT col2 * + 27 - - col1 AS col1 FROM tab0 cor0
----
1350
2674
291

query I rowsort
SELECT + col1 / + - col0 * col1 FROM tab2 AS cor0 WHERE NOT + col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT SUM( ( - col0 ) ) AS col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-2608
SELECT SUM ( ( - col0 ) ) AS col1 FROM tab2 AS cor0
----
-185

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - ( - 2 ) ) < ( NULL )
----

query II rowsort
SELECT DISTINCT - col1 AS col2, col1 FROM tab1 cor0
----
-14
14
-47
47
-5
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2611
SELECT CAST( + COUNT( ALL + col2 ) AS SIGNED ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2611
SELECT CAST ( + COUNT ( ALL + col2 ) AS INTEGER ) FROM tab2
----
3

query I rowsort
SELECT col1 * - 79 AS col1 FROM tab1
----
-1106
-3713
-395

onlyif mysql # aggregate syntax: 
query II rowsort label-2613
SELECT SUM( - + 99 ) AS col2, - 45 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-891
-45

skipif mysql # not compatible
query II rowsort label-2613
SELECT SUM ( - + 99 ) AS col2, - 45 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-891
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2614
SELECT ALL - - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2614
SELECT ALL - - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT + 37 + + + col0 * + col1 AS col1 FROM tab2 AS cor0
----
2383
4965
5062

onlyif mysql # aggregate syntax: 
query I rowsort label-2616
SELECT SUM( - + col2 ) + + 7 AS col0 FROM tab0 AS cor0
----
-149

skipif mysql # not compatible
query I rowsort label-2616
SELECT SUM ( - + col2 ) + + 7 AS col0 FROM tab0 AS cor0
----
-149

query I rowsort
SELECT DISTINCT col1 * ( col1 ) + col1 AS col0 FROM tab2 AS cor0
----
2652
4556
6006

query I rowsort
SELECT ALL + 3 * - col0 - - - col1 AS col2 FROM tab1 cor0
----
-167
-260
-320

query I rowsort
SELECT ALL col1 * + - col0 * - 86 FROM tab1 AS cor0
----
36550
367822
61404

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IS NULL AND - col1 * - - col0 <> NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 - - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col1 AS col2, + 82 AS col0 FROM tab1 AS cor0 WHERE - 96 * + col0 IS NULL
----

query I rowsort
SELECT ALL + - col1 + - + 2 AS col2 FROM tab2 AS cor0
----
-53
-69
-79

query I rowsort
SELECT DISTINCT + 4 + - col0 AS col1 FROM tab1
----
-47
-81
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab2 WHERE + - 90 IS NOT NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-2626
SELECT DISTINCT COUNT( * ) * + + ( - 25 ), - 60 + + COUNT( * ) + - 82 AS col1 FROM tab2
----
-75
-139

skipif mysql # not compatible
query II rowsort label-2626
SELECT DISTINCT COUNT ( * ) * + + ( - 25 ), - 60 + + COUNT ( * ) + - 82 AS col1 FROM tab2
----
-75
-139

onlyif mysql # DIV for integer division: 
query I rowsort label-2627
SELECT col2 * + col0 DIV + col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2627
SELECT col2 * + col0 / + col0 FROM tab2
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2628
SELECT + col1 DIV + + col1 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2628
SELECT + col1 / + + col1 AS col0 FROM tab1
----
1
1
1

query I rowsort
SELECT ALL - - col2 - - 46 FROM tab1 AS cor0
----
105
114
142

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2630
SELECT * FROM tab0 AS cor0 WHERE col0 - - col2 BETWEEN CAST( NULL AS SIGNED ) * - col2 AND + col2
----

skipif mysql # not compatible
query III rowsort label-2630
SELECT * FROM tab0 AS cor0 WHERE col0 - - col2 BETWEEN CAST ( NULL AS INTEGER ) * - col2 AND + col2
----

query I rowsort
SELECT 62 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2632
SELECT DISTINCT - col1 DIV ( col0 ) + 25 FROM tab0 AS cor0
----
20
25

skipif mysql # not compatible
query I rowsort label-2632
SELECT DISTINCT - col1 / ( col0 ) + 25 FROM tab0 AS cor0
----
20
25

query I rowsort
SELECT - col0 + + + 18 AS col1 FROM tab2 AS cor0
----
-28
-46
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-2634
SELECT - 61 * + 35 + - 1 + + ( + col0 ) - col0 DIV - 13 + - + 72 AS col0 FROM tab2
----
-2128
-2140
-2159

skipif mysql # not compatible
query I rowsort label-2634
SELECT - 61 * + 35 + - 1 + + ( + col0 ) - col0 / - 13 + - + 72 AS col0 FROM tab2
----
-2128
-2140
-2159

query I rowsort
SELECT ALL - 27 * - 8 + + col1 + - 67 FROM tab2
----
200
216
226

onlyif mysql # aggregate syntax: 
query I rowsort label-2636
SELECT ALL 13 - - ( + - ( + + COUNT( * ) ) ) * + 6 col2 FROM tab0
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2636
SELECT ALL 13 - - ( + - ( + + COUNT ( * ) ) ) * + 6 col2 FROM tab0
----
-5

query II rowsort
SELECT col2, 34 FROM tab0
----
10
34
47
34
99
34

query I rowsort
SELECT ALL - col2 - + + col0 * col2 AS col1 FROM tab1 AS cor0
----
-4992
-5074
-6256

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( ( 64 <> NULL ) )
----

query I rowsort
SELECT ALL - col2 - - - col1 AS col2 FROM tab0 AS cor0
----
-100
-128
-31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2641
SELECT - + 8 AS col0, - CAST( NULL AS SIGNED ) * + col2 * ( - - 10 ) * - - ( - 70 ) + + col0 + + + col0 + col0 AS col1 FROM tab0 AS cor0
----
-8
NULL
-8
NULL
-8
NULL

skipif mysql # not compatible
query II rowsort label-2641
SELECT - + 8 AS col0, - CAST ( NULL AS INTEGER ) * + col2 * ( - - 10 ) * - - ( - 70 ) + + col0 + + + col0 + col0 AS col1 FROM tab0 AS cor0
----
-8
NULL
-8
NULL
-8
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 BETWEEN + - col0 / - col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 33 col0 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
-33
-33
-33

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 <= + 75
----
85
5
59
91
47
68

query I rowsort
SELECT + + col2 AS col2 FROM tab2 AS cor0 WHERE NOT + 69 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2646
SELECT col0 DIV + 77 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2646
SELECT col0 / + 77 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT ALL col0, 87 + - col1 + + 17 FROM tab1 AS cor0
----
51
90
85
99
91
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2648
SELECT + 7 * + SUM( DISTINCT - - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2648
SELECT + 7 * + SUM ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT - - col1, col2 * - 74 * col0 FROM tab2 WHERE NOT + col1 * - 29 IS NOT NULL
----

query II rowsort
SELECT col0 * col2, + 44 AS col0 FROM tab2
----
1058
44
2560
44
4350
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2651
SELECT + COUNT( * ) * 72 DIV - COUNT( * ) FROM tab1
----
-72

skipif mysql # not compatible
query I rowsort label-2651
SELECT + COUNT ( * ) * 72 / - COUNT ( * ) FROM tab1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2652
SELECT - COUNT( * ) FROM tab2 WHERE NOT col0 NOT BETWEEN 6 / - + col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2652
SELECT - COUNT ( * ) FROM tab2 WHERE NOT col0 NOT BETWEEN 6 / - + col2 AND NULL
----
0

query I rowsort
SELECT DISTINCT + 79 FROM tab2 WHERE NULL IS NULL
----
79

query I rowsort
SELECT 78 / - - col2 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT ALL 38 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT DISTINCT - - 12 + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
21

skipif mysql # not compatible
query I rowsort label-2656
SELECT DISTINCT - - 12 + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
21

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col0 + col2 NOT BETWEEN NULL AND - col2
----

query I rowsort
SELECT ALL 31 + - + col1 FROM tab0 AS cor0 WHERE NOT col2 * + col2 IS NULL
----
-50
10
30

query I rowsort
SELECT + col2 - - col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT DISTINCT 86 + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-2660
SELECT DISTINCT 86 + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
83

query II rowsort
SELECT - col1 AS col2, col1 AS col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 58 col0 FROM tab0 cor0
----
-58
-58
-58

query I rowsort
SELECT DISTINCT col2 * 38 + - 90 AS col0 FROM tab0
----
1696
290
3672

query I rowsort
SELECT col0 * + - 4 + - col0 AS col0 FROM tab1
----
-255
-425
-455

onlyif mysql # aggregate syntax: 
query I rowsort label-2665
SELECT ALL COUNT( * ) + + 63 + - 10 AS col1 FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-2665
SELECT ALL COUNT ( * ) + + 63 + - 10 AS col1 FROM tab1
----
56

query I rowsort
SELECT DISTINCT col2 * + - ( + col2 ) AS col0 FROM tab1 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2667
SELECT DISTINCT - 35 + + COUNT( * ) col0 FROM tab0 WHERE - col1 < NULL
----
-35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2667
SELECT DISTINCT - 35 + + COUNT ( * ) col0 FROM tab0 WHERE - col1 < NULL
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2668
SELECT ALL 3 + - ( col0 ) * - ( + - 77 ) * + + col0 * + CAST( NULL AS SIGNED ) + + + col0 * + ( - col2 ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2668
SELECT ALL 3 + - ( col0 ) * - ( + - 77 ) * + + col0 * + CAST ( NULL AS INTEGER ) + + + col0 * + ( - col2 ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2669
SELECT col1 * - col2 + - 53 DIV - col1, col1 FROM tab2 AS cor0
----
-1172
51
-3080
77
-3886
67

skipif mysql # not compatible
query II rowsort label-2669
SELECT col1 * - col2 + - 53 / - col1, col1 FROM tab2 AS cor0
----
-1172
51
-3080
77
-3886
67

query I rowsort
SELECT - 41 * + + col2 AS col2 FROM tab0 AS cor0
----
-1927
-4059
-410

query I rowsort
SELECT 56 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col2 * + col1 + + col2 FROM tab0
----
-200
-3760
0

query I rowsort
SELECT - col0 * + col2 * + 22 + + - 5 FROM tab0 AS cor0
----
-15515
-19145
-211271

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - col1 ) col1 FROM tab1 cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2675
SELECT - - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2675
SELECT - - CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 65 col0 FROM tab0 AS cor0
----
65
65
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2677
SELECT ALL COUNT( * ) DIV + - ( + - 24 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2677
SELECT ALL COUNT ( * ) / + - ( + - 24 ) FROM tab0
----
0

query II rowsort
SELECT - col0, 62 AS col1 FROM tab0 WHERE NOT - - col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT ALL MAX( ALL - col0 ) AS col0 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-2679
SELECT ALL MAX ( ALL - col0 ) AS col0 FROM tab0
----
-15

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT + col1 * col2 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 65 * - 29 FROM tab2
----
1885

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT DISTINCT + SUM( DISTINCT + + col1 ) AS col0 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-2682
SELECT DISTINCT + SUM ( DISTINCT + + col1 ) AS col0 FROM tab1
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2683
SELECT - 26 / + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2683
SELECT - 26 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2684
SELECT + + 71 AS col1, 60 DIV 98 DIV + - col2 + col2 AS col1 FROM tab0 AS cor0
----
71
10
71
47
71
99

skipif mysql # not compatible
query II rowsort label-2684
SELECT + + 71 AS col1, 60 / 98 / + - col2 + col2 AS col1 FROM tab0 AS cor0
----
71
10
71
47
71
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab2 AS cor0 WHERE NOT + col2 = + 8
----
23
40
58

query II rowsort
SELECT + 69 + - col0 * - col2 AS col0, - 88 FROM tab1 AS cor0
----
4965
-88
5084
-88
6257
-88

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2687
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( CAST( - 59 AS SIGNED ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2687
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( CAST ( - 59 AS INTEGER ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT ALL + MIN( DISTINCT - - col2 ) AS col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-2688
SELECT ALL + MIN ( DISTINCT - - col2 ) AS col2 FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT DISTINCT - COUNT( ALL - col0 ) AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2689
SELECT DISTINCT - COUNT ( ALL - col0 ) AS col0 FROM tab0 cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 33 col0 FROM tab0 AS cor0
----
-33
-33
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-2691
SELECT ALL col0 DIV - - ( col2 ) + + + 23 AS col2 FROM tab1 AS cor0
----
23
24
24

skipif mysql # not compatible
query I rowsort label-2691
SELECT ALL col0 / - - ( col2 ) + + + 23 AS col2 FROM tab1 AS cor0
----
23
24
24

query II rowsort
SELECT col1, 43 FROM tab0
----
1
43
21
43
81
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT ALL + 75 * + COUNT( * ) + COUNT( * ) AS col2 FROM tab0
----
228

skipif mysql # not compatible
query I rowsort label-2693
SELECT ALL + 75 * + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0
----
228

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2694
SELECT DISTINCT + col1 + + col1 AS col1 FROM tab0 WHERE - CAST( NULL AS SIGNED ) - - 27 NOT BETWEEN col1 * 61 * - 33 / + - col1 - - 48 + + 64 AND NULL
----

skipif mysql # not compatible
query I rowsort label-2694
SELECT DISTINCT + col1 + + col1 AS col1 FROM tab0 WHERE - CAST ( NULL AS INTEGER ) - - 27 NOT BETWEEN col1 * 61 * - 33 / + - col1 - - 48 + + 64 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2695
SELECT COUNT( DISTINCT + + 79 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2695
SELECT COUNT ( DISTINCT + + 79 ) FROM tab1
----
1

query II rowsort
SELECT - col1 AS col1, - col0 FROM tab2
----
-51
-46
-67
-75
-77
-64

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2697
SELECT COUNT( * ) - 41 / - CAST( NULL AS DECIMAL ) * - ( - 98 ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2697
SELECT COUNT ( * ) - 41 / - CAST ( NULL AS REAL ) * - ( - 98 ) AS col1 FROM tab1
----
NULL

query II rowsort
SELECT ALL - 81 AS col2, 67 AS col0 FROM tab0
----
-81
67
-81
67
-81
67

query I rowsort
SELECT col2 + + + col0 + + 57 * + col1 FROM tab0 AS cor0
----
1294
253
4679

onlyif mysql # aggregate syntax: 
query I rowsort label-2700
SELECT ALL - MAX( 54 ) FROM tab2 AS cor0 JOIN tab1 cor1 ON NOT - - 57 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2700
SELECT ALL - MAX ( 54 ) FROM tab2 AS cor0 JOIN tab1 cor1 ON NOT - - 57 >= NULL
----
NULL

query I rowsort
SELECT - 21 * + col1 / - col2 * col0 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2702
SELECT DISTINCT + - ( + + COUNT( * ) ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 72 IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-2702
SELECT DISTINCT + - ( + + COUNT ( * ) ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 72 IS NULL
----
-9

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 AS cor0 WHERE 64 NOT IN ( + + col1, + col2, + col2 * + 2 )
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT ALL + MAX( col0 ) FROM tab2 AS cor0 WHERE NOT col2 > + 42
----
64

skipif mysql # not compatible
query I rowsort label-2704
SELECT ALL + MAX ( col0 ) FROM tab2 AS cor0 WHERE NOT col2 > + 42
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT - MAX( - - col1 ) AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2705
SELECT - MAX ( - - col1 ) AS col2 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT + 39 * col2 FROM tab0 AS cor0
----
1833
3861
390

query II rowsort
SELECT ALL + col0 * + + col2 AS col2, col2 FROM tab0 AS cor0
----
705
47
870
10
9603
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 69 >= + 69 + - 57 * + - 93
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT DISTINCT + 33 * + COUNT( * ) AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-2709
SELECT DISTINCT + 33 * + COUNT ( * ) AS col1 FROM tab0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2710
SELECT DISTINCT + 84 DIV - col2 AS col2 FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-2710
SELECT DISTINCT + 84 / - col2 AS col2 FROM tab2
----
-1
-2
-3

query I rowsort
SELECT ALL 38 * + 44 AS col2 FROM tab1
----
1672
1672
1672

onlyif mysql # aggregate syntax: 
query I rowsort label-2712
SELECT + 86 * - COUNT( * ) FROM tab0
----
-258

skipif mysql # not compatible
query I rowsort label-2712
SELECT + 86 * - COUNT ( * ) FROM tab0
----
-258

onlyif mysql # aggregate syntax: 
query I rowsort label-2713
SELECT DISTINCT + COUNT( * ) * + 35 * COUNT( * ) AS col0 FROM tab1
----
315

skipif mysql # not compatible
query I rowsort label-2713
SELECT DISTINCT + COUNT ( * ) * + 35 * COUNT ( * ) AS col0 FROM tab1
----
315

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT - + COUNT( * ) FROM tab0 WHERE NOT - 46 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2714
SELECT - + COUNT ( * ) FROM tab0 WHERE NOT - 46 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2715
SELECT DISTINCT - MAX( DISTINCT - 54 ) FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-2715
SELECT DISTINCT - MAX ( DISTINCT - 54 ) FROM tab2 AS cor0
----
54

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 >= + + 50
----
87
21
10
97
1
99

query I rowsort
SELECT col0 + + col1 * 67 + + col1 FROM tab1 AS cor0
----
1003
3287
425

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 * - 92 * - 31 col2 FROM tab2 cor0
----
185380
185380
185380

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 31 - + col1 < col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 76 AS col1, - col1 + + col1 col0 FROM tab1
----
76
0
76
0
76
0

query II rowsort
SELECT ALL col1, - col1 AS col2 FROM tab2
----
51
-51
67
-67
77
-77

onlyif mysql # DIV for integer division: 
query II rowsort label-2722
SELECT DISTINCT - - col0 AS col1, 67 * 6 * 74 DIV - + col1 AS col2 FROM tab0 cor0
----
15
-367
87
-1416
97
-29748

skipif mysql # not compatible
query II rowsort label-2722
SELECT DISTINCT - - col0 AS col1, 67 * 6 * 74 / - + col1 AS col2 FROM tab0 cor0
----
15
-367
87
-1416
97
-29748

query I rowsort
SELECT DISTINCT col2 * - - 89 AS col1 FROM tab2 AS cor0
----
2047
3560
5162

query II rowsort
SELECT - - col0 * - 1, 39 AS col2 FROM tab2 AS cor0
----
-46
39
-64
39
-75
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT ALL - ( - COUNT( + 76 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2725
SELECT ALL - ( - COUNT ( + 76 ) ) FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 82 + - col2 col1 FROM tab0 AS cor0
----
-129
-181
-92

query II rowsort
SELECT + 50 + + col2, - col1 AS col1 FROM tab2 cor0
----
108
-67
73
-51
90
-77

query I rowsort
SELECT ALL ( - col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT 39 BETWEEN - 64 * - 94 * col2 AND + col2 AND NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2729
SELECT - - col1 DIV 27 + col2 FROM tab0 AS cor0
----
10
50
99

skipif mysql # not compatible
query I rowsort label-2729
SELECT - - col1 / 27 + col2 FROM tab0 AS cor0
----
10
50
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT ALL ( + 37 ) + + ( COUNT( * ) ) FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-2730
SELECT ALL ( + 37 ) + + ( COUNT ( * ) ) FROM tab2
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2731
SELECT - COUNT( * ) AS col0 FROM tab2 WHERE ( NOT 99 * + - CAST( + - 79 AS SIGNED ) * + ( + 33 ) + + col0 NOT BETWEEN - - col2 * - col0 / CAST( NULL AS DECIMAL ) - - col0 * - - col0 AND NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2731
SELECT - COUNT ( * ) AS col0 FROM tab2 WHERE ( NOT 99 * + - CAST ( + - 79 AS INTEGER ) * + ( + 33 ) + + col0 NOT BETWEEN - - col2 * - col0 / CAST ( NULL AS REAL ) - - col0 * - - col0 AND NULL )
----
0

query II rowsort
SELECT 76 + + col1, ( col0 ) FROM tab1
----
123
91
81
85
90
51

query I rowsort
SELECT ALL + 98 * + 84 FROM tab2
----
8232
8232
8232

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT ALL + COUNT( ALL + 30 ) + - COUNT( * ) col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2734
SELECT ALL + COUNT ( ALL + 30 ) + - COUNT ( * ) col1 FROM tab1
----
0

query I rowsort
SELECT DISTINCT col2 - + + col1 AS col2 FROM tab0
----
-11
-34
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2736
SELECT DISTINCT - COUNT( DISTINCT + + CAST( NULL AS SIGNED ) ) - - 77 + - 91 AS col2 FROM tab2
----
-14

skipif mysql # not compatible
query I rowsort label-2736
SELECT DISTINCT - COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) ) - - 77 + - 91 AS col2 FROM tab2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT ALL - 5 + + + COUNT( * ) FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-2737
SELECT ALL - 5 + + + COUNT ( * ) FROM tab2
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-2738
SELECT ALL + col0 DIV - 40 - - 46 * - 34 col2 FROM tab1 cor0
----
-1565
-1566
-1566

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2738
SELECT ALL + col0 / - 40 - - 46 * - 34 col2 FROM tab1 cor0
----
-1565
-1566
-1566

query I rowsort
SELECT - col0 * + 5 - col2 FROM tab0 AS cor0
----
-122
-445
-584

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * - + col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2741
SELECT CAST( - + 66 AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a

skipif mysql # not compatible
query I rowsort label-2741
SELECT CAST ( - + 66 AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a

onlyif mysql # DIV for integer division: 
query II rowsort label-2742
SELECT ALL col0 AS col0, col2 DIV + col0 FROM tab1
----
51
1
85
0
91
0

skipif mysql # not compatible
query II rowsort label-2742
SELECT ALL col0 AS col0, col2 / + col0 FROM tab1
----
51
1
85
0
91
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2743
SELECT DISTINCT 98 * - + col1 * - 42 AS col2, + 1 * - col0 DIV + + 94 + col2 AS col1 FROM tab1
----
193452
68
20580
59
57624
96

skipif mysql # not compatible
query II rowsort label-2743
SELECT DISTINCT 98 * - + col1 * - 42 AS col2, + 1 * - col0 / + + 94 + col2 AS col1 FROM tab1
----
193452
68
20580
59
57624
96

query II rowsort
SELECT + col2 AS col2, col1 - col1 + - col0 + + - 51 * + 78 AS col1 FROM tab2 AS cor0
----
23
-4024
40
-4042
58
-4053

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT ALL - COUNT( * ) * - 78 + + + COUNT( * ) FROM tab2 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-2745
SELECT ALL - COUNT ( * ) * - 78 + + + COUNT ( * ) FROM tab2 AS cor0
----
237

query I rowsort
SELECT ALL 28 * + + col0 + - + 44 + + ( + + col2 ) AS col2 FROM tab2 AS cor0
----
1267
1788
2114

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> - col1 - - col1
----

query I rowsort
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE NOT + col0 + + - 14 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - 95 * + + 20 FROM tab2 cor0
----
-1900
-1900
-1900

query II rowsort
SELECT 74 * + + 34, + 3 AS col1 FROM tab1
----
2516
3
2516
3
2516
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2751
SELECT 92 * - MAX( DISTINCT + col0 ) AS col2 FROM tab2
----
-6900

skipif mysql # not compatible
query I rowsort label-2751
SELECT 92 * - MAX ( DISTINCT + col0 ) AS col2 FROM tab2
----
-6900

query I rowsort
SELECT DISTINCT - ( + ( - 61 ) ) * 85 FROM tab0
----
5185

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT 15 * + + COUNT( * ) FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-2753
SELECT 15 * + + COUNT ( * ) FROM tab1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT - SUM( ALL - ( - + col0 ) ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-2754
SELECT - SUM ( ALL - ( - + col0 ) ) FROM tab0
----
-199

query I rowsort
SELECT DISTINCT - 22 * col1 * col1 FROM tab0
----
-144342
-22
-9702

onlyif mysql # DIV for integer division: 
query I rowsort label-2756
SELECT + col0 DIV + 19 FROM tab1 AS cor0
----
2
4
4

skipif mysql # not compatible
query I rowsort label-2756
SELECT + col0 / + 19 FROM tab1 AS cor0
----
2
4
4

query I rowsort
SELECT + 69 + - col0 FROM tab0
----
-18
-28
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2758
SELECT ALL + COUNT( * ) AS col2, CAST( NULL AS SIGNED ) + 71 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9
NULL

skipif mysql # not compatible
query II rowsort label-2758
SELECT ALL + COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) + 71 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT DISTINCT - MAX( + + col2 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2759
SELECT DISTINCT - MAX ( + + col2 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT + 41 * 18 + col1 + 38 AS col0 FROM tab2
----
827
843
853

query I rowsort
SELECT + 55 + + col1 + - col1 FROM tab0
----
55
55
55

query I rowsort
SELECT ALL - col2 * 87 AS col1 FROM tab1
----
-5133
-5916
-8352

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 39 * 54 col1 FROM tab0 cor0
----
2106
2106
2106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2764
SELECT DISTINCT + COUNT( * ) DIV - MIN( + + col2 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2764
SELECT DISTINCT + COUNT ( * ) / - MIN ( + + col2 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT + + col0 * 3 AS col2 FROM tab2 AS cor0
----
138
192
225

query I rowsort
SELECT DISTINCT - col0 FROM tab2 cor0 WHERE NOT NULL > NULL
----

query II rowsort
SELECT + 84 AS col1, - ( - col2 ) AS col1 FROM tab0 cor0
----
84
10
84
47
84
99

query I rowsort
SELECT ALL + 36 * col1 FROM tab1 AS cor0
----
1692
180
504

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2769
SELECT * FROM tab1 cor0 WHERE ( + 76 * - - CAST( + col0 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2769
SELECT * FROM tab1 cor0 WHERE ( + 76 * - - CAST ( + col0 AS INTEGER ) ) IS NULL
----

query I rowsort
SELECT + 9 - - col1 AS col2 FROM tab1 AS cor0
----
14
23
56

query I rowsort
SELECT + col2 * - col1 - + 24 AS col0 FROM tab1
----
-1368
-319
-3220

query I rowsort
SELECT - col1 - - col2 + + col0 FROM tab0
----
-19
195
76

query I rowsort
SELECT ALL col0 + + col2 * - + col1 * + + col1 AS col0 FROM tab1
----
-1390
-150121
-18765

onlyif mysql # aggregate syntax: 
query I rowsort label-2774
SELECT ALL - COUNT( * ) + 73 FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-2774
SELECT ALL - COUNT ( * ) + 73 FROM tab2
----
70

query I rowsort
SELECT + col2 * col1 - + 9 AS col2 FROM tab0
----
201
3798
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2776
SELECT DISTINCT col0, + col1 * + 11 AS col2 FROM tab2 WHERE CAST( - 63 AS SIGNED ) IS NOT NULL AND ( NOT 57 / col1 IS NOT NULL )
----

skipif mysql # not compatible
query II rowsort label-2776
SELECT DISTINCT col0, + col1 * + 11 AS col2 FROM tab2 WHERE CAST ( - 63 AS INTEGER ) IS NOT NULL AND ( NOT 57 / col1 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT DISTINCT - 89 - - MAX( DISTINCT + col1 ) FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-2777
SELECT DISTINCT - 89 - - MAX ( DISTINCT + col1 ) FROM tab2
----
-12

query III rowsort
SELECT * FROM tab2 WHERE - + col1 * - + col0 / + ( col0 ) <> 65
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 52 <> - col1
----

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT NULL > + 32
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2781
SELECT - + CAST( - col2 AS SIGNED ) * col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND + 64 - - col1
----

skipif mysql # not compatible
query I rowsort label-2781
SELECT - + CAST ( - col2 AS INTEGER ) * col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND + 64 - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT - 55 * + COUNT( * ) FROM tab1 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-2782
SELECT - 55 * + COUNT ( * ) FROM tab1 AS cor0
----
-165

query II rowsort
SELECT - ( 39 ), col1 FROM tab1
----
-39
14
-39
47
-39
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT DISTINCT - SUM( - 35 ) FROM tab1
----
105

skipif mysql # not compatible
query I rowsort label-2784
SELECT DISTINCT - SUM ( - 35 ) FROM tab1
----
105

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE NOT col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT DISTINCT - - SUM( - 99 ) FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-2786
SELECT DISTINCT - - SUM ( - 99 ) FROM tab0 AS cor0
----
-297

query I rowsort
SELECT + - ( - 64 ) FROM tab2 cor0
----
64
64
64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2788
SELECT * FROM tab2 AS cor0 WHERE NOT 57 * col0 BETWEEN 61 - + + col2 * + col2 / - col2 + + - ( col2 ) / 17 * - + col1 AND + + CAST( ( - 7 ) AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2788
SELECT * FROM tab2 AS cor0 WHERE NOT 57 * col0 BETWEEN 61 - + + col2 * + col2 / - col2 + + - ( col2 ) / 17 * - + col1 AND + + CAST ( ( - 7 ) AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - ( + + 69 ) FROM tab1 AS cor0
----
-69
-69
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT - ( ( COUNT( * ) ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2790
SELECT - ( ( COUNT ( * ) ) ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - 58 * + 58 * col0 FROM tab0
----
-292668
-326308
-50460

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT MIN( DISTINCT + col1 ) * + COUNT( * ) FROM tab0 WHERE NOT + 82 * col2 * + + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2792
SELECT MIN ( DISTINCT + col1 ) * + COUNT ( * ) FROM tab0 WHERE NOT + 82 * col2 * + + col1 IS NULL
----
3

query I rowsort
SELECT ( - ( + col0 ) ) * - col1 AS col2 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT DISTINCT + - 65 * col1 FROM tab0 AS cor0
----
-1365
-5265
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT + 42 * COUNT( * ) + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-2795
SELECT + 42 * COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
129

query II rowsort
SELECT + + col2, 20 FROM tab0 cor0
----
10
20
47
20
99
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2797
SELECT - - CAST( NULL AS SIGNED ) col1, - col2 + - + 31 FROM tab2 AS cor0
----
NULL
-54
NULL
-71
NULL
-89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2797
SELECT - - CAST ( NULL AS INTEGER ) col1, - col2 + - + 31 FROM tab2 AS cor0
----
NULL
-54
NULL
-71
NULL
-89

query I rowsort
SELECT ALL + 63 + + + col1 AS col0 FROM tab1 AS cor0
----
110
68
77

query II rowsort
SELECT - col0 AS col2, 82 AS col0 FROM tab1 AS cor0
----
-51
82
-85
82
-91
82

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) BETWEEN ( col2 - + 43 * - col2 ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2801
SELECT ( CAST( + col2 AS SIGNED ) ) AS col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2801
SELECT ( CAST ( + col2 AS INTEGER ) ) AS col2 FROM tab2
----
23
40
58

query I rowsort
SELECT ( + col1 ) * col2 + - 83 * 41 AS col0 FROM tab0
----
-3193
-3304
404

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 30 IN ( - 79 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2804
SELECT DISTINCT - col2 DIV + 76 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-2804
SELECT DISTINCT - col2 / + 76 FROM tab1
----
-1
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + ( 52 ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 * - col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND ( col1 * - col1 + + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2809
SELECT 48 DIV + col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2809
SELECT 48 / + col0 FROM tab2
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT COUNT( ALL - 6 ) + SUM( ALL 66 ) AS col0 FROM tab2
----
201

skipif mysql # not compatible
query I rowsort label-2810
SELECT COUNT ( ALL - 6 ) + SUM ( ALL 66 ) AS col0 FROM tab2
----
201

query I rowsort
SELECT col1 * ( + col0 * + col1 ) AS col2 FROM tab0
----
38367
97
98415

query I rowsort
SELECT + 23 * col0 AS col0 FROM tab1
----
1173
1955
2093

query I rowsort
SELECT DISTINCT 68 + col2 AS col1 FROM tab1
----
127
136
164

query I rowsort
SELECT + 96 + - col1 FROM tab1
----
49
82
91

query I rowsort
SELECT - 13 * - 2 FROM tab1
----
26
26
26

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - col0 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT - 85 - COUNT( * ) col2 FROM tab0
----
-88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2817
SELECT - 85 - COUNT ( * ) col2 FROM tab0
----
-88

query I rowsort
SELECT - AVG ( ALL 24 ) AS col2 FROM tab1 WHERE col2 + - 29 * ( - 20 ) <= - 43 - col2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + 2 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) - 9 col0 FROM tab2
----
37
55
66

query I rowsort
SELECT DISTINCT - col0 * col0 FROM tab2 WHERE NOT - 5 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT ALL COUNT( 56 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2822
SELECT ALL COUNT ( 56 ) AS col0 FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2823
SELECT ALL 3 DIV + col2 + + col0 AS col2 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-2823
SELECT ALL 3 / + col2 + + col0 AS col2 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT DISTINCT + 60 * COUNT( * ) FROM tab0 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-2824
SELECT DISTINCT + 60 * COUNT ( * ) FROM tab0 AS cor0
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-2825
SELECT COUNT( DISTINCT ( col2 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2825
SELECT COUNT ( DISTINCT ( col2 ) ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col1 ) = - col1 * 58
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 AS col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2828
SELECT + + 68 + COUNT( * ) FROM tab2 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-2828
SELECT + + 68 + COUNT ( * ) FROM tab2 AS cor0
----
71

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 87 + - 50 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2830
SELECT CAST( - col0 AS SIGNED ) + 98 FROM tab1 AS cor0
----
13
47
7

skipif mysql # not compatible
query I rowsort label-2830
SELECT CAST ( - col0 AS INTEGER ) + 98 FROM tab1 AS cor0
----
13
47
7

query I rowsort
SELECT + 27 * col0 + + 29 FROM tab2 AS cor0
----
1271
1757
2054

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( col2 + col1 )
----

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2834
SELECT col1 DIV + 47 AS col1 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2834
SELECT col1 / + 47 AS col1 FROM tab1 AS cor0
----
0
0
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 / col0 NOT IN ( - 38 - + 79 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + 61 / - 61 )
----

query I rowsort
SELECT DISTINCT - ( - col1 ) FROM tab2 cor0 WHERE NULL BETWEEN ( + col1 ) AND - 64 * col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN + ( + 3 ) * col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT SUM( ALL 25 ) FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-2839
SELECT SUM ( ALL 25 ) FROM tab0 AS cor0
----
75

query I rowsort
SELECT ALL 60 + col1 / 62 AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN col1 AND NULL
----

query I rowsort
SELECT DISTINCT + 85 * - + col2 + ( col1 ) FROM tab0
----
-3914
-829
-8414

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2842
SELECT ALL col2 * CAST( NULL AS SIGNED ) + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2842
SELECT ALL col2 * CAST ( NULL AS INTEGER ) + col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( col0 * col2 ) <> ( - 89 + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT ALL ( COUNT( 83 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2844
SELECT ALL ( COUNT ( 83 ) ) FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - + col0 + - col0 col2 FROM tab1
----
-4368
-510
-765

query III rowsort
SELECT * FROM tab2 WHERE col2 IN ( col0 * - ( col1 ) + + col0 * col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2847
SELECT DISTINCT * FROM tab0 WHERE NOT ( + CAST( + ( CAST( NULL AS SIGNED ) ) AS SIGNED ) ) > ( col1 )
----

skipif mysql # not compatible
query III rowsort label-2847
SELECT DISTINCT * FROM tab0 WHERE NOT ( + CAST ( + ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) ) > ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2848
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) col1 FROM tab1 WHERE NOT + col2 / + col2 BETWEEN + col0 AND ( NULL )
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2848
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) col1 FROM tab1 WHERE NOT + col2 / + col2 BETWEEN + col0 AND ( NULL )
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2849
SELECT ALL - col1 * - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2849
SELECT ALL - col1 * - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 91 * - col1 FROM tab1 cor0
----
-1274
-4277
-455

query I rowsort
SELECT DISTINCT - + col1 * + col2 + col0 FROM tab1 cor0
----
-1293
-210
-3105

onlyif mysql # aggregate syntax: 
query I rowsort label-2852
SELECT DISTINCT + COUNT( * ) * + 24 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
72

skipif mysql # not compatible
query I rowsort label-2852
SELECT DISTINCT + COUNT ( * ) * + 24 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
72

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - ( 14 ) IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) <= 37 * + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2855
SELECT + col0 FROM tab0 WHERE ( NULL ) NOT BETWEEN - col2 AND - CAST( NULL AS SIGNED ) * + col0
----

skipif mysql # not compatible
query I rowsort label-2855
SELECT + col0 FROM tab0 WHERE ( NULL ) NOT BETWEEN - col2 AND - CAST ( NULL AS INTEGER ) * + col0
----

query III rowsort
SELECT * FROM tab1 WHERE + - 85 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2857
SELECT - CAST( NULL AS DECIMAL ) * + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2857
SELECT - CAST ( NULL AS REAL ) * + COUNT ( * ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + 32 ) IS NOT NULL
----

query I rowsort
SELECT ALL + 70 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
70
70
70

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 * + col2 >= + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - 29 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT DISTINCT - 89 * + ( MAX( DISTINCT + col1 ) ) FROM tab1
----
-4183

skipif mysql # not compatible
query I rowsort label-2862
SELECT DISTINCT - 89 * + ( MAX ( DISTINCT + col1 ) ) FROM tab1
----
-4183

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( + ( - - col0 ) ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2864
SELECT ALL - CAST( + - COUNT( * ) AS SIGNED ) * - 5 FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-2864
SELECT ALL - CAST ( + - COUNT ( * ) AS INTEGER ) * - 5 FROM tab2
----
-15

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 < + - 52
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2866
SELECT + col2 DIV - col1 * col2 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2866
SELECT + col2 / - col1 * col2 col2 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col0 ) IN ( + 72 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2868
SELECT ALL * FROM tab0 WHERE - col1 = CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2868
SELECT ALL * FROM tab0 WHERE - col1 = CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 66 FROM tab0 WHERE NOT NULL IS NOT NULL
----
66
66
66

onlyif mysql # DIV for integer division: 
query I rowsort label-2870
SELECT + 94 DIV - 63 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2870
SELECT + 94 / - 63 FROM tab0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2871
SELECT ALL - 94 DIV + - col1 AS col2 FROM tab1
----
18
2
6

skipif mysql # not compatible
query I rowsort label-2871
SELECT ALL - 94 / + - col1 AS col2 FROM tab1
----
18
2
6

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( 33 )
----

query I rowsort
SELECT ALL + - col0 * - col1 * - col1 + + col2 + + 91 * + 61 FROM tab0 AS cor0
----
-32806
-92817
5553

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2874
SELECT 52 * 8 DIV COUNT( * ) col0 FROM tab0
----
138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2874
SELECT 52 * 8 / COUNT ( * ) col0 FROM tab0
----
138

query I rowsort
SELECT 0 * - + 12 AS col0 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2876
SELECT DISTINCT + 46 DIV + + 60 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2876
SELECT DISTINCT + 46 / + + 60 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2877
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL > ( NULL )
----
0

query I rowsort
SELECT + + 9 FROM tab0 cor0
----
9
9
9

query II rowsort
SELECT - col2, col2 AS col2 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

query I rowsort
SELECT + + 25 AS col2 FROM tab0 AS cor0
----
25
25
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col0 + - + col2 AS col1 FROM tab1
----
-144
-147
-159

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2883
SELECT DISTINCT * FROM tab0 WHERE ( NULL NOT IN ( - CAST( + col0 AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-2883
SELECT DISTINCT * FROM tab0 WHERE ( NULL NOT IN ( - CAST ( + col0 AS INTEGER ) ) )
----

query I rowsort
SELECT + 1 + - + col0 FROM tab2
----
-45
-63
-74

query I rowsort
SELECT DISTINCT - ( 24 ) + col1 FROM tab2
----
27
43
53

query I rowsort
SELECT DISTINCT + col0 * + + 3 FROM tab1 WHERE NOT NULL IS NOT NULL
----
153
255
273

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col1 <= NULL )
----

query I rowsort
SELECT + - ( - + 5 ) * - - col1 AS col1 FROM tab0 AS cor0
----
105
405
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT - + 9 * - COUNT( * ) FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-2889
SELECT - + 9 * - COUNT ( * ) FROM tab1 AS cor0
----
27

query I rowsort
SELECT DISTINCT + 45 + col1 + + ( + + col1 ) * - col1 AS col1 FROM tab0 AS cor0
----
-375
-6435
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT DISTINCT + SUM( ALL col2 ) + + COUNT( * ) + - 61 FROM tab1
----
165

skipif mysql # not compatible
query I rowsort label-2891
SELECT DISTINCT + SUM ( ALL col2 ) + + COUNT ( * ) + - 61 FROM tab1
----
165

query I rowsort
SELECT col2 + - 41 + col1 * 66 AS col1 FROM tab1
----
3129
348
979

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT 98 + - COUNT( * ) FROM tab2 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-2893
SELECT 98 + - COUNT ( * ) FROM tab2 AS cor0
----
95

query I rowsort
SELECT col0 * + - col0 + - - 6 FROM tab1 cor0
----
-2595
-7219
-8275

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) = + + 92 + - - ( 51 ) * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT - COUNT( * ) * - - 53 AS col0 FROM tab0 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-2896
SELECT - COUNT ( * ) * - - 53 AS col0 FROM tab0 AS cor0
----
-159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2897
SELECT ALL + COUNT( DISTINCT + CAST( - ( col2 ) AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2897
SELECT ALL + COUNT ( DISTINCT + CAST ( - ( col2 ) AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2898
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > - CAST( + - col0 AS SIGNED ) * + - col0
----

skipif mysql # not compatible
query III rowsort label-2898
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > - CAST ( + - col0 AS INTEGER ) * + - col0
----

query I rowsort
SELECT + ( 20 ) * col1 * - 14 FROM tab1 AS cor0
----
-13160
-1400
-3920

query I rowsort
SELECT ALL 12 * - - col1 FROM tab0
----
12
252
972

query I rowsort
SELECT DISTINCT - ( + - 39 ) AS col2 FROM tab2
----
39

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( + ( - col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2903
SELECT ALL COUNT( * ) * - - 3 AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-2903
SELECT ALL COUNT ( * ) * - - 3 AS col0 FROM tab1
----
9

query II rowsort
SELECT DISTINCT - 33 * + + ( - col1 ), col2 FROM tab1
----
1551
68
165
59
462
96

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 * + 44 / ( + - col1 ) * + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NOT NULL NOT BETWEEN col0 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT - SUM( ALL + + 76 ) AS col1 FROM tab0
----
-228

skipif mysql # not compatible
query I rowsort label-2907
SELECT - SUM ( ALL + + 76 ) AS col1 FROM tab0
----
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT DISTINCT - + COUNT( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2908
SELECT DISTINCT - + COUNT ( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT DISTINCT + + col2 * + col0 * col1 AS col1, 3 - + col1 FROM tab0 AS cor0
----
18270
-18
57105
-78
9603
2

query I rowsort
SELECT - + col1 AS col1 FROM tab0 WHERE NOT ( ( NULL ) IS NOT NULL )
----
-1
-21
-81

query I rowsort
SELECT - 45 AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - + col1 col0 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + col1 - col0 col1 FROM tab1 AS cor0
----
-23
-75
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 30 * + 14 ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2915
SELECT DISTINCT - 1 * - col2 * - col1 + - + col1 + + col1 - CAST( - 98 AS SIGNED ) DIV - col0 - + - col2 + + col2 * - 26 AS col0 FROM tab1
----
-1771
-3745
-4897

skipif mysql # not compatible
query I rowsort label-2915
SELECT DISTINCT - 1 * - col2 * - col1 + - + col1 + + col1 - CAST ( - 98 AS INTEGER ) / - col0 - + - col2 + + col2 * - 26 AS col0 FROM tab1
----
-1771
-3745
-4897

query I rowsort
SELECT ALL - col2 + 38 AS col1 FROM tab1
----
-21
-30
-58

query I rowsort
SELECT + 49 * - 51 FROM tab0
----
-2499
-2499
-2499

query II rowsort
SELECT 52, 42 AS col2 FROM tab1
----
52
42
52
42
52
42

query II rowsort
SELECT - 16 - - 25 * - - col0, col1 FROM tab1
----
1259
14
2109
5
2259
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) col1 FROM tab0 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT + col2 + + 75 + + col1 FROM tab2
----
149
192
200

query I rowsort
SELECT ( col1 ) - 28 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 79 NOT BETWEEN ( + - col1 ) AND 68 + ( - + col1 ) + 90 + - - col0
----

query I rowsort
SELECT DISTINCT + + 16 AS col0 FROM tab1 AS cor0
----
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL col1, - col2 col0, + col0 AS col2 FROM tab1 cor0
----
9 values hashing to 0d5867413e73ba22cc05aed5d628ebc3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL >= 57 * + col2 - - 99
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 17 * + 57 <> ( - ( 97 ) + - - col1 + + col1 + 71 + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2928
SELECT + ( SUM( DISTINCT 4 ) ) AS col1 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-2928
SELECT + ( SUM ( DISTINCT 4 ) ) AS col1 FROM tab0 AS cor0
----
4

query I rowsort
SELECT 99 AS col2 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT + - col2 * + 67 FROM tab2 AS cor0
----
-1541
-2680
-3886

query II rowsort
SELECT - col2 * - col1, col2 AS col1 FROM tab1
----
1344
96
295
59
3196
68

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( NULL ) < 46 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2933
SELECT 96 DIV COUNT( * ) * + MIN( col2 ) AS col0 FROM tab2
----
736

skipif mysql # not compatible
query I rowsort label-2933
SELECT 96 / COUNT ( * ) * + MIN ( col2 ) AS col0 FROM tab2
----
736

onlyif mysql # DIV for integer division: 
query I rowsort label-2934
SELECT ( col2 ) * col2 DIV + + col0 FROM tab0
----
1
101
147

skipif mysql # not compatible
query I rowsort label-2934
SELECT ( col2 ) * col2 / + + col0 FROM tab0
----
1
101
147

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 * + + col0 >= - col0
----

query I rowsort
SELECT ALL + 85 * - - 80 * - col2 AS col2 FROM tab0
----
-319600
-673200
-68000

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 = 1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( - 11 ) + - + 71 FROM tab1 AS cor0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT - MIN( - ( + 30 ) ) AS col2 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-2939
SELECT - MIN ( - ( + 30 ) ) AS col2 FROM tab2 AS cor0
----
30

query I rowsort
SELECT 86 FROM tab1 AS cor0 WHERE NOT 62 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + 75 + - 60 + + ( + col2 ) col0 FROM tab1
----
4424
5108
7236

onlyif mysql # aggregate syntax: 
query I rowsort label-2942
SELECT DISTINCT MAX( col2 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2942
SELECT DISTINCT MAX ( col2 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 82 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 10 * + - col1 / 42 * - - col1 IS NOT NULL
----

query I rowsort
SELECT + col1 + + ( + col1 ) * - + col0 * col0 AS col0 FROM tab2 AS cor0
----
-107865
-315315
-376808

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 17 * col2 col2 FROM tab0 AS cor0
----
1683
170
799

query I rowsort
SELECT ALL - col0 + col0 * - 85 FROM tab2 AS cor0
----
-3956
-5504
-6450

onlyif mysql # DIV for integer division: 
query I rowsort label-2948
SELECT ALL - col2 DIV + + col2 - - + col0 + - col2 AS col1 FROM tab2 AS cor0
----
16
22
23

skipif mysql # not compatible
query I rowsort label-2948
SELECT ALL - col2 / + + col2 - - + col0 + - col2 AS col1 FROM tab2 AS cor0
----
16
22
23

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 * + - col2 - + 79 + + 37 IN ( 21, - col2, col2, - - 4 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2950
SELECT + - 19 + - ( + COUNT( + - CAST( + col1 AS SIGNED ) ) ) FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-2950
SELECT + - 19 + - ( + COUNT ( + - CAST ( + col1 AS INTEGER ) ) ) FROM tab0 AS cor0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2951
SELECT DISTINCT + - 14 + COUNT( * ) FROM tab2 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-2951
SELECT DISTINCT + - 14 + COUNT ( * ) FROM tab2 AS cor0
----
-11

query I rowsort
SELECT ALL + col2 * - + col1 + 34 FROM tab1 AS cor0
----
-1310
-261
-3162

query I rowsort
SELECT ALL + col0 + col0 - + + col2 + + 11 + - 78 FROM tab1 AS cor0
----
-61
44
47

query I rowsort
SELECT + + col1 + - - 57 AS col1 FROM tab0 AS cor0
----
138
58
78

query I rowsort
SELECT - col1 FROM tab1 cor0 WHERE col1 + col1 IS NOT NULL
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 11 + col2 col0 FROM tab0 cor0
----
110
21
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT ALL - 66 + COUNT( * ) + - + MIN( 29 ) FROM tab1
----
-92

skipif mysql # not compatible
query I rowsort label-2957
SELECT ALL - 66 + COUNT ( * ) + - + MIN ( 29 ) FROM tab1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT DISTINCT - COUNT( * ) + - 74 AS col0 FROM tab0
----
-77

skipif mysql # not compatible
query I rowsort label-2958
SELECT DISTINCT - COUNT ( * ) + - 74 AS col0 FROM tab0
----
-77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN + ( - 25 ) / ( - - col0 ) AND + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2960
SELECT ALL - MAX( DISTINCT col0 ) + - + 44 AS col1 FROM tab1
----
-135

skipif mysql # not compatible
query I rowsort label-2960
SELECT ALL - MAX ( DISTINCT col0 ) + - + 44 AS col1 FROM tab1
----
-135

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - 26 col2 FROM tab2
----
-1196
-1664
-1950

onlyif mysql # DIV for integer division: 
query II rowsort label-2962
SELECT ALL - - 8 DIV + - 15 AS col2, 40 * + col1 FROM tab1 AS cor0
----
0
1880
0
200
0
560

skipif mysql # not compatible
query II rowsort label-2962
SELECT ALL - - 8 / + - 15 AS col2, 40 * + col1 FROM tab1 AS cor0
----
0
1880
0
200
0
560

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT ALL ( + SUM( + + col0 ) ) AS col2 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-2963
SELECT ALL ( + SUM ( + + col0 ) ) AS col2 FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-2964
SELECT DISTINCT ( + - SUM( - 12 ) ) FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-2964
SELECT DISTINCT ( + - SUM ( - 12 ) ) FROM tab1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT ALL + 57 * + ( - MAX( ALL 78 ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-4446

skipif mysql # not compatible
query I rowsort label-2965
SELECT ALL + 57 * + ( - MAX ( ALL 78 ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-4446

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2966
SELECT DISTINCT - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2966
SELECT DISTINCT - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT ALL - 90 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query I rowsort
SELECT + col2 * + 20 * - col2 AS col1 FROM tab1
----
-184320
-69620
-92480

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2969
SELECT ALL * FROM tab1 WHERE CAST( - col2 AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-2969
SELECT ALL * FROM tab1 WHERE CAST ( - col2 AS INTEGER ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) = - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT + + MIN( ALL col0 ) AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2971
SELECT + + MIN ( ALL col0 ) AS col0 FROM tab2 AS cor0
----
46

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 BETWEEN - - 20 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT - MIN( DISTINCT 66 ) FROM tab0 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2973
SELECT - MIN ( DISTINCT 66 ) FROM tab0 cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT - + COUNT( * ) * + 29 FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-2974
SELECT - + COUNT ( * ) * + 29 FROM tab0 AS cor0
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-2975
SELECT DISTINCT - col2 DIV - - 85 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2975
SELECT DISTINCT - col2 / - - 85 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 99 col2 FROM tab0 AS cor0
----
-99
-99
-99

query I rowsort
SELECT ALL - - ( 80 ) FROM tab1 AS cor0
----
80
80
80

query II rowsort
SELECT - 20 AS col2, col0 AS col1 FROM tab1
----
-20
51
-20
85
-20
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2979
SELECT 65 DIV - - COUNT( * ) FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-2979
SELECT 65 / - - COUNT ( * ) FROM tab0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT - MIN( DISTINCT - - col0 ) AS col1 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-2980
SELECT - MIN ( DISTINCT - - col0 ) AS col1 FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2981
SELECT ALL 87 * + COUNT( * ) AS col2 FROM tab2 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2981
SELECT ALL 87 * + COUNT ( * ) AS col2 FROM tab2 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2982
SELECT DISTINCT ( - 16 ), + COUNT( * ) col2 FROM tab2
----
-16
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2982
SELECT DISTINCT ( - 16 ), + COUNT ( * ) col2 FROM tab2
----
-16
3

query II rowsort
SELECT ALL + 50 AS col2, + col1 AS col2 FROM tab1 AS cor0
----
50
14
50
47
50
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2984
SELECT + COUNT( * ) DIV - - 83 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2984
SELECT + COUNT ( * ) / - - 83 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( col0 * + - col1 + - + col1, + col1 + col0 * col1 + + + col0, + 65, - 10 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2986
SELECT ALL col2 / CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2986
SELECT ALL col2 / CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2987
SELECT ALL * FROM tab2 WHERE NOT + 62 IN ( - col2 * - col1 * + ( CAST( - col0 AS SIGNED ) ) + 73, 87 + + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2987
SELECT ALL * FROM tab2 WHERE NOT + 62 IN ( - col2 * - col1 * + ( CAST ( - col0 AS INTEGER ) ) + 73, 87 + + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2988
SELECT DISTINCT 23 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2988
SELECT DISTINCT 23 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query II rowsort
SELECT - - col0 + col2, col0 FROM tab0 AS cor0
----
196
97
62
15
97
87

onlyif mysql # aggregate syntax: 
query II rowsort label-2990
SELECT COUNT( ALL col2 ) col2, 77 FROM tab0 AS cor0
----
3
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2990
SELECT COUNT ( ALL col2 ) col2, 77 FROM tab0 AS cor0
----
3
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2991
SELECT DISTINCT - COUNT( * ) * 78 - - 71 FROM tab2 AS cor0 WHERE NOT + CAST( + - col1 AS SIGNED ) BETWEEN NULL AND NULL
----
71

skipif mysql # not compatible
query I rowsort label-2991
SELECT DISTINCT - COUNT ( * ) * 78 - - 71 FROM tab2 AS cor0 WHERE NOT + CAST ( + - col1 AS INTEGER ) BETWEEN NULL AND NULL
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT DISTINCT + MAX( + 6 ) + - 59 AS col2 FROM tab0 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-2992
SELECT DISTINCT + MAX ( + 6 ) + - 59 AS col2 FROM tab0 AS cor0
----
-53

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 70 / - - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 cor0 WHERE 36 IS NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE 88 NOT IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col1 * col1 - - - col1 * + 81, + col1 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-1598
47
-380
5
-938
14

query I rowsort
SELECT + col2 * - ( + 38 ) AS col1 FROM tab1 AS cor0
----
-2242
-2584
-3648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2998
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col0 + - col1 + + ( - 86 ) * col1 * col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2998
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col0 + - col1 + + ( - 86 ) * col1 * col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2999
SELECT ALL - COUNT( * ) * 92 * COUNT( * ), - COUNT( * ) + 55 AS col2 FROM tab0, tab2 AS cor0
----
-7452
46

skipif mysql # not compatible
query II rowsort label-2999
SELECT ALL - COUNT ( * ) * 92 * COUNT ( * ), - COUNT ( * ) + 55 AS col2 FROM tab0, tab2 AS cor0
----
-7452
46

query I rowsort
SELECT col1 - - - col1 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT 79 - 21 AS col0 FROM tab1
----
58
58
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3002
SELECT - 37 - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3002
SELECT - 37 - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 41 - + 78 col0 FROM tab0 cor0
----
-119

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 AND + 40 / + - 24
----

query I rowsort
SELECT ALL + + 37 - + col0 * 84 FROM tab2 AS cor0
----
-3827
-5339
-6263

onlyif mysql # aggregate syntax: 
query I rowsort label-3006
SELECT - COUNT( * ) + - - 9 * - - 74 FROM tab1 AS cor0
----
663

skipif mysql # not compatible
query I rowsort label-3006
SELECT - COUNT ( * ) + - - 9 * - - 74 FROM tab1 AS cor0
----
663

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT - ( + COUNT( - + col0 ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3007
SELECT - ( + COUNT ( - + col0 ) ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT 35 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

onlyif mysql # aggregate syntax: 
query I rowsort label-3009
SELECT MIN( + ( + ( + col0 ) ) ) AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-3009
SELECT MIN ( + ( + ( + col0 ) ) ) AS col1 FROM tab0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3010
SELECT DISTINCT 96 * - + CAST( NULL AS SIGNED ) * 98 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3010
SELECT DISTINCT 96 * - + CAST ( NULL AS INTEGER ) * 98 AS col0 FROM tab1
----
NULL

query II rowsort
SELECT ALL - col1, col1 AS col1 FROM tab2 WHERE + + col2 IS NOT NULL
----
-51
51
-67
67
-77
77

query I rowsort
SELECT 25 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT DISTINCT - + col1 AS col2 FROM tab1 WHERE 99 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 38 NOT BETWEEN NULL AND - - col1 * - 42
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT + MAX( ALL - 68 ) FROM tab0
----
-68

skipif mysql # not compatible
query I rowsort label-3015
SELECT + MAX ( ALL - 68 ) FROM tab0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT DISTINCT COUNT( DISTINCT 77 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3016
SELECT DISTINCT COUNT ( DISTINCT 77 ) FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3017
SELECT DISTINCT - 16 / + CAST( NULL AS SIGNED ) * + 56 * col2 * - 94 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3017
SELECT DISTINCT - 16 / + CAST ( NULL AS INTEGER ) * + 56 * col2 * - 94 FROM tab1
----
NULL

query I rowsort
SELECT col1 + - + ( - 27 ) AS col2 FROM tab0 WHERE NOT - - ( col1 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT DISTINCT COUNT( * ) - + MAX( - col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3019
SELECT DISTINCT COUNT ( * ) - + MAX ( - col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> col1
----
NULL

query I rowsort
SELECT + 53 * - 96 + + 16 FROM tab2 AS cor0 WHERE + col0 + + col0 IS NOT NULL
----
-5072
-5072
-5072

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3021
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE - col2 / CAST( - CAST( + 42 AS SIGNED ) AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3021
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE - col2 / CAST ( - CAST ( + 42 AS INTEGER ) AS INTEGER ) IS NULL
----
0

query I rowsort
SELECT + 53 AS col2 FROM tab0 WHERE col0 / + col2 < NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT ( NULL IS NOT NULL )
----
14
47
5

query I rowsort
SELECT col0 + + 75 FROM tab1 cor0
----
126
160
166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3025
SELECT ALL - 11 + + col1 AS col1 FROM tab0 AS cor0 WHERE NOT CAST( + + col0 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-3025
SELECT ALL - 11 + + col1 AS col1 FROM tab0 AS cor0 WHERE NOT CAST ( + + col0 AS INTEGER ) <= NULL
----

query I rowsort
SELECT + - col1 * + col1 + + 26 + - + 61 + 88 FROM tab2 AS cor0
----
-2548
-4436
-5876

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT ALL + COUNT( * ) col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3027
SELECT ALL + COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----
0

query I rowsort
SELECT 42 + + col0 * col1 FROM tab2 AS cor0
----
2388
4970
5067

query I rowsort
SELECT DISTINCT - col2 + + - col2 AS col1 FROM tab1 AS cor0
----
-118
-136
-192

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
14
47
5

query I rowsort
SELECT 87 + - + 29 + - 95 + - - 57 FROM tab1
----
20
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT DISTINCT - - COUNT( * ) FROM tab2 WHERE NULL = - col1
----
0

skipif mysql # not compatible
query I rowsort label-3032
SELECT DISTINCT - - COUNT ( * ) FROM tab2 WHERE NULL = - col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3033
SELECT DISTINCT - MAX( ALL + - col1 ) DIV + 45 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-3033
SELECT DISTINCT - MAX ( ALL + - col1 ) / + 45 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1

query III rowsort
SELECT ALL * FROM tab1 WHERE + 47 + - 8 + + col0 > + col0 * - ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 66 FROM tab1 WHERE - + 54 BETWEEN - + col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3036
SELECT ALL ( + 23 ) DIV + - ( 70 ) + + col1 + + - 16 + 46 + + 58 AS col1 FROM tab0
----
109
169
89

skipif mysql # not compatible
query I rowsort label-3036
SELECT ALL ( + 23 ) / + - ( 70 ) + + col1 + + - 16 + 46 + + 58 AS col1 FROM tab0
----
109
169
89

query I rowsort
SELECT DISTINCT col2 + + + col2 * + col0 AS col2 FROM tab0
----
752
880
9702

onlyif mysql # aggregate syntax: 
query II rowsort label-3038
SELECT - MAX( col0 ), + 26 AS col2 FROM tab1
----
-91
26

skipif mysql # not compatible
query II rowsort label-3038
SELECT - MAX ( col0 ), + 26 AS col2 FROM tab1
----
-91
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * - - col1 col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 + + 1 <= + col1
----

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
51
85
91

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 <= - 50
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3043
SELECT col1 DIV - - col1 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3043
SELECT col1 / - - col1 AS col1 FROM tab2
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3044
SELECT 85 DIV - col0 AS col1 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-3044
SELECT 85 / - col0 AS col1 FROM tab0 AS cor0
----
-5
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3045
SELECT ALL + col2 DIV 36 col1 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3045
SELECT ALL + col2 / 36 col1 FROM tab0 AS cor0
----
0
1
2

query II rowsort
SELECT DISTINCT - col0 AS col0, - col1 * - col1 * + 0 * - 24 - 63 * - col1 + + + 67 FROM tab2 AS cor0
----
-46
3280
-64
4918
-75
4288

onlyif mysql # aggregate syntax: 
query II rowsort label-3047
SELECT ALL - ( + + ( COUNT( * ) ) ) AS col1, 97 AS col0 FROM tab1 AS cor0
----
-3
97

skipif mysql # not compatible
query II rowsort label-3047
SELECT ALL - ( + + ( COUNT ( * ) ) ) AS col1, 97 AS col0 FROM tab1 AS cor0
----
-3
97

query II rowsort
SELECT DISTINCT + - col1 AS col0, - col1 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
-14
-14
-47
-47
-5
-5

query I rowsort
SELECT DISTINCT - 1 * - 54 AS col1 FROM tab0 cor0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3050
SELECT ALL CAST( col0 AS SIGNED ) FROM tab2 cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3050
SELECT ALL CAST ( col0 AS INTEGER ) FROM tab2 cor0
----
46
64
75

query III rowsort
SELECT ALL * FROM tab1 WHERE - - 34 * col0 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + + col2 * + + col1 col2 FROM tab0
----
-308367
-4410
-99

query I rowsort
SELECT DISTINCT 24 + - col1 FROM tab1
----
-23
10
19

onlyif mysql # DIV for integer division: 
query II rowsort label-3054
SELECT + col2 DIV + 77, - col0 col0 FROM tab0
----
0
-15
0
-87
1
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3054
SELECT + col2 / + 77, - col0 col0 FROM tab0
----
0
-15
0
-87
1
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3055
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( - col1, 28, CAST( + col2 AS SIGNED ), col1 )
----

skipif mysql # not compatible
query III rowsort label-3055
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( - col1, 28, CAST ( + col2 AS INTEGER ), col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE 93 * - 58 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3057
SELECT DISTINCT col2 FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) + - 81 >= - col2
----

skipif mysql # not compatible
query I rowsort label-3057
SELECT DISTINCT col2 FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) + - 81 >= - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3058
SELECT ALL * FROM tab1 WHERE + CAST( + - col0 AS SIGNED ) + + col2 + + col1 + col0 BETWEEN + col2 AND - 47
----

skipif mysql # not compatible
query III rowsort label-3058
SELECT ALL * FROM tab1 WHERE + CAST ( + - col0 AS INTEGER ) + + col2 + + col1 + col0 BETWEEN + col2 AND - 47
----

query II rowsort
SELECT - 22, + 23 AS col1 FROM tab2
----
-22
23
-22
23
-22
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT ALL + + SUM( ALL - - 44 ) AS col0 FROM tab0 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-3060
SELECT ALL + + SUM ( ALL - - 44 ) AS col0 FROM tab0 AS cor0
----
132

query I rowsort
SELECT DISTINCT - col0 - + col1 + col0 FROM tab0 cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3062
SELECT DISTINCT 47 col2, col1 + + ( - CAST( col2 AS SIGNED ) ) DIV col0 * - col0 + + col0 FROM tab2 AS cor0
----
47
141
47
142
47
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3062
SELECT DISTINCT 47 col2, col1 + + ( - CAST ( col2 AS INTEGER ) ) / col0 * - col0 + + col0 FROM tab2 AS cor0
----
47
141
47
142
47
97

query I rowsort
SELECT - ( - + col0 ) - - col1 + + - 83 * + col2 FROM tab0 AS cor0
----
-3805
-722
-8119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3064
SELECT + - 38 - - + CAST( NULL AS SIGNED ) + - - 86 * 48 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3064
SELECT + - 38 - - + CAST ( NULL AS INTEGER ) + - - 86 * 48 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3065
SELECT DISTINCT - MIN( 93 ) + COUNT( * ) FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-3065
SELECT DISTINCT - MIN ( 93 ) + COUNT ( * ) FROM tab0
----
-90

query I rowsort
SELECT ALL - 22 + + - col1 AS col2 FROM tab0
----
-103
-23
-43

query II rowsort
SELECT - col2, 83 AS col1 FROM tab1
----
-59
83
-68
83
-96
83

query III rowsort
SELECT * FROM tab2 WHERE NULL <= - 42 OR 91 + - 37 * + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3069
SELECT - ( - MAX( ALL + ( + col2 ) ) ) col2, COUNT( * ) AS col0 FROM tab1
----
96
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3069
SELECT - ( - MAX ( ALL + ( + col2 ) ) ) col2, COUNT ( * ) AS col0 FROM tab1
----
96
3

query I rowsort
SELECT ALL - 53 FROM tab1 WHERE ( - 20 ) >= NULL
----

query I rowsort
SELECT DISTINCT - ( - 54 ) AS col2 FROM tab1 AS cor0
----
54

query I rowsort
SELECT ALL - col1 * + + col2 AS col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3073
SELECT ALL CAST( NULL AS DECIMAL ) / + ( - 7 ) * + - col0 col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3073
SELECT ALL CAST ( NULL AS REAL ) / + ( - 7 ) * + - col0 col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + - ( col1 ) AS col1 FROM tab0
----
-210
-3807
-99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IS NULL OR col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( col0 ) + + col1 + + - ( + col1 ) FROM tab1 cor0
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-3077
SELECT - + col0 * + col2 * + + 38 * col0 + - + ( - - 41 ) DIV - ( + col0 ) + - 71 FROM tab0 AS cor0
----
-2876291
-35396729
-401919

skipif mysql # not compatible
query I rowsort label-3077
SELECT - + col0 * + col2 * + + 38 * col0 + - + ( - - 41 ) / - ( + col0 ) + - 71 FROM tab0 AS cor0
----
-2876291
-35396729
-401919

query I rowsort
SELECT ALL + + col1 + - col2 + - col2 * + - ( + col2 ) * - col1 FROM tab1 AS cor0
----
-129106
-17459
-217349

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 BETWEEN + - col1 AND NULL
----

query I rowsort
SELECT DISTINCT col2 + - + 99 FROM tab0
----
-52
-89
0

query II rowsort
SELECT DISTINCT 68 AS col2, - 81 AS col1 FROM tab1
----
68
-81

query I rowsort
SELECT DISTINCT - - col1 + 37 AS col2 FROM tab2 WHERE NOT + - 68 * col0 + + - col2 * + col1 - - 69 IS NULL
----
104
114
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * + + 5 + col1 col0 FROM tab1 cor0
----
-290
-293
-466

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3084
SELECT - col0 / CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3084
SELECT - col0 / CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( - - col2 ) * - + col0 * col0 FROM tab0 AS cor0
----
-10575
-75690
-931491

query I rowsort
SELECT DISTINCT + - col0 + - - 3 AS col1 FROM tab1 AS cor0
----
-48
-82
-88

query I rowsort
SELECT ALL + 47 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT DISTINCT + 17 * + col0 * col0 - 26 FROM tab1
----
122799
140751
44191

onlyif mysql # aggregate syntax: 
query I rowsort label-3089
SELECT DISTINCT COUNT( * ) - + 9 * 66 AS col1 FROM tab1
----
-591

skipif mysql # not compatible
query I rowsort label-3089
SELECT DISTINCT COUNT ( * ) - + 9 * 66 AS col1 FROM tab1
----
-591

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3090
SELECT DISTINCT * FROM tab0 WHERE NOT CAST( - - col0 AS SIGNED ) IS NOT NULL OR col2 <= + 43 / col2 + + col1 * - - col1 * + ( - 31 )
----

skipif mysql # not compatible
query III rowsort label-3090
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( - - col0 AS INTEGER ) IS NOT NULL OR col2 <= + 43 / col2 + + col1 * - - col1 * + ( - 31 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3091
SELECT ALL - 79 - - 17 DIV COUNT( * ) + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-3091
SELECT ALL - 79 - - 17 / COUNT ( * ) + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-71

query I rowsort
SELECT + col2 + + - 91 FROM tab1 AS cor0
----
-23
-32
5

query I rowsort
SELECT DISTINCT + + 1 - 86 - - col1 FROM tab2 AS cor0
----
-18
-34
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT + + MIN( col1 ) + + - COUNT( * ) col2 FROM tab2 cor0
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3094
SELECT + + MIN ( col1 ) + + - COUNT ( * ) col2 FROM tab2 cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT - COUNT( + - ( - 19 ) ) + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3095
SELECT - COUNT ( + - ( - 19 ) ) + COUNT ( * ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 <> ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT - SUM( DISTINCT - 91 ) + - + 48 AS col2 FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-3097
SELECT - SUM ( DISTINCT - 91 ) + - + 48 AS col2 FROM tab2 AS cor0
----
43

query I rowsort
SELECT ALL + 56 - - - col1 AS col1 FROM tab1 AS cor0
----
42
51
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3099
SELECT ALL - col2 DIV - - 8 FROM tab0 cor0
----
-1
-12
-5

skipif mysql # not compatible
query I rowsort label-3099
SELECT ALL - col2 / - - 8 FROM tab0 cor0
----
-1
-12
-5

query I rowsort
SELECT DISTINCT - 47 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT ALL MIN( ALL - col2 ) AS col1 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-3101
SELECT ALL MIN ( ALL - col2 ) AS col1 FROM tab0
----
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 73 col0 FROM tab2, tab1 AS cor0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3103
SELECT DISTINCT COUNT( ALL + - ( + 69 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3103
SELECT DISTINCT COUNT ( ALL + - ( + 69 ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3104
SELECT DISTINCT - MIN( - - 78 ) AS col0 FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-3104
SELECT DISTINCT - MIN ( - - 78 ) AS col0 FROM tab0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT + - COUNT( ALL - col1 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3105
SELECT + - COUNT ( ALL - col1 ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - + ( - - col2 ) FROM tab2 AS cor0
----
-23
-40
-58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 3 + + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3108
SELECT 4 + + COUNT( * ) - ( - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 WHERE NOT - - col1 + - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3108
SELECT 4 + + COUNT ( * ) - ( - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 WHERE NOT - - col1 + - col1 IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3109
SELECT 1 * + + CAST( + COUNT( * ) AS SIGNED ) + 84 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-3109
SELECT 1 * + + CAST ( + COUNT ( * ) AS INTEGER ) + 84 FROM tab1
----
87

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 * col2 <= + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - + 88 col1 FROM tab1 AS cor0
----
4488
7480
8008

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
51
85
91

query I rowsort
SELECT ALL - col2 + - 30 FROM tab0 AS cor0
----
-129
-40
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3114
SELECT ALL + col1 + + + CAST( col2 AS SIGNED ) + - col0 - - - col2 + + + col2 AS col0 FROM tab2 AS cor0
----
28
50
53

skipif mysql # not compatible
query I rowsort label-3114
SELECT ALL + col1 + + + CAST ( col2 AS INTEGER ) + - col0 - - - col2 + + + col2 AS col0 FROM tab2 AS cor0
----
28
50
53

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3115
SELECT DISTINCT - col2 * 11 DIV + + CAST( col0 AS SIGNED ) + - col0 FROM tab2 AS cor0
----
-51
-70
-83

skipif mysql # not compatible
query I rowsort label-3115
SELECT DISTINCT - col2 * 11 / + + CAST ( col0 AS INTEGER ) + - col0 FROM tab2 AS cor0
----
-51
-70
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 19 * col2 col2, col2 AS col0 FROM tab1
----
1121
59
1292
68
1824
96

query I rowsort
SELECT DISTINCT + 79 + - col1 * col2 + + col1 * + - ( - col1 ) AS col0 FROM tab0
----
-19
2833
310

query I rowsort
SELECT ALL 46 + + col1 AS col0 FROM tab0
----
127
47
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - - col2 ) + + ( + col1 ) col2 FROM tab0
----
-98
11
34

query I rowsort
SELECT DISTINCT col0 * + + 62 AS col2 FROM tab1
----
3162
5270
5642

query I rowsort
SELECT ALL - 25 + col1 + + 71 AS col2 FROM tab2
----
113
123
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 col2 FROM tab0
----
61
61
61

query I rowsort
SELECT col0 - + 26 FROM tab0
----
-11
61
71

query II rowsort
SELECT DISTINCT + - col0 * + col0 AS col0, - col1 + + + col2 - - col2 AS col2 FROM tab2 cor0
----
-2116
-5
-4096
3
-5625
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT ALL - COUNT( * ) + 89 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-3125
SELECT ALL - COUNT ( * ) + 89 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
264

onlyif mysql # aggregate syntax: 
query II rowsort label-3126
SELECT ALL - COUNT( * ) AS col1, - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
-9

skipif mysql # not compatible
query II rowsort label-3126
SELECT ALL - COUNT ( * ) AS col1, - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
-9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - ( - col2 ) ) NOT BETWEEN 87 + - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3128
SELECT - ( + - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3128
SELECT - ( + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 - - 8 - ( + 1 ) FROM tab0 AS cor0 WHERE col1 + col1 * + + col1 IS NULL
----

query II rowsort
SELECT DISTINCT + col1, col2 AS col2 FROM tab1 cor0
----
14
96
47
68
5
59

onlyif mysql # DIV for integer division: 
query I rowsort label-3131
SELECT - 67 DIV + col1 + + ( 36 ) FROM tab2 AS cor0
----
35
35
36

skipif mysql # not compatible
query I rowsort label-3131
SELECT - 67 / + col1 + + ( 36 ) FROM tab2 AS cor0
----
35
35
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT 49 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3132
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 49 <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3133
SELECT ALL - MAX( - col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3133
SELECT ALL - MAX ( - col0 ) FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-3134
SELECT DISTINCT + - 74 AS col2, - COUNT( * ) FROM tab1 cor0
----
-74
-3

skipif mysql # not compatible
query II rowsort label-3134
SELECT DISTINCT + - 74 AS col2, - COUNT ( * ) FROM tab1 cor0
----
-74
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3135
SELECT CAST( CAST( + + 64 AS SIGNED ) AS SIGNED ) * - ( - - 30 ) AS col0 FROM tab1
----
-1920
-1920
-1920

skipif mysql # not compatible
query I rowsort label-3135
SELECT CAST ( CAST ( + + 64 AS INTEGER ) AS INTEGER ) * - ( - - 30 ) AS col0 FROM tab1
----
-1920
-1920
-1920

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 < 52 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT COUNT( * ) * + + 27 AS col2 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-3137
SELECT COUNT ( * ) * + + 27 AS col2 FROM tab1
----
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3138
SELECT CAST( NULL AS DECIMAL ) * col1 * + - 5 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3138
SELECT CAST ( NULL AS REAL ) * col1 * + - 5 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 61 col0 FROM tab0
----
-61
-61
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT ALL MAX( ALL + 15 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3140
SELECT ALL MAX ( ALL + 15 ) FROM tab0 AS cor0
----
15

query I rowsort
SELECT DISTINCT + 38 AS col1 FROM tab0 cor0 WHERE NULL NOT BETWEEN - col0 - - + col1 + - col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + AVG ( ALL - col0 ) col2 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3143
SELECT col2 DIV - + 58 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3143
SELECT col2 / - + 58 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 70 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3145
SELECT + - col1 DIV + + 8 AS col0 FROM tab1 AS cor0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-3145
SELECT + - col1 / + + 8 AS col0 FROM tab1 AS cor0
----
-1
-5
0

query I rowsort
SELECT ALL + 14 + - col2 * - + ( + + col1 ) AS col1 FROM tab1 cor0
----
1358
309
3210

query I rowsort
SELECT + col1 + 33 - - + col0 + + col0 + - - ( + + col0 ) * col2 AS col0 FROM tab2 cor0
----
1234
2798
4600

query I rowsort
SELECT ALL - col1 * + - 15 + - col1 FROM tab1 AS cor0
----
196
658
70

query I rowsort
SELECT + col0 + - - col2 FROM tab0 cor0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT ALL - COUNT( * ) + + 62 * - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-3150
SELECT ALL - COUNT ( * ) + + 62 * - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-189

query I rowsort
SELECT 21 + 72 + ( col0 ) * - col1 FROM tab2
----
-2253
-4835
-4932

query I rowsort
SELECT DISTINCT 28 + - col2 AS col0 FROM tab2
----
-12
-30
5

query I rowsort
SELECT ALL 82 * - - col0 + col2 FROM tab1
----
4278
7029
7530

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 WHERE - + 71 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3155
SELECT - col1 DIV col1 * + col1 * + + col0 + - - 84 FROM tab0
----
-1131
-13
-1743

skipif mysql # not compatible
query I rowsort label-3155
SELECT - col1 / col1 * + col1 * + + col0 + - - 84 FROM tab0
----
-1131
-13
-1743

onlyif mysql # DIV for integer division: 
query I rowsort label-3156
SELECT ALL col0 + + 44 + ( + + col1 ) DIV - 77 + - 47 col1 FROM tab1
----
48
82
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3156
SELECT ALL col0 + + 44 + ( + + col1 ) / - 77 + - 47 col1 FROM tab1
----
48
82
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT + COUNT( * ) + + 2 FROM tab2, tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-3157
SELECT + COUNT ( * ) + + 2 FROM tab2, tab1 AS cor0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT DISTINCT + COUNT( * ) * + - 30 AS col0 FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-3158
SELECT DISTINCT + COUNT ( * ) * + - 30 AS col0 FROM tab1
----
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col0, col0 * col0 FROM tab1
----
14
2601
47
8281
5
7225

query II rowsort
SELECT + 36 * col2 AS col1, - col2 * + 7 AS col0 FROM tab0 AS cor0
----
1692
-329
3564
-693
360
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col1 - - + 90 AS col1, 55 col0 FROM tab0 AS cor0
----
69
55
89
55
9
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3162
SELECT - 27 - + MAX( - - col0 ) col0 FROM tab1
----
-118

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3162
SELECT - 27 - + MAX ( - - col0 ) col0 FROM tab1
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-3163
SELECT ALL - COUNT( * ) * + - 9 + - COUNT( * ) AS col2 FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-3163
SELECT ALL - COUNT ( * ) * + - 9 + - COUNT ( * ) AS col2 FROM tab2
----
24

query I rowsort
SELECT + ( + - 17 ) * - col0 + + col0 AS col1 FROM tab1
----
1530
1638
918

onlyif mysql # DIV for integer division: 
query I rowsort label-3165
SELECT DISTINCT - col1 DIV 71 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3165
SELECT DISTINCT - col1 / 71 FROM tab0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 12 col2 FROM tab2 AS cor0
----
-12
-12
-12

query II rowsort
SELECT ALL col1 AS col0, col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 / + col2 * - 81 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3168
SELECT ALL - COUNT( * ) DIV 90 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3168
SELECT ALL - COUNT ( * ) / 90 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - ( + - col1 ) AS col2 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3170
SELECT DISTINCT - - CAST( - col1 AS SIGNED ) AS col2, col0 * col2 AS col0 FROM tab0 AS cor0
----
-1
9603
-21
870
-81
705

skipif mysql # not compatible
query II rowsort label-3170
SELECT DISTINCT - - CAST ( - col1 AS INTEGER ) AS col2, col0 * col2 AS col0 FROM tab0 AS cor0
----
-1
9603
-21
870
-81
705

query I rowsort
SELECT + 6 FROM tab2 AS cor0 WHERE NOT NULL >= - col1
----

query I rowsort
SELECT ALL - col1 * + 38 FROM tab2
----
-1938
-2546
-2926

query I rowsort
SELECT ALL col0 * + + col1 AS col1 FROM tab1
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-3174
SELECT + COUNT( ALL + - col1 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3174
SELECT + COUNT ( ALL + - col1 ) col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3175
SELECT DISTINCT MIN( DISTINCT - 95 ) FROM tab1 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-3175
SELECT DISTINCT MIN ( DISTINCT - 95 ) FROM tab1 AS cor0
----
-95

query I rowsort
SELECT - col0 + + - col1 AS col2 FROM tab0 WHERE ( NOT col1 IS NULL )
----
-108
-96
-98

query I rowsort
SELECT - col2 + + + 34 AS col0 FROM tab1
----
-25
-34
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT DISTINCT COUNT( * ) * + - COUNT( * ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-3178
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab2
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 31 + + 37 col2 FROM tab1
----
115
73
82

query I rowsort
SELECT - 5 + - + col1 FROM tab2
----
-56
-72
-82

query I rowsort
SELECT - 73 * + col2 FROM tab1 AS cor0
----
-4307
-4964
-7008

query I rowsort
SELECT + col2 * - - col2 + + col0 FROM tab1 AS cor0
----
3566
4715
9267

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL = ( - - col1 )
----

query I rowsort
SELECT - ( + + ( + ( + col2 ) ) ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT + col1 + - 13 FROM tab0 AS cor0
----
-12
68
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3186
SELECT ALL col2 + - col2 * + CAST( col0 AS SIGNED ) FROM tab2
----
-1035
-2520
-4292

skipif mysql # not compatible
query I rowsort label-3186
SELECT ALL col2 + - col2 * + CAST ( col0 AS INTEGER ) FROM tab2
----
-1035
-2520
-4292

query I rowsort
SELECT DISTINCT + - col1 FROM tab2 WHERE col1 < + 59
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3188
SELECT DISTINCT 27 * + CAST( NULL AS SIGNED ) + - MIN( ALL + - col2 ) + ( - MAX( - + 51 ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3188
SELECT DISTINCT 27 * + CAST ( NULL AS INTEGER ) + - MIN ( ALL + - col2 ) + ( - MAX ( - + 51 ) ) AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3189
SELECT ALL - COUNT( * ) + - 45 * + - 88, CAST( - COUNT( + col2 ) AS SIGNED ) AS col1 FROM tab2
----
3957
-3

skipif mysql # not compatible
query II rowsort label-3189
SELECT ALL - COUNT ( * ) + - 45 * + - 88, CAST ( - COUNT ( + col2 ) AS INTEGER ) AS col1 FROM tab2
----
3957
-3

query I rowsort
SELECT 39 + + col1 AS col0 FROM tab1
----
44
53
86

query I rowsort
SELECT DISTINCT 11 - col2 AS col2 FROM tab0
----
-36
-88
1

query II rowsort
SELECT ALL col0 - + - 75 + col1, col1 * + col2 AS col0 FROM tab0
----
171
3807
173
99
183
210

onlyif mysql # DIV for integer division: 
query I rowsort label-3193
SELECT DISTINCT + 4 DIV - col2 - + 42 FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-3193
SELECT DISTINCT + 4 / - col2 - + 42 FROM tab0
----
-42

query I rowsort
SELECT DISTINCT - ( - 80 ) AS col1 FROM tab1 cor0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT ALL + ( 13 ) * - + COUNT( * ) col2 FROM tab1
----
-39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3195
SELECT ALL + ( 13 ) * - + COUNT ( * ) col2 FROM tab1
----
-39

query I rowsort
SELECT ALL + + col2 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT col2, + 41 FROM tab0
----
10
41
47
41
99
41

query I rowsort
SELECT DISTINCT col1 + - + col0 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + 19 * + - col2 FROM tab0
----
-1881
-190
-893

onlyif mysql # aggregate syntax: 
query I rowsort label-3200
SELECT + ( + + COUNT( * ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3200
SELECT + ( + + COUNT ( * ) ) FROM tab2 cor0
----
3

query II rowsort
SELECT DISTINCT + - 55 AS col2, 3 * - col0 FROM tab2 AS cor0
----
-55
-138
-55
-192
-55
-225

query I rowsort
SELECT DISTINCT - - col0 * col1 * - - col0 FROM tab1 AS cor0
----
36125
36414
389207

onlyif mysql # aggregate syntax: 
query II rowsort label-3203
SELECT DISTINCT + 94 * + COUNT( * ) + + MIN( ALL col1 ) AS col1, SUM( col1 ) FROM tab0 AS cor0
----
283
103

skipif mysql # not compatible
query II rowsort label-3203
SELECT DISTINCT + 94 * + COUNT ( * ) + + MIN ( ALL col1 ) AS col1, SUM ( col1 ) FROM tab0 AS cor0
----
283
103

query II rowsort
SELECT DISTINCT - col0 AS col2, + col2 AS col0 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3205
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 20 * 87 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3205
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 20 * 87 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL

query I rowsort
SELECT + col1 * + col1 * + - 28 FROM tab2
----
-125692
-166012
-72828

query I rowsort
SELECT DISTINCT 30 * col0 AS col1 FROM tab2
----
1380
1920
2250

query I rowsort
SELECT ALL ( + - col2 ) * - + col0 + + + col2 AS col2 FROM tab1
----
4992
5074
6256

query II rowsort
SELECT ALL - col2 * + col0, col1 AS col1 FROM tab1
----
-4896
14
-5015
5
-6188
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3210
SELECT + 63 * - + ( + col2 ) * + ( - 99 ) * + 28 * + col1 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3210
SELECT + 63 * - + ( + col2 ) * + ( - 99 ) * + 28 * + col1 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT ALL + ( - MIN( col0 ) ) AS col0 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3211
SELECT ALL + ( - MIN ( col0 ) ) AS col0 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT col1 * + col2 + + + 66 - + col2 / 15 - + col2 FROM tab0 WHERE NULL NOT BETWEEN + col1 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT ALL + - MIN( ALL - col1 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3213
SELECT ALL + - MIN ( ALL - col1 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT DISTINCT + COUNT( DISTINCT + + 8 ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3214
SELECT DISTINCT + COUNT ( DISTINCT + + 8 ) AS col0 FROM tab1
----
1

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE 82 IS NULL
----

query I rowsort
SELECT DISTINCT 48 + + col1 + + 39 * - - ( col1 ) AS col1 FROM tab0
----
3288
88
888

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3217
SELECT - 81 * + + 78 + + + SUM( - col1 ) AS col1, 40 * 77 + 63 DIV + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-6384
3101

skipif mysql # not compatible
query II rowsort label-3217
SELECT - 81 * + + 78 + + + SUM ( - col1 ) AS col1, 40 * 77 + 63 / + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-6384
3101

query II rowsort
SELECT ALL col2 AS col2, col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

query I rowsort
SELECT DISTINCT - ( + - ( - - col1 ) ) FROM tab1 AS cor0
----
14
47
5

query II rowsort
SELECT ALL + - 28, + 90 * - col2 AS col2 FROM tab0 AS cor0
----
-28
-4230
-28
-8910
-28
-900

query II rowsort
SELECT ALL 98 * col1 + + 91, + col0 FROM tab0 AS cor0
----
189
97
2149
87
8029
15

query I rowsort
SELECT + ( + + col1 ) + ( + - col1 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 35 + + col0 FROM tab2 AS cor0
----
110
81
99

query I rowsort
SELECT DISTINCT - 85 AS col0 FROM tab1 AS cor0 WHERE ( + 85 IS NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 53 / - col0 NOT BETWEEN - + col0 + - col2 AND - - 49
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT - 12 + + COUNT( * ) + COUNT( * ) * 20 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3226
SELECT - 12 + + COUNT ( * ) + COUNT ( * ) * 20 FROM tab1 AS cor0
----
51

query I rowsort
SELECT DISTINCT col0 + + 7 - - col0 * + col2 AS col2 FROM tab2
----
1111
2631
4432

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT + SUM( + + col1 ) + + MIN( ALL + + col0 ) AS col2 FROM tab2
----
241

skipif mysql # not compatible
query I rowsort label-3228
SELECT + SUM ( + + col1 ) + + MIN ( ALL + + col0 ) AS col2 FROM tab2
----
241

onlyif mysql # aggregate syntax: 
query I rowsort label-3229
SELECT - COUNT( ALL + + col0 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3229
SELECT - COUNT ( ALL + + col0 ) FROM tab2
----
-3

query I rowsort
SELECT ALL - col2 - 66 + - 12 AS col0 FROM tab0 AS cor0
----
-125
-177
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3231
SELECT ALL - + COUNT( * ) - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3231
SELECT ALL - + COUNT ( * ) - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3232
SELECT - - SUM( 82 ) FROM tab0 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-3232
SELECT - - SUM ( 82 ) FROM tab0 AS cor0
----
246

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3233
SELECT + 81 * - + CAST( NULL AS DECIMAL ) 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-3233
SELECT + 81 * - + CAST ( NULL AS REAL ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 + + col0 = ( 25 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 41 AS col0, col2 col0 FROM tab1
----
41
59
41
68
41
96

query I rowsort
SELECT ALL 57 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col1 * 95 + + + col1 AS col1 FROM tab1 AS cor0
----
-1316
-4418
-470

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3238
SELECT ALL - CAST( - + col1 AS SIGNED ) * - 40 FROM tab2 AS cor0
----
-2040
-2680
-3080

skipif mysql # not compatible
query I rowsort label-3238
SELECT ALL - CAST ( - + col1 AS INTEGER ) * - 40 FROM tab2 AS cor0
----
-2040
-2680
-3080

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT - + MIN( DISTINCT - col2 ) FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-3239
SELECT - + MIN ( DISTINCT - col2 ) FROM tab0 cor0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3240
SELECT + SUM( DISTINCT - CAST( col1 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-3240
SELECT + SUM ( DISTINCT - CAST ( col1 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT ALL - 68 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + 10 * - col1 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 26 * - col2 AS col1 FROM tab2
----
1040
1508
598

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3245
SELECT + CAST( - 58 AS SIGNED ) * + 75 FROM tab0
----
-4350
-4350
-4350

skipif mysql # not compatible
query I rowsort label-3245
SELECT + CAST ( - 58 AS INTEGER ) * + 75 FROM tab0
----
-4350
-4350
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT + COUNT( * ) * - SUM( 14 ) FROM tab2
----
-126

skipif mysql # not compatible
query I rowsort label-3246
SELECT + COUNT ( * ) * - SUM ( 14 ) FROM tab2
----
-126

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3247
SELECT + CAST( NULL AS SIGNED ) col2, + col2 AS col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3247
SELECT + CAST ( NULL AS INTEGER ) col2, + col2 AS col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3248
SELECT + CAST( - MAX( ALL + - col0 ) AS SIGNED ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
51

skipif mysql # not compatible
query I rowsort label-3248
SELECT + CAST ( - MAX ( ALL + - col0 ) AS INTEGER ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT DISTINCT - COUNT( ALL - 66 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3249
SELECT DISTINCT - COUNT ( ALL - 66 ) AS col1 FROM tab1
----
-3

query II rowsort
SELECT DISTINCT + 47 * 84, col1 * + col0 + col0 * 16 AS col0 FROM tab0
----
3948
1455
3948
1649
3948
3219

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3251
SELECT CAST( - + 13 AS SIGNED ) DIV - col1 * + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3251
SELECT CAST ( - + 13 AS INTEGER ) / - col1 * + col0 FROM tab2
----
0
0
0

query I rowsort
SELECT + + 71 * + 37 FROM tab0 AS cor0
----
2627
2627
2627

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3253
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * - CAST( NULL AS SIGNED ) + 76 = NULL
----

skipif mysql # not compatible
query III rowsort label-3253
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * - CAST ( NULL AS INTEGER ) + 76 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col0, - col2 AS col0 FROM tab2 AS cor0
----
51
-23
67
-58
77
-40

query I rowsort
SELECT DISTINCT - 43 + - 95 FROM tab2 AS cor0
----
-138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 26 + + col2 col0 FROM tab1 cor0
----
122
85
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL + 54 * - col2 + + col2 AS col0, - ( + 17 ) col2, ( - col0 ) FROM tab1
----
9 values hashing to 16a16d367a48c45f40b082b34fb4bd03

query I rowsort
SELECT col2 + + 39 AS col1 FROM tab1
----
107
135
98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3259
SELECT * FROM tab0 WHERE - ( - CAST( NULL AS SIGNED ) ) * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3259
SELECT * FROM tab0 WHERE - ( - CAST ( NULL AS INTEGER ) ) * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 / + col0 FROM tab2 WHERE + 38 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3261
SELECT + MAX( DISTINCT + col2 ) * COUNT( * ) + + ( - COUNT( col2 ) ) * + + 31 + + COUNT( * ) - - 81 AS col1 FROM tab1 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-3261
SELECT + MAX ( DISTINCT + col2 ) * COUNT ( * ) + + ( - COUNT ( col2 ) ) * + + 31 + + COUNT ( * ) - - 81 AS col1 FROM tab1 AS cor0
----
279

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE - col1 < - col2
----
46
64
75

query I rowsort
SELECT - 18 * + col2 AS col2 FROM tab1 AS cor0
----
-1062
-1224
-1728

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3264
SELECT DISTINCT - CAST( - ( col1 ) AS SIGNED ) * - col2 + + col1 + - - col2 DIV + + 95 FROM tab2 AS cor0
----
-1122
-3003
-3819

skipif mysql # not compatible
query I rowsort label-3264
SELECT DISTINCT - CAST ( - ( col1 ) AS INTEGER ) * - col2 + + col1 + - - col2 / + + 95 FROM tab2 AS cor0
----
-1122
-3003
-3819

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * + col0 = + col1
----

query II rowsort
SELECT - 68, - 59 AS col2 FROM tab0
----
-68
-59
-68
-59
-68
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT ALL - MAX( - col0 ) col0 FROM tab0 cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3267
SELECT ALL - MAX ( - col0 ) col0 FROM tab0 cor0
----
15

query II rowsort
SELECT col1, col0 FROM tab2 cor0
----
51
46
67
75
77
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - + col0 + 64 col2 FROM tab2 AS cor0
----
-2052
-4032
-5561

query I rowsort
SELECT ALL + 30 * + + col2 AS col0 FROM tab1 AS cor0
----
1770
2040
2880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3271
SELECT + CAST( 18 AS SIGNED ) FROM tab0 WHERE NOT + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3271
SELECT + CAST ( 18 AS INTEGER ) FROM tab0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3272
SELECT col2 - col2 AS col0 FROM tab1 WHERE - col2 * ( CAST( - 82 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3272
SELECT col2 - col2 AS col0 FROM tab1 WHERE - col2 * ( CAST ( - 82 AS INTEGER ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT ALL - COUNT( * ) - + COUNT( * ) AS col0 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-3273
SELECT ALL - COUNT ( * ) - + COUNT ( * ) AS col0 FROM tab2
----
-6

query I rowsort
SELECT ALL col2 + col2 * - 57 FROM tab2
----
-1288
-2240
-3248

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT DISTINCT 6 + MIN( 81 ) FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-3275
SELECT DISTINCT 6 + MIN ( 81 ) FROM tab1
----
87

query I rowsort
SELECT ( 97 ) * ( 92 + + 75 ) AS col2 FROM tab0 WHERE - 47 + 95 < ( col2 * ( 54 ) )
----
16199
16199
16199

query III rowsort
SELECT * FROM tab2 WHERE NOT 26 <> col2
----

query I rowsort
SELECT DISTINCT - 45 + col1 AS col0 FROM tab0
----
-24
-44
36

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) < 59
----

query I rowsort
SELECT col1 / col0 AS col0 FROM tab1 WHERE NOT NULL > + col2 * + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3281
SELECT col1 - CAST( - 12 AS SIGNED ) AS col2 FROM tab0
----
13
33
93

skipif mysql # not compatible
query I rowsort label-3281
SELECT col1 - CAST ( - 12 AS INTEGER ) AS col2 FROM tab0
----
13
33
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT DISTINCT COUNT( * ) col1 FROM tab2 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3282
SELECT DISTINCT COUNT ( * ) col1 FROM tab2 WHERE NOT NULL < NULL
----
0

query I rowsort
SELECT DISTINCT - 8 AS col1 FROM tab1 WHERE NOT ( NULL ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT DISTINCT COUNT( DISTINCT col2 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3284
SELECT DISTINCT COUNT ( DISTINCT col2 ) col1 FROM tab2
----
3

query I rowsort
SELECT 83 + col0 FROM tab0
----
170
180
98

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT 84 BETWEEN + 7 AND 26
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND col1 * - col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col0 ) BETWEEN ( 96 ) AND col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT - MAX( col2 ) FROM tab0 WHERE NULL IN ( - col2 + 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3289
SELECT - MAX ( col2 ) FROM tab0 WHERE NULL IN ( - col2 + 46 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3290
SELECT - 0 + col1 / - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3290
SELECT - 0 + col1 / - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 >= ( col2 )
----

query I rowsort
SELECT + 89 - - 85 FROM tab1
----
174
174
174

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 * 89 > NULL
----

query I rowsort
SELECT ALL - 2 FROM tab0 WHERE col0 * col1 + col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3295
SELECT - COUNT( * ) AS col1 FROM tab2 WHERE NOT ( + ( + col2 ) ) + ( col1 ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3295
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE NOT ( + ( + col2 ) ) + ( col1 ) IS NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 BETWEEN NULL AND + ( + col1 ) * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT DISTINCT - ( COUNT( * ) ) - + 74 FROM tab0 WHERE + col0 / + 18 BETWEEN NULL AND - col0
----
-74

skipif mysql # not compatible
query I rowsort label-3297
SELECT DISTINCT - ( COUNT ( * ) ) - + 74 FROM tab0 WHERE + col0 / + 18 BETWEEN NULL AND - col0
----
-74

query I rowsort
SELECT ALL + 86 + + 12 FROM tab2
----
98
98
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT ( COUNT( * ) ) * COUNT( * ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-3299
SELECT ( COUNT ( * ) ) * COUNT ( * ) AS col0 FROM tab1
----
9

query I rowsort
SELECT - 97 * + col0 AS col2 FROM tab0
----
-1455
-8439
-9409

query I rowsort
SELECT DISTINCT col0 + 79 FROM tab2
----
125
143
154

query I rowsort
SELECT DISTINCT - 13 * col2 AS col0 FROM tab0 AS cor0
----
-1287
-130
-611

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3303
SELECT ALL - col2 + col1 * col1 FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) / col1 - 2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3303
SELECT ALL - col2 + col1 * col1 FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) / col1 - 2 IS NOT NULL
----

query I rowsort
SELECT ALL + ( col0 ) * + 30 FROM tab0 cor0
----
2610
2910
450

query I rowsort
SELECT col2 * - col2 + - col1 FROM tab1 cor0 WHERE + col2 * - col2 <> col1
----
-3486
-4671
-9230

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT - MIN( ALL col2 ) col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3306
SELECT - MIN ( ALL col2 ) col0 FROM tab1 AS cor0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3307
SELECT ALL CAST( NULL AS SIGNED ) * 95 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3307
SELECT ALL CAST ( NULL AS INTEGER ) * 95 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3308
SELECT ALL * FROM tab2 AS cor0 WHERE ( CAST( - col2 AS SIGNED ) ) <> 22
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3308
SELECT ALL * FROM tab2 AS cor0 WHERE ( CAST ( - col2 AS INTEGER ) ) <> 22
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * ( + col2 ) col2 FROM tab2 AS cor0
----
-1600
-3364
-529

onlyif mysql # DIV for integer division: 
query I rowsort label-3310
SELECT col0 DIV ( + 11 * - col2 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3310
SELECT col0 / ( + 11 * - col2 ) FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3311
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 * CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3311
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 * CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( col2 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3313
SELECT 6 DIV - col0 AS col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3313
SELECT 6 / - col0 AS col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT - COUNT( ALL + col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3314
SELECT - COUNT ( ALL + col0 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - 17 + ( col0 ) AS col1 FROM tab0 AS cor0
----
-2
70
80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3316
SELECT * FROM tab2 AS cor0 WHERE ( col2 * CAST( NULL AS SIGNED ) ) NOT IN ( - 49 )
----

skipif mysql # not compatible
query III rowsort label-3316
SELECT * FROM tab2 AS cor0 WHERE ( col2 * CAST ( NULL AS INTEGER ) ) NOT IN ( - 49 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 5 >= ( + 81 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3318
SELECT ALL CAST( NULL AS SIGNED ) * - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3318
SELECT ALL CAST ( NULL AS INTEGER ) * - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3319
SELECT DISTINCT - col2 * - CAST( NULL AS SIGNED ) col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3319
SELECT DISTINCT - col2 * - CAST ( NULL AS INTEGER ) col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT - 88 * - 53 + + col2 AS col1 FROM tab1 AS cor0
----
4723
4732
4760

query I rowsort
SELECT - col2 + ( col1 ) FROM tab1 cor0 WHERE + col0 / - col2 - col0 * + col2 NOT BETWEEN + col0 + + 8 AND + 31
----
-21
-54
-82

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL > ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3323
SELECT ALL + 71 DIV - col2 AS col0 FROM tab0 AS cor0
----
-1
-7
0

skipif mysql # not compatible
query I rowsort label-3323
SELECT ALL + 71 / - col2 AS col0 FROM tab0 AS cor0
----
-1
-7
0

query I rowsort
SELECT ALL - + 91 - 83 AS col0 FROM tab0 AS cor0
----
-174
-174
-174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + 88 col1 FROM tab2 AS cor0
----
30
48
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col1 col1 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT + col0 + - col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 5 + - col1 BETWEEN col0 + 79 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3329
SELECT DISTINCT col2 DIV + 12 AS col2 FROM tab2 AS cor0
----
1
3
4

skipif mysql # not compatible
query I rowsort label-3329
SELECT DISTINCT col2 / + 12 AS col2 FROM tab2 AS cor0
----
1
3
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 12 + - 95 col1 FROM tab2 AS cor0
----
-83
-83
-83

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 * col1 + col1 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT - - col2 * - 53 FROM tab0 AS cor0
----
-2491
-5247
-530

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT ALL COUNT( DISTINCT - col2 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3333
SELECT ALL COUNT ( DISTINCT - col2 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT ALL + 80 + + 50 * + 0 FROM tab0
----
80
80
80

query I rowsort
SELECT DISTINCT - col0 * - 66 AS col2 FROM tab1
----
3366
5610
6006

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT ALL MAX( + 35 ) FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-3336
SELECT ALL MAX ( + 35 ) FROM tab2
----
35

query I rowsort
SELECT ( - ( 20 ) ) FROM tab1
----
-20
-20
-20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3338
SELECT ALL col1 * ( - ( CAST( NULL AS DECIMAL ) ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3338
SELECT ALL col1 * ( - ( CAST ( NULL AS REAL ) ) ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * + 33 AS col2 FROM tab0
----
1551
3267
330

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col0 * - col0 + col0 ) IS NULL
----

query I rowsort
SELECT - 22 * + + 93 FROM tab0 AS cor0
----
-2046
-2046
-2046

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT ALL + + SUM( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-3342
SELECT ALL + + SUM ( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3343
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( + 50 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-3343
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( + 50 AS INTEGER ) > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3344
SELECT DISTINCT - 87, COUNT( * ) AS col1 FROM tab0
----
-87
3

skipif mysql # not compatible
query II rowsort label-3344
SELECT DISTINCT - 87, COUNT ( * ) AS col1 FROM tab0
----
-87
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3345
SELECT + CAST( - 70 AS SIGNED ) DIV col2 FROM tab2
----
-1
-1
-3

skipif mysql # not compatible
query I rowsort label-3345
SELECT + CAST ( - 70 AS INTEGER ) / col2 FROM tab2
----
-1
-1
-3

query I rowsort
SELECT - col0 + + + 47 AS col1 FROM tab0
----
-40
-50
32

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN - col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT + COUNT( - 33 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3348
SELECT + COUNT ( - 33 ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE + 67 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT COUNT( + 42 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3350
SELECT COUNT ( + 42 ) FROM tab2 AS cor0
----
3

query II rowsort
SELECT DISTINCT 97 AS col1, col0 AS col2 FROM tab2 AS cor0
----
97
46
97
64
97
75

query I rowsort
SELECT + + 80 AS col0 FROM tab0 AS cor0
----
80
80
80

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 * 71 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 38 col1 FROM tab1 AS cor0
----
38

query I rowsort
SELECT - + 39 AS col2 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT DISTINCT COUNT( * ) * + 11 AS col2 FROM tab1 AS cor0 WHERE ( + col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3356
SELECT DISTINCT COUNT ( * ) * + 11 AS col2 FROM tab1 AS cor0 WHERE ( + col2 ) IS NULL
----
0

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3358
SELECT ALL + - CAST( + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3358
SELECT ALL + - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 * + col0 / - 88 + + col0 = + ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE ( - - 18 ) IS NULL
----

query I rowsort
SELECT ALL 0 + col2 + col1 FROM tab2
----
117
125
74

query III rowsort
SELECT * FROM tab2 WHERE - - col0 >= ( col1 )
----
75
67
58

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT ( - ( + col0 ) * col2 ) IS NULL
----
15
87
97

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NOT ( - ( - col2 ) ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL <> 3
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT ALL + 52 * COUNT( DISTINCT + col1 ) AS col2 FROM tab2
----
156

skipif mysql # not compatible
query I rowsort label-3366
SELECT ALL + 52 * COUNT ( DISTINCT + col1 ) AS col2 FROM tab2
----
156

query I rowsort
SELECT DISTINCT 0 + col0 AS col1 FROM tab2
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3368
SELECT + 24 + col0 * col2 DIV + - col1 FROM tab1 AS cor0
----
-107
-325
-979

skipif mysql # not compatible
query I rowsort label-3368
SELECT + 24 + col0 * col2 / + - col1 FROM tab1 AS cor0
----
-107
-325
-979

query I rowsort
SELECT + - col1 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( + + col2 ), col2 col1 FROM tab0 AS cor0
----
10
10
47
47
99
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 29 NOT BETWEEN NULL AND 46
----

query I rowsort
SELECT ALL + 74 + - col2 AS col0 FROM tab1 cor0
----
-22
15
6

query I rowsort
SELECT + 67 * - col2 FROM tab0
----
-3149
-6633
-670

onlyif mysql # aggregate syntax: 
query I rowsort label-3374
SELECT MAX( - - col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-3374
SELECT MAX ( - - col0 ) FROM tab0 AS cor0
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - + ( + 23 ) + + - col1 col1 FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT ALL COUNT( * ) - - 1 FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-3376
SELECT ALL COUNT ( * ) - - 1 FROM tab1 AS cor0
----
4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3377
SELECT ALL 56 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3377
SELECT ALL 56 * - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT - ( - 45 ) * SUM( col0 ) + + - 90 AS col1 FROM tab0 AS cor0
----
8865

skipif mysql # not compatible
query I rowsort label-3378
SELECT - ( - 45 ) * SUM ( col0 ) + + - 90 AS col1 FROM tab0 AS cor0
----
8865

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT DISTINCT COUNT( - - 52 ) FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3379
SELECT DISTINCT COUNT ( - - 52 ) FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3380
SELECT - ( 83 ) DIV + col0 AS col2, col2 FROM tab2 AS cor0
----
-1
23
-1
40
-1
58

skipif mysql # not compatible
query II rowsort label-3380
SELECT - ( 83 ) / + col0 AS col2, col2 FROM tab2 AS cor0
----
-1
23
-1
40
-1
58

query II rowsort
SELECT DISTINCT col1, + col0 FROM tab1
----
14
51
47
91
5
85

query I rowsort
SELECT + ( - col2 ) * 45 FROM tab1
----
-2655
-3060
-4320

query II rowsort
SELECT ALL - col0 AS col2, ( col0 ) AS col1 FROM tab1
----
-51
51
-85
85
-91
91

query I rowsort
SELECT ALL - 46 * - 66 FROM tab0
----
3036
3036
3036

query II rowsort
SELECT col2, - col2 + - col2 + col0 AS col2 FROM tab0
----
10
67
47
-79
99
-101

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 > ( 94 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3387
SELECT ( + col2 ) DIV + 87 + + col2 * - col2 * + col2 * + col0 - + col2 DIV 48 AS col0 FROM tab1
----
-17457216
-28613313
-45121537

skipif mysql # not compatible
query I rowsort label-3387
SELECT ( + col2 ) / + 87 + + col2 * - col2 * + col2 * + col0 - + col2 / 48 AS col0 FROM tab1
----
-17457216
-28613313
-45121537

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT ALL - ( - MIN( + col1 ) ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3388
SELECT ALL - ( - MIN ( + col1 ) ) AS col1 FROM tab0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3389
SELECT DISTINCT + 89 / + AVG ( DISTINCT - ( + CAST( NULL AS SIGNED ) ) ) + MIN( DISTINCT - ( - col0 ) ) FROM tab0 AS cor0 WHERE 77 + + + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3389
SELECT DISTINCT + 89 / + AVG ( DISTINCT - ( + CAST ( NULL AS INTEGER ) ) ) + MIN ( DISTINCT - ( - col0 ) ) FROM tab0 AS cor0 WHERE 77 + + + col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3390
SELECT DISTINCT COUNT( * ) DIV + 15 AS col2 FROM tab1 AS cor0 WHERE NOT 28 * col0 + ( - col0 ) >= - 60 * + col1 - col2 * col1
----
0

skipif mysql # not compatible
query I rowsort label-3390
SELECT DISTINCT COUNT ( * ) / + 15 AS col2 FROM tab1 AS cor0 WHERE NOT 28 * col0 + ( - col0 ) >= - 60 * + col1 - col2 * col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3391
SELECT DISTINCT - CAST( NULL AS DECIMAL ) / - 72 * + col1 * + + col2 * - ( - 67 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3391
SELECT DISTINCT - CAST ( NULL AS REAL ) / - 72 * + col1 * + + col2 * - ( - 67 ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( col2, - col0 + col0 * 11 * 20 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 41 IS NOT NULL
----

query II rowsort
SELECT ALL - - col2, 28 + col1 + + col1 AS col1 FROM tab2 cor0 WHERE - 86 IS NULL
----

query I rowsort
SELECT 34 * - + 68 * + col0 FROM tab2 AS cor0
----
-106352
-147968
-173400

query I rowsort
SELECT + + col1 + col0 - + col2 FROM tab1 AS cor0
----
-31
31
70

query I rowsort
SELECT + 37 + + col0 FROM tab2 AS cor0
----
101
112
83

query II rowsort
SELECT ALL + - col2 + + col1, + 0 AS col2 FROM tab1 AS cor0
----
-21
0
-54
0
-82
0

query I rowsort
SELECT ALL - col1 + + - col0 FROM tab1 AS cor0
----
-138
-65
-90

query I rowsort
SELECT 12 + - 75 + col2 * - col2 + + col1 AS col2 FROM tab1
----
-3539
-4640
-9265

query III rowsort
SELECT * FROM tab0 WHERE col1 IN ( + 17, 80 )
----

query I rowsort
SELECT 53 + - + col2 + + col0 - ( + + 33 ) * col2 * + + col0 AS col2 FROM tab1
----
-161560
-165416
-204128

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT DISTINCT - MAX( + col1 ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3403
SELECT DISTINCT - MAX ( + col1 ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT 87 * + 63 FROM tab1 WHERE NOT col2 / + col1 IS NULL OR NULL BETWEEN + ( 3 ) AND col0
----
5481

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT ALL 83 - COUNT( * ) FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-3405
SELECT ALL 83 - COUNT ( * ) FROM tab1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3406
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE - col1 * - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3406
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE - col1 * - col2 IS NULL
----
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT - 35 AS col2 FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
-35

query I rowsort
SELECT - ( + + col0 ) + - col2 + col0 AS col2 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT col0 * - + col1 * + - col1 FROM tab1 AS cor0
----
201019
2125
9996

query I rowsort
SELECT ALL ( - - 24 ) AS col0 FROM tab0
----
24
24
24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3412
SELECT DISTINCT * FROM tab2 WHERE NOT + CAST( 23 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3412
SELECT DISTINCT * FROM tab2 WHERE NOT + CAST ( 23 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 85 * - col1 FROM tab2
----
4335
5695
6545

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 + + 48 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3415
SELECT * FROM tab2 WHERE NOT 14 * - col2 + - CAST( NULL AS SIGNED ) * col2 - ( - + col0 ) * ( CAST( col0 AS SIGNED ) ) NOT BETWEEN NULL AND col1
----

skipif mysql # not compatible
query III rowsort label-3415
SELECT * FROM tab2 WHERE NOT 14 * - col2 + - CAST ( NULL AS INTEGER ) * col2 - ( - + col0 ) * ( CAST ( col0 AS INTEGER ) ) NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT DISTINCT col0 * - col2 * + + col0 AS col0 FROM tab2
----
-163840
-326250
-48668

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT ALL + 91 * COUNT( * ) FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-3417
SELECT ALL + 91 * COUNT ( * ) FROM tab1
----
273

query II rowsort
SELECT + 38, 69 AS col0 FROM tab1
----
38
69
38
69
38
69

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL < col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT + + MIN( DISTINCT - + 82 ) FROM tab0 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-3420
SELECT + + MIN ( DISTINCT - + 82 ) FROM tab0 AS cor0
----
-82

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 >= + col0 + - - col1 - - ( + 25 ) + - + col0 * - col1 + col0 * - - col1
----

query I rowsort
SELECT ALL - ( + col2 ) + + col1 FROM tab1 AS cor0
----
-21
-54
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3423
SELECT + + CAST( - 16 AS SIGNED ) * col2 FROM tab1 cor0
----
-1088
-1536
-944

skipif mysql # not compatible
query I rowsort label-3423
SELECT + + CAST ( - 16 AS INTEGER ) * col2 FROM tab1 cor0
----
-1088
-1536
-944

query II rowsort
SELECT - + col0 AS col1, - col0 AS col0 FROM tab2 AS cor0
----
-46
-46
-64
-64
-75
-75

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col2 BETWEEN - col2 AND - 29
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT DISTINCT - 3 + + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3426
SELECT DISTINCT - 3 + + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0

query II rowsort
SELECT ALL + col1 AS col2, col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 33 - + + col0 >= ( - + 63 + - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT ALL MAX( ALL - col1 ) * - - COUNT( * ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3429
SELECT ALL MAX ( ALL - col1 ) * - - COUNT ( * ) AS col1 FROM tab0 cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col0 ) * + ( - + col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + ( 53 ) + 82 FROM tab2 AS cor0
----
29

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT + col1 * col2 + + 98 AS col0 FROM tab2
----
1271
3178
3984

onlyif mysql # DIV for integer division: 
query I rowsort label-3434
SELECT ALL col0 + col1 DIV + - col2 AS col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3434
SELECT ALL col0 + col1 / + - col2 AS col2 FROM tab1
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-3435
SELECT col0 DIV + - col0 - - + col2 * + + col2 col1 FROM tab0
----
2208
9800
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3435
SELECT col0 / + - col0 - - + col2 * + + col2 col1 FROM tab0
----
2208
9800
99

query II rowsort
SELECT col0 - + - col1 AS col0, 4 AS col1 FROM tab1
----
138
4
65
4
90
4

query I rowsort
SELECT DISTINCT + 57 - + col2 AS col1 FROM tab1
----
-11
-2
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3438
SELECT DISTINCT + - ( - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3438
SELECT DISTINCT + - ( - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 * + 36 AS col1 FROM tab2 AS cor0 WHERE NOT col2 <> ( ( - col2 ) )
----

query III rowsort
SELECT * FROM tab1 WHERE - - ( + - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 + - 16 FROM tab1
----
35
69
75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN - 85 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + 48 / + col1 * - 13 ) NOT IN ( + 45 )
----

query II rowsort
SELECT - col2 AS col2, 54 AS col0 FROM tab2
----
-23
54
-40
54
-58
54

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND - 56
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 18 col0 FROM tab1 AS cor0
----
-18

query I rowsort
SELECT ALL + col2 * col1 * - - col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT DISTINCT + SUM( 20 ) * COUNT( * ) AS col1 FROM tab2
----
180

skipif mysql # not compatible
query I rowsort label-3448
SELECT DISTINCT + SUM ( 20 ) * COUNT ( * ) AS col1 FROM tab2
----
180

onlyif mysql # aggregate syntax: 
query II rowsort label-3449
SELECT DISTINCT COUNT( + 43 ) AS col1, - 72 FROM tab1
----
3
-72

skipif mysql # not compatible
query II rowsort label-3449
SELECT DISTINCT COUNT ( + 43 ) AS col1, - 72 FROM tab1
----
3
-72

query I rowsort
SELECT - 25 * - 62 FROM tab1
----
1550
1550
1550

onlyif mysql # DIV for integer division: 
query I rowsort label-3451
SELECT + col0 DIV + + ( col0 ) FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3451
SELECT + col0 / + + ( col0 ) FROM tab1
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * col2 + + col0 + - - 6 * + + col2 * - 86 + - - col1 = ( - 59 )
----

query I rowsort
SELECT ALL + + col0 * - + col2 AS col2 FROM tab1 cor0
----
-4896
-5015
-6188

onlyif mysql # DIV for integer division: 
query I rowsort label-3454
SELECT DISTINCT + col2 DIV col1 + 26 DIV col2 AS col1 FROM tab0
----
0
2
99

skipif mysql # not compatible
query I rowsort label-3454
SELECT DISTINCT + col2 / col1 + 26 / col2 AS col1 FROM tab0
----
0
2
99

query II rowsort
SELECT - col0 AS col2, ( col2 ) FROM tab0
----
-15
47
-87
10
-97
99

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 68 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query II rowsort
SELECT ALL col0, + col0 FROM tab0 cor0
----
15
15
87
87
97
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3458
SELECT + CAST( NULL AS SIGNED ) + + - MAX( - col1 ) + - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3458
SELECT + CAST ( NULL AS INTEGER ) + + - MAX ( - col1 ) + - COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-3459
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL <> NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col1 col0 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT ALL ( - 18 ) * - 14 AS col1 FROM tab2 AS cor0
----
252
252
252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3462
SELECT DISTINCT + - col2 + CAST( - ( - - 11 ) AS SIGNED ) FROM tab0 AS cor0
----
-110
-21
-58

skipif mysql # not compatible
query I rowsort label-3462
SELECT DISTINCT + - col2 + CAST ( - ( - - 11 ) AS INTEGER ) FROM tab0 AS cor0
----
-110
-21
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-3463
SELECT col0 + + col2 + - 89 DIV col2 FROM tab1 AS cor0
----
143
147
158

skipif mysql # not compatible
query I rowsort label-3463
SELECT col0 + + col2 + - 89 / col2 FROM tab1 AS cor0
----
143
147
158

query I rowsort
SELECT DISTINCT - + 87 * - col1 - 13 * - 20 FROM tab1 AS cor0
----
1478
4349
695

onlyif mysql # DIV for integer division: 
query I rowsort label-3465
SELECT - col0 + - + col1 DIV - col2 FROM tab2 AS cor0
----
-44
-63
-74

skipif mysql # not compatible
query I rowsort label-3465
SELECT - col0 + - + col1 / - col2 FROM tab2 AS cor0
----
-44
-63
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3466
SELECT + ( + CAST( - + 23 AS SIGNED ) ) + - col1 AS col1 FROM tab1 cor0
----
-28
-37
-70

skipif mysql # not compatible
query I rowsort label-3466
SELECT + ( + CAST ( - + 23 AS INTEGER ) ) + - col1 AS col1 FROM tab1 cor0
----
-28
-37
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-3467
SELECT 19 AS col1, MAX( ALL - col0 ) FROM tab0 WHERE 22 * col0 - + col2 IS NOT NULL
----
19
-15

skipif mysql # not compatible
query II rowsort label-3467
SELECT 19 AS col1, MAX ( ALL - col0 ) FROM tab0 WHERE 22 * col0 - + col2 IS NOT NULL
----
19
-15

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 * + + 58 * - col1 + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 - ( - 30 ) FROM tab1
----
115
121
81

query I rowsort
SELECT ALL - 15 + - + col1 FROM tab1
----
-20
-29
-62

query III rowsort
SELECT * FROM tab0 WHERE + - 62 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3472
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3473
SELECT ALL 36 * - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3473
SELECT ALL 36 * - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 - + + 80 FROM tab0
----
-59
-79
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT ALL + 91 - 32 + + + MAX( DISTINCT col0 ) * + 3 AS col1 FROM tab2 AS cor0
----
284

skipif mysql # not compatible
query I rowsort label-3475
SELECT ALL + 91 - 32 + + + MAX ( DISTINCT col0 ) * + 3 AS col1 FROM tab2 AS cor0
----
284

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT + + MAX( 2 ) AS col1 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-3476
SELECT + + MAX ( 2 ) AS col1 FROM tab1 AS cor0
----
2

query I rowsort
SELECT + + col0 - + ( + + col0 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 * col2 * - 70 + col1 AS col1 FROM tab2 cor0
----
-179123
-304433
-74009

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT DISTINCT + MIN( DISTINCT - - col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3479
SELECT DISTINCT + MIN ( DISTINCT - - col1 ) FROM tab0 AS cor0
----
1

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( - 70 + + col0 ) <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 6 * + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3482
SELECT ( - + 3 ), - COUNT( * ) FROM tab2 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-3482
SELECT ( - + 3 ), - COUNT ( * ) FROM tab2 AS cor0
----
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT DISTINCT + MIN( + col0 ) AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3483
SELECT DISTINCT + MIN ( + col0 ) AS col0 FROM tab1 AS cor0
----
51

query I rowsort
SELECT DISTINCT - 87 * - 47 FROM tab0 AS cor0 WHERE 32 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 73 * col0 col1 FROM tab2 AS cor0
----
-3358
-4672
-5475

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN 13 AND - col2 * - + ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT ALL + + 55 * - - COUNT( * ) * 39 AS col2 FROM tab0 cor0
----
6435

skipif mysql # not compatible
query I rowsort label-3487
SELECT ALL + + 55 * - - COUNT ( * ) * 39 AS col2 FROM tab0 cor0
----
6435

query I rowsort
SELECT - 81 AS col0 FROM tab2 WHERE NOT + ( - 37 ) IS NOT NULL
----

query II rowsort
SELECT - 70, col0 FROM tab0
----
-70
15
-70
87
-70
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT - ( + SUM( + 2 ) ) col1 FROM tab1
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3490
SELECT - ( + SUM ( + 2 ) ) col1 FROM tab1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT - COUNT( DISTINCT - 3 ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-3491
SELECT - COUNT ( DISTINCT - 3 ) AS col0 FROM tab0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3492
SELECT col1 DIV + + 72 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3492
SELECT col1 / + + 72 FROM tab2
----
0
0
1

query I rowsort
SELECT col1 * - col1 * - 68 AS col0 FROM tab0
----
29988
446148
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT - SUM( - 44 ) FROM tab0
----
132

skipif mysql # not compatible
query I rowsort label-3494
SELECT - SUM ( - 44 ) FROM tab0
----
132

query I rowsort
SELECT DISTINCT + - col1 * - - 66 FROM tab0 AS cor0
----
-1386
-5346
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3496
SELECT col1 * col2 * CAST( + col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
18270
57105
9603

skipif mysql # not compatible
query I rowsort label-3496
SELECT col1 * col2 * CAST ( + col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
18270
57105
9603

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3498
SELECT - CAST( NULL AS SIGNED ) + - + ( 91 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3498
SELECT - CAST ( NULL AS INTEGER ) + - + ( 91 ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL NOT BETWEEN NULL AND NULL )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN NULL AND - ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT SUM( ALL + - 97 ) AS col2 FROM tab0 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-3501
SELECT SUM ( ALL + - 97 ) AS col2 FROM tab0 AS cor0
----
-291

query I rowsort
SELECT ALL - col2 + - col2 + col1 AS col2 FROM tab1 AS cor0
----
-113
-178
-89

query I rowsort
SELECT - col0 - 49 AS col2 FROM tab0
----
-136
-146
-64

query I rowsort
SELECT ALL - 7 - - + 20 AS col0 FROM tab2
----
13
13
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3505
SELECT 2 * + 83 * + COUNT( * ) - MAX( DISTINCT + + col1 ) FROM tab0
----
417

skipif mysql # not compatible
query I rowsort label-3505
SELECT 2 * + 83 * + COUNT ( * ) - MAX ( DISTINCT + + col1 ) FROM tab0
----
417

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT SUM( ALL - col2 ) * - 54 + + COUNT( * ) AS col2 FROM tab0
----
8427

skipif mysql # not compatible
query I rowsort label-3506
SELECT SUM ( ALL - col2 ) * - 54 + + COUNT ( * ) AS col2 FROM tab0
----
8427

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT + COUNT( ALL + + 46 ) + - + 78 AS col0 FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-3507
SELECT + COUNT ( ALL + + 46 ) + - + 78 AS col0 FROM tab1
----
-75

query I rowsort
SELECT ( 53 ) + col2 AS col2 FROM tab0
----
100
152
63

query I rowsort
SELECT - + col2 FROM tab1 WHERE - - col2 NOT BETWEEN + - col1 AND 50
----
-59
-68
-96

query I rowsort
SELECT col0 + + ( - col0 ) + + + col2 AS col0 FROM tab0
----
10
47
99

query I rowsort
SELECT DISTINCT col2 - + + 79 AS col1 FROM tab0
----
-32
-69
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT DISTINCT - + SUM( DISTINCT col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-3512
SELECT DISTINCT - + SUM ( DISTINCT col2 ) FROM tab2 AS cor0
----
-121

onlyif mysql # DIV for integer division: 
query I rowsort label-3513
SELECT DISTINCT + col2 * 16 + 24 DIV col1 DIV - 72 - - col0 AS col0 FROM tab0 AS cor0
----
1681
247
767

skipif mysql # not compatible
query I rowsort label-3513
SELECT DISTINCT + col2 * 16 + 24 / col1 / - 72 - - col0 AS col0 FROM tab0 AS cor0
----
1681
247
767

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT DISTINCT ( - ( - COUNT( * ) ) ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3514
SELECT DISTINCT ( - ( - COUNT ( * ) ) ) col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3515
SELECT - 31 * + COUNT( ALL col2 ) FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-3515
SELECT - 31 * + COUNT ( ALL col2 ) FROM tab1
----
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col2 FROM tab1 WHERE NOT col0 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3517
SELECT DISTINCT ( - - ( 61 ) ) DIV + col2 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3517
SELECT DISTINCT ( - - ( 61 ) ) / + col2 FROM tab1 AS cor0
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3518
SELECT - CAST( NULL AS SIGNED ) AS col1, - col0 * + col0 FROM tab1 AS cor0
----
NULL
-2601
NULL
-7225
NULL
-8281

skipif mysql # not compatible
query II rowsort label-3518
SELECT - CAST ( NULL AS INTEGER ) AS col1, - col0 * + col0 FROM tab1 AS cor0
----
NULL
-2601
NULL
-7225
NULL
-8281

query II rowsort
SELECT DISTINCT col1, + ( - col0 ) FROM tab0 AS cor0
----
1
-97
21
-87
81
-15

query II rowsort
SELECT ALL + col2 + - col0 AS col1, 39 AS col0 FROM tab0
----
-77
39
2
39
32
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3521
SELECT SUM( ALL + col0 ) + - COUNT( DISTINCT - col0 ) AS col0 FROM tab2
----
182

skipif mysql # not compatible
query I rowsort label-3521
SELECT SUM ( ALL + col0 ) + - COUNT ( DISTINCT - col0 ) AS col0 FROM tab2
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT COUNT( * ) + + + 76 FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-3522
SELECT COUNT ( * ) + + + 76 FROM tab0
----
79

query I rowsort
SELECT ALL - col0 * - col0 + - col2 AS col1 FROM tab2 AS cor0
----
2093
4056
5567

query I rowsort
SELECT ALL - 91 * col0 + - 53 FROM tab0 cor0
----
-1418
-7970
-8880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3525
SELECT DISTINCT CAST( NULL AS SIGNED ) + - col2 * + col0 * + 78 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3525
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col2 * + col0 * + 78 AS col1 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col1 NOT IN ( - ( + + 36 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3527
SELECT DISTINCT col0 * + CAST( - col0 AS SIGNED ) - + col2 FROM tab0 AS cor0
----
-272
-7579
-9508

skipif mysql # not compatible
query I rowsort label-3527
SELECT DISTINCT col0 * + CAST ( - col0 AS INTEGER ) - + col2 FROM tab0 AS cor0
----
-272
-7579
-9508

query I rowsort
SELECT + - col2 + - - 83 AS col2 FROM tab2 AS cor0
----
25
43
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT ALL MAX( 64 ) AS col2 FROM tab1 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-3529
SELECT ALL MAX ( 64 ) AS col2 FROM tab1 AS cor0
----
64

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3530
SELECT ALL + col2 * + col0 AS col2 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN + 18 AND CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-3530
SELECT ALL + col2 * + col0 AS col2 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN + 18 AND CAST ( NULL AS REAL )
----

query I rowsort
SELECT DISTINCT - ( + col2 ) FROM tab0 cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT 57 * ( col0 ) + + col1 AS col2 FROM tab2 cor0
----
2673
3725
4342

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND + 39
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT ALL COUNT( ALL + 79 ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3534
SELECT ALL COUNT ( ALL + 79 ) AS col1 FROM tab0 cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3535
SELECT ALL col2 + - col2 DIV col0 * - col1 - col2 * - 85 AS col1 FROM tab2
----
1978
3440
4988

skipif mysql # not compatible
query I rowsort label-3535
SELECT ALL col2 + - col2 / col0 * - col1 - col2 * - 85 AS col1 FROM tab2
----
1978
3440
4988

query I rowsort
SELECT + + col0 FROM tab2 cor0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT ALL - - col2 AS col2 FROM tab0 cor0 WHERE col1 NOT BETWEEN + col2 * + col0 * 12 AND NULL
----
10
47
99

query II rowsort
SELECT DISTINCT - + 93 * - - 1, col1 FROM tab0 AS cor0
----
-93
1
-93
21
-93
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT DISTINCT - COUNT( ALL + col0 ) * 92 FROM tab0
----
-276

skipif mysql # not compatible
query I rowsort label-3539
SELECT DISTINCT - COUNT ( ALL + col0 ) * 92 FROM tab0
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT DISTINCT - COUNT( - + 81 ) * - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-3540
SELECT DISTINCT - COUNT ( - + 81 ) * - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
81

query I rowsort
SELECT + col1 * + 93 FROM tab2
----
4743
6231
7161

query I rowsort
SELECT + + col1 + + col0 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
108
96
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3543
SELECT 64 DIV 52 - + COUNT( * ) + + SUM( + - col2 ), - 49 DIV - - 9 AS col0 FROM tab1 AS cor0
----
-225
-5

skipif mysql # not compatible
query II rowsort label-3543
SELECT 64 / 52 - + COUNT ( * ) + + SUM ( + - col2 ), - 49 / - - 9 AS col0 FROM tab1 AS cor0
----
-225
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT + - MAX( - col0 ) * + ( + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-3544
SELECT + - MAX ( - col0 ) * + ( + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
45

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN col1 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT ALL + COUNT( ALL + col2 ) + SUM( DISTINCT - 72 ) AS col2 FROM tab0 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-3546
SELECT ALL + COUNT ( ALL + col2 ) + SUM ( DISTINCT - 72 ) AS col2 FROM tab0 AS cor0
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3547
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3547
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT - MIN( 83 ) FROM tab1 WHERE NOT NULL IN ( + - 90, 81 / col1 * - 20, - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3548
SELECT - MIN ( 83 ) FROM tab1 WHERE NOT NULL IN ( + - 90, 81 / col1 * - 20, - col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT COUNT( + - col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3549
SELECT COUNT ( + - col2 ) FROM tab1
----
3

query I rowsort
SELECT ALL - + 85 + - col0 * + col2 * + col0 AS col1 FROM tab2 WHERE NULL IS NULL
----
-163925
-326335
-48753

query II rowsort
SELECT col1, 48 * 2 FROM tab0
----
1
96
21
96
81
96

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 67 + + + 14 >= ( NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3553
SELECT + + ( col2 ) DIV 28 + + col1 AS col1, - col1 AS col0 FROM tab0 AS cor0
----
21
-21
4
-1
82
-81

skipif mysql # not compatible
query II rowsort label-3553
SELECT + + ( col2 ) / 28 + + col1 AS col1, - col1 AS col0 FROM tab0 AS cor0
----
21
-21
4
-1
82
-81

query III rowsort
SELECT DISTINCT + - col0, col1 AS col1, 76 + + col2 AS col2 FROM tab2 cor0
----
9 values hashing to 5dc3f5cb455591d5a14c70bea7058e0b

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( - col2 ) IS NULL AND NOT - col2 NOT BETWEEN - col2 AND - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT - COUNT( - 12 ) * - + COUNT( + col1 ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-3556
SELECT - COUNT ( - 12 ) * - + COUNT ( + col1 ) FROM tab2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3557
SELECT - CAST( ( + COUNT( * ) ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3557
SELECT - CAST ( ( + COUNT ( * ) ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col0 * col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) = ( + col1 - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3559
SELECT DISTINCT + - col0 * - CAST( - - col1 AS SIGNED ) - + col1 * - + col0 AS col1 FROM tab1 AS cor0
----
1428
850
8554

skipif mysql # not compatible
query I rowsort label-3559
SELECT DISTINCT + - col0 * - CAST ( - - col1 AS INTEGER ) - + col1 * - + col0 AS col1 FROM tab1 AS cor0
----
1428
850
8554

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 > 56
----

query I rowsort
SELECT + col1 - - 52 AS col0 FROM tab1 AS cor0
----
57
66
99

query I rowsort
SELECT + col1 - 11 FROM tab2 cor0
----
40
56
66

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 56 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3564
SELECT col2 - - 37 * - CAST( NULL AS SIGNED ) * - ( - col0 ) AS col1, col0 * - col1 AS col2 FROM tab2 AS cor0
----
NULL
-2346
NULL
-4928
NULL
-5025

skipif mysql # not compatible
query II rowsort label-3564
SELECT col2 - - 37 * - CAST ( NULL AS INTEGER ) * - ( - col0 ) AS col1, col0 * - col1 AS col2 FROM tab2 AS cor0
----
NULL
-2346
NULL
-4928
NULL
-5025

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 < + ( + col2 )
----
15
81
47
87
21
10

onlyif mysql # DIV for integer division: 
query I rowsort label-3566
SELECT - col0 DIV + 31 AS col1 FROM tab2
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-3566
SELECT - col0 / + 31 AS col1 FROM tab2
----
-1
-2
-2

query II rowsort
SELECT DISTINCT ( 49 ) * + + col0, + 77 * + col0 AS col2 FROM tab2
----
2254
3542
3136
4928
3675
5775

query I rowsort
SELECT DISTINCT col0 * - 96 AS col0 FROM tab1
----
-4896
-8160
-8736

onlyif mysql # aggregate syntax: 
query I rowsort label-3569
SELECT DISTINCT - ( COUNT( DISTINCT + 65 ) ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3569
SELECT DISTINCT - ( COUNT ( DISTINCT + 65 ) ) AS col0 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT + - 7 * - - COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-63

skipif mysql # not compatible
query I rowsort label-3570
SELECT + - 7 * - - COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3571
SELECT ALL - col1 * col1 AS col1, + ( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
-1
NULL
-441
NULL
-6561
NULL

skipif mysql # not compatible
query II rowsort label-3571
SELECT ALL - col1 * col1 AS col1, + ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
-1
NULL
-441
NULL
-6561
NULL

query I rowsort
SELECT DISTINCT - + ( + + ( + col1 ) ) FROM tab0 AS cor0
----
-1
-21
-81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 71 * col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT ALL + 84 * - COUNT( * ) + + 34 FROM tab0 AS cor0
----
-218

skipif mysql # not compatible
query I rowsort label-3574
SELECT ALL + 84 * - COUNT ( * ) + + 34 FROM tab0 AS cor0
----
-218

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT ALL - ( - 42 ) + COUNT( * ) * 2 AS col0 FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-3575
SELECT ALL - ( - 42 ) + COUNT ( * ) * 2 AS col0 FROM tab2 AS cor0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3576
SELECT + ( + - ( col0 ) ) + - 45 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3576
SELECT + ( + - ( col0 ) ) + - 45 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 77 + - - 11 * + - 82 FROM tab1 AS cor0
----
-825
-825
-825

query I rowsort
SELECT + col2 + + 95 + - 19 AS col0 FROM tab0
----
123
175
86

query I rowsort
SELECT 17 * + ( + 39 ) + - + 13 AS col2 FROM tab1
----
650
650
650

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT DISTINCT + MAX( - - 71 ) + + 43 FROM tab2
----
114

skipif mysql # not compatible
query I rowsort label-3580
SELECT DISTINCT + MAX ( - - 71 ) + + 43 FROM tab2
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT DISTINCT - SUM( - - col1 ) AS col2 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-3581
SELECT DISTINCT - SUM ( - - col1 ) AS col2 FROM tab0
----
-103

query III rowsort
SELECT * FROM tab0 WHERE - 36 * - 65 / + - 11 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 / + col0 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3584
SELECT + 58 DIV + + 80 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3584
SELECT + 58 / + + 80 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < + col1 * + 52 * col1
----

query I rowsort
SELECT ALL 53 FROM tab0 AS cor0 WHERE NOT 23 / col0 + 22 NOT IN ( col0, col0 + - 12 / - + col0, + col0 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 <> - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 col1 FROM tab0 AS cor0
----
43
43
43

query I rowsort
SELECT - - 2 + col2 + col0 * - - col1 AS col1 FROM tab1 cor0
----
4347
486
812

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL < col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3591
SELECT DISTINCT + 35 AS col0, + COUNT( * ) FROM tab2 cor0 WHERE NOT 7 + + + col1 IS NULL
----
35
3

skipif mysql # not compatible
query II rowsort label-3591
SELECT DISTINCT + 35 AS col0, + COUNT ( * ) FROM tab2 cor0 WHERE NOT 7 + + + col1 IS NULL
----
35
3

query I rowsort
SELECT DISTINCT + - ( - - 77 ) AS col2 FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-3593
SELECT COUNT( * ), + MAX( - + col1 ) AS col2 FROM tab0 AS cor0
----
3
-1

skipif mysql # not compatible
query II rowsort label-3593
SELECT COUNT ( * ), + MAX ( - + col1 ) AS col2 FROM tab0 AS cor0
----
3
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT ALL + - MAX( 73 ) FROM tab0 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-3594
SELECT ALL + - MAX ( 73 ) FROM tab0 AS cor0
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3595
SELECT CAST( NULL AS SIGNED ) * - - col1 * col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

skipif mysql # not compatible
query I rowsort label-3595
SELECT CAST ( NULL AS INTEGER ) * - - col1 * col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3596
SELECT + CAST( NULL AS DECIMAL ) / - col1 + - - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3596
SELECT + CAST ( NULL AS REAL ) / - col1 + - - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3597
SELECT 16 / + CAST( NULL AS SIGNED ) * - + CAST( col2 AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3597
SELECT 16 / + CAST ( NULL AS INTEGER ) * - + CAST ( col2 AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 66 FROM tab1 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT ALL MIN( ALL col1 ) AS col2 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-3599
SELECT ALL MIN ( ALL col1 ) AS col2 FROM tab2
----
51

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 7 / - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3601
SELECT DISTINCT - SUM( - ( - + col0 ) ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-3601
SELECT DISTINCT - SUM ( - ( - + col0 ) ) FROM tab2 AS cor0
----
-185

onlyif mysql # DIV for integer division: 
query I rowsort label-3602
SELECT col0 DIV 11 FROM tab0
----
1
7
8

skipif mysql # not compatible
query I rowsort label-3602
SELECT col0 / 11 FROM tab0
----
1
7
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 16 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE NOT - + 67 IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT ALL col0 * 2 FROM tab1
----
102
170
182

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col1 AND + - col1
----

query I rowsort
SELECT DISTINCT - ( + - col1 ) * + - 30 FROM tab1 AS cor0
----
-1410
-150
-420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3608
SELECT - + COUNT( * ) DIV + SUM( DISTINCT + col2 ) * - 99 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3608
SELECT - + COUNT ( * ) / + SUM ( DISTINCT + col2 ) * - 99 AS col2 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 / ( - ( - 61 ) ) + - col1 = NULL
----

query I rowsort
SELECT ( col0 ) * 39 AS col2 FROM tab0 cor0
----
3393
3783
585

query I rowsort
SELECT DISTINCT - col0 * + col1 + - col0 FROM tab0 cor0
----
-1230
-1914
-194

query I rowsort
SELECT ALL + 94 * + 26 AS col2 FROM tab2 AS cor0
----
2444
2444
2444

onlyif mysql # DIV for integer division: 
query I rowsort label-3613
SELECT DISTINCT col0 + - col0 DIV + col1 + + col1 * ( - - col1 ) FROM tab2 AS cor0
----
2647
4563
5993

skipif mysql # not compatible
query I rowsort label-3613
SELECT DISTINCT col0 + - col0 / + col1 + + col1 * ( - - col1 ) FROM tab2 AS cor0
----
2647
4563
5993

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT ALL + + 97 + + + COUNT( * ) FROM tab1 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-3614
SELECT ALL + + 97 + + + COUNT ( * ) FROM tab1 AS cor0
----
100

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-3615
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( 65 - + CAST( NULL AS DECIMAL ) * + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3615
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( 65 - + CAST ( NULL AS REAL ) * + + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT + col2 + + + ( - 43 ) AS col0 FROM tab0
----
-33
4
56

query III rowsort
SELECT * FROM tab0 WHERE - col1 * + 26 IN ( + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 54 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 col2 FROM tab2
----
-43
-43
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3620
SELECT DISTINCT + 77 * + col2 + 36 * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3620
SELECT DISTINCT + 77 * + col2 + 36 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT col1 * - col2 + 74 AS col2 FROM tab1
----
-1270
-221
-3122

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3622
SELECT * FROM tab1 WHERE NULL <> 45 - - - col1 + - CAST( - ( - col2 ) AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3622
SELECT * FROM tab1 WHERE NULL <> 45 - - - col1 + - CAST ( - ( - col2 ) AS REAL )
----

query II rowsort
SELECT - col1 + - 53, col2 FROM tab2
----
-104
23
-120
58
-130
40

onlyif mysql # aggregate syntax: 
query II rowsort label-3624
SELECT DISTINCT 8 * COUNT( * ) AS col2, MAX( - 72 ) + - + 45 FROM tab0
----
24
-117

skipif mysql # not compatible
query II rowsort label-3624
SELECT DISTINCT 8 * COUNT ( * ) AS col2, MAX ( - 72 ) + - + 45 FROM tab0
----
24
-117

query II rowsort
SELECT ALL - 83 * - col1 AS col0, col2 + - col1 + + + col0 AS col2 FROM tab2 AS cor0
----
4233
18
5561
66
6391
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3626
SELECT DISTINCT + - 15 * + + CAST( SUM( - col2 ) AS SIGNED ) * + ( + 46 ) - + - COUNT( * ) + + 71 col2 FROM tab0 AS cor0
----
107714

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3626
SELECT DISTINCT + - 15 * + + CAST ( SUM ( - col2 ) AS INTEGER ) * + ( + 46 ) - + - COUNT ( * ) + + 71 col2 FROM tab0 AS cor0
----
107714

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 21 + 57 AS col0 FROM tab2 AS cor0
----
78
78
78

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT + ( col1 ) / + col0 + + col1 + + - 84 IS NOT NULL )
----

query I rowsort
SELECT ALL + col1 + - 43 FROM tab1
----
-29
-38
4

query I rowsort
SELECT ALL 8 - + col0 FROM tab2
----
-38
-56
-67

query III rowsort
SELECT * FROM tab0 WHERE NOT 51 = - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 17 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN + col1 * + col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT ALL - MAX( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-3635
SELECT ALL - MAX ( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0
----
59

query I rowsort
SELECT - 27 AS col0 FROM tab2 AS cor0 WHERE NOT 60 IS NULL
----
-27
-27
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 4 col2 FROM tab1 AS cor0
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT DISTINCT MAX( 83 ) col1 FROM tab2
----
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3638
SELECT DISTINCT MAX ( 83 ) col1 FROM tab2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT DISTINCT COUNT( ALL 75 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3639
SELECT DISTINCT COUNT ( ALL 75 ) FROM tab0
----
3

query II rowsort
SELECT + col2, + col1 * - - 15 * - - 35 FROM tab2
----
23
26775
40
40425
58
35175

query I rowsort
SELECT DISTINCT + 17 + - col2 AS col0 FROM tab1 WHERE + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 col0 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3643
SELECT ALL - col0 * - + col2 + 96 + - + col2 DIV col0 AS col0 FROM tab1 AS cor0
----
4991
5111
6284

skipif mysql # not compatible
query I rowsort label-3643
SELECT ALL - col0 * - + col2 + 96 + - + col2 / col0 AS col0 FROM tab1 AS cor0
----
4991
5111
6284

query II rowsort
SELECT + - 71 AS col1, + col2 + + col1 FROM tab2 AS cor0
----
-71
117
-71
125
-71
74

query I rowsort
SELECT DISTINCT - 94 * - 16 + - + col2 AS col2 FROM tab0
----
1405
1457
1494

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NOT 49 <= NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 33 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 NOT BETWEEN NULL AND + col2
----

query I rowsort
SELECT ALL ( + 95 ) FROM tab2 AS cor0
----
95
95
95

query I rowsort
SELECT + col0 + - 62 AS col2 FROM tab1 AS cor0
----
-11
23
29

query I rowsort
SELECT - col2 + 91 AS col1 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-5
23
32

query I rowsort
SELECT + col2 + + 33 AS col2 FROM tab1 AS cor0
----
101
129
92

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3653
SELECT - col0 + + - CAST( - 22 AS SIGNED ) DIV col1 * + col1 * + col1 * + + col1 AS col0 FROM tab1
----
-91
2693
415

skipif mysql # not compatible
query I rowsort label-3653
SELECT - col0 + + - CAST ( - 22 AS INTEGER ) / col1 * + col1 * + col1 * + + col1 AS col0 FROM tab1
----
-91
2693
415

onlyif mysql # DIV for integer division: 
query II rowsort label-3654
SELECT DISTINCT 86 + - col2 DIV + 72, 4 AS col1 FROM tab2
----
86
4

skipif mysql # not compatible
query II rowsort label-3654
SELECT DISTINCT 86 + - col2 / + 72, 4 AS col1 FROM tab2
----
86
4

query I rowsort
SELECT + col2 + - - col0 AS col1 FROM tab1
----
144
147
159

query I rowsort
SELECT DISTINCT - + 19 FROM tab0 WHERE - col0 / col1 = NULL
----

query I rowsort
SELECT ALL col0 + - 70 FROM tab2
----
-24
-6
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT MAX( ALL + 88 ) FROM tab1 WHERE NULL NOT BETWEEN + 57 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3658
SELECT MAX ( ALL + 88 ) FROM tab1 WHERE NULL NOT BETWEEN + 57 AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3659
SELECT ALL - ( + - 70 ) DIV - 10 AS col1 FROM tab0 AS cor0
----
-7
-7
-7

skipif mysql # not compatible
query I rowsort label-3659
SELECT ALL - ( + - 70 ) / - 10 AS col1 FROM tab0 AS cor0
----
-7
-7
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-3660
SELECT - - col0 DIV - 31 AS col2 FROM tab2 AS cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-3660
SELECT - - col0 / - 31 AS col2 FROM tab2 AS cor0
----
-1
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT ALL + + MAX( DISTINCT + - col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3661
SELECT ALL + + MAX ( DISTINCT + - col2 ) FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT + - 38 - - MIN( + + 23 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3662
SELECT + - 38 - - MIN ( + + 23 ) FROM tab0 AS cor0
----
-15

query I rowsort
SELECT ALL + col1 * - ( - + col0 ) AS col2 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
SELECT MAX( DISTINCT + 81 ) AS col0 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-3664
SELECT MAX ( DISTINCT + 81 ) AS col0 FROM tab1
----
81

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 14 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3667
SELECT DISTINCT + 33 DIV + COUNT( * ) FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-3667
SELECT DISTINCT + 33 / + COUNT ( * ) FROM tab1 AS cor0
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3668
SELECT DISTINCT - - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3668
SELECT DISTINCT - - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT ALL + SUM( DISTINCT - 29 ) * + COUNT( * ) AS col1 FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-3669
SELECT ALL + SUM ( DISTINCT - 29 ) * + COUNT ( * ) AS col1 FROM tab0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT MAX( - 2 ) AS col0 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-3670
SELECT MAX ( - 2 ) AS col0 FROM tab2 AS cor0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3671
SELECT * FROM tab2 cor0 WHERE NOT - CAST( - col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3671
SELECT * FROM tab2 cor0 WHERE NOT - CAST ( - col1 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col2 AS col2 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - ( - 20 ) + + - col2 FROM tab2
----
-20
-3
-38

query II rowsort
SELECT + 67, 90 * + 56 AS col2 FROM tab1 cor0
----
67
5040
67
5040
67
5040

onlyif mysql # DIV for integer division: 
query I rowsort label-3675
SELECT + 41 DIV + + col0 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3675
SELECT + 41 / + + col0 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 20 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT DISTINCT - COUNT( * ) FROM tab0 cor0 WHERE NOT ( NULL ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-3677
SELECT DISTINCT - COUNT ( * ) FROM tab0 cor0 WHERE NOT ( NULL ) <> NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3678
SELECT DISTINCT 54 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3678
SELECT DISTINCT 54 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 * col1 + 89 FROM tab1 AS cor0
----
114
2298
285

query II rowsort
SELECT ALL - - col1 AS col1, col2 AS col0 FROM tab1 AS cor0
----
14
96
47
68
5
59

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL > 72
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3682
SELECT ALL - COUNT( * ) + - 45 DIV + + 8 FROM tab0 cor0
----
-8

skipif mysql # not compatible
query I rowsort label-3682
SELECT ALL - COUNT ( * ) + - 45 / + + 8 FROM tab0 cor0
----
-8

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 NOT BETWEEN - + 55 + - 50 AND col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3684
SELECT 61 DIV + COUNT( * ) - - + COUNT( * ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-3684
SELECT 61 / + COUNT ( * ) - - + COUNT ( * ) AS col0 FROM tab2
----
23

query I rowsort
SELECT - col0 * + col2 * ( - col2 ) - + - col1 FROM tab2
----
102477
24385
252367

query III rowsort
SELECT ALL * FROM tab2 WHERE ( ( NOT ( + col0 < 40 * col2 * col0 * col2 ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3687
SELECT ALL - col1 + - CAST( - - col2 AS SIGNED ) + + col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-3687
SELECT ALL - col1 + - CAST ( - - col2 AS INTEGER ) + + col1 FROM tab1
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 47 * 40 + - + 33 NOT BETWEEN NULL AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT DISTINCT - ( + SUM( ALL + - col1 ) ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-3689
SELECT DISTINCT - ( + SUM ( ALL + - col1 ) ) FROM tab2
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3690
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NOT + col0 + + col0 <> NULL
----

skipif mysql # not compatible
query I rowsort label-3690
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NOT + col0 + + col0 <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 + - col2 NOT BETWEEN - - col2 AND col1
----

query I rowsort
SELECT ALL 49 * ( + 60 ) AS col0 FROM tab2
----
2940
2940
2940

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3693
SELECT ALL - col0 / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3693
SELECT ALL - col0 / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 AS cor0 WHERE NOT 67 * - col1 IS NULL
----
59
68
96

query I rowsort
SELECT DISTINCT - ( - 86 ) AS col1 FROM tab0 AS cor0
----
86

query I rowsort
SELECT DISTINCT + 2 * + - col0 FROM tab2 AS cor0
----
-128
-150
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( - 45 ) * - 33 - - col1 col1, col2 FROM tab2 AS cor0
----
1536
23
1552
58
1562
40

query I rowsort
SELECT DISTINCT - 31 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3699
SELECT ( - 65 ) * + - 60 + - SUM( + CAST( 66 AS SIGNED ) ) AS col2 FROM tab2
----
3702

skipif mysql # not compatible
query I rowsort label-3699
SELECT ( - 65 ) * + - 60 + - SUM ( + CAST ( 66 AS INTEGER ) ) AS col2 FROM tab2
----
3702

onlyif mysql # DIV for integer division: 
query I rowsort label-3700
SELECT - 88 DIV + col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3700
SELECT - 88 / + col1 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT col2 * - 53 * + col1 AS col2 FROM tab0
----
-11130
-201771
-5247

onlyif mysql # aggregate syntax: 
query II rowsort label-3702
SELECT DISTINCT + 54 * + - COUNT( * ) AS col2, COUNT( ALL col2 ) FROM tab1
----
-162
3

skipif mysql # not compatible
query II rowsort label-3702
SELECT DISTINCT + 54 * + - COUNT ( * ) AS col2, COUNT ( ALL col2 ) FROM tab1
----
-162
3

query I rowsort
SELECT DISTINCT + col1 * 60 FROM tab2
----
3060
4020
4620

onlyif mysql # aggregate syntax: 
query II rowsort label-3704
SELECT DISTINCT 62 * + COUNT( * ) AS col1, - 76 FROM tab2 cor0
----
186
-76

skipif mysql # not compatible
query II rowsort label-3704
SELECT DISTINCT 62 * + COUNT ( * ) AS col1, - 76 FROM tab2 cor0
----
186
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3705
SELECT + MIN( + - 83 ) AS col2 FROM tab2 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-3705
SELECT + MIN ( + - 83 ) AS col2 FROM tab2 AS cor0
----
-83

query I rowsort
SELECT DISTINCT - ( - 59 ) * - ( - col2 ) + + col2 AS col1 FROM tab1 AS cor0
----
3540
4080
5760

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3707
SELECT * FROM tab2 WHERE - ( + col1 ) IN ( + 71, + CAST( NULL AS DECIMAL ) * col1 )
----

skipif mysql # not compatible
query III rowsort label-3707
SELECT * FROM tab2 WHERE - ( + col1 ) IN ( + 71, + CAST ( NULL AS REAL ) * col1 )
----

query I rowsort
SELECT - 10 + + + ( col2 ) FROM tab2 AS cor0
----
13
30
48

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * + 92 >= NULL
----

query I rowsort
SELECT ALL 49 AS col1 FROM tab0 cor0
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT MIN( - + 52 ) + - COUNT( * ) col2 FROM tab2 cor0
----
-55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3711
SELECT MIN ( - + 52 ) + - COUNT ( * ) col2 FROM tab2 cor0
----
-55

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 53 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 51 * col2 > + col2
----

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NULL BETWEEN 41 + col0 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT DISTINCT + 89 + - COUNT( * ) FROM tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-3715
SELECT DISTINCT + 89 + - COUNT ( * ) FROM tab1 AS cor0
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-3716
SELECT DISTINCT + 66 col2, + COUNT( * ) AS col1 FROM tab1
----
66
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3716
SELECT DISTINCT + 66 col2, + COUNT ( * ) AS col1 FROM tab1
----
66
3

query I rowsort
SELECT ALL + 65 + + 80 AS col2 FROM tab0
----
145
145
145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3718
SELECT DISTINCT 16 * - col1 - - + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3718
SELECT DISTINCT 16 * - col1 - - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL col0 + ( + col1 ) - + + col0 AS col0 FROM tab2
----
51
67
77

query I rowsort
SELECT ALL col1 - - - col0 AS col0 FROM tab0
----
-66
-96
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0, 95 col1 FROM tab2
----
46
95
64
95
75
95

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - col2 + + col1 <> col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 48 * - 30 AS col2 FROM tab2 AS cor0
----
-1440
-1440
-1440

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 49 * - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3725
SELECT ALL + COUNT( * ) * + SUM( ALL col0 ) + + CAST( NULL AS SIGNED ) + + 53 - - 93 - + 59 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3725
SELECT ALL + COUNT ( * ) * + SUM ( ALL col0 ) + + CAST ( NULL AS INTEGER ) + + 53 - - 93 - + 59 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3726
SELECT ALL - COUNT( 33 ), - COUNT( * ) FROM tab1
----
-3
-3

skipif mysql # not compatible
query II rowsort label-3726
SELECT ALL - COUNT ( 33 ), - COUNT ( * ) FROM tab1
----
-3
-3

query II rowsort
SELECT DISTINCT + col2 * - + col2, col1 * + 59 AS col1 FROM tab1 cor0
----
-3481
295
-4624
2773
-9216
826

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 53 * - ( + - 40 ) * - ( + - col2 ) = 28
----

query I rowsort
SELECT - 43 + 23 * - 77 AS col1 FROM tab0 AS cor0 WHERE NOT - 89 * + - 1 NOT BETWEEN - 77 * - col1 AND - col0
----

query I rowsort
SELECT ALL - 60 AS col1 FROM tab2 WHERE NOT ( NOT 63 <> ( NULL ) )
----

query I rowsort
SELECT col2 * + - 28 AS col1 FROM tab1
----
-1652
-1904
-2688

query I rowsort
SELECT 39 * col1 AS col2 FROM tab0
----
3159
39
819

query I rowsort
SELECT ALL col2 * - + 56 FROM tab1
----
-3304
-3808
-5376

query I rowsort
SELECT col0 * col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3735
SELECT 70 DIV + + col1 FROM tab0
----
0
3
70

skipif mysql # not compatible
query I rowsort label-3735
SELECT 70 / + + col1 FROM tab0
----
0
3
70

query II rowsort
SELECT 55 AS col2, + 84 * + + 43 FROM tab2
----
55
3612
55
3612
55
3612

query I rowsort
SELECT DISTINCT - col1 * - - col0 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT ALL - 51 + - - COUNT( * ) FROM tab1 cor0
----
-48

skipif mysql # not compatible
query I rowsort label-3738
SELECT ALL - 51 + - - COUNT ( * ) FROM tab1 cor0
----
-48

query I rowsort
SELECT ( + ( col1 ) ) * - col2 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT 98 FROM tab0 WHERE ( NULL ) IN ( + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col2 FROM tab2 WHERE ( NULL ) IN ( col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( col0 ) BETWEEN col1 + - col0 / col1 AND + col1 * + col0 - col2 * col2
----
75
67
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3743
SELECT DISTINCT + col2 + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3743
SELECT DISTINCT + col2 + CAST ( NULL AS REAL ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( 12 ) BETWEEN ( - col1 ) AND ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT ALL + ( MAX( - col0 ) ) * 24 AS col0 FROM tab0
----
-360

skipif mysql # not compatible
query I rowsort label-3745
SELECT ALL + ( MAX ( - col0 ) ) * 24 AS col0 FROM tab0
----
-360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3746
SELECT CAST( NULL AS SIGNED ) - + col1 * - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3746
SELECT CAST ( NULL AS INTEGER ) - + col1 * - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT - COUNT( * ) + - 16 * COUNT( * ) AS col2 FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-3747
SELECT - COUNT ( * ) + - 16 * COUNT ( * ) AS col2 FROM tab0
----
-51

query I rowsort
SELECT + 53 AS col1 FROM tab2 WHERE NULL IS NULL
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT - COUNT( * ) FROM tab2 WHERE NULL NOT IN ( + 28 * - 72 )
----
0

skipif mysql # not compatible
query I rowsort label-3749
SELECT - COUNT ( * ) FROM tab2 WHERE NULL NOT IN ( + 28 * - 72 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT - MAX( 84 ) AS col1 FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-3750
SELECT - MAX ( 84 ) AS col1 FROM tab0
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3751
SELECT ALL 19 FROM tab1 WHERE ( - CAST( NULL AS SIGNED ) ) > NULL
----

skipif mysql # not compatible
query I rowsort label-3751
SELECT ALL 19 FROM tab1 WHERE ( - CAST ( NULL AS INTEGER ) ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3752
SELECT ALL 97 + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3752
SELECT ALL 97 + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3753
SELECT ALL * FROM tab2 WHERE ( col0 ) > ( col0 * CAST( - col1 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3753
SELECT ALL * FROM tab2 WHERE ( col0 ) > ( col0 * CAST ( - col1 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 13 * 2 ) = NULL
----

query I rowsort
SELECT ALL + ( ( + col2 ) ) * + 51 FROM tab2
----
1173
2040
2958

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3756
SELECT 93 DIV - COUNT( * ) FROM tab2
----
-31

skipif mysql # not compatible
query I rowsort label-3756
SELECT 93 / - COUNT ( * ) FROM tab2
----
-31

query I rowsort
SELECT ALL + col2 * - 63 FROM tab2
----
-1449
-2520
-3654

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT + 70 - - COUNT( * ) AS col0 FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-3758
SELECT + 70 - - COUNT ( * ) AS col0 FROM tab2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT DISTINCT - MIN( DISTINCT + col1 ) * 4 AS col1 FROM tab1
----
-20

skipif mysql # not compatible
query I rowsort label-3759
SELECT DISTINCT - MIN ( DISTINCT + col1 ) * 4 AS col1 FROM tab1
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3760
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NOT ( + col0 + - col2 ) <> + ( - col2 ) + - col1
----

skipif mysql # not compatible
query I rowsort label-3760
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NOT ( + col0 + - col2 ) <> + ( - col2 ) + - col1
----

query III rowsort
SELECT * FROM tab0 WHERE ( + 99 ) <= ( + col2 )
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3762
SELECT DISTINCT * FROM tab2 WHERE NOT + ( - CAST( 87 AS SIGNED ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3762
SELECT DISTINCT * FROM tab2 WHERE NOT + ( - CAST ( 87 AS INTEGER ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3763
SELECT DISTINCT col1 + + col2 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3763
SELECT DISTINCT col1 + + col2 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 30 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 35 <> ( + ( + col0 ) )
----

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT col2 = NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 38 col0 FROM tab1 AS cor0
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3770
SELECT - CAST( + col0 AS SIGNED ) AS col2 FROM tab0 cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-3770
SELECT - CAST ( + col0 AS INTEGER ) AS col2 FROM tab0 cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT ALL + - 2 * MIN( col2 ) AS col1 FROM tab0 cor0
----
-20

skipif mysql # not compatible
query I rowsort label-3771
SELECT ALL + - 2 * MIN ( col2 ) AS col1 FROM tab0 cor0
----
-20

query I rowsort
SELECT ALL col2 + + 65 FROM tab2 AS cor0
----
105
123
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3773
SELECT DISTINCT ( + COUNT( * ) ) * CAST( NULL AS SIGNED ) + ( ( 2 ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3773
SELECT DISTINCT ( + COUNT ( * ) ) * CAST ( NULL AS INTEGER ) + ( ( 2 ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3774
SELECT col2 * col1 * col0 + - col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3774
SELECT col2 * col1 * col0 + - col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3775
SELECT DISTINCT 27 + 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-3775
SELECT DISTINCT 27 + CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL

query I rowsort
SELECT 8 + + ( col0 ) AS col2 FROM tab2
----
54
72
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3777
SELECT - COUNT( * ) + 4 AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3777
SELECT - COUNT ( * ) + 4 AS col2 FROM tab1
----
1

query I rowsort
SELECT col2 + + 15 * + col2 FROM tab2
----
368
640
928

onlyif mysql # DIV for integer division: 
query I rowsort label-3779
SELECT - col1 + + + col1 - 91 DIV + 7 FROM tab0
----
-13
-13
-13

skipif mysql # not compatible
query I rowsort label-3779
SELECT - col1 + + + col1 - 91 / + 7 FROM tab0
----
-13
-13
-13

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 WHERE ( NULL ) < ( + 86 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col1 + col2 ) NOT IN ( col1 + + ( + col2 + - col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3782
SELECT 7 DIV - 28 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3782
SELECT 7 / - 28 AS col0 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( + col1 ) + col1 IN ( - col0 )
----

query I rowsort
SELECT - col1 + col0 * ( col0 ) FROM tab1 cor0 WHERE ( col2 + col1 * + col1 ) BETWEEN - col2 / 73 + 78 AND + 60
----

query I rowsort
SELECT DISTINCT - col1 * - + 72 FROM tab0 AS cor0
----
1512
5832
72

query I rowsort
SELECT ALL - 12 * + 90 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to e882c466e1b5969cdbfee3e247771e02

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3787
SELECT ALL + CAST( + col2 AS SIGNED ) * - col0 + 10 col2 FROM tab2 WHERE col2 + + ( - 63 ) > ( 9 * - col1 )
----
-1048
-2550
-4340

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3787
SELECT ALL + CAST ( + col2 AS INTEGER ) * - col0 + 10 col2 FROM tab2 WHERE col2 + + ( - 63 ) > ( 9 * - col1 )
----
-1048
-2550
-4340

query I rowsort
SELECT col2 + - + 57 FROM tab0
----
-10
-47
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT - + 60 FROM tab2 AS cor0 WHERE - col2 > NULL
----

query I rowsort
SELECT ALL + col1 - + - col2 - - col0 FROM tab1 AS cor0
----
149
161
206

query I rowsort
SELECT ALL col0 * - col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> + + col0 + 57
----

query I rowsort
SELECT + col1 + - col0 * - + col0 FROM tab2 AS cor0
----
2167
4173
5692

onlyif mysql # DIV for integer division: 
query I rowsort label-3794
SELECT DISTINCT + + 62 DIV + col1 AS col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3794
SELECT DISTINCT + + 62 / + col1 AS col1 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT col1 + + 97 + - 63 AS col0 FROM tab0 AS cor0
----
115
35
55

query I rowsort
SELECT ALL col0 + + col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( - ( + col1 ) * col1 + 8 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3797
SELECT DISTINCT col1, - col0 DIV 69 - - 67 FROM tab1 AS cor0
----
14
67
47
66
5
66

skipif mysql # not compatible
query II rowsort label-3797
SELECT DISTINCT col1, - col0 / 69 - - 67 FROM tab1 AS cor0
----
14
67
47
66
5
66

query I rowsort
SELECT DISTINCT 12 / col2 FROM tab0 WHERE NOT ( NULL ) > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3799
SELECT * FROM tab1 WHERE NOT CAST( - ( + CAST( col1 AS SIGNED ) ) AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-3799
SELECT * FROM tab1 WHERE NOT CAST ( - ( + CAST ( col1 AS INTEGER ) ) AS INTEGER ) <> NULL
----

query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE NOT - - col1 + + + col0 + + 30 / + col0 >= ( + col2 * col1 + 15 )
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN NULL AND ( + col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3802
SELECT - MAX( - 83 ) AS col0, - 12 + + + 79 AS col1 FROM tab1 cor0
----
83
67

skipif mysql # not compatible
query II rowsort label-3802
SELECT - MAX ( - 83 ) AS col0, - 12 + + + 79 AS col1 FROM tab1 cor0
----
83
67

onlyif mysql # DIV for integer division: 
query I rowsort label-3803
SELECT + col2 * - + col0 DIV - + col0 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-3803
SELECT + col2 * - + col0 / - + col0 FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND 30
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3805
SELECT DISTINCT * FROM tab0 WHERE NOT + + col0 + col0 * + + col1 + - CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-3805
SELECT DISTINCT * FROM tab0 WHERE NOT + + col0 + col0 * + + col1 + - CAST ( NULL AS INTEGER ) = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 17 + 97 + - + col1 NOT BETWEEN ( col1 ) AND NULL
----
15
81
47

query I rowsort
SELECT DISTINCT - ( + 60 ) AS col0 FROM tab1 AS cor0
----
-60

query I rowsort
SELECT ALL col2 + - 54 FROM tab1 AS cor0
----
14
42
5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 73 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 + - 3 FROM tab0 AS cor0
----
-2
18
78

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col0 ) BETWEEN col0 AND - col0 - + 29
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT SUM( ALL + 96 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3812
SELECT SUM ( ALL + 96 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + + col0 ) NOT IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3814
SELECT DISTINCT + CAST( + - col0 AS SIGNED ) AS col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-3814
SELECT DISTINCT + CAST ( + - col0 AS INTEGER ) AS col0 FROM tab1
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 26 col2, col1 FROM tab2
----
-26
51
-26
67
-26
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT - MAX( DISTINCT - 46 ) FROM tab1
----
46

skipif mysql # not compatible
query I rowsort label-3816
SELECT - MAX ( DISTINCT - 46 ) FROM tab1
----
46

query I rowsort
SELECT ALL - 10 * + col1 AS col0 FROM tab2
----
-510
-670
-770

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab1 WHERE NULL = - 35
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 NOT BETWEEN NULL AND - col1
----

query I rowsort
SELECT ALL 10 + col1 FROM tab2
----
61
77
87

query I rowsort
SELECT - 53 AS col0 FROM tab1 AS cor0 WHERE NULL IN ( 87 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3822
SELECT DISTINCT 80 + + + col0 + - + 28 + + - col0 * - + CAST( NULL AS SIGNED ) + col2 - col0 / ( 43 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3822
SELECT DISTINCT 80 + + + col0 + - + 28 + + - col0 * - + CAST ( NULL AS INTEGER ) + col2 - col0 / ( 43 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + 66 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + - 50 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( - col0 ) + ( col2 ) FROM tab0 WHERE + col2 * col0 - - - 19 > 55 / - 31
----
196
62
97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3827
SELECT ALL + CAST( - 46 AS SIGNED ) - - col1 DIV + col1 + 86 * - 14 * - + ( + 26 ) + - col0 FROM tab2 cor0
----
31184
31195
31213

skipif mysql # not compatible
query I rowsort label-3827
SELECT ALL + CAST ( - 46 AS INTEGER ) - - col1 / + col1 + 86 * - 14 * - + ( + 26 ) + - col0 FROM tab2 cor0
----
31184
31195
31213

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3828
SELECT ALL + 18 - COUNT( * ) DIV + 87 FROM tab0 AS cor0 WHERE NOT + col1 * 75 * col1 * CAST( NULL AS SIGNED ) + col2 IS NOT NULL
----
18

skipif mysql # not compatible
query I rowsort label-3828
SELECT ALL + 18 - COUNT ( * ) / + 87 FROM tab0 AS cor0 WHERE NOT + col1 * 75 * col1 * CAST ( NULL AS INTEGER ) + col2 IS NOT NULL
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3829
SELECT DISTINCT - col1 + - col2 FROM tab2 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) ) * - 86 IS NOT NULL
----
-117
-125
-74

skipif mysql # not compatible
query I rowsort label-3829
SELECT DISTINCT - col1 + - col2 FROM tab2 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) * - 86 IS NOT NULL
----
-117
-125
-74

query I rowsort
SELECT + col2 * col1 * - col0 AS col1 FROM tab2 AS cor0
----
-197120
-291450
-53958

query I rowsort
SELECT DISTINCT 95 AS col1 FROM tab2 cor0
----
95

query I rowsort
SELECT DISTINCT 13 * + + 89 + + 97 AS col0 FROM tab1 AS cor0
----
1254

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( ( + col2 ) ) col1 FROM tab0
----
10
47
99

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 <= col2
----

query I rowsort
SELECT DISTINCT col0 * + 91 FROM tab2
----
4186
5824
6825

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3836
SELECT + 95 DIV - + COUNT( * ) FROM tab2
----
-31

skipif mysql # not compatible
query I rowsort label-3836
SELECT + 95 / - + COUNT ( * ) FROM tab2
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3837
SELECT ALL - 83 * + ( + - CAST( COUNT( * ) AS SIGNED ) ) FROM tab0
----
249

skipif mysql # not compatible
query I rowsort label-3837
SELECT ALL - 83 * + ( + - CAST ( COUNT ( * ) AS INTEGER ) ) FROM tab0
----
249

query II rowsort
SELECT col0 AS col1, col0 + col2 AS col0 FROM tab1
----
51
147
85
144
91
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3839
SELECT - col1 FROM tab0 WHERE NOT + col0 * 98 + - + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3839
SELECT - col1 FROM tab0 WHERE NOT + col0 * 98 + - + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT 92 AS col1 FROM tab2 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT + 71 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
71
71
71

onlyif mysql # DIV for integer division: 
query I rowsort label-3842
SELECT ALL 69 DIV + 23 col1 FROM tab2 AS cor0
----
3
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3842
SELECT ALL 69 / + 23 col1 FROM tab2 AS cor0
----
3
3
3

query I rowsort
SELECT ALL 6 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
6
6
6

query II rowsort
SELECT ALL + + 86 AS col0, - 35 FROM tab0 AS cor0
----
86
-35
86
-35
86
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3845
SELECT DISTINCT 15 DIV - ( + SUM( DISTINCT col2 ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3845
SELECT DISTINCT 15 / - ( + SUM ( DISTINCT col2 ) ) FROM tab0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT + + 5 + - COUNT( * ) * + COUNT( * ) FROM tab1 cor0 WHERE col1 IS NOT NULL
----
-4

skipif mysql # not compatible
query I rowsort label-3847
SELECT + + 5 + - COUNT ( * ) * + COUNT ( * ) FROM tab1 cor0 WHERE col1 IS NOT NULL
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT ALL + ( + COUNT( * ) ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3848
SELECT ALL + ( + COUNT ( * ) ) AS col0 FROM tab1 cor0
----
3

query I rowsort
SELECT ALL - 62 + + - col1 * - col1 FROM tab0 AS cor0
----
-61
379
6499

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 6 col0 FROM tab0 AS cor0
----
-4
-41
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT DISTINCT MAX( ALL - 76 ) FROM tab2 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-3851
SELECT DISTINCT MAX ( ALL - 76 ) FROM tab2 AS cor0
----
-76

query I rowsort
SELECT ALL + - col2 * - col0 + + - col1 AS col1 FROM tab0 AS cor0
----
624
849
9602

onlyif mysql # DIV for integer division: 
query II rowsort label-3853
SELECT + + col0 DIV + 6 + + + 25 + col0 AS col1, + col1 * + ( + col0 ) AS col1 FROM tab1 AS cor0
----
124
425
131
4277
84
714

skipif mysql # not compatible
query II rowsort label-3853
SELECT + + col0 / + 6 + + + 25 + col0 AS col1, + col1 * + ( + col0 ) AS col1 FROM tab1 AS cor0
----
124
425
131
4277
84
714

query I rowsort
SELECT DISTINCT - col1 + - - col0 AS col2 FROM tab0
----
-66
66
96

query I rowsort
SELECT + 68 + + col2 * + 82 AS col2 FROM tab1
----
4906
5644
7940

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT DISTINCT + SUM( ALL - - ( - 14 ) ) + 95 FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-3856
SELECT DISTINCT + SUM ( ALL - - ( - 14 ) ) + 95 FROM tab2
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3857
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NOT NULL = - col0
----

skipif mysql # not compatible
query I rowsort label-3857
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT NULL = - col0
----

query I rowsort
SELECT ALL - 49 + + - col1 AS col1 FROM tab2
----
-100
-116
-126

query III rowsort
SELECT ALL * FROM tab2 WHERE 31 * + 98 + + col1 * - 7 BETWEEN - - col1 + col2 * col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - - 5 ) <> col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3861
SELECT ALL - COUNT( * ) - + MAX( DISTINCT - col2 ) AS col2 FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-3861
SELECT ALL - COUNT ( * ) - + MAX ( DISTINCT - col2 ) AS col2 FROM tab1
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3862
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( 57, + 47 * + - CAST( + - col1 AS SIGNED ) * + + col1 / col2 + 60 * - + col0 )
----

skipif mysql # not compatible
query III rowsort label-3862
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( 57, + 47 * + - CAST ( + - col1 AS INTEGER ) * + + col1 / col2 + 60 * - + col0 )
----

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE NULL NOT IN ( + ( ( - - 14 ) ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3864
SELECT ALL - ( - 31 ) - 99 AS col1, - COUNT( * ) AS col2 FROM tab0
----
-68
-3

skipif mysql # not compatible
query II rowsort label-3864
SELECT ALL - ( - 31 ) - 99 AS col1, - COUNT ( * ) AS col2 FROM tab0
----
-68
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3865
SELECT - + col2 / - col2 / + 55 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3865
SELECT - + col2 / - col2 / + 55 * + CAST ( NULL AS REAL ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 72 FROM tab0 AS cor0 WHERE NULL < col1
----

query I rowsort
SELECT - 35 - + 67 * + 61 AS col1 FROM tab1
----
-4122
-4122
-4122

query I rowsort
SELECT DISTINCT - col2 + - 56 FROM tab2
----
-114
-79
-96

query I rowsort
SELECT - 43 * - col0 + + - col2 FROM tab0 AS cor0
----
3731
4072
598

query I rowsort
SELECT - - col2 AS col1 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3871
SELECT + - COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3871
SELECT + - COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3872
SELECT ALL - - 15 AS col1, - COUNT( DISTINCT + - col1 ) AS col1 FROM tab2 AS cor0
----
15
-3

skipif mysql # not compatible
query II rowsort label-3872
SELECT ALL - - 15 AS col1, - COUNT ( DISTINCT + - col1 ) AS col1 FROM tab2 AS cor0
----
15
-3

query I rowsort
SELECT - 95 * - + 3 FROM tab2 AS cor0
----
285
285
285

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col2, 1 + - 45 col0 FROM tab1 AS cor0
----
-51
-44
-85
-44
-91
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3875
SELECT CAST( col0 AS SIGNED ) FROM tab2 cor0 WHERE NOT col2 * 90 <> NULL
----

skipif mysql # not compatible
query I rowsort label-3875
SELECT CAST ( col0 AS INTEGER ) FROM tab2 cor0 WHERE NOT col2 * 90 <> NULL
----

query I rowsort
SELECT + + col0 * + col0 * - 81 FROM tab1 AS cor0
----
-210681
-585225
-670761

query I rowsort
SELECT DISTINCT + - 74 * - col1 * - 90 FROM tab2 AS cor0
----
-339660
-446220
-512820

query I rowsort
SELECT DISTINCT - col0 * - - 44 AS col1 FROM tab2 AS cor0
----
-2024
-2816
-3300

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT ALL 38 * MAX( DISTINCT + ( 1 ) ) FROM tab1
----
38

skipif mysql # not compatible
query I rowsort label-3880
SELECT ALL 38 * MAX ( DISTINCT + ( 1 ) ) FROM tab1
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3881
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( - CAST( col0 AS SIGNED ) * + + col2 + + ( 31 ) - + col0 )
----

skipif mysql # not compatible
query III rowsort label-3881
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( - CAST ( col0 AS INTEGER ) * + + col2 + + ( 31 ) - + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT DISTINCT - - COUNT( * ) FROM tab2 WHERE col0 * 85 = + col2 + + col1 * - col0
----
0

skipif mysql # not compatible
query I rowsort label-3882
SELECT DISTINCT - - COUNT ( * ) FROM tab2 WHERE col0 * 85 = + col2 + + col1 * - col0
----
0

query I rowsort
SELECT col2 * - 91 AS col1 FROM tab2
----
-2093
-3640
-5278

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 12 * - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 20 >= ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT - + MAX( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-3886
SELECT - + MAX ( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0
----
-47

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL > + + col0 - 84
----

query I rowsort
SELECT DISTINCT - ( - 37 ) * - 46 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-1702

query I rowsort
SELECT ALL - 71 AS col1 FROM tab1 WHERE NULL IS NULL
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3890
SELECT + ( - - COUNT( * ) ) * 34 * - 72 FROM tab2 AS cor0
----
-7344

skipif mysql # not compatible
query I rowsort label-3890
SELECT + ( - - COUNT ( * ) ) * 34 * - 72 FROM tab2 AS cor0
----
-7344

onlyif mysql # DIV for integer division: 
query I rowsort label-3891
SELECT + col1 DIV col2 AS col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3891
SELECT + col1 / col2 AS col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3892
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST( col2 AS SIGNED ) * - col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3892
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST ( col2 AS INTEGER ) * - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT DISTINCT COUNT( * ) + + MAX( - col0 ) FROM tab2 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-3893
SELECT DISTINCT COUNT ( * ) + + MAX ( - col0 ) FROM tab2 AS cor0
----
-43

query II rowsort
SELECT + ( + col0 ) * - + col2 - + col1, + col0 AS col0 FROM tab2
----
-1109
46
-2637
64
-4417
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3895
SELECT ALL + col2 - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3895
SELECT ALL + col2 - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 39 + col0 FROM tab0
----
-24
48
58

query I rowsort
SELECT + col1 + + 58 + - - col1 FROM tab2
----
160
192
212

query I rowsort
SELECT + col1 * + 57 * + 99 + col2 * - ( - 39 ) - + ( col2 ) AS col0 FROM tab0 WHERE + 6 IS NOT NULL
----
118883
458869
9405

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3899
SELECT DISTINCT CAST( NULL AS DECIMAL ) - col0, - 84 AS col2 FROM tab1
----
NULL
-84

skipif mysql # not compatible
query II rowsort label-3899
SELECT DISTINCT CAST ( NULL AS REAL ) - col0, - 84 AS col2 FROM tab1
----
NULL
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT - COUNT( * ) + + - ( - ( 75 ) ) AS col2 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-3900
SELECT - COUNT ( * ) + + - ( - ( 75 ) ) AS col2 FROM tab0
----
72

query I rowsort
SELECT DISTINCT 35 - col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 AS cor0 WHERE NOT - col1 / + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT DISTINCT ( - MIN( DISTINCT + - col0 ) ) AS col1 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-3903
SELECT DISTINCT ( - MIN ( DISTINCT + - col0 ) ) AS col1 FROM tab2
----
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT - 1 <> ( + 42 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 * + col1 * - col0 + + + col0 FROM tab1 AS cor0
----
-24990
-290745
-68493

onlyif mysql # aggregate syntax: 
query II rowsort label-3906
SELECT DISTINCT + 62 AS col2, - COUNT( * ) FROM tab1 AS cor0
----
62
-3

skipif mysql # not compatible
query II rowsort label-3906
SELECT DISTINCT + 62 AS col2, - COUNT ( * ) FROM tab1 AS cor0
----
62
-3

query I rowsort
SELECT DISTINCT - 30 AS col0 FROM tab0 cor0
----
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 65 col2 FROM tab0 AS cor0
----
65
65
65

onlyif mysql # aggregate syntax: 
query II rowsort label-3909
SELECT + + COUNT( * ) * COUNT( ALL col2 ) AS col0, - 13 FROM tab1 AS cor0
----
9
-13

skipif mysql # not compatible
query II rowsort label-3909
SELECT + + COUNT ( * ) * COUNT ( ALL col2 ) AS col0, - 13 FROM tab1 AS cor0
----
9
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT - + 58 * - COUNT( * ) FROM tab2 cor0
----
174

skipif mysql # not compatible
query I rowsort label-3910
SELECT - + 58 * - COUNT ( * ) FROM tab2 cor0
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT DISTINCT - COUNT( ALL ( - + ( col1 ) ) ) * MIN( ALL + col1 ) FROM tab1 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3911
SELECT DISTINCT - COUNT ( ALL ( - + ( col1 ) ) ) * MIN ( ALL + col1 ) FROM tab1 cor0
----
-15

query I rowsort
SELECT + 78 * - 94 AS col1 FROM tab1 AS cor0
----
-7332
-7332
-7332

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 2 * - 14 col2 FROM tab0
----
-28
-28
-28

query II rowsort
SELECT DISTINCT col2 AS col1, + col0 FROM tab2
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3915
SELECT DISTINCT - COUNT( * ) DIV - + 11 AS col1, ( + - COUNT( * ) ) FROM tab2
----
0
-3

skipif mysql # not compatible
query II rowsort label-3915
SELECT DISTINCT - COUNT ( * ) / - + 11 AS col1, ( + - COUNT ( * ) ) FROM tab2
----
0
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col0, - col0 + col2 col2 FROM tab1
----
59
-26
68
-23
96
45

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 0 * + - 42 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT DISTINCT + COUNT( * ) * + COUNT( DISTINCT + - col0 ) * - 17 FROM tab2 AS cor0 WHERE ( - col2 / 37 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3918
SELECT DISTINCT + COUNT ( * ) * + COUNT ( DISTINCT + - col0 ) * - 17 FROM tab2 AS cor0 WHERE ( - col2 / 37 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT DISTINCT - + ( - 67 ) * - SUM( + col1 ) col0 FROM tab1 AS cor0
----
-4422

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3919
SELECT DISTINCT - + ( - 67 ) * - SUM ( + col1 ) col0 FROM tab1 AS cor0
----
-4422

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3920
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NULL <= - 42
----

skipif mysql # not compatible
query I rowsort label-3920
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL <= - 42
----

query I rowsort
SELECT ALL - col2 * + + col0 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT ALL col0 + - ( + col2 ) - ( + col1 ) AS col0 FROM tab1 AS cor0
----
-24
-59
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE - - 92 + - col1 * - col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3923
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE - - 92 + - col1 * - col0 IS NOT NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3924
SELECT - + col0 + - - col1 DIV + - col1 AS col1 FROM tab1 cor0
----
-52
-86
-92

skipif mysql # not compatible
query I rowsort label-3924
SELECT - + col0 + - - col1 / + - col1 AS col1 FROM tab1 cor0
----
-52
-86
-92

query I rowsort
SELECT ALL 89 * + col0 * - col0 + - col0 AS col1 FROM tab2 AS cor0
----
-188370
-364608
-500700

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT ALL - 74 * - ( 23 ) + - - MAX( ALL - col2 ) FROM tab1 AS cor0
----
1643

skipif mysql # not compatible
query I rowsort label-3926
SELECT ALL - 74 * - ( 23 ) + - - MAX ( ALL - col2 ) FROM tab1 AS cor0
----
1643

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3927
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( 80, 79, - ( - col1 ) + - + 55 + + + CAST( 97 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-3927
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( 80, 79, - ( - col1 ) + - + 55 + + + CAST ( 97 AS REAL ) )
----

query I rowsort
SELECT + - ( 35 ) + + + 53 * col0 AS col0 FROM tab2 cor0
----
2403
3357
3940

query I rowsort
SELECT col0 * col0 * + col0 * + + col0 FROM tab1
----
52200625
6765201
68574961

onlyif mysql # aggregate syntax: 
query II rowsort label-3930
SELECT DISTINCT + MAX( + col2 ) + + COUNT( * ) * + + 70 - - ( COUNT( * ) ), MIN( DISTINCT 98 ) AS col1 FROM tab1 WHERE + col1 * - col1 * + + col2 BETWEEN NULL AND NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3930
SELECT DISTINCT + MAX ( + col2 ) + + COUNT ( * ) * + + 70 - - ( COUNT ( * ) ), MIN ( DISTINCT 98 ) AS col1 FROM tab1 WHERE + col1 * - col1 * + + col2 BETWEEN NULL AND NULL
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3931
SELECT DISTINCT - + 12 DIV ( - - 13 ) * + COUNT( * ) + - MAX( DISTINCT + col2 ) AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3931
SELECT DISTINCT - + 12 / ( - - 13 ) * + COUNT ( * ) + - MAX ( DISTINCT + col2 ) AS col0 FROM tab1 AS cor0
----
-96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - col2 * + 85, - col0 * + col0 )
----

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( + + 0 ) IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT ALL + col2 * - - col2 / - col0 FROM tab2 WHERE NOT NULL <= 79
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3935
SELECT ALL + MIN( ALL + - CAST( col1 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3935
SELECT ALL + MIN ( ALL + - CAST ( col1 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT ALL + MIN( ALL - + 34 ) FROM tab2 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-3936
SELECT ALL + MIN ( ALL - + 34 ) FROM tab2 AS cor0
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3937
SELECT - + ( - CAST( col2 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3937
SELECT - + ( - CAST ( col2 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( + col1 ) col0, - col1 AS col0 FROM tab1 cor0
----
-14
-14
-47
-47
-5
-5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <= + col0 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT DISTINCT COUNT( * ) * + MIN( + col1 ) AS col0 FROM tab2 cor0
----
153

skipif mysql # not compatible
query I rowsort label-3940
SELECT DISTINCT COUNT ( * ) * + MIN ( + col1 ) AS col0 FROM tab2 cor0
----
153

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 19 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 60 <> + 71
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT + MIN( DISTINCT + col1 ) col0 FROM tab2
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3943
SELECT + MIN ( DISTINCT + col1 ) col0 FROM tab2
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3944
SELECT ALL CAST( - AVG ( - col2 ) AS SIGNED ) AS col2 FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-3944
SELECT ALL CAST ( - AVG ( - col2 ) AS INTEGER ) AS col2 FROM tab0
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-3945
SELECT DISTINCT + 48 AS col2, - COUNT( * ) FROM tab2
----
48
-3

skipif mysql # not compatible
query II rowsort label-3945
SELECT DISTINCT + 48 AS col2, - COUNT ( * ) FROM tab2
----
48
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > - 6 * - - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3947
SELECT + COUNT( ALL - col0 ) DIV + + 46 + - 15 AS col2 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-3947
SELECT + COUNT ( ALL - col0 ) / + + 46 + - 15 AS col2 FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT + COUNT( DISTINCT col2 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3948
SELECT + COUNT ( DISTINCT col2 ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT - 96 * - + SUM( - - 62 ) AS col2 FROM tab2 cor0
----
17856

skipif mysql # not compatible
query I rowsort label-3949
SELECT - 96 * - + SUM ( - - 62 ) AS col2 FROM tab2 cor0
----
17856

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) <> + - 16
----

query I rowsort
SELECT ALL - 96 + + col0 AS col0 FROM tab1 AS cor0
----
-11
-45
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3952
SELECT DISTINCT - COUNT( 68 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3952
SELECT DISTINCT - COUNT ( 68 ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 WHERE col0 + - 49 IS NULL
----

query I rowsort
SELECT 30 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT ALL + COUNT( * ) - + 73 AS col1 FROM tab2
----
-70

skipif mysql # not compatible
query I rowsort label-3955
SELECT ALL + COUNT ( * ) - + 73 AS col1 FROM tab2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT 40 + + + SUM( - col2 ) + MIN( - 72 ) AS col1 FROM tab0 WHERE col1 >= + + col1 + ( - col1 )
----
-188

skipif mysql # not compatible
query I rowsort label-3956
SELECT 40 + + + SUM ( - col2 ) + MIN ( - 72 ) AS col1 FROM tab0 WHERE col1 >= + + col1 + ( - col1 )
----
-188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3957
SELECT ALL - ( - 8 ) * - CAST( NULL AS SIGNED ) * col1 + + + 64 - - + col1 * - - col2 + - col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-3957
SELECT ALL - ( - 8 ) * - CAST ( NULL AS INTEGER ) * col1 + + + 64 - - + col1 * - - col2 + - col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - + ( - - ( + ( + col2 ) ) ) col1 FROM tab1 AS cor0
----
1344
295
3196

query II rowsort
SELECT + col1, 43 AS col2 FROM tab1 AS cor0
----
14
43
47
43
5
43

query II rowsort
SELECT ALL ( - 33 ) + + 4 + - ( col0 ) AS col0, + col0 - - col0 - 18 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT ALL - SUM( col2 ) * + 88 + - 95 AS col2 FROM tab1 AS cor0
----
-19719

skipif mysql # not compatible
query I rowsort label-3961
SELECT ALL - SUM ( col2 ) * + 88 + - 95 AS col2 FROM tab1 AS cor0
----
-19719

query I rowsort
SELECT DISTINCT - ( + col0 ) * + - col1 + - col1 + + + 4 FROM tab2 AS cor0
----
2299
4855
4962

onlyif mysql # DIV for integer division: 
query I rowsort label-3963
SELECT + col2 DIV 71 * + 75 * + col0 * col1 + + col0 AS col1 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3963
SELECT + col2 / 71 * + 75 * + col0 * col1 + + col0 AS col1 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT ALL + 67 + col2 + + - 2 * - + 77 FROM tab2 AS cor0
----
244
261
279

onlyif mysql # DIV for integer division: 
query I rowsort label-3965
SELECT DISTINCT - 17 DIV + - col2 * - col2 * - - col0 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3965
SELECT DISTINCT - 17 / + - col2 * - col2 * - - col0 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3966
SELECT CAST( NULL AS SIGNED ) - + col1 + + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3966
SELECT CAST ( NULL AS INTEGER ) - + col1 + + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - 32 - + col0 AS col0, 77 + col2 FROM tab2
----
-107
135
-78
100
-96
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3968
SELECT CAST( 74 AS SIGNED ) * 80 - + col0 + - 23 + col0 AS col2 FROM tab1
----
5897
5897
5897

skipif mysql # not compatible
query I rowsort label-3968
SELECT CAST ( 74 AS INTEGER ) * 80 - + col0 + - 23 + col0 AS col2 FROM tab1
----
5897
5897
5897

onlyif mysql # aggregate syntax: 
query I rowsort label-3969
SELECT ALL - COUNT( * ) - COUNT( * ) * - SUM( col2 ) col1 FROM tab1
----
666

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3969
SELECT ALL - COUNT ( * ) - COUNT ( * ) * - SUM ( col2 ) col1 FROM tab1
----
666

query I rowsort
SELECT DISTINCT 76 - col2 AS col1 FROM tab0
----
-23
29
66

query III rowsort
SELECT * FROM tab2 WHERE + col2 + + col1 = - + col0
----

query I rowsort
SELECT col1 + - 92 * + + col0 * 54 AS col0 FROM tab0
----
-432195
-481895
-74439

query I rowsort
SELECT DISTINCT - col1 - col1 + + col0 AS col2 FROM tab0
----
-147
45
95

query II rowsort
SELECT - - col2 + - - 45 AS col2, col0 FROM tab2 AS cor0
----
103
75
68
46
85
64

query I rowsort
SELECT DISTINCT - + col0 * - 35 AS col0 FROM tab1 AS cor0
----
1785
2975
3185

query I rowsort
SELECT DISTINCT - ( 68 ) AS col2 FROM tab2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT DISTINCT - + ( + - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3977
SELECT DISTINCT - + ( + - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
3

query II rowsort
SELECT + + col1 AS col0, - col1 FROM tab1 AS cor0
----
14
-14
47
-47
5
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3979
SELECT + COUNT( ALL CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3979
SELECT + COUNT ( ALL CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
0

query II rowsort
SELECT ALL - + col1 AS col0, col1 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

query II rowsort
SELECT DISTINCT + - col2 AS col0, + 23 FROM tab1 AS cor0
----
-59
23
-68
23
-96
23

query II rowsort
SELECT + + col0, - 47 AS col1 FROM tab0 cor0
----
15
-47
87
-47
97
-47

query I rowsort
SELECT col1 * - + 89 * col2 + - col0 - 58 * - + col1 + - col0 * col0 AS col2 FROM tab0
----
-18259
-25128
-334365

query I rowsort
SELECT - col1 + + ( - col0 ) * + col2 FROM tab0
----
-786
-891
-9604

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT DISTINCT + COUNT( * ) + - + 33 AS col1 FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-3985
SELECT DISTINCT + COUNT ( * ) + - + 33 AS col1 FROM tab2
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3986
SELECT col1 + CAST( NULL AS SIGNED ) + - - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3986
SELECT col1 + CAST ( NULL AS INTEGER ) + - - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3987
SELECT DISTINCT 41 DIV - 37 FROM tab1, tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3987
SELECT DISTINCT 41 / - 37 FROM tab1, tab0 cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 97 col0 FROM tab0 AS cor0
----
-97
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3989
SELECT DISTINCT - MIN( DISTINCT + - col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-3989
SELECT DISTINCT - MIN ( DISTINCT + - col2 ) FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT 98 * - COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-882

skipif mysql # not compatible
query I rowsort label-3990
SELECT 98 * - COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-882

onlyif mysql # aggregate syntax: 
query I rowsort label-3991
SELECT COUNT( col1 ) - 83 FROM tab0
----
-80

skipif mysql # not compatible
query I rowsort label-3991
SELECT COUNT ( col1 ) - 83 FROM tab0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3992
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

query III rowsort
SELECT ALL - col0 AS col2, col1 - - col2 AS col2, col2 AS col0 FROM tab1 AS cor0
----
9 values hashing to de9c7455790a51776bcb65cbea6c5349

onlyif mysql # DIV for integer division: 
query I rowsort label-3994
SELECT - ( - ( - col2 ) ) + - 51 DIV - ( + 14 ) AS col2 FROM tab0 AS cor0
----
-44
-7
-96

skipif mysql # not compatible
query I rowsort label-3994
SELECT - ( - ( - col2 ) ) + - 51 / - ( + 14 ) AS col2 FROM tab0 AS cor0
----
-44
-7
-96

query I rowsort
SELECT + + col2 AS col0 FROM tab2 AS cor0 WHERE + 97 IS NULL
----

query I rowsort
SELECT ALL - ( - 90 ) FROM tab1 AS cor0
----
90
90
90

query I rowsort
SELECT ALL + + col1 + col1 * col0 + + 43 FROM tab2 AS cor0
----
2440
5048
5135

query III rowsort
SELECT * FROM tab1 WHERE NOT - 50 * + - 91 NOT BETWEEN - col0 * + 66 / + col2 AND 24
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3999
SELECT DISTINCT - ( + ( + col1 ) ) DIV 40, - col2 AS col0 FROM tab2
----
-1
-23
-1
-40
-1
-58

skipif mysql # not compatible
query II rowsort label-3999
SELECT DISTINCT - ( + ( + col1 ) ) / 40, - col2 AS col0 FROM tab2
----
-1
-23
-1
-40
-1
-58

query I rowsort
SELECT DISTINCT 87 * - - col0 * - col1 FROM tab1
----
-36975
-372099
-62118

query I rowsort
SELECT DISTINCT - col0 + - + 36 - ( + 11 ) * - col2 * - - col1 AS col2 FROM tab0 WHERE NOT 86 * - col1 + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 1 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4003
SELECT ALL * FROM tab2 AS cor0 WHERE col0 + - col1 + + 30 + - - col2 * - CAST( 38 AS DECIMAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4003
SELECT ALL * FROM tab2 AS cor0 WHERE col0 + - col1 + + 30 + - - col2 * - CAST ( 38 AS REAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-4004
SELECT - - COUNT( * ), - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
-9

skipif mysql # not compatible
query II rowsort label-4004
SELECT - - COUNT ( * ), - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT + COUNT( * ) * - ( COUNT( * ) ) * - COUNT( * ) FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-4005
SELECT + COUNT ( * ) * - ( COUNT ( * ) ) * - COUNT ( * ) FROM tab1 AS cor0
----
27

query I rowsort
SELECT ALL - - col0 AS col0 FROM tab0 cor0 WHERE col2 / + col2 IS NOT NULL
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 10 col1 FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT + + SUM( DISTINCT + - 78 ) AS col0 FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-4008
SELECT + + SUM ( DISTINCT + - 78 ) AS col0 FROM tab2 AS cor0
----
-78

query I rowsort
SELECT ALL + col0 + + col2 + - col0 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT DISTINCT col2 * + ( + + col2 ) + - col1 FROM tab1
----
3476
4577
9202

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT ALL - SUM( - col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-4011
SELECT ALL - SUM ( - col0 ) FROM tab2
----
185

onlyif mysql # aggregate syntax: 
query II rowsort label-4012
SELECT 50 AS col1, - COUNT( * ) col0 FROM tab1
----
50
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4012
SELECT 50 AS col1, - COUNT ( * ) col0 FROM tab1
----
50
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4013
SELECT - col0 DIV ( - col2 ) FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-4013
SELECT - col0 / ( - col2 ) FROM tab0
----
0
0
8

query I rowsort
SELECT 12 * - 64 AS col0 FROM tab2
----
-768
-768
-768

query I rowsort
SELECT - col2 * - + 63 + col0 - - 60 FROM tab2
----
1555
2644
3789

query I rowsort
SELECT + + col1 + col0 + - col0 * col1 FROM tab1 cor0 WHERE col1 * 76 IS NOT NULL
----
-335
-4139
-649

query I rowsort
SELECT - - 31 + col0 + col1 + 80 * - 46 FROM tab0 AS cor0
----
-3541
-3551
-3553

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4018
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( NOT col1 NOT BETWEEN - + col1 + CAST( NULL AS SIGNED ) - + ( + ( ( ( + col1 ) ) ) ) * - 96 AND NULL ) )
----

skipif mysql # not compatible
query III rowsort label-4018
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( NOT col1 NOT BETWEEN - + col1 + CAST ( NULL AS INTEGER ) - + ( + ( ( ( + col1 ) ) ) ) * - 96 AND NULL ) )
----

query I rowsort
SELECT DISTINCT ( - col0 ) + - - col2 AS col0 FROM tab0 AS cor0 WHERE NOT col0 > NULL
----

query I rowsort
SELECT + + 18 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 89 ) IS NULL
----

query I rowsort
SELECT ALL + col1 - - 70 AS col1 FROM tab1 cor0
----
117
75
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 3 col0 FROM tab2 cor0
----
-3
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4024
SELECT + col0 - + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4024
SELECT + col0 - + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT ALL + - MIN( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-4025
SELECT ALL + - MIN ( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT ( + ( + + COUNT( * ) ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4026
SELECT ( + ( + + COUNT ( * ) ) ) AS col0 FROM tab1
----
3

query I rowsort
SELECT ALL - col2 * - 73 AS col0 FROM tab1
----
4307
4964
7008

query I rowsort
SELECT + 31 * + + col1 * - col0 FROM tab1
----
-13175
-132587
-22134

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col0, + col2 col0 FROM tab0
----
15
47
87
10
97
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4030
SELECT ALL COUNT( * ) * - CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-4030
SELECT ALL COUNT ( * ) * - CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
-9

query I rowsort
SELECT - 98 * - col2 FROM tab2
----
2254
3920
5684

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 * - 79 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT ALL - SUM( ALL + + col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-4033
SELECT ALL - SUM ( ALL + + col0 ) FROM tab2
----
-185

query II rowsort
SELECT DISTINCT - 61, 14 + 88 * 37 AS col0 FROM tab0 cor0
----
-61
3270

query II rowsort
SELECT ALL + col0 AS col1, + 6 FROM tab1 AS cor0
----
51
6
85
6
91
6

query II rowsort
SELECT DISTINCT + + col2 AS col0, 26 AS col1 FROM tab0 cor0
----
10
26
47
26
99
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4037
SELECT - 28 DIV COUNT( * ) * - - ( + 17 ) + - + COUNT( * ) AS col1 FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-4037
SELECT - 28 / COUNT ( * ) * - - ( + 17 ) + - + COUNT ( * ) AS col1 FROM tab0 cor0
----
-156

query I rowsort
SELECT DISTINCT 17 * 41 FROM tab2
----
697

onlyif mysql # DIV for integer division: 
query II rowsort label-4039
SELECT DISTINCT + 14, col1 DIV + col2 AS col0 FROM tab0 AS cor0
----
14
0
14
1
14
2

skipif mysql # not compatible
query II rowsort label-4039
SELECT DISTINCT + 14, col1 / + col2 AS col0 FROM tab0 AS cor0
----
14
0
14
1
14
2

query I rowsort
SELECT 89 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
89
89
89

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <= ( col2 * + - col2 * col0 + + 43 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 > 64 * 8 - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + 97 AS col2, col2 + + col2 AS col2 FROM tab1 AS cor0
----
97
118
97
136
97
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 98 + + col2 col1 FROM tab1 cor0
----
-2
-30
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4045
SELECT CAST( + 52 AS SIGNED ) + - - COUNT( * ) AS col2 FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-4045
SELECT CAST ( + 52 AS INTEGER ) + - - COUNT ( * ) AS col2 FROM tab1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT - ( + COUNT( * ) ) AS col0 FROM tab0 WHERE + - 22 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4046
SELECT - ( + COUNT ( * ) ) AS col0 FROM tab0 WHERE + - 22 IS NOT NULL
----
-3

query I rowsort
SELECT + col2 + + + col1 + - col0 FROM tab0
----
-56
113
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4048
SELECT ALL - - 83 DIV 84 - + COUNT( * ) AS col2 FROM tab0 WHERE 25 * - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4048
SELECT ALL - - 83 / 84 - + COUNT ( * ) AS col2 FROM tab0 WHERE 25 * - col2 IS NULL
----
0

query I rowsort
SELECT - col0 FROM tab2 WHERE + 56 IS NULL
----

query I rowsort
SELECT DISTINCT + + col1 * col1 * 74 AS col1 FROM tab2 WHERE NULL IS NULL
----
192474
332186
438746

onlyif mysql # aggregate syntax: 
query II rowsort label-4051
SELECT ALL - 27 * + COUNT( * ), COUNT( * ) * - 17 AS col0 FROM tab1
----
-81
-51

skipif mysql # not compatible
query II rowsort label-4051
SELECT ALL - 27 * + COUNT ( * ), COUNT ( * ) * - 17 AS col0 FROM tab1
----
-81
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) * col0 * + col1 * col0 col0 FROM tab2 AS cor0
----
12615680
21858750
2482068

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT + SUM( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-4053
SELECT + SUM ( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
-227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4054
SELECT DISTINCT col0 - + col1 + CAST( NULL AS SIGNED ) + + - 40 - + 63 / + 12 * + + 70 - - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4054
SELECT DISTINCT col0 - + col1 + CAST ( NULL AS INTEGER ) + + - 40 - + 63 / + 12 * + + 70 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT - col0 * col2 + col1 AS col0 FROM tab1
----
-4882
-5010
-6141

query I rowsort
SELECT + 88 * - + col2 * col0 + col0 AS col1 FROM tab2 AS cor0
----
-225216
-382725
-93058

query I rowsort
SELECT + - 41 * + + col1 * - + 35 * + - col1 * + - col1 FROM tab1 cor0 WHERE 62 / - ( 89 ) <= + col0
----
148986005
179375
3937640

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT - SUM( ALL + 99 ) - - + COUNT( * ) FROM tab0 cor0 WHERE + 24 <> - 25
----
-294

skipif mysql # not compatible
query I rowsort label-4058
SELECT - SUM ( ALL + 99 ) - - + COUNT ( * ) FROM tab0 cor0 WHERE + 24 <> - 25
----
-294

query II rowsort
SELECT - 55, - 14 AS col1 FROM tab2 AS cor0
----
-55
-14
-55
-14
-55
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 19 col1 FROM tab0 cor0
----
19
19
19

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NOT 60 = + 19
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4062
SELECT - 65 DIV + + 33 col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4062
SELECT - 65 / + + 33 col2 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - col0 * - 88 AS col1 FROM tab0 AS cor0
----
1320
7656
8536

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - 10 * + 69 * - col2, col1 col0 FROM tab1 AS cor0
----
40710
5
46920
47
66240
14

query I rowsort
SELECT DISTINCT - ( col0 ) * + col0 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4066
SELECT ALL CAST( - col2 AS SIGNED ) AS col2, + 2 AS col2 FROM tab2
----
-23
2
-40
2
-58
2

skipif mysql # not compatible
query II rowsort label-4066
SELECT ALL CAST ( - col2 AS INTEGER ) AS col2, + 2 AS col2 FROM tab2
----
-23
2
-40
2
-58
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 64 col0 FROM tab0 AS cor0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT ALL + ( + - COUNT( * ) ) * + 1 col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4068
SELECT ALL + ( + - COUNT ( * ) ) * + 1 col2 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT col2 * + col0, + col2 FROM tab0 AS cor0
----
705
47
870
10
9603
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT + ( + - MAX( + 64 ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-64

skipif mysql # not compatible
query I rowsort label-4070
SELECT + ( + - MAX ( + 64 ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0, - col1 col2 FROM tab0 AS cor0
----
-15
-81
-87
-21
-97
-1

query I rowsort
SELECT + col1 * + + 91 + col2 AS col0 FROM tab2 cor0
----
4664
6155
7047

query I rowsort
SELECT DISTINCT 84 * + 39 + col1 AS col0 FROM tab0 AS cor0
----
3277
3297
3357

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4074
SELECT ALL + CAST( 8 AS DECIMAL ) * CAST( NULL AS SIGNED ) col0, 58 FROM tab2 AS cor0
----
NULL
58
NULL
58
NULL
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4074
SELECT ALL + CAST ( 8 AS REAL ) * CAST ( NULL AS INTEGER ) col0, 58 FROM tab2 AS cor0
----
NULL
58
NULL
58
NULL
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4075
SELECT ALL + 17 * - COUNT( * ) * CAST( NULL AS SIGNED ) * 47 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4075
SELECT ALL + 17 * - COUNT ( * ) * CAST ( NULL AS INTEGER ) * 47 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL BETWEEN 69 * + + ( + 26 ) AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - col2 / + - 86 * - col1 * col2 + - col1 IS NULL
----

query II rowsort
SELECT + col0, - 93 FROM tab0
----
15
-93
87
-93
97
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT ( + 91 ) - - COUNT( * ) FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-4079
SELECT ( + 91 ) - - COUNT ( * ) FROM tab1
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-4080
SELECT col1 DIV - 7 + - 99 * col1 FROM tab1
----
-1388
-4659
-495

skipif mysql # not compatible
query I rowsort label-4080
SELECT col1 / - 7 + - 99 * col1 FROM tab1
----
-1388
-4659
-495

query I rowsort
SELECT DISTINCT - 39 + 78 FROM tab1
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-4082
SELECT - col1 DIV 64 + - col1 AS col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-4082
SELECT - col1 / 64 + - col1 AS col1 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4083
SELECT col0 + - CAST( - col1 AS SIGNED ) DIV 29 + - + col0 AS col1 FROM tab2 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-4083
SELECT col0 + - CAST ( - col1 AS INTEGER ) / 29 + - + col0 AS col1 FROM tab2 AS cor0
----
1
2
2

query I rowsort
SELECT + col1 + ( + 21 ) FROM tab2 AS cor0
----
72
88
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4085
SELECT ALL - col0 * + ( col1 ) * + col0 - - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4085
SELECT ALL - col0 * + ( col1 ) * + col0 - - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 13 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 65 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-4088
SELECT - ( + 31 ) DIV + 66 * 66 - + 74 AS col0 FROM tab1
----
-74
-74
-74

skipif mysql # not compatible
query I rowsort label-4088
SELECT - ( + 31 ) / + 66 * 66 - + 74 AS col0 FROM tab1
----
-74
-74
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4089
SELECT DISTINCT + ( - 49 ) * - 84 * 29 * + CAST( - 30 AS SIGNED ) * - 26 + + + 19 + - col0 FROM tab0
----
93103842
93103852
93103924

skipif mysql # not compatible
query I rowsort label-4089
SELECT DISTINCT + ( - 49 ) * - 84 * 29 * + CAST ( - 30 AS INTEGER ) * - 26 + + + 19 + - col0 FROM tab0
----
93103842
93103852
93103924

onlyif mysql # aggregate syntax: 
query I rowsort label-4090
SELECT ALL - COUNT( DISTINCT col0 ) FROM tab0 AS cor0 WHERE col0 * + + 31 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4090
SELECT ALL - COUNT ( DISTINCT col0 ) FROM tab0 AS cor0 WHERE col0 * + + 31 IS NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT - col1 <= - + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT ALL + - COUNT( * ) * COUNT( * ) col2 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4092
SELECT ALL + - COUNT ( * ) * COUNT ( * ) col2 FROM tab0 AS cor0
----
-9

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + - col0, - col0 - - col0, - col2 )
----

query II rowsort
SELECT - col1 AS col1, + 92 FROM tab1
----
-14
92
-47
92
-5
92

query I rowsort
SELECT ALL + - 8 / - col0 * - col1 AS col1 FROM tab2 WHERE NOT NULL < + - 57
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT ALL - SUM( DISTINCT + - col2 ) AS col0 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-4096
SELECT ALL - SUM ( DISTINCT + - col2 ) AS col0 FROM tab1 AS cor0
----
223

query I rowsort
SELECT ALL ( - 65 ) AS col0 FROM tab0 cor0
----
-65
-65
-65

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 / + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( - 31 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-31

query I rowsort
SELECT DISTINCT + - 77 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT - COUNT( * ) FROM tab2 WHERE ( NOT col2 * col0 / ( - + col1 ) <= + - 1 - - 90 )
----
0

skipif mysql # not compatible
query I rowsort label-4101
SELECT - COUNT ( * ) FROM tab2 WHERE ( NOT col2 * col0 / ( - + col1 ) <= + - 1 - - 90 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT - ( + 5 ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-4102
SELECT - ( + 5 ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4103
SELECT DISTINCT + - MIN( CAST( NULL AS SIGNED ) ) * + COUNT( - + col1 ) + + + MIN( - col1 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4103
SELECT DISTINCT + - MIN ( CAST ( NULL AS INTEGER ) ) * + COUNT ( - + col1 ) + + + MIN ( - col1 ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-4104
SELECT ALL ( + col2 ) DIV + - col2 + - - col1 AS col0, CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
13
NULL
4
NULL
46
NULL

skipif mysql # not compatible
query II rowsort label-4104
SELECT ALL ( + col2 ) / + - col2 + - - col1 AS col0, CAST ( NULL AS REAL ) FROM tab1 cor0
----
13
NULL
4
NULL
46
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT MIN( DISTINCT col2 ) * + 16 + - - 85 FROM tab1
----
1029

skipif mysql # not compatible
query I rowsort label-4105
SELECT MIN ( DISTINCT col2 ) * + 16 + - - 85 FROM tab1
----
1029

query III rowsort
SELECT DISTINCT - - 3 * col0, col0, + col0 * - 81 AS col2 FROM tab1 WHERE NULL < + 48 * - ( + ( + col0 ) ) + col1 + + - 12
----

query I rowsort
SELECT + + 4 + col2 FROM tab2 WHERE - 64 > - col1 * + ( - col2 ) + + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4108
SELECT DISTINCT col0 * 63 DIV 2 - ( col1 ) AS col1 FROM tab1
----
1592
2672
2819

skipif mysql # not compatible
query I rowsort label-4108
SELECT DISTINCT col0 * 63 / 2 - ( col1 ) AS col1 FROM tab1
----
1592
2672
2819

query I rowsort
SELECT DISTINCT - col1 * 91 * + 3 FROM tab2 AS cor0
----
-13923
-18291
-21021

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 15 * + 90 col2 FROM tab1 AS cor0
----
1350

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1 + - + col1
----

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT + - col0 - - - 27 FROM tab2 cor0
----
-102
-73
-91

query I rowsort
SELECT - col0 - - 3 AS col1 FROM tab1 cor0
----
-48
-82
-88

query I rowsort
SELECT DISTINCT + ( ( - col0 ) ) + + 28 FROM tab0 AS cor0
----
-59
-69
13

query I rowsort
SELECT DISTINCT + - 2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-4117
SELECT ALL + ( - 72 ) DIV + + col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4117
SELECT ALL + ( - 72 ) / + + col0 FROM tab1
----
-1
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4118
SELECT ALL - COUNT( * ) DIV - + COUNT( * ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4118
SELECT ALL - COUNT ( * ) / - + COUNT ( * ) AS col1 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT + - MIN( DISTINCT + - col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4119
SELECT + - MIN ( DISTINCT + - col2 ) FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-4120
SELECT ALL - COUNT( * ) AS col0, MAX( + - col2 ) FROM tab0 AS cor0
----
-3
-10

skipif mysql # not compatible
query II rowsort label-4120
SELECT ALL - COUNT ( * ) AS col0, MAX ( + - col2 ) FROM tab0 AS cor0
----
-3
-10

query II rowsort
SELECT DISTINCT + - col0 AS col2, col1 AS col0 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

query II rowsort
SELECT ALL + col2 AS col0, - ( col0 ) FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

query II rowsort
SELECT DISTINCT col0 AS col0, + 34 AS col2 FROM tab1 AS cor0
----
51
34
85
34
91
34

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 37 - col2 NOT BETWEEN - col0 * - 84 * - - col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 * col2 FROM tab2 WHERE ( NOT ( NULL ) <= NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4127
SELECT col2 * ( + col2 ) DIV + col0 AS col2 FROM tab0
----
1
101
147

skipif mysql # not compatible
query I rowsort label-4127
SELECT col2 * ( + col2 ) / + col0 AS col2 FROM tab0
----
1
101
147

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT MIN( 59 ) AS col0 FROM tab2
----
59

skipif mysql # not compatible
query I rowsort label-4128
SELECT MIN ( 59 ) AS col0 FROM tab2
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4129
SELECT ALL COUNT( * ) DIV - - 86 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4129
SELECT ALL COUNT ( * ) / - - 86 FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 2 NOT BETWEEN + col1 * + + col1 * - 48 + - + 29 AND - 21
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT MAX( DISTINCT + - col0 ) AS col2 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-4131
SELECT MAX ( DISTINCT + - col0 ) AS col2 FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT ALL MIN( DISTINCT - 3 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4132
SELECT ALL MIN ( DISTINCT - 3 ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4133
SELECT COUNT( * ) * - 29 FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-4133
SELECT COUNT ( * ) * - 29 FROM tab2 AS cor0
----
-87

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 AS cor0 WHERE NOT - 64 + - col0 + - - col0 > - ( + 71 )
----

query I rowsort
SELECT DISTINCT 18 AS col0 FROM tab2 cor0
----
18

query I rowsort
SELECT 31 * - 69 AS col0 FROM tab1 AS cor0
----
-2139
-2139
-2139

query I rowsort
SELECT ALL + - 62 + + col2 AS col1 FROM tab1 AS cor0
----
-3
34
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 39 col2 FROM tab0 cor0
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT ALL ( COUNT( * ) ) + + SUM( - 97 ) AS col1 FROM tab2 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-4139
SELECT ALL ( COUNT ( * ) ) + + SUM ( - 97 ) AS col1 FROM tab2 AS cor0
----
-288

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4141
SELECT ALL - CAST( - - col1 AS SIGNED ) + 43 FROM tab1
----
-4
29
38

skipif mysql # not compatible
query I rowsort label-4141
SELECT ALL - CAST ( - - col1 AS INTEGER ) + 43 FROM tab1
----
-4
29
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT DISTINCT - 63 + - + MAX( + col1 ) FROM tab0
----
-144

skipif mysql # not compatible
query I rowsort label-4142
SELECT DISTINCT - 63 + - + MAX ( + col1 ) FROM tab0
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT - 39 + + 39 + - 40 * - 20 * - COUNT( * ) FROM tab1
----
-2400

skipif mysql # not compatible
query I rowsort label-4143
SELECT - 39 + + 39 + - 40 * - 20 * - COUNT ( * ) FROM tab1
----
-2400

query I rowsort
SELECT col0 + - - col2 * + + col2 FROM tab0
----
187
2224
9898

query I rowsort
SELECT - ( + 78 ) + + col0 AS col0 FROM tab2
----
-14
-3
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-4146
SELECT DISTINCT 92 - 20 DIV + col1 FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-4146
SELECT DISTINCT 92 - 20 / + col1 FROM tab2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT + SUM( DISTINCT + col1 ) AS col2 FROM tab2 WHERE + + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4147
SELECT + SUM ( DISTINCT + col1 ) AS col2 FROM tab2 WHERE + + col1 IS NULL
----
NULL

query I rowsort
SELECT ALL - ( + 23 ) - - 48 + col0 AS col2 FROM tab1 cor0
----
110
116
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4149
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT 39 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4149
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT 39 IS NOT NULL
----

query I rowsort
SELECT - - 70 * - - 91 * + 16 * + col1 + + col1 * + col0 FROM tab0 cor0
----
102017
2142147
8256735

query I rowsort
SELECT - 76 + 3 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

query I rowsort
SELECT ALL + col1 * 36 AS col1 FROM tab1
----
1692
180
504

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4153
SELECT * FROM tab2 WHERE NOT + - col1 <> 77 * + col1 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4153
SELECT * FROM tab2 WHERE NOT + - col1 <> 77 * + col1 * - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4154
SELECT DISTINCT - 88 DIV - 69 + SUM( - col0 ) AS col0 FROM tab2 cor0
----
-184

skipif mysql # not compatible
query I rowsort label-4154
SELECT DISTINCT - 88 / - 69 + SUM ( - col0 ) AS col0 FROM tab2 cor0
----
-184

query I rowsort
SELECT 6 * - 36 AS col2 FROM tab1 AS cor0 WHERE NOT + col1 * 32 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 90 AS col0 FROM tab0 cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT DISTINCT 58 * - COUNT( * ) * + + 64 FROM tab1
----
-11136

skipif mysql # not compatible
query I rowsort label-4157
SELECT DISTINCT 58 * - COUNT ( * ) * + + 64 FROM tab1
----
-11136

query I rowsort
SELECT - ( - col1 ) * - 27 AS col1 FROM tab1
----
-1269
-135
-378

query II rowsort
SELECT col2, - col2 * + + 41 + 2 * + 6 + col0 AS col2 FROM tab0
----
10
-311
47
-1900
99
-3950

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT 18 + + COUNT( * ) FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-4160
SELECT 18 + + COUNT ( * ) FROM tab0
----
21

query I rowsort
SELECT col0 FROM tab0 WHERE NOT - + col1 IS NOT NULL
----

query I rowsort
SELECT ALL ( ( col1 ) ) FROM tab1
----
14
47
5

query I rowsort
SELECT DISTINCT + 11 * - col1 AS col1 FROM tab2
----
-561
-737
-847

query I rowsort
SELECT + 41 + + + col0 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT MAX( ALL col0 ) FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-4165
SELECT MAX ( ALL col0 ) FROM tab1 cor0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4166
SELECT ALL - CAST( + - col0 AS SIGNED ) AS col0 FROM tab2 cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4166
SELECT ALL - CAST ( + - col0 AS INTEGER ) AS col0 FROM tab2 cor0
----
46
64
75

query I rowsort
SELECT DISTINCT 29 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4168
SELECT - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE ( NULL > ( col1 ) )
----

skipif mysql # not compatible
query I rowsort label-4168
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE ( NULL > ( col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT - + COUNT( + + col2 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4169
SELECT - + COUNT ( + + col2 ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ( + 45 ) AS col1 FROM tab2
----
45
45
45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4171
SELECT * FROM tab0 WHERE - ( + col2 ) * CAST( col1 AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-4171
SELECT * FROM tab0 WHERE - ( + col2 ) * CAST ( col1 AS INTEGER ) >= NULL
----

query I rowsort
SELECT + 70 + + col1 FROM tab1 AS cor0
----
117
75
84

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL NOT IN ( - 24, 8 - - 21 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4174
SELECT - + col2 DIV 41 AS col1, col2 FROM tab2 AS cor0
----
-1
58
0
23
0
40

skipif mysql # not compatible
query II rowsort label-4174
SELECT - + col2 / 41 AS col1, col2 FROM tab2 AS cor0
----
-1
58
0
23
0
40

query I rowsort
SELECT - 80 AS col1 FROM tab0 cor0 WHERE ( - 51 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT DISTINCT - 90 - COUNT( - + col0 ) * COUNT( * ) FROM tab2
----
-99

skipif mysql # not compatible
query I rowsort label-4176
SELECT DISTINCT - 90 - COUNT ( - + col0 ) * COUNT ( * ) FROM tab2
----
-99

query I rowsort
SELECT DISTINCT col2 * + col2 + + + col1 * col2 AS col1 FROM tab2
----
1702
4680
7250

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT ALL + 2 + COUNT( * ) col1 FROM tab0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4178
SELECT ALL + 2 + COUNT ( * ) col1 FROM tab0
----
5

query I rowsort
SELECT ALL 35 * - + ( + - col2 ) - + col0 AS col2 FROM tab1
----
1980
2289
3309

onlyif mysql # DIV for integer division: 
query II rowsort label-4180
SELECT col1 DIV + - col2 - col2 AS col2, col1 FROM tab1
----
-59
5
-68
47
-96
14

skipif mysql # not compatible
query II rowsort label-4180
SELECT col1 / + - col2 - col2 AS col2, col1 FROM tab1
----
-59
5
-68
47
-96
14

onlyif mysql # aggregate syntax: 
query II rowsort label-4181
SELECT ALL + COUNT( * ), - MAX( ALL + col2 ) AS col0 FROM tab1 AS cor0
----
3
-96

skipif mysql # not compatible
query II rowsort label-4181
SELECT ALL + COUNT ( * ), - MAX ( ALL + col2 ) AS col0 FROM tab1 AS cor0
----
3
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4182
SELECT + - col1 + - - col1 AS col0, - col2 FROM tab1 AS cor0 WHERE NOT + col1 * - col0 * CAST( NULL AS SIGNED ) IS NOT NULL
----
0
-59
0
-68
0
-96

skipif mysql # not compatible
query II rowsort label-4182
SELECT + - col1 + - - col1 AS col0, - col2 FROM tab1 AS cor0 WHERE NOT + col1 * - col0 * CAST ( NULL AS INTEGER ) IS NOT NULL
----
0
-59
0
-68
0
-96

query I rowsort
SELECT + col0 * + + 43 + col0 AS col1 FROM tab0 AS cor0
----
3828
4268
660

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT - + MIN( - 12 ) AS col2 FROM tab1 cor0
----
12

skipif mysql # not compatible
query I rowsort label-4184
SELECT - + MIN ( - 12 ) AS col2 FROM tab1 cor0
----
12

query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE - 18 > 8
----

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT + col2 + - col1 FROM tab1 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4188
SELECT ALL * FROM tab0 WHERE NOT col1 = + CAST( NULL AS SIGNED ) * 29
----

skipif mysql # not compatible
query III rowsort label-4188
SELECT ALL * FROM tab0 WHERE NOT col1 = + CAST ( NULL AS INTEGER ) * 29
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4189
SELECT ALL * FROM tab1 WHERE NOT ( - CAST( col2 AS DECIMAL ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4189
SELECT ALL * FROM tab1 WHERE NOT ( - CAST ( col2 AS REAL ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 WHERE NOT 4 <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT - col2 + - col0 * - 58 AS col2 FROM tab0
----
5036
5527
823

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT DISTINCT COUNT( * ) + COUNT( * ) AS col1 FROM tab1 WHERE NULL NOT IN ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-4193
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) AS col1 FROM tab1 WHERE NULL NOT IN ( col2 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab1 WHERE ( + 30 ) <= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( 81 + 84 ) > NULL
----

query I rowsort
SELECT DISTINCT col0 + 93 FROM tab0
----
108
180
190

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 IN ( + col0 )
----

query I rowsort
SELECT DISTINCT 60 - 95 FROM tab0
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4199
SELECT * FROM tab1 WHERE ( + 36 ) < 36 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4199
SELECT * FROM tab1 WHERE ( + 36 ) < 36 * CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4200
SELECT CAST( ( COUNT( * ) ) AS SIGNED ) + 40 FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-4200
SELECT CAST ( ( COUNT ( * ) ) AS INTEGER ) + 40 FROM tab2
----
43

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4201
SELECT - 27 DIV col2 col2 FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
-2
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4201
SELECT - 27 / col2 col2 FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
-2
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4202
SELECT DISTINCT - CAST( 24 AS SIGNED ) * COUNT( * ) + ( - COUNT( + col0 ) ) AS col0 FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-4202
SELECT DISTINCT - CAST ( 24 AS INTEGER ) * COUNT ( * ) + ( - COUNT ( + col0 ) ) AS col0 FROM tab1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT - MIN( ALL + ( ( ( + col2 ) ) ) ) + - COUNT( * ) AS col0 FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-4203
SELECT - MIN ( ALL + ( ( ( + col2 ) ) ) ) + - COUNT ( * ) AS col0 FROM tab1
----
-62

query I rowsort
SELECT col2 FROM tab2 WHERE NOT col2 NOT BETWEEN + 57 AND 43
----

query I rowsort
SELECT 17 - col1 AS col0 FROM tab0
----
-4
-64
16

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) <> ( col2 + col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 * col1 = ( NULL )
----

query I rowsort
SELECT DISTINCT - ( col2 ) FROM tab1 WHERE NOT 4 IS NULL
----
-59
-68
-96

query I rowsort
SELECT DISTINCT + col1 * - 64 AS col2 FROM tab1
----
-3008
-320
-896

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT + MIN( DISTINCT 3 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4210
SELECT + MIN ( DISTINCT 3 ) AS col0 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4211
SELECT * FROM tab2 WHERE - 17 + - CAST( + col0 AS SIGNED ) * - CAST( - col2 + + col1 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4211
SELECT * FROM tab2 WHERE - 17 + - CAST ( + col0 AS INTEGER ) * - CAST ( - col2 + + col1 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( - ( col1 ) + 3 ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4213
SELECT - ( + CAST( ( col2 ) AS SIGNED ) ) FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-4213
SELECT - ( + CAST ( ( col2 ) AS INTEGER ) ) FROM tab0
----
-10
-47
-99

query I rowsort
SELECT 12 + + col1 FROM tab1 AS cor0
----
17
26
59

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( - col0 ) NOT IN ( col2 + 25 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 5 * col0 NOT BETWEEN ( NULL ) AND 26 * col2
----

query III rowsort
SELECT * FROM tab1 WHERE col0 + + 69 * 63 NOT IN ( - 60 * + col0 - - 93 * + 46 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4218
SELECT + 76 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4218
SELECT + 76 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * - 70 AS col0 FROM tab2 cor0
----
-1610
-2800
-4060

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN + 8 + - ( col0 ) AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 90 - + col2 FROM tab1 AS cor0
----
-149
-158
-186

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col0 ) <= ( + col0 ) + col1
----

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE - col1 * col1 + + 90 BETWEEN col1 AND NULL
----

query I rowsort
SELECT DISTINCT 55 / - col1 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 / - col2 = col2
----

query III rowsort
SELECT * FROM tab1 WHERE col2 * col1 <= - col1 + - 70 / + col2 OR NOT col0 + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 81 + col1 AS col0 FROM tab0
----
102
162
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 1 col2 FROM tab1
----
58
67
95

onlyif mysql # DIV for integer division: 
query I rowsort label-4229
SELECT - 99 + + ( - col0 ) - col0 DIV - 24 FROM tab2
----
-144
-161
-171

skipif mysql # not compatible
query I rowsort label-4229
SELECT - 99 + + ( - col0 ) - col0 / - 24 FROM tab2
----
-144
-161
-171

query I rowsort
SELECT col2 + col1 - col1 * - col1 FROM tab1
----
2324
306
89

query I rowsort
SELECT ALL 23 AS col1 FROM tab2 WHERE + col0 IS NOT NULL
----
23
23
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4232
SELECT + CAST( + - 95 AS SIGNED ) AS col0 FROM tab1
----
-95
-95
-95

skipif mysql # not compatible
query I rowsort label-4232
SELECT + CAST ( + - 95 AS INTEGER ) AS col0 FROM tab1
----
-95
-95
-95

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col1 ) = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4234
SELECT DISTINCT - MIN( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4234
SELECT DISTINCT - MIN ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4235
SELECT ALL + CAST( NULL AS SIGNED ) + - col1 * - 89 AS col2 FROM tab0 AS cor0 WHERE NOT + 16 <> ( 3 * col2 + 72 )
----

skipif mysql # not compatible
query I rowsort label-4235
SELECT ALL + CAST ( NULL AS INTEGER ) + - col1 * - 89 AS col2 FROM tab0 AS cor0 WHERE NOT + 16 <> ( 3 * col2 + 72 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 94 col1 FROM tab0 AS cor0
----
94
94
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 40 * - col2 col1 FROM tab0
----
-1880
-3960
-400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4238
SELECT - MAX( ALL + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4238
SELECT - MAX ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT ALL ( - + col1 ) AS col2 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT ( + - col2 ) * 49 * 13 FROM tab2
----
-14651
-25480
-36946

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 60 < + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 93 <= ( + col0 )
----

query I rowsort
SELECT ALL - 10 * + col2 * - - col2 AS col2 FROM tab2 AS cor0
----
-16000
-33640
-5290

onlyif mysql # aggregate syntax: 
query I rowsort label-4244
SELECT DISTINCT - - COUNT( ALL + 88 ) * + COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4244
SELECT DISTINCT - - COUNT ( ALL + 88 ) * + COUNT ( * ) FROM tab0 AS cor0
----
9

query I rowsort
SELECT ALL col2 * - col1 + + - col0 - - col1 AS col0 FROM tab2 AS cor0
----
-1168
-3067
-3894

query I rowsort
SELECT DISTINCT + ( - col1 ) + - 61 AS col2 FROM tab1 AS cor0
----
-108
-66
-75

query I rowsort
SELECT col1 + - 53 AS col0 FROM tab1 AS cor0
----
-39
-48
-6

query I rowsort
SELECT ALL 17 + - col1 FROM tab0
----
-4
-64
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT DISTINCT COUNT( * ) + - COUNT( * ) + 22 * 22 * + 53 FROM tab2
----
25652

skipif mysql # not compatible
query I rowsort label-4249
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) + 22 * 22 * + 53 FROM tab2
----
25652

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE NOT 8 + + 51 NOT BETWEEN - col2 AND - col0 / - 62 + col1 * col0
----
51
85
91

query I rowsort
SELECT ALL - + col1 + - col1 * + ( col0 * - 29 ) AS col2 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4252
SELECT * FROM tab1 WHERE + - col0 <> - + ( CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-4252
SELECT * FROM tab1 WHERE + - col0 <> - + ( CAST ( NULL AS REAL ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 59 <> ( col1 )
----

query I rowsort
SELECT DISTINCT + col2 + + + 62 FROM tab0 AS cor0
----
109
161
72

query I rowsort
SELECT ALL + + 29 * col1 FROM tab1 AS cor0
----
1363
145
406

query I rowsort
SELECT ALL - 46 * + + ( col1 ) * + 93 * + col2 + col2 AS col1 FROM tab2 AS cor0
----
-13176200
-16624250
-5018071

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 57 col2 FROM tab0 AS cor0
----
-57
-57
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + col0 - + col1 col1 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4259
SELECT DISTINCT + 26 * + + col2 * col2 * - col1 + - ( + col2 ) * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4259
SELECT DISTINCT + 26 * + + col2 * col2 * - col1 + - ( + col2 ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4260
SELECT DISTINCT + col0 DIV - 70 + - col1 AS col2, col1 * + 36 * col1 FROM tab2
----
-51
93636
-68
161604
-77
213444

skipif mysql # not compatible
query II rowsort label-4260
SELECT DISTINCT + col0 / - 70 + - col1 AS col2, col1 * + 36 * col1 FROM tab2
----
-51
93636
-68
161604
-77
213444

query I rowsort
SELECT DISTINCT col0 + + col0 + + col1 * col0 AS col0 FROM tab1
----
4459
595
816

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4262
SELECT ALL + CAST( NULL AS DECIMAL ) * - - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4262
SELECT ALL + CAST ( NULL AS REAL ) * - - col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + ( col2 ) ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4264
SELECT + + CAST( NULL AS SIGNED ) + - 69 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4264
SELECT + + CAST ( NULL AS INTEGER ) + - 69 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + - ( col1 ) col2 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT DISTINCT + + 22 - - - 65 + - 63 FROM tab0 AS cor0
----
-106

query II rowsort
SELECT + 45 + ( - col0 ), col1 * col0 + - col2 AS col2 FROM tab2 AS cor0
----
-1
2323
-19
4888
-30
4967

query I rowsort
SELECT ALL - 36 - - col1 FROM tab2 AS cor0
----
15
31
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col0, 0 FROM tab1 AS cor0
----
14
0
47
0
5
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4270
SELECT ALL 39 DIV + COUNT( * ) FROM tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-4270
SELECT ALL 39 / + COUNT ( * ) FROM tab1 AS cor0
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 col2 FROM tab2 AS cor0 WHERE NOT - 63 - - col1 NOT IN ( col2 * col2 - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4272
SELECT ALL + - col2 DIV + - 28 col0 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4272
SELECT ALL + - col2 / + - 28 col0 FROM tab0 AS cor0
----
0
1
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4273
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4273
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL - 95 * + 47 FROM tab2
----
-4465
-4465
-4465

onlyif mysql # DIV for integer division: 
query II rowsort label-4275
SELECT 98 DIV col1 AS col2, col0 FROM tab2
----
1
46
1
64
1
75

skipif mysql # not compatible
query II rowsort label-4275
SELECT 98 / col1 AS col2, col0 FROM tab2
----
1
46
1
64
1
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT ALL COUNT( * ) FROM tab0 WHERE ( - col1 ) NOT BETWEEN + col1 AND ( + col2 )
----
3

skipif mysql # not compatible
query I rowsort label-4276
SELECT ALL COUNT ( * ) FROM tab0 WHERE ( - col1 ) NOT BETWEEN + col1 AND ( + col2 )
----
3

query II rowsort
SELECT + 47, col0 AS col1 FROM tab2
----
47
46
47
64
47
75

query III rowsort
SELECT ALL * FROM tab2 WHERE 86 / + 30 * 18 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-4279
SELECT ALL + 80, - COUNT( * ) AS col2 FROM tab1
----
80
-3

skipif mysql # not compatible
query II rowsort label-4279
SELECT ALL + 80, - COUNT ( * ) AS col2 FROM tab1
----
80
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4280
SELECT DISTINCT - - col2 * col2 + + CAST( - 79 AS SIGNED ) * 97 AS col1 FROM tab2 AS cor0
----
-4299
-6063
-7134

skipif mysql # not compatible
query I rowsort label-4280
SELECT DISTINCT - - col2 * col2 + + CAST ( - 79 AS INTEGER ) * 97 AS col1 FROM tab2 AS cor0
----
-4299
-6063
-7134

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT DISTINCT + - COUNT( * ) FROM tab1 AS cor0 WHERE + 27 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4281
SELECT DISTINCT + - COUNT ( * ) FROM tab1 AS cor0 WHERE + 27 IS NOT NULL
----
-3

query II rowsort
SELECT + col0, + col1 + - + col2 FROM tab0 AS cor0
----
15
34
87
11
97
-98

query II rowsort
SELECT ALL + ( - - col1 ) AS col0, - col0 * col2 AS col0 FROM tab2 AS cor0
----
51
-1058
67
-4350
77
-2560

query III rowsort
SELECT * FROM tab0 WHERE NOT - 28 * + col2 + - + ( - col0 ) + col0 >= ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col2, col0 AS col1 FROM tab0 WHERE NOT ( + col1 ) <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4286
SELECT DISTINCT + 52 + COUNT( * ) AS col2 FROM tab0 WHERE - col2 * + - col0 + + + 31 NOT BETWEEN NULL AND - CAST( NULL AS SIGNED )
----
52

skipif mysql # not compatible
query I rowsort label-4286
SELECT DISTINCT + 52 + COUNT ( * ) AS col2 FROM tab0 WHERE - col2 * + - col0 + + + 31 NOT BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----
52

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL - - ( - col2 ) * ( + col2 ) - + + 89 FROM tab1 AS cor0
----
-3570
-4713
-9305

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - 6 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 * + + 84 - + 16 - col1 col0 FROM tab1 cor0
----
273
306
315

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT - - SUM( + - col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-4291
SELECT - - SUM ( + - col0 ) FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT DISTINCT - MIN( ALL col0 ) + 63 AS col2 FROM tab2 cor0
----
17

skipif mysql # not compatible
query I rowsort label-4292
SELECT DISTINCT - MIN ( ALL col0 ) + 63 AS col2 FROM tab2 cor0
----
17

query I rowsort
SELECT DISTINCT + col2 + - 48 FROM tab1 AS cor0
----
11
20
48

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 70 <> 93 * - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + - col1 col1 FROM tab0
----
-66
66
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4296
SELECT DISTINCT - 74 + + 66 + + 81 * + SUM( ALL - - col1 ) * ( + CAST( + - 43 AS SIGNED ) ) FROM tab1
----
-229886

skipif mysql # not compatible
query I rowsort label-4296
SELECT DISTINCT - 74 + + 66 + + 81 * + SUM ( ALL - - col1 ) * ( + CAST ( + - 43 AS INTEGER ) ) FROM tab1
----
-229886

query II rowsort
SELECT - col2 AS col1, + 99 FROM tab1
----
-59
99
-68
99
-96
99

query I rowsort
SELECT DISTINCT 2 + + col0 FROM tab0
----
17
89
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4299
SELECT CAST( 94 AS SIGNED ) + COUNT( 96 ) * + COUNT( + col0 ) * - 93 AS col2 FROM tab2
----
-743

skipif mysql # not compatible
query I rowsort label-4299
SELECT CAST ( 94 AS INTEGER ) + COUNT ( 96 ) * + COUNT ( + col0 ) * - 93 AS col2 FROM tab2
----
-743

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4300
SELECT - 88 * 90 AS col2 FROM tab1 WHERE + CAST( NULL AS SIGNED ) * - 98 + col2 * col2 * - 40 * - - CAST( NULL AS SIGNED ) BETWEEN ( + ( col1 ) + 50 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-4300
SELECT - 88 * 90 AS col2 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) * - 98 + col2 * col2 * - 40 * - - CAST ( NULL AS INTEGER ) BETWEEN ( + ( col1 ) + 50 ) AND NULL
----

query I rowsort
SELECT DISTINCT 29 * + - col2 AS col2 FROM tab2
----
-1160
-1682
-667

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT COUNT( * ) + + + 61 FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-4302
SELECT COUNT ( * ) + + + 61 FROM tab2
----
64

query I rowsort
SELECT col2 + + col1 * - 50 AS col1 FROM tab1
----
-191
-2282
-604

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT ALL 58 - + COUNT( ALL + - col2 ) col1 FROM tab1 AS cor0
----
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4304
SELECT ALL 58 - + COUNT ( ALL + - col2 ) col1 FROM tab1 AS cor0
----
55

query I rowsort
SELECT DISTINCT - + col1 * + - col0 FROM tab0 AS cor0
----
1215
1827
97

query II rowsort
SELECT DISTINCT col2, 67 * 37 FROM tab0 AS cor0
----
10
2479
47
2479
99
2479

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4307
SELECT - CAST( NULL AS SIGNED ) + + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4307
SELECT - CAST ( NULL AS INTEGER ) + + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT + SUM( DISTINCT - 0 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-4308
SELECT + SUM ( DISTINCT - 0 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4309
SELECT - SUM( DISTINCT - 22 ) AS col0, COUNT( * ) FROM tab1
----
22
3

skipif mysql # not compatible
query II rowsort label-4309
SELECT - SUM ( DISTINCT - 22 ) AS col0, COUNT ( * ) FROM tab1
----
22
3

query I rowsort
SELECT DISTINCT - col1 + - 54 - + + col1 FROM tab0
----
-216
-56
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-4311
SELECT ALL ( - 36 ) DIV - - 97 + - 90 DIV - col2 AS col1 FROM tab0
----
0
1
9

skipif mysql # not compatible
query I rowsort label-4311
SELECT ALL ( - 36 ) / - - 97 + - 90 / - col2 AS col1 FROM tab0
----
0
1
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT ALL + - MIN( DISTINCT + 54 ) FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4312
SELECT ALL + - MIN ( DISTINCT + 54 ) FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4313
SELECT ALL - CAST( 11 AS SIGNED ) AS col2 FROM tab0 cor0
----
-11
-11
-11

skipif mysql # not compatible
query I rowsort label-4313
SELECT ALL - CAST ( 11 AS INTEGER ) AS col2 FROM tab0 cor0
----
-11
-11
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-4314
SELECT DISTINCT - col1 * 52 DIV + + col0 AS col2 FROM tab0 AS cor0
----
-12
-280
0

skipif mysql # not compatible
query I rowsort label-4314
SELECT DISTINCT - col1 * 52 / + + col0 AS col2 FROM tab0 AS cor0
----
-12
-280
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4315
SELECT ALL + ( + 44 ) AS col0, col0 + col1 DIV col0 AS col2 FROM tab2 AS cor0
----
44
47
44
65
44
75

skipif mysql # not compatible
query II rowsort label-4315
SELECT ALL + ( + 44 ) AS col0, col0 + col1 / col0 AS col2 FROM tab2 AS cor0
----
44
47
44
65
44
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 85 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4317
SELECT COUNT( * ) AS col0, ( - 28 ) FROM tab0
----
3
-28

skipif mysql # not compatible
query II rowsort label-4317
SELECT COUNT ( * ) AS col0, ( - 28 ) FROM tab0
----
3
-28

query II rowsort
SELECT 60 * - 2 * col0, - col2 AS col0 FROM tab1
----
-10200
-59
-10920
-68
-6120
-96

query I rowsort
SELECT ALL 53 * + - col2 + - col2 AS col0 FROM tab0 WHERE NOT ( - 13 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4320
SELECT + 67 * COUNT( ALL + + col2 ) FROM tab2
----
201

skipif mysql # not compatible
query I rowsort label-4320
SELECT + 67 * COUNT ( ALL + + col2 ) FROM tab2
----
201

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4321
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - SUM( + col1 ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4321
SELECT DISTINCT - CAST ( NULL AS REAL ) * - SUM ( + col1 ) col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT - COUNT( DISTINCT + 18 ) + - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col1 * col0 IS NULL
----
-4

skipif mysql # not compatible
query I rowsort label-4322
SELECT - COUNT ( DISTINCT + 18 ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col1 * col0 IS NULL
----
-4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4323
SELECT - COUNT( * ) + AVG ( 51 ) * - 99 FROM tab2 cor0 WHERE NOT col0 * - CAST( col1 AS DECIMAL ) / - - CAST( NULL AS DECIMAL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4323
SELECT - COUNT ( * ) + AVG ( 51 ) * - 99 FROM tab2 cor0 WHERE NOT col0 * - CAST ( col1 AS REAL ) / - - CAST ( NULL AS REAL ) IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4324
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) < ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4324
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) < ( + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - col1 + + - col1 FROM tab2 WHERE NOT 19 + col1 NOT BETWEEN + 1 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4326
SELECT DISTINCT + 60 DIV + MIN( col1 ) FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-4326
SELECT DISTINCT + 60 / + MIN ( col1 ) FROM tab0 AS cor0
----
60

query II rowsort
SELECT DISTINCT + col2 AS col1, - col1 FROM tab0 cor0
----
10
-21
47
-81
99
-1

query I rowsort
SELECT ALL + - col0 / - col1 - col1 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT - col1 + + 12 - - - col2 AS col2 FROM tab2 AS cor0
----
-105
-113
-62

query I rowsort
SELECT col1 + - 44 + - col2 AS col2 FROM tab2 AS cor0
----
-16
-35
-7

query III rowsort
SELECT * FROM tab1 WHERE + + col0 * col2 = + + 85 - - col1 * 58 + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4332
SELECT + - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 WHERE NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-4332
SELECT + - CAST ( NULL AS REAL ) AS col1 FROM tab2 WHERE NULL <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4333
SELECT ALL - col0 - 41 DIV - col2 FROM tab0
----
-15
-83
-97

skipif mysql # not compatible
query I rowsort label-4333
SELECT ALL - col0 - 41 / - col2 FROM tab0
----
-15
-83
-97

query III rowsort
SELECT * FROM tab1 WHERE ( NOT 69 <= NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4335
SELECT + 65 * - col1 AS col2, + col1 / 11 + - col2 / - col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
-3055
NULL
-325
NULL
-910
NULL

skipif mysql # not compatible
query II rowsort label-4335
SELECT + 65 * - col1 AS col2, + col1 / 11 + - col2 / - col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
-3055
NULL
-325
NULL
-910
NULL

query II rowsort
SELECT ALL - - ( + col2 ) AS col0, col2 + col1 AS col0 FROM tab1 AS cor0
----
59
64
68
115
96
110

query I rowsort
SELECT col0 + + col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
138
65
90

query I rowsort
SELECT col1 - 49 AS col2 FROM tab2 AS cor0
----
18
2
28

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 77 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4340
SELECT 45 + + CAST( NULL AS SIGNED ) * - 1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4340
SELECT 45 + + CAST ( NULL AS INTEGER ) * - 1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4341
SELECT CAST( NULL AS DECIMAL ) + - col0 col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4341
SELECT CAST ( NULL AS REAL ) + - col0 col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT - + COUNT( * ) col0 FROM tab2 WHERE NULL IN ( ( col1 ) + - col2 * - - col0, 19, + col0, + col0 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4342
SELECT - + COUNT ( * ) col0 FROM tab2 WHERE NULL IN ( ( col1 ) + - col2 * - - col0, 19, + col0, + col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT ALL - - SUM( DISTINCT col0 ) FROM tab1 AS cor0 WHERE col0 - - + 88 + - 0 > col1
----
227

skipif mysql # not compatible
query I rowsort label-4343
SELECT ALL - - SUM ( DISTINCT col0 ) FROM tab1 AS cor0 WHERE col0 - - + 88 + - 0 > col1
----
227

query II rowsort
SELECT ALL - col0 AS col1, + col0 AS col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4345
SELECT - col0 * - - col0 + 53 / - col0 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4345
SELECT - col0 * - - col0 + 53 / - col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 26 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 71 + col0 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT + SUM( ALL - col2 ) AS col0 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-4347
SELECT + SUM ( ALL - col2 ) AS col0 FROM tab2
----
-121

query I rowsort
SELECT + + col1 + - + col0 - + + col1 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN + col1 AND col0 + + col0
----

query I rowsort
SELECT DISTINCT - 6 * col0 AS col1 FROM tab0
----
-522
-582
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT - COUNT( DISTINCT - ( - col1 ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4350
SELECT - COUNT ( DISTINCT - ( - col1 ) ) AS col2 FROM tab2
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( + + col0 ) NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, col1 AS col0 FROM tab1 WHERE NOT col1 IS NULL
----
51
14
85
5
91
47

onlyif mysql # DIV for integer division: 
query I rowsort label-4353
SELECT DISTINCT 30 DIV + col2 AS col0 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-4353
SELECT DISTINCT 30 / + col2 AS col0 FROM tab2
----
0
1

query I rowsort
SELECT + ( + col2 ) FROM tab0 cor0 WHERE NOT - 78 + + + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4355
SELECT - CAST( - col1 AS SIGNED ) * - - 60 col0 FROM tab2 AS cor0
----
3060
4020
4620

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4355
SELECT - CAST ( - col1 AS INTEGER ) * - - 60 col0 FROM tab2 AS cor0
----
3060
4020
4620

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 61 IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT + SUM( + + col0 ) FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( ( 91 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4357
SELECT + SUM ( + + col0 ) FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( ( 91 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4358
SELECT DISTINCT - COUNT( - - CAST( col2 AS SIGNED ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4358
SELECT DISTINCT - COUNT ( - - CAST ( col2 AS INTEGER ) ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - - 92 + + col2 AS col1 FROM tab0 AS cor0
----
102
139
191

query II rowsort
SELECT DISTINCT + + col0 AS col0, 50 - - - col1 AS col2 FROM tab0 cor0
----
15
-31
87
29
97
49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4361
SELECT DISTINCT CAST( NULL AS DECIMAL ) + + 57 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4361
SELECT DISTINCT CAST ( NULL AS REAL ) + + 57 FROM tab2 cor0
----
NULL

query II rowsort
SELECT DISTINCT 95 / - ( - - col2 ) / ( - col2 ) / + 78 - ( - col2 ) + - 27, 14 * - 54 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT + COUNT( * ) + + + 85 col0 FROM tab2
----
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4363
SELECT + COUNT ( * ) + + + 85 col0 FROM tab2
----
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 * - col0 * - col0 + + col0 col2 FROM tab1
----
202929
563635
646009

query I rowsort
SELECT ALL col1 - + 21 AS col2 FROM tab2
----
30
46
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT SUM( - + 12 ) + + - COUNT( * ) AS col2 FROM tab1
----
-39

skipif mysql # not compatible
query I rowsort label-4366
SELECT SUM ( - + 12 ) + + - COUNT ( * ) AS col2 FROM tab1
----
-39

query I rowsort
SELECT DISTINCT - 29 + - + 86 AS col1 FROM tab2
----
-115

query I rowsort
SELECT DISTINCT + ( ( col1 ) ) AS col1 FROM tab0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL 60 col2, + col1 - - + ( + col2 ) AS col1, - col1 AS col0 FROM tab0
----
9 values hashing to 80ca23bb11027ffa342d95b75fc082d4

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( - - col1 ) + 38 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-4371
SELECT col0 DIV + 15, col0 * + - ( + col2 ) AS col2 FROM tab0
----
1
-705
5
-870
6
-9603

skipif mysql # not compatible
query II rowsort label-4371
SELECT col0 / + 15, col0 * + - ( + col2 ) AS col2 FROM tab0
----
1
-705
5
-870
6
-9603

query I rowsort
SELECT ALL + 40 AS col0 FROM tab1 cor0
----
40
40
40

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = col1
----

query I rowsort
SELECT DISTINCT 43 * - col1 FROM tab1 cor0
----
-2021
-215
-602

onlyif mysql # DIV for integer division: 
query I rowsort label-4375
SELECT DISTINCT col0 DIV + + col0 AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4375
SELECT DISTINCT col0 / + + col0 AS col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT col0 * + col2 * - col2 * col1 + + col0 + col1 * + col0 - - 43 AS col1 FROM tab0 AS cor0
----
-180743
-2682662
-950460

query I rowsort
SELECT DISTINCT + - col2 FROM tab1 AS cor0 WHERE ( NULL ) > col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4378
SELECT ALL + - col1 / 44 * - - CAST( + col1 AS SIGNED ) * - col1 FROM tab2 WHERE NOT NULL NOT BETWEEN - - col1 AND + col1 - - 8
----

skipif mysql # not compatible
query I rowsort label-4378
SELECT ALL + - col1 / 44 * - - CAST ( + col1 AS INTEGER ) * - col1 FROM tab2 WHERE NOT NULL NOT BETWEEN - - col1 AND + col1 - - 8
----

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE NOT - - col0 IS NULL
----
51
85
91

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT - col0 IS NULL )
----

query I rowsort
SELECT DISTINCT - 80 * - + col2 AS col2 FROM tab1 AS cor0
----
4720
5440
7680

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 < - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4383
SELECT ALL CAST( NULL AS SIGNED ) * - CAST( + 17 AS DECIMAL ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4383
SELECT ALL CAST ( NULL AS INTEGER ) * - CAST ( + 17 AS REAL ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT + MIN( + 41 ) FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-4384
SELECT + MIN ( + 41 ) FROM tab2
----
41

query I rowsort
SELECT 44 * col1 AS col1 FROM tab2
----
2244
2948
3388

query I rowsort
SELECT DISTINCT col1 * - + col2 AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT + ( + col2 ) + + 37 FROM tab1 cor0
----
105
133
96

query I rowsort
SELECT - col2 * + - 56 + + + col2 + + col0 + - 5 FROM tab2 AS cor0
----
1352
2339
3376

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4389
SELECT * FROM tab1 AS cor0 WHERE col2 + + 25 + - CAST( + + 81 AS SIGNED ) / ( + + 6 ) / + + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-4389
SELECT * FROM tab1 AS cor0 WHERE col2 + + 25 + - CAST ( + + 81 AS INTEGER ) / ( + + 6 ) / + + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4390
SELECT - ( + CAST( NULL AS SIGNED ) ) / CAST( col2 AS DECIMAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4390
SELECT - ( + CAST ( NULL AS INTEGER ) ) / CAST ( col2 AS REAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE + + 42 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT DISTINCT + 30 - + 81 + MAX( DISTINCT col2 ) + 13 * 58 FROM tab0
----
802

skipif mysql # not compatible
query I rowsort label-4392
SELECT DISTINCT + 30 - + 81 + MAX ( DISTINCT col2 ) + 13 * 58 FROM tab0
----
802

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 - + - col2 + col1 + - col1 col0 FROM tab0 AS cor0
----
0
0
0

query II rowsort
SELECT ( + ( 56 ) ), + ( + col1 ) FROM tab2 AS cor0
----
56
51
56
67
56
77

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4396
SELECT - COUNT( * ) AS col0, 36 DIV + 30 + 96 FROM tab0
----
-3
97

skipif mysql # not compatible
query II rowsort label-4396
SELECT - COUNT ( * ) AS col0, 36 / + 30 + 96 FROM tab0
----
-3
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4397
SELECT ALL - + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4397
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT col2, - col0 FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

query I rowsort
SELECT ALL + + 55 AS col0 FROM tab1 AS cor0
----
55
55
55

query I rowsort
SELECT DISTINCT + col1 * + ( + col2 ) + - col1 FROM tab0 AS cor0
----
189
3726
98

query II rowsort
SELECT col0 AS col1, col0 * - col2 FROM tab0 AS cor0
----
15
-705
87
-870
97
-9603

query I rowsort
SELECT col0 * - 47 + - col0 AS col1 FROM tab1 AS cor0 WHERE NOT 40 NOT BETWEEN + ( col2 ) AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 NOT IN ( ( - col1 ) / + + col0 - + - 58, col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 WHERE NOT col1 IN ( + - col1, 56 )
----
51
67
77

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col2 * + 39 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT ALL - - MAX( DISTINCT - col0 ) FROM tab1 WHERE NOT col2 IS NULL
----
-51

skipif mysql # not compatible
query I rowsort label-4407
SELECT ALL - - MAX ( DISTINCT - col0 ) FROM tab1 WHERE NOT col2 IS NULL
----
-51

query I rowsort
SELECT 29 * - + col2 AS col1 FROM tab2
----
-1160
-1682
-667

onlyif mysql # aggregate syntax: 
query III rowsort label-4409
SELECT DISTINCT + SUM( + + col0 ) AS col1, 58, - - 65 AS col2 FROM tab1
----
227
58
65

skipif mysql # not compatible
query III rowsort label-4409
SELECT DISTINCT + SUM ( + + col0 ) AS col1, 58, - - 65 AS col2 FROM tab1
----
227
58
65

query I rowsort
SELECT + 77 + + 23 AS col0 FROM tab0 AS cor0
----
100
100
100

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + 71 - + col0 * + 0 * + - 31 IN ( col2 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4413
SELECT DISTINCT - 33 DIV 53 AS col2, + 43 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0
43

skipif mysql # not compatible
query II rowsort label-4413
SELECT DISTINCT - 33 / 53 AS col2, + 43 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT ALL - 4 + COUNT( * ) FROM tab1 WHERE - col1 NOT IN ( - + 79 + - - 85 )
----
-1

skipif mysql # not compatible
query I rowsort label-4414
SELECT ALL - 4 + COUNT ( * ) FROM tab1 WHERE - col1 NOT IN ( - + 79 + - - 85 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4415
SELECT - ( + - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4415
SELECT - ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT - 9 AS col0, col1 FROM tab1
----
-9
14
-9
47
-9
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4417
SELECT DISTINCT - col1 AS col0 FROM tab1 WHERE NOT - col0 / CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4417
SELECT DISTINCT - col1 AS col0 FROM tab1 WHERE NOT - col0 / CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL 13 * - + 3 AS col2 FROM tab1 AS cor0
----
-39
-39
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-4419
SELECT ALL col2 DIV - + 15 AS col1 FROM tab0 AS cor0
----
-3
-6
0

skipif mysql # not compatible
query I rowsort label-4419
SELECT ALL col2 / - + 15 AS col1 FROM tab0 AS cor0
----
-3
-6
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 * - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col1 * 78 AS col1 FROM tab0 AS cor0
----
-1638
-6318
-78

query I rowsort
SELECT - - col1 AS col0 FROM tab2 AS cor0 WHERE NULL IN ( 86, - col2 + + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4423
SELECT DISTINCT - - 3 + + 17 * + 42 + + - COUNT( * ) + + ( - 9 ) AS col2 FROM tab0 cor0
----
705

skipif mysql # not compatible
query I rowsort label-4423
SELECT DISTINCT - - 3 + + 17 * + 42 + + - COUNT ( * ) + + ( - 9 ) AS col2 FROM tab0 cor0
----
705

onlyif mysql # aggregate syntax: 
query I rowsort label-4424
SELECT ALL ( - COUNT( * ) ) FROM tab0, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4424
SELECT ALL ( - COUNT ( * ) ) FROM tab0, tab2 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + + 97 col2 FROM tab0
----
-2
50
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4426
SELECT ALL - col0 + + CAST( - 56 AS SIGNED ) + 53 col2 FROM tab2
----
-49
-67
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4426
SELECT ALL - col0 + + CAST ( - 56 AS INTEGER ) + 53 col2 FROM tab2
----
-49
-67
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT DISTINCT + COUNT( * ) + - MAX( - - col2 ) FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-4427
SELECT DISTINCT + COUNT ( * ) + - MAX ( - - col2 ) FROM tab0
----
-96

query I rowsort
SELECT ALL + col0 - - + col2 + + col2 * + 49 AS col2 FROM tab1
----
3035
3491
4851

query III rowsort
SELECT * FROM tab0 WHERE col1 * + + col1 - + - col0 > - - ( - + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 83 + - + col2 FROM tab1
----
-142
-151
-179

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col2 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - col1, + col2 FROM tab1 WHERE NOT NULL <> + 44
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 * 59 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4434
SELECT DISTINCT + col0 DIV - + col2 + col1 FROM tab1 AS cor0
----
14
4
46

skipif mysql # not compatible
query I rowsort label-4434
SELECT DISTINCT + col0 / - + col2 + col1 FROM tab1 AS cor0
----
14
4
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4435
SELECT ALL - - ( - MIN( DISTINCT + + 10 ) ) AS col2 FROM tab2 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4435
SELECT ALL - - ( - MIN ( DISTINCT + + 10 ) ) AS col2 FROM tab2 cor0
----
-10

query I rowsort
SELECT 6 * - - 68 AS col2 FROM tab2
----
408
408
408

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT 24 * - col1 AS col2 FROM tab2 AS cor0
----
-1224
-1608
-1848

query I rowsort
SELECT ALL - ( - - col1 ) FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query II rowsort label-4440
SELECT DISTINCT 28 AS col1, col0 * 78 DIV col1 * - col0 * - 90 * + col1 FROM tab0 AS cor0
----
28
1530900
28
53110890
28
66051180

skipif mysql # not compatible
query II rowsort label-4440
SELECT DISTINCT 28 AS col1, col0 * 78 / col1 * - col0 * - 90 * + col1 FROM tab0 AS cor0
----
28
1530900
28
53110890
28
66051180

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT - SUM( ALL + - col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-4441
SELECT - SUM ( ALL + - col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 36 col1 FROM tab0 WHERE NULL IS NULL
----
-36
-36
-36

query II rowsort
SELECT DISTINCT + 37, 59 * - + 50 AS col0 FROM tab1
----
37
-2950

query II rowsort
SELECT DISTINCT 49, + col1 * + ( 32 ) * - col0 AS col1 FROM tab1
----
49
-13600
49
-136864
49
-22848

query I rowsort
SELECT DISTINCT col1 * + - 98 AS col1 FROM tab2
----
-4998
-6566
-7546

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT ALL 74 + - MAX( ALL + col0 ) FROM tab0
----
-23

skipif mysql # not compatible
query I rowsort label-4446
SELECT ALL 74 + - MAX ( ALL + col0 ) FROM tab0
----
-23

query III rowsort
SELECT * FROM tab1 WHERE col2 >= + col1 * col1 + - + col2
----
85
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT - + MIN( DISTINCT + + col1 ) col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4448
SELECT - + MIN ( DISTINCT + + col1 ) col1 FROM tab1 AS cor0
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col1, 42 FROM tab1 AS cor0
----
59
42
68
42
96
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4450
SELECT - ( - COUNT( + CAST( + col0 AS SIGNED ) ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4450
SELECT - ( - COUNT ( + CAST ( + col0 AS INTEGER ) ) ) FROM tab1
----
3

query I rowsort
SELECT - col1 - + - col2 AS col1 FROM tab0 WHERE + col2 + - col0 BETWEEN - 99 / - - col2 AND 56
----
-34
98

onlyif mysql # DIV for integer division: 
query II rowsort label-4452
SELECT ALL - + 57 DIV - - col2, - 53 + + col1 AS col0 FROM tab2 AS cor0
----
-1
24
-2
-2
0
14

skipif mysql # not compatible
query II rowsort label-4452
SELECT ALL - + 57 / - - col2, - 53 + + col1 AS col0 FROM tab2 AS cor0
----
-1
24
-2
-2
0
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4453
SELECT COUNT( * ) * + COUNT( * ) AS col1 FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-4453
SELECT COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab2 cor0
----
9

query I rowsort
SELECT - col1 * ( - ( - col0 ) ) FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT 99 * + - col1 * - col2 AS col2 FROM tab2 AS cor0
----
116127
304920
384714

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT DISTINCT COUNT( 97 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4456
SELECT DISTINCT COUNT ( 97 ) AS col1 FROM tab0 AS cor0
----
3

query II rowsort
SELECT DISTINCT - col0 + 10, + col1 AS col1 FROM tab2 AS cor0
----
-36
51
-54
77
-65
67

onlyif mysql # DIV for integer division: 
query I rowsort label-4458
SELECT + 81 DIV col0 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4458
SELECT + 81 / col0 AS col2 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT 81 * 31 AS col1 FROM tab2
----
2511
2511
2511

query I rowsort
SELECT ALL 78 * col1 FROM tab2
----
3978
5226
6006

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 68 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT 45 * + 67, ( col2 ) AS col2 FROM tab1
----
3015
59
3015
68
3015
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT - 8 + - MAX( ALL - 52 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
44

skipif mysql # not compatible
query I rowsort label-4463
SELECT - 8 + - MAX ( ALL - 52 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4464
SELECT - ( - MIN( - col1 ) ) AS col0 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-4464
SELECT - ( - MIN ( - col1 ) ) AS col0 FROM tab1 AS cor0
----
-47

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4466
SELECT + - col2 DIV + col0 AS col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4466
SELECT + - col2 / + col0 AS col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4467
SELECT + 92 * + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4467
SELECT + 92 * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 AS cor0 WHERE 32 IS NULL
----

query I rowsort
SELECT ALL 7 + col1 FROM tab1 AS cor0
----
12
21
54

query I rowsort
SELECT col0 / - 89 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= - + col2 + + + ( - - col1 ) - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4471
SELECT * FROM tab1 WHERE ( NOT ( - - CAST( NULL AS SIGNED ) IS NULL ) )
----

skipif mysql # not compatible
query III rowsort label-4471
SELECT * FROM tab1 WHERE ( NOT ( - - CAST ( NULL AS INTEGER ) IS NULL ) )
----

query III rowsort
SELECT * FROM tab1 WHERE + + col1 < - 49
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) >= 3
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 <> + 64
----

query III rowsort
SELECT * FROM tab1 WHERE - - col2 * - 52 BETWEEN ( + col2 ) AND 63 - 70 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT 29 + + COUNT( * ) FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-4476
SELECT 29 + + COUNT ( * ) FROM tab1
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4477
SELECT CAST( NULL AS SIGNED ) * + - 10 * col1 * 65 + + + col2, + col1 * + col1 AS col2 FROM tab2
----
NULL
2601
NULL
4489
NULL
5929

skipif mysql # not compatible
query II rowsort label-4477
SELECT CAST ( NULL AS INTEGER ) * + - 10 * col1 * 65 + + + col2, + col1 * + col1 AS col2 FROM tab2
----
NULL
2601
NULL
4489
NULL
5929

query I rowsort
SELECT ALL col0 + - + 59 + + ( - - 4 ) + + + col0 - - 27 + + col2 * - - 78 AS col0 FROM tab1
----
4744
5458
7562

onlyif mysql # aggregate syntax: 
query I rowsort label-4479
SELECT ( + ( + COUNT( + - col2 ) ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4479
SELECT ( + ( + COUNT ( + - col2 ) ) ) FROM tab2
----
3

query I rowsort
SELECT - 32 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4481
SELECT col2 - - col0 col1, CAST( NULL AS DECIMAL ) col0 FROM tab1
----
144
NULL
147
NULL
159
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4481
SELECT col2 - - col0 col1, CAST ( NULL AS REAL ) col0 FROM tab1
----
144
NULL
147
NULL
159
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col0 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4483
SELECT ALL + - 49 FROM tab2 AS cor0 WHERE NOT + col1 + - + col0 + - CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-4483
SELECT ALL + - 49 FROM tab2 AS cor0 WHERE NOT + col1 + - + col0 + - CAST ( NULL AS INTEGER ) >= NULL
----

query I rowsort
SELECT ALL - - 65 FROM tab1 cor0
----
65
65
65

query II rowsort
SELECT ALL + 84 AS col0, - 40 * + 67 - + + col1 AS col0 FROM tab1 AS cor0
----
84
-2685
84
-2694
84
-2727

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col0 + - col1 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + col0 * - + col1 * + - col2 * - - col2 AS col0 FROM tab2
----
1241034
16904100
7884800

onlyif mysql # DIV for integer division: 
query I rowsort label-4488
SELECT DISTINCT + ( ( col1 ) ) DIV 99 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4488
SELECT DISTINCT + ( ( col1 ) ) / 99 AS col2 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4489
SELECT ( - 21 ) DIV + col0 - + col1 + + 43 FROM tab2
----
-24
-34
-8

skipif mysql # not compatible
query I rowsort label-4489
SELECT ( - 21 ) / + col0 - + col1 + + 43 FROM tab2
----
-24
-34
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4490
SELECT col1 * CAST( NULL AS SIGNED ) * + + col0 * + + col2 * - 26 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4490
SELECT col1 * CAST ( NULL AS INTEGER ) * + + col0 * + + col2 * - 26 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + 71 + + 70
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT ALL 36 * + COUNT( * ) AS col2 FROM tab0
----
108

skipif mysql # not compatible
query I rowsort label-4492
SELECT ALL 36 * + COUNT ( * ) AS col2 FROM tab0
----
108

query I rowsort
SELECT 99 * 15 FROM tab1
----
1485
1485
1485

query I rowsort
SELECT ALL + col1 * - 92 * + col1 FROM tab0 cor0
----
-40572
-603612
-92

query I rowsort
SELECT DISTINCT + col1 * 82 AS col2 FROM tab2 AS cor0
----
4182
5494
6314

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4496
SELECT CAST( + - 40 AS SIGNED ) FROM tab2
----
-40
-40
-40

skipif mysql # not compatible
query I rowsort label-4496
SELECT CAST ( + - 40 AS INTEGER ) FROM tab2
----
-40
-40
-40

query II rowsort
SELECT col1 * - ( col2 ) AS col1, 37 AS col2 FROM tab2
----
-1173
37
-3080
37
-3886
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4498
SELECT + CAST( + col0 AS SIGNED ) AS col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4498
SELECT + CAST ( + col0 AS INTEGER ) AS col2 FROM tab1
----
51
85
91

query I rowsort
SELECT ALL - - 76 AS col2 FROM tab2 cor0
----
76
76
76

query I rowsort
SELECT ALL - + 3 * col1 + - + 5 - col1 + - ( - - col0 ) AS col0 FROM tab1 AS cor0
----
-110
-112
-284

query I rowsort
SELECT 41 + col0 FROM tab2 cor0
----
105
116
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT DISTINCT MAX( col0 ) AS col1 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
75

skipif mysql # not compatible
query I rowsort label-4502
SELECT DISTINCT MAX ( col0 ) AS col1 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
75

query II rowsort
SELECT DISTINCT + + col2 AS col2, 17 AS col2 FROM tab0 AS cor0
----
10
17
47
17
99
17

query I rowsort
SELECT - col1 + + 64 * - + 11 * col2 * + col2 FROM tab2
----
-1126477
-2368323
-372467

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4505
SELECT 93 + + + col1 AS col0, - 79 * + CAST( + 43 AS SIGNED ) AS col2 FROM tab2
----
144
-3397
160
-3397
170
-3397

skipif mysql # not compatible
query II rowsort label-4505
SELECT 93 + + + col1 AS col0, - 79 * + CAST ( + 43 AS INTEGER ) AS col2 FROM tab2
----
144
-3397
160
-3397
170
-3397

query I rowsort
SELECT + ( - 5 ) + + + 97 AS col1 FROM tab0
----
92
92
92

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - + col1 * + - 96 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE + 55 / + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT ALL + SUM( DISTINCT - col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-4509
SELECT ALL + SUM ( DISTINCT - col0 ) FROM tab0
----
-199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 40 col0 FROM tab0 cor0
----
40
40
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4511
SELECT + + SUM( + col0 ) DIV - 8 AS col2 FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-4511
SELECT + + SUM ( + col0 ) / - 8 AS col2 FROM tab0 AS cor0
----
-24

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > - col0 OR NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT MAX( - + col1 ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4513
SELECT MAX ( - + col1 ) AS col0 FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT ALL + COUNT( - - 50 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4514
SELECT ALL + COUNT ( - - 50 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT - MIN( + - 74 ) col0 FROM tab2 AS cor0
----
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4515
SELECT - MIN ( + - 74 ) col0 FROM tab2 AS cor0
----
74

query I rowsort
SELECT + - 84 * + 17 FROM tab2 cor0
----
-1428
-1428
-1428

query II rowsort
SELECT ALL + - col2 * - col0 + + col0, - col2 AS col1 FROM tab1 AS cor0
----
4947
-96
5100
-59
6279
-68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4518
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) + + 55 FROM tab1 AS cor0 WHERE NOT col2 < - - 71 / + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4518
SELECT DISTINCT + + CAST ( NULL AS REAL ) + + 55 FROM tab1 AS cor0 WHERE NOT col2 < - - 71 / + col2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( NOT - col1 <= NULL ) )
----

query I rowsort
SELECT DISTINCT + 76 + + col2 AS col2 FROM tab2 WHERE + col1 IS NULL
----

query I rowsort
SELECT ALL + 16 FROM tab1 WHERE NULL IS NULL
----
16
16
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT DISTINCT + + COUNT( + - col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4522
SELECT DISTINCT + + COUNT ( + - col2 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - 96 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - ( + col1 ) * + - 6 - + col0 NOT IN ( col1 / + + col2 )
----

query I rowsort
SELECT - 93 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

query I rowsort
SELECT 83 * + - 42 AS col2 FROM tab0
----
-3486
-3486
-3486

onlyif mysql # aggregate syntax: 
query II rowsort label-4527
SELECT 11 * + 23 AS col1, COUNT( * ) col2 FROM tab2 cor0
----
253
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4527
SELECT 11 * + 23 AS col1, COUNT ( * ) col2 FROM tab2 cor0
----
253
3

query I rowsort
SELECT + + col2 * - + col2 + - col1 - + + col2 + + + 31 + - col1 * + col1 AS col2 FROM tab0 AS cor0 WHERE ( NOT ( NOT NULL < col1 ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4529
SELECT ALL 47 * - + col0, - ( + col0 ) DIV + - col2 + + - col2 + + + ( + - 11 ) AS col0 FROM tab2 AS cor0
----
-2162
-32
-3008
-50
-3525
-68

skipif mysql # not compatible
query II rowsort label-4529
SELECT ALL 47 * - + col0, - ( + col0 ) / + - col2 + + - col2 + + + ( + - 11 ) AS col0 FROM tab2 AS cor0
----
-2162
-32
-3008
-50
-3525
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 74 col0 FROM tab2 AS cor0 WHERE NOT - col2 BETWEEN NULL AND - col2
----

query II rowsort
SELECT ALL col2 * + 36 * - + 55, + col2 FROM tab2 AS cor0
----
-114840
58
-45540
23
-79200
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT ALL + - COUNT( * ) + + - 98 AS col2 FROM tab1 cor0
----
-101

skipif mysql # not compatible
query I rowsort label-4532
SELECT ALL + - COUNT ( * ) + + - 98 AS col2 FROM tab1 cor0
----
-101

query II rowsort
SELECT ( col1 ), + 18 AS col1 FROM tab1 AS cor0
----
14
18
47
18
5
18

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 <= - 79
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT + 43 + - MIN( ALL - ( 85 ) ) * + 43 FROM tab2
----
3698

skipif mysql # not compatible
query I rowsort label-4535
SELECT + 43 + - MIN ( ALL - ( 85 ) ) * + 43 FROM tab2
----
3698

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4536
SELECT ALL 91 - CAST( AVG ( DISTINCT + col1 ) AS SIGNED ) AS col1 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-4536
SELECT ALL 91 - CAST ( AVG ( DISTINCT + col1 ) AS INTEGER ) AS col1 FROM tab1
----
69

query I rowsort
SELECT DISTINCT 9 * + col2 FROM tab0
----
423
891
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col2 ) col0 FROM tab0 WHERE + - col1 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT col1 + + + col2 + ( - + col0 ) * + col0 AS col0 FROM tab2
----
-2042
-3979
-5500

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4540
SELECT + COUNT( * ) + + - SUM( ALL - - col1 ) DIV - MIN( ALL + + 5 ) AS col0 FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-4540
SELECT + COUNT ( * ) + + - SUM ( ALL - - col1 ) / - MIN ( ALL + + 5 ) AS col0 FROM tab0
----
23

query II rowsort
SELECT DISTINCT col0 * + - col1 + + + col2, 59 AS col0 FROM tab1 AS cor0
----
-366
59
-4209
59
-618
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4542
SELECT ALL + 95 * - 40 * + - 90 DIV COUNT( * ) AS col1 FROM tab0 AS cor0
----
114000

skipif mysql # not compatible
query I rowsort label-4542
SELECT ALL + 95 * - 40 * + - 90 / COUNT ( * ) AS col1 FROM tab0 AS cor0
----
114000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4543
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE CAST( + col0 AS SIGNED ) - - col1 + - col2 + + + col0 = - + col2 / 57
----

skipif mysql # not compatible
query I rowsort label-4543
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE CAST ( + col0 AS INTEGER ) - - col1 + - col2 + + + col0 = - + col2 / 57
----

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT + col0 * - + 68 * + 40 * + 95 + - col1 NOT BETWEEN NULL AND - - 97
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT DISTINCT + COUNT( * ) * COUNT( * ) + - 29 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-4545
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) + - 29 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 col2 FROM tab2 WHERE NULL IS NULL
----
23
40
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4547
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4547
SELECT DISTINCT + - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4548
SELECT MIN( CAST( - ( col0 ) AS SIGNED ) ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-4548
SELECT MIN ( CAST ( - ( col0 ) AS INTEGER ) ) FROM tab0 AS cor0
----
-97

query I rowsort
SELECT DISTINCT ( + + col1 ) AS col2 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4550
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 11 + + CAST( NULL AS SIGNED ) * 23 IS NULL
----

skipif mysql # not compatible
query III rowsort label-4550
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 11 + + CAST ( NULL AS INTEGER ) * 23 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4551
SELECT + - 27 * col2 * - - ( + + CAST( NULL AS SIGNED ) ), col2 AS col0 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-4551
SELECT + - 27 * col2 * - - ( + + CAST ( NULL AS INTEGER ) ), col2 AS col0 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4552
SELECT + CAST( NULL AS SIGNED ) * + 15 * 92 + - - col1 AS col2, col1 * - + ( col2 ) AS col2 FROM tab2 AS cor0
----
NULL
-1173
NULL
-3080
NULL
-3886

skipif mysql # not compatible
query II rowsort label-4552
SELECT + CAST ( NULL AS INTEGER ) * + 15 * 92 + - - col1 AS col2, col1 * - + ( col2 ) AS col2 FROM tab2 AS cor0
----
NULL
-1173
NULL
-3080
NULL
-3886

query I rowsort
SELECT ALL + 52 FROM tab0 WHERE NOT col1 <= NULL
----

query I rowsort
SELECT + 61 * - + 36 FROM tab1
----
-2196
-2196
-2196

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT - COUNT( * ) * - SUM( DISTINCT + col2 ) FROM tab0
----
468

skipif mysql # not compatible
query I rowsort label-4555
SELECT - COUNT ( * ) * - SUM ( DISTINCT + col2 ) FROM tab0
----
468

query II rowsort
SELECT + + col0, col0 AS col2 FROM tab1 WHERE NOT - - col0 + col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT + COUNT( * ) * + - COUNT( * ) AS col1 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-4557
SELECT + COUNT ( * ) * + - COUNT ( * ) AS col1 FROM tab1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4558
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4558
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4559
SELECT ( COUNT( DISTINCT CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4559
SELECT ( COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT DISTINCT - ( - MAX( ALL - col2 ) ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4560
SELECT DISTINCT - ( - MAX ( ALL - col2 ) ) FROM tab0 AS cor0
----
-10

query I rowsort
SELECT DISTINCT 72 FROM tab0 AS cor0 WHERE ( - col2 IS NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( + 62 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4563
SELECT DISTINCT - + CAST( + MIN( DISTINCT - + CAST( NULL AS DECIMAL ) ) AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4563
SELECT DISTINCT - + CAST ( + MIN ( DISTINCT - + CAST ( NULL AS REAL ) ) AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT + - 91 + + col1 + col1 + - col2 * - col1 FROM tab0 AS cor0
----
10
161
3878

query I rowsort
SELECT + 30 + - - col1 FROM tab2 cor0
----
107
81
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT - 1 + COUNT( ALL - 25 ) AS col2 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-4566
SELECT - 1 + COUNT ( ALL - 25 ) AS col2 FROM tab2 AS cor0
----
2

query I rowsort
SELECT DISTINCT col0 * + col1 + + col0 AS col2 FROM tab1 AS cor0
----
4368
510
765

query I rowsort
SELECT + 12 * col1 + + col1 AS col2 FROM tab1 AS cor0
----
182
611
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT COUNT( * ) + + 71 AS col0 FROM tab2 cor0
----
74

skipif mysql # not compatible
query I rowsort label-4569
SELECT COUNT ( * ) + + 71 AS col0 FROM tab2 cor0
----
74

query I rowsort
SELECT DISTINCT + col0 * - - col2 - - ( + 36 ) - - col2 + + + col1 + + 2 * + + col1 * + col2 AS col1 FROM tab1 AS cor0
----
12731
5705
7730

query II rowsort
SELECT DISTINCT col0 + + - col0, col2 AS col2 FROM tab2
----
0
23
0
40
0
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4572
SELECT DISTINCT + 48 DIV - COUNT( ALL + + ( col0 ) ) AS col1 FROM tab1
----
-16

skipif mysql # not compatible
query I rowsort label-4572
SELECT DISTINCT + 48 / - COUNT ( ALL + + ( col0 ) ) AS col1 FROM tab1
----
-16

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 64 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4574
SELECT ALL - col1 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 * col1 + col2 < - col1 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4574
SELECT ALL - col1 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 * col1 + col2 < - col1 + - CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4575
SELECT ALL col0 - + col0 - - - col2 DIV 17 FROM tab0 AS cor0
----
-2
-5
0

skipif mysql # not compatible
query I rowsort label-4575
SELECT ALL col0 - + col0 - - - col2 / 17 FROM tab0 AS cor0
----
-2
-5
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 49 col2, ( col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
49
10
49
47
49
99

query I rowsort
SELECT ALL + ( - 5 ) AS col0 FROM tab0 AS cor0
----
-5
-5
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-4578
SELECT ALL 21 DIV col2 AS col0 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4578
SELECT ALL 21 / col2 AS col0 FROM tab0 AS cor0
----
0
0
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4579
SELECT - COUNT( * ), + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-4579
SELECT - COUNT ( * ), + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
-3
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4580
SELECT DISTINCT - 14 DIV - col1 col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4580
SELECT DISTINCT - 14 / - col1 col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col1 * + - ( - col2 ) FROM tab0 cor0
----
-210
-3807
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 1 * + col1 col0 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + ( col0 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - col2 >= - 95
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4585
SELECT CAST( - CAST( - ( - 3 ) AS SIGNED ) AS SIGNED ) * - col2 + + col2 col1 FROM tab2
----
160
232
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4585
SELECT CAST ( - CAST ( - ( - 3 ) AS INTEGER ) AS INTEGER ) * - col2 + + col2 col1 FROM tab2
----
160
232
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT + MAX( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4586
SELECT + MAX ( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
96

query I rowsort
SELECT + - 68 FROM tab0 cor0 WHERE NOT - col0 * - 49 / - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT DISTINCT 60 + - COUNT( * ) FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-4588
SELECT DISTINCT 60 + - COUNT ( * ) FROM tab1 AS cor0
----
57

query I rowsort
SELECT ALL - 92 * - 78 FROM tab0
----
7176
7176
7176

query I rowsort
SELECT ALL - col0 * + - 90 * - col1 FROM tab0 AS cor0
----
-109350
-164430
-8730

query I rowsort
SELECT 53 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4592
SELECT + + ( - - COUNT( * ) ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4592
SELECT + + ( - - COUNT ( * ) ) AS col1 FROM tab0 cor0
----
3

query I rowsort
SELECT ALL ( - - 90 ) AS col0 FROM tab1 cor0
----
90
90
90

query I rowsort
SELECT ALL col0 * + 5 AS col2 FROM tab1 AS cor0
----
255
425
455

query I rowsort
SELECT DISTINCT 62 AS col1 FROM tab0 cor0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4596
SELECT ALL + 73 * - col0 * - CAST( + 36 AS SIGNED ) + + - CAST( + - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
120934
168256
197175

skipif mysql # not compatible
query I rowsort label-4596
SELECT ALL + 73 * - col0 * - CAST ( + 36 AS INTEGER ) + + - CAST ( + - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
120934
168256
197175

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 20 * - col1 + - - col1 <> col1 + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT COUNT( * ) + - COUNT( * ) * COUNT( ( col0 ) ) AS col2 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-4598
SELECT COUNT ( * ) + - COUNT ( * ) * COUNT ( ( col0 ) ) AS col2 FROM tab2
----
-6

query II rowsort
SELECT col0 + 34, ( + col0 ) FROM tab1
----
119
85
125
91
85
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col1 FROM tab2 WHERE - 10 - col0 <= ( ( + - col2 ) )
----
23
40
58

query I rowsort
SELECT ALL + col2 * + col0 - col2 FROM tab2
----
1035
2520
4292

query II rowsort
SELECT ALL col2 AS col0, 6 AS col0 FROM tab0 AS cor0
----
10
6
47
6
99
6

query I rowsort
SELECT - col2 - col1 FROM tab1 AS cor0 WHERE - ( - 19 ) IS NULL
----

query I rowsort
SELECT DISTINCT 2 * - col2 AS col1 FROM tab1
----
-118
-136
-192

onlyif mysql # DIV for integer division: 
query I rowsort label-4605
SELECT col2 * ( + col1 ) DIV - col2 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-4605
SELECT col2 * ( + col1 ) / - col2 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT + 16 FROM tab1 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4607
SELECT ALL - CAST( + + 25 AS SIGNED ) DIV - + 77 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4607
SELECT ALL - CAST ( + + 25 AS INTEGER ) / - + 77 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4608
SELECT ALL - + MAX( DISTINCT + - 42 ) AS col2, COUNT( * ) AS col0 FROM tab0 cor0
----
42
3

skipif mysql # not compatible
query II rowsort label-4608
SELECT ALL - + MAX ( DISTINCT + - 42 ) AS col2, COUNT ( * ) AS col0 FROM tab0 cor0
----
42
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 56 * + 5 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4610
SELECT - CAST( - - col1 AS SIGNED ) AS col2 FROM tab1 cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-4610
SELECT - CAST ( - - col1 AS INTEGER ) AS col2 FROM tab1 cor0
----
-14
-47
-5

query I rowsort
SELECT DISTINCT col1 * + 66 + + ( + col2 ) FROM tab0
----
1396
165
5393

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT DISTINCT + - COUNT( * ) FROM tab2 WHERE NOT - col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4612
SELECT DISTINCT + - COUNT ( * ) FROM tab2 WHERE NOT - col2 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT MIN( DISTINCT - - 7 ) FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-4613
SELECT MIN ( DISTINCT - - 7 ) FROM tab1
----
7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT - col2 + col2 IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4615
SELECT ALL col1 DIV + 16 AS col2 FROM tab1
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4615
SELECT ALL col1 / + 16 AS col2 FROM tab1
----
0
0
2

query I rowsort
SELECT 50 * - col0 FROM tab2
----
-2300
-3200
-3750

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT DISTINCT + MAX( - - col0 ) AS col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4617
SELECT DISTINCT + MAX ( - - col0 ) AS col0 FROM tab2 AS cor0
----
75

query II rowsort
SELECT ALL + 91 AS col0, - col1 FROM tab1 AS cor0
----
91
-14
91
-47
91
-5

query I rowsort
SELECT ALL - + col1 FROM tab0 AS cor0 WHERE - col1 + + col0 IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT 69 + - 69 * col2 AS col1 FROM tab0
----
-3174
-621
-6762

query I rowsort
SELECT ALL col1 + - 20 FROM tab1 WHERE NOT ( col2 ) * 33 BETWEEN NULL AND ( + 76 )
----
-15
-6
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4622
SELECT ALL - COUNT( * ) FROM tab1 WHERE ( NULL ) BETWEEN 15 AND - col1 * + col1
----
0

skipif mysql # not compatible
query I rowsort label-4622
SELECT ALL - COUNT ( * ) FROM tab1 WHERE ( NULL ) BETWEEN 15 AND - col1 * + col1
----
0

query I rowsort
SELECT ALL 21 * 93 + 65 AS col0 FROM tab0
----
2018
2018
2018

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col0 + - col2 col0 FROM tab1
----
4800
4956
6120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4625
SELECT 78 * - 7 + - CAST( + col2 - 15 AS SIGNED ) FROM tab0
----
-541
-578
-630

skipif mysql # not compatible
query I rowsort label-4625
SELECT 78 * - 7 + - CAST ( + col2 - 15 AS INTEGER ) FROM tab0
----
-541
-578
-630

onlyif mysql # DIV for integer division: 
query I rowsort label-4626
SELECT ALL col1 + col0 DIV 49 AS col2 FROM tab1
----
15
48
6

skipif mysql # not compatible
query I rowsort label-4626
SELECT ALL col1 + col0 / 49 AS col2 FROM tab1
----
15
48
6

query I rowsort
SELECT DISTINCT 85 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4628
SELECT DISTINCT + CAST( NULL AS SIGNED ) / COUNT( * ) col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4628
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / COUNT ( * ) col2 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 < ( - 24 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT ALL 30 + - COUNT( * ) FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-4630
SELECT ALL 30 + - COUNT ( * ) FROM tab0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4631
SELECT + ( + CAST( col0 AS SIGNED ) ) * - col2 AS col1 FROM tab2
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-4631
SELECT + ( + CAST ( col0 AS INTEGER ) ) * - col2 AS col1 FROM tab2
----
-1058
-2560
-4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 70 col2 FROM tab1
----
3570
5950
6370

onlyif mysql # DIV for integer division: 
query I rowsort label-4633
SELECT - ( col0 ) DIV col2 + - col2 FROM tab2
----
-25
-41
-59

skipif mysql # not compatible
query I rowsort label-4633
SELECT - ( col0 ) / col2 + - col2 FROM tab2
----
-25
-41
-59

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( ( - 34 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 * col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT - 99 + + COUNT( * ) * 48 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-4636
SELECT - 99 + + COUNT ( * ) * 48 FROM tab2
----
45

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <> 6
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col0 / - col2 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4639
SELECT 14 DIV + COUNT( * ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-4639
SELECT 14 / + COUNT ( * ) FROM tab0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4640
SELECT + col1 AS col0 FROM tab1 WHERE ( - ( 11 ) + CAST( NULL AS SIGNED ) ) = - col0
----

skipif mysql # not compatible
query I rowsort label-4640
SELECT + col1 AS col0 FROM tab1 WHERE ( - ( 11 ) + CAST ( NULL AS INTEGER ) ) = - col0
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + 18 AND ( - col1 + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT ALL - 69 + COUNT( * ) AS col2 FROM tab0 WHERE ( ( col2 ) * 37 ) <> col1 * col0 + ( + ( + 95 ) ) * 21
----
-66

skipif mysql # not compatible
query I rowsort label-4642
SELECT ALL - 69 + COUNT ( * ) AS col2 FROM tab0 WHERE ( ( col2 ) * 37 ) <> col1 * col0 + ( + ( + 95 ) ) * 21
----
-66

query I rowsort
SELECT ALL - 13 + + col2 * + ( 25 ) AS col0 FROM tab2
----
1437
562
987

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT ALL + COUNT( * ) AS col1 FROM tab1 WHERE + 86 * col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4644
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 WHERE + 86 * col1 IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL < ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT DISTINCT COUNT( DISTINCT col0 ) FROM tab2 AS cor0 WHERE NOT - 85 / col0 BETWEEN ( 92 * - col0 ) AND - 55
----
3

skipif mysql # not compatible
query I rowsort label-4646
SELECT DISTINCT COUNT ( DISTINCT col0 ) FROM tab2 AS cor0 WHERE NOT - 85 / col0 BETWEEN ( 92 * - col0 ) AND - 55
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4647
SELECT - CAST( + col1 AS SIGNED ) * + ( - 14 ) AS col0 FROM tab0 AS cor0
----
1134
14
294

skipif mysql # not compatible
query I rowsort label-4647
SELECT - CAST ( + col1 AS INTEGER ) * + ( - 14 ) AS col0 FROM tab0 AS cor0
----
1134
14
294

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 BETWEEN - 98 + - col0 AND 98 * - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4649
SELECT ALL * FROM tab0 WHERE NOT col0 + + col1 BETWEEN col0 - CAST( NULL AS SIGNED ) * + col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-4649
SELECT ALL * FROM tab0 WHERE NOT col0 + + col1 BETWEEN col0 - CAST ( NULL AS INTEGER ) * + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4650
SELECT ALL 4 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4650
SELECT ALL 4 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL col2 * - ( + col1 ) AS col1 FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT ( COUNT( + 55 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4652
SELECT ( COUNT ( + 55 ) ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4653
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE NULL <= NULL
----
0

query I rowsort
SELECT DISTINCT - col2 * 70 FROM tab1 AS cor0
----
-4130
-4760
-6720

query I rowsort
SELECT + col0 * + 9 FROM tab0 AS cor0 WHERE NOT col2 / 10 + - col1 * - 15 = NULL
----

query I rowsort
SELECT DISTINCT col1 / col0 FROM tab1 AS cor0 WHERE - 88 <> NULL
----

query I rowsort
SELECT ALL 28 * + col0 FROM tab0 AS cor0 WHERE NULL < ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 74 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 / col2 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 91 / ( 49 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4661
SELECT CAST( - - col2 AS SIGNED ) * - col0 FROM tab0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-4661
SELECT CAST ( - - col2 AS INTEGER ) * - col0 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT + col1 + + 10 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
61
77
87

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) BETWEEN ( + col2 ) AND 17
----

query I rowsort
SELECT + 34 * 53 FROM tab2
----
1802
1802
1802

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 92 / col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4666
SELECT + COUNT( * ) DIV MAX( col0 ) + + 98 AS col1 FROM tab0 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-4666
SELECT + COUNT ( * ) / MAX ( col0 ) + + 98 AS col1 FROM tab0 AS cor0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT + SUM( DISTINCT + col2 ) + + 77 FROM tab2 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-4667
SELECT + SUM ( DISTINCT + col2 ) + + 77 FROM tab2 AS cor0
----
198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4668
SELECT ALL + - ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4668
SELECT ALL + - ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 12 + - col1 FROM tab1 AS cor0
----
-17
-26
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4670
SELECT - 16 + + 66 DIV COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4670
SELECT - 16 + + 66 / COUNT ( * ) FROM tab2 AS cor0
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4671
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - 94 * + col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4671
SELECT DISTINCT - CAST ( NULL AS REAL ) * - 94 * + col2 FROM tab2 cor0
----
NULL

query I rowsort
SELECT 67 * + col0 FROM tab2 WHERE - col0 IS NOT NULL
----
3082
4288
5025

query III rowsort
SELECT * FROM tab1 WHERE ( + - col2 / - col1 + col0 * col1 ) IS NULL
----

query I rowsort
SELECT 8 * + col0 AS col1 FROM tab1
----
408
680
728

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT ( + COUNT( * ) ) * - + 42 FROM tab2
----
-126

skipif mysql # not compatible
query I rowsort label-4675
SELECT ( + COUNT ( * ) ) * - + 42 FROM tab2
----
-126

query I rowsort
SELECT DISTINCT + col0 * - + col0 - + 33 AS col2 FROM tab0
----
-258
-7602
-9442

onlyif mysql # DIV for integer division: 
query I rowsort label-4677
SELECT + - col2 DIV - col0 + col1 - + col0 DIV col1 AS col2 FROM tab2 AS cor0
----
51
66
77

skipif mysql # not compatible
query I rowsort label-4677
SELECT + - col2 / - col0 + col1 - + col0 / col1 AS col2 FROM tab2 AS cor0
----
51
66
77

query I rowsort
SELECT DISTINCT 86 * col1 FROM tab1 cor0 WHERE NOT ( col2 ) NOT IN ( + 81 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT 33 - COUNT( * ) + + SUM( ALL - 76 ) FROM tab2 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-4679
SELECT 33 - COUNT ( * ) + + SUM ( ALL - 76 ) FROM tab2 AS cor0
----
-198

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 72 + col1 ) NOT BETWEEN ( col2 + - col2 ) AND NULL
----

query I rowsort
SELECT DISTINCT - 18 * + ( - + col1 ) + + col2 * col2 FROM tab2 cor0
----
1447
2986
4570

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT ALL + COUNT( * ) + 97 AS col2 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
100

skipif mysql # not compatible
query I rowsort label-4682
SELECT ALL + COUNT ( * ) + 97 AS col2 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
100

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 AND - + col2 * col0
----

query I rowsort
SELECT 52 + + col2 FROM tab0 cor0
----
151
62
99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col0 AND col2 + - col2
----

query I rowsort
SELECT 98 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4687
SELECT + 71 DIV col1 AS col0, col2 FROM tab2
----
0
40
1
23
1
58

skipif mysql # not compatible
query II rowsort label-4687
SELECT + 71 / col1 AS col0, col2 FROM tab2
----
0
40
1
23
1
58

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col1 / - + 25 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4689
SELECT - 37 DIV col0 AS col1, 13 FROM tab0
----
-2
13
0
13
0
13

skipif mysql # not compatible
query II rowsort label-4689
SELECT - 37 / col0 AS col1, 13 FROM tab0
----
-2
13
0
13
0
13

onlyif mysql # DIV for integer division: 
query II rowsort label-4690
SELECT + col1 DIV col2, + col2 AS col0 FROM tab2
----
1
40
1
58
2
23

skipif mysql # not compatible
query II rowsort label-4690
SELECT + col1 / col2, + col2 AS col0 FROM tab2
----
1
40
1
58
2
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4691
SELECT - CAST( - + COUNT( * ) AS SIGNED ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4691
SELECT - CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - 55 * + - ( col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT DISTINCT - MIN( DISTINCT - - col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-4693
SELECT DISTINCT - MIN ( DISTINCT - - col1 ) FROM tab1
----
-5

query I rowsort
SELECT DISTINCT 40 AS col1 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT ALL + MIN( ALL + 81 ) FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL + MIN ( ALL + 81 ) FROM tab1 AS cor0
----
81

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 95 NOT BETWEEN ( - + col1 * - col2 * col2 + - col0 ) AND ( 23 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4697
SELECT ALL + col0 + - col2 DIV + 1 FROM tab0 AS cor0 WHERE NOT 58 DIV + 94 IS NULL
----
-2
-32
77

skipif mysql # not compatible
query I rowsort label-4697
SELECT ALL + col0 + - col2 / + 1 FROM tab0 AS cor0 WHERE NOT 58 / + 94 IS NULL
----
-2
-32
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col0 * + + 42 )
----

query I rowsort
SELECT DISTINCT ( col0 ) * - col1 FROM tab0 AS cor0 WHERE NOT - col1 = - - col2 + - + col2
----
-1215
-1827
-97

query I rowsort
SELECT ALL + ( - + 57 ) AS col2 FROM tab1
----
-57
-57
-57

query I rowsort
SELECT ALL + - col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4702
SELECT ALL - 77 * + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-693

skipif mysql # not compatible
query I rowsort label-4702
SELECT ALL - 77 * + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-693

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT + 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-4703
SELECT + COUNT ( * ) col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

query I rowsort
SELECT ALL - 36 + + - col2 + - - 55 * + 64 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3388
3416
3425

onlyif mysql # DIV for integer division: 
query I rowsort label-4705
SELECT - 32 DIV col2 FROM tab2 AS cor0 WHERE NOT col0 > ( 8 * col2 )
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4705
SELECT - 32 / col2 FROM tab2 AS cor0 WHERE NOT col0 > ( 8 * col2 )
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 72 * col0 * - col2 * + col2 col2 FROM tab0 AS cor0
----
-2385720
-626400
-68450184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 + - + col1 col0 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 * 98 col0 FROM tab0 AS cor0 WHERE NOT 41 NOT BETWEEN - 55 + col2 AND + 32
----

query I rowsort
SELECT ALL + col1 * + col2 + + + col0 + - col0 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT ALL + col2 + 40 - 80 AS col1 FROM tab1 AS cor0
----
19
28
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT 77 + COUNT( * ) col1 FROM tab1 cor0
----
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4711
SELECT 77 + COUNT ( * ) col1 FROM tab1 cor0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4712
SELECT ALL + 49 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4712
SELECT ALL + 49 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 + + - 24 FROM tab0 AS cor0
----
-14
23
75

query I rowsort
SELECT - col0 + - 74 FROM tab0 AS cor0
----
-161
-171
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT ALL - SUM( DISTINCT - 91 ) AS col0 FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-4715
SELECT ALL - SUM ( DISTINCT - 91 ) AS col0 FROM tab2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT DISTINCT - + ( COUNT( * ) ) FROM tab2 WHERE - - col1 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4716
SELECT DISTINCT - + ( COUNT ( * ) ) FROM tab2 WHERE - - col1 >= NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4717
SELECT + 75 + - col0 DIV col1 FROM tab0
----
-22
71
75

skipif mysql # not compatible
query I rowsort label-4717
SELECT + 75 + - col0 / col1 FROM tab0
----
-22
71
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT ALL + SUM( ALL - col1 ) + 91 AS col0 FROM tab2
----
-104

skipif mysql # not compatible
query I rowsort label-4718
SELECT ALL + SUM ( ALL - col1 ) + 91 AS col0 FROM tab2
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT ALL + 10 * SUM( DISTINCT - + 1 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-4719
SELECT ALL + 10 * SUM ( DISTINCT - + 1 ) FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT ALL MAX( DISTINCT - - col0 ) col2 FROM tab0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4720
SELECT ALL MAX ( DISTINCT - - col0 ) col2 FROM tab0
----
97

query III rowsort
SELECT * FROM tab1 WHERE ( 50 * - col2 ) > - col0 + + 96
----

query I rowsort
SELECT + 49 * - + 94 FROM tab0
----
-4606
-4606
-4606

query I rowsort
SELECT DISTINCT 72 AS col2 FROM tab1 AS cor0 WHERE NOT 23 NOT BETWEEN col2 AND + col2 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT ALL + COUNT( * ) AS col0 FROM tab2 cor0 WHERE ( 1 ) * - col0 < col1
----
3

skipif mysql # not compatible
query I rowsort label-4724
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 cor0 WHERE ( 1 ) * - col0 < col1
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 NOT IN ( - + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 + 81 AS col1 FROM tab1 AS cor0
----
140
149
177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4727
SELECT CAST( 5 AS SIGNED ) + + ( + col2 ) + 62 AS col0 FROM tab1
----
126
135
163

skipif mysql # not compatible
query I rowsort label-4727
SELECT CAST ( 5 AS INTEGER ) + + ( + col2 ) + 62 AS col0 FROM tab1
----
126
135
163

query III rowsort
SELECT * FROM tab2 WHERE - col0 NOT IN ( - - col2 + - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col0 ) BETWEEN col2 AND + col2 * col0 + + - 36
----
15
81
47
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - col2 * col1 col2 FROM tab0 AS cor0
----
-200
-3760
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = col0 / - col2 + + + col2 + - 82
----

query I rowsort
SELECT ALL + + col0 * - 16 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1024
-1200
-736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 col1 FROM tab1 AS cor0
----
-74
-74
-74

query I rowsort
SELECT ALL - ( + - col0 ) AS col1 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT + + col2 AS col0 FROM tab2 WHERE NOT - 37 IS NULL
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col0 IN ( + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 20 col2 FROM tab0 WHERE NOT col1 IS NULL
----
20
20
20

query II rowsort
SELECT DISTINCT - 5 AS col0, 13 AS col1 FROM tab1
----
-5
13

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + - 57 ) * - 3 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 58 * col2 FROM tab2
----
1334
2320
3364

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4741
SELECT ALL - - COUNT( * ) AS col1, + MAX( col0 ) AS col1 FROM tab0 cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4741
SELECT ALL - - COUNT ( * ) AS col1, + MAX ( col0 ) AS col1 FROM tab0 cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----
0
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab0 cor0 WHERE NOT NULL >= 3
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 98 + - + col1 < ( + col0 )
----
46
51
23

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col0 >= - 12
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( + - ( + + col1 ) ) FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4746
SELECT CAST( NULL AS DECIMAL ) * - 32 * - col0 AS col2 FROM tab0 WHERE NOT - col0 <= ( + col0 * + + 38 * 74 + - col1 )
----

skipif mysql # not compatible
query I rowsort label-4746
SELECT CAST ( NULL AS REAL ) * - 32 * - col0 AS col2 FROM tab0 WHERE NOT - col0 <= ( + col0 * + + 38 * 74 + - col1 )
----

query I rowsort
SELECT - + 16 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

query I rowsort
SELECT DISTINCT 9 * + col0 + - col2 AS col0 FROM tab1 AS cor0
----
363
706
751

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col0, 72 * + 34 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4750
SELECT ALL - + col1 * + CAST( NULL AS DECIMAL ) / - col2 + + - 51 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4750
SELECT ALL - + col1 * + CAST ( NULL AS REAL ) / - col2 + + - 51 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT - ( COUNT( DISTINCT col1 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4751
SELECT - ( COUNT ( DISTINCT col1 ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4752
SELECT - - 5 / + 15 / col1 * CAST( NULL AS SIGNED ) * - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4752
SELECT - - 5 / + 15 / col1 * CAST ( NULL AS INTEGER ) * - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4753
SELECT - CAST( + - 83 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
83
83
83

skipif mysql # not compatible
query I rowsort label-4753
SELECT - CAST ( + - 83 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
83
83
83

query I rowsort
SELECT ALL + 50 + - col2 AS col0 FROM tab0 AS cor0
----
-49
3
40

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + + col2, col2 )
----

query I rowsort
SELECT ALL - - col0 * - - col1 * - col1 FROM tab0 AS cor0
----
-38367
-97
-98415

onlyif mysql # aggregate syntax: 
query I rowsort label-4757
SELECT MIN( col1 ) col2 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-4757
SELECT MIN ( col1 ) col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NULL >= 49 / + col2
----

query I rowsort
SELECT DISTINCT col2 * - 95 + - + col2 + col0 FROM tab0
----
-4497
-873
-9407

query I rowsort
SELECT 26 FROM tab2 WHERE - 8 <> - col2
----
26
26
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4761
SELECT + 60 + - CAST( - - 9 AS SIGNED ) FROM tab0
----
51
51
51

skipif mysql # not compatible
query I rowsort label-4761
SELECT + 60 + - CAST ( - - 9 AS INTEGER ) FROM tab0
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT DISTINCT MIN( + 42 ) FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-4762
SELECT DISTINCT MIN ( + 42 ) FROM tab1
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - - ( - col0 ) + col1 col2 FROM tab0
----
1
21
81

query I rowsort
SELECT ALL + ( col1 ) * + col1 + - col2 FROM tab2
----
2578
4431
5889

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT + + 60 + COUNT( * ) + - 87 FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-4765
SELECT + + 60 + COUNT ( * ) + - 87 FROM tab2 AS cor0
----
-24

query I rowsort
SELECT 89 + col2 AS col2 FROM tab0 cor0
----
136
188
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4767
SELECT ALL - + 71, 63 FROM tab0 AS cor0 WHERE NOT - col2 + + 79 = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-4767
SELECT ALL - + 71, 63 FROM tab0 AS cor0 WHERE NOT - col2 + + 79 = - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT - col1 - col1, ( + col2 ) FROM tab1
----
-10
59
-28
96
-94
68

query I rowsort
SELECT ALL 12 - + - 46 FROM tab2
----
58
58
58

query I rowsort
SELECT + + col0 * + 20 FROM tab2 cor0
----
1280
1500
920

onlyif mysql # DIV for integer division: 
query II rowsort label-4771
SELECT DISTINCT + col1 * - - 10 AS col0, col0 DIV - - 85 col2 FROM tab0 cor0
----
10
1
210
1
810
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4771
SELECT DISTINCT + col1 * - - 10 AS col0, col0 / - - 85 col2 FROM tab0 cor0
----
10
1
210
1
810
0

query I rowsort
SELECT ALL - 96 * - + 28 AS col1 FROM tab1 AS cor0
----
2688
2688
2688

onlyif mysql # DIV for integer division: 
query I rowsort label-4773
SELECT ALL col1 DIV + + 46 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4773
SELECT ALL col1 / + + 46 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT ALL + MAX( DISTINCT - ( + 57 ) ) FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-4774
SELECT ALL + MAX ( DISTINCT - ( + 57 ) ) FROM tab1 AS cor0
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4775
SELECT ALL - + 77 FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * + ( + col1 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4775
SELECT ALL - + 77 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * + ( + col1 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 67 * 28 col0 FROM tab1
----
159460
170716
95676

onlyif mysql # DIV for integer division: 
query I rowsort label-4777
SELECT ALL 43 DIV + + 28 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4777
SELECT ALL 43 / + + 28 FROM tab0
----
1
1
1

query I rowsort
SELECT + 41 * - 74 FROM tab0, tab1 AS cor0
----
9 values hashing to f8115a5a75325a97843459a7dcd58eeb

query I rowsort
SELECT DISTINCT 73 + col0 + 41 FROM tab0 WHERE ( NOT NULL NOT BETWEEN NULL AND NULL )
----

query I rowsort
SELECT DISTINCT + col2 / - - col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4781
SELECT ALL + COUNT( * ) DIV - COUNT( * ) + 0 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4781
SELECT ALL + COUNT ( * ) / - COUNT ( * ) + 0 FROM tab2 cor0
----
-1

query I rowsort
SELECT DISTINCT - 74 * col2 FROM tab2 AS cor0
----
-1702
-2960
-4292

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4784
SELECT + MAX( 76 ) col0 FROM tab0
----
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4784
SELECT + MAX ( 76 ) col0 FROM tab0
----
76

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + ( - col1 ) NOT BETWEEN NULL AND - col0
----
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4786
SELECT + - 98 + - - COUNT( * ) FROM tab2 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-4786
SELECT + - 98 + - - COUNT ( * ) FROM tab2 AS cor0
----
-95

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 * + col0 NOT IN ( + - ( col1 ) + col2 * 17 + - col1, - col0 / - + col2 + 90 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 * 57 * 39 AS col2 FROM tab1 AS cor0
----
-104481
-11115
-31122

query I rowsort
SELECT col1 + 1 FROM tab1 cor0
----
15
48
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4790
SELECT + col0 + - + col1 + - + col2 * 38 DIV col2 * + col2 FROM tab0 AS cor0
----
-1852
-314
-3666

skipif mysql # not compatible
query I rowsort label-4790
SELECT + col0 + - + col1 + - + col2 * 38 / col2 * + col2 FROM tab0 AS cor0
----
-1852
-314
-3666

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4791
SELECT DISTINCT * FROM tab2 WHERE + - col1 NOT IN ( - CAST( - col2 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4791
SELECT DISTINCT * FROM tab2 WHERE + - col1 NOT IN ( - CAST ( - col2 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4792
SELECT ALL - CAST( NULL AS SIGNED ) * - col1 * col1 + 70 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4792
SELECT ALL - CAST ( NULL AS INTEGER ) * - col1 * col1 + 70 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT DISTINCT + 64 + - + ( - SUM( + col1 ) ) AS col2 FROM tab0
----
167

skipif mysql # not compatible
query I rowsort label-4793
SELECT DISTINCT + 64 + - + ( - SUM ( + col1 ) ) AS col2 FROM tab0
----
167

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 <= 46 * - + 70 * - col0 - + col0 / + 27 * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 14 - - col2 FROM tab2
----
37
54
72

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( col2, col2 )
----

query I rowsort
SELECT - ( + + 53 ) * + col0 - - col2 * 77 AS col2 FROM tab1 AS cor0
----
38
413
4689

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4798
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( + col0, ( + col1 ), - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4800
SELECT + col1 FROM tab1 AS cor0 WHERE NOT - ( - - 21 ) * + 8 + - - CAST( NULL AS SIGNED ) NOT IN ( - col2 * + 0, - col2 + ( - + col0 ) + + col0 )
----

skipif mysql # not compatible
query I rowsort label-4800
SELECT + col1 FROM tab1 AS cor0 WHERE NOT - ( - - 21 ) * + 8 + - - CAST ( NULL AS INTEGER ) NOT IN ( - col2 * + 0, - col2 + ( - + col0 ) + + col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 70 + col2 * 11 * 10 + + + col0 - - col2 ) IS NOT NULL
----

query I rowsort
SELECT - + 70 * 61 FROM tab0 AS cor0
----
-4270
-4270
-4270

query I rowsort
SELECT - 67 * - 12 AS col0 FROM tab0 AS cor0
----
804
804
804

query I rowsort
SELECT ALL - 9 FROM tab0 WHERE NOT - ( + col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL col0 * - - 19 AS col2 FROM tab2
----
1216
1425
874

query II rowsort
SELECT ALL - col0, - 18 AS col0 FROM tab2 AS cor0
----
-46
-18
-64
-18
-75
-18

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 + + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT ALL - - COUNT( DISTINCT - - 0 ) AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4808
SELECT ALL - - COUNT ( DISTINCT - - 0 ) AS col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT DISTINCT + MIN( col0 ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-4810
SELECT DISTINCT + MIN ( col0 ) AS col1 FROM tab0 AS cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4811
SELECT - + CAST( - AVG ( ALL - + col0 ) AS SIGNED ) AS col2 FROM tab0 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4811
SELECT - + CAST ( - AVG ( ALL - + col0 ) AS INTEGER ) AS col2 FROM tab0 cor0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4812
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( - col2 AS SIGNED ) + + ( - + col2 ) * - 99 > NULL
----

skipif mysql # not compatible
query III rowsort label-4812
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( - col2 AS INTEGER ) + + ( - + col2 ) * - 99 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT ALL + COUNT( + - 34 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4813
SELECT ALL + COUNT ( + - 34 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT ( 66 ) * 84 AS col2 FROM tab1 AS cor0 WHERE col0 = col0
----
5544

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4815
SELECT DISTINCT col1 + - col2 AS col2, - CAST( 91 AS SIGNED ) col1 FROM tab1 AS cor0
----
-21
-91
-54
-91
-82
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4815
SELECT DISTINCT col1 + - col2 AS col2, - CAST ( 91 AS INTEGER ) col1 FROM tab1 AS cor0
----
-21
-91
-54
-91
-82
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4816
SELECT ( - CAST( - COUNT( * ) AS SIGNED ) ) AS col1 FROM tab0 WHERE - 42 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4816
SELECT ( - CAST ( - COUNT ( * ) AS INTEGER ) ) AS col1 FROM tab0 WHERE - 42 IS NOT NULL
----
3

query I rowsort
SELECT col2 + - - col0 AS col0 FROM tab0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT DISTINCT + MAX( DISTINCT + 90 ) + + COUNT( * ) AS col0 FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-4818
SELECT DISTINCT + MAX ( DISTINCT + 90 ) + + COUNT ( * ) AS col0 FROM tab2
----
93

query I rowsort
SELECT col1 + 48 AS col0 FROM tab0
----
129
49
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT + ( + 69 ) + COUNT( * ) AS col2 FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-4820
SELECT + ( + 69 ) + COUNT ( * ) AS col2 FROM tab2
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4821
SELECT ALL - CAST( - col0 AS SIGNED ) * + 74 AS col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4821
SELECT ALL - CAST ( - col0 AS INTEGER ) * + 74 AS col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * 81 + - - col1 FROM tab1
----
-4774
-5461
-7762

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT - + 78 * - MAX( ALL + - col0 ) AS col0 FROM tab2 WHERE + 17 IS NOT NULL
----
-3588

skipif mysql # not compatible
query I rowsort label-4823
SELECT - + 78 * - MAX ( ALL + - col0 ) AS col0 FROM tab2 WHERE + 17 IS NOT NULL
----
-3588

query I rowsort
SELECT ALL col2 - - 26 FROM tab0
----
125
36
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + 42 - col0 col2 FROM tab2 AS cor0
----
1886
2624
3075

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT - + COUNT( * ) FROM tab0 AS cor0 WHERE - 45 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4826
SELECT - + COUNT ( * ) FROM tab0 AS cor0 WHERE - 45 NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT DISTINCT + 92 + + COUNT( * ) AS col2 FROM tab2 cor0
----
95

skipif mysql # not compatible
query I rowsort label-4827
SELECT DISTINCT + 92 + + COUNT ( * ) AS col2 FROM tab2 cor0
----
95

query I rowsort
SELECT ALL col1 * col2 * + 70 * + col0 FROM tab1 AS cor0
----
1755250
20358520
4798080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 63 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT ALL 3 - - col1 - - col1 * + col0 FROM tab0 AS cor0 WHERE col1 <= + col0 - 16
----
101
1851

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 > + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4832
SELECT - col1 DIV 82 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4832
SELECT - col1 / 82 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4833
SELECT - col0 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL OR ( NULL ) BETWEEN NULL AND CAST( + - col0 AS SIGNED ) / - CAST( - col1 AS DECIMAL )
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-4833
SELECT - col0 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL OR ( NULL ) BETWEEN NULL AND CAST ( + - col0 AS INTEGER ) / - CAST ( - col1 AS REAL )
----
-15
-87
-97

query I rowsort
SELECT ALL col1 * + - col2 AS col1 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # DIV for integer division: 
query I rowsort label-4835
SELECT ALL - 21 DIV - - col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4835
SELECT ALL - 21 / - - col2 AS col0 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4836
SELECT 43 DIV col1 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4836
SELECT 43 / col1 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT + + col2 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT ALL + + MAX( DISTINCT - - col1 ) * ( COUNT( * ) ) FROM tab0 cor0
----
243

skipif mysql # not compatible
query I rowsort label-4838
SELECT ALL + + MAX ( DISTINCT - - col1 ) * ( COUNT ( * ) ) FROM tab0 cor0
----
243

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4839
SELECT ALL - COUNT( * ) + 27 DIV + + 89 AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4839
SELECT ALL - COUNT ( * ) + 27 / + + 89 AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - + 7 + + - col0 + - 93 AS col1 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-146
-164
-175

query I rowsort
SELECT - + col0 * + col0 / + - 38 AS col2 FROM tab0 AS cor0 WHERE NULL < + 85
----

query II rowsort
SELECT + col2 * + - 39 + + col0 + + 12 AS col0, col2 FROM tab1 AS cor0
----
-2204
59
-2549
68
-3681
96

onlyif mysql # aggregate syntax: 
query II rowsort label-4843
SELECT DISTINCT + COUNT( * ) AS col2, + 58 col1 FROM tab2 cor0
----
3
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4843
SELECT DISTINCT + COUNT ( * ) AS col2, + 58 col1 FROM tab2 cor0
----
3
58

query II rowsort
SELECT DISTINCT - + col1 AS col1, + ( + - 44 ) * col1 AS col1 FROM tab0 AS cor0
----
-1
-44
-21
-924
-81
-3564

query II rowsort
SELECT + col2 AS col2, + 64 FROM tab1 AS cor0
----
59
64
68
64
96
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT ALL - MIN( DISTINCT - + ( + 60 ) ) + - COUNT( * ) + - + ( - + 12 ) AS col2 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-4846
SELECT ALL - MIN ( DISTINCT - + ( + 60 ) ) + - COUNT ( * ) + - + ( - + 12 ) AS col2 FROM tab2 AS cor0
----
69

query I rowsort
SELECT DISTINCT + + 50 + - - col0 FROM tab2 AS cor0
----
114
125
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4848
SELECT + - MIN( ALL col0 ) DIV + + COUNT( * ) FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4848
SELECT + - MIN ( ALL col0 ) / + + COUNT ( * ) FROM tab2 AS cor0
----
-15

query I rowsort
SELECT ALL col2 + + ( - 2 ) AS col1 FROM tab1 AS cor0
----
57
66
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT COUNT( DISTINCT ( + col0 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4850
SELECT COUNT ( DISTINCT ( + col0 ) ) FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE - 57 <= col1 * 26 + - - col0 + - col0 / + - 27
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 - - 25 col2 FROM tab0 AS cor0
----
-56
24
4

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * - col2 NOT BETWEEN - + col0 * col0 + 57 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4854
SELECT - COUNT( * ) * - SUM( DISTINCT + 71 ) col0 FROM tab1 AS cor0
----
213

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4854
SELECT - COUNT ( * ) * - SUM ( DISTINCT + 71 ) col0 FROM tab1 AS cor0
----
213

onlyif mysql # aggregate syntax: 
query II rowsort label-4855
SELECT DISTINCT COUNT( * ) AS col2, SUM( 27 ) FROM tab2
----
3
81

skipif mysql # not compatible
query II rowsort label-4855
SELECT DISTINCT COUNT ( * ) AS col2, SUM ( 27 ) FROM tab2
----
3
81

query II rowsort
SELECT + + col1 AS col1, + col2 AS col1 FROM tab1 AS cor0
----
14
96
47
68
5
59

onlyif mysql # aggregate syntax: 
query II rowsort label-4857
SELECT - 77 AS col1, + COUNT( * ) col2 FROM tab1 cor0
----
-77
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4857
SELECT - 77 AS col1, + COUNT ( * ) col2 FROM tab1 cor0
----
-77
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 BETWEEN NULL AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT DISTINCT - - SUM( - - col2 ) AS col0 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-4860
SELECT DISTINCT - - SUM ( - - col2 ) AS col0 FROM tab2 AS cor0
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4861
SELECT DISTINCT + + CAST( NULL AS SIGNED ), col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-4861
SELECT DISTINCT + + CAST ( NULL AS INTEGER ), col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT ALL + 42 * - col0 AS col2 FROM tab1 AS cor0
----
-2142
-3570
-3822

query I rowsort
SELECT 61 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + col1 / col0 col2 FROM tab2 WHERE NOT + + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col1, 97 + - + 0 FROM tab1 WHERE NOT + col2 IS NULL
----
59
97
68
97
96
97

query I rowsort
SELECT DISTINCT - 81 / + col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT ALL MIN( DISTINCT - ( 71 ) ) FROM tab1
----
-71

skipif mysql # not compatible
query I rowsort label-4867
SELECT ALL MIN ( DISTINCT - ( 71 ) ) FROM tab1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT ALL - SUM( 85 ) AS col1 FROM tab0 WHERE NOT ( + - col0 * 9 ) IS NULL
----
-255

skipif mysql # not compatible
query I rowsort label-4868
SELECT ALL - SUM ( 85 ) AS col1 FROM tab0 WHERE NOT ( + - col0 * 9 ) IS NULL
----
-255

query I rowsort
SELECT ALL 63 + col2 FROM tab1 AS cor0
----
122
131
159

query I rowsort
SELECT ALL - col2 * 2 + - - col0 FROM tab1 cor0
----
-141
-33
-45

query I rowsort
SELECT DISTINCT - - 12 * - 84 * col1 FROM tab0 AS cor0
----
-1008
-21168
-81648

query I rowsort
SELECT ALL 29 * col1 * col0 + col1 AS col0 FROM tab1
----
12330
124080
20720

onlyif mysql # DIV for integer division: 
query II rowsort label-4873
SELECT + col1 * + col1 DIV + + col1 AS col0, 16 + col1 + + col1 * - ( + - ( + col1 ) ) FROM tab1
----
14
226
47
2272
5
46

skipif mysql # not compatible
query II rowsort label-4873
SELECT + col1 * + col1 / + + col1 AS col0, 16 + col1 + + col1 * - ( + - ( + col1 ) ) FROM tab1
----
14
226
47
2272
5
46

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col0 + col1 * - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 - + col1 + + col1 AS col0 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT + COUNT( - 93 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4876
SELECT + COUNT ( - 93 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT COUNT( * ) - + COUNT( * ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4877
SELECT COUNT ( * ) - + COUNT ( * ) FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT ALL - + COUNT( * ) FROM tab2 cor0 WHERE NOT ( ( NOT col0 = - col0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4878
SELECT ALL - + COUNT ( * ) FROM tab2 cor0 WHERE NOT ( ( NOT col0 = - col0 ) )
----
0

query I rowsort
SELECT DISTINCT 27 * + col2 AS col1 FROM tab2 AS cor0
----
1080
1566
621

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * - - 35 col2 FROM tab2 cor0
----
1785
2345
2695

query I rowsort
SELECT - + col1 FROM tab1 WHERE + 53 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4882
SELECT DISTINCT + SUM( ALL + ( CAST( NULL AS SIGNED ) ) ) / - COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4882
SELECT DISTINCT + SUM ( ALL + ( CAST ( NULL AS INTEGER ) ) ) / - COUNT ( * ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT DISTINCT MAX( col2 ) + - - MAX( 92 ) FROM tab2
----
150

skipif mysql # not compatible
query I rowsort label-4883
SELECT DISTINCT MAX ( col2 ) + - - MAX ( 92 ) FROM tab2
----
150

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 * + + 79 * + + 77 BETWEEN 66 * - - 10 AND + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT - 5 + + COUNT( * ) * - COUNT( * ) FROM tab1
----
-14

skipif mysql # not compatible
query I rowsort label-4885
SELECT - 5 + + COUNT ( * ) * - COUNT ( * ) FROM tab1
----
-14

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT DISTINCT + COUNT( * ) * - 84 - + + ( + + 79 ) FROM tab0
----
-331

skipif mysql # not compatible
query I rowsort label-4887
SELECT DISTINCT + COUNT ( * ) * - 84 - + + ( + + 79 ) FROM tab0
----
-331

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4888
SELECT + COUNT( * ), CAST( NULL AS SIGNED ) + - 73 AS col0 FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-4888
SELECT + COUNT ( * ), CAST ( NULL AS INTEGER ) + - 73 AS col0 FROM tab2
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4889
SELECT ALL + COUNT( * ) * MAX( DISTINCT col2 ) FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-4889
SELECT ALL + COUNT ( * ) * MAX ( DISTINCT col2 ) FROM tab2
----
174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 * + + col1 col2 FROM tab1
----
1008
3384
360

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT + - COUNT( DISTINCT 27 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4891
SELECT + - COUNT ( DISTINCT 27 ) FROM tab2 AS cor0
----
-1

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4893
SELECT CAST( - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-4893
SELECT CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT ALL + + MIN( + col2 ) * + 73 FROM tab2 cor0
----
1679

skipif mysql # not compatible
query I rowsort label-4894
SELECT ALL + + MIN ( + col2 ) * + 73 FROM tab2 cor0
----
1679

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4896
SELECT DISTINCT - ( - MAX( col0 ) ), + 8 AS col2 FROM tab2 AS cor0
----
75
8

skipif mysql # not compatible
query II rowsort label-4896
SELECT DISTINCT - ( - MAX ( col0 ) ), + 8 AS col2 FROM tab2 AS cor0
----
75
8

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( + col1 ) IS NULL
----

query II rowsort
SELECT ALL - col0, 49 AS col0 FROM tab0 AS cor0 WHERE + col1 IS NULL
----

query I rowsort
SELECT + col0 * + col1 + col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
4368
510
765

query I rowsort
SELECT ALL + col0 * + 2 * 21 FROM tab0 AS cor0
----
3654
4074
630

query I rowsort
SELECT - col0 + - - 6 * - 66 AS col2 FROM tab2
----
-442
-460
-471

onlyif mysql # DIV for integer division: 
query I rowsort label-4902
SELECT ALL col2 + + 67 + - + col0 DIV col0 col2 FROM tab1
----
125
134
162

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4902
SELECT ALL col2 + + 67 + - + col0 / col0 col2 FROM tab1
----
125
134
162

query I rowsort
SELECT DISTINCT - ( - + ( col0 ) ) + - col0 * - 71 * col2 AS col2 FROM tab1
----
347667
356150
439439

query I rowsort
SELECT - col1 + - + 89 AS col2 FROM tab1
----
-103
-136
-94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4905
SELECT + MIN( + - col1 ) AS col0 FROM tab1 WHERE col2 * - + col1 <= + - CAST( 1 AS DECIMAL )
----
-47

skipif mysql # not compatible
query I rowsort label-4905
SELECT + MIN ( + - col1 ) AS col0 FROM tab1 WHERE col2 * - + col1 <= + - CAST ( 1 AS REAL )
----
-47

query I rowsort
SELECT DISTINCT - 4 FROM tab0 AS cor0 WHERE col1 * - 50 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT ALL - MAX( DISTINCT col0 ) + + 41 FROM tab2 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-4907
SELECT ALL - MAX ( DISTINCT col0 ) + + 41 FROM tab2 AS cor0
----
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 94 * + col2 col1 FROM tab2 AS cor0
----
2162
3760
5452

query I rowsort
SELECT + ( + 30 ) AS col1 FROM tab1 AS cor0
----
30
30
30

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col2 + + col2 + - + 90 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 * + + col2 AS col1 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT + - 20 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT ALL + COUNT( * ) FROM tab2 WHERE NOT + 17 NOT BETWEEN + - col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4913
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NOT + 17 NOT BETWEEN + - col1 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT DISTINCT - 89 * - 83 * - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-22161

skipif mysql # not compatible
query I rowsort label-4914
SELECT DISTINCT - 89 * - 83 * - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-22161

query II rowsort
SELECT ALL 96 * col1 * col2 + - - col1 + + col1 * - + col2 * - col1, col1 FROM tab0 AS cor0
----
24591
21
673920
81
9604
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4916
SELECT DISTINCT MAX( ALL - col2 ) + - 95 AS col0 FROM tab2 AS cor0
----
-118

skipif mysql # not compatible
query I rowsort label-4916
SELECT DISTINCT MAX ( ALL - col2 ) + - 95 AS col0 FROM tab2 AS cor0
----
-118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col2 + 38 col0, col2 col2 FROM tab1 AS cor0
----
-21
59
-30
68
-58
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4918
SELECT - + col1 DIV col1 - + 4 FROM tab0 AS cor0
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-4918
SELECT - + col1 / col1 - + 4 FROM tab0 AS cor0
----
-5
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col2 * - col0 = + - col2
----
-3

skipif mysql # not compatible
query I rowsort label-4919
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col2 * - col0 = + - col2
----
-3

query I rowsort
SELECT ALL + col1 * - col1 * - col1 AS col0 FROM tab2
----
132651
300763
456533

query I rowsort
SELECT DISTINCT + + 45 FROM tab1 WHERE + - col0 <= 85
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4922
SELECT col1 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + + col2 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4922
SELECT col1 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + + col2 + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4923
SELECT ALL - ( + - 29 ) * + COUNT( * ) AS col0, + 95 FROM tab0
----
87
95

skipif mysql # not compatible
query II rowsort label-4923
SELECT ALL - ( + - 29 ) * + COUNT ( * ) AS col0, + 95 FROM tab0
----
87
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT DISTINCT SUM( DISTINCT + - 96 ) FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-4924
SELECT DISTINCT SUM ( DISTINCT + - 96 ) FROM tab0
----
-96

query I rowsort
SELECT + 71 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query II rowsort
SELECT + col2 AS col2, + 34 + - - 40 AS col0 FROM tab1
----
59
74
68
74
96
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 + - ( col0 ) + 58 + + 39 * 53 col0 FROM tab2 cor0 WHERE NOT col2 IS NULL
----
2073
2084
2102

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4928
SELECT ALL - col1 DIV + CAST( + col1 AS SIGNED ) - - col2 col1 FROM tab0 AS cor0
----
46
9
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4928
SELECT ALL - col1 / + CAST ( + col1 AS INTEGER ) - - col2 col1 FROM tab0 AS cor0
----
46
9
98

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < 67
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4930
SELECT + COUNT( * ) AS col1, - 47 FROM tab2 AS cor0
----
3
-47

skipif mysql # not compatible
query II rowsort label-4930
SELECT + COUNT ( * ) AS col1, - 47 FROM tab2 AS cor0
----
3
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT DISTINCT - - MIN( - 40 ) FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-4931
SELECT DISTINCT - - MIN ( - 40 ) FROM tab2 AS cor0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4932
SELECT DISTINCT - COUNT( * ) + + - 68 * 85 FROM tab1 AS cor0
----
-5783

skipif mysql # not compatible
query I rowsort label-4932
SELECT DISTINCT - COUNT ( * ) + + - 68 * 85 FROM tab1 AS cor0
----
-5783

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT - - MAX( DISTINCT + + 88 ) AS col2 FROM tab0 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-4933
SELECT - - MAX ( DISTINCT + + 88 ) AS col2 FROM tab0 AS cor0
----
88

query II rowsort
SELECT - 27 AS col0, - col1 AS col0 FROM tab1 AS cor0
----
-27
-14
-27
-47
-27
-5

query I rowsort
SELECT ALL col0 + + + 81 FROM tab0
----
168
178
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4936
SELECT ALL + 51 * + COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL NOT IN ( - col0, + 89 + - + ( + col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4936
SELECT ALL + 51 * + COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL NOT IN ( - col0, + 89 + - + ( + col2 ) )
----
0

query I rowsort
SELECT DISTINCT - col2 * + ( 34 ) + + 12 FROM tab1
----
-1994
-2300
-3252

query I rowsort
SELECT + col2 + + 53 * col1 + - 55 FROM tab2
----
2671
3554
4066

query I rowsort
SELECT - col2 + - 41 FROM tab1
----
-100
-109
-137

query I rowsort
SELECT - col1 * - col2 / - + col0 * + - 31 AS col0 FROM tab2 WHERE - 90 IS NULL
----

query I rowsort
SELECT col1 + + + 44 AS col0 FROM tab0 AS cor0
----
125
45
65

query I rowsort
SELECT ( + 96 ) + + 70 AS col0 FROM tab2 AS cor0
----
166
166
166

query I rowsort
SELECT ALL - 66 * col0 FROM tab2 AS cor0
----
-3036
-4224
-4950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4944
SELECT DISTINCT + - CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4944
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4945
SELECT ALL + col1 + - - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT - 16 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4945
SELECT ALL + col1 + - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT - 16 IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN ( - - col0 ) AND col1
----

query I rowsort
SELECT DISTINCT 80 - - - col1 AS col0 FROM tab0
----
-1
59
79

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4948
SELECT MAX( + CAST( - 9 AS DECIMAL ) ) col0 FROM tab0 AS cor0 WHERE - col0 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4948
SELECT MAX ( + CAST ( - 9 AS REAL ) ) col0 FROM tab0 AS cor0 WHERE - col0 IS NULL
----
NULL

query I rowsort
SELECT - + col1 - 54 AS col1 FROM tab0 AS cor0
----
-135
-55
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-4950
SELECT COUNT( * ) * - MAX( ALL - col2 ) + + 10 AS col2, 63 AS col2 FROM tab1 AS cor0
----
187
63

skipif mysql # not compatible
query II rowsort label-4950
SELECT COUNT ( * ) * - MAX ( ALL - col2 ) + + 10 AS col2, 63 AS col2 FROM tab1 AS cor0
----
187
63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4951
SELECT ALL - + CAST( NULL AS SIGNED ) * + 33 * - + 12 AS col2, 66 AS col1 FROM tab0 cor0
----
NULL
66
NULL
66
NULL
66

skipif mysql # not compatible
query II rowsort label-4951
SELECT ALL - + CAST ( NULL AS INTEGER ) * + 33 * - + 12 AS col2, 66 AS col1 FROM tab0 cor0
----
NULL
66
NULL
66
NULL
66

onlyif mysql # DIV for integer division: 
query I rowsort label-4952
SELECT - 99 DIV - col2 FROM tab0
----
1
2
9

skipif mysql # not compatible
query I rowsort label-4952
SELECT - 99 / - col2 FROM tab0
----
1
2
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT DISTINCT + COUNT( - col1 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4953
SELECT DISTINCT + COUNT ( - col1 ) col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT COUNT( 30 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4954
SELECT COUNT ( 30 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT + COUNT( ALL + - col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4955
SELECT + COUNT ( ALL + - col0 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT DISTINCT ( + ( - + COUNT( * ) ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4956
SELECT DISTINCT ( + ( - + COUNT ( * ) ) ) FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4957
SELECT ALL 12 DIV + + col2 * + col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4957
SELECT ALL 12 / + + col2 * + col2 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4958
SELECT ALL col0 DIV - + col1 col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4958
SELECT ALL col0 / - + col1 col0 FROM tab2
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4959
SELECT ALL - CAST( - + 60 AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

skipif mysql # not compatible
query I rowsort label-4959
SELECT ALL - CAST ( - + 60 AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT DISTINCT MIN( col0 ) col1 FROM tab1
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4960
SELECT DISTINCT MIN ( col0 ) col1 FROM tab1
----
51

query I rowsort
SELECT ALL - col2 * + + col1 FROM tab1
----
-1344
-295
-3196

query III rowsort
SELECT * FROM tab0 WHERE NOT + 5 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT ALL + SUM( DISTINCT + 6 ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4963
SELECT ALL + SUM ( DISTINCT + 6 ) FROM tab2 AS cor0
----
6

query I rowsort
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE NOT - 17 IS NULL
----
46
64
75

query II rowsort
SELECT col1 * - - col1 + + - 72, - 7 AS col0 FROM tab0 AS cor0
----
-71
-7
369
-7
6489
-7

query I rowsort
SELECT ALL + 70 + - + col2 AS col0 FROM tab2 AS cor0
----
12
30
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT - - COUNT( * ) + - 74 FROM tab1 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-4967
SELECT - - COUNT ( * ) + - 74 FROM tab1 AS cor0
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-4968
SELECT ALL + - 35 + - ( + 99 ) AS col0, COUNT( * ) + + 28 FROM tab1 cor0
----
-134
31

skipif mysql # not compatible
query II rowsort label-4968
SELECT ALL + - 35 + - ( + 99 ) AS col0, COUNT ( * ) + + 28 FROM tab1 cor0
----
-134
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT + ( - 72 ) + + COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-4969
SELECT + ( - 72 ) + + COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT ALL 50 + SUM( DISTINCT + col0 ) FROM tab1 AS cor0
----
277

skipif mysql # not compatible
query I rowsort label-4970
SELECT ALL 50 + SUM ( DISTINCT + col0 ) FROM tab1 AS cor0
----
277

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT - COUNT( * ) + + - ( COUNT( * ) ) AS col0 FROM tab2 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4971
SELECT - COUNT ( * ) + + - ( COUNT ( * ) ) AS col0 FROM tab2 cor0
----
-6

query I rowsort
SELECT - 4 * 19 AS col1 FROM tab1
----
-76
-76
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT 25 + COUNT( * ) FROM tab2, tab1 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-4973
SELECT 25 + COUNT ( * ) FROM tab2, tab1 AS cor0
----
34

query I rowsort
SELECT DISTINCT + col2 + 2 FROM tab2
----
25
42
60

query I rowsort
SELECT DISTINCT + ( + ( + + 40 ) ) FROM tab1
----
40

query I rowsort
SELECT ALL - ( col1 ) + 76 AS col2 FROM tab2
----
-1
25
9

query I rowsort
SELECT ALL - 12 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4978
SELECT ALL + - CAST( NULL AS SIGNED ), col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-4978
SELECT ALL + - CAST ( NULL AS INTEGER ), col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT 78 - - MIN( ALL col0 ) FROM tab2 AS cor0
----
124

skipif mysql # not compatible
query I rowsort label-4979
SELECT 78 - - MIN ( ALL col0 ) FROM tab2 AS cor0
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT - - COUNT( ALL col0 ) + - SUM( - col0 ) FROM tab2 AS cor0
----
188

skipif mysql # not compatible
query I rowsort label-4980
SELECT - - COUNT ( ALL col0 ) + - SUM ( - col0 ) FROM tab2 AS cor0
----
188

query I rowsort
SELECT DISTINCT - 18 * + - col0 - - + 82 FROM tab2
----
1234
1432
910

query I rowsort
SELECT ALL - 23 AS col2 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT + COUNT( ALL - 38 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4983
SELECT + COUNT ( ALL - 38 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL 82 / + - col1 + - col0 + col0 AS col1 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col0 * - 96 FROM tab0 AS cor0
----
1440
8352
9312

query I rowsort
SELECT ALL ( 26 ) AS col0 FROM tab2 AS cor0
----
26
26
26

query I rowsort
SELECT - 38 - + col1 FROM tab0 AS cor0 WHERE NOT ( 94 ) <= col2
----
-119
-59

query I rowsort
SELECT DISTINCT col2 * - 75 * + + col2 AS col2 FROM tab2
----
-120000
-252300
-39675

query I rowsort
SELECT ( col0 ) * - + col2 AS col2 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT ALL COUNT( * ) * - 27 FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-4990
SELECT ALL COUNT ( * ) * - 27 FROM tab2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT DISTINCT - MAX( DISTINCT - - col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-4991
SELECT DISTINCT - MAX ( DISTINCT - - col1 ) FROM tab0
----
-81

query II rowsort
SELECT DISTINCT col2, + 30 AS col1 FROM tab0
----
10
30
47
30
99
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT DISTINCT + SUM( ALL col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-4993
SELECT DISTINCT + SUM ( ALL col1 ) FROM tab0
----
103

query I rowsort
SELECT ALL + col0 + - col0 FROM tab1 AS cor0 WHERE - col2 + + col1 IS NOT NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT MIN( - - col0 ) FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-4995
SELECT MIN ( - - col0 ) FROM tab0 cor0
----
15

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col2 + col0 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 45 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4999
SELECT COUNT( * ) DIV - - SUM( + ( - col2 ) ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4999
SELECT COUNT ( * ) / - - SUM ( + ( - col2 ) ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + col1 * + col0 * - col0 + - 39 + + col2 FROM tab2 AS cor0 WHERE NULL > col2
----

query I rowsort
SELECT 90 * + ( col2 ) FROM tab2 AS cor0
----
2070
3600
5220

query I rowsort
SELECT DISTINCT + col0 * + col1 - + ( + ( - ( - - ( col2 ) ) ) ) + - col1 FROM tab1 AS cor0
----
4298
479
796

query I rowsort
SELECT DISTINCT col2 * - 98 + + col2 FROM tab2
----
-2231
-3880
-5626

query I rowsort
SELECT - col2 + 73 AS col2 FROM tab0 WHERE NULL IS NULL
----
-26
26
63

query I rowsort
SELECT ALL - 22 + + col1 * - 71 AS col0 FROM tab1
----
-1016
-3359
-377

query I rowsort
SELECT col0 + - + 53 AS col0 FROM tab2
----
-7
11
22

query III rowsort
SELECT * FROM tab2 WHERE - - col1 + + - 2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT DISTINCT - + MAX( DISTINCT 78 ) + + - 43 - - 36 FROM tab0 cor0
----
-85

skipif mysql # not compatible
query I rowsort label-5008
SELECT DISTINCT - + MAX ( DISTINCT 78 ) + + - 43 - - 36 FROM tab0 cor0
----
-85

query I rowsort
SELECT + 12 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL >= col1 * - - col0
----

query II rowsort
SELECT + + 71 AS col0, - col1 * col2 + + 59 FROM tab0 AS cor0
----
71
-151
71
-3748
71
-40

query I rowsort
SELECT DISTINCT + - 16 AS col1 FROM tab1 cor0
----
-16

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT + col2 * - + col0 <> NULL
----

query I rowsort
SELECT + 6 * col2 + - col2 - + + col2 * - col0 + 17 + - - 86 FROM tab0 AS cor0
----
10201
1023
1043

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL >= col2 + - + 19
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT ALL + MIN( DISTINCT + 41 ) FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-5016
SELECT ALL + MIN ( DISTINCT + 41 ) FROM tab0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5017
SELECT - MIN( ALL - 78 ) FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-5017
SELECT - MIN ( ALL - 78 ) FROM tab0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT ALL ( + - SUM( ALL - col2 ) ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-5018
SELECT ALL ( + - SUM ( ALL - col2 ) ) FROM tab2
----
121

query I rowsort
SELECT ( 25 ) * + - ( 70 ) FROM tab0 AS cor0 WHERE NOT - col0 + - 64 BETWEEN + 38 AND + 40
----
-1750
-1750
-1750

query II rowsort
SELECT col2, 8 * - col2 * 2 AS col1 FROM tab1
----
59
-944
68
-1088
96
-1536

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 WHERE NOT - ( + - col1 ) + + - 80 > - 62 * col0 * + + 65
----

query I rowsort
SELECT + - col0 - + 92 + - + 98 AS col1 FROM tab1 WHERE col2 + + 14 + + - col2 - col2 * - col0 - + - col2 * 57 * - - col2 IS NOT NULL
----
-241
-275
-281

query II rowsort
SELECT - col0 AS col2, - col2 * 60 FROM tab1
----
-51
-5760
-85
-3540
-91
-4080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5024
SELECT CAST( NULL AS SIGNED ) + - ( MIN( + col2 ) ) * - 28 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5024
SELECT CAST ( NULL AS INTEGER ) + - ( MIN ( + col2 ) ) * - 28 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 12 * - 48 * + + 41 FROM tab1 cor0
----
-23616

query I rowsort
SELECT ALL + col2 + - col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - - 69 AS col0 FROM tab2 AS cor0 WHERE + col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5028
SELECT DISTINCT + col1 * + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5028
SELECT DISTINCT + col1 * + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT + + col0 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - 80 * - col1 - - - col2 FROM tab2 AS cor0
----
4057
5302
6120

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( - col2 + 91 + - col0 * 30 * col1 - - + 5 + - 59 * + 1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT ALL + 91 + + SUM( + col0 ) * - - 11 FROM tab1 AS cor0
----
2588

skipif mysql # not compatible
query I rowsort label-5032
SELECT ALL + 91 + + SUM ( + col0 ) * - - 11 FROM tab1 AS cor0
----
2588

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5033
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + - col1 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5033
SELECT DISTINCT - CAST ( NULL AS REAL ) + - col1 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5034
SELECT ALL 87 DIV COUNT( * ) + - + 89 AS col1 FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-5034
SELECT ALL 87 / COUNT ( * ) + - + 89 AS col1 FROM tab0 AS cor0
----
-60

query I rowsort
SELECT col1 FROM tab1 WHERE - col0 - + + col1 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query II rowsort label-5036
SELECT ALL + SUM( - - 26 ) AS col1, 84 FROM tab1
----
78
84

skipif mysql # not compatible
query II rowsort label-5036
SELECT ALL + SUM ( - - 26 ) AS col1, 84 FROM tab1
----
78
84

query I rowsort
SELECT + ( - ( + col1 ) ) AS col2 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5038
SELECT - SUM( DISTINCT + + col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-5038
SELECT - SUM ( DISTINCT + + col2 ) FROM tab1
----
-223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5039
SELECT DISTINCT + 87 - ( CAST( NULL AS SIGNED ) ) + col1 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5039
SELECT DISTINCT + 87 - ( CAST ( NULL AS INTEGER ) ) + col1 AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT DISTINCT MAX( col2 ) * + 50 AS col0 FROM tab0
----
4950

skipif mysql # not compatible
query I rowsort label-5040
SELECT DISTINCT MAX ( col2 ) * + 50 AS col0 FROM tab0
----
4950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5041
SELECT col0 AS col1 FROM tab1 WHERE ( CAST( col1 AS SIGNED ) ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-5041
SELECT col0 AS col1 FROM tab1 WHERE ( CAST ( col1 AS INTEGER ) ) >= NULL
----

query I rowsort
SELECT + col1 - - 58 FROM tab0 AS cor0
----
139
59
79

query I rowsort
SELECT - 81 * + col0 + col2 FROM tab1 AS cor0
----
-4035
-6826
-7303

query I rowsort
SELECT ALL - col0 - ( - col2 ) AS col2 FROM tab1 WHERE NOT 95 * + + col2 + + - 95 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5045
SELECT ALL 92, + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
18 values hashing to c12cb98d9101a519e840a7fdabb39316

skipif mysql # not compatible
query II rowsort label-5045
SELECT ALL 92, + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
18 values hashing to c12cb98d9101a519e840a7fdabb39316

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT - COUNT( * ) * - + 33 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
297

skipif mysql # not compatible
query I rowsort label-5046
SELECT - COUNT ( * ) * - + 33 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
297

query I rowsort
SELECT ALL + - 99 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NULL ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5048
SELECT ALL + col0 FROM tab0 AS cor0 WHERE col0 * CAST( NULL AS SIGNED ) IS NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5048
SELECT ALL + col0 FROM tab0 AS cor0 WHERE col0 * CAST ( NULL AS INTEGER ) IS NULL
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-5049
SELECT DISTINCT - - 28 DIV - - ( + - col0 ) * 81 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5049
SELECT DISTINCT - - 28 / - - ( + - col0 ) * 81 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5050
SELECT - CAST( NULL AS SIGNED ) AS col1, COUNT( * ) FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-5050
SELECT - CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) FROM tab2 AS cor0
----
NULL
3

query II rowsort
SELECT ALL - 58 AS col1, col1 FROM tab2 AS cor0
----
-58
51
-58
67
-58
77

query II rowsort
SELECT DISTINCT + col0, 60 FROM tab0
----
15
60
87
60
97
60

query I rowsort
SELECT - ( + 2 ) * 20 AS col1 FROM tab0
----
-40
-40
-40

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 * + col0 IS NULL
----

query I rowsort
SELECT 37 * - + col0 AS col1 FROM tab0
----
-3219
-3589
-555

query II rowsort
SELECT col2 AS col2, col1 AS col1 FROM tab0
----
10
21
47
81
99
1

query I rowsort
SELECT + - col1 * col2 + + - 38 FROM tab0 AS cor0
----
-137
-248
-3845

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT ALL COUNT( * ) * - COUNT( * ) + 31 AS col0 FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-5058
SELECT ALL COUNT ( * ) * - COUNT ( * ) + 31 AS col0 FROM tab0 AS cor0
----
22

query I rowsort
SELECT + col1 + - col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5060
SELECT DISTINCT - - col1 * + 96 * + 36 - + + col2 FROM tab2 AS cor0 WHERE ( NOT + CAST( NULL AS DECIMAL ) / - 39 * - 97 + - - 48 / + - col1 IS NOT NULL )
----
176233
231494
266072

skipif mysql # not compatible
query I rowsort label-5060
SELECT DISTINCT - - col1 * + 96 * + 36 - + + col2 FROM tab2 AS cor0 WHERE ( NOT + CAST ( NULL AS REAL ) / - 39 * - 97 + - - 48 / + - col1 IS NOT NULL )
----
176233
231494
266072

onlyif mysql # aggregate syntax: 
query I rowsort label-5061
SELECT ( ( + MAX( 92 ) ) ) * + 79 FROM tab0
----
7268

skipif mysql # not compatible
query I rowsort label-5061
SELECT ( ( + MAX ( 92 ) ) ) * + 79 FROM tab0
----
7268

query I rowsort
SELECT ALL + col2 * - - 75 AS col2 FROM tab0 AS cor0 WHERE NULL > 45
----

query I rowsort
SELECT - + 2 * - ( - + col2 ) + 37 FROM tab2 AS cor0
----
-43
-79
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5064
SELECT ALL - ( col2 ) * - + CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
1600
3364
529

skipif mysql # not compatible
query I rowsort label-5064
SELECT ALL - ( col2 ) * - + CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
1600
3364
529

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL AND ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5066
SELECT - col2 + col0 - + CAST( NULL AS SIGNED ) + col2 * col1 * + + 74 * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5066
SELECT - col2 + col0 - + CAST ( NULL AS INTEGER ) + col2 * col1 * + + 74 * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 - + - col2 FROM tab2
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT + MAX( - 94 ) + + + COUNT( * ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-5068
SELECT + MAX ( - 94 ) + + + COUNT ( * ) FROM tab1
----
-91

query I rowsort
SELECT ALL + 27 + - - col2 + + col0 * col2 FROM tab0
----
779
907
9729

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5070
SELECT - col2 + - col1 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5070
SELECT - col2 + - col1 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 77 - - - 86 FROM tab2
----
-9
-9
-9

query I rowsort
SELECT + 16 * + col2 * 70 + - col1 AS col1 FROM tab2
----
25709
44723
64893

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, - 30 AS col1 FROM tab0
----
10
-30
47
-30
99
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5074
SELECT ALL 93 DIV + + COUNT( DISTINCT - + col1 ) - ( 5 ) + + - COUNT( * ) FROM tab0 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-5074
SELECT ALL 93 / + + COUNT ( DISTINCT - + col1 ) - ( 5 ) + + - COUNT ( * ) FROM tab0 AS cor0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-5075
SELECT - 5 DIV - + 62 * - col0 * - col1 * 42 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5075
SELECT - 5 / - + 62 * - col0 * - col1 * 42 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col2 * + col1 AS col2 FROM tab1 WHERE ( + col2 ) IS NOT NULL
----
1344
295
3196

onlyif mysql # DIV for integer division: 
query I rowsort label-5077
SELECT + 48 DIV + col0 + 63 AS col2 FROM tab2
----
63
63
64

skipif mysql # not compatible
query I rowsort label-5077
SELECT + 48 / + col0 + 63 AS col2 FROM tab2
----
63
63
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT MAX( + 40 ) AS col1 FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-5078
SELECT MAX ( + 40 ) AS col1 FROM tab1
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-5079
SELECT ALL + col1 DIV - col2 + col2 col2 FROM tab2
----
21
39
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5079
SELECT ALL + col1 / - col2 + col2 col2 FROM tab2
----
21
39
57

query III rowsort
SELECT * FROM tab2 WHERE ( + 94 + - 34 / - 64 ) IN ( + 18 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 * - col0 NOT IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT - COUNT( DISTINCT - 15 ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5082
SELECT - COUNT ( DISTINCT - 15 ) AS col2 FROM tab0
----
-1

query I rowsort
SELECT DISTINCT ( 45 ) AS col0 FROM tab0
----
45

query I rowsort
SELECT + 12 - col2 FROM tab1
----
-47
-56
-84

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT ( col2 ) * + ( - 96 ) - col2 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT - ( - COUNT( * ) ) FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5086
SELECT - ( - COUNT ( * ) ) FROM tab2 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT + col1 FROM tab0 WHERE - col0 + 17 IS NULL
----

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NULL BETWEEN - col2 AND - 58 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT DISTINCT - COUNT( * ) * - 64 AS col1 FROM tab1
----
192

skipif mysql # not compatible
query I rowsort label-5089
SELECT DISTINCT - COUNT ( * ) * - 64 AS col1 FROM tab1
----
192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5090
SELECT DISTINCT 80 * - 27 + + COUNT( ALL col1 - + 15 / 40 ) * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5090
SELECT DISTINCT 80 * - 27 + + COUNT ( ALL col1 - + 15 / 40 ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5091
SELECT + MIN( col1 ) AS col1 FROM tab1 AS cor0 WHERE - col0 * - col2 IS NOT NULL
----
5

skipif mysql # not compatible
query I rowsort label-5091
SELECT + MIN ( col1 ) AS col1 FROM tab1 AS cor0 WHERE - col0 * - col2 IS NOT NULL
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5092
SELECT ALL ( + col1 ) DIV + 16 FROM tab2 AS cor0
----
3
4
4

skipif mysql # not compatible
query I rowsort label-5092
SELECT ALL ( + col1 ) / + 16 FROM tab2 AS cor0
----
3
4
4

query I rowsort
SELECT ALL - 17 + + 11 AS col2 FROM tab1 AS cor0
----
-6
-6
-6

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col1 ) * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 95 + col0 FROM tab1
----
146
180
186

query I rowsort
SELECT col2 + 86 FROM tab1
----
145
154
182

query I rowsort
SELECT + col0 FROM tab1 WHERE col2 NOT BETWEEN col2 + 76 AND - col0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5098
SELECT * FROM tab2 AS cor0 WHERE + col0 * CAST( NULL AS SIGNED ) + col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5098
SELECT * FROM tab2 AS cor0 WHERE + col0 * CAST ( NULL AS INTEGER ) + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT - - COUNT( * ) * COUNT( ALL col1 ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5099
SELECT - - COUNT ( * ) * COUNT ( ALL col1 ) FROM tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT - 93 AS col2 FROM tab2 cor0
----
-93

query I rowsort
SELECT col2 * - 33 AS col2 FROM tab2 AS cor0
----
-1320
-1914
-759

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL <> col2 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT - - ( MIN( DISTINCT - col0 ) ) AS col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5103
SELECT - - ( MIN ( DISTINCT - col0 ) ) AS col2 FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5104
SELECT - COUNT( * ) * 1 AS col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5104
SELECT - COUNT ( * ) * 1 AS col2 FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT DISTINCT + COUNT( ALL + col1 ) + COUNT( * ) AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5105
SELECT DISTINCT + COUNT ( ALL + col1 ) + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - col1 * 55 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5107
SELECT ALL + CAST( ( - 27 ) AS SIGNED ) + - 66 FROM tab2 AS cor0
----
-93
-93
-93

skipif mysql # not compatible
query I rowsort label-5107
SELECT ALL + CAST ( ( - 27 ) AS INTEGER ) + - 66 FROM tab2 AS cor0
----
-93
-93
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT DISTINCT + COUNT( 26 ) + COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5108
SELECT DISTINCT + COUNT ( 26 ) + COUNT ( * ) FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT DISTINCT MIN( ALL 89 ) AS col2 FROM tab2 WHERE NOT col1 NOT BETWEEN ( NULL ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5109
SELECT DISTINCT MIN ( ALL 89 ) AS col2 FROM tab2 WHERE NOT col1 NOT BETWEEN ( NULL ) AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5110
SELECT - 16 col2 FROM tab2 WHERE NULL NOT BETWEEN ( - 0 + col2 ) AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5110
SELECT - 16 col2 FROM tab2 WHERE NULL NOT BETWEEN ( - 0 + col2 ) AND - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col1 - + col2 + ( - 15 ) * - col1 FROM tab0
----
-83
1249
326

query I rowsort
SELECT + 98 - + col0 * col0 FROM tab2
----
-2018
-3998
-5527

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT DISTINCT - COUNT( * ) - - - COUNT( * ) AS col2 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-5113
SELECT DISTINCT - COUNT ( * ) - - - COUNT ( * ) AS col2 FROM tab0
----
-6

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN ( col0 ) AND - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 7 * 31 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5116
SELECT ALL - CAST( NULL AS SIGNED ) * - - ( 76 ) * 29 + - COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5116
SELECT ALL - CAST ( NULL AS INTEGER ) * - - ( 76 ) * 29 + - COUNT ( * ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 18 * - + col1 * ( ( + 19 ) * 13 ) FROM tab0
----
-360126
-4446
-93366

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5118
SELECT ALL - COUNT( * ) DIV - - COUNT( * ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-5118
SELECT ALL - COUNT ( * ) / - - COUNT ( * ) FROM tab2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5119
SELECT ALL CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5119
SELECT ALL CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 83 * + + col0 AS col1 FROM tab0 AS cor0
----
-1245
-7221
-8051

query I rowsort
SELECT - col0 * + 99 + - col0 AS col2 FROM tab0 AS cor0
----
-1500
-8700
-9700

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT DISTINCT + COUNT( * ) * - + MIN( col2 ) FROM tab1 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-5122
SELECT DISTINCT + COUNT ( * ) * - + MIN ( col2 ) FROM tab1 AS cor0
----
-177

query I rowsort
SELECT 76 * 91 * - - col0 AS col2 FROM tab1
----
352716
587860
629356

query I rowsort
SELECT DISTINCT col2 * - 90 - 31 FROM tab2 WHERE NOT ( + ( + col1 ) ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 78 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 71 * + - col1 FROM tab1 AS cor0
----
3337
355
994

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT COUNT( * ) + + SUM( col0 ) * + ( AVG ( col1 ) + - ( - ( + COUNT( * ) ) ) * - 15 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5127
SELECT COUNT ( * ) + + SUM ( col0 ) * + ( AVG ( col1 ) + - ( - ( + COUNT ( * ) ) ) * - 15 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 51 col0 FROM tab1 cor0
----
-51
-51
-51

query I rowsort
SELECT 18 * + col2 FROM tab2 AS cor0
----
1044
414
720

onlyif mysql # aggregate syntax: 
query II rowsort label-5130
SELECT ALL + COUNT( * ), + 15 AS col1 FROM tab0 AS cor0
----
3
15

skipif mysql # not compatible
query II rowsort label-5130
SELECT ALL + COUNT ( * ), + 15 AS col1 FROM tab0 AS cor0
----
3
15

query I rowsort
SELECT ALL + - 37 + 41 FROM tab0 AS cor0
----
4
4
4

query II rowsort
SELECT - + col0, - 69 AS col1 FROM tab1 AS cor0
----
-51
-69
-85
-69
-91
-69

query I rowsort
SELECT - col1 / - 45 AS col2 FROM tab0 AS cor0 WHERE NOT NULL >= ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5134
SELECT CAST( NULL AS SIGNED ), ( - 96 ) * ( - col2 * 3 ) AS col1 FROM tab2 AS cor0
----
NULL
11520
NULL
16704
NULL
6624

skipif mysql # not compatible
query II rowsort label-5134
SELECT CAST ( NULL AS INTEGER ), ( - 96 ) * ( - col2 * 3 ) AS col1 FROM tab2 AS cor0
----
NULL
11520
NULL
16704
NULL
6624

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col2 * - col0 + + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5136
SELECT DISTINCT - ( 67 ) * COUNT( * ) col2 FROM tab2 WHERE NOT NULL < + 82
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5136
SELECT DISTINCT - ( 67 ) * COUNT ( * ) col2 FROM tab2 WHERE NOT NULL < + 82
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5137
SELECT ALL - COUNT( ALL - 72 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5137
SELECT ALL - COUNT ( ALL - 72 ) FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5138
SELECT CAST( - + ( - + col1 ) AS SIGNED ) FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5138
SELECT CAST ( - + ( - + col1 ) AS INTEGER ) FROM tab2
----
51
67
77

query III rowsort
SELECT * FROM tab2 WHERE + + 61 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - col2 + - col0 * col1 NOT IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT - COUNT( * ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5141
SELECT - COUNT ( * ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5142
SELECT DISTINCT + + col0 DIV - col1 + - 46 FROM tab0 AS cor0
----
-143
-46
-50

skipif mysql # not compatible
query I rowsort label-5142
SELECT DISTINCT + + col0 / - col1 + - 46 FROM tab0 AS cor0
----
-143
-46
-50

query I rowsort
SELECT ALL - 19 + - 67 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

query I rowsort
SELECT - 10 * col2 FROM tab2
----
-230
-400
-580

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 + - + ( + 97 ) / + 59 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT + MIN( - ( - 81 ) ) FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-5146
SELECT + MIN ( - ( - 81 ) ) FROM tab1
----
81

query I rowsort
SELECT col0 * col0 - + - col2 + col0 FROM tab2
----
2185
4200
5758

onlyif mysql # aggregate syntax: 
query I rowsort label-5148
SELECT DISTINCT + SUM( DISTINCT - col1 ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-5148
SELECT DISTINCT + SUM ( DISTINCT - col1 ) AS col2 FROM tab1
----
-66

query I rowsort
SELECT + 20 - + - col0 FROM tab1 AS cor0
----
105
111
71

query I rowsort
SELECT DISTINCT + 87 * - 33 + ( col1 ) + - + col2 AS col2 FROM tab2 AS cor0
----
-2834
-2843
-2862

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 NOT BETWEEN - - col1 AND - + col1 + - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE col1 NOT IN ( + 61, 21 * - - col2 )
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5153
SELECT DISTINCT - - col0 + - CAST( NULL AS SIGNED ) + + col0 / - col0 * + col2 AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5153
SELECT DISTINCT - - col0 + - CAST ( NULL AS INTEGER ) + + col0 / - col0 * + col2 AS col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT + - 45 + + 4 AS col0 FROM tab2 AS cor0
----
-41
-41
-41

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 94 * - ( col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT DISTINCT - MIN( ALL - + ( + + col0 ) ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-5156
SELECT DISTINCT - MIN ( ALL - + ( + + col0 ) ) FROM tab0
----
97

query I rowsort
SELECT ALL - 90 + + col0 + - - col2 FROM tab0 WHERE NOT ( NULL IS NOT NULL )
----
-28
106
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT ALL - 50 * + COUNT( * ) FROM tab2
----
-150

skipif mysql # not compatible
query I rowsort label-5158
SELECT ALL - 50 * + COUNT ( * ) FROM tab2
----
-150

query I rowsort
SELECT DISTINCT + col1 / col0 - - col1 FROM tab2 WHERE NOT ( ( NOT 90 + col1 IS NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + col2 AS col0, + col2 * - ( - - 1 ), 65 col0 FROM tab1
----
9 values hashing to 08bf7c26c476774bc1f04ce3cc9c5462

query I rowsort
SELECT ALL col0 FROM tab2 WHERE + 47 BETWEEN NULL AND ( ( + 4 ) )
----

query II rowsort
SELECT + col1, - 41 FROM tab1
----
14
-41
47
-41
5
-41

query II rowsort
SELECT ALL 59 AS col1, - col2 * - col1 AS col2 FROM tab1
----
59
1344
59
295
59
3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5164
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 WHERE + + ( + + col0 ) / col1 * + col0 * CAST( NULL AS SIGNED ) BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5164
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 WHERE + + ( + + col0 ) / col1 * + col0 * CAST ( NULL AS INTEGER ) BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5165
SELECT DISTINCT + COUNT( + 71 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5165
SELECT DISTINCT + COUNT ( + 71 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT - 98 * + 55 AS col1 FROM tab1 AS cor0
----
-5390
-5390
-5390

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL < ( col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5168
SELECT DISTINCT COUNT( * ) AS col0, + 50 AS col1 FROM tab1 AS cor0
----
3
50

skipif mysql # not compatible
query II rowsort label-5168
SELECT DISTINCT COUNT ( * ) AS col0, + 50 AS col1 FROM tab1 AS cor0
----
3
50

onlyif mysql # DIV for integer division: 
query II rowsort label-5169
SELECT col2 col2, + 73 - - col1 DIV 56 FROM tab0 AS cor0
----
10
73
47
74
99
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5169
SELECT col2 col2, + 73 - - col1 / 56 FROM tab0 AS cor0
----
10
73
47
74
99
73

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 >= ( NULL )
----

query I rowsort
SELECT - 57 * - - col2 FROM tab0 AS cor0
----
-2679
-5643
-570

query I rowsort
SELECT DISTINCT + 21 * + - col2 FROM tab1
----
-1239
-1428
-2016

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT 45 * MAX( - col1 ) FROM tab1
----
-225

skipif mysql # not compatible
query I rowsort label-5173
SELECT 45 * MAX ( - col1 ) FROM tab1
----
-225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5174
SELECT - - SUM( DISTINCT 17 ) FROM tab2 WHERE NOT + ( - - CAST( - + CAST( - - col2 AS SIGNED ) AS SIGNED ) ) IS NULL
----
17

skipif mysql # not compatible
query I rowsort label-5174
SELECT - - SUM ( DISTINCT 17 ) FROM tab2 WHERE NOT + ( - - CAST ( - + CAST ( - - col2 AS INTEGER ) AS INTEGER ) ) IS NULL
----
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + AVG ( DISTINCT col1 ) / 38 col1 FROM tab0 cor0 WHERE NOT ( NOT ( NOT ( NULL IS NULL ) ) )
----
NULL

query I rowsort
SELECT + - 10 + - 39 + + + col1 AS col1 FROM tab1 AS cor0
----
-2
-35
-44

query II rowsort
SELECT ALL - 30 * + col2 AS col0, + col1 + + col2 + + 20 AS col0 FROM tab2 cor0
----
-1200
137
-1740
145
-690
94

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( + 42, col0 )
----

query I rowsort
SELECT ALL + + 66 * col2 * + + col1 FROM tab1 AS cor0
----
19470
210936
88704

query I rowsort
SELECT col0 * - + col0 * + 12 AS col2 FROM tab1
----
-31212
-86700
-99372

onlyif mysql # aggregate syntax: 
query II rowsort label-5181
SELECT + - 83, COUNT( * ) * - 88 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
-83
0

skipif mysql # not compatible
query II rowsort label-5181
SELECT + - 83, COUNT ( * ) * - 88 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
-83
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 49 col2 FROM tab1
----
-49
-49
-49

query I rowsort
SELECT ALL + col1 + - + col2 + - ( - col2 ) + + col2 * + ( - 88 + col0 ) * + 20 AS col0 FROM tab0 WHERE NOT - - 68 BETWEEN ( NULL ) AND 24
----
-179
-68539
17821

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5184
SELECT DISTINCT CAST( - 94 AS SIGNED ) AS col2 FROM tab0
----
-94

skipif mysql # not compatible
query I rowsort label-5184
SELECT DISTINCT CAST ( - 94 AS INTEGER ) AS col2 FROM tab0
----
-94

query III rowsort
SELECT * FROM tab1 WHERE ( + col1 * col2 / - ( + 58 ) * col0 ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5186
SELECT DISTINCT + COUNT( ALL + 86 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5186
SELECT DISTINCT + COUNT ( ALL + 86 ) AS col0 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5187
SELECT ALL CAST( + - AVG ( ALL + + CAST( NULL AS SIGNED ) ) AS SIGNED ) col2, ( - 87 ) AS col1 FROM tab2
----
NULL
-87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5187
SELECT ALL CAST ( + - AVG ( ALL + + CAST ( NULL AS INTEGER ) ) AS INTEGER ) col2, ( - 87 ) AS col1 FROM tab2
----
NULL
-87

query I rowsort
SELECT ( ( - 52 ) ) AS col0 FROM tab2 AS cor0
----
-52
-52
-52

query I rowsort
SELECT DISTINCT - ( + ( - - 12 ) ) AS col1 FROM tab2 AS cor0
----
-12

query I rowsort
SELECT ALL 53 + - 32 AS col1 FROM tab0
----
21
21
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5191
SELECT DISTINCT SUM( + CAST( NULL AS SIGNED ) ) + - ( - 26 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5191
SELECT DISTINCT SUM ( + CAST ( NULL AS INTEGER ) ) + - ( - 26 ) FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 + + 8 = + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + col0 - + + col2 FROM tab2 cor0
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT ALL + MAX( - 51 ) - + + SUM( - + col1 ) FROM tab2 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-5194
SELECT ALL + MAX ( - 51 ) - + + SUM ( - + col1 ) FROM tab2 AS cor0
----
144

query I rowsort
SELECT - + col0 * 0 AS col1 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5197
SELECT ALL - ( - CAST( + 93 AS SIGNED ) ) FROM tab0 AS cor0
----
93
93
93

skipif mysql # not compatible
query I rowsort label-5197
SELECT ALL - ( - CAST ( + 93 AS INTEGER ) ) FROM tab0 AS cor0
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT + + COUNT( + col1 ) * 75 AS col2 FROM tab2 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-5198
SELECT + + COUNT ( + col1 ) * 75 AS col2 FROM tab2 AS cor0
----
225

query I rowsort
SELECT 20 / 13 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL ( + - col2 ) * - 80 FROM tab1
----
4720
5440
7680

query I rowsort
SELECT - + 19 * - col2 FROM tab2 AS cor0
----
1102
437
760

onlyif mysql # aggregate syntax: 
query II rowsort label-5202
SELECT ALL + - COUNT( * ), - 48 AS col1 FROM tab2 AS cor0
----
-3
-48

skipif mysql # not compatible
query II rowsort label-5202
SELECT ALL + - COUNT ( * ), - 48 AS col1 FROM tab2 AS cor0
----
-3
-48

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5203
SELECT ALL ( - CAST( NULL AS DECIMAL ) ) FROM tab0 WHERE NOT - - 64 <= NULL
----

skipif mysql # not compatible
query I rowsort label-5203
SELECT ALL ( - CAST ( NULL AS REAL ) ) FROM tab0 WHERE NOT - - 64 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5204
SELECT DISTINCT + col1 FROM tab0 WHERE NOT - 28 * col1 + - ( - + col2 ) IN ( + CAST( NULL AS SIGNED ), col1 * + col0 + + + col0 )
----

skipif mysql # not compatible
query I rowsort label-5204
SELECT DISTINCT + col1 FROM tab0 WHERE NOT - 28 * col1 + - ( - + col2 ) IN ( + CAST ( NULL AS INTEGER ), col1 * + col0 + + + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5205
SELECT - 79 DIV MAX( ALL - 89 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5205
SELECT - 79 / MAX ( ALL - 89 ) FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5206
SELECT DISTINCT - col1 + + - col1 * - ( col0 ) AS col0, + col2 DIV + col0 AS col2 FROM tab0 AS cor0
----
1134
3
1806
0
96
1

skipif mysql # not compatible
query II rowsort label-5206
SELECT DISTINCT - col1 + + - col1 * - ( col0 ) AS col0, + col2 / + col0 AS col2 FROM tab0 AS cor0
----
1134
3
1806
0
96
1

query I rowsort
SELECT - col0 * col0 - + col2 - + 4 + + + 57 * - 12 + + + col0 - + col2 FROM tab2 cor0
----
-2804
-4800
-6354

query II rowsort
SELECT - 75 AS col1, 0 AS col1 FROM tab0 AS cor0
----
-75
0
-75
0
-75
0

query I rowsort
SELECT + - col1 AS col1 FROM tab1 AS cor0 WHERE + 49 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT - ( + col1 ) FROM tab0 AS cor0 WHERE - 23 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5211
SELECT ALL - COUNT( * ) + + 75 AS col2 FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-5211
SELECT ALL - COUNT ( * ) + + 75 AS col2 FROM tab1 AS cor0
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5212
SELECT ALL - CAST( + - 46 AS SIGNED ) * + + col2 + - col1 FROM tab2 AS cor0
----
1007
1763
2601

skipif mysql # not compatible
query I rowsort label-5212
SELECT ALL - CAST ( + - 46 AS INTEGER ) * + + col2 + - col1 FROM tab2 AS cor0
----
1007
1763
2601

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT - - MIN( 70 ) FROM tab2 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-5213
SELECT - - MIN ( 70 ) FROM tab2 AS cor0
----
70

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 NOT IN ( + ( - col0 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 + - 48 FROM tab2
----
-2
16
27

query II rowsort
SELECT DISTINCT - + col1, col0 FROM tab1 WHERE NOT - 4 BETWEEN NULL AND - + col2
----
-14
51
-47
91
-5
85

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5217
SELECT ALL col2 / - CAST( NULL AS DECIMAL ) * - - 94 * - 10 - + - col0 * + + col1 + col1 * - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5217
SELECT ALL col2 / - CAST ( NULL AS REAL ) * - - 94 * - 10 - + - col0 * + + col1 + col1 * - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT DISTINCT + 49 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-5218
SELECT DISTINCT + 49 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
147

query I rowsort
SELECT col1 * - 40 AS col2 FROM tab0
----
-3240
-40
-840

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col1 NOT BETWEEN - 76 AND ( 51 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5221
SELECT DISTINCT + col2 DIV - col0 + col1 * + + ( - + col1 ) AS col1 FROM tab0 AS cor0
----
-2
-441
-6564

skipif mysql # not compatible
query I rowsort label-5221
SELECT DISTINCT + col2 / - col0 + col1 * + + ( - + col1 ) AS col1 FROM tab0 AS cor0
----
-2
-441
-6564

query II rowsort
SELECT ALL + col2 AS col0, 53 FROM tab2 cor0
----
23
53
40
53
58
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5223
SELECT ALL + col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col2 * - 31, + CAST( + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5223
SELECT ALL + col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col2 * - 31, + CAST ( + col0 AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 47 - + 19 + + col1 NOT BETWEEN + ( col2 ) AND + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 75, col0 col1 FROM tab2 AS cor0 WHERE NOT 10 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * - 21 FROM tab2
----
-1218
-483
-840

onlyif mysql # DIV for integer division: 
query I rowsort label-5227
SELECT DISTINCT 35 DIV 7 AS col0 FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-5227
SELECT DISTINCT 35 / 7 AS col0 FROM tab0
----
5

query III rowsort
SELECT * FROM tab2 WHERE NOT 26 IN ( - col2 * - 99 * col2 + col1, + col1 - + col1, + 76 + + col1 + + col0 + + col1 / + col0 * col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 8 + + 34 = + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - 62 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-62
-62
-62

query I rowsort
SELECT - 47 AS col0 FROM tab2 cor0
----
-47
-47
-47

query I rowsort
SELECT - + 92 FROM tab1, tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5233
SELECT ALL col1 - + + CAST( - + 73 AS SIGNED ) FROM tab1 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5233
SELECT ALL col1 - + + CAST ( - + 73 AS INTEGER ) FROM tab1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT ALL - + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5234
SELECT ALL - + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT DISTINCT COUNT( * ) + - 44 AS col0 FROM tab2
----
-41

skipif mysql # not compatible
query I rowsort label-5235
SELECT DISTINCT COUNT ( * ) + - 44 AS col0 FROM tab2
----
-41

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 NOT BETWEEN ( + - col2 ) * - + 60 * + 65 + + col2 AND - 30 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT ALL COUNT( * ) * - + 11 * - 90 AS col2 FROM tab2 AS cor0
----
2970

skipif mysql # not compatible
query I rowsort label-5237
SELECT ALL COUNT ( * ) * - + 11 * - 90 AS col2 FROM tab2 AS cor0
----
2970

query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 AS cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT - col0 * 51 * - col0 + - col1 AS col0 FROM tab2 cor0
----
107865
208819
286808

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5240
SELECT ALL - col1 + CAST( + col0 AS SIGNED ) AS col0 FROM tab0 cor0
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-5240
SELECT ALL - col1 + CAST ( + col0 AS INTEGER ) AS col0 FROM tab0 cor0
----
-66
66
96

query I rowsort
SELECT - 67 + + col0 + col2 FROM tab2 AS cor0
----
2
37
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5242
SELECT ALL + MAX( DISTINCT 15 ) + + + 96 col0 FROM tab1
----
111

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5242
SELECT ALL + MAX ( DISTINCT 15 ) + + + 96 col0 FROM tab1
----
111

query II rowsort
SELECT ALL 8 * + + col1 + + + 53 - + col0 AS col0, - 43 * - 83 FROM tab1
----
114
3569
338
3569
8
3569

query III rowsort
SELECT ALL * FROM tab0 WHERE + - col1 * + col1 >= NULL
----

query II rowsort
SELECT + 27 AS col1, col2 FROM tab2
----
27
23
27
40
27
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + 51 col2 FROM tab2
----
-2601
-3417
-3927

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5247
SELECT DISTINCT COUNT( * ) * CAST( + 26 AS SIGNED ) AS col1 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-5247
SELECT DISTINCT COUNT ( * ) * CAST ( + 26 AS INTEGER ) AS col1 FROM tab1
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5248
SELECT CAST( NULL AS SIGNED ) + + col1 FROM tab0 WHERE col1 IN ( + 31 )
----

skipif mysql # not compatible
query I rowsort label-5248
SELECT CAST ( NULL AS INTEGER ) + + col1 FROM tab0 WHERE col1 IN ( + 31 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5249
SELECT ALL + col0 DIV CAST( 88 AS SIGNED ) col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5249
SELECT ALL + col0 / CAST ( 88 AS INTEGER ) col0 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
10
47
99

query I rowsort
SELECT - - 91 - - - ( col1 ) * - - col0 AS col1 FROM tab2 AS cor0
----
-2255
-4837
-4934

query I rowsort
SELECT + ( - col2 ) * - 40 + + col0 FROM tab0 AS cor0
----
1895
4057
487

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 * - - 75 col0 FROM tab2
----
3496
4864
5700

onlyif mysql # aggregate syntax: 
query I rowsort label-5254
SELECT ( - COUNT( * ) ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-5254
SELECT ( - COUNT ( * ) ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

query I rowsort
SELECT + 86 + - col1 - + ( 35 ) AS col0 FROM tab1 AS cor0 WHERE NOT col2 - - 53 - - - col0 IN ( + - col2 )
----
37
4
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT ALL - COUNT( DISTINCT - 16 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5256
SELECT ALL - COUNT ( DISTINCT - 16 ) AS col2 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5257
SELECT 58 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-5257
SELECT 58 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-174

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + - col0 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5259
SELECT ALL + COUNT( * ) col2 FROM tab0, tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5259
SELECT ALL + COUNT ( * ) col2 FROM tab0, tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE + - 73 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT col2 < col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5262
SELECT DISTINCT + SUM( - - col0 ) AS col0 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-5262
SELECT DISTINCT + SUM ( - - col0 ) AS col0 FROM tab0
----
199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 27 col2 FROM tab0
----
27
27
27

query I rowsort
SELECT ALL + 2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
2
2
2

query I rowsort
SELECT DISTINCT - 19 * - col2 + 88 AS col2 FROM tab0 AS cor0
----
1969
278
981

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5266
SELECT ALL - CAST( + col1 AS SIGNED ), col0 AS col0 FROM tab2
----
-51
46
-67
75
-77
64

skipif mysql # not compatible
query II rowsort label-5266
SELECT ALL - CAST ( + col1 AS INTEGER ), col0 AS col0 FROM tab2
----
-51
46
-67
75
-77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT + - 63 * + MIN( ALL + - col1 ) FROM tab0 AS cor0
----
5103

skipif mysql # not compatible
query I rowsort label-5267
SELECT + - 63 * + MIN ( ALL + - col1 ) FROM tab0 AS cor0
----
5103

onlyif mysql # DIV for integer division: 
query I rowsort label-5268
SELECT + ( 25 ) DIV + 66 AS col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5268
SELECT + ( 25 ) / + 66 AS col1 FROM tab0 cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - 6 * + ( - 45 ) + - + col0 >= ( + col1 * 95 )
----
15
81
47
87
21
10

query I rowsort
SELECT + 39 - + col1 AS col0 FROM tab1 cor0
----
-8
25
34

query I rowsort
SELECT DISTINCT + col1 - - + 4 * - col0 FROM tab2
----
-133
-179
-233

query II rowsort
SELECT + col2, col0 + col2 + + - col2 * col0 FROM tab1 WHERE NULL IS NULL
----
59
-4871
68
-6029
96
-4749

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5273
SELECT ALL - 10 / CAST( NULL AS SIGNED ) - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5273
SELECT ALL - 10 / CAST ( NULL AS INTEGER ) - col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE col1 + + col2 IS NULL
----

query I rowsort
SELECT - col0 + 6 AS col0 FROM tab2
----
-40
-58
-69

query I rowsort
SELECT 93 + col2 AS col1 FROM tab1
----
152
161
189

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5277
SELECT ALL CAST( NULL AS SIGNED ) * - SUM( ALL col2 ) + + 68 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5277
SELECT ALL CAST ( NULL AS INTEGER ) * - SUM ( ALL col2 ) + + 68 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT ALL COUNT( DISTINCT 59 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5278
SELECT ALL COUNT ( DISTINCT 59 ) AS col1 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5279
SELECT ALL - 11 AS col1, - COUNT( * ) AS col2 FROM tab2
----
-11
-3

skipif mysql # not compatible
query II rowsort label-5279
SELECT ALL - 11 AS col1, - COUNT ( * ) AS col2 FROM tab2
----
-11
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT 57 * + - SUM( - 51 ) + + 87 FROM tab1
----
8808

skipif mysql # not compatible
query I rowsort label-5280
SELECT 57 * + - SUM ( - 51 ) + + 87 FROM tab1
----
8808

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 45 ) NOT IN ( - - 84 + - col2, col1 / + 1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT DISTINCT COUNT( * ) - 70 FROM tab2
----
-67

skipif mysql # not compatible
query I rowsort label-5282
SELECT DISTINCT COUNT ( * ) - 70 FROM tab2
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-5283
SELECT COUNT( * ) col2, + 4 AS col1 FROM tab2
----
3
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5283
SELECT COUNT ( * ) col2, + 4 AS col1 FROM tab2
----
3
4

query I rowsort
SELECT - - 91 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query II rowsort
SELECT ALL col1 AS col2, - col1 + col0 FROM tab0
----
1
96
21
66
81
-66

query I rowsort
SELECT DISTINCT col2 * - - 0 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 68 col1 FROM tab0 cor0
----
68
68
68

query II rowsort
SELECT ALL + col2, + 42 FROM tab0 AS cor0
----
10
42
47
42
99
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5289
SELECT - + col2 * + - CAST( - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-5289
SELECT - + col2 * + - CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT ALL MIN( DISTINCT 86 ) * + 8 FROM tab2 AS cor0
----
688

skipif mysql # not compatible
query I rowsort label-5290
SELECT ALL MIN ( DISTINCT 86 ) * + 8 FROM tab2 AS cor0
----
688

query I rowsort
SELECT + 48 * - - 27 AS col1 FROM tab1
----
1296
1296
1296

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT + COUNT( 38 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5292
SELECT + COUNT ( 38 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5293
SELECT COUNT( * ) DIV + + 59 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5293
SELECT COUNT ( * ) / + + 59 AS col1 FROM tab1
----
0

query I rowsort
SELECT - - col1 AS col1 FROM tab1 WHERE NOT - - col2 IS NOT NULL
----

query I rowsort
SELECT ALL col2 + + + col2 AS col1 FROM tab1 AS cor0
----
118
136
192

query III rowsort
SELECT * FROM tab2 WHERE 59 < NULL
----

query I rowsort
SELECT DISTINCT + col0 - - 41 * - 28 AS col0 FROM tab0
----
-1051
-1061
-1133

query I rowsort
SELECT DISTINCT + col0 * 8 AS col0 FROM tab1 cor0
----
408
680
728

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5299
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND col1 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5299
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND col1 * + CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 9 + col1 col1 FROM tab0 AS cor0
----
-8
12
72

onlyif mysql # DIV for integer division: 
query I rowsort label-5301
SELECT ALL + col0 * - col1 + - + 42 DIV + col0 + - col1 DIV - 22 + + 50 AS col1 FROM tab2 AS cor0
----
-2294
-4875
-4972

skipif mysql # not compatible
query I rowsort label-5301
SELECT ALL + col0 * - col1 + - + 42 / + col0 + - col1 / - 22 + + 50 AS col1 FROM tab2 AS cor0
----
-2294
-4875
-4972

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5303
SELECT DISTINCT - SUM( ALL + col2 ) col0 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5303
SELECT DISTINCT - SUM ( ALL + col2 ) col0 FROM tab2 AS cor0
----
-121

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 85 IS NULL
----

query I rowsort
SELECT - - col2 * - 17 AS col2 FROM tab2 AS cor0
----
-391
-680
-986

query III rowsort
SELECT * FROM tab1 WHERE ( NULL >= - ( + ( + 48 ) ) )
----

query I rowsort
SELECT ALL 87 - - + col0 FROM tab0
----
102
174
184

query I rowsort
SELECT ALL + col1 + + 29 FROM tab0
----
110
30
50

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 WHERE col0 * ( + + 85 ) > col0
----
-23
-40
-58

query I rowsort
SELECT ALL - 13 * col2 - - + col0 FROM tab1 WHERE - 62 * + + 91 * - col2 - 96 IS NOT NULL
----
-1197
-682
-793

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 18 * + col1 + + col1 col1 FROM tab0 AS cor0
----
1539
19
399

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 5 * + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN - 49 * - ( + ( col2 ) ) AND - - 29
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5314
SELECT DISTINCT CAST( NULL AS SIGNED ) * 25 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5314
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 25 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5315
SELECT DISTINCT 18 * + MAX( - col1 ) AS col1 FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-5315
SELECT DISTINCT 18 * + MAX ( - col1 ) AS col1 FROM tab0
----
-18

query I rowsort
SELECT ( + 19 ) AS col0 FROM tab0
----
19
19
19

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5317
SELECT ALL * FROM tab0 AS cor0 WHERE CAST( - col0 AS SIGNED ) / - 98 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5317
SELECT ALL * FROM tab0 AS cor0 WHERE CAST ( - col0 AS INTEGER ) / - 98 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + col0, - 97 * + 90 FROM tab0 AS cor0
----
15
-8730
87
-8730
97
-8730

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5319
SELECT ALL CAST( - col1 AS SIGNED ) col2 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5319
SELECT ALL CAST ( - col1 AS INTEGER ) col2 FROM tab2 AS cor0
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1, + 95 col2 FROM tab2 AS cor0
----
51
95
67
95
77
95

query I rowsort
SELECT DISTINCT - ( - - ( + 62 ) ) * + ( - 43 ) AS col2 FROM tab1 cor0 WHERE col0 IN ( + col1, 31, - col1 + - - col1 )
----

query I rowsort
SELECT 19 * - col1 - col2 * - + col2 * - 70 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - ( - + 48 ) * - col2 AS col0 FROM tab1 AS cor0
----
-2832
-3264
-4608

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT ALL COUNT( * ) + - COUNT( * ) + - - 17 AS col1 FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-5324
SELECT ALL COUNT ( * ) + - COUNT ( * ) + - - 17 AS col1 FROM tab0
----
17

onlyif mysql # DIV for integer division: 
query II rowsort label-5325
SELECT DISTINCT - 55, 54 DIV - col0 AS col0 FROM tab2
----
-55
-1
-55
0

skipif mysql # not compatible
query II rowsort label-5325
SELECT DISTINCT - 55, 54 / - col0 AS col0 FROM tab2
----
-55
-1
-55
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5326
SELECT ALL - MIN( CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5326
SELECT ALL - MIN ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5327
SELECT ALL 74 col0, + 41 * CAST( NULL AS SIGNED ) FROM tab0
----
74
NULL
74
NULL
74
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5327
SELECT ALL 74 col0, + 41 * CAST ( NULL AS INTEGER ) FROM tab0
----
74
NULL
74
NULL
74
NULL

query III rowsort
SELECT * FROM tab1 WHERE - ( + - ( - 52 ) ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT - 39 + - COUNT( * ) FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-5329
SELECT - 39 + - COUNT ( * ) FROM tab0
----
-42

query I rowsort
SELECT - col2 + 60 AS col1 FROM tab1 cor0
----
-36
-8
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 85 * ( + col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 52 * - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5333
SELECT - MIN( ALL + col1 ) col2, + COUNT( * ) * - 59 FROM tab0
----
-1
-177

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5333
SELECT - MIN ( ALL + col1 ) col2, + COUNT ( * ) * - 59 FROM tab0
----
-1
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT ALL COUNT( + 52 ) - - 1 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-5334
SELECT ALL COUNT ( + 52 ) - - 1 FROM tab0 AS cor0
----
4

query I rowsort
SELECT DISTINCT - + 91 * + 4 + - - 62 AS col0 FROM tab2 AS cor0
----
-302

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT ALL + - COUNT( * ) * - - 19 AS col2 FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-5336
SELECT ALL + - COUNT ( * ) * - - 19 AS col2 FROM tab2 AS cor0
----
-57

query I rowsort
SELECT - + 0 - col1 AS col2 FROM tab2 cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5338
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - col2 + + - col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5338
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - col2 + + - col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5339
SELECT ALL col0 DIV 80 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5339
SELECT ALL col0 / 80 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT DISTINCT MIN( - + col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-5340
SELECT DISTINCT MIN ( - + col1 ) FROM tab1 AS cor0
----
-47

query I rowsort
SELECT DISTINCT - col2 + - + col2 FROM tab0 cor0
----
-198
-20
-94

query I rowsort
SELECT - col0 - - + ( - - 40 ) * + - ( + + 32 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 + + 86 FROM tab1
----
100
133
91

query I rowsort
SELECT ALL - 16 + - ( + col1 ) FROM tab1
----
-21
-30
-63

query I rowsort
SELECT ALL + col2 * - col2 AS col0 FROM tab0 WHERE 61 + + ( - + 61 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT 85 * - - COUNT( * ) * + + COUNT( * ) FROM tab2
----
765

skipif mysql # not compatible
query I rowsort label-5346
SELECT 85 * - - COUNT ( * ) * + + COUNT ( * ) FROM tab2
----
765

query III rowsort
SELECT ALL * FROM tab2 WHERE 74 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 70 col0, 10 AS col1 FROM tab1 AS cor0
----
-70
10

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL > - 59
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - - 56 ) col0 FROM tab0 AS cor0
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5351
SELECT - COUNT( DISTINCT col2 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5351
SELECT - COUNT ( DISTINCT col2 ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-5352
SELECT 97 DIV 77, col1 AS col1 FROM tab2
----
1
51
1
67
1
77

skipif mysql # not compatible
query II rowsort label-5352
SELECT 97 / 77, col1 AS col1 FROM tab2
----
1
51
1
67
1
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT - MAX( col2 ) FROM tab2 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5353
SELECT - MAX ( col2 ) FROM tab2 WHERE NOT NULL >= NULL
----
NULL

query I rowsort
SELECT DISTINCT - 56 AS col1 FROM tab1 cor0
----
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 91 col0 FROM tab0 AS cor0
----
91
91
91

query II rowsort
SELECT ( 91 ) + col0 AS col0, 12 AS col1 FROM tab1
----
142
12
176
12
182
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5357
SELECT - CAST( 36 AS SIGNED ) FROM tab1
----
-36
-36
-36

skipif mysql # not compatible
query I rowsort label-5357
SELECT - CAST ( 36 AS INTEGER ) FROM tab1
----
-36
-36
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-5358
SELECT ALL - col1 * col1 DIV - - ( col2 ) AS col1 FROM tab0
----
-139
-44
0

skipif mysql # not compatible
query I rowsort label-5358
SELECT ALL - col1 * col1 / - - ( col2 ) AS col1 FROM tab0
----
-139
-44
0

query I rowsort
SELECT DISTINCT - 96 * - ( + + col2 ) AS col1 FROM tab0 AS cor0
----
4512
9504
960

query I rowsort
SELECT 35 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 27 * 63 NOT IN ( - 80 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - ( col2 ) + col2 FROM tab1 cor0
----
118
136
192

query I rowsort
SELECT DISTINCT + col0 + - 81 + + 82 + + col0 FROM tab2
----
129
151
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5364
SELECT DISTINCT col0 - + col0 + + CAST( + + 1 AS SIGNED ) * + - col0 * + col2 - - col1 FROM tab0
----
-624
-849
-9602

skipif mysql # not compatible
query I rowsort label-5364
SELECT DISTINCT col0 - + col0 + + CAST ( + + 1 AS INTEGER ) * + - col0 * + col2 - - col1 FROM tab0
----
-624
-849
-9602

query I rowsort
SELECT DISTINCT + col0 * col0 * 34 * col0 FROM tab2
----
14343750
3309424
8912896

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT DISTINCT 7 - - MIN( + col0 ) FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-5366
SELECT DISTINCT 7 - - MIN ( + col0 ) FROM tab2
----
53

query II rowsort
SELECT 34, - 85 * - col1 - + col1 AS col1 FROM tab2 AS cor0
----
34
4284
34
5628
34
6468

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5368
SELECT col1 * + CAST( NULL AS DECIMAL ) * + 83 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5368
SELECT col1 * + CAST ( NULL AS REAL ) * + 83 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5369
SELECT + CAST( - col0 AS SIGNED ) DIV - - col2 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5369
SELECT + CAST ( - col0 AS INTEGER ) / - - col2 FROM tab1 AS cor0
----
-1
-1
0

query II rowsort
SELECT ALL + col2 AS col0, 81 AS col2 FROM tab1 AS cor0
----
59
81
68
81
96
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5371
SELECT ( + + MAX( ALL - 40 ) ) * 55 FROM tab2 cor0
----
-2200

skipif mysql # not compatible
query I rowsort label-5371
SELECT ( + + MAX ( ALL - 40 ) ) * 55 FROM tab2 cor0
----
-2200

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT ALL - MAX( + 10 ) * + 11 FROM tab0 AS cor0
----
-110

skipif mysql # not compatible
query I rowsort label-5372
SELECT ALL - MAX ( + 10 ) * + 11 FROM tab0 AS cor0
----
-110

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5373
SELECT 57 * + 22, CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
1254
NULL
1254
NULL
1254
NULL

skipif mysql # not compatible
query II rowsort label-5373
SELECT 57 * + 22, CAST ( NULL AS REAL ) AS col0 FROM tab2
----
1254
NULL
1254
NULL
1254
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT ALL + SUM( col0 ) AS col2 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-5374
SELECT ALL + SUM ( col0 ) AS col2 FROM tab2
----
185

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 74 / 59 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT + MIN( ALL - 99 ) AS col2 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-5376
SELECT + MIN ( ALL - 99 ) AS col2 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT + COUNT( - 98 ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5377
SELECT + COUNT ( - 98 ) AS col1 FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5378
SELECT ALL 65, col1 AS col2 FROM tab1 WHERE NOT + 41 + + CAST( col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-5378
SELECT ALL 65, col1 AS col2 FROM tab1 WHERE NOT + 41 + + CAST ( col1 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT DISTINCT + MAX( ALL - 36 ) * 88 FROM tab2
----
-3168

skipif mysql # not compatible
query I rowsort label-5379
SELECT DISTINCT + MAX ( ALL - 36 ) * 88 FROM tab2
----
-3168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 40 AS col0, + col0 col0 FROM tab1
----
-40
51
-40
85
-40
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5381
SELECT ALL - ( - - CAST( NULL AS SIGNED ) ) col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5381
SELECT ALL - ( - - CAST ( NULL AS INTEGER ) ) col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5382
SELECT ALL 83 + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-5382
SELECT ALL 83 + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
86

query II rowsort
SELECT + col1, - col2 * col0 FROM tab1 AS cor0
----
14
-4896
47
-6188
5
-5015

query II rowsort
SELECT - - col1 AS col0, col0 + 74 AS col1 FROM tab0 AS cor0
----
1
171
21
161
81
89

query I rowsort
SELECT ALL - col2 + + + col2 AS col2 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 35 - - 80 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT DISTINCT COUNT( * ) + MAX( + - col2 ) FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-5387
SELECT DISTINCT COUNT ( * ) + MAX ( + - col2 ) FROM tab2
----
-20

query I rowsort
SELECT DISTINCT ( col2 ) + 71 AS col0 FROM tab2
----
111
129
94

query II rowsort
SELECT col1 + col0, col2 FROM tab0
----
108
10
96
47
98
99

onlyif mysql # aggregate syntax: 
query II rowsort label-5390
SELECT COUNT( * ) + + 1 AS col0, + 53 FROM tab0
----
4
53

skipif mysql # not compatible
query II rowsort label-5390
SELECT COUNT ( * ) + + 1 AS col0, + 53 FROM tab0
----
4
53

query II rowsort
SELECT DISTINCT - 86 * + col2 AS col2, col0 FROM tab1 WHERE NOT ( - 63 ) IS NOT NULL
----

query I rowsort
SELECT + - 29 + ( + col0 ) AS col2 FROM tab0 AS cor0
----
-14
58
68

onlyif mysql # DIV for integer division: 
query I rowsort label-5393
SELECT + - 24 * 68 DIV - 21 + + 91 DIV + col2 FROM tab0 cor0
----
77
78
86

skipif mysql # not compatible
query I rowsort label-5393
SELECT + - 24 * 68 / - 21 + + 91 / + col2 FROM tab0 cor0
----
77
78
86

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE - - col1 <> col0
----
1
21
81

query I rowsort
SELECT col0 - + 92 FROM tab1
----
-1
-41
-7

query I rowsort
SELECT ALL + 32 * - - 95 - + + 19 FROM tab2 AS cor0
----
3021
3021
3021

query I rowsort
SELECT + col1 + + col0 + - col0 AS col2 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5398
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5398
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= + - col2
----

query I rowsort
SELECT - + col2 * + col1 * + - 96 FROM tab0 AS cor0
----
20160
365472
9504

query I rowsort
SELECT DISTINCT + ( + col2 ) * + col0 * + col2 + + - col2 FROM tab0
----
33088
8690
950598

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT + 62 NOT IN ( + col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5403
SELECT ALL 4 * + COUNT( * ) AS col1 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-5403
SELECT ALL 4 * + COUNT ( * ) AS col1 FROM tab2
----
12

query III rowsort
SELECT * FROM tab0 WHERE NOT - 41 NOT IN ( col1, + col0 * + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT DISTINCT COUNT( * ) * COUNT( * ) * + COUNT( * ) AS col1 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-5405
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-5406
SELECT 92 * ( - col2 ) DIV - - col2 col0 FROM tab1
----
-92
-92
-92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5406
SELECT 92 * ( - col2 ) / - - col2 col0 FROM tab1
----
-92
-92
-92

query I rowsort
SELECT ALL col0 * - col2 + + 30 AS col0 FROM tab0 AS cor0
----
-675
-840
-9573

onlyif mysql # aggregate syntax: 
query I rowsort label-5408
SELECT DISTINCT - + SUM( 0 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5408
SELECT DISTINCT - + SUM ( 0 ) FROM tab2 cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 61 <> + - 99
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 36 >= - col1
----

query I rowsort
SELECT ALL - col2 / - col0 * 37 + - col0 + 11 + + - col1 AS col2 FROM tab1 AS cor0 WHERE col2 * + - 49 * 12 > - 73 * - col2 - + 4
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> + col2 + 76
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5413
SELECT * FROM tab0 WHERE NOT CAST( NULL AS DECIMAL ) > + + col2 * - + 59
----

skipif mysql # not compatible
query III rowsort label-5413
SELECT * FROM tab0 WHERE NOT CAST ( NULL AS REAL ) > + + col2 * - + 59
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5414
SELECT + MIN( DISTINCT - col1 ), COUNT( * ) AS col2 FROM tab0
----
-81
3

skipif mysql # not compatible
query II rowsort label-5414
SELECT + MIN ( DISTINCT - col1 ), COUNT ( * ) AS col2 FROM tab0
----
-81
3

query II rowsort
SELECT col1 * col1 AS col1, + 95 FROM tab0
----
1
95
441
95
6561
95

query II rowsort
SELECT 20 * - col0, + 90 AS col1 FROM tab1
----
-1020
90
-1700
90
-1820
90

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 11 / col0 NOT IN ( + + col1, 88 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-5418
SELECT DISTINCT - COUNT( - 63 ), 97 + - - SUM( ALL col2 ) AS col0 FROM tab1 AS cor0
----
-3
320

skipif mysql # not compatible
query II rowsort label-5418
SELECT DISTINCT - COUNT ( - 63 ), 97 + - - SUM ( ALL col2 ) AS col0 FROM tab1 AS cor0
----
-3
320

query I rowsort
SELECT DISTINCT + + 98 * - + col2 * + 19 - col2 * - ( + - 23 ) + - 32 FROM tab0 AS cor0
----
-186647
-18882
-88627

query I rowsort
SELECT ALL 13 + + + col2 + + col0 AS col1 FROM tab0 AS cor0
----
110
209
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5421
SELECT DISTINCT - + COUNT( * ) + - - COUNT( * ) + COUNT( * ) DIV 11 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5421
SELECT DISTINCT - + COUNT ( * ) + - - COUNT ( * ) + COUNT ( * ) / 11 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 96 + 38 + + - 24 * col2 = col2
----

query II rowsort
SELECT ALL 26 AS col0, col0 FROM tab2
----
26
46
26
64
26
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 * - 99 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 95 + + col1 AS col0 FROM tab2
----
146
162
172

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5426
SELECT 86 AS col1, + CAST( + 62 AS SIGNED ) AS col2 FROM tab0
----
86
62
86
62
86
62

skipif mysql # not compatible
query II rowsort label-5426
SELECT 86 AS col1, + CAST ( + 62 AS INTEGER ) AS col2 FROM tab0
----
86
62
86
62
86
62

query I rowsort
SELECT ALL - 92 + + col2 + 37 * - col0 * col1 FROM tab1 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT ALL + ( - + 9 ) AS col0 FROM tab0 AS cor0
----
-9
-9
-9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5429
SELECT DISTINCT + - col2 * col1 + - col1 + col2 * + col1 DIV - - CAST( - col1 AS SIGNED ) col2 FROM tab2 cor0
----
-1247
-3197
-4011

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5429
SELECT DISTINCT + - col2 * col1 + - col1 + col2 * + col1 / - - CAST ( - col1 AS INTEGER ) col2 FROM tab2 cor0
----
-1247
-3197
-4011

query I rowsort
SELECT + + ( + 13 ) * 81 * col2 FROM tab1 AS cor0
----
101088
62127
71604

query I rowsort
SELECT - - 39 * - 48 * + 20 AS col0 FROM tab1 AS cor0
----
-37440
-37440
-37440

query I rowsort
SELECT DISTINCT + + 3 AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - 84 * - + 25 + - + col2 + + 97 FROM tab0 AS cor0
----
2098
2150
2187

query I rowsort
SELECT - col1 * + - ( - - col0 ) + + col2 + + 96 AS col2 FROM tab2 AS cor0
----
2465
5064
5179

query I rowsort
SELECT DISTINCT 18 * + - ( - col1 ) + + col0 + col1 FROM tab2 AS cor0
----
1015
1348
1527

query I rowsort
SELECT ALL 2 * + col2 FROM tab2
----
116
46
80

query I rowsort
SELECT + col2 * + 64 FROM tab2
----
1472
2560
3712

onlyif mysql # aggregate syntax: 
query I rowsort label-5438
SELECT DISTINCT - 13 * - COUNT( * ) FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-5438
SELECT DISTINCT - 13 * - COUNT ( * ) FROM tab2
----
39

query I rowsort
SELECT - col0 * + + 62 AS col0 FROM tab0
----
-5394
-6014
-930

query I rowsort
SELECT ALL + col2 * + + 35 AS col2 FROM tab1
----
2065
2380
3360

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT DISTINCT - ( + COUNT( * ) ) * + 9 - 56 FROM tab0
----
-83

skipif mysql # not compatible
query I rowsort label-5441
SELECT DISTINCT - ( + COUNT ( * ) ) * + 9 - 56 FROM tab0
----
-83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5442
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * col0 + - + col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5442
SELECT DISTINCT + CAST ( NULL AS REAL ) * col0 + - + col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col2 + + 73 AS col0 FROM tab1 AS cor0
----
132
141
169

query I rowsort
SELECT - col1 + + + 32 FROM tab0 AS cor0
----
-49
11
31

query III rowsort
SELECT * FROM tab1 WHERE NOT - 85 * - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + + col1 + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5447
SELECT COUNT( * ) AS col1, 26 * - - 13 * - 5 FROM tab1
----
3
-1690

skipif mysql # not compatible
query II rowsort label-5447
SELECT COUNT ( * ) AS col1, 26 * - - 13 * - 5 FROM tab1
----
3
-1690

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 + - + col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT ALL + MIN( ALL 51 ) AS col0 FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5449
SELECT ALL + MIN ( ALL 51 ) AS col0 FROM tab0 AS cor0
----
51

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col0 BETWEEN + col1 AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT ALL + ( - + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5451
SELECT ALL + ( - + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5452
SELECT ALL * FROM tab1 cor0 WHERE NOT ( - - col1 ) + + col0 + - - CAST( + - col2 AS SIGNED ) = + col1 / - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5452
SELECT ALL * FROM tab1 cor0 WHERE NOT ( - - col1 ) + + col0 + - - CAST ( + - col2 AS INTEGER ) = + col1 / - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - 11 + - col2 FROM tab0 AS cor0
----
-36
-88
1

query I rowsort
SELECT DISTINCT col0 + - + col2 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT + - AVG ( ALL col2 ) AS col1 FROM tab2 WHERE NULL NOT BETWEEN - + 84 AND NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + col1 + + 48 col0 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE 83 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5458
SELECT ALL + col1 * + 34 - col1 DIV + - col1 FROM tab1
----
1599
171
477

skipif mysql # not compatible
query I rowsort label-5458
SELECT ALL + col1 * + 34 - col1 / + - col1 FROM tab1
----
1599
171
477

query I rowsort
SELECT ( col0 ) + - col2 FROM tab2
----
17
23
24

query I rowsort
SELECT ALL - col2 - col1 + + - col2 AS col0 FROM tab1 AS cor0
----
-123
-183
-206

query I rowsort
SELECT DISTINCT 15 * + col0 - + 53 FROM tab0 AS cor0
----
1252
1402
172

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + 67 ) col1 FROM tab2 AS cor0
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5463
SELECT ALL CAST( - 58 AS SIGNED ) FROM tab1
----
-58
-58
-58

skipif mysql # not compatible
query I rowsort label-5463
SELECT ALL CAST ( - 58 AS INTEGER ) FROM tab1
----
-58
-58
-58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN - - col0 AND - 94
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col1, col0 AS col0 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL - col1, + 40 * 82 * - col0 AS col0, + col0 * + col1 * 98 + col0 col1 FROM tab2 AS cor0
----
9 values hashing to c73d5b058cf3afcd7e6a92ae44f4dfd7

query II rowsort
SELECT DISTINCT 77 * + ( col2 ) * col0 AS col1, col2 FROM tab2 AS cor0
----
197120
40
334950
58
81466
23

query I rowsort
SELECT DISTINCT + col1 * - + 17 FROM tab1 AS cor0
----
-238
-799
-85

query I rowsort
SELECT 49 + + + col0 AS col0 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
113
124
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT 49 * + COUNT( * ) col1 FROM tab1
----
147

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5470
SELECT 49 * + COUNT ( * ) col1 FROM tab1
----
147

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL > + 2 * + 90
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT - ( - COUNT( DISTINCT - col0 ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5472
SELECT - ( - COUNT ( DISTINCT - col0 ) ) AS col2 FROM tab1
----
3

query I rowsort
SELECT ALL - 28 + - 37 AS col1 FROM tab0 WHERE + - col2 NOT BETWEEN + + col1 - + + 5 AND - ( + - col2 ) / col0 + + + 82
----
-65
-65
-65

query I rowsort
SELECT DISTINCT - col0 * col0 + - - col1 + + col2 * 76 * + col1 AS col1 FROM tab0 AS cor0
----
-1884
289188
8412

query I rowsort
SELECT DISTINCT ( col1 ) * + - 2 FROM tab0 cor0
----
-162
-2
-42

query I rowsort
SELECT DISTINCT + + col1 + - 51 FROM tab0 cor0
----
-30
-50
30

onlyif mysql # DIV for integer division: 
query I rowsort label-5477
SELECT - col0 DIV + - col0 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5477
SELECT - col0 / + - col0 AS col1 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT DISTINCT 86 + - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-5478
SELECT DISTINCT 86 + - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
83

query I rowsort
SELECT DISTINCT col2 + - + col1 FROM tab2
----
-28
-37
-9

query II rowsort
SELECT - col1 AS col2, + 67 AS col1 FROM tab1
----
-14
67
-47
67
-5
67

query I rowsort
SELECT ALL col0 + - + col1 * 69 AS col0 FROM tab2
----
-3473
-4548
-5249

query I rowsort
SELECT ALL col0 - - 32 FROM tab1
----
117
123
83

onlyif mysql # DIV for integer division: 
query I rowsort label-5483
SELECT col1 - + col0 + - 2 DIV col1 FROM tab2
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-5483
SELECT col1 - + col0 + - 2 / col1 FROM tab2
----
-8
13
5

query III rowsort
SELECT * FROM tab0 WHERE + 37 + + col2 IS NULL AND NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IS NOT NULL AND + col2 + + col0 IS NOT NULL
----

query I rowsort
SELECT ALL + + col1 - - col2 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT - col2 + + col1 + - - col0 FROM tab2 AS cor0
----
101
74
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5488
SELECT DISTINCT - 29 DIV COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5488
SELECT DISTINCT - 29 / COUNT ( * ) FROM tab2 AS cor0
----
-9

query I rowsort
SELECT + ( 22 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

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 # CAST syntax: SIGNED type: 
query I rowsort label-5491
SELECT CAST( NULL AS SIGNED ) * - - 23 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5491
SELECT CAST ( NULL AS INTEGER ) * - - 23 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5492
SELECT DISTINCT + + col2 + col2 FROM tab0 AS cor0 WHERE col1 / + CAST( NULL AS SIGNED ) * 82 <> - + col2 * - + col0
----

skipif mysql # not compatible
query I rowsort label-5492
SELECT DISTINCT + + col2 + col2 FROM tab0 AS cor0 WHERE col1 / + CAST ( NULL AS INTEGER ) * 82 <> - + col2 * - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT - COUNT( * ) col2 FROM tab2 AS cor0 WHERE NOT + col0 IN ( - + col2 )
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5493
SELECT - COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NOT + col0 IN ( - + col2 )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5494
SELECT + - ( - - 11 ) AS col2, - CAST( - col1 AS SIGNED ) + + + col0 col2 FROM tab1 AS cor0
----
-11
138
-11
65
-11
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5494
SELECT + - ( - - 11 ) AS col2, - CAST ( - col1 AS INTEGER ) + + + col0 col2 FROM tab1 AS cor0
----
-11
138
-11
65
-11
90

query I rowsort
SELECT DISTINCT - 18 + + col0 AS col1 FROM tab1
----
33
67
73

query I rowsort
SELECT col2 * 46 FROM tab2
----
1058
1840
2668

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( + col1 + - col0 IS NOT NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 89 * - col1 + + + col0 col1 FROM tab0 AS cor0
----
-1782
-7194
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT + COUNT( * ) + + - 22 FROM tab2 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-5499
SELECT + COUNT ( * ) + + - 22 FROM tab2 AS cor0
----
-19

query I rowsort
SELECT DISTINCT - ( col2 ) + 66 + col2 AS col0 FROM tab0 AS cor0
----
66

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 + 69 IS NULL
----

query I rowsort
SELECT DISTINCT + 76 + + + 3 AS col2 FROM tab0 AS cor0
----
79

query III rowsort
SELECT * FROM tab1 WHERE + col2 BETWEEN NULL AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT DISTINCT 6 + - COUNT( * ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5504
SELECT DISTINCT 6 + - COUNT ( * ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5505
SELECT DISTINCT - col2 + - col0 AS col1 FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND col1 - - col2 * col2
----

skipif mysql # not compatible
query I rowsort label-5505
SELECT DISTINCT - col2 + - col0 AS col1 FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND col1 - - col2 * col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( - col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5507
SELECT DISTINCT + 99 DIV - COUNT( * ) AS col2 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-5507
SELECT DISTINCT + 99 / - COUNT ( * ) AS col2 FROM tab1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT DISTINCT 52 * - COUNT( * ) FROM tab1 WHERE NOT ( + 20 / 63 + col2 * col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5508
SELECT DISTINCT 52 * - COUNT ( * ) FROM tab1 WHERE NOT ( + 20 / 63 + col2 * col2 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5509
SELECT DISTINCT SUM( - col0 ) FROM tab1 WHERE NOT + col0 < ( - col1 )
----
-227

skipif mysql # not compatible
query I rowsort label-5509
SELECT DISTINCT SUM ( - col0 ) FROM tab1 WHERE NOT + col0 < ( - col1 )
----
-227

query I rowsort
SELECT col1 + 78 * - col2 FROM tab2
----
-1743
-3043
-4457

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT - ( MAX( col1 ) ) * - 23 FROM tab0
----
1863

skipif mysql # not compatible
query I rowsort label-5511
SELECT - ( MAX ( col1 ) ) * - 23 FROM tab0
----
1863

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5512
SELECT ALL - MAX( ALL + 84 ) FROM tab2 WHERE NULL NOT IN ( CAST( NULL AS SIGNED ) * - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5512
SELECT ALL - MAX ( ALL + 84 ) FROM tab2 WHERE NULL NOT IN ( CAST ( NULL AS INTEGER ) * - col1 )
----
NULL

query I rowsort
SELECT ALL 45 * col0 AS col1 FROM tab1
----
2295
3825
4095

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT + 73 * - COUNT( * ) col0 FROM tab1
----
-219

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5514
SELECT + 73 * - COUNT ( * ) col0 FROM tab1
----
-219

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 + - 37 * 33 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 17 + 15 AS col1 FROM tab1
----
32
32
32

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5517
SELECT DISTINCT * FROM tab0 WHERE col2 + + CAST( + ( + col0 ) AS DECIMAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5517
SELECT DISTINCT * FROM tab0 WHERE col2 + + CAST ( + ( + col0 ) AS REAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 97 * - 43 FROM tab2
----
-4171
-4171
-4171

query I rowsort
SELECT 86 - - col1 FROM tab1
----
100
133
91

query I rowsort
SELECT DISTINCT 58 * col0 AS col2 FROM tab2
----
2668
3712
4350

query III rowsort
SELECT * FROM tab2 WHERE col0 + - col0 IN ( col2 + + col0 * col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5522
SELECT DISTINCT - 16 DIV + 4 FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-5522
SELECT DISTINCT - 16 / + 4 FROM tab0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT MAX( ( + col1 ) ) AS col1 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-5523
SELECT MAX ( ( + col1 ) ) AS col1 FROM tab2 AS cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5524
SELECT DISTINCT + CAST( + col2 AS SIGNED ) AS col0 FROM tab0 cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-5524
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT DISTINCT 86 * COUNT( * ) AS col0 FROM tab2
----
258

skipif mysql # not compatible
query I rowsort label-5525
SELECT DISTINCT 86 * COUNT ( * ) AS col0 FROM tab2
----
258

onlyif mysql # DIV for integer division: 
query I rowsort label-5526
SELECT 13 DIV 9 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5526
SELECT 13 / 9 AS col0 FROM tab0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT ALL MIN( 21 ) AS col2 FROM tab1 cor0
----
21

skipif mysql # not compatible
query I rowsort label-5527
SELECT ALL MIN ( 21 ) AS col2 FROM tab1 cor0
----
21

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 + + 64 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 AS cor0 WHERE 57 < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - 12 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col1 / col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 87 * - col0 + 77 AS col0 FROM tab1 AS cor0
----
-4360
-7318
-7840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5533
SELECT SUM( DISTINCT - - col1 ) * SUM( + CAST( - col1 AS SIGNED ) * col0 ) FROM tab0
----
-323317

skipif mysql # not compatible
query I rowsort label-5533
SELECT SUM ( DISTINCT - - col1 ) * SUM ( + CAST ( - col1 AS INTEGER ) * col0 ) FROM tab0
----
-323317

query I rowsort
SELECT col1 * - + col0 * 88 AS col1 FROM tab2
----
-206448
-433664
-442200

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 IS NULL OR NOT ( NULL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5536
SELECT * FROM tab2 WHERE - col2 + + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5536
SELECT * FROM tab2 WHERE - col2 + + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5537
SELECT ALL - col0 DIV col0 DIV - 12 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5537
SELECT ALL - col0 / col0 / - 12 AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE - 27 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE ( + col1 + - col2 ) NOT IN ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5540
SELECT DISTINCT col2 AS col0 FROM tab2 AS cor0 WHERE NOT CAST( - col1 AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-5540
SELECT DISTINCT col2 AS col0 FROM tab2 AS cor0 WHERE NOT CAST ( - col1 AS INTEGER ) >= NULL
----

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE - col1 + col1 IS NOT NULL
----
51
85
91

query I rowsort
SELECT ALL col1 + + col2 + + col1 * col1 AS col1 FROM tab2 AS cor0
----
2675
4614
6046

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 99 * - col0 ) NOT BETWEEN col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5544
SELECT DISTINCT + 39 + + col1 DIV 25 FROM tab2 AS cor0
----
41
42

skipif mysql # not compatible
query I rowsort label-5544
SELECT DISTINCT + 39 + + col1 / 25 FROM tab2 AS cor0
----
41
42

query I rowsort
SELECT DISTINCT col0 + col0 * - col0 + ( + col0 ) AS col1 FROM tab1
----
-2499
-7055
-8099

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT ALL + COUNT( * ) FROM tab1, tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-5546
SELECT ALL + COUNT ( * ) FROM tab1, tab0 cor0
----
9

query I rowsort
SELECT col0 + - 53 AS col2 FROM tab0
----
-38
34
44

query I rowsort
SELECT - 62 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

query I rowsort
SELECT DISTINCT ( + + 17 ) AS col2 FROM tab2, tab2 AS cor0
----
17

query I rowsort
SELECT ALL - AVG ( ALL col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( + col0 * + col2 ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5551
SELECT * FROM tab2 AS cor0 WHERE CAST( + - 74 AS SIGNED ) NOT IN ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5551
SELECT * FROM tab2 AS cor0 WHERE CAST ( + - 74 AS INTEGER ) NOT IN ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + - 24, + col2 FROM tab2 cor0
----
-24
23
-24
40
-24
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5553
SELECT * FROM tab2 AS cor0 WHERE + CAST( ( - 54 ) AS SIGNED ) / col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5553
SELECT * FROM tab2 AS cor0 WHERE + CAST ( ( - 54 ) AS INTEGER ) / col2 IS NULL
----

query I rowsort
SELECT col0 * - col1 + + + col2 AS col0 FROM tab0 AS cor0
----
-1168
-1817
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 10 * + 70 col1 FROM tab1 AS cor0
----
700
700
700

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) BETWEEN col1 AND - + col1 * + col1
----

query II rowsort
SELECT - 55 - - + col2 AS col1, - col1 + - col2 AS col2 FROM tab1
----
13
-115
4
-64
41
-110

query I rowsort
SELECT ALL + 75 + - + col0 FROM tab2
----
0
11
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT ALL 39 * - 99 - SUM( - col2 ) col2 FROM tab0
----
-3705

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5559
SELECT ALL 39 * - 99 - SUM ( - col2 ) col2 FROM tab0
----
-3705

query I rowsort
SELECT col1 FROM tab2 WHERE NOT + ( - col0 ) IN ( + 87 )
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-5561
SELECT + 88 DIV + - 38 AS col2 FROM tab2
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-5561
SELECT + 88 / + - 38 AS col2 FROM tab2
----
-2
-2
-2

query II rowsort
SELECT ALL col0 * - + 96, - col2 AS col0 FROM tab0
----
-1440
-47
-8352
-10
-9312
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT ( COUNT( * ) ) * 29 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5563
SELECT ( COUNT ( * ) ) * 29 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - ( + col0 ) * 82 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT ALL + SUM( 21 ) AS col0 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-5565
SELECT ALL + SUM ( 21 ) AS col0 FROM tab1
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5566
SELECT DISTINCT + col0 FROM tab1 WHERE - - col1 - - + CAST( NULL AS SIGNED ) < ( NULL )
----

skipif mysql # not compatible
query I rowsort label-5566
SELECT DISTINCT + col0 FROM tab1 WHERE - - col1 - - + CAST ( NULL AS INTEGER ) < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5567
SELECT ALL col0 * + 63 / + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5567
SELECT ALL col0 * + 63 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT - ( + ( COUNT( * ) ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5568
SELECT - ( + ( COUNT ( * ) ) ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - + 35 * - col0 AS col2 FROM tab2 AS cor0
----
1610
2240
2625

onlyif mysql # DIV for integer division: 
query I rowsort label-5570
SELECT DISTINCT col0 DIV 95 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5570
SELECT DISTINCT col0 / 95 FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 36 / - + 95 NOT IN ( - ( - col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT DISTINCT + MAX( DISTINCT - col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5572
SELECT DISTINCT + MAX ( DISTINCT - col1 ) FROM tab2 AS cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5573
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 * + - col2 / - 25 <> - col2 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5573
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 * + - col2 / - 25 <> - col2 * - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5574
SELECT - + 97 col1, COUNT( * ) * + ( + + 9 ) col2 FROM tab0 AS cor0
----
-97
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5574
SELECT - + 97 col1, COUNT ( * ) * + ( + + 9 ) col2 FROM tab0 AS cor0
----
-97
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5575
SELECT - - 31 AS col0, col1 / + - 90 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
31
NULL
31
NULL
31
NULL

skipif mysql # not compatible
query II rowsort label-5575
SELECT - - 31 AS col0, col1 / + - 90 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
31
NULL
31
NULL
31
NULL

query I rowsort
SELECT DISTINCT - - 29 FROM tab2 cor0 WHERE + col0 BETWEEN col0 AND 48
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5577
SELECT + COUNT( * ), COUNT( * ) * - COUNT( * ) DIV ( - + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-5577
SELECT + COUNT ( * ), COUNT ( * ) * - COUNT ( * ) / ( - + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
3
3

query I rowsort
SELECT ALL - 71 + + 68 FROM tab2 AS cor0
----
-3
-3
-3

query I rowsort
SELECT + - col2 * 68 FROM tab2 AS cor0
----
-1564
-2720
-3944

query II rowsort
SELECT ALL + col1, - ( + 64 ) FROM tab0
----
1
-64
21
-64
81
-64

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN ( - col2 / - 98 + - 60 + + col1 / + col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT - COUNT( col0 ) FROM tab0 WHERE ( - 60 / col0 + + col0 - + col0 ) NOT IN ( col0 )
----
-3

skipif mysql # not compatible
query I rowsort label-5582
SELECT - COUNT ( col0 ) FROM tab0 WHERE ( - 60 / col0 + + col0 - + col0 ) NOT IN ( col0 )
----
-3

query I rowsort
SELECT ALL - 73 + + col1 * - + 43 AS col0 FROM tab2
----
-2266
-2954
-3384

query I rowsort
SELECT + col2 + 75 FROM tab1
----
134
143
171

onlyif mysql # DIV for integer division: 
query I rowsort label-5585
SELECT + col1 DIV - col0 + + col1 * + ( - col0 ) FROM tab2 AS cor0
----
-2347
-4929
-5025

skipif mysql # not compatible
query I rowsort label-5585
SELECT + col1 / - col0 + + col1 * + ( - col0 ) FROM tab2 AS cor0
----
-2347
-4929
-5025

query I rowsort
SELECT DISTINCT + 91 * + 95 - - + 44 AS col2 FROM tab0
----
8689

onlyif mysql # aggregate syntax: 
query II rowsort label-5587
SELECT + 66 - + - COUNT( * ), 46 col1 FROM tab0
----
69
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5587
SELECT + 66 - + - COUNT ( * ), 46 col1 FROM tab0
----
69
46

query I rowsort
SELECT DISTINCT - - 41 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5589
SELECT DISTINCT - CAST( + col2 AS SIGNED ), - col2 + 37 AS col0 FROM tab1 AS cor0
----
-59
-22
-68
-31
-96
-59

skipif mysql # not compatible
query II rowsort label-5589
SELECT DISTINCT - CAST ( + col2 AS INTEGER ), - col2 + 37 AS col0 FROM tab1 AS cor0
----
-59
-22
-68
-31
-96
-59

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col0 * - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5591
SELECT + col0 * + + col0 + - + CAST( NULL AS SIGNED ) - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5591
SELECT + col0 * + + col0 + - + CAST ( NULL AS INTEGER ) - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col2 ) * - col0 <= col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * + - 80 * - col0 + + - ( + + col2 ) col1 FROM tab0 AS cor0
----
-18047
-605530
-752819

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT DISTINCT + COUNT( * ) * - MAX( + ( - + col0 ) ) AS col1 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-5594
SELECT DISTINCT + COUNT ( * ) * - MAX ( + ( - + col0 ) ) AS col1 FROM tab0
----
45

query I rowsort
SELECT ALL 73 * + + col1 FROM tab2
----
3723
4891
5621

onlyif mysql # aggregate syntax: 
query I rowsort label-5596
SELECT COUNT( * ) * - 1 FROM tab0 WHERE NOT - col1 * - - col0 * col0 * col0 + 85 + + 13 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5596
SELECT COUNT ( * ) * - 1 FROM tab0 WHERE NOT - col1 * - - col0 * col0 * col0 + 85 + + 13 IS NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col1, + 9 col1 FROM tab1
----
59
9
68
9
96
9

query III rowsort
SELECT DISTINCT