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 * FROM tab1 AS cor0 WHERE NOT NULL < - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5599
SELECT ALL + + 76 * - COUNT( * ) FROM tab2 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-5599
SELECT ALL + + 76 * - COUNT ( * ) FROM tab2 AS cor0
----
-228

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5601
SELECT DISTINCT COUNT( * ) * SUM( 37 ) col1 FROM tab0
----
333

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5601
SELECT DISTINCT COUNT ( * ) * SUM ( 37 ) col1 FROM tab0
----
333

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT DISTINCT MAX( ALL 15 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-5602
SELECT DISTINCT MAX ( ALL 15 ) FROM tab0
----
15

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

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

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

query I rowsort
SELECT DISTINCT - col0 + + col1 + + ( + col2 ) FROM tab1 cor0
----
-21
24
59

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

skipif mysql # not compatible
query I rowsort label-5606
SELECT COUNT ( * ) + ( + 88 ) AS col2 FROM tab0 AS cor0
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5607
SELECT + + MAX( ALL - CAST( + 73 AS SIGNED ) ) + 23, + 33 AS col1 FROM tab2 AS cor0
----
-50
33

skipif mysql # not compatible
query II rowsort label-5607
SELECT + + MAX ( ALL - CAST ( + 73 AS INTEGER ) ) + 23, + 33 AS col1 FROM tab2 AS cor0
----
-50
33

query II rowsort
SELECT ALL + - 43 + - 3 AS col0, ( + 52 ) AS col2 FROM tab2 AS cor0
----
-46
52
-46
52
-46
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5609
SELECT DISTINCT MIN( DISTINCT + CAST( 43 AS SIGNED ) ) + - CAST( + COUNT( * ) AS SIGNED ) * + 91 * + 36 FROM tab2
----
-9785

skipif mysql # not compatible
query I rowsort label-5609
SELECT DISTINCT MIN ( DISTINCT + CAST ( 43 AS INTEGER ) ) + - CAST ( + COUNT ( * ) AS INTEGER ) * + 91 * + 36 FROM tab2
----
-9785

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

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

query II rowsort
SELECT - col1 AS col1, 13 * - 45 FROM tab1
----
-14
-585
-47
-585
-5
-585

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 71 col1 FROM tab0
----
-3337
-7029
-710

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

query I rowsort
SELECT DISTINCT 11 + + 92 AS col1 FROM tab0
----
103

query II rowsort
SELECT DISTINCT col1 AS col2, 42 AS col1 FROM tab2
----
51
42
67
42
77
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5616
SELECT DISTINCT + col2 * CAST( - 17 AS SIGNED ) AS col0 FROM tab1
----
-1003
-1156
-1632

skipif mysql # not compatible
query I rowsort label-5616
SELECT DISTINCT + col2 * CAST ( - 17 AS INTEGER ) AS col0 FROM tab1
----
-1003
-1156
-1632

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

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

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

query II rowsort
SELECT + 57 + col2 * - + 68 AS col0, - col1 AS col2 FROM tab1 AS cor0
----
-3955
-5
-4567
-47
-6471
-14

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

skipif mysql # not compatible
query I rowsort label-5620
SELECT + 24 + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT COUNT( * ) + - - 16 FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-5621
SELECT COUNT ( * ) + - - 16 FROM tab0 AS cor0
----
19

query III rowsort
SELECT * FROM tab2 WHERE - - col1 * + 59 + 4 * - - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5623
SELECT ( + 51 ) + + COUNT( * ) AS col2 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-5623
SELECT ( + 51 ) + + COUNT ( * ) AS col2 FROM tab0
----
54

query I rowsort
SELECT - 18 * - col1 + + - 21 FROM tab0
----
-3
1437
357

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5625
SELECT - col1 * - + CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-5625
SELECT - col1 * - + CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
1215
1827
97

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

query II rowsort
SELECT - 93 AS col2, + col0 - + col2 FROM tab0 AS cor0
----
-93
-2
-93
-32
-93
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5628
SELECT DISTINCT + col0 AS col2, CAST( - 62 AS SIGNED ) * + + col1 FROM tab0 AS cor0
----
15
-5022
87
-1302
97
-62

skipif mysql # not compatible
query II rowsort label-5628
SELECT DISTINCT + col0 AS col2, CAST ( - 62 AS INTEGER ) * + + col1 FROM tab0 AS cor0
----
15
-5022
87
-1302
97
-62

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL IS NOT NULL AND NOT + ( 80 ) NOT IN ( col2 + - col0 * - ( col1 ), - 16 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5630
SELECT col1 * - CAST( + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-5630
SELECT col1 * - CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5631
SELECT + COUNT( * ) DIV + - 88 * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5631
SELECT + COUNT ( * ) / + - 88 * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE - - 38 BETWEEN + 34 - + 50 AND NULL
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5636
SELECT ( + - CAST( NULL AS DECIMAL ) ) * - 93 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5636
SELECT ( + - CAST ( NULL AS REAL ) ) * - 93 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-5637
SELECT MIN ( ALL 78 ) AS col0 FROM tab0 cor0
----
78

query I rowsort
SELECT 23 * + + col2 AS col2 FROM tab0
----
1081
2277
230

onlyif mysql # aggregate syntax: 
query I rowsort label-5639
SELECT SUM( ALL col0 ) col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5639
SELECT SUM ( ALL col0 ) col2 FROM tab0 AS cor0
----
199

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 11 + col2 + + 13 col2 FROM tab0 AS cor0
----
-457
-87
-977

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( - 29 ) * 43 * - 64 col0 FROM tab2 AS cor0
----
-79808
-79808
-79808

query I rowsort
SELECT DISTINCT - - col1 FROM tab1 AS cor0 WHERE col0 <> + col1
----
14
47
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5645
SELECT DISTINCT + + ( - + 1 ) DIV - ( ( COUNT( DISTINCT + col1 ) ) ) + + 46 AS col1 FROM tab1 AS cor0
----
46

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

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

query I rowsort
SELECT ALL + col0 - col1 AS col0 FROM tab1 cor0 WHERE ( 74 ) * col0 + - - col2 - + col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5648
SELECT ALL + + ( + CAST( - - 38 AS SIGNED ) ) FROM tab0 WHERE 57 - - 6 >= - + col1
----
38
38
38

skipif mysql # not compatible
query I rowsort label-5648
SELECT ALL + + ( + CAST ( - - 38 AS INTEGER ) ) FROM tab0 WHERE 57 - - 6 >= - + col1
----
38
38
38

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5651
SELECT + 98 * - - CAST( + + col0 AS SIGNED ) + - 31 + + ( + 88 ) FROM tab1 AS cor0
----
5055
8387
8975

skipif mysql # not compatible
query I rowsort label-5651
SELECT + 98 * - - CAST ( + + col0 AS INTEGER ) + - 31 + + ( + 88 ) FROM tab1 AS cor0
----
5055
8387
8975

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 12 + - 11 BETWEEN + - 13 * + col2 + ( - - 97 ) AND + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - col0 + + - col2 FROM tab0 AS cor0
----
-196
-62
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5654
SELECT + 94 DIV - COUNT( * ) FROM tab1, tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-5654
SELECT + 94 / - COUNT ( * ) FROM tab1, tab0 AS cor0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5655
SELECT ALL - - SUM( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5655
SELECT ALL - - SUM ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT - 33 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

query I rowsort
SELECT - 61 * - 95 FROM tab0 AS cor0
----
5795
5795
5795

query I rowsort
SELECT 72 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
72
72
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5659
SELECT DISTINCT - MIN( + ( - + col0 ) ) AS col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-5659
SELECT DISTINCT - MIN ( + ( - + col0 ) ) AS col2 FROM tab0 AS cor0
----
97

query I rowsort
SELECT ALL ( + + 19 ) FROM tab2
----
19
19
19

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5662
SELECT 49 DIV + col1 AS col0 FROM tab0
----
0
2
49

skipif mysql # not compatible
query I rowsort label-5662
SELECT 49 / + col1 AS col0 FROM tab0
----
0
2
49

query I rowsort
SELECT + col1 * - + col1 + + col2 AS col0 FROM tab1 AS cor0
----
-100
-2141
34

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5665
SELECT ALL + + COUNT( * ) * - SUM( DISTINCT + - ( - col2 ) ) AS col0 FROM tab1 AS cor0 WHERE - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5665
SELECT ALL + + COUNT ( * ) * - SUM ( DISTINCT + - ( - col2 ) ) AS col0 FROM tab1 AS cor0 WHERE - col2 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5666
SELECT - - CAST( NULL AS SIGNED ) AS col2, - col1 col1 FROM tab1 AS cor0
----
NULL
-14
NULL
-47
NULL
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5666
SELECT - - CAST ( NULL AS INTEGER ) AS col2, - col1 col1 FROM tab1 AS cor0
----
NULL
-14
NULL
-47
NULL
-5

query I rowsort
SELECT ALL - 78 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

onlyif mysql # aggregate syntax: 
query I rowsort label-5668
SELECT DISTINCT COUNT( * ) * 96 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
864

skipif mysql # not compatible
query I rowsort label-5668
SELECT DISTINCT COUNT ( * ) * 96 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
864

query III rowsort
SELECT ALL * FROM tab2 WHERE + - 64 * - 45 IS NULL
----

query I rowsort
SELECT + 79 + + col0 + col0 + - col1 + + col2 FROM tab2
----
143
170
220

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5671
SELECT ALL - ( - MAX( + + CAST( NULL AS DECIMAL ) ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5671
SELECT ALL - ( - MAX ( + + CAST ( NULL AS REAL ) ) ) FROM tab2
----
NULL

query II rowsort
SELECT ALL - col0 AS col1, - 99 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-46
-99
-64
-99
-75
-99

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5674
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( 82, + ( + col0 ), CAST( - - col0 AS SIGNED ), - 31, + ( - ( + CAST( NULL AS SIGNED ) ) ) )
----

skipif mysql # not compatible
query III rowsort label-5674
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( 82, + ( + col0 ), CAST ( - - col0 AS INTEGER ), - 31, + ( - ( + CAST ( NULL AS INTEGER ) ) ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 8 NOT BETWEEN - 57 AND + col0
----

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

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

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

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

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

query I rowsort
SELECT - + 94 AS col1 FROM tab0 cor0
----
-94
-94
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT COUNT( - 59 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5680
SELECT COUNT ( - 59 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5681
SELECT ALL + COUNT( * ) + - + SUM( - 3 ) * + 97 AS col0 FROM tab0
----
876

skipif mysql # not compatible
query I rowsort label-5681
SELECT ALL + COUNT ( * ) + - + SUM ( - 3 ) * + 97 AS col0 FROM tab0
----
876

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

query I rowsort
SELECT ALL + + 78 * - col2 FROM tab2 WHERE - col0 <= + + col1 * col0 * col1
----
-1794
-3120
-4524

query III rowsort
SELECT * FROM tab2 WHERE + col1 > col0
----
46
51
23
64
77
40

query III rowsort
SELECT * FROM tab0 WHERE ( NOT ( NULL BETWEEN - 94 + col1 AND + 3 / - - 56 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5686
SELECT 65 + - MAX( col2 ) FROM tab1 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-5686
SELECT 65 + - MAX ( col2 ) FROM tab1 AS cor0
----
-31

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

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

query I rowsort
SELECT + 97 + - col1 AS col1 FROM tab1 AS cor0
----
50
83
92

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

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

query I rowsort
SELECT + 70 + - - 47 FROM tab2 AS cor0
----
117
117
117

onlyif mysql # DIV for integer division: 
query I rowsort label-5691
SELECT DISTINCT 51 DIV + col2 col0 FROM tab2
----
0
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5691
SELECT DISTINCT 51 / + col2 col0 FROM tab2
----
0
1
2

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

query I rowsort
SELECT DISTINCT - + 53 AS col1 FROM tab0 AS cor0
----
-53

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + ( + 21 ) AND + col0 + 9 + + - col2 * - col1 * + 52
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5695
SELECT DISTINCT - + 91 * col0, col0 DIV + + col2 + 5 + - 19 * col0 - + + col1 * + ( - + col0 ) AS col2 FROM tab0 AS cor0
----
-1365
935
-7917
187
-8827
-1741

skipif mysql # not compatible
query II rowsort label-5695
SELECT DISTINCT - + 91 * col0, col0 / + + col2 + 5 + - 19 * col0 - + + col1 * + ( - + col0 ) AS col2 FROM tab0 AS cor0
----
-1365
935
-7917
187
-8827
-1741

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - 78 col0 FROM tab1 AS cor0
----
-1092
-3666
-390

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= + - col1
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5700
SELECT + col1 FROM tab0 WHERE NOT NULL NOT IN ( + + col1, - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5700
SELECT + col1 FROM tab0 WHERE NOT NULL NOT IN ( + + col1, - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5701
SELECT DISTINCT col1 DIV ( - - 95 ) col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5701
SELECT DISTINCT col1 / ( - - 95 ) col2 FROM tab0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 = ( - - 89 ) + + col0 AND col1 IS NULL
----

query I rowsort
SELECT - - 7 + - col1 * - col2 FROM tab1 AS cor0
----
1351
302
3203

query I rowsort
SELECT 2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query II rowsort
SELECT - + col1 AS col2, 67 * 82 + + 65 * + col0 FROM tab1 AS cor0
----
-14
8809
-47
11409
-5
11019

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) = - 76
----

query I rowsort
SELECT - 2 + - + col1 AS col1 FROM tab1 cor0
----
-16
-49
-7

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

query I rowsort
SELECT DISTINCT + - 96 * - - 33 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 + - 48 AND + col0 / + col1 + - - col1
----

query I rowsort
SELECT ALL col2 + 76 FROM tab2
----
116
134
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + 20 col0 FROM tab1
----
105
111
71

query I rowsort
SELECT DISTINCT - ( - 86 ) AS col2 FROM tab2
----
86

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col2 >= + 12
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5715
SELECT + ( CAST( + col1 AS SIGNED ) ) FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5715
SELECT + ( CAST ( + col1 AS INTEGER ) ) FROM tab1 AS cor0
----
14
47
5

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5717
SELECT DISTINCT - COUNT( * ), MAX( DISTINCT + col1 ) AS col1 FROM tab1
----
-3
47

skipif mysql # not compatible
query II rowsort label-5717
SELECT DISTINCT - COUNT ( * ), MAX ( DISTINCT + col1 ) AS col1 FROM tab1
----
-3
47

query I rowsort
SELECT - col1 AS col2 FROM tab1 AS cor0 WHERE NOT - col0 - 48 <= col2
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5720
SELECT ALL - 64 * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-5720
SELECT ALL - 64 * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
192

onlyif mysql # DIV for integer division: 
query I rowsort label-5721
SELECT - 18 DIV 93 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5721
SELECT - 18 / 93 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + 35 * - 0 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5723
SELECT - col1 DIV 14 FROM tab2
----
-3
-4
-5

skipif mysql # not compatible
query I rowsort label-5723
SELECT - col1 / 14 FROM tab2
----
-3
-4
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT + COUNT( col0 ) * - MIN( col1 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5724
SELECT + COUNT ( col0 ) * - MIN ( col1 ) FROM tab0
----
-3

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

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

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

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

query I rowsort
SELECT DISTINCT - - col0 + - 48 + + + 43 AS col2 FROM tab1 cor0
----
46
80
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5728
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE ( col1 ) <= + col1
----
3

skipif mysql # not compatible
query I rowsort label-5728
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE ( col1 ) <= + col1
----
3

query I rowsort
SELECT - + 16 * - 26 AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT + col2 AS col0 FROM tab2 WHERE + 20 * + col0 * - col2 * - col2 / col1 * + col0 IS NOT NULL
----
23
40
58

query I rowsort
SELECT col2 * + + 34 + col1 FROM tab2
----
1437
2039
833

query I rowsort
SELECT ALL + ( - col0 ) - - 88 AS col1 FROM tab0
----
-9
1
73

query I rowsort
SELECT col2 + - col2 + col1 FROM tab1 cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5734
SELECT DISTINCT + - SUM( DISTINCT - 5 ) FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-5734
SELECT DISTINCT + - SUM ( DISTINCT - 5 ) FROM tab0 AS cor0
----
5

query I rowsort
SELECT ALL - + ( + - col1 ) FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ALL + 43 + 7 - col1 + + col1 AS col2 FROM tab1
----
50
50
50

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

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

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

query I rowsort
SELECT + 89 - + + 22 FROM tab2
----
67
67
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5740
SELECT DISTINCT - COUNT( * ) + + MIN( - - 56 ) FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-5740
SELECT DISTINCT - COUNT ( * ) + + MIN ( - - 56 ) FROM tab2
----
53

query II rowsort
SELECT - 38 - - + col2 + + + col1 + - 5 AS col1, + col2 AS col0 FROM tab0
----
-12
10
57
99
85
47

query I rowsort
SELECT DISTINCT + col2 * - col2 - - ( + col2 ) AS col1 FROM tab1
----
-3422
-4556
-9120

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * 46 = - 21
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - col1 AS col2, ( col0 ) * 61 FROM tab0 AS cor0
----
-1
5917
-21
5307
-81
915

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

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

query I rowsort
SELECT ALL + 27 + + col1 AS col2 FROM tab2 AS cor0 WHERE NULL < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = + 26
----

query I rowsort
SELECT DISTINCT - ( - col2 ) * + ( - col2 ) + - col0 AS col2 FROM tab2 AS cor0
----
-1664
-3439
-575

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5750
SELECT CAST( - col2 AS SIGNED ) col2 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5750
SELECT CAST ( - col2 AS INTEGER ) col2 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT + 96 * ( - col1 ) - + + col1 - col1 FROM tab2 AS cor0
----
-4998
-6566
-7546

onlyif mysql # aggregate syntax: 
query II rowsort label-5752
SELECT DISTINCT 49, + MAX( ALL - 7 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
49
-7

skipif mysql # not compatible
query II rowsort label-5752
SELECT DISTINCT 49, + MAX ( ALL - 7 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
49
-7

query I rowsort
SELECT DISTINCT 16 * 12 FROM tab1
----
192

query I rowsort
SELECT ALL ( + - 94 ) FROM tab1
----
-94
-94
-94

query I rowsort
SELECT + 49 + col2 AS col2 FROM tab1
----
108
117
145

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NULL IN ( - col2 * - col1 + + 3, - col2 ) )
----

query I rowsort
SELECT DISTINCT + 82 * - col2 AS col1 FROM tab0 AS cor0
----
-3854
-8118
-820

query I rowsort
SELECT ALL + col2 * + col1 + - 77 AS col1 FROM tab0
----
133
22
3730

query I rowsort
SELECT DISTINCT + - 95 * col1 FROM tab2 AS cor0
----
-4845
-6365
-7315

query I rowsort
SELECT + + 8 + - 19 * ( - - 67 ) - - + ( - + col0 ) FROM tab2 AS cor0
----
-1311
-1329
-1340

query I rowsort
SELECT - 79 + + + 51 AS col2 FROM tab0 AS cor0
----
-28
-28
-28

query I rowsort
SELECT col1 * - col0 + + + 49 AS col0 FROM tab1 AS cor0 WHERE + col1 / + col1 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN + col1 AND - col0
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT MIN( DISTINCT col1 ) col1 FROM tab2
----
51

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

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 25 * - 62 col1 FROM tab2
----
-116250
-71300
-99200

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col1 / - 53 / 3 IS NOT NULL
----

query I rowsort
SELECT 86 * + + col1 FROM tab0
----
1806
6966
86

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

query II rowsort
SELECT - 14 AS col1, col2 * - 55 * col1 AS col0 FROM tab1 AS cor0
----
-14
-16225
-14
-175780
-14
-73920

onlyif mysql # aggregate syntax: 
query II rowsort label-5777
SELECT DISTINCT - 65, MAX( ALL - + 22 ) AS col1 FROM tab2 AS cor0
----
-65
-22

skipif mysql # not compatible
query II rowsort label-5777
SELECT DISTINCT - 65, MAX ( ALL - + 22 ) AS col1 FROM tab2 AS cor0
----
-65
-22

query II rowsort
SELECT DISTINCT - 54, 42 + + col2 - + 13 + - + 18 AS col1 FROM tab1 cor0
----
-54
107
-54
70
-54
79

query I rowsort
SELECT - col2 + 15 FROM tab2 cor0
----
-25
-43
-8

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

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

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

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

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

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

query I rowsort
SELECT ALL col1 + - + col0 + + col1 AS col0 FROM tab0
----
-45
-95
147

query I rowsort
SELECT DISTINCT col0 * 44 AS col0 FROM tab1
----
2244
3740
4004

onlyif mysql # aggregate syntax: 
query I rowsort label-5786
SELECT DISTINCT MAX( col1 ) + + COUNT( * ) FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-5786
SELECT DISTINCT MAX ( col1 ) + + COUNT ( * ) FROM tab2 AS cor0
----
80

query I rowsort
SELECT + - 46 + col1 + col1 + + + 47 AS col2 FROM tab0 AS cor0
----
163
3
43

query I rowsort
SELECT DISTINCT ( - 12 ) FROM tab2 cor0
----
-12

query II rowsort
SELECT 53, 96 + col2 AS col1 FROM tab2 AS cor0
----
53
119
53
136
53
154

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

query I rowsort
SELECT ALL - 1 * - - col1 AS col1 FROM tab2 AS cor0
----
-51
-67
-77

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 ) * - 51 col2 FROM tab2
----
-1173
-2040
-2958

onlyif mysql # aggregate syntax: 
query I rowsort label-5795
SELECT + SUM( + col2 ) * + COUNT( col1 ) AS col0 FROM tab1
----
669

skipif mysql # not compatible
query I rowsort label-5795
SELECT + SUM ( + col2 ) * + COUNT ( col1 ) AS col0 FROM tab1
----
669

query II rowsort
SELECT DISTINCT + ( - - col0 ) AS col0, col0 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5797
SELECT DISTINCT + 20 * + ( col0 ) * - - 28 + col0 DIV 76 * col2 FROM tab1 WHERE NULL IS NULL
----
28560
47659
51028

skipif mysql # not compatible
query I rowsort label-5797
SELECT DISTINCT + 20 * + ( col0 ) * - - 28 + col0 / 76 * col2 FROM tab1 WHERE NULL IS NULL
----
28560
47659
51028

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN - + 13 AND NULL
----

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

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

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

query II rowsort
SELECT DISTINCT + 32, + col0 * + + col0 AS col0 FROM tab1
----
32
2601
32
7225
32
8281

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

query I rowsort
SELECT 20 + + col1 AS col1 FROM tab0 WHERE NOT col0 <= NULL
----

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

skipif mysql # not compatible
query I rowsort label-5804
SELECT ( - - COUNT ( * ) ) AS col0 FROM tab2
----
3

query I rowsort
SELECT + ( - 80 ) AS col1 FROM tab0 AS cor0
----
-80
-80
-80

query I rowsort
SELECT ALL - + 32 AS col2 FROM tab1 AS cor0
----
-32
-32
-32

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 85 < - 60
----

query I rowsort
SELECT ALL - 27 + - + col1 AS col0 FROM tab0 AS cor0
----
-108
-28
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5809
SELECT DISTINCT - - SUM( - - col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-5809
SELECT DISTINCT - - SUM ( - - col0 ) FROM tab0 AS cor0
----
199

query I rowsort
SELECT DISTINCT + 87 AS col0 FROM tab2 AS cor0 WHERE col0 / - - col1 IS NULL
----

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

query III rowsort
SELECT * FROM tab0 WHERE ( NOT + col2 * + 18 * col2 = + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - ( + 31 ) * - - ( - col0 ) FROM tab0
----
2697
3007
465

onlyif mysql # aggregate syntax: 
query I rowsort label-5814
SELECT - COUNT( * ) FROM tab1 WHERE col1 <= 42
----
-2

skipif mysql # not compatible
query I rowsort label-5814
SELECT - COUNT ( * ) FROM tab1 WHERE col1 <= 42
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5815
SELECT ALL - SUM( 57 ) AS col2 FROM tab1
----
-171

skipif mysql # not compatible
query I rowsort label-5815
SELECT ALL - SUM ( 57 ) AS col2 FROM tab1
----
-171

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT 3 * - + 74 + MIN( DISTINCT - col0 ) FROM tab2
----
-297

skipif mysql # not compatible
query I rowsort label-5817
SELECT 3 * - + 74 + MIN ( DISTINCT - col0 ) FROM tab2
----
-297

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5819
SELECT DISTINCT + 82 AS col0, - MIN( + - col2 ) FROM tab2 cor0
----
82
58

skipif mysql # not compatible
query II rowsort label-5819
SELECT DISTINCT + 82 AS col0, - MIN ( + - col2 ) FROM tab2 cor0
----
82
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5820
SELECT + ( + + CAST( - 8 AS SIGNED ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

skipif mysql # not compatible
query I rowsort label-5820
SELECT + ( + + CAST ( - 8 AS INTEGER ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5822
SELECT DISTINCT 28 DIV + col2 - 5 FROM tab2
----
-4
-5

skipif mysql # not compatible
query I rowsort label-5822
SELECT DISTINCT 28 / + col2 - 5 FROM tab2
----
-4
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-5823
SELECT col0 * - col0 * - col0 DIV ( - - col0 ) * - - col0 FROM tab1 AS cor0
----
132651
614125
753571

skipif mysql # not compatible
query I rowsort label-5823
SELECT col0 * - col0 * - col0 / ( - - col0 ) * - - col0 FROM tab1 AS cor0
----
132651
614125
753571

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

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

query I rowsort
SELECT col0 * + - 69 FROM tab1 AS cor0
----
-3519
-5865
-6279

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5827
SELECT ALL + 99 DIV ( + col0 ) FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-5827
SELECT ALL + 99 / ( + col0 ) FROM tab2
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT 35 * - COUNT( * ) * - - MAX( col2 ) FROM tab2
----
-6090

skipif mysql # not compatible
query I rowsort label-5828
SELECT 35 * - COUNT ( * ) * - - MAX ( col2 ) FROM tab2
----
-6090

query I rowsort
SELECT ALL 27 * - - col0 FROM tab2
----
1242
1728
2025

query I rowsort
SELECT 15 * + + 21 * - col2 AS col0 FROM tab2
----
-12600
-18270
-7245

onlyif mysql # aggregate syntax: 
query I rowsort label-5831
SELECT DISTINCT - 30 * + + COUNT( * ) AS col1 FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-5831
SELECT DISTINCT - 30 * + + COUNT ( * ) AS col1 FROM tab1
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-5832
SELECT ALL + ( + col2 ) DIV col2 AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5832
SELECT ALL + ( + col2 ) / col2 AS col2 FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT - - 68 + + + col2 AS col2 FROM tab0 AS cor0
----
115
167
78

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

query I rowsort
SELECT ALL + col0 * + 23 * + - col0 + col0 AS col2 FROM tab2
----
-129300
-48622
-94144

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

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

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

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

query I rowsort
SELECT ALL + 4 + + col1 * + - col0 FROM tab0
----
-1211
-1823
-93

query II rowsort
SELECT col1, - 94 AS col0 FROM tab1
----
14
-94
47
-94
5
-94

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5841
SELECT + col2 AS col2, - CAST( NULL AS DECIMAL ) + + 83 + - col0 AS col0 FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-5841
SELECT + col2 AS col2, - CAST ( NULL AS REAL ) + + 83 + - col0 AS col0 FROM tab2
----
23
NULL
40
NULL
58
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5843
SELECT MIN( DISTINCT + - 68 ) FROM tab1
----
-68

skipif mysql # not compatible
query I rowsort label-5843
SELECT MIN ( DISTINCT + - 68 ) FROM tab1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5844
SELECT DISTINCT + MIN( + ( + + col1 ) ) + - + 95 AS col0 FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-5844
SELECT DISTINCT + MIN ( + ( + + col1 ) ) + - + 95 AS col0 FROM tab1
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-5845
SELECT ALL + 70 AS col0, 52 * + MIN( - col1 ) AS col1 FROM tab2
----
70
-4004

skipif mysql # not compatible
query II rowsort label-5845
SELECT ALL + 70 AS col0, 52 * + MIN ( - col1 ) AS col1 FROM tab2
----
70
-4004

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN NULL AND ( + col0 )
----
15
81
47
97
1
99

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5849
SELECT ALL + CAST( NULL AS SIGNED ) AS col2, + col2 * col2 FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN col1 + CAST( NULL AS SIGNED ) AND - - 79
----

skipif mysql # not compatible
query II rowsort label-5849
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, + col2 * col2 FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN col1 + CAST ( NULL AS INTEGER ) AND - - 79
----

query I rowsort
SELECT - col2 + + ( + col0 ) FROM tab1
----
-45
23
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 92 col0, + col1 FROM tab0
----
92
1
92
21
92
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 47 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 76 IS NULL
----

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

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

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 AS cor0 WHERE NOT + 75 <= + + 38
----
51
85
91

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

query I rowsort
SELECT DISTINCT + + 31 * - - col0 FROM tab0 AS cor0
----
2697
3007
465

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

query I rowsort
SELECT - col0 + - ( + col0 ) * - col1 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT MIN( - ( + + col1 ) ) * - - COUNT( * ) + MAX( - 72 ) AS col2 FROM tab1 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-5859
SELECT MIN ( - ( + + col1 ) ) * - - COUNT ( * ) + MAX ( - 72 ) AS col2 FROM tab1 AS cor0
----
-213

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-10
-47
-99

query II rowsort
SELECT col0 * - col2, ( col2 ) * + 95 AS col2 FROM tab2
----
-1058
2185
-2560
3800
-4350
5510

query I rowsort
SELECT DISTINCT + ( - - col1 ) * - + 90 AS col0 FROM tab0
----
-1890
-7290
-90

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5866
SELECT DISTINCT - ( + + COUNT( * ) ), - MIN( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
-3
-23

skipif mysql # not compatible
query II rowsort label-5866
SELECT DISTINCT - ( + + COUNT ( * ) ), - MIN ( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
-3
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5867
SELECT DISTINCT - - CAST( + 49 AS SIGNED ) + col0 - + + col1 AS col2 FROM tab1 AS cor0
----
129
86
93

skipif mysql # not compatible
query I rowsort label-5867
SELECT DISTINCT - - CAST ( + 49 AS INTEGER ) + col0 - + + col1 AS col2 FROM tab1 AS cor0
----
129
86
93

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5869
SELECT + - ( + col0 ) * + 42 - col1 DIV - 78 AS col0 FROM tab1 AS cor0
----
-2142
-3570
-3822

skipif mysql # not compatible
query I rowsort label-5869
SELECT + - ( + col0 ) * + 42 - col1 / - 78 AS col0 FROM tab1 AS cor0
----
-2142
-3570
-3822

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5870
SELECT + - ( + 65 ) DIV + MAX( ALL 63 ) col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5870
SELECT + - ( + 65 ) / + MAX ( ALL 63 ) col1 FROM tab1 AS cor0
----
-1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 43 * - - col1 >= ( - col0 ) + + 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT DISTINCT + + 96 + - + ( - COUNT( * ) ) + + MAX( + col1 ) - + - 52 FROM tab1 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-5872
SELECT DISTINCT + + 96 + - + ( - COUNT ( * ) ) + + MAX ( + col1 ) - + - 52 FROM tab1 AS cor0
----
198

query I rowsort
SELECT - col2 * - 41 FROM tab0 AS cor0 WHERE col2 * - 20 <> NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5875
SELECT ALL + 45 DIV - col2 + - col0 + + col0 AS col1 FROM tab0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-5875
SELECT ALL + 45 / - col2 + - col0 + + col0 AS col1 FROM tab0
----
-4
0
0

query I rowsort
SELECT - 97 + + col0 FROM tab0
----
-10
-82
0

query I rowsort
SELECT ALL - ( + + col0 ) - 3 + + 74 AS col2 FROM tab2
----
-4
25
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5878
SELECT DISTINCT - COUNT( DISTINCT + - col2 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5878
SELECT DISTINCT - COUNT ( DISTINCT + - col2 ) FROM tab1
----
-3

query I rowsort
SELECT ALL + 43 + + col0 + col0 AS col2 FROM tab2
----
135
171
193

query I rowsort
SELECT ALL + ( - 62 ) AS col2 FROM tab1 WHERE + + col2 >= - + col0
----
-62
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 97 * 97 col0 FROM tab1 AS cor0
----
-9409
-9409
-9409

query I rowsort
SELECT + - 28 * + col2 FROM tab1 AS cor0
----
-1652
-1904
-2688

query I rowsort
SELECT ALL + - 40 - col0 AS col2 FROM tab2 AS cor0
----
-104
-115
-86

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

skipif mysql # not compatible
query I rowsort label-5884
SELECT ALL - COUNT ( ALL - 57 ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT ALL + 9 + - - 71 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - + - col0 * + col0 col1 FROM tab2 WHERE NULL NOT BETWEEN col1 AND NULL
----

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

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

query I rowsort
SELECT DISTINCT + 89 * + - col2 FROM tab2 cor0
----
-2047
-3560
-5162

query I rowsort
SELECT + 78 * + col0 AS col2 FROM tab1 AS cor0
----
3978
6630
7098

query II rowsort
SELECT DISTINCT + col0 AS col2, + col2 AS col0 FROM tab1 AS cor0
----
51
96
85
59
91
68

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT - col2 * + 1 NOT IN ( - col1, col1 )
----

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

skipif mysql # not compatible
query I rowsort label-5892
SELECT + ( - - MIN ( col2 ) ) FROM tab2
----
23

query I rowsort
SELECT 74 * + 80 FROM tab1
----
5920
5920
5920

onlyif mysql # aggregate syntax: 
query I rowsort label-5894
SELECT ALL 88 * + COUNT( * ) AS col1 FROM tab2
----
264

skipif mysql # not compatible
query I rowsort label-5894
SELECT ALL 88 * + COUNT ( * ) AS col1 FROM tab2
----
264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, - 80 + ( - 84 ) * + 72 col2 FROM tab1
----
-14
-6128
-47
-6128
-5
-6128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 14 col2 FROM tab0
----
1218
1358
210

query I rowsort
SELECT ALL - - 57 * + col1 * + - 95 - - 45 FROM tab2 WHERE + + 37 IS NOT NULL
----
-276120
-362760
-416910

query I rowsort
SELECT DISTINCT - 27 * col0 * col1 FROM tab2
----
-133056
-135675
-63342

query I rowsort
SELECT - - 21 * col2 * + col2 - - col1 + 0 + - + 11 + col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= - col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 71 > + + col1
----

query I rowsort
SELECT - 34 * - col1 + - 1 - - col1 FROM tab2
----
1784
2344
2694

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5903
SELECT ALL - COUNT( * ) * - COUNT( * ) * - - 94 FROM tab0 AS cor0
----
846

skipif mysql # not compatible
query I rowsort label-5903
SELECT ALL - COUNT ( * ) * - COUNT ( * ) * - - 94 FROM tab0 AS cor0
----
846

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5906
SELECT DISTINCT + + COUNT( * ) DIV - 26 * 47 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5906
SELECT DISTINCT + + COUNT ( * ) / - 26 * 47 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + col1 * + col1 * + 66 FROM tab0 AS cor0
----
29106
433026
66

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 70, col1 + - - col1 + 80 col1 FROM tab1
----
70
108
70
174
70
90

query I rowsort
SELECT ALL col1 - + + col1 * - col2 FROM tab0
----
100
231
3888

query II rowsort
SELECT DISTINCT + col0 + - - ( - col0 ), - 2 - - col2 AS col1 FROM tab1
----
0
57
0
66
0
94

query I rowsort
SELECT + 72 - + + 47 FROM tab2
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5913
SELECT ALL - COUNT( * ) FROM tab2 WHERE - col2 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-5913
SELECT ALL - COUNT ( * ) FROM tab2 WHERE - col2 < NULL
----
0

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

query I rowsort
SELECT - + 97 * col1 FROM tab2 cor0
----
-4947
-6499
-7469

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

skipif mysql # not compatible
query I rowsort label-5916
SELECT + COUNT ( 44 ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5917
SELECT ALL ( MIN( ( + col2 ) ) ) - + 74 FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-5917
SELECT ALL ( MIN ( ( + col2 ) ) ) - + 74 FROM tab1
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5918
SELECT DISTINCT * FROM tab1 WHERE CAST( col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5918
SELECT DISTINCT * FROM tab1 WHERE CAST ( col1 AS INTEGER ) IS NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5920
SELECT MIN( + CAST( - col0 AS SIGNED ) ) * MAX( col1 ) FROM tab1 WHERE - ( col0 ) / + col0 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5920
SELECT MIN ( + CAST ( - col0 AS INTEGER ) ) * MAX ( col1 ) FROM tab1 WHERE - ( col0 ) / + col0 = NULL
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5921
SELECT + SUM ( ALL CAST ( NULL AS INTEGER ) ) - ( COUNT ( * ) ) * 90 FROM tab2
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5923
SELECT col1 + + 47 DIV col1 FROM tab0
----
23
48
81

skipif mysql # not compatible
query I rowsort label-5923
SELECT col1 + + 47 / col1 FROM tab0
----
23
48
81

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

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

query I rowsort
SELECT ALL - col0 * col1 FROM tab2 WHERE NOT + 40 BETWEEN ( NULL ) AND + col2
----
-2346

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5927
SELECT * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5927
SELECT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( col1 ) FROM tab1 WHERE ( NULL ) IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT DISTINCT COUNT( + col2 ) col2 FROM tab2 WHERE NOT NULL <= - 83
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5929
SELECT DISTINCT COUNT ( + col2 ) col2 FROM tab2 WHERE NOT NULL <= - 83
----
0

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

skipif mysql # not compatible
query I rowsort label-5930
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 WHERE NOT - 58 IS NULL
----
3

query I rowsort
SELECT ALL col1 * col2 AS col2 FROM tab2 WHERE NULL > ( col2 )
----

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

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col2 * col2 ) BETWEEN + 90 AND ( 84 )
----

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

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

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

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

query I rowsort
SELECT 83 + + col0 AS col2 FROM tab0 AS cor0
----
170
180
98

query I rowsort
SELECT ALL ( 2 ) * - 67 AS col0 FROM tab1 cor0
----
-134
-134
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT SUM( ALL - 31 ) * 89 AS col0 FROM tab0
----
-8277

skipif mysql # not compatible
query I rowsort label-5939
SELECT SUM ( ALL - 31 ) * 89 AS col0 FROM tab0
----
-8277

onlyif mysql # aggregate syntax: 
query I rowsort label-5940
SELECT ALL COUNT( * ) * 7 FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-5940
SELECT ALL COUNT ( * ) * 7 FROM tab1 AS cor0
----
21

query I rowsort
SELECT col1 - 47 AS col0 FROM tab1 AS cor0
----
-33
-42
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5943
SELECT DISTINCT - 87 DIV COUNT( * ) FROM tab0 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-5943
SELECT DISTINCT - 87 / COUNT ( * ) FROM tab0 AS cor0
----
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 31 * + 19 col1 FROM tab1 AS cor0
----
-589
-589
-589

query I rowsort
SELECT ALL + 24 * col0 + + 79 FROM tab0 AS cor0
----
2167
2407
439

onlyif mysql # DIV for integer division: 
query I rowsort label-5946
SELECT - col2 + 11 DIV col0 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5946
SELECT - col2 + 11 / col0 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5947
SELECT ALL CAST( + col2 AS SIGNED ) * col1 FROM tab0 AS cor0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-5947
SELECT ALL CAST ( + col2 AS INTEGER ) * col1 FROM tab0 AS cor0
----
210
3807
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT DISTINCT - 93 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-5949
SELECT DISTINCT - 93 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-279

onlyif mysql # aggregate syntax: 
query I rowsort label-5950
SELECT DISTINCT + + MIN( ALL 6 ) * + 2 + + COUNT( * ) FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-5950
SELECT DISTINCT + + MIN ( ALL 6 ) * + 2 + + COUNT ( * ) FROM tab1 AS cor0
----
15

query I rowsort
SELECT DISTINCT - col0 * + 47 FROM tab2 cor0
----
-2162
-3008
-3525

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 45 + col2 * col0 col2 FROM tab0 AS cor0
----
660
825
9558

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5953
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST( col2 AS SIGNED ) < ( NULL )
----

skipif mysql # not compatible
query III rowsort label-5953
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST ( col2 AS INTEGER ) < ( NULL )
----

query I rowsort
SELECT ALL 51 FROM tab0 WHERE NULL BETWEEN ( + col0 + col0 ) AND NULL
----

query I rowsort
SELECT - col2 AS col0 FROM tab2 WHERE NULL < ( col2 * - 58 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5956
SELECT + COUNT( * ) + + + 33 * COUNT( * ) AS col1 FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-5956
SELECT + COUNT ( * ) + + + 33 * COUNT ( * ) AS col1 FROM tab0
----
102

query I rowsort
SELECT DISTINCT col0 + + - col0 + - col1 AS col0 FROM tab2
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-5958
SELECT DISTINCT + col0 * - - col0 - + 27 DIV - col1 AS col0 FROM tab1
----
2602
7230
8281

skipif mysql # not compatible
query I rowsort label-5958
SELECT DISTINCT + col0 * - - col0 - + 27 / - col1 AS col0 FROM tab1
----
2602
7230
8281

onlyif mysql # DIV for integer division: 
query I rowsort label-5959
SELECT ALL - ( + 87 ) DIV - col2 - - col0 * - 17 AS col1 FROM tab1
----
-1444
-1546
-867

skipif mysql # not compatible
query I rowsort label-5959
SELECT ALL - ( + 87 ) / - col2 - - col0 * - 17 AS col1 FROM tab1
----
-1444
-1546
-867

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

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

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

skipif mysql # not compatible
query III rowsort label-5961
SELECT ALL * FROM tab0 WHERE - CAST ( NULL AS INTEGER ) <= col1
----

query III rowsort
SELECT * FROM tab0 WHERE + col2 * - col0 + col1 * - col1 <= NULL
----

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

query I rowsort
SELECT DISTINCT col0 * + 87 AS col2 FROM tab2
----
4002
5568
6525

onlyif mysql # DIV for integer division: 
query I rowsort label-5965
SELECT ALL col0 * col0 DIV + ( + 64 ) + - col1 col2 FROM tab0 AS cor0
----
-78
146
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5965
SELECT ALL col0 * col0 / + ( + 64 ) + - col1 col2 FROM tab0 AS cor0
----
-78
146
97

query I rowsort
SELECT ALL - 7 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
-7
-7
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5967
SELECT 75 FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IN ( col0 * col1 )
----

skipif mysql # not compatible
query I rowsort label-5967
SELECT 75 FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IN ( col0 * col1 )
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5969
SELECT ALL + COUNT( * ) * CAST( COUNT( * ) AS SIGNED ) + + SUM( DISTINCT + col1 ) FROM tab1 WHERE NOT ( NULL ) > ( - 4 + + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5969
SELECT ALL + COUNT ( * ) * CAST ( COUNT ( * ) AS INTEGER ) + + SUM ( DISTINCT + col1 ) FROM tab1 WHERE NOT ( NULL ) > ( - 4 + + col0 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5971
SELECT COUNT( * ) * 57 - + 27 * + 55 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-972

skipif mysql # not compatible
query I rowsort label-5971
SELECT COUNT ( * ) * 57 - + 27 * + 55 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-972

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5972
SELECT - MAX( - 82 ) DIV MIN( ALL 66 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5972
SELECT - MAX ( - 82 ) / MIN ( ALL 66 ) FROM tab0 AS cor0
----
1

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - 61 col0 FROM tab1 AS cor0
----
-14
-47
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-5975
SELECT DISTINCT + + col1 DIV - - 16 AS col1 FROM tab2 cor0
----
3
4

skipif mysql # not compatible
query I rowsort label-5975
SELECT DISTINCT + + col1 / - - 16 AS col1 FROM tab2 cor0
----
3
4

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

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

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

skipif mysql # not compatible
query II rowsort label-5977
SELECT + COUNT ( * ) AS col1, + 97 FROM tab0 AS cor0
----
3
97

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5979
SELECT ALL CAST( col2 AS SIGNED ) FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5979
SELECT ALL CAST ( col2 AS INTEGER ) FROM tab2 cor0
----
23
40
58

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

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

query I rowsort
SELECT ALL - col0 + + 61 * - 27 FROM tab2
----
-1693
-1711
-1722

query I rowsort
SELECT ALL 42 * - 57 AS col0 FROM tab0
----
-2394
-2394
-2394

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5983
SELECT - col0 * + CAST( + + 29 AS SIGNED ) AS col2 FROM tab1
----
-1479
-2465
-2639

skipif mysql # not compatible
query I rowsort label-5983
SELECT - col0 * + CAST ( + + 29 AS INTEGER ) AS col2 FROM tab1
----
-1479
-2465
-2639

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT SUM( DISTINCT - 87 ) FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-5984
SELECT SUM ( DISTINCT - 87 ) FROM tab1
----
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col1 col1 FROM tab2 WHERE - - col0 NOT BETWEEN ( 81 ) AND ( - col1 )
----
2346
4928
5025

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5988
SELECT DISTINCT CAST( + 6 AS SIGNED ) + col2 AS col0 FROM tab1 AS cor0 WHERE 55 + - 90 BETWEEN 17 + + col1 AND ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-5988
SELECT DISTINCT CAST ( + 6 AS INTEGER ) + col2 AS col0 FROM tab1 AS cor0 WHERE 55 + - 90 BETWEEN 17 + + col1 AND ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
SELECT DISTINCT 56 + + + MAX( 83 ) AS col0 FROM tab2 AS cor0
----
139

skipif mysql # not compatible
query I rowsort label-5989
SELECT DISTINCT 56 + + + MAX ( 83 ) AS col0 FROM tab2 AS cor0
----
139

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col2 + - - col1 * col2 col0 FROM tab2
----
1201
3117
3895

query I rowsort
SELECT + 92 FROM tab0 WHERE NULL IS NOT NULL OR col1 + col2 IS NOT NULL
----
92
92
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT + ( SUM( + col0 ) ) * COUNT( * ) * COUNT( - 88 ) FROM tab0
----
1791

skipif mysql # not compatible
query I rowsort label-5992
SELECT + ( SUM ( + col0 ) ) * COUNT ( * ) * COUNT ( - 88 ) FROM tab0
----
1791

query I rowsort
SELECT + - 80 * + - 32 + col2 - + col1 + 6 * ( - col2 ) AS col2 FROM tab2 AS cor0
----
2203
2283
2394

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

query I rowsort
SELECT - - ( - 80 ) - + - col1 AS col2 FROM tab0 AS cor0
----
-59
-79
1

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

query I rowsort
SELECT DISTINCT - 21 / 42 + col2 AS col0 FROM tab2 AS cor0 WHERE NOT col2 + - col0 - - - col0 NOT IN ( ( - 0 ) ) AND NOT - col0 BETWEEN - col1 AND - col0
----

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

query I rowsort
SELECT DISTINCT col2 + - 90 AS col2 FROM tab1 WHERE ( NOT ( + ( + col0 ) ) < ( - col0 ) )
----
-22
-31
6

query I rowsort
SELECT col2 - 35 AS col2 FROM tab0
----
-25
12
64

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6002
SELECT - COUNT( * ) - 95 * 59 FROM tab2
----
-5608

skipif mysql # not compatible
query I rowsort label-6002
SELECT - COUNT ( * ) - 95 * 59 FROM tab2
----
-5608

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6004
SELECT - 97 AS col1, - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) * col1 FROM tab2 WHERE NOT ( NOT NULL IS NULL )
----
-97
NULL
-97
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-6004
SELECT - 97 AS col1, - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) * col1 FROM tab2 WHERE NOT ( NOT NULL IS NULL )
----
-97
NULL
-97
NULL
-97
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT 69 * - 11 + col2 - - col1 < - col2
----

query I rowsort
SELECT ALL col0 * + 78 * - 98 AS col0 FROM tab2
----
-351624
-489216
-573300

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

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

skipif mysql # not compatible
query I rowsort label-6008
SELECT - CAST ( - MAX ( DISTINCT + + ( col2 ) ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
99

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6009
SELECT + COUNT ( * ) * - - 72 col1 FROM tab2 AS cor0
----
216

query I rowsort
SELECT ALL + col2 * + + col1 * - + col0 * + - col2 AS col2 FROM tab0 AS cor0
----
182700
2683935
950697

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

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

query I rowsort
SELECT - 70 * - + 18 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ec72c852c38f30b78ecb2b2dd9b13f0f

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col0 ) NOT BETWEEN col0 * 44 AND - - col0
----

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

query I rowsort
SELECT - - 61 FROM tab2 cor0
----
61
61
61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT + MAX( + + 69 ) FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
69

skipif mysql # not compatible
query I rowsort label-6018
SELECT + MAX ( + + 69 ) FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
69

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6021
SELECT ALL + CAST ( NULL AS INTEGER ) * - 32 + + COUNT ( * ) col1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT + ( + - 79 ) * - 64 + ( + - col0 ) AS col0 FROM tab0 AS cor0
----
4959
4969
5041

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

query I rowsort
SELECT + col0 * - col0 * + col0 + + col2 FROM tab2
----
-262104
-421817
-97313

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

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

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

query II rowsort
SELECT DISTINCT ( - col2 ) * col0 - 15, col2 + col2 AS col0 FROM tab2
----
-1073
46
-2575
80
-4365
116

query I rowsort
SELECT - 53 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

onlyif mysql # aggregate syntax: 
query I rowsort label-6029
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 WHERE NULL NOT IN ( 73 )
----
0

skipif mysql # not compatible
query I rowsort label-6029
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 WHERE NULL NOT IN ( 73 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <= 89
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6031
SELECT + col1 + 81 DIV - col0 + 30 + col1 FROM tab0
----
187
32
72

skipif mysql # not compatible
query I rowsort label-6031
SELECT + col1 + 81 / - col0 + 30 + col1 FROM tab0
----
187
32
72

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

query I rowsort
SELECT DISTINCT + - 32 - 48 AS col0 FROM tab0 AS cor0
----
-80

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT NULL IN ( - 1 / - col2 * - col1 ) ) OR NOT + col1 IN ( - 7 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 >= + 75
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6037
SELECT ALL SUM( 97 ) AS col0 FROM tab2
----
291

skipif mysql # not compatible
query I rowsort label-6037
SELECT ALL SUM ( 97 ) AS col0 FROM tab2
----
291

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NOT - - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6039
SELECT 26 DIV 30 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6039
SELECT 26 / 30 FROM tab1
----
0
0
0

query II rowsort
SELECT DISTINCT col0 * - ( col2 ), col0 + - col1 * + col1 AS col1 FROM tab1
----
-4896
-145
-5015
60
-6188
-2118

onlyif mysql # aggregate syntax: 
query II rowsort label-6041
SELECT + COUNT( * ), - 34 col0 FROM tab2
----
3
-34

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6044
SELECT + + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6044
SELECT + + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 44 * - + 47 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5dcb2b44f46dfa1bd36261238e9bb8df

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT ( - + MIN( - - 85 ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-85

skipif mysql # not compatible
query I rowsort label-6046
SELECT ( - + MIN ( - - 85 ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-85

query I rowsort
SELECT - + 63 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6049
SELECT DISTINCT - ( - COUNT( * ) ) * + + 91 FROM tab1 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-6049
SELECT DISTINCT - ( - COUNT ( * ) ) * + + 91 FROM tab1 AS cor0
----
273

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6050
SELECT ALL + + ( COUNT( * ) ) FROM tab0 AS cor0 WHERE 76 + + CAST( NULL AS DECIMAL ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-6050
SELECT ALL + + ( COUNT ( * ) ) FROM tab0 AS cor0 WHERE 76 + + CAST ( NULL AS REAL ) = NULL
----
0

query II rowsort
SELECT ALL 70 + + col1, col2 FROM tab0 AS cor0
----
151
47
71
99
91
10

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

query II rowsort
SELECT ALL col0 + + col1 AS col1, - 15 FROM tab0 AS cor0
----
108
-15
96
-15
98
-15

query I rowsort
SELECT ALL col0 + - + 76 FROM tab2 AS cor0
----
-1
-12
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6055
SELECT ( + 24 ) * + COUNT( * ) FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-6055
SELECT ( + 24 ) * + COUNT ( * ) FROM tab1
----
72

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 7 * - + col0 col0, - 73 FROM tab1
----
-357
-73
-595
-73
-637
-73

query I rowsort
SELECT ( col0 ) * + - col2 * - 58 AS col0 FROM tab1
----
283968
290870
358904

query II rowsort
SELECT ALL - col1 * + - col1 AS col2, 52 AS col0 FROM tab2
----
2601
52
4489
52
5929
52

query I rowsort
SELECT ( 24 ) * + col0 FROM tab0
----
2088
2328
360

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 98 * + + 0 + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6062
SELECT ALL - MAX( DISTINCT - - 15 ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-15

skipif mysql # not compatible
query I rowsort label-6062
SELECT ALL - MAX ( DISTINCT - - 15 ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-15

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6064
SELECT DISTINCT - SUM( ALL + ( + 14 ) ) FROM tab2 AS cor0 WHERE NOT + ( 2 ) >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6064
SELECT DISTINCT - SUM ( ALL + ( + 14 ) ) FROM tab2 AS cor0 WHERE NOT + ( 2 ) >= NULL
----
NULL

query I rowsort
SELECT DISTINCT + 98 AS col2 FROM tab1 cor0
----
98

query II rowsort
SELECT - + col2 + + 99 AS col2, + col2 AS col2 FROM tab2 AS cor0
----
41
58
59
40
76
23

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

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

query II rowsort
SELECT 87 AS col2, - 18 FROM tab0 AS cor0
----
87
-18
87
-18
87
-18

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

query I rowsort
SELECT ALL + + 73 FROM tab2 cor0
----
73
73
73

query II rowsort
SELECT ALL 37 AS col0, - 25 AS col0 FROM tab1 AS cor0
----
37
-25
37
-25
37
-25

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - 13 NOT IN ( + col2 )
----

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

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

query I rowsort
SELECT + + col1 * + ( - - 44 ) FROM tab2 cor0
----
2244
2948
3388

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6077
SELECT - 20 DIV + col2 AS col1 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-6077
SELECT - 20 / + col2 AS col1 FROM tab0
----
-2
0
0

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 WHERE NOT + col0 IS NULL
----
51
67
77

query I rowsort
SELECT ALL + col1 / + + col1 * + 42 + + col0 + + 25 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - 66 IN ( col2 * col0 + + col0, + 95 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6081
SELECT - col1 DIV + 90 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6081
SELECT - col1 / + 90 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 39 * + - col1 AS col1 FROM tab2 cor0
----
1989
2613
3003

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL > - 64
----

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

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

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

query I rowsort
SELECT ALL 31 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT DISTINCT + 88 * - col0 + - 19 AS col2 FROM tab0 AS cor0
----
-1339
-7675
-8555

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE 24 * + + col0 < ( + 9 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6089
SELECT col1 DIV + + col2 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6089
SELECT col1 / + + col2 FROM tab0 AS cor0
----
0
1
2

query II rowsort
SELECT + col1, + 38 + - - col1 - + + 95 + 76 FROM tab2 AS cor0
----
51
70
67
86
77
96

onlyif mysql # DIV for integer division: 
query II rowsort label-6091
SELECT - col2 DIV col1 DIV - 36 AS col2, - col1 DIV 33 col0 FROM tab1 AS cor0
----
0
-1
0
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6091
SELECT - col2 / col1 / - 36 AS col2, - col1 / 33 col0 FROM tab1 AS cor0
----
0
-1
0
0
0
0

query I rowsort
SELECT col2 + + 46 AS col2 FROM tab1 cor0
----
105
114
142

query I rowsort
SELECT DISTINCT - - col1 * + col2 + - col1 FROM tab0 AS cor0
----
189
3726
98

query I rowsort
SELECT DISTINCT + 85 + - 67 AS col0 FROM tab0 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6095
SELECT ALL - 71 + + 65 + MIN( 58 ) FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-6095
SELECT ALL - 71 + + 65 + MIN ( 58 ) FROM tab0
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-6096
SELECT DISTINCT col0 - 13 DIV - col2 AS col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6096
SELECT DISTINCT col0 - 13 / - col2 AS col0 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query II rowsort label-6097
SELECT ALL COUNT( * ) * - COUNT( * ), 44 AS col1 FROM tab0
----
-9
44

skipif mysql # not compatible
query II rowsort label-6097
SELECT ALL COUNT ( * ) * - COUNT ( * ), 44 AS col1 FROM tab0
----
-9
44

query I rowsort
SELECT + col0 * 35 + col2 - - col0 AS col0 FROM tab2
----
1679
2344
2758

onlyif mysql # aggregate syntax: 
query I rowsort label-6099
SELECT + COUNT( * ) + COUNT( * ) - + 45 * - + 41 AS col1 FROM tab0
----
1851

skipif mysql # not compatible
query I rowsort label-6099
SELECT + COUNT ( * ) + COUNT ( * ) - + 45 * - + 41 AS col1 FROM tab0
----
1851

query I rowsort
SELECT 24 * + + col1 FROM tab0
----
1944
24
504

query I rowsort
SELECT - - 3 * - ( + + col0 ) AS col1 FROM tab1 AS cor0
----
-153
-255
-273

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

skipif mysql # not compatible
query II rowsort label-6102
SELECT - COUNT ( * ) AS col0, + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-3
3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6104
SELECT - + 65 DIV + + col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6104
SELECT - + 65 / + + col2 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT col0 + 36 + col2 * - - ( + col2 ) AS col1 FROM tab1 AS cor0
----
3602
4751
9303

onlyif mysql # aggregate syntax: 
query I rowsort label-6106
SELECT DISTINCT - COUNT( * ) + - + MAX( DISTINCT + col1 ) AS col0 FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-6106
SELECT DISTINCT - COUNT ( * ) + - + MAX ( DISTINCT + col1 ) AS col0 FROM tab0
----
-84

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 - + col2 * - 48 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6109
SELECT DISTINCT - 80 DIV 56 DIV 49 + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6109
SELECT DISTINCT - 80 / 56 / 49 + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-3

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6111
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) * + col0 = - col1
----

skipif mysql # not compatible
query III rowsort label-6111
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) * + col0 = - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6112
SELECT + ( + 14 ) DIV MIN( ALL 83 ) DIV + COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6112
SELECT + ( + 14 ) / MIN ( ALL 83 ) / + COUNT ( * ) FROM tab1
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6114
SELECT - 5 AS col0 FROM tab2 AS cor0 WHERE NOT ( 39 / CAST( NULL AS SIGNED ) ) IS NOT NULL
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-6114
SELECT - 5 AS col0 FROM tab2 AS cor0 WHERE NOT ( 39 / CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
-5
-5
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6115
SELECT DISTINCT CAST( NULL AS SIGNED ) + - + 36 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6115
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - + 36 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT 84 + - col0 FROM tab2
----
20
38
9

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NOT NULL
----

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

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

query I rowsort
SELECT - 18 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
-18
-18
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-6120
SELECT ALL - col1 * col2 DIV 69 AS col0 FROM tab0 AS cor0
----
-1
-3
-55

skipif mysql # not compatible
query I rowsort label-6120
SELECT ALL - col1 * col2 / 69 AS col0 FROM tab0 AS cor0
----
-1
-3
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
23
40
58

query II rowsort
SELECT DISTINCT + col2 + + col1, + 50 - - - col2 AS col1 FROM tab1 AS cor0
----
110
-46
115
-18
64
-9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 85 / - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col0 * - col1 * - col0 + 3 + - col2 * col1 * + col1 * + - col2 + + col2 col2 FROM tab1 AS cor0
----
2316231
267712
28507216

onlyif mysql # DIV for integer division: 
query I rowsort label-6125
SELECT DISTINCT col1 DIV + 9 + - col1 FROM tab1
----
-13
-42
-5

skipif mysql # not compatible
query I rowsort label-6125
SELECT DISTINCT col1 / + 9 + - col1 FROM tab1
----
-13
-42
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6126
SELECT DISTINCT + COUNT( * ) * - + ( + 52 ) - 47 AS col0 FROM tab0
----
-203

skipif mysql # not compatible
query I rowsort label-6126
SELECT DISTINCT + COUNT ( * ) * - + ( + 52 ) - 47 AS col0 FROM tab0
----
-203

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

query I rowsort
SELECT ALL 94 * col0 AS col0 FROM tab2
----
4324
6016
7050

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT MIN( DISTINCT 16 ) FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-6129
SELECT MIN ( DISTINCT 16 ) FROM tab2
----
16

query I rowsort
SELECT DISTINCT + 95 + - 26 * + 58 + - - col0 AS col0 FROM tab0
----
-1316
-1326
-1398

onlyif mysql # aggregate syntax: 
query I rowsort label-6131
SELECT - COUNT( * ) - + MIN( + col2 ) AS col1 FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-6131
SELECT - COUNT ( * ) - + MIN ( + col2 ) AS col1 FROM tab2
----
-26

query I rowsort
SELECT + col0 AS col2 FROM tab2 WHERE col0 < - col2 * - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6133
SELECT ALL 40 - + SUM( DISTINCT + + 89 ) col2 FROM tab1
----
-49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6133
SELECT ALL 40 - + SUM ( DISTINCT + + 89 ) col2 FROM tab1
----
-49

query I rowsort
SELECT ALL col0 * - col1 * col2 AS col1 FROM tab0
----
-18270
-57105
-9603

query III rowsort
SELECT * FROM tab0 WHERE + col0 IN ( + col2, + ( - col0 ), - 21 + - col2 / - col0 * - 75 )
----

query I rowsort
SELECT 9 + + - col0 FROM tab0 AS cor0
----
-6
-78
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-6137
SELECT ALL + + 3 DIV - col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6137
SELECT ALL + + 3 / - col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 51 + + 37 FROM tab0 AS cor0
----
-14
-14
-14

query I rowsort
SELECT + + col1 * 12 + - 80 AS col2 FROM tab2 cor0
----
532
724
844

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

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

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

query I rowsort
SELECT 61 * + + col1 FROM tab0 AS cor0
----
1281
4941
61

query II rowsort
SELECT col2, + 33 FROM tab2
----
23
33
40
33
58
33

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6145
SELECT DISTINCT + MAX( 28 ) DIV + 5 FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-6145
SELECT DISTINCT + MAX ( 28 ) / + 5 FROM tab2
----
5

query I rowsort
SELECT + + 38 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT DISTINCT - + 50 * 55 AS col0 FROM tab1 AS cor0
----
-2750

onlyif mysql # aggregate syntax: 
query II rowsort label-6148
SELECT - COUNT( ALL col0 ) * + SUM( - - col2 ), 15 AS col1 FROM tab2 AS cor0
----
-363
15

skipif mysql # not compatible
query II rowsort label-6148
SELECT - COUNT ( ALL col0 ) * + SUM ( - - col2 ), 15 AS col1 FROM tab2 AS cor0
----
-363
15

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) = + col0 * + 35 + - + ( - - col1 ) * col2
----

query II rowsort
SELECT ALL 53 AS col0, - col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6153
SELECT + MAX( + + col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-6153
SELECT + MAX ( + + col0 ) FROM tab2
----
75

query I rowsort
SELECT - col0 + col2 * + + col1 FROM tab2
----
1127
3016
3811

query I rowsort
SELECT ALL + - 68 + + - col0 FROM tab0 AS cor0
----
-155
-165
-83

query I rowsort
SELECT + 69 * + col0 + - + col1 AS col1 FROM tab1 AS cor0
----
3505
5860
6232

onlyif mysql # aggregate syntax: 
query I rowsort label-6157
SELECT ALL + COUNT( * ) + - 90 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-6157
SELECT ALL + COUNT ( * ) + - 90 FROM tab1
----
-87

query I rowsort
SELECT DISTINCT col1 * + - 66 FROM tab1
----
-3102
-330
-924

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

query I rowsort
SELECT col1 - 62 AS col0 FROM tab1 AS cor0
----
-15
-48
-57

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + - col0 IN ( - ( + col0 ) + col0, + col2, - 32 ) AND + col2 * - 50 < + + col0 - col1 + + 19
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 58 - + col0 FROM tab2 AS cor0
----
-17
-6
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - col2 col2 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT - + 78 * - - 98 + + 78 * - 68 FROM tab2 AS cor0
----
-12948
-12948
-12948

query I rowsort
SELECT + - col1 + - col2 * col2 FROM tab0 cor0
----
-121
-2290
-9802

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6166
SELECT + - col0 / col2 + + CAST ( NULL AS INTEGER ) col1, ( - - col1 ) FROM tab2 cor0
----
NULL
51
NULL
67
NULL
77

onlyif mysql # aggregate syntax: 
query II rowsort label-6167
SELECT DISTINCT + + SUM( - ( - 76 ) ) col1, - COUNT( * ) AS col1 FROM tab1 AS cor0
----
228
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6167
SELECT DISTINCT + + SUM ( - ( - 76 ) ) col1, - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
228
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6170
SELECT ALL + 31 + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-6170
SELECT ALL + 31 + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 26 + col1 col1 FROM tab1
----
31
40
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6172
SELECT ( - COUNT( * ) ) FROM tab1 WHERE + col1 <= + 99
----
-3

skipif mysql # not compatible
query I rowsort label-6172
SELECT ( - COUNT ( * ) ) FROM tab1 WHERE + col1 <= + 99
----
-3

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6174
SELECT ALL - COUNT( * ) + + + COUNT( * ), COUNT( * ) DIV - + COUNT( * ) col0 FROM tab0
----
0
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6174
SELECT ALL - COUNT ( * ) + + + COUNT ( * ), COUNT ( * ) / - + COUNT ( * ) col0 FROM tab0
----
0
-1

query I rowsort
SELECT ALL col2 * - + 98 - + col2 AS col1 FROM tab2
----
-2277
-3960
-5742

query I rowsort
SELECT DISTINCT col2 - + + col2 AS col2 FROM tab2
----
0

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab0 AS cor0 WHERE NOT - col2 * + 32 * - + col0 < col2
----
15
87
97

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6185
SELECT ALL - CAST( - - 46 AS SIGNED ) * + + col0 AS col1 FROM tab0 AS cor0
----
-4002
-4462
-690

skipif mysql # not compatible
query I rowsort label-6185
SELECT ALL - CAST ( - - 46 AS INTEGER ) * + + col0 AS col1 FROM tab0 AS cor0
----
-4002
-4462
-690

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6186
SELECT - AVG ( ALL - 53 ) * + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6186
SELECT - AVG ( ALL - 53 ) * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

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

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

query I rowsort
SELECT ALL - + 79 AS col1 FROM tab0 cor0
----
-79
-79
-79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6189
SELECT DISTINCT + + 47, + col0 AS col0 FROM tab1 AS cor0 WHERE NOT col0 + - 26 * - CAST( NULL AS SIGNED ) IS NOT NULL
----
47
51
47
85
47
91

skipif mysql # not compatible
query II rowsort label-6189
SELECT DISTINCT + + 47, + col0 AS col0 FROM tab1 AS cor0 WHERE NOT col0 + - 26 * - CAST ( NULL AS INTEGER ) IS NOT NULL
----
47
51
47
85
47
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6190
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 57 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6190
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 57 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 11 * - - ( + + col1 ) AS col2 FROM tab0
----
11
231
891

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6192
SELECT * FROM tab1 WHERE NOT - 53 - - col1 + + 43 * col2 + + 12 NOT BETWEEN - + col2 AND - CAST( NULL AS SIGNED ) + - col2
----

skipif mysql # not compatible
query III rowsort label-6192
SELECT * FROM tab1 WHERE NOT - 53 - - col1 + + 43 * col2 + + 12 NOT BETWEEN - + col2 AND - CAST ( NULL AS INTEGER ) + - col2
----

query II rowsort
SELECT col1 AS col2, + 38 * - col1 AS col2 FROM tab2
----
51
-1938
67
-2546
77
-2926

onlyif mysql # DIV for integer division: 
query I rowsort label-6194
SELECT 38 DIV - + col0 * + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6194
SELECT 38 / - + col0 * + col2 FROM tab1
----
0
0
0

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 + 51 <> - - col2 + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( + col1 ) + col0 FROM tab1 AS cor0
----
138
65
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 9 - col2 + - ( col0 ) col0 FROM tab1 cor0
----
-153
-156
-168

query I rowsort
SELECT + 13 * - - col1 * 41 - - 52 FROM tab0 AS cor0
----
11245
43225
585

query I rowsort
SELECT col2 - - + col2 AS col1 FROM tab1
----
118
136
192

query I rowsort
SELECT col0 - + ( + 86 ) * + col1 * + col1 * col2 + - + col2 FROM tab0
----
-26519594
-379183
-8516

query I rowsort
SELECT ALL - col1 * 94 + - - col1 AS col2 FROM tab0
----
-1953
-7533
-93

query I rowsort
SELECT + col2 * + - 34 - - + col2 + col0 + col0 * ( - - col0 ) AS col1 FROM tab0
----
-1311
6239
7326

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

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

query II rowsort
SELECT DISTINCT - 29 AS col2, col1 FROM tab2
----
-29
51
-29
67
-29
77

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

skipif mysql # not compatible
query I rowsort label-6207
SELECT + - CAST ( NULL AS REAL ) * col0 + + CAST ( - - 98 AS INTEGER ) * - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

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

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

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

query I rowsort
SELECT DISTINCT ( + col2 ) * + col0 + + ( + col2 ) FROM tab1 AS cor0
----
4992
5074
6256

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

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

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

query I rowsort
SELECT DISTINCT + - 52 AS col2 FROM tab0 AS cor0
----
-52

query I rowsort
SELECT + + 18 FROM tab1 WHERE - 14 IS NULL
----

query I rowsort
SELECT ALL + ( + - 40 ) * + col1 + - - col2 + + + 40 * + col1 + + col1 AS col1 FROM tab2
----
117
125
74

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

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

query I rowsort
SELECT DISTINCT - ( - + col0 ) + col1 + + col1 AS col2 FROM tab0 AS cor0
----
129
177
99

query II rowsort
SELECT + 21, - 78 + - + ( 78 ) AS col0 FROM tab2 WHERE + - col2 IS NOT NULL
----
21
-156
21
-156
21
-156

query I rowsort
SELECT ( col0 ) - - - col1 AS col1 FROM tab1
----
37
44
80

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

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

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

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

query I rowsort
SELECT ALL - col1 FROM tab1 cor0 WHERE NOT - 63 < NULL
----

query I rowsort
SELECT col0 + - ( ( - col1 ) ) FROM tab1 cor0
----
138
65
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 91 + col0 col1 FROM tab2 cor0
----
-16
-27
-45

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

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

query I rowsort
SELECT ALL - col0 + - 65 FROM tab1 AS cor0
----
-116
-150
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-6229
SELECT + - MAX( DISTINCT - col2 ) FROM tab2 WHERE + col2 IS NOT NULL
----
23

skipif mysql # not compatible
query I rowsort label-6229
SELECT + - MAX ( DISTINCT - col2 ) FROM tab2 WHERE + col2 IS NOT NULL
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6230
SELECT COUNT( - - col2 ) * - - 60 + - - 87 AS col0 FROM tab2
----
267

skipif mysql # not compatible
query I rowsort label-6230
SELECT COUNT ( - - col2 ) * - - 60 + - - 87 AS col0 FROM tab2
----
267

onlyif mysql # DIV for integer division: 
query II rowsort label-6231
SELECT col0 * - col0 AS col2, 1 DIV col0 DIV - col1 FROM tab2
----
-2116
0
-4096
0
-5625
0

skipif mysql # not compatible
query II rowsort label-6231
SELECT col0 * - col0 AS col2, 1 / col0 / - col1 FROM tab2
----
-2116
0
-4096
0
-5625
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 79 BETWEEN 74 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6233
SELECT DISTINCT + COUNT( + col0 ) col1, - SUM( - + col0 ) AS col2 FROM tab2 AS cor0
----
3
185

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6236
SELECT CAST( NULL AS SIGNED ) col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6236
SELECT CAST ( NULL AS INTEGER ) col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query II rowsort label-6237
SELECT ALL COUNT( * ) col2, COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6237
SELECT ALL COUNT ( * ) col2, COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
9

query I rowsort
SELECT - 48 + + 21 AS col1 FROM tab0 AS cor0
----
-27
-27
-27

query I rowsort
SELECT DISTINCT 37 AS col0 FROM tab1 cor0
----
37

query I rowsort
SELECT 33 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col2 * - + col0, 68 + + + 1, col0 * - 90 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 66 BETWEEN + - 31 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6242
SELECT - CAST( col2 AS SIGNED ) * + 94, col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND + 6
----

skipif mysql # not compatible
query II rowsort label-6242
SELECT - CAST ( col2 AS INTEGER ) * + 94, col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND + 6
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6243
SELECT ALL - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( + - col2 ) <= + 19 * 56
----
-3

skipif mysql # not compatible
query I rowsort label-6243
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( + - col2 ) <= + 19 * 56
----
-3

query II rowsort
SELECT - col0 AS col1, col0 * - + col2 + - col1 FROM tab0 AS cor0
----
-15
-786
-87
-891
-97
-9604

query I rowsort
SELECT - col1 FROM tab0 WHERE 3 IS NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col2 + - ( - 0 ) ) <> - col2
----

query I rowsort
SELECT DISTINCT - 56 + col0 AS col0 FROM tab2
----
-10
19
8

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6250
SELECT - 17 DIV col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6250
SELECT - 17 / col0 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE - col0 BETWEEN + col1 + + - 25 AND 98
----

query I rowsort
SELECT + col2 + + + col2 AS col1 FROM tab0
----
198
20
94

query I rowsort
SELECT ALL + col0 + - 15 + col2 FROM tab2
----
118
54
89

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

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

query I rowsort
SELECT DISTINCT col0 - col2 - + 6 FROM tab2 AS cor0
----
11
17
18

query II rowsort
SELECT - + 10 AS col0, 10 - 84 + 1 AS col0 FROM tab2 AS cor0
----
-10
-73
-10
-73
-10
-73

query I rowsort
SELECT DISTINCT + + col2 FROM tab0 AS cor0 WHERE NOT 76 <= - - 44
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 39 * + col2 + - col1 col1 FROM tab0 AS cor0
----
-1914
-3862
-411

query II rowsort
SELECT col0 * + col1, col1 * + - ( + - 90 ) AS col1 FROM tab2
----
2346
4590
4928
6930
5025
6030

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6261
SELECT * FROM tab0 WHERE NOT NULL >= + 16 - + + col0 + - col1 + - + 13 + + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-6261
SELECT * FROM tab0 WHERE NOT NULL >= + 16 - + + col0 + - col1 + - + 13 + + CAST ( NULL AS REAL )
----

query II rowsort
SELECT DISTINCT + + col0, col2 * + + 85 FROM tab1 AS cor0
----
51
8160
85
5015
91
5780

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6263
SELECT + - 32 AS col0, CAST( - 48 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-32
-48
-32
-48
-32
-48

skipif mysql # not compatible
query II rowsort label-6263
SELECT + - 32 AS col0, CAST ( - 48 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-32
-48
-32
-48
-32
-48

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

query II rowsort
SELECT DISTINCT + - col0 + - ( - - 78 ) AS col0, col0 AS col0 FROM tab0 WHERE NOT NULL <> + + 67 * + col0
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + + col1 ) col0, col0 + + col1 * - col1 AS col1 FROM tab1 AS cor0
----
14
-145
47
-2118
5
60

onlyif mysql # aggregate syntax: 
query II rowsort label-6268
SELECT ALL + COUNT( DISTINCT 8 ), 53 + - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
1
56

skipif mysql # not compatible
query II rowsort label-6268
SELECT ALL + COUNT ( DISTINCT 8 ), 53 + - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
1
56

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6269
SELECT COUNT ( * ) * COUNT ( * ) col0 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
9

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + 96 * - col2 / col0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6271
SELECT + + MIN( col2 ) DIV COUNT( * ) + 11 col0 FROM tab1 AS cor0
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6271
SELECT + + MIN ( col2 ) / COUNT ( * ) + 11 col0 FROM tab1 AS cor0
----
30

query I rowsort
SELECT DISTINCT + - col2 AS col1 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 NOT BETWEEN col0 AND - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT ALL - - col0 + - 48 FROM tab2 AS cor0
----
-2
16
27

query I rowsort
SELECT + col2 * ( + 16 ) + + col0 + + col2 FROM tab0 AS cor0
----
1780
257
814

onlyif mysql # DIV for integer division: 
query I rowsort label-6277
SELECT - ( col2 ) DIV - col1 + - ( + ( + col2 ) ) col2 FROM tab0 cor0
----
-10
-47
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6277
SELECT - ( col2 ) / - col1 + - ( + ( + col2 ) ) col2 FROM tab0 cor0
----
-10
-47
0

query II rowsort
SELECT ALL - 90 + 88 + - col2, + col1 FROM tab1
----
-61
5
-70
47
-98
14

query II rowsort
SELECT ALL ( - + 60 ) + col2 AS col1, + col0 FROM tab1
----
-1
85
36
51
8
91

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

skipif mysql # not compatible
query I rowsort label-6280
SELECT + COUNT ( * ) FROM tab1 WHERE NULL = ( - - col1 / - + col0 * - col2 )
----
0

query I rowsort
SELECT DISTINCT col0 + - col1 * - - col0 AS col0 FROM tab0
----
-1200
-1740
0

query I rowsort
SELECT + 67 + + - col0 AS col2 FROM tab0
----
-20
-30
52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6283
SELECT DISTINCT - 59 / + CAST( NULL AS SIGNED ) - - + col1 AS col1, 62 AS col2, + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
62
NULL

skipif mysql # not compatible
query III rowsort label-6283
SELECT DISTINCT - 59 / + CAST ( NULL AS INTEGER ) - - + col1 AS col1, 62 AS col2, + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
62
NULL

query I rowsort
SELECT 0 + col0 FROM tab1
----
51
85
91

query I rowsort
SELECT DISTINCT - 95 * - col1 * col2 FROM tab1
----
127680
28025
303620

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6287
SELECT DISTINCT - + CAST ( - col1 AS INTEGER ) col2 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT ( + 59 ) - + col1 AS col2 FROM tab0
----
-22
38
58

query I rowsort
SELECT + 54 + + col2 + + + col0 FROM tab2
----
123
158
187

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 13 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT ( + - ( - + col2 ) ) + col0 AS col2 FROM tab1
----
144
147
159

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

skipif mysql # not compatible
query I rowsort label-6292
SELECT ALL - 35 * + - CAST ( NULL AS INTEGER ) * + + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6293
SELECT DISTINCT + + ( + - 45 ), CAST( + 21 AS SIGNED ) + + + col1 AS col0 FROM tab0 AS cor0
----
-45
102
-45
22
-45
42

skipif mysql # not compatible
query II rowsort label-6293
SELECT DISTINCT + + ( + - 45 ), CAST ( + 21 AS INTEGER ) + + + col1 AS col0 FROM tab0 AS cor0
----
-45
102
-45
22
-45
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT DISTINCT + + ( - 53 ) * COUNT( * ) FROM tab1 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-6294
SELECT DISTINCT + + ( - 53 ) * COUNT ( * ) FROM tab1 AS cor0
----
-159

onlyif mysql # DIV for integer division: 
query I rowsort label-6295
SELECT DISTINCT 98 DIV + col1 FROM tab0 AS cor0
----
1
4
98

skipif mysql # not compatible
query I rowsort label-6295
SELECT DISTINCT 98 / + col1 FROM tab0 AS cor0
----
1
4
98

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

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

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
51
67
77

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

skipif mysql # not compatible
query III rowsort label-6298
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 * - CAST ( NULL AS INTEGER ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE 0 > ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
query I rowsort label-6300
SELECT ( + - COUNT ( - - col2 ) ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT - col2 * - 5 AS col1 FROM tab1
----
295
340
480

query II rowsort
SELECT col2 * - col1 * col0, + col0 FROM tab0
----
-18270
87
-57105
15
-9603
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT ALL - ( + + 37 ) * + MIN( - col2 ) FROM tab2
----
2146

skipif mysql # not compatible
query I rowsort label-6303
SELECT ALL - ( + + 37 ) * + MIN ( - col2 ) FROM tab2
----
2146

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

skipif mysql # not compatible
query I rowsort label-6304
SELECT DISTINCT - ( + ( - + col1 ) ) / + CAST ( - - 42 AS INTEGER ) AS col1 FROM tab0
----
0
1

query I rowsort
SELECT - ( - - 52 ) AS col1 FROM tab0
----
-52
-52
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-6306
SELECT DISTINCT - 62 DIV + col2 FROM tab0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-6306
SELECT DISTINCT - 62 / + col2 FROM tab0
----
-1
-6
0

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

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= 23 * 22 + - + col0 + + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6309
SELECT col2 col0 FROM tab2 AS cor0 WHERE - col2 > - + CAST( - - col0 AS SIGNED )
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6309
SELECT col2 col0 FROM tab2 AS cor0 WHERE - col2 > - + CAST ( - - col0 AS INTEGER )
----
23
40
58

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

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

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

query I rowsort
SELECT + col2 - - + col2 AS col2 FROM tab0
----
198
20
94

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

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

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( + col2, col1 / - + col0 * + - 21, + + 87 )
----

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

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

query II rowsort
SELECT - col2 + - col1, col1 + - + col0 AS col2 FROM tab2 AS cor0
----
-117
13
-125
-8
-74
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6317
SELECT COUNT( * ) + 64 AS col0 FROM tab2 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-6317
SELECT COUNT ( * ) + 64 AS col0 FROM tab2 AS cor0
----
67

query I rowsort
SELECT 22 + - 4 + - + 6 AS col2 FROM tab1 WHERE - col1 * 38 / - - col0 > NULL
----

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6320
SELECT DISTINCT col0 - col2 DIV + + col2 AS col0, 7 FROM tab2
----
45
7
63
7
74
7

skipif mysql # not compatible
query II rowsort label-6320
SELECT DISTINCT col0 - col2 / + + col2 AS col0, 7 FROM tab2
----
45
7
63
7
74
7

query I rowsort
SELECT DISTINCT - col0 * 28 AS col1 FROM tab2
----
-1288
-1792
-2100

query I rowsort
SELECT 2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT + + COUNT( - - 45 ) AS col2 FROM tab2 AS cor0
----
3

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 9 * - + col1 col0 FROM tab1 cor0
----
-126
-423
-45

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 67 col0 FROM tab1 AS cor0
----
-67
-67
-67

query I rowsort
SELECT DISTINCT - - col0 AS col1 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query II rowsort label-6329
SELECT - - MIN( ALL ( + - col2 ) ) AS col0, COUNT( * ) + 17 * + 8 AS col2 FROM tab0 AS cor0
----
-99
139

skipif mysql # not compatible
query II rowsort label-6329
SELECT - - MIN ( ALL ( + - col2 ) ) AS col0, COUNT ( * ) + 17 * + 8 AS col2 FROM tab0 AS cor0
----
-99
139

query I rowsort
SELECT + col0 * - col2 * - 55 AS col2 FROM tab1 AS cor0
----
269280
275825
340340

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

query I rowsort
SELECT - ( + + 85 ) AS col1 FROM tab1 AS cor0
----
-85
-85
-85

query I rowsort
SELECT + 62 * - + 97 AS col0 FROM tab0
----
-6014
-6014
-6014

onlyif mysql # DIV for integer division: 
query II rowsort label-6334
SELECT ALL - 28 * + col0 AS col2, + col0 DIV + col1 AS col1 FROM tab1
----
-1428
3
-2380
17
-2548
1

skipif mysql # not compatible
query II rowsort label-6334
SELECT ALL - 28 * + col0 AS col2, + col0 / + col1 AS col1 FROM tab1
----
-1428
3
-2380
17
-2548
1

query I rowsort
SELECT - col0 * 14 AS col1 FROM tab0
----
-1218
-1358
-210

query II rowsort
SELECT DISTINCT - col2 * + + ( - ( - 7 ) ) AS col1, col2 + - 32 AS col1 FROM tab0
----
-329
15
-693
67
-70
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6337
SELECT ALL SUM( CAST( NULL AS SIGNED ) ) / + + 36 * + + COUNT( DISTINCT + col0 ), 15 AS col1 FROM tab2
----
NULL
15

skipif mysql # not compatible
query II rowsort label-6337
SELECT ALL SUM ( CAST ( NULL AS INTEGER ) ) / + + 36 * + + COUNT ( DISTINCT + col0 ), 15 AS col1 FROM tab2
----
NULL
15

onlyif mysql # DIV for integer division: 
query I rowsort label-6338
SELECT ALL - 1 DIV - + ( + col2 ) col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6338
SELECT ALL - 1 / - + ( + col2 ) col1 FROM tab2
----
0
0
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6340
SELECT DISTINCT CAST( - col0 AS SIGNED ) * 43, + col0 AS col2 FROM tab0 AS cor0 WHERE NULL < NULL
----

skipif mysql # not compatible
query II rowsort label-6340
SELECT DISTINCT CAST ( - col0 AS INTEGER ) * 43, + col0 AS col2 FROM tab0 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT DISTINCT - col0 + + col1 - - + col2 AS col0 FROM tab0 AS cor0
----
-56
113
3

query I rowsort
SELECT ALL col1 + - - 67 FROM tab2
----
118
134
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6343
SELECT - CAST( NULL AS SIGNED ) * 5 * + 45 col0 FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6344
SELECT + COUNT( 52 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6344
SELECT + COUNT ( 52 ) FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6345
SELECT COUNT( * ) * - - MIN( DISTINCT + col0 ) + + - MAX( ALL - - col2 ) col2 FROM tab2 AS cor0
----
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6345
SELECT COUNT ( * ) * - - MIN ( DISTINCT + col0 ) + + - MAX ( ALL - - col2 ) col2 FROM tab2 AS cor0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT DISTINCT - MIN( ALL - 70 ) + + 85 AS col2 FROM tab0 AS cor0
----
155

skipif mysql # not compatible
query I rowsort label-6346
SELECT DISTINCT - MIN ( ALL - 70 ) + + 85 AS col2 FROM tab0 AS cor0
----
155

query I rowsort
SELECT ALL - 25 * col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1475
-1700
-2400

query I rowsort
SELECT + col2 + + + col1 FROM tab0 AS cor0
----
100
128
31

query II rowsort
SELECT - + 95 + - 60 + col0 + - 56 * + + ( - col2 ) AS col0, col2 AS col2 FROM tab1 AS cor0
----
3234
59
3744
68
5272
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6350
SELECT DISTINCT - - COUNT( * ) * - 28 * CAST( - + 65 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
5460

skipif mysql # not compatible
query I rowsort label-6350
SELECT DISTINCT - - COUNT ( * ) * - 28 * CAST ( - + 65 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
5460

query I rowsort
SELECT DISTINCT col0 + - - 5 FROM tab2 WHERE - + col2 * - col0 * col2 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 * + 48 + + col0 FROM tab2
----
-1058
-1856
-2709

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

query II rowsort
SELECT + col2, + 45 + + - 78 FROM tab1
----
59
-33
68
-33
96
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6355
SELECT DISTINCT MIN( + + 67 ) - - 54 AS col0 FROM tab1
----
121

skipif mysql # not compatible
query I rowsort label-6355
SELECT DISTINCT MIN ( + + 67 ) - - 54 AS col0 FROM tab1
----
121

query II rowsort
SELECT + col0 AS col2, - col0 + - - col0 AS col0 FROM tab1
----
51
0
85
0
91
0

query I rowsort
SELECT - 12 - + 90 FROM tab2 WHERE - col2 IS NOT NULL
----
-102
-102
-102

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - + 63 col0 FROM tab0
----
-1323
-5103
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-6359
SELECT col2 DIV col2 * col1 AS col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6359
SELECT col2 / col2 * col1 AS col1 FROM tab1
----
14
47
5

query I rowsort
SELECT ALL 93 * col2 AS col2 FROM tab2
----
2139
3720
5394

query I rowsort
SELECT DISTINCT - - col0 * + - col0 AS col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

query I rowsort
SELECT ALL - col1 - ( - col0 ) AS col0 FROM tab2 AS cor0
----
-13
-5
8

query II rowsort
SELECT - col1 * - 70 + col0 * - 84, - 18 AS col2 FROM tab1 AS cor0
----
-3304
-18
-4354
-18
-6790
-18

query III rowsort
SELECT + - col0 AS col1, 44 AS col1, + ( + 5 ) FROM tab2 AS cor0
----
9 values hashing to 015f40e35eff8e5e9fb9040e5b4759f6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6365
SELECT - MIN( col0 ) - - CAST( + 22 AS SIGNED ) FROM tab1 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-6365
SELECT - MIN ( col0 ) - - CAST ( + 22 AS INTEGER ) FROM tab1 AS cor0
----
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + 38 + - 3 * - - 55 col0 FROM tab0 AS cor0
----
-112
-30
-40

query I rowsort
SELECT DISTINCT 53 * - + ( - ( - - col1 ) ) FROM tab2 AS cor0
----
2703
3551
4081

onlyif mysql # aggregate syntax: 
query I rowsort label-6368
SELECT + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT 16 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6368
SELECT + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 16 >= NULL
----
0

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

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

query I rowsort
SELECT DISTINCT + col2 * - 7 AS col2 FROM tab1
----
-413
-476
-672

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

skipif mysql # not compatible
query II rowsort label-6372
SELECT ALL - 39, COUNT ( * ) AS col2 FROM tab1
----
-39
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 + + + 67 + + + 32 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

skipif mysql # not compatible
query I rowsort label-6375
SELECT ALL + MAX ( ALL + 85 ) AS col1 FROM tab2
----
85

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) = - col2 / - + col2 + - col1
----

query I rowsort
SELECT ALL col0 * + col1 + - + col0 + col1 FROM tab0 AS cor0
----
1
1281
1761

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6378
SELECT * FROM tab0 cor0 WHERE CAST( NULL AS DECIMAL ) / + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6378
SELECT * FROM tab0 cor0 WHERE CAST ( NULL AS REAL ) / + col2 IS NOT NULL
----

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

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 * - col2 + - col2 < - col1 + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 10 NOT BETWEEN col0 * + col2 AND + 40 + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( - col0 ) + 80 FROM tab0
----
-17
-7
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6385
SELECT MIN( + 30 ) * COUNT( * ) FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-6385
SELECT MIN ( + 30 ) * COUNT ( * ) FROM tab0
----
90

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

query I rowsort
SELECT - col2 * - col2 + + 90 FROM tab0
----
190
2299
9891

query I rowsort
SELECT col0 + - 27 * + col0 AS col0 FROM tab2
----
-1196
-1664
-1950

onlyif mysql # aggregate syntax: 
query I rowsort label-6389
SELECT DISTINCT MAX( ALL + 47 ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-6389
SELECT DISTINCT MAX ( ALL + 47 ) AS col2 FROM tab1
----
47

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

query I rowsort
SELECT ALL col0 * col2 FROM tab1 WHERE NOT + col2 NOT BETWEEN - 57 * + col2 AND - ( + col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NULL < - 19
----

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

query I rowsort
SELECT DISTINCT - 5 * 44 AS col2 FROM tab2
----
-220

onlyif mysql # aggregate syntax: 
query I rowsort label-6395
SELECT DISTINCT 2 * - COUNT( * ) AS col1 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-6395
SELECT DISTINCT 2 * - COUNT ( * ) AS col1 FROM tab1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6396
SELECT COUNT( ALL 49 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6396
SELECT COUNT ( ALL 49 ) FROM tab2
----
3

query I rowsort
SELECT 94 FROM tab2 WHERE NOT ( - col0 + + col1 ) < - 24
----
94
94
94

onlyif mysql # DIV for integer division: 
query I rowsort label-6398
SELECT + 81 DIV col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6398
SELECT + 81 / col2 FROM tab1
----
0
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6399
SELECT DISTINCT - ( + COUNT( * ) ) DIV 72 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6399
SELECT DISTINCT - ( + COUNT ( * ) ) / 72 AS col2 FROM tab0
----
0

query III rowsort
SELECT * FROM tab2 WHERE col1 BETWEEN ( 61 ) AND 60
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6402
SELECT - 71 DIV - col1 FROM tab0
----
0
3
71

skipif mysql # not compatible
query I rowsort label-6402
SELECT - 71 / - col1 FROM tab0
----
0
3
71

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

skipif mysql # not compatible
query I rowsort label-6403
SELECT + 87 / col1 FROM tab1
----
1
17
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6404
SELECT - COUNT( * ) * 34 FROM tab2
----
-102

skipif mysql # not compatible
query I rowsort label-6404
SELECT - COUNT ( * ) * 34 FROM tab2
----
-102

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( - 85 + - col0 )
----

query I rowsort
SELECT - 61 * ( - col0 ) FROM tab0
----
5307
5917
915

query I rowsort
SELECT ALL col2 - - col1 AS col0 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
117
125
74

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN col2 AND 58
----
21
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6410
SELECT DISTINCT 51 DIV + COUNT( * ) FROM tab0 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-6410
SELECT DISTINCT 51 / + COUNT ( * ) FROM tab0 AS cor0
----
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 6 col2 FROM tab1 WHERE NULL IN ( + col1 * - col1 )
----

query I rowsort
SELECT + 31 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6413
SELECT + 46 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6413
SELECT + 46 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + + col1 * 18 FROM tab1 cor0
----
252
846
90

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6416
SELECT - COUNT( * ) DIV + CAST( 84 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) + 59 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6416
SELECT - COUNT ( * ) / + CAST ( 84 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) + 59 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6417
SELECT ALL - SUM( 85 ) AS col1 FROM tab0 cor0
----
-255

skipif mysql # not compatible
query I rowsort label-6417
SELECT ALL - SUM ( 85 ) AS col1 FROM tab0 cor0
----
-255

onlyif mysql # aggregate syntax: 
query I rowsort label-6418
SELECT ALL 30 - - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE - 71 IN ( - col2 )
----
30

skipif mysql # not compatible
query I rowsort label-6418
SELECT ALL 30 - - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE - 71 IN ( - col2 )
----
30

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 > - col1 - - col2 / - col0
----

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

query I rowsort
SELECT ALL 23 FROM tab1 cor0 WHERE col1 NOT IN ( col1 )
----

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

query I rowsort
SELECT DISTINCT col1 + - - 99 FROM tab0
----
100
120
180

onlyif mysql # aggregate syntax: 
query I rowsort label-6426
SELECT DISTINCT + COUNT( * ) col1 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6428
SELECT + CAST( NULL AS SIGNED ) - + COUNT( * ) AS col1 FROM tab2 WHERE NOT ( - col0 ) >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6428
SELECT + CAST ( NULL AS INTEGER ) - + COUNT ( * ) AS col1 FROM tab2 WHERE NOT ( - col0 ) >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6429
SELECT MAX( - col0 ) + + 44 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-6429
SELECT MAX ( - col0 ) + + 44 FROM tab2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6430
SELECT ALL MIN( + 80 ) AS col2 FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-6430
SELECT ALL MIN ( + 80 ) AS col2 FROM tab1
----
80

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6432
SELECT 60 + + col0 + + col2 DIV + col2 AS col0 FROM tab0
----
148
158
76

skipif mysql # not compatible
query I rowsort label-6432
SELECT 60 + + col0 + + col2 / + col2 AS col0 FROM tab0
----
148
158
76

onlyif mysql # DIV for integer division: 
query I rowsort label-6433
SELECT - col0 + col1 + - 68 DIV 88 AS col2 FROM tab2
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-6433
SELECT - col0 + col1 + - 68 / 88 AS col2 FROM tab2
----
-8
13
5

query I rowsort
SELECT DISTINCT + col2 + + + col0 + 73 * + 65 AS col1 FROM tab2 AS cor0
----
4814
4849
4878

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6436
SELECT ALL + + col1 DIV col0 + + 74 AS col1 FROM tab0 AS cor0
----
74
74
79

skipif mysql # not compatible
query I rowsort label-6436
SELECT ALL + + col1 / col0 + + 74 AS col1 FROM tab0 AS cor0
----
74
74
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 63 + + col0 - - col2 * + col2 col2 FROM tab2 AS cor0
----
1727
3502
638

query I rowsort
SELECT ALL - 55 * - 73 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to e990ca46f66a7451c0266f9f53792e17

query I rowsort
SELECT DISTINCT - 37 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 27 col0, col0 * + col0 col2 FROM tab0
----
27
225
27
7569
27
9409

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL NOT IN ( - 6 )
----

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

query I rowsort
SELECT 28 - - col1 AS col1 FROM tab2
----
105
79
95

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT - SUM( - 65 ) + + - COUNT( * ) + - ( COUNT( * ) ) * 28 AS col2 FROM tab1 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-6446
SELECT - SUM ( - 65 ) + + - COUNT ( * ) + - ( COUNT ( * ) ) * 28 AS col2 FROM tab1 AS cor0
----
108

query I rowsort
SELECT + col1 + + + 83 + + - 18 + 13 * - col0 FROM tab0 AS cor0
----
-1045
-1195
-49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6448
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL OR NOT NULL NOT BETWEEN ( col1 ) AND col0
----

skipif mysql # not compatible
query III rowsort label-6448
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL OR NOT NULL NOT BETWEEN ( col1 ) AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6449
SELECT - + col0 * CAST( NULL AS SIGNED ) + - - 25 * - 18 + - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6449
SELECT - + col0 * CAST ( NULL AS INTEGER ) + - - 25 * - 18 + - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

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

query I rowsort
SELECT + - col1 * col2 + - - ( - col2 ) + col0 FROM tab2 AS cor0
----
-1150
-3056
-3869

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

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

query I rowsort
SELECT - 8 + col1 - - 32 FROM tab1 cor0
----
29
38
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6456
SELECT CAST( + - ( + col1 ) AS SIGNED ) + + col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6456
SELECT CAST ( + - ( + col1 ) AS INTEGER ) + + col1 FROM tab2 AS cor0
----
0
0
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT ALL + COUNT( - col1 ) FROM tab1 WHERE + 89 IN ( + 45 + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-6459
SELECT ALL + COUNT ( - col1 ) FROM tab1 WHERE + 89 IN ( + 45 + col2 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6460
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) AS col0, CAST( 59 AS SIGNED ) col2 FROM tab2
----
9
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6460
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) AS col0, CAST ( 59 AS INTEGER ) col2 FROM tab2
----
9
59

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6462
SELECT ALL + + 51 DIV - + 75 + - ( col1 ) FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-6462
SELECT ALL + + 51 / - + 75 + - ( col1 ) FROM tab2 AS cor0
----
-51
-67
-77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > ( + 3 )
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6467
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) NOT IN ( col0 + + 87 )
----

skipif mysql # not compatible
query III rowsort label-6467
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT IN ( col0 + + 87 )
----

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

query I rowsort
SELECT ALL 87 FROM tab1 cor0
----
87
87
87

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6470
SELECT * FROM tab0 WHERE NOT col2 <= + CAST( - col0 AS DECIMAL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6470
SELECT * FROM tab0 WHERE NOT col2 <= + CAST ( - col0 AS REAL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6471
SELECT DISTINCT + - ( 44 ) DIV + + 43 + - col1 * col0 FROM tab2 AS cor0
----
-2347
-4929
-5026

skipif mysql # not compatible
query I rowsort label-6471
SELECT DISTINCT + - ( 44 ) / + + 43 + - col1 * col0 FROM tab2 AS cor0
----
-2347
-4929
-5026

query I rowsort
SELECT 31 + + - col1 * + 26 AS col2 FROM tab1 AS cor0
----
-1191
-333
-99

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-6474
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 24 / - col1 * CAST( NULL AS DECIMAL ) BETWEEN col2 - - 4 * + CAST( NULL AS SIGNED ) AND - 58
----

skipif mysql # not compatible
query III rowsort label-6474
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 24 / - col1 * CAST ( NULL AS REAL ) BETWEEN col2 - - 4 * + CAST ( NULL AS INTEGER ) AND - 58
----

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

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

query I rowsort
SELECT ALL col1 + - ( - 51 ) - - col0 FROM tab0 AS cor0
----
147
149
159

onlyif mysql # DIV for integer division: 
query I rowsort label-6477
SELECT + col1 * - col0 * col2 DIV + col2 + - ( + col1 ) * col1 col1 FROM tab0 AS cor0 WHERE NOT - 96 IS NULL
----
-2268
-7776
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6477
SELECT + col1 * - col0 * col2 / + col2 + - ( + col1 ) * col1 col1 FROM tab0 AS cor0 WHERE NOT - 96 IS NULL
----
-2268
-7776
-98

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

query II rowsort
SELECT - col2, + col0 FROM tab1
----
-59
85
-68
91
-96
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 85 * + col0 * ( + 50 ) col0 FROM tab0
----
369750
412250
63750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6481
SELECT - 56 + - col2 FROM tab2 WHERE ( - col0 + - + 51 ) BETWEEN - CAST( NULL AS SIGNED ) AND - 4
----

skipif mysql # not compatible
query I rowsort label-6481
SELECT - 56 + - col2 FROM tab2 WHERE ( - col0 + - + 51 ) BETWEEN - CAST ( NULL AS INTEGER ) AND - 4
----

query II rowsort
SELECT - 47 AS col1, col0 FROM tab1
----
-47
51
-47
85
-47
91

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 * + 66 * - 47 IS NOT NULL
----

query I rowsort
SELECT ( 27 ) * col0 AS col0 FROM tab0
----
2349
2619
405

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

query III rowsort
SELECT * FROM tab0 WHERE ( NOT ( col2 + + 61 IS NOT NULL ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL > ( - 78 ) * + 36 * + - 58
----

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE - col2 = - col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6489
SELECT - ( - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab2 WHERE ( NOT ( col0 ) IN ( - col0 ) )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6489
SELECT - ( - CAST ( NULL AS REAL ) ) AS col1 FROM tab2 WHERE ( NOT ( col0 ) IN ( - col0 ) )
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 57 * - + 15 AS col0 FROM tab1
----
-855
-855
-855

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN 71 AND + 76
----

query I rowsort
SELECT ALL + + col0 * + col2 * col0 AS col2 FROM tab1 cor0
----
249696
426275
563108

query III rowsort
SELECT + - 88, - col1 AS col2, + + col2 + + col0 AS col1 FROM tab0 AS cor0
----
9 values hashing to f124ef329217d39b8c58b4fce203ed37

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6495
SELECT col0 * + + 21 + CAST( CAST( col2 AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
1167
1844
1979

skipif mysql # not compatible
query I rowsort label-6495
SELECT col0 * + + 21 + CAST ( CAST ( col2 AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
1167
1844
1979

query I rowsort
SELECT col1 + - 96 - col2 AS col0 FROM tab1
----
-117
-150
-178

query I rowsort
SELECT DISTINCT - col2 + col2 * - 82 + col2 FROM tab1
----
-4838
-5576
-7872

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6500
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE NULL IN ( - col2 / - 25 )
----
0

skipif mysql # not compatible
query I rowsort label-6500
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IN ( - col2 / - 25 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6501
SELECT DISTINCT + COUNT( * ) DIV - 79 AS col2 FROM tab1 AS cor0 WHERE NOT col1 * - col2 DIV 96 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-6501
SELECT DISTINCT + COUNT ( * ) / - 79 AS col2 FROM tab1 AS cor0 WHERE NOT col1 * - col2 / 96 < NULL
----
0

query I rowsort
SELECT col2 * + 37 AS col1 FROM tab1 AS cor0
----
2183
2516
3552

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6504
SELECT 94 * - + COUNT( * ) FROM tab1 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-6504
SELECT 94 * - + COUNT ( * ) FROM tab1 AS cor0
----
-282

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

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

query I rowsort
SELECT - col2 * - col0 - + + col0 FROM tab1 AS cor0
----
4845
4930
6097

onlyif mysql # DIV for integer division: 
query I rowsort label-6507
SELECT + col2 DIV 71 AS col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6507
SELECT + col2 / 71 AS col0 FROM tab1
----
0
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6508
SELECT + SUM( - 32 ) DIV 92 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-6508
SELECT + SUM ( - 32 ) / 92 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6509
SELECT DISTINCT COUNT( * ), - 35 + + 91 AS col2 FROM tab0
----
3
56

skipif mysql # not compatible
query II rowsort label-6509
SELECT DISTINCT COUNT ( * ), - 35 + + 91 AS col2 FROM tab0
----
3
56

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - 24 NOT IN ( + - col1 / + ( - 42 ) )
----

query I rowsort
SELECT DISTINCT ( + - ( - 5 ) ) * - 92 * - + col2 FROM tab1
----
27140
31280
44160

onlyif mysql # DIV for integer division: 
query I rowsort label-6513
SELECT ALL 11 DIV - - 23 * + col0 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6513
SELECT ALL 11 / - - 23 * + col0 AS col1 FROM tab0
----
0
0
0

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

query I rowsort
SELECT + + col0 * + + 47 FROM tab1 AS cor0
----
2397
3995
4277

onlyif mysql # aggregate syntax: 
query I rowsort label-6516
SELECT DISTINCT - SUM( ALL col2 ) col0 FROM tab1
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6516
SELECT DISTINCT - SUM ( ALL col2 ) col0 FROM tab1
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT - + COUNT( - - 30 ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6517
SELECT - + COUNT ( - - 30 ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN - 94 + col2 AND - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6519
SELECT ALL 9 DIV + ( + 83 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6519
SELECT ALL 9 / + ( + 83 ) FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6520
SELECT - - CAST( NULL AS SIGNED ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6520
SELECT - - CAST ( NULL AS INTEGER ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6524
SELECT COUNT ( + - 57 ) FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT + col2 + col2 * - col0 FROM tab1 AS cor0
----
-4800
-4956
-6120

query I rowsort
SELECT ALL + col2 * + 44 + - col2 + - col2 + col2 * + + col1 AS col1 FROM tab1 AS cor0
----
2773
5376
6052

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( + col2 ) >= + col0
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6528
SELECT DISTINCT COUNT( * ) + - 50 * - 97 * + ( SUM( ( col2 ) ) ) FROM tab0
----
756603

skipif mysql # not compatible
query I rowsort label-6528
SELECT DISTINCT COUNT ( * ) + - 50 * - 97 * + ( SUM ( ( col2 ) ) ) FROM tab0
----
756603

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6529
SELECT DISTINCT 15 DIV + COUNT( * ) FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-6529
SELECT DISTINCT 15 / + COUNT ( * ) FROM tab2
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-6530
SELECT ( + 18 ) AS col1, COUNT( * ) AS col1 FROM tab0 WHERE NULL IS NOT NULL AND ( NULL IS NOT NULL )
----
18
0

skipif mysql # not compatible
query II rowsort label-6530
SELECT ( + 18 ) AS col1, COUNT ( * ) AS col1 FROM tab0 WHERE NULL IS NOT NULL AND ( NULL IS NOT NULL )
----
18
0

query I rowsort
SELECT ALL 31 * col1 + - col0 FROM tab1
----
1366
383
70

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

query II rowsort
SELECT + 89 * - col2 + 12 AS col2, col0 AS col1 FROM tab2
----
-2035
46
-3548
64
-5150
75

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 36 + + col2 col2 FROM tab2 AS cor0
----
59
76
94

query II rowsort
SELECT col0 * - col2 + - 66 * + 14, - 41 AS col2 FROM tab1 AS cor0
----
-5820
-41
-5939
-41
-7112
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6537
SELECT + col1 * CAST( + - col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-6537
SELECT + col1 * CAST ( + - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-6538
SELECT DISTINCT - ( - + COUNT( * ) ) * 69 FROM tab0 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-6538
SELECT DISTINCT - ( - + COUNT ( * ) ) * 69 FROM tab0 AS cor0
----
207

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6539
SELECT col2, col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-6539
SELECT col2, col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
23
NULL
40
NULL
58
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6540
SELECT DISTINCT 92 AS col1, - MAX( + + 68 ) + + COUNT( * ) AS col2 FROM tab1 cor0
----
92
-65

skipif mysql # not compatible
query II rowsort label-6540
SELECT DISTINCT 92 AS col1, - MAX ( + + 68 ) + + COUNT ( * ) AS col2 FROM tab1 cor0
----
92
-65

query II rowsort
SELECT DISTINCT - 49 AS col1, + 80 AS col2 FROM tab0 AS cor0
----
-49
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6542
SELECT ALL + - CAST( ( MIN( DISTINCT + - col0 ) ) AS SIGNED ) FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-6542
SELECT ALL + - CAST ( ( MIN ( DISTINCT + - col0 ) ) AS INTEGER ) FROM tab2 cor0
----
75

query II rowsort
SELECT DISTINCT - + col0 AS col1, ( 56 ) FROM tab2 cor0
----
-46
56
-64
56
-75
56

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - col0 * + - 31 * col1, 16 + + 56 )
----

query I rowsort
SELECT ALL 21 * - + col1 * + + col1 AS col0 FROM tab1
----
-4116
-46389
-525

query I rowsort
SELECT ALL - 1 FROM tab0 WHERE col1 IN ( - col1 * - col0, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6547
SELECT + MIN( ALL + 30 ) AS col1 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-6547
SELECT + MIN ( ALL + 30 ) AS col1 FROM tab2
----
30

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col1 * + + col0, + col2 )
----

query I rowsort
SELECT ALL - col0 * + + 99 FROM tab0 cor0
----
-1485
-8613
-9603

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( col1 / - col1 + + - 70 * col1, + col2 )
----

query I rowsort
SELECT DISTINCT col1 * + 16 AS col0 FROM tab2
----
1072
1232
816

query I rowsort
SELECT 27 + + col1 FROM tab2
----
104
78
94

query I rowsort
SELECT ALL - 26 FROM tab0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT + 58 * - - col1 + + 44 AS col1 FROM tab1 cor0
----
2770
334
856

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6556
SELECT - CAST( + col1 AS SIGNED ) + + + 79 - col2 AS col2 FROM tab1 AS cor0
----
-31
-36
15

skipif mysql # not compatible
query I rowsort label-6556
SELECT - CAST ( + col1 AS INTEGER ) + + + 79 - col2 AS col2 FROM tab1 AS cor0
----
-31
-36
15

query I rowsort
SELECT ALL - 14 * - 10 + - col0 AS col2 FROM tab0 AS cor0
----
125
43
53

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6559
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE col0 NOT BETWEEN - - 83 AND NULL
----
1

skipif mysql # not compatible
query I rowsort label-6559
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE col0 NOT BETWEEN - - 83 AND NULL
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6560
SELECT DISTINCT - - col1 * - col0 + - ( - - col0 ) + + col0 - + - col1 DIV + col0 FROM tab2 AS cor0
----
-2345
-4927
-5025

skipif mysql # not compatible
query I rowsort label-6560
SELECT DISTINCT - - col1 * - col0 + - ( - - col0 ) + + col0 - + - col1 / + col0 FROM tab2 AS cor0
----
-2345
-4927
-5025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6561
SELECT CAST( + 43 AS SIGNED ) * + COUNT( * ) FROM tab0 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-6561
SELECT CAST ( + 43 AS INTEGER ) * + COUNT ( * ) FROM tab0 AS cor0
----
129

query I rowsort
SELECT ALL col0 * col0 + + col1 AS col0 FROM tab1 AS cor0
----
2615
7230
8328

query I rowsort
SELECT ALL + ( + - 2 ) * col1 + + - 40 AS col1 FROM tab1
----
-134
-50
-68

query I rowsort
SELECT - 33 * col2 - - col0 AS col2 FROM tab1 WHERE - col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col2 BETWEEN ( col2 ) * ( - 93 ) AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 * 69 AS col0 FROM tab0
----
1035
6003
6693

query I rowsort
SELECT - + 5 + col1 - - + col0 FROM tab2 AS cor0
----
136
137
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT ALL MAX( ALL + 63 ) col1 FROM tab0, tab0 AS cor0
----
63

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6569
SELECT DISTINCT 8 + + MAX( + 84 ) FROM tab0 cor0 CROSS JOIN tab0 cor1
----
92

skipif mysql # not compatible
query I rowsort label-6569
SELECT DISTINCT 8 + + MAX ( + 84 ) FROM tab0 cor0 CROSS JOIN tab0 cor1
----
92

query II rowsort
SELECT DISTINCT col1 AS col0, 67 + + 81 * 57 AS col1 FROM tab1 cor0
----
14
4684
47
4684
5
4684

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6571
SELECT ALL + COUNT ( * ) col2, 6 AS col1 FROM tab2 AS cor0
----
3
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6572
SELECT DISTINCT + - COUNT( * ), 81 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-6572
SELECT DISTINCT + - COUNT ( * ), 81 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-3
NULL

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

query I rowsort
SELECT 32 * + - ( - col2 ) FROM tab0 AS cor0
----
1504
3168
320

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

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

query II rowsort
SELECT ( + col2 ) AS col2, col0 * 21 FROM tab0
----
10
1827
47
315
99
2037

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6577
SELECT ( + COUNT( * ) ) DIV + - ( COUNT( * ) ), CAST( - 69 AS SIGNED ) * - + 43 AS col2 FROM tab2
----
-1
2967

skipif mysql # not compatible
query II rowsort label-6577
SELECT ( + COUNT ( * ) ) / + - ( COUNT ( * ) ), CAST ( - 69 AS INTEGER ) * - + 43 AS col2 FROM tab2
----
-1
2967

query II rowsort
SELECT col1, 62 * - + col1 * - col0 FROM tab1
----
14
44268
47
265174
5
26350

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6580
SELECT DISTINCT COUNT( DISTINCT 8 ) AS col0, + 0 AS col1 FROM tab0
----
1
0

skipif mysql # not compatible
query II rowsort label-6580
SELECT DISTINCT COUNT ( DISTINCT 8 ) AS col0, + 0 AS col1 FROM tab0
----
1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6581
SELECT DISTINCT col0 + - col0 DIV 51 - - col0 * - - 45 FROM tab0 AS cor0
----
4001
4461
690

skipif mysql # not compatible
query I rowsort label-6581
SELECT DISTINCT col0 + - col0 / 51 - - col0 * - - 45 FROM tab0 AS cor0
----
4001
4461
690

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6582
SELECT ALL * FROM tab0 cor0 WHERE - col0 + - CAST( NULL AS SIGNED ) / - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6582
SELECT ALL * FROM tab0 cor0 WHERE - col0 + - CAST ( NULL AS INTEGER ) / - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - col2 * - 7 * - col2 AS col0 FROM tab2 AS cor0
----
-11200
-23548
-3703

query I rowsort
SELECT + col0 * + col2 * - 56 + + - 27 AS col1 FROM tab1 AS cor0
----
-274203
-280867
-346555

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT ALL - COUNT( DISTINCT - - col0 ) AS col1 FROM tab2 cor0 WHERE NULL <= + col1 + - + col1 * + - 55
----
0

skipif mysql # not compatible
query I rowsort label-6585
SELECT ALL - COUNT ( DISTINCT - - col0 ) AS col1 FROM tab2 cor0 WHERE NULL <= + col1 + - + col1 * + - 55
----
0

query I rowsort
SELECT ALL - 60 + ( - col0 ) FROM tab2 AS cor0
----
-106
-124
-135

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + 39 col2, - 77 col1 FROM tab0 AS cor0
----
126
-77
136
-77
54
-77

query I rowsort
SELECT DISTINCT - + col1 + - 55 FROM tab1 AS cor0
----
-102
-60
-69

query I rowsort
SELECT ALL - 17 * col2 AS col1 FROM tab1 AS cor0
----
-1003
-1156
-1632

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6592
SELECT DISTINCT - MIN( - col1 ) + CAST( NULL AS DECIMAL ) AS col1, 20 FROM tab1 cor0
----
NULL
20

skipif mysql # not compatible
query II rowsort label-6592
SELECT DISTINCT - MIN ( - col1 ) + CAST ( NULL AS REAL ) AS col1, 20 FROM tab1 cor0
----
NULL
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6593
SELECT col2 + - col0 col0, CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) / col0 AS col1 FROM tab1 AS cor0
----
-23
NULL
-26
NULL
45
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6593
SELECT col2 + - col0 col0, CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) / col0 AS col1 FROM tab1 AS cor0
----
-23
NULL
-26
NULL
45
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT 16 + - COUNT( ALL - 49 ) FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-6594
SELECT 16 + - COUNT ( ALL - 49 ) FROM tab1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6595
SELECT MIN( DISTINCT col0 ) + COUNT( * ) * ( + 64 ) FROM tab1
----
243

skipif mysql # not compatible
query I rowsort label-6595
SELECT MIN ( DISTINCT col0 ) + COUNT ( * ) * ( + 64 ) FROM tab1
----
243

query I rowsort
SELECT ALL col1 * - 59 FROM tab2
----
-3009
-3953
-4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 58 + - 76 + + col2 + + - col2 + - + 55 * + col0 * ( col2 ) - - ( + - col0 ) AS col1, + col2 * - + col0 col1 FROM tab2 WHERE - - col2 IS NOT NULL
----
-140882
-2560
-239343
-4350
-58254
-1058

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

skipif mysql # not compatible
query I rowsort label-6598
SELECT - CAST ( NULL AS REAL ) * + 61 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

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

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

query I rowsort
SELECT + 42 * - + col2 AS col1 FROM tab0
----
-1974
-4158
-420

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

query I rowsort
SELECT DISTINCT - col1 - 27 + - - 27 AS col1 FROM tab1 WHERE NULL > ( + + col0 )
----

query I rowsort
SELECT - - 51 * + - col2 * - 28 AS col1 FROM tab2 AS cor0
----
32844
57120
82824

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6607
SELECT ALL + col1 DIV + + col2 AS col2, - col1 AS col0 FROM tab1 AS cor0
----
0
-14
0
-47
0
-5

skipif mysql # not compatible
query II rowsort label-6607
SELECT ALL + col1 / + + col2 AS col2, - col1 AS col0 FROM tab1 AS cor0
----
0
-14
0
-47
0
-5

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

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

query I rowsort
SELECT + col0 FROM tab2 cor0 WHERE NOT ( 3 ) BETWEEN NULL AND NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col1 ) < col0
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6613
SELECT DISTINCT + MAX( col0 ) * - 29 FROM tab2 cor0
----
-2175

skipif mysql # not compatible
query I rowsort label-6613
SELECT DISTINCT + MAX ( col0 ) * - 29 FROM tab2 cor0
----
-2175

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + 67 / col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6616
SELECT - COUNT( - 43 ) col2 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6616
SELECT - COUNT ( - 43 ) col2 FROM tab2
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( col1 * - col0 )
----

query I rowsort
SELECT 59 AS col1 FROM tab0 WHERE NOT + col2 - + + 30 = NULL
----

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

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

query I rowsort
SELECT DISTINCT + - col0 + + - 83 AS col2 FROM tab2 cor0
----
-129
-147
-158

query I rowsort
SELECT + 39 * + col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - 86 + - - col2 AND + - col1
----

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE ( - col0 ) <= col2
----
-14
-47
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6623
SELECT - MAX( ALL CAST( NULL AS SIGNED ) ) * - 12 + - 98 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6623
SELECT - MAX ( ALL CAST ( NULL AS INTEGER ) ) * - 12 + - 98 FROM tab1
----
NULL

query I rowsort
SELECT - - 4 AS col0 FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT - + 32 FROM tab2 WHERE - + 71 > + col0 * - + col2 * 21
----
-32
-32
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT SUM( ALL - 10 ) FROM tab0, tab1 cor0
----
-90

skipif mysql # not compatible
query I rowsort label-6626
SELECT SUM ( ALL - 10 ) FROM tab0, tab1 cor0
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-6627
SELECT - col1 DIV col0 + col1 FROM tab2 AS cor0 WHERE ( + col2 ) IS NOT NULL
----
50
67
76

skipif mysql # not compatible
query I rowsort label-6627
SELECT - col1 / col0 + col1 FROM tab2 AS cor0 WHERE ( + col2 ) IS NOT NULL
----
50
67
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * col0 col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col2
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * + + 58 col0 FROM tab2 cor0
----
1334
2320
3364

query I rowsort
SELECT ALL + col0 + 35 FROM tab1 AS cor0
----
120
126
86

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

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

query I rowsort
SELECT DISTINCT - 50 + + 71 * col1 FROM tab0
----
1441
21
5701

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

query I rowsort
SELECT DISTINCT ( 65 ) * + + ( 87 ) AS col1 FROM tab1
----
5655

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 * + 60 / + col0 < - ( + col0 ) AND NULL < 70
----

query I rowsort
SELECT DISTINCT 86 * - + col0 FROM tab0
----
-1290
-7482
-8342

query II rowsort
SELECT DISTINCT col0 * + col0 + - + col2, + 89 * - 9 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT - COUNT( col0 ) * COUNT( * ) + + - 3 FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-6640
SELECT - COUNT ( col0 ) * COUNT ( * ) + + - 3 FROM tab2 AS cor0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6641
SELECT DISTINCT - MAX( DISTINCT - - 34 ) - - - MAX( DISTINCT + col1 ) col2 FROM tab1 cor0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6641
SELECT DISTINCT - MAX ( DISTINCT - - 34 ) - - - MAX ( DISTINCT + col1 ) col2 FROM tab1 cor0
----
-81

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

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

query I rowsort
SELECT ALL 15 * col0 FROM tab0 AS cor0
----
1305
1455
225

query II rowsort
SELECT 17 AS col0, - 83 FROM tab2 AS cor0
----
17
-83
17
-83
17
-83

query II rowsort
SELECT ALL - + col2, 48 AS col0 FROM tab1 AS cor0 WHERE NOT 72 IS NULL
----
-59
48
-68
48
-96
48

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

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

query I rowsort
SELECT + - 63 AS col1 FROM tab0 cor0
----
-63
-63
-63

query I rowsort
SELECT ALL 9 AS col1 FROM tab0 AS cor0 WHERE + col1 + + + 48 * + + col0 IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6651
SELECT DISTINCT CAST( NULL AS SIGNED ) * 80 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6651
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 80 AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT ALL MAX( DISTINCT 96 ) AS col2 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-6652
SELECT ALL MAX ( DISTINCT 96 ) AS col2 FROM tab1
----
96

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

query I rowsort
SELECT DISTINCT - ( ( + 42 ) ) FROM tab2
----
-42

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

query III rowsort
SELECT * FROM tab2 WHERE - + col2 = + + col2 * 81
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6657
SELECT - CAST( 54 AS SIGNED ) * - col2 + + 48 + + + 42 + ( + 57 ) * + + col0 * + + col1 + - CAST( NULL AS SIGNED ) - - 66 / + ( - - 56 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6657
SELECT - CAST ( 54 AS INTEGER ) * - col2 + + 48 + + + 42 + ( + 57 ) * + + col0 * + + col1 + - CAST ( NULL AS INTEGER ) - - 66 / + ( - - 56 ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 17 + + + 13 FROM tab0 AS cor0
----
-4
-4
-4

onlyif mysql # DIV for integer division: 
query II rowsort label-6659
SELECT + col1 + col2 DIV + col0 AS col2, col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

skipif mysql # not compatible
query II rowsort label-6659
SELECT + col1 + col2 / + col0 AS col2, col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

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

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

query I rowsort
SELECT DISTINCT - ( + col2 ) + col1 AS col0 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6662
SELECT ALL - COUNT( ALL + col1 ) + + + CAST( - COUNT( * ) AS SIGNED ) AS col0, 4 + - ( - SUM( col1 ) ) FROM tab1
----
-6
70

skipif mysql # not compatible
query II rowsort label-6662
SELECT ALL - COUNT ( ALL + col1 ) + + + CAST ( - COUNT ( * ) AS INTEGER ) AS col0, 4 + - ( - SUM ( col1 ) ) FROM tab1
----
-6
70

query III rowsort
SELECT * FROM tab2 WHERE + + 66 NOT IN ( + col2, - col0, + - col0 + - col1 + - col2, + 75 * - 77 + + col2, 45 + + col0 - - + 46 * + - col1 + - col0 * + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-6664
SELECT ALL col0 - - - col0 + + col2 DIV 7 AS col0, - col1 + - + col2 FROM tab1
----
13
-110
8
-64
9
-115

skipif mysql # not compatible
query II rowsort label-6664
SELECT ALL col0 - - - col0 + + col2 / 7 AS col0, - col1 + - + col2 FROM tab1
----
13
-110
8
-64
9
-115

query I rowsort
SELECT - col2 * - 80 AS col0 FROM tab0 WHERE + col2 + 62 + - col0 IS NOT NULL
----
3760
7920
800

query I rowsort
SELECT DISTINCT col0 - + + col2 * + col0 FROM tab1
----
-4845
-4930
-6097

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6667
SELECT 51 AS col2, CAST( NULL AS SIGNED ) FROM tab0
----
51
NULL
51
NULL
51
NULL

skipif mysql # not compatible
query II rowsort label-6667
SELECT 51 AS col2, CAST ( NULL AS INTEGER ) FROM tab0
----
51
NULL
51
NULL
51
NULL

query I rowsort
SELECT ALL 83 - col2 AS col0 FROM tab1
----
-13
15
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6669
SELECT DISTINCT col1 * + + ( + CAST( col2 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-6669
SELECT DISTINCT col1 * + + ( + CAST ( col2 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
1173
3080
3886

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6671
SELECT DISTINCT 84 DIV - col2 AS col2, col1 AS col1 FROM tab1 AS cor0
----
-1
47
-1
5
0
14

skipif mysql # not compatible
query II rowsort label-6671
SELECT DISTINCT 84 / - col2 AS col2, col1 AS col1 FROM tab1 AS cor0
----
-1
47
-1
5
0
14

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

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

query I rowsort
SELECT ALL + - 94 FROM tab0 cor0
----
-94
-94
-94

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 <> - - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + - 54 + - col1 col1 FROM tab1 AS cor0
----
-2585
-275
-770

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 75 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6677
SELECT SUM( ALL CAST( col0 AS SIGNED ) ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-6677
SELECT SUM ( ALL CAST ( col0 AS INTEGER ) ) FROM tab1
----
227

query II rowsort
SELECT + 26, col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
26
51
26
67
26
77

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6680
SELECT - COUNT( * ) DIV 94 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6680
SELECT - COUNT ( * ) / 94 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6681
SELECT DISTINCT + - 17 AS col2, - COUNT( * ) * + + 41 AS col2 FROM tab1 AS cor0
----
-17
-123

skipif mysql # not compatible
query II rowsort label-6681
SELECT DISTINCT + - 17 AS col2, - COUNT ( * ) * + + 41 AS col2 FROM tab1 AS cor0
----
-17
-123

query I rowsort
SELECT ALL + 74 + - + 54 AS col2 FROM tab0 AS cor0
----
20
20
20

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

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

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

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

query I rowsort
SELECT col1 + - col0 + - + col0 FROM tab0
----
-153
-193
51

query I rowsort
SELECT col0 * - col0 + + col1 FROM tab2
----
-2065
-4019
-5558

query I rowsort
SELECT + + col1 - + + 31 * + col1 FROM tab2 AS cor0
----
-1530
-2010
-2310

query I rowsort
SELECT ALL - col2 + 80 - + 23 FROM tab0 AS cor0
----
-42
10
47

query II rowsort
SELECT + ( + - ( - - 46 ) ) - + 82 * + 66, - 20 AS col0 FROM tab0 cor0
----
-5458
-20
-5458
-20
-5458
-20

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

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

query I rowsort
SELECT + col1 - 47 FROM tab1
----
-33
-42
0

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN - + col1 * - col0 AND col0 * + - col1 / + + ( + col2 ) + - + col1 + - col0
----

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

skipif mysql # not compatible
query I rowsort label-6693
SELECT ALL + MAX ( + - 13 ) AS col1 FROM tab2
----
-13

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 <> - 95 + + - 83
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6697
SELECT DISTINCT CAST( - MAX( - + col1 ) AS SIGNED ) FROM tab2
----
51

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

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

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

query I rowsort
SELECT DISTINCT 88 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6700
SELECT + - COUNT( + - 53 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6700
SELECT + - COUNT ( + - 53 ) FROM tab2 AS cor0
----
-3

query II rowsort
SELECT ALL 35 AS col2, 37 FROM tab2 AS cor0
----
35
37
35
37
35
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0 col2, col1 * - 67 FROM tab0 AS cor0
----
15
-5427
87
-1407
97
-67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6703
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 19 / - - CAST( NULL AS SIGNED ) ) >= col0
----

skipif mysql # not compatible
query III rowsort label-6703
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 19 / - - CAST ( NULL AS INTEGER ) ) >= col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6704
SELECT - CAST( + - MIN( DISTINCT - + 64 ) AS SIGNED ) FROM tab1 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-6704
SELECT - CAST ( + - MIN ( DISTINCT - + 64 ) AS INTEGER ) FROM tab1 AS cor0
----
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 67 AS col2, - col2 col1 FROM tab1 AS cor0
----
-67
-59
-67
-68
-67
-96

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6707
SELECT 31 AS col0, CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
31
NULL
31
NULL
31
NULL

skipif mysql # not compatible
query II rowsort label-6707
SELECT 31 AS col0, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
31
NULL
31
NULL
31
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6708
SELECT DISTINCT CAST( + + 23 AS SIGNED ) + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-6708
SELECT DISTINCT CAST ( + + 23 AS INTEGER ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
20

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6711
SELECT ALL - col2 FROM tab2 cor0 WHERE NOT - col2 <> CAST( - + 48 AS SIGNED ) / - - col0 * col1 - + 9
----

skipif mysql # not compatible
query I rowsort label-6711
SELECT ALL - col2 FROM tab2 cor0 WHERE NOT - col2 <> CAST ( - + 48 AS INTEGER ) / - - col0 * col1 - + 9
----

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

query II rowsort
SELECT col1, - col0 + + 48 AS col0 FROM tab1 AS cor0
----
14
-3
47
-43
5
-37

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 99 <= NULL
----

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

query II rowsort
SELECT + 97, col0 * + col1 + - col0 AS col1 FROM tab2 AS cor0
----
97
2300
97
4864
97
4950

onlyif mysql # DIV for integer division: 
query I rowsort label-6717
SELECT ALL col0 DIV 74 AS col1 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6717
SELECT ALL col0 / 74 AS col1 FROM tab1
----
0
1
1

query I rowsort
SELECT ALL 84 + - col2 + 1 AS col2 FROM tab1
----
-11
17
26

query I rowsort
SELECT col0 * - + col0 FROM tab0 WHERE + col0 * - ( 39 ) IS NOT NULL
----
-225
-7569
-9409

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6721
SELECT DISTINCT 11 DIV SUM( + col0 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6721
SELECT DISTINCT 11 / SUM ( + col0 ) AS col1 FROM tab0
----
0

query I rowsort
SELECT ALL - col2 / - 70 AS col0 FROM tab0 AS cor0 WHERE col1 + + - 95 < ( NULL )
----

query I rowsort
SELECT ALL - + 90 * - 44 + - col1 AS col2 FROM tab0 AS cor0
----
3879
3939
3959

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 AS cor0 WHERE NULL <= + col1
----

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

query I rowsort
SELECT DISTINCT col0 + - - 60 AS col2 FROM tab2 AS cor0
----
106
124
135

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

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

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

skipif mysql # not compatible
query I rowsort label-6728
SELECT CAST ( NULL AS INTEGER ) + - + col1 + + col1 + 96 * - col2 + col1 * - col1 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 54 + - + col1 FROM tab2 AS cor0
----
-105
-121
-131

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6731
SELECT DISTINCT + 23 DIV + - CAST( COUNT( * ) AS SIGNED ) FROM tab0 cor0
----
-7

skipif mysql # not compatible
query I rowsort label-6731
SELECT DISTINCT + 23 / + - CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 cor0
----
-7

onlyif mysql # DIV for integer division: 
query II rowsort label-6732
SELECT ALL 38 + 9 + - + 9 DIV + + col0 AS col1, col2 AS col1 FROM tab2 AS cor0
----
47
23
47
40
47
58

skipif mysql # not compatible
query II rowsort label-6732
SELECT ALL 38 + 9 + - + 9 / + + col0 AS col1, col2 AS col1 FROM tab2 AS cor0
----
47
23
47
40
47
58

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 1 < - 22
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6736
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 38 / - 16 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6736
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 38 / - 16 FROM tab0
----
NULL

query I rowsort
SELECT - 90 * 9 FROM tab2
----
-810
-810
-810

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

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

skipif mysql # not compatible
query I rowsort label-6739
SELECT + ( - - MIN ( + 17 ) ) AS col2 FROM tab0
----
17

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6742
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-6742
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6743
SELECT DISTINCT CAST( + - 37 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-6743
SELECT DISTINCT CAST ( + - 37 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6744
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col0 < + - 49
----
3

skipif mysql # not compatible
query I rowsort label-6744
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col0 < + - 49
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6745
SELECT ALL + + 63 * COUNT( * ) DIV 38 + + COUNT( * ) col0 FROM tab2 AS cor0
----
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6745
SELECT ALL + + 63 * COUNT ( * ) / 38 + + COUNT ( * ) col0 FROM tab2 AS cor0
----
7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 <= col0
----

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6750
SELECT ALL - CAST( NULL AS SIGNED ) * + SUM( - 55 ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6750
SELECT ALL - CAST ( NULL AS INTEGER ) * + SUM ( - 55 ) FROM tab1 cor0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6751
SELECT MAX ( ALL + 23 ) FROM tab2 AS cor0
----
23

query I rowsort
SELECT col0 * 77 AS col1 FROM tab2
----
3542
4928
5775

onlyif mysql # aggregate syntax: 
query I rowsort label-6753
SELECT COUNT( * ) * + + 54 col1 FROM tab2
----
162

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6753
SELECT COUNT ( * ) * + + 54 col1 FROM tab2
----
162

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6754
SELECT CAST( NULL AS SIGNED ), col1 DIV 29 AS col0 FROM tab1
----
NULL
0
NULL
0
NULL
1

skipif mysql # not compatible
query II rowsort label-6754
SELECT CAST ( NULL AS INTEGER ), col1 / 29 AS col0 FROM tab1
----
NULL
0
NULL
0
NULL
1

query I rowsort
SELECT col2 * + 83 AS col2 FROM tab0
----
3901
8217
830

query I rowsort
SELECT col1 - + 99 FROM tab0
----
-18
-78
-98

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6758
SELECT ALL + - 14 * + CAST( NULL AS SIGNED ) * + COUNT( ALL + - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6758
SELECT ALL + - 14 * + CAST ( NULL AS INTEGER ) * + COUNT ( ALL + - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col2 + + 7 AS col2 FROM tab0
----
106
17
54

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

query I rowsort
SELECT - 12 * - + 70 - col1 - + 91 + + col0 + - col0 FROM tab2 AS cor0
----
672
682
698

onlyif mysql # DIV for integer division: 
query II rowsort label-6762
SELECT DISTINCT 97 DIV - - col0 col0, - col2 col1 FROM tab1 cor0
----
1
-59
1
-68
1
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6762
SELECT DISTINCT 97 / - - col0 col0, - col2 col1 FROM tab1 cor0
----
1
-59
1
-68
1
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-6763
SELECT + col0 DIV col1 * col1 AS col2 FROM tab1 AS cor0
----
42
47
85

skipif mysql # not compatible
query I rowsort label-6763
SELECT + col0 / col1 * col1 AS col2 FROM tab1 AS cor0
----
42
47
85

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

query I rowsort
SELECT DISTINCT - 33 * - - col1 AS col1 FROM tab1 AS cor0 WHERE col1 + - - 52 * - col1 IS NOT NULL
----
-1551
-165
-462

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

skipif mysql # not compatible
query I rowsort label-6766
SELECT DISTINCT - - ( + CAST ( - col2 AS INTEGER ) ) FROM tab1 cor0
----
-59
-68
-96

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

skipif mysql # not compatible
query I rowsort label-6767
SELECT DISTINCT - CAST ( + MAX ( + + col0 ) AS INTEGER ) FROM tab2 AS cor0
----
-75

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 * + col2 + - - col0 * - col0 * + 3 col2 FROM tab1 AS cor0
----
-19669
-22531
-4539

query I rowsort
SELECT DISTINCT + col0 * + col1 * 14 AS col0 FROM tab2 cor0 WHERE NOT NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6771
SELECT ALL MAX( ALL 61 ) col2 FROM tab1
----
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6771
SELECT ALL MAX ( ALL 61 ) col2 FROM tab1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6772
SELECT + MIN( - col1 ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-47

skipif mysql # not compatible
query I rowsort label-6772
SELECT + MIN ( - col1 ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-47

query I rowsort
SELECT col1 * + 1 FROM tab2
----
51
67
77

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 = col1 / col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6775
SELECT ALL SUM( ALL - 9 ) AS col0 FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-6775
SELECT ALL SUM ( ALL - 9 ) AS col0 FROM tab2
----
-27

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 / col1 - + col2 - - - 59 + - col0 BETWEEN 50 AND + 63 / - col1 + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - - 73 AS col0, col0 FROM tab0 AS cor0
----
73
15
73
87
73
97

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - 45, + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6780
SELECT - + COUNT( * ) AS col2, + 91 * + - CAST( NULL AS DECIMAL ) * + 3 FROM tab2 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-6780
SELECT - + COUNT ( * ) AS col2, + 91 * + - CAST ( NULL AS REAL ) * + 3 FROM tab2 AS cor0
----
-3
NULL

query I rowsort
SELECT 16 FROM tab1, tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT + - 53 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

query I rowsort
SELECT + + 11 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query II rowsort
SELECT + + 56 AS col2, 70 FROM tab2 AS cor0 WHERE - col2 + - ( + 86 ) BETWEEN + + col2 * - + ( - col2 ) AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6785
SELECT DISTINCT - + CAST( - - ( col1 ) AS SIGNED ) * col0 AS col2, - col0 AS col0 FROM tab1 AS cor0
----
-425
-85
-4277
-91
-714
-51

skipif mysql # not compatible
query II rowsort label-6785
SELECT DISTINCT - + CAST ( - - ( col1 ) AS INTEGER ) * col0 AS col2, - col0 AS col0 FROM tab1 AS cor0
----
-425
-85
-4277
-91
-714
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + + 89 col2 FROM tab0 AS cor0
----
1869
7209
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6787
SELECT + COUNT( ALL + - col2 ) * + + 20 AS col0 FROM tab2 cor0
----
60

skipif mysql # not compatible
query I rowsort label-6787
SELECT + COUNT ( ALL + - col2 ) * + + 20 AS col0 FROM tab2 cor0
----
60

query II rowsort
SELECT col1 + + + 7, col2 FROM tab2 AS cor0
----
58
23
74
58
84
40

query I rowsort
SELECT DISTINCT + col2 * - + col0 AS col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT ALL 4 + + 3 FROM tab2
----
7
7
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + + 74 ) * - col1 col2 FROM tab1
----
-1036
-3478
-370

query I rowsort
SELECT 76 + - + 26 + + col1 AS col2 FROM tab0
----
131
51
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT - + COUNT( * ) FROM tab0 WHERE col1 < 65 * - col0
----
0

skipif mysql # not compatible
query I rowsort label-6793
SELECT - + COUNT ( * ) FROM tab0 WHERE col1 < 65 * - col0
----
0

query I rowsort
SELECT ALL 76 * + - 48 FROM tab0
----
-3648
-3648
-3648

query I rowsort
SELECT ALL + - ( - - 18 ) * + ( + col1 ) AS col2 FROM tab0 AS cor0
----
-1458
-18
-378

onlyif mysql # aggregate syntax: 
query II rowsort label-6796
SELECT ALL - MAX( col0 ) + - COUNT( * ) AS col0, 16 FROM tab1 AS cor0
----
-94
16

skipif mysql # not compatible
query II rowsort label-6796
SELECT ALL - MAX ( col0 ) + - COUNT ( * ) AS col0, 16 FROM tab1 AS cor0
----
-94
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT DISTINCT - + COUNT( * ) FROM tab2 cor0 WHERE NOT col0 / + 4 = - - col0
----
-3

skipif mysql # not compatible
query I rowsort label-6797
SELECT DISTINCT - + COUNT ( * ) FROM tab2 cor0 WHERE NOT col0 / + 4 = - - col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6798
SELECT ALL COUNT( - col0 ) + - - 32 + - - 46 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6798
SELECT ALL COUNT ( - col0 ) + - - 32 + - - 46 FROM tab0 AS cor0
----
81

query I rowsort
SELECT DISTINCT - col2 + 59 AS col2 FROM tab2 AS cor0
----
1
19
36

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL >= 17
----

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

skipif mysql # not compatible
query I rowsort label-6801
SELECT ALL COUNT ( * ) + - 3 FROM tab1
----
0

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6804
SELECT ALL - 58 DIV MAX( ALL col1 ) * - COUNT( * ) - - SUM( col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-6804
SELECT ALL - 58 / MAX ( ALL col1 ) * - COUNT ( * ) - - SUM ( col1 ) AS col2 FROM tab0 AS cor0
----
103

query I rowsort
SELECT - 93 * - 35 FROM tab2 AS cor0
----
3255
3255
3255

onlyif mysql # DIV for integer division: 
query I rowsort label-6806
SELECT DISTINCT - + 37 DIV + - 5 AS col0 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-6806
SELECT DISTINCT - + 37 / + - 5 AS col0 FROM tab0 AS cor0
----
7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 58 NOT BETWEEN NULL AND - + 53
----

query I rowsort
SELECT DISTINCT - col2 - + 46 + - col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-190
-193
-205

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

skipif mysql # not compatible
query I rowsort label-6809
SELECT - + MIN ( - + col0 ) FROM tab2 AS cor0
----
75

query I rowsort
SELECT ALL + + 84 + - col2 + - - col1 AS col1 FROM tab0 AS cor0 WHERE NOT 68 * + 81 * col0 * - + col1 IS NOT NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 13 * 52 col1 FROM tab1
----
-676
-676
-676

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6813
SELECT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND + col0 * + 22 * - CAST( 85 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6813
SELECT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND + col0 * + 22 * - CAST ( 85 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6814
SELECT COUNT( col2 ) col1 FROM tab1
----
3

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

query II rowsort
SELECT + col0 AS col1, col0 + + + 65 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN col0 AND col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6816
SELECT + COUNT( * ) DIV + 67 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6816
SELECT + COUNT ( * ) / + 67 AS col2 FROM tab0 AS cor0
----
0

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

query I rowsort
SELECT ALL col2 * + col2 * + 89 AS col2 FROM tab0
----
196601
872289
8900

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6822
SELECT ALL COUNT( * ) + 35 FROM tab1 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-6822
SELECT ALL COUNT ( * ) + 35 FROM tab1 AS cor0
----
38

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

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

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

query I rowsort
SELECT + - col0 * - col0 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) <> NULL
----

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

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

query I rowsort
SELECT ALL col0 + - 20 AS col2 FROM tab0 AS cor0
----
-5
67
77

query I rowsort
SELECT ALL col2 + - 4 FROM tab2 AS cor0
----
19
36
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6829
SELECT DISTINCT MIN( DISTINCT + 76 ) + + COUNT( * ) FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-6829
SELECT DISTINCT MIN ( DISTINCT + 76 ) + + COUNT ( * ) FROM tab1
----
79

query III rowsort
SELECT * FROM tab0 WHERE NULL = - col0 / - col1
----

query II rowsort
SELECT col2 - - 97, + col2 AS col1 FROM tab0
----
107
10
144
47
196
99

onlyif mysql # aggregate syntax: 
query II rowsort label-6832
SELECT - 48 - 6 + MIN( + col1 ), 23 col1 FROM tab2
----
-3
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6832
SELECT - 48 - 6 + MIN ( + col1 ), 23 col1 FROM tab2
----
-3
23

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6834
SELECT ALL + COUNT( * ) - + 19 AS col1 FROM tab1 cor0
----
-16

skipif mysql # not compatible
query I rowsort label-6834
SELECT ALL + COUNT ( * ) - + 19 AS col1 FROM tab1 cor0
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6835
SELECT + ( - MAX( + col1 ) ) + - - COUNT( - 38 ) DIV + 37 * 11 * - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-47

skipif mysql # not compatible
query I rowsort label-6835
SELECT + ( - MAX ( + col1 ) ) + - - COUNT ( - 38 ) / + 37 * 11 * - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-47

query I rowsort
SELECT + 67 * + col0 AS col0 FROM tab2 AS cor0
----
3082
4288
5025

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6838
SELECT - 72 DIV + MAX( ALL + ( col2 ) ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6838
SELECT - 72 / + MAX ( ALL + ( col2 ) ) FROM tab2 AS cor0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6839
SELECT DISTINCT - + CAST( - SUM( ALL + 62 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-6839
SELECT DISTINCT - + CAST ( - SUM ( ALL + 62 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-6840
SELECT DISTINCT + COUNT( * ) * + 70 FROM tab1 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-6840
SELECT DISTINCT + COUNT ( * ) * + 70 FROM tab1 AS cor0
----
210

query I rowsort
SELECT - + col0 * - col1 * col0 AS col0 FROM tab1 AS cor0
----
36125
36414
389207

query I rowsort
SELECT DISTINCT - 86 * + + col0 AS col0 FROM tab1
----
-4386
-7310
-7826

onlyif mysql # aggregate syntax: 
query I rowsort label-6843
SELECT - 20 * + + COUNT( * ) * + - 67 AS col1 FROM tab1
----
4020

skipif mysql # not compatible
query I rowsort label-6843
SELECT - 20 * + + COUNT ( * ) * + - 67 AS col1 FROM tab1
----
4020

query I rowsort
SELECT ALL + col1 * 32 FROM tab0
----
2592
32
672

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL <= + col0 * + + 97
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6847
SELECT - col1 AS col0, - col1 DIV col2 - + col2 col1 FROM tab0 cor0
----
-1
-99
-21
-12
-81
-48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6847
SELECT - col1 AS col0, - col1 / col2 - + col2 col1 FROM tab0 cor0
----
-1
-99
-21
-12
-81
-48

query I rowsort
SELECT DISTINCT + 74 * + col2 * + ( - col2 ) + - + col1 AS col2 FROM tab0 AS cor0
----
-163547
-725275
-7421

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6851
SELECT + COUNT( * ), - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9
-9

skipif mysql # not compatible
query II rowsort label-6851
SELECT + COUNT ( * ), - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9
-9

query I rowsort
SELECT + - col2 * + + col0 + + + ( - - col1 ) + - col2 + 3 * + col2 * 69 * - col0 FROM tab2 AS cor0
----
-220036
-532443
-904791

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

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

query II rowsort
SELECT col0 + + + col1 AS col1, col0 * - ( - - 2 ) * - + ( - col2 ) * + 45 + + + col2 AS col1 FROM tab0 AS cor0
----
108
-78290
96
-63403
98
-864171

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6856
SELECT ALL - COUNT( ALL col2 ) + + 2 AS col0, SUM( + + col2 ) FROM tab0 AS cor0
----
-1
156

skipif mysql # not compatible
query II rowsort label-6856
SELECT ALL - COUNT ( ALL col2 ) + + 2 AS col0, SUM ( + + col2 ) FROM tab0 AS cor0
----
-1
156

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - 53 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-6858
SELECT + MAX ( ALL + 49 ) AS col2 FROM tab2
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-6859
SELECT DISTINCT - 57 - col2 + + col1 + + - col1 DIV - col0 AS col0 FROM tab0
----
-155
-18
-46

skipif mysql # not compatible
query I rowsort label-6859
SELECT DISTINCT - 57 - col2 + + col1 + + - col1 / - col0 AS col0 FROM tab0
----
-155
-18
-46

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

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

query I rowsort
SELECT ALL col1 - - col2 + 52 FROM tab2
----
126
169
177

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

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

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 WHERE + 54 BETWEEN 81 AND NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6867
SELECT - col0 + + col0 DIV col2 AS col2 FROM tab2
----
-44
-63
-74

skipif mysql # not compatible
query I rowsort label-6867
SELECT - col0 + + col0 / col2 AS col2 FROM tab2
----
-44
-63
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6868
SELECT - COUNT( DISTINCT + 86 ) AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-6868
SELECT - COUNT ( DISTINCT + 86 ) AS col2 FROM tab2
----
-1

query I rowsort
SELECT ALL ( ( 42 ) ) * 28 + - 62 FROM tab2
----
1114
1114
1114

query I rowsort
SELECT DISTINCT + AVG ( DISTINCT 78 ) FROM tab1 WHERE NOT + 22 <> ( 40 )
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT 75 BETWEEN NULL AND ( - col2 - - 77 / + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6873
SELECT ALL + SUM( + CAST( + col2 AS SIGNED ) ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-6873
SELECT ALL + SUM ( + CAST ( + col2 AS INTEGER ) ) FROM tab2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-6874
SELECT ALL SUM( + 65 ) FROM tab1
----
195

skipif mysql # not compatible
query I rowsort label-6874
SELECT ALL SUM ( + 65 ) FROM tab1
----
195

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

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

query III rowsort
SELECT * FROM tab0 WHERE col2 IN ( - 53 )
----

query III rowsort
SELECT * FROM tab1 WHERE col2 IN ( 57 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6879
SELECT + MAX( ALL 7 ) AS col2 FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-6879
SELECT + MAX ( ALL 7 ) AS col2 FROM tab0
----
7

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE col2 / + col2 <= col1
----
59
68
96

query I rowsort
SELECT DISTINCT - col1 - col0 * - col1 FROM tab0
----
1134
1806
96

query I rowsort
SELECT col1 - 83 FROM tab1
----
-36
-69
-78

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

skipif mysql # not compatible
query I rowsort label-6883
SELECT DISTINCT + 45 FROM tab1 WHERE col2 + col2 BETWEEN CAST ( - col1 AS INTEGER ) AND NULL
----

query I rowsort
SELECT ALL + col0 + 27 FROM tab1
----
112
118
78

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

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

query I rowsort
SELECT 40 - 31 * - 23 AS col0 FROM tab0
----
753
753
753

query I rowsort
SELECT 77 - + col0 FROM tab1
----
-14
-8
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT DISTINCT COUNT( ALL col2 ) * + 60 + 69 FROM tab1
----
249

skipif mysql # not compatible
query I rowsort label-6888
SELECT DISTINCT COUNT ( ALL col2 ) * + 60 + 69 FROM tab1
----
249

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 NOT IN ( col2 )
----

query I rowsort
SELECT ALL + col0 + - col0 AS col0 FROM tab1 WHERE NOT - col1 / col2 + + col1 <= + 43
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6891
SELECT ALL + col1 / col2 col2 FROM tab0 AS cor0 WHERE - col2 * CAST( CAST( NULL AS SIGNED ) AS SIGNED ) > - col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6891
SELECT ALL + col1 / col2 col2 FROM tab0 AS cor0 WHERE - col2 * CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) > - col0
----

query I rowsort
SELECT ALL col0 + 12 * - col2 AS col0 FROM tab2 AS cor0
----
-230
-416
-621

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 95 > ( NULL )
----

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

query I rowsort
SELECT - col2 + + col0 * + 67 FROM tab2 AS cor0
----
3059
4248
4967

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6896
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE col2 NOT IN ( + col1 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6896
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE col2 NOT IN ( + col1 )
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT + COUNT( 29 ) FROM tab0 WHERE ( 12 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6897
SELECT + COUNT ( 29 ) FROM tab0 WHERE ( 12 ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6898
SELECT ( - MIN( + col0 ) ) + + 96 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-6898
SELECT ( - MIN ( + col0 ) ) + + 96 FROM tab1
----
45

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6900
SELECT MIN( ALL 64 ) + 50 AS col0 FROM tab2
----
114

skipif mysql # not compatible
query I rowsort label-6900
SELECT MIN ( ALL 64 ) + 50 AS col0 FROM tab2
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-6901
SELECT DISTINCT - SUM( ALL 74 ) * - COUNT( * ) FROM tab0
----
666

skipif mysql # not compatible
query I rowsort label-6901
SELECT DISTINCT - SUM ( ALL 74 ) * - COUNT ( * ) FROM tab0
----
666

query I rowsort
SELECT - col2 * + 42 FROM tab0 AS cor0
----
-1974
-4158
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-6903
SELECT ALL - COUNT( ALL col1 ) * - COUNT( * ) FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-6903
SELECT ALL - COUNT ( ALL col1 ) * - COUNT ( * ) FROM tab1 cor0
----
9

query I rowsort
SELECT 13 AS col1 FROM tab0 AS cor0 WHERE + col0 * - col1 - 4 IN ( col2 + col2 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6906
SELECT DISTINCT + ( + COUNT( * ) ) + - MIN( DISTINCT - col0 - col0 ) FROM tab1 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-6906
SELECT DISTINCT + ( + COUNT ( * ) ) + - MIN ( DISTINCT - col0 - col0 ) FROM tab1 AS cor0
----
185

query I rowsort
SELECT + col1 - - 71 FROM tab1 AS cor0
----
118
76
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6908
SELECT - ( - 30 ) - - COUNT( * ) col1 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6908
SELECT - ( - 30 ) - - COUNT ( * ) col1 FROM tab0 AS cor0
----
33

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6910
SELECT - COUNT( * ) FROM tab2 WHERE + 29 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6910
SELECT - COUNT ( * ) FROM tab2 WHERE + 29 IS NOT NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6911
SELECT DISTINCT col0 DIV + col0 + 99 AS col0 FROM tab1
----
100

skipif mysql # not compatible
query I rowsort label-6911
SELECT DISTINCT col0 / + col0 + 99 AS col0 FROM tab1
----
100

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

query I rowsort
SELECT ALL 8 + + 75 * + 80 FROM tab0
----
6008
6008
6008

query I rowsort
SELECT ALL 21 - + + col1 AS col0 FROM tab0
----
-60
0
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6915
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE NOT 71 NOT BETWEEN CAST( NULL AS SIGNED ) / col0 AND + col1
----
0

skipif mysql # not compatible
query I rowsort label-6915
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE NOT 71 NOT BETWEEN CAST ( NULL AS INTEGER ) / col0 AND + col1
----
0

query I rowsort
SELECT col2 + col2 * 88 FROM tab2
----
2047
3560
5162

query I rowsort
SELECT DISTINCT 94 AS col2 FROM tab0 cor0
----
94

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

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

query I rowsort
SELECT ALL + 53 FROM tab1, tab0 cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6920
SELECT ALL * FROM tab0 WHERE NOT + CAST( + col2 AS SIGNED ) * + col2 + + col1 IN ( 31 * col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6920
SELECT ALL * FROM tab0 WHERE NOT + CAST ( + col2 AS INTEGER ) * + col2 + + col1 IN ( 31 * col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 33 * 30 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL > - 12
----

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

query I rowsort
SELECT ( + 56 ) AS col1 FROM tab1 AS cor0
----
56
56
56

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6926
SELECT + 73 + - COUNT( * ) * 39 AS col2 FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN + col1 AND + 68
----
-5

skipif mysql # not compatible
query I rowsort label-6926
SELECT + 73 + - COUNT ( * ) * 39 AS col2 FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN + col1 AND + 68
----
-5

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab2 AS cor0 WHERE NOT col1 + 42 IN ( + 41 )
----
23
40
58

onlyif mysql # aggregate syntax: 
query II rowsort label-6930
SELECT COUNT( * ) AS col0, - 27 - + COUNT( * ) + - 98 AS col2 FROM tab0 AS cor0
----
3
-128

skipif mysql # not compatible
query II rowsort label-6930
SELECT COUNT ( * ) AS col0, - 27 - + COUNT ( * ) + - 98 AS col2 FROM tab0 AS cor0
----
3
-128

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6932
SELECT ALL + 45 col0 FROM tab1 cor0 WHERE - col0 * - CAST( 24 AS SIGNED ) NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6932
SELECT ALL + 45 col0 FROM tab1 cor0 WHERE - col0 * - CAST ( 24 AS INTEGER ) NOT IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6933
SELECT ALL - - COUNT( DISTINCT - 20 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6933
SELECT ALL - - COUNT ( DISTINCT - 20 ) FROM tab0 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 / - 79 / - 42 + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + 41 FROM tab2 WHERE NOT + ( - 19 ) IN ( + 51 )
----
41

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 31 IN ( + 16 * - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 * - col0 * + + col1 FROM tab2
----
-107916
-315392
-376875

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6938
SELECT DISTINCT CAST( NULL AS SIGNED ), + 76 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
76

skipif mysql # not compatible
query II rowsort label-6938
SELECT DISTINCT CAST ( NULL AS INTEGER ), + 76 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
76

query II rowsort
SELECT ALL + col0 + 46 AS col1, col0 AS col2 FROM tab0 AS cor0
----
133
87
143
97
61
15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6940
SELECT DISTINCT - - 75 DIV col0 - + col0 + + CAST( + col0 AS SIGNED ) + - ( + ( col0 ) + - col2 ) AS col2 FROM tab0 AS cor0
----
-77
2
37

skipif mysql # not compatible
query I rowsort label-6940
SELECT DISTINCT - - 75 / col0 - + col0 + + CAST ( + col0 AS INTEGER ) + - ( + ( col0 ) + - col2 ) AS col2 FROM tab0 AS cor0
----
-77
2
37

onlyif mysql # DIV for integer division: 
query I rowsort label-6941
SELECT + col0 DIV 95 + - 10 FROM tab2 AS cor0 WHERE - 51 NOT BETWEEN - col2 AND 95 + 0 DIV col0
----
-10
-10

skipif mysql # not compatible
query I rowsort label-6941
SELECT + col0 / 95 + - 10 FROM tab2 AS cor0 WHERE - 51 NOT BETWEEN - col2 AND 95 + 0 / col0
----
-10
-10

query I rowsort
SELECT ALL - col1 * - col0 + - col1 AS col1 FROM tab2 AS cor0
----
2295
4851
4958

onlyif mysql # aggregate syntax: 
query I rowsort label-6943
SELECT DISTINCT MAX( + col0 ) + + 77 AS col2 FROM tab0
----
174

skipif mysql # not compatible
query I rowsort label-6943
SELECT DISTINCT MAX ( + col0 ) + + 77 AS col2 FROM tab0
----
174

query I rowsort
SELECT ALL + 58 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT + col2 + + 26 AS col1 FROM tab2
----
49
66
84

query I rowsort
SELECT DISTINCT - 8 * - 59 * + - col2 + + 61 AS col0 FROM tab0 AS cor0
----
-22123
-4659
-46667

query I rowsort
SELECT + - col1 + - - col2 AS col0 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6948
SELECT DISTINCT - - col0 - + CAST( ( - col2 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-6948
SELECT DISTINCT - - col0 - + CAST ( ( - col2 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT col1 + - col0 + + + ( - ( + - col2 ) ) AS col1 FROM tab1 AS cor0
----
-21
24
59

query I rowsort
SELECT DISTINCT - - col0 * - 50 * + col2 * + col2 FROM tab2 AS cor0
----
-1216700
-12615000
-5120000

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6952
SELECT + + ( col1 ) * + 72 * - 40 + 73 DIV + ( col2 ) FROM tab2 AS cor0
----
-146877
-192959
-221759

skipif mysql # not compatible
query I rowsort label-6952
SELECT + + ( col1 ) * + 72 * - 40 + 73 / + ( col2 ) FROM tab2 AS cor0
----
-146877
-192959
-221759

query I rowsort
SELECT + col2 + + 55 FROM tab0 cor0
----
102
154
65

query I rowsort
SELECT ALL col1 + 47 + - col2 AS col1 FROM tab0 AS cor0
----
-51
58
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - 88 col2 FROM tab1 cor0 WHERE NOT - 28 NOT BETWEEN - col2 AND - + 95
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6956
SELECT DISTINCT + COUNT( + 65 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6956
SELECT DISTINCT + COUNT ( + 65 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 60 + col2 * + + col1 FROM tab0 AS cor0
----
159
270
3867

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 93 * + 91 + + + col2 * - 56 col2 FROM tab1 AS cor0
----
-123858
-401569
-45619

query I rowsort
SELECT ALL - + 39 + col1 * - + ( - - 59 ) AS col1 FROM tab2 AS cor0
----
-3048
-3992
-4582

query I rowsort
SELECT ALL - 19 FROM tab2 WHERE NOT NULL BETWEEN ( col0 + - + 74 ) AND ( NULL )
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6963
SELECT + COUNT( * ) AS col2, - 99 AS col0 FROM tab2, tab0 AS cor0
----
9
-99

skipif mysql # not compatible
query II rowsort label-6963
SELECT + COUNT ( * ) AS col2, - 99 AS col0 FROM tab2, tab0 AS cor0
----
9
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-6964
SELECT DISTINCT + 32 AS col1, + COUNT( * ) * - + SUM( DISTINCT 4 ) col2 FROM tab2
----
32
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6964
SELECT DISTINCT + 32 AS col1, + COUNT ( * ) * - + SUM ( DISTINCT 4 ) col2 FROM tab2
----
32
-12

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

skipif mysql # not compatible
query I rowsort label-6965
SELECT MIN ( ALL + 45 ) FROM tab0 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6966
SELECT + - SUM( - col2 ) * - 71 AS col1 FROM tab2 AS cor0
----
-8591

skipif mysql # not compatible
query I rowsort label-6966
SELECT + - SUM ( - col2 ) * - 71 AS col1 FROM tab2 AS cor0
----
-8591

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col2 / + col2 * col2 = ( + ( + ( + col0 ) ) )
----
3

skipif mysql # not compatible
query I rowsort label-6967
SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col2 / + col2 * col2 = ( + ( + ( + col0 ) ) )
----
3

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT 77 * - + 43 - - col1 IN ( - + ( col0 ) )
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6969
SELECT - 42 DIV - COUNT( * ) FROM tab1 AS cor0 WHERE NOT CAST( col2 AS SIGNED ) IS NULL
----
14

skipif mysql # not compatible
query I rowsort label-6969
SELECT - 42 / - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT CAST ( col2 AS INTEGER ) IS NULL
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-6970
SELECT ALL - - col2 DIV - - 70 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6970
SELECT ALL - - col2 / - - 70 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 69 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6972
SELECT SUM( col2 ) * COUNT( DISTINCT + - col0 ) FROM tab2
----
363

skipif mysql # not compatible
query I rowsort label-6972
SELECT SUM ( col2 ) * COUNT ( DISTINCT + - col0 ) FROM tab2
----
363

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6973
SELECT * FROM tab2 WHERE NOT + col0 + - col2 + col0 - - 58 NOT BETWEEN col2 + CAST( NULL AS SIGNED ) AND + 15
----

skipif mysql # not compatible
query III rowsort label-6973
SELECT * FROM tab2 WHERE NOT + col0 + - col2 + col0 - - 58 NOT BETWEEN col2 + CAST ( NULL AS INTEGER ) AND + 15
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) NOT IN ( + 16 * - col0 + + 51 )
----

query IIIIII rowsort
SELECT ALL * FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE ( NULL ) <= NULL
----

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

skipif mysql # not compatible
query I rowsort label-6976
SELECT + MAX ( - + 28 ) AS col2 FROM tab2 AS cor0
----
-28

query I rowsort
SELECT 5 * col0 + col1 * - col2 FROM tab0 AS cor0 WHERE NOT + ( col2 ) - + col2 + 25 NOT IN ( - 36 )
----

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * - 68 * - 86 IS NOT NULL
----

query I rowsort
SELECT ALL col1 + + - col2 FROM tab2 cor0
----
28
37
9

query I rowsort
SELECT ALL + col1 + ( + col1 ) + - 59 AS col1 FROM tab1
----
-31
-49
35

query I rowsort
SELECT ALL + ( + 25 ) FROM tab0
----
25
25
25

query I rowsort
SELECT + col1 * - 78 FROM tab1
----
-1092
-3666
-390

onlyif mysql # aggregate syntax: 
query I rowsort label-6984
SELECT COUNT( * ) * + + 61 AS col2 FROM tab0
----
183

skipif mysql # not compatible
query I rowsort label-6984
SELECT COUNT ( * ) * + + 61 AS col2 FROM tab0
----
183

query I rowsort
SELECT DISTINCT + ( 19 ) AS col1 FROM tab2
----
19

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IS NOT NULL OR NOT col1 - 50 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6987
SELECT ALL + COUNT( + col0 ) * COUNT( + col2 ) * + 88 col0 FROM tab1
----
792

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6988
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 * - 81 < + col2 / - CAST( - col1 AS SIGNED ) AND ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6988
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 * - 81 < + col2 / - CAST ( - col1 AS INTEGER ) AND ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6989
SELECT DISTINCT CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6989
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT + col1, 53 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
14
53
47
53
5
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col0 - col1 + col0 + - 56 col0 FROM tab0 AS cor0
----
1093
137
1837

query I rowsort
SELECT - col0 + - 67 * - 67 - + + col1 FROM tab1
----
4351
4399
4424

query I rowsort
SELECT ALL col0 - + 27 AS col0 FROM tab1
----
24
58
64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6994
SELECT - col1 * + - col1 * + ( - - col2 ) * + CAST( NULL AS SIGNED ) col2, - 58 FROM tab2
----
NULL
-58
NULL
-58
NULL
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6994
SELECT - col1 * + - col1 * + ( - - col2 ) * + CAST ( NULL AS INTEGER ) col2, - 58 FROM tab2
----
NULL
-58
NULL
-58
NULL
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - + 70 col0 FROM tab1 AS cor0
----
-11
-2
26

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL <= ( - + col1 ) ) OR NOT ( + col1 + - + col0 * + col1 * - col1 + col2 ) NOT BETWEEN ( col2 ) AND + 15
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * 56 / - 55 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6998
SELECT COUNT( * ) * COUNT( * ) * + COUNT( ALL + + col1 ) - 41 + - - 58 * - - 95 FROM tab0 AS cor0
----
5496

skipif mysql # not compatible
query I rowsort label-6998
SELECT COUNT ( * ) * COUNT ( * ) * + COUNT ( ALL + + col1 ) - 41 + - - 58 * - - 95 FROM tab0 AS cor0
----
5496

onlyif mysql # aggregate syntax: 
query I rowsort label-6999
SELECT + COUNT( * ) * - - 56 - - 58 FROM tab1 AS cor0
----
226

skipif mysql # not compatible
query I rowsort label-6999
SELECT + COUNT ( * ) * - - 56 - - 58 FROM tab1 AS cor0
----
226

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7001
SELECT - ( - SUM( ALL + + 43 ) ) col0 FROM tab2
----
129

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7001
SELECT - ( - SUM ( ALL + + 43 ) ) col0 FROM tab2
----
129

query II rowsort
SELECT - - col0, + 38 FROM tab0 WHERE NOT NULL BETWEEN - col0 * + 31 AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7003
SELECT ( - 84 ) DIV - 21, 97 * - - col2 AS col0 FROM tab1
----
4
5723
4
6596
4
9312

skipif mysql # not compatible
query II rowsort label-7003
SELECT ( - 84 ) / - 21, 97 * - - col2 AS col0 FROM tab1
----
4
5723
4
6596
4
9312

onlyif mysql # aggregate syntax: 
query I rowsort label-7004
SELECT DISTINCT + COUNT( * ) * + 49 FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-7004
SELECT DISTINCT + COUNT ( * ) * + 49 FROM tab2
----
147

onlyif mysql # DIV for integer division: 
query I rowsort label-7005
SELECT ALL col1 DIV - 82 * 94 col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7005
SELECT ALL col1 / - 82 * 94 col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col2 * - ( col0 ) FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT ALL - COUNT( * ) * + 52 AS col2 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-7007
SELECT ALL - COUNT ( * ) * + 52 AS col2 FROM tab0
----
-156

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-7009
SELECT ALL - 5 AS col2, COUNT( * ) DIV 31 AS col0, 37 DIV + COUNT( + 57 ) FROM tab1 AS cor0
----
-5
0
12

skipif mysql # not compatible
query III rowsort label-7009
SELECT ALL - 5 AS col2, COUNT ( * ) / 31 AS col0, 37 / + COUNT ( + 57 ) FROM tab1 AS cor0
----
-5
0
12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7011
SELECT SUM( DISTINCT + 85 ) AS col1 FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-7011
SELECT SUM ( DISTINCT + 85 ) AS col1 FROM tab2 AS cor0
----
85

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7013
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE ( NOT - - col1 + - - 65 + - 69 IN ( - col0 ) ) OR ( + 51 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7013
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE ( NOT - - col1 + - - 65 + - 69 IN ( - col0 ) ) OR ( + 51 ) IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7014
SELECT - CAST( NULL AS SIGNED ) + - 62 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7014
SELECT - CAST ( NULL AS INTEGER ) + - 62 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7015
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) + - + COUNT( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7015
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) + - + COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col2, + col2, + col2, col1 * + 37 + - + 66 )
----

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

query II rowsort
SELECT + 75 AS col1, 69 FROM tab0 AS cor0
----
75
69
75
69
75
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7020
SELECT ALL - + ( + MIN( 25 ) ) + 84 - - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7020
SELECT ALL - + ( + MIN ( 25 ) ) + 84 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7022
SELECT DISTINCT - 64 + - SUM( DISTINCT col2 ) FROM tab0 AS cor0
----
-220

skipif mysql # not compatible
query I rowsort label-7022
SELECT DISTINCT - 64 + - SUM ( DISTINCT col2 ) FROM tab0 AS cor0
----
-220

onlyif mysql # aggregate syntax: 
query I rowsort label-7023
SELECT SUM( DISTINCT 2 ) * - - 62 + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
127

skipif mysql # not compatible
query I rowsort label-7023
SELECT SUM ( DISTINCT 2 ) * - - 62 + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
127

onlyif mysql # aggregate syntax: 
query II rowsort label-7024
SELECT + 98 col2, + COUNT( * ) - + 19 AS col1 FROM tab2 WHERE + 3 NOT BETWEEN - col2 AND NULL
----
98
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7024
SELECT + 98 col2, + COUNT ( * ) - + 19 AS col1 FROM tab2 WHERE + 3 NOT BETWEEN - col2 AND NULL
----
98
-19

query I rowsort
SELECT DISTINCT + 81 + - col1 AS col2 FROM tab2
----
14
30
4

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL = + col2 * + col1
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7028
SELECT ALL + CAST( - - SUM( + 54 ) AS SIGNED ) * 20 * + - COUNT( * ) FROM tab1, tab0 AS cor0
----
-87480

skipif mysql # not compatible
query I rowsort label-7028
SELECT ALL + CAST ( - - SUM ( + 54 ) AS INTEGER ) * 20 * + - COUNT ( * ) FROM tab1, tab0 AS cor0
----
-87480

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

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

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

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

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

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

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

query I rowsort
SELECT + + 61 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7035
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + + - CAST( - 98 AS SIGNED ) + + col2 / - ( 15 ) <= col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7035
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + + - CAST ( - 98 AS INTEGER ) + + col2 / - ( 15 ) <= col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7036
SELECT - SUM( - CAST( - col0 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-7036
SELECT - SUM ( - CAST ( - col0 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query II rowsort label-7037
SELECT ALL COUNT( * ) col0, 79 - - ( - 43 ) - COUNT( * ) FROM tab0 cor0
----
3
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7037
SELECT ALL COUNT ( * ) col0, 79 - - ( - 43 ) - COUNT ( * ) FROM tab0 cor0
----
3
33

query II rowsort
SELECT + + col1 AS col0, - col0 - ( - col0 ) FROM tab2 AS cor0 WHERE NOT + 28 <= NULL
----

query I rowsort
SELECT DISTINCT + col2 * 48 AS col0 FROM tab1
----
2832
3264
4608

onlyif mysql # aggregate syntax: 
query I rowsort label-7040
SELECT + COUNT( * ) FROM tab2 WHERE NOT col1 + + ( col2 ) BETWEEN NULL AND 10
----
3

skipif mysql # not compatible
query I rowsort label-7040
SELECT + COUNT ( * ) FROM tab2 WHERE NOT col1 + + ( col2 ) BETWEEN NULL AND 10
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7041
SELECT COUNT( * ) DIV 97 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7041
SELECT COUNT ( * ) / 97 AS col0 FROM tab1
----
0

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

skipif mysql # not compatible
query I rowsort label-7042
SELECT + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7043
SELECT - MAX( + - col1 ) col0 FROM tab1
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7043
SELECT - MAX ( + - col1 ) col0 FROM tab1
----
5

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7045
SELECT DISTINCT 31 DIV col1 AS col2 FROM tab1
----
0
2
6

skipif mysql # not compatible
query I rowsort label-7045
SELECT DISTINCT 31 / col1 AS col2 FROM tab1
----
0
2
6

query I rowsort
SELECT + 51 + col2 FROM tab1 AS cor0
----
110
119
147

query I rowsort
SELECT col2 + + col2 * 33 AS col2 FROM tab0 AS cor0
----
1598
3366
340

onlyif mysql # aggregate syntax: 
query I rowsort label-7048
SELECT ALL + COUNT( - 14 ) * - + COUNT( * ) + + 7 + + 23 AS col2 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-7048
SELECT ALL + COUNT ( - 14 ) * - + COUNT ( * ) + + 7 + + 23 AS col2 FROM tab2 AS cor0
----
21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7051
SELECT ALL - SUM( ALL col0 ) AS col1 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-7051
SELECT ALL - SUM ( ALL col0 ) AS col1 FROM tab2
----
-185

query I rowsort
SELECT col2 * + + 99 * - col0 FROM tab2
----
-104742
-253440
-430650

query I rowsort
SELECT + ( col2 ) - - 9 AS col1 FROM tab0
----
108
19
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7054
SELECT CAST( - COUNT( * ) AS SIGNED ) * + + 22 - - - 33 AS col2 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-7054
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * + + 22 - - - 33 AS col2 FROM tab0
----
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 45 * col2 + - col0 col1 FROM tab1
----
-2740
-3151
-4371

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

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

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

query I rowsort
SELECT DISTINCT - col1 * + col2 + + col1 + - ( - col0 ) FROM tab0 AS cor0
----
-1
-102
-3711

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT ALL + 83 + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-7059
SELECT ALL + 83 + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-7060
SELECT DISTINCT col2 DIV + col1 FROM tab2 AS cor0 WHERE ( NOT - + ( + col2 ) IN ( 61 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7060
SELECT DISTINCT col2 / + col1 FROM tab2 AS cor0 WHERE ( NOT - + ( + col2 ) IN ( 61 ) )
----
0

query II rowsort
SELECT col1 + - 32, + col1 FROM tab0 AS cor0
----
-11
21
-31
1
49
81

query I rowsort
SELECT DISTINCT - col0 * + + 98 + + 82 FROM tab1
----
-4916
-8248
-8836

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

skipif mysql # not compatible
query I rowsort label-7063
SELECT ALL COUNT ( DISTINCT - col1 ) FROM tab1 cor0
----
3

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

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

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

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

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

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

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

query I rowsort
SELECT + col2 * + 81 * - + 62 + col0 FROM tab0 AS cor0
----
-236019
-497081
-50133

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7070
SELECT - SUM ( DISTINCT - + col1 ) * - COUNT ( DISTINCT + - col1 ) col2 FROM tab2 AS cor0
----
-585

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7072
SELECT ( MIN( ALL + col1 ) ) * + 80 * + + COUNT( * ) AS col0, + 71 FROM tab0 AS cor0
----
240
71

skipif mysql # not compatible
query II rowsort label-7072
SELECT ( MIN ( ALL + col1 ) ) * + 80 * + + COUNT ( * ) AS col0, + 71 FROM tab0 AS cor0
----
240
71

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7074
SELECT DISTINCT + 68, COUNT( * ) AS col0 FROM tab1
----
68
3

skipif mysql # not compatible
query II rowsort label-7074
SELECT DISTINCT + 68, COUNT ( * ) AS col0 FROM tab1
----
68
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7075
SELECT DISTINCT * FROM tab0 WHERE + col2 NOT BETWEEN col2 + + col2 AND + + 65 * + CAST( - col1 AS SIGNED ) + + 84
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7075
SELECT DISTINCT * FROM tab0 WHERE + col2 NOT BETWEEN col2 + + col2 AND + + 65 * + CAST ( - col1 AS INTEGER ) + + 84
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 3 AS col2, 23 AS col1 FROM tab1 AS cor0
----
3
23
3
23
3
23

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7079
SELECT CAST( NULL AS SIGNED ) AS col2, + col1 AS col0 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-7079
SELECT CAST ( NULL AS INTEGER ) AS col2, + col1 AS col0 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 * + + col2 * - + col1 col1 FROM tab2 AS cor0
----
-181720
-229274
-69207

query I rowsort
SELECT ALL col1 - 46 * - col1 * 36 AS col2 FROM tab1 cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT ALL 21 * + + col1 + - col1 + col0 * - col1 * + + col2 FROM tab1 AS cor0
----
-24975
-289896
-68264

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7083
SELECT ( COUNT( * ) ) DIV SUM( - 81 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7083
SELECT ( COUNT ( * ) ) / SUM ( - 81 ) FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7084
SELECT ALL + CAST( + SUM( ALL - 93 ) AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-837

skipif mysql # not compatible
query I rowsort label-7084
SELECT ALL + CAST ( + SUM ( ALL - 93 ) AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 98 * + col1 * - - col1 col1 FROM tab2 AS cor0
----
-254898
-439922
-581042

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT ALL - + MIN( - col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-7086
SELECT ALL - + MIN ( - col2 ) FROM tab2 AS cor0
----
58

onlyif mysql # DIV for integer division: 
query II rowsort label-7087
SELECT DISTINCT + + col1 DIV + + col2 + + 1 * + + 17 AS col1, + col2 col2 FROM tab1 AS cor0
----
17
59
17
68
17
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7087
SELECT DISTINCT + + col1 / + + col2 + + 1 * + + 17 AS col1, + col2 col2 FROM tab1 AS cor0
----
17
59
17
68
17
96

query I rowsort
SELECT 56 + col1 AS col1 FROM tab0 AS cor0
----
137
57
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7089
SELECT 92 + + - ( - + CAST( 50 AS SIGNED ) ) FROM tab1 AS cor0
----
142
142
142

skipif mysql # not compatible
query I rowsort label-7089
SELECT 92 + + - ( - + CAST ( 50 AS INTEGER ) ) FROM tab1 AS cor0
----
142
142
142

onlyif mysql # DIV for integer division: 
query I rowsort label-7090
SELECT DISTINCT + col1 + + 75 + + col2 * 63 DIV - col2 FROM tab2 AS cor0
----
63
79
89

skipif mysql # not compatible
query I rowsort label-7090
SELECT DISTINCT + col1 + + 75 + + col2 * 63 / - col2 FROM tab2 AS cor0
----
63
79
89

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

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

query I rowsort
SELECT - col1 * - - col2 + - col0 + - col2 AS col2 FROM tab2
----
-1242
-3184
-4019

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7094
SELECT DISTINCT + col0 + col0 + - - CAST( NULL AS SIGNED ) - - col0 * + 77 AS col2 FROM tab0 WHERE - - 88 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7094
SELECT DISTINCT + col0 + col0 + - - CAST ( NULL AS INTEGER ) - - col0 * + 77 AS col2 FROM tab0 WHERE - - 88 IS NULL
----

query I rowsort
SELECT - 99 * - + col2 AS col0 FROM tab0
----
4653
9801
990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7096
SELECT DISTINCT - + 11 + - col0 AS col0 FROM tab0 WHERE + - CAST( NULL AS SIGNED ) / + 82 * + col0 <> NULL
----

skipif mysql # not compatible
query I rowsort label-7096
SELECT DISTINCT - + 11 + - col0 AS col0 FROM tab0 WHERE + - CAST ( NULL AS INTEGER ) / + 82 * + col0 <> NULL
----

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > col0 * - col2
----

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

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

query I rowsort
SELECT - 55 - - col1 AS col0 FROM tab0 AS cor0
----
-34
-54
26

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( 11, - col2, + - col1 - + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + 7 col0 FROM tab2 cor0
----
53
71
82

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7103
SELECT * FROM tab0 WHERE NOT ( NOT col2 NOT BETWEEN - + col0 / + + CAST( NULL AS SIGNED ) AND col1 )
----
97
1
99

skipif mysql # not compatible
query III rowsort label-7103
SELECT * FROM tab0 WHERE NOT ( NOT col2 NOT BETWEEN - + col0 / + + CAST ( NULL AS INTEGER ) AND col1 )
----
97
1
99

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7105
SELECT DISTINCT + MIN( DISTINCT - col1 ) AS col1, 1 FROM tab1 AS cor0
----
-47
1

skipif mysql # not compatible
query II rowsort label-7105
SELECT DISTINCT + MIN ( DISTINCT - col1 ) AS col1, 1 FROM tab1 AS cor0
----
-47
1

query I rowsort
SELECT ALL + col0 + 79 * - + col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7107
SELECT DISTINCT + + 82 col0, + col0 + col2 DIV - 27 AS col1 FROM tab1 cor0
----
82
48
82
83
82
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7107
SELECT DISTINCT + + 82 col0, + col0 + col2 / - 27 AS col1 FROM tab1 cor0
----
82
48
82
83
82
89

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7109
SELECT + COUNT( ALL + col0 ) AS col1 FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7109
SELECT + COUNT ( ALL + col0 ) AS col1 FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7111
SELECT 24 * - col2 AS col2, ( col0 ) + - - 65 / CAST( NULL AS SIGNED ) FROM tab2
----
-1392
NULL
-552
NULL
-960
NULL

skipif mysql # not compatible
query II rowsort label-7111
SELECT 24 * - col2 AS col2, ( col0 ) + - - 65 / CAST ( NULL AS INTEGER ) FROM tab2
----
-1392
NULL
-552
NULL
-960
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + col1 ) col2 FROM tab0
----
1
21
81

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - - ( - col0 ) * - col1 * + - col0 * - 50 * + 42 ) <= ( + 93 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7114
SELECT + 52 DIV col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7114
SELECT + 52 / col2 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE + + 65 > - - 43 * + 33
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 NOT BETWEEN NULL AND ( + - 16 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 + 94 * - ( - + ( - - col1 ) ) + - 27 + + + col1 * - - col2 + + col1 FROM tab2 AS cor0
----
10299
10432
6037

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

query I rowsort
SELECT col1 + - ( - - col0 ) + - col0 AS col2 FROM tab2
----
-41
-51
-83

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7123
SELECT ALL - CAST( + col2 AS SIGNED ) + + - 2 FROM tab0 AS cor0
----
-101
-12
-49

skipif mysql # not compatible
query I rowsort label-7123
SELECT ALL - CAST ( + col2 AS INTEGER ) + + - 2 FROM tab0 AS cor0
----
-101
-12
-49

query II rowsort
SELECT - col2 AS col2, + 82 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
-59
82
-68
82
-96
82

query I rowsort
SELECT DISTINCT + col1 + + - col0 AS col2 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT ALL col0 + + col1 * - col1 FROM tab0
----
-354
-6546
96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7127
SELECT ALL + SUM( col2 ) - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7127
SELECT ALL + SUM ( col2 ) - CAST ( NULL AS REAL ) FROM tab2
----
NULL

query I rowsort
SELECT col1 * 2 * + col0 - ( - + col2 ) FROM tab0
----
2477
293
3664

query I rowsort
SELECT ALL col2 * - 97 + + 45 FROM tab1
----
-5678
-6551
-9267

query I rowsort
SELECT 2 - + 21 + - col1 AS col1 FROM tab0
----
-100
-20
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7131
SELECT DISTINCT + MAX( + col2 ) - + 37 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-7131
SELECT DISTINCT + MAX ( + col2 ) - + 37 FROM tab1
----
59

query I rowsort
SELECT ALL col2 - col2 * - col1 FROM tab0
----
198
220
3854

query I rowsort
SELECT DISTINCT - ( - - col0 ) - - col2 AS col2 FROM tab2
----
-17
-23
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7134
SELECT DISTINCT - COUNT( * ) DIV + - ( COUNT( ALL col2 ) ) AS col0, MAX( - col0 ) + ( COUNT( * ) ) FROM tab0 AS cor0
----
1
-12

skipif mysql # not compatible
query II rowsort label-7134
SELECT DISTINCT - COUNT ( * ) / + - ( COUNT ( ALL col2 ) ) AS col0, MAX ( - col0 ) + ( COUNT ( * ) ) FROM tab0 AS cor0
----
1
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-7135
SELECT ALL - col1 DIV 52 AS col1 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7135
SELECT ALL - col1 / 52 AS col1 FROM tab2 AS cor0
----
-1
-1
0

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7141
SELECT DISTINCT - 54 + + COUNT( * ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7141
SELECT DISTINCT - 54 + + COUNT ( * ) FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7142
SELECT ALL SUM( ALL + 50 ) FROM tab2 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-7142
SELECT ALL SUM ( ALL + 50 ) FROM tab2 AS cor0
----
150

query I rowsort
SELECT DISTINCT 96 AS col2 FROM tab0 AS cor0 WHERE + col2 / 76 * col2 IS NOT NULL
----
96

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 44 NOT IN ( - 64, 4 )
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

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

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

query I rowsort
SELECT - 21 + + col2 AS col1 FROM tab1
----
38
47
75

query I rowsort
SELECT ALL 84 * 41 FROM tab2 AS cor0
----
3444
3444
3444

query I rowsort
SELECT + ( - col1 ) + col2 + - 59 * + col2 AS col1 FROM tab1 AS cor0
----
-3427
-3991
-5582

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7149
SELECT DISTINCT - CAST( col1 AS SIGNED ) * - col1 FROM tab1 AS cor0
----
196
2209
25

skipif mysql # not compatible
query I rowsort label-7149
SELECT DISTINCT - CAST ( col1 AS INTEGER ) * - col1 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT + MAX( ALL + + 38 ) + + 59 FROM tab1 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-7150
SELECT + MAX ( ALL + + 38 ) + + 59 FROM tab1 AS cor0
----
97

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 60 * ( 98 ) * + + 72 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT - 78 + + + SUM( - 40 ) AS col2 FROM tab2 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-7154
SELECT - 78 + + + SUM ( - 40 ) AS col2 FROM tab2 AS cor0
----
-198

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 * col1 + - + col2 AS col0, - 16 col0 FROM tab1 AS cor0
----
-2277
-16
-292
-16
-84
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-7156
SELECT col2 DIV 58 + - + col0 + 19 AS col0 FROM tab2 AS cor0
----
-27
-45
-55

skipif mysql # not compatible
query I rowsort label-7156
SELECT col2 / 58 + - + col0 + 19 AS col0 FROM tab2 AS cor0
----
-27
-45
-55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7159
SELECT ALL - COUNT( * ) + ( + 10 ) AS col0 FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-7159
SELECT ALL - COUNT ( * ) + ( + 10 ) AS col0 FROM tab0
----
7

query I rowsort
SELECT DISTINCT col2 + + + 12 AS col1 FROM tab2
----
35
52
70

query I rowsort
SELECT 15 * - - 86 AS col1 FROM tab2
----
1290
1290
1290

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN NULL AND + + 14
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7163
SELECT ALL ( + 77 ) - - COUNT( * ) + + 59 FROM tab1
----
139

skipif mysql # not compatible
query I rowsort label-7163
SELECT ALL ( + 77 ) - - COUNT ( * ) + + 59 FROM tab1
----
139

query II rowsort
SELECT col0 AS col2, 51 * + 35 FROM tab0
----
15
1785
87
1785
97
1785

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 38 AND - 76 * col2
----

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

query I rowsort
SELECT 68 AS col2 FROM tab1 AS cor0 WHERE NOT + 40 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - col2 + col0 - + - col1 FROM tab1 AS cor0
----
149
161
206

query I rowsort
SELECT DISTINCT col0 * + col1 + + col1 FROM tab0 AS cor0
----
1296
1848
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7172
SELECT ALL - COUNT( * ) + - + SUM( ALL - - 81 ) * - ( 82 ) AS col2 FROM tab1 AS cor0
----
19923

skipif mysql # not compatible
query I rowsort label-7172
SELECT ALL - COUNT ( * ) + - + SUM ( ALL - - 81 ) * - ( 82 ) AS col2 FROM tab1 AS cor0
----
19923

query I rowsort
SELECT DISTINCT + col0 + + + 20 AS col1 FROM tab0
----
107
117
35

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7175
SELECT ALL 80 / + + ( + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT DISTINCT - MIN( DISTINCT + col2 ) + 13 + + ( MIN( ALL - + col1 ) ) AS col0 FROM tab0 WHERE NOT ( ( col1 IS NULL ) )
----
-78

skipif mysql # not compatible
query I rowsort label-7176
SELECT DISTINCT - MIN ( DISTINCT + col2 ) + 13 + + ( MIN ( ALL - + col1 ) ) AS col0 FROM tab0 WHERE NOT ( ( col1 IS NULL ) )
----
-78

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

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

query I rowsort
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE + col1 + + 31 > col0 * - - col2
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7180
SELECT DISTINCT 10 + + MIN( + - col2 ) AS col2 FROM tab1
----
-86

skipif mysql # not compatible
query I rowsort label-7180
SELECT DISTINCT 10 + + MIN ( + - col2 ) AS col2 FROM tab1
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7181
SELECT ALL - COUNT( * ) * + 84 + + CAST( - COUNT( - 33 ) AS SIGNED ) * - - 87 FROM tab0
----
-513

skipif mysql # not compatible
query I rowsort label-7181
SELECT ALL - COUNT ( * ) * + 84 + + CAST ( - COUNT ( - 33 ) AS INTEGER ) * - - 87 FROM tab0
----
-513

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7183
SELECT ALL + COUNT( * ) + 90 * - 57 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----
-5130

skipif mysql # not compatible
query I rowsort label-7183
SELECT ALL + COUNT ( * ) + 90 * - 57 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----
-5130

onlyif mysql # DIV for integer division: 
query I rowsort label-7184
SELECT DISTINCT - - 30 + 20 DIV - col1 AS col1 FROM tab1 AS cor0
----
26
29
30

skipif mysql # not compatible
query I rowsort label-7184
SELECT DISTINCT - - 30 + 20 / - col1 AS col1 FROM tab1 AS cor0
----
26
29
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7185
SELECT DISTINCT - - CAST( + 94 AS SIGNED ) FROM tab2 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-7185
SELECT DISTINCT - - CAST ( + 94 AS INTEGER ) FROM tab2 AS cor0
----
94

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - ( + - 80 ) <> + - col1
----

query I rowsort
SELECT DISTINCT + col2 + ( col1 ) * - 18 FROM tab1 AS cor0 WHERE NOT col2 / + col1 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7188
SELECT + - COUNT( col2 ) - - + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7188
SELECT + - COUNT ( col2 ) - - + CAST ( NULL AS REAL ) AS col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT - 94 + 60 AS col2 FROM tab0 AS cor0
----
-34

query I rowsort
SELECT DISTINCT 22 + col2 * - col1 * + - col1 + col2 FROM tab2 cor0
----
237222
260442
59868

query I rowsort
SELECT - col1 - - 98 + + + 96 FROM tab2 AS cor0
----
117
127
143

query I rowsort
SELECT col0 - + 48 + + + col2 + col2 + - + ( col1 ) * + 9 AS col1 FROM tab0
----
-130
-668
238

query I rowsort
SELECT DISTINCT + 33 + 29 + + col0 * - - col0 FROM tab1
----
2663
7287
8343

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + - col2 col0, + col1 FROM tab2
----
0
51
0
67
0
77

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN - - 28 * - - col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query III rowsort label-7196
SELECT ALL - col0 * col1 * col1 AS col0, 59 * + col2, ( col0 ) DIV - 57 AS col2 FROM tab1
----
9 values hashing to ce352296056fb9be14516735b6bc0c93

skipif mysql # not compatible
query III rowsort label-7196
SELECT ALL - col0 * col1 * col1 AS col0, 59 * + col2, ( col0 ) / - 57 AS col2 FROM tab1
----
9 values hashing to ce352296056fb9be14516735b6bc0c93

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 42 + - col0 * + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT DISTINCT COUNT( ALL 5 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7199
SELECT DISTINCT COUNT ( ALL 5 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT DISTINCT - col1 * ( col2 ) FROM tab1 AS cor0
----
-1344
-295
-3196

query II rowsort
SELECT DISTINCT + 73 AS col1, - 21 FROM tab0
----
73
-21

query I rowsort
SELECT ALL - 88 AS col2 FROM tab2, tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

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

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

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

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

query II rowsort
SELECT ALL + - 98 + + 16 + 33 AS col2, - ( - 99 ) FROM tab0 AS cor0
----
-49
99
-49
99
-49
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT 64 * COUNT( * ) FROM tab2 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-7207
SELECT 64 * COUNT ( * ) FROM tab2 AS cor0
----
192

query I rowsort
SELECT ALL - - col0 * ( + col1 ) + - + col2 FROM tab2 AS cor0
----
2323
4888
4967

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7211
SELECT col1 * + 65 + - col1 * col1 DIV col2 AS col1 FROM tab2
----
3202
4278
4857

skipif mysql # not compatible
query I rowsort label-7211
SELECT col1 * + 65 + - col1 * col1 / col2 AS col1 FROM tab2
----
3202
4278
4857

onlyif mysql # DIV for integer division: 
query I rowsort label-7212
SELECT col1 DIV - + 68 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7212
SELECT col1 / - + 68 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7213
SELECT + COUNT( DISTINCT 55 ) AS col1 FROM tab1 WHERE col0 IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-7213
SELECT + COUNT ( DISTINCT 55 ) AS col1 FROM tab1 WHERE col0 IS NOT NULL
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 95 <= - + ( + col2 )
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col1 NOT BETWEEN - + col2 AND - - col0
----
87
21
10
97
1
99

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

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

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

query I rowsort
SELECT ALL 94 + - 41 + + 22 FROM tab0
----
75
75
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7219
SELECT ( ( + 28 ) ) * + - 11 + - CAST( col0 AS SIGNED ) FROM tab2
----
-354
-372
-383

skipif mysql # not compatible
query I rowsort label-7219
SELECT ( ( + 28 ) ) * + - 11 + - CAST ( col0 AS INTEGER ) FROM tab2
----
-354
-372
-383

query I rowsort
SELECT ALL 21 - + 71 FROM tab1 AS cor0
----
-50
-50
-50

query I rowsort
SELECT + ( + ( + col0 ) ) + - col1 FROM tab1 AS cor0
----
37
44
80

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

query II rowsort
SELECT + + 9 AS col1, 89 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IN ( col2, - col2, - col2 )
----

query I rowsort
SELECT ALL - - 77 * + + 60 FROM tab0 cor0
----
4620
4620
4620

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= - + col2
----

query I rowsort
SELECT + + col1 / - 99 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT - 74 AS col1, ( + 20 ) FROM tab2
----
-74
20

query II rowsort
SELECT DISTINCT + col1, - 0 FROM tab1
----
14
0
47
0
5
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab0 WHERE NOT - 68 + - col1 + col0 / + col1 * + 56 IS NULL
----
-15
-87
-97

query II rowsort
SELECT + 46 AS col2, 49 AS col0 FROM tab1
----
46
49
46
49
46
49

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7233
SELECT ALL - - CAST( - + COUNT( * ) AS SIGNED ) * + 28 AS col2 FROM tab1 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-7233
SELECT ALL - - CAST ( - + COUNT ( * ) AS INTEGER ) * + 28 AS col2 FROM tab1 AS cor0
----
-84

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 AS cor0 WHERE NOT - 93 >= + col0 + + col0
----
46
64
75

query I rowsort
SELECT DISTINCT - 49 * 77 FROM tab1
----
-3773

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7237
SELECT - + 72 DIV 25 FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

skipif mysql # not compatible
query I rowsort label-7237
SELECT - + 72 / 25 FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT DISTINCT - ( 57 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-7239
SELECT - col0 + col0 + col0 DIV + 95 AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7239
SELECT - col0 + col0 + col0 / + 95 AS col1 FROM tab0
----
0
0
1

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

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

query I rowsort
SELECT - ( - col2 ) * - col2 * + col1 FROM tab0 AS cor0
----
-178929
-2100
-9801

query I rowsort
SELECT DISTINCT 96 + - col2 + + col1 FROM tab2 AS cor0
----
105
124
133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7243
SELECT DISTINCT + 34 * 72 + - + col2 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) / - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7243
SELECT DISTINCT + 34 * 72 + - + col2 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7244
SELECT ALL - col0 * + + col0 DIV - col0 + + - col2 FROM tab0 AS cor0
----
-2
-32
77

skipif mysql # not compatible
query I rowsort label-7244
SELECT ALL - col0 * + + col0 / - col0 + + - col2 FROM tab0 AS cor0
----
-2
-32
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 62 / - + ( + col2 ) BETWEEN + + ( col2 ) AND - + col0
----

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

skipif mysql # not compatible
query I rowsort label-7246
SELECT - COUNT ( ALL + ( col0 ) ) FROM tab2
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7247
SELECT - - 58 col1 FROM tab0 WHERE - + CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7247
SELECT - - 58 col1 FROM tab0 WHERE - + CAST ( NULL AS REAL ) IS NOT NULL
----

query II rowsort
SELECT - col1, 61 * col1 AS col0 FROM tab1
----
-14
854
-47
2867
-5
305

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7251
SELECT DISTINCT + col0 * + col1 + + CAST( 77 AS SIGNED ) AS col1 FROM tab0
----
1292
174
1904

skipif mysql # not compatible
query I rowsort label-7251
SELECT DISTINCT + col0 * + col1 + + CAST ( 77 AS INTEGER ) AS col1 FROM tab0
----
1292
174
1904

query I rowsort
SELECT DISTINCT col0 * + 30 AS col0 FROM tab2
----
1380
1920
2250

query I rowsort
SELECT - - col2 + - + 79 AS col0 FROM tab2 AS cor0
----
-21
-39
-56

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

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

query I rowsort
SELECT + col2 + - 27 AS col2 FROM tab0 AS cor0
----
-17
20
72

query I rowsort
SELECT 51 + - col1 AS col0 FROM tab1
----
37
4
46

query I rowsort
SELECT DISTINCT 17 * + col1 AS col0 FROM tab0
----
1377
17
357

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

query I rowsort
SELECT ALL - + col2 * - - col0 + - + col0 - + - col0 + + col1 FROM tab2 AS cor0 WHERE NOT - col1 * + col0 IS NULL
----
-1007
-2483
-4283

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7260
SELECT - - CAST( 31 AS SIGNED ) * - col2 AS col2 FROM tab2 AS cor0
----
-1240
-1798
-713

skipif mysql # not compatible
query I rowsort label-7260
SELECT - - CAST ( 31 AS INTEGER ) * - col2 AS col2 FROM tab2 AS cor0
----
-1240
-1798
-713

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7261
SELECT - 83 * - + 29 / - - col1 * col2 * col1 * - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7261
SELECT - 83 * - + 29 / - - col1 * col2 * col1 * - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7262
SELECT 67 DIV + col1 + + col2 AS col2 FROM tab1 AS cor0
----
100
69
72

skipif mysql # not compatible
query I rowsort label-7262
SELECT 67 / + col1 + + col2 AS col2 FROM tab1 AS cor0
----
100
69
72

query I rowsort
SELECT ( - - ( 59 ) ) AS col2 FROM tab1
----
59
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7264
SELECT - COUNT( * ) * - 90 FROM tab0
----
270

skipif mysql # not compatible
query I rowsort label-7264
SELECT - COUNT ( * ) * - 90 FROM tab0
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-7265
SELECT + ( - ( + MAX( 99 ) ) ) FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-7265
SELECT + ( - ( + MAX ( 99 ) ) ) FROM tab1
----
-99

query I rowsort
SELECT ALL - 35 AS col2 FROM tab2
----
-35
-35
-35

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

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

query I rowsort
SELECT ALL - col2 - 99 / + col1 * + - 2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7269
SELECT ALL ( - MAX( ALL + col2 ) ) AS col0 FROM tab0 WHERE NULL NOT BETWEEN NULL AND 28 * + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7269
SELECT ALL ( - MAX ( ALL + col2 ) ) AS col0 FROM tab0 WHERE NULL NOT BETWEEN NULL AND 28 * + col1
----
NULL

query I rowsort
SELECT ALL - ( - ( - 60 ) ) FROM tab0 AS cor0
----
-60
-60
-60

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7272
SELECT DISTINCT + col2, 13 + - col0 * col1 * - CAST( NULL AS SIGNED ) FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-7272
SELECT DISTINCT + col2, 13 + - col0 * col1 * - CAST ( NULL AS INTEGER ) FROM tab1
----
59
NULL
68
NULL
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7273
SELECT DISTINCT COUNT( DISTINCT 79 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-7273
SELECT DISTINCT COUNT ( DISTINCT 79 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
1

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

query I rowsort
SELECT ALL + + 69 * + 34 + + col0 + col0 FROM tab0 AS cor0
----
2376
2520
2540

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7276
SELECT - 3 + + ( + 1 ) + + CAST( NULL AS DECIMAL ) - - + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7276
SELECT - 3 + + ( + 1 ) + + CAST ( NULL AS REAL ) - - + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 35 + + ( - 56 ) FROM tab2 AS cor0
----
-21
-21
-21

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

query I rowsort
SELECT DISTINCT + - col0 + - 23 + + ( ( - - col1 ) ) AS col0 FROM tab1 AS cor0
----
-103
-60
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7280
SELECT + CAST( - 58 AS SIGNED ) + 86 FROM tab0 AS cor0
----
28
28
28

skipif mysql # not compatible
query I rowsort label-7280
SELECT + CAST ( - 58 AS INTEGER ) + 86 FROM tab0 AS cor0
----
28
28
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7281
SELECT ALL col0 + + CAST( + col0 AS SIGNED ) AS col1 FROM tab0
----
174
194
30

skipif mysql # not compatible
query I rowsort label-7281
SELECT ALL col0 + + CAST ( + col0 AS INTEGER ) AS col1 FROM tab0
----
174
194
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7282
SELECT DISTINCT + 5 - + COUNT( - + col2 ) FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-7282
SELECT DISTINCT + 5 - + COUNT ( - + col2 ) FROM tab2
----
2

query I rowsort
SELECT DISTINCT 96 + - col1 + + col0 * - col2 AS col1 FROM tab0
----
-690
-795
-9508

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7284
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col2 * - + col2 FROM tab1 WHERE NOT col1 NOT BETWEEN NULL AND + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-7284
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col2 * - + col2 FROM tab1 WHERE NOT col1 NOT BETWEEN NULL AND + CAST ( NULL AS REAL )
----

query II rowsort
SELECT DISTINCT - 78 * - - col1 AS col0, col2 * + - col2 * col0 + + - col1 FROM tab1
----
-1092
-470030
-3666
-420831
-390
-295890

query III rowsort
SELECT * FROM tab1 WHERE ( ( 66 * - + 12 ) < NULL )
----

query I rowsort
SELECT DISTINCT col0 - - col2 - + col1 * + col0 FROM tab0
----
-1153
-1730
99

query I rowsort
SELECT + + col1 * 82 FROM tab0 AS cor0
----
1722
6642
82

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 > - col1 + - - col2 + - - 96
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, + col2 AS col1 FROM tab2
----
51
23
67
58
77
40

query I rowsort
SELECT 96 * + - 17 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2923331be9eb2c8e263b78994d9962e8

query I rowsort
SELECT + + 20 * - + col2 AS col1 FROM tab0 AS cor0
----
-1980
-200
-940

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

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

query II rowsort
SELECT + col2 / 61 + - ( col0 ) AS col2, - ( + col0 ) + - 13 * - 28 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 52 col0 FROM tab0 AS cor0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7297
SELECT ALL ( - COUNT( * ) ) * 42 + COUNT( * ) AS col2 FROM tab2 cor0
----
-123

skipif mysql # not compatible
query I rowsort label-7297
SELECT ALL ( - COUNT ( * ) ) * 42 + COUNT ( * ) AS col2 FROM tab2 cor0
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-7298
SELECT ALL COUNT( + - col0 ) FROM tab1 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-7298
SELECT ALL COUNT ( + - col0 ) FROM tab1 WHERE NULL < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7299
SELECT - 22 * + 68 * + COUNT( ALL ( ( - + col2 ) ) ) AS col0 FROM tab0
----
-4488

skipif mysql # not compatible
query I rowsort label-7299
SELECT - 22 * + 68 * + COUNT ( ALL ( ( - + col2 ) ) ) AS col0 FROM tab0
----
-4488

query I rowsort
SELECT - 6 * - col0 FROM tab0
----
522
582
90

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

query II rowsort
SELECT ( + + col0 ) AS col1, col2 FROM tab0
----
15
47
87
10
97
99

onlyif mysql # DIV for integer division: 
query II rowsort label-7303
SELECT 63 DIV + col0 AS col2, col0 DIV + + ( + + ( + - col0 ) ) FROM tab1
----
0
-1
0
-1
1
-1

skipif mysql # not compatible
query II rowsort label-7303
SELECT 63 / + col0 AS col2, col0 / + + ( + + ( + - col0 ) ) FROM tab1
----
0
-1
0
-1
1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7304
SELECT - CAST( - - COUNT( + - col2 ) AS SIGNED ) col0 FROM tab0
----
-3

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7305
SELECT ALL + 76 DIV - col1 AS col2, col1 - + 10 FROM tab2
----
-1
41
-1
57
0
67

skipif mysql # not compatible
query II rowsort label-7305
SELECT ALL + 76 / - col1 AS col2, col1 - + 10 FROM tab2
----
-1
41
-1
57
0
67

query I rowsort
SELECT - col1 + + - ( - col0 ) FROM tab1
----
37
44
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7307
SELECT ALL - CAST( NULL AS SIGNED ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7307
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - col0 + 0 + col0 FROM tab2
----
0
0
0

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

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

skipif mysql # not compatible
query I rowsort label-7310
SELECT - COUNT ( + + 23 ) FROM tab0 cor0
----
-3

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7313
SELECT DISTINCT + col2 * + CAST( - + col2 AS SIGNED ) + + col1 FROM tab2 AS cor0
----
-1523
-3297
-478

skipif mysql # not compatible
query I rowsort label-7313
SELECT DISTINCT + col2 * + CAST ( - + col2 AS INTEGER ) + + col1 FROM tab2 AS cor0
----
-1523
-3297
-478

query I rowsort
SELECT DISTINCT col1 - col0 FROM tab1 cor0
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7315
SELECT COUNT( * ) FROM tab1 WHERE NULL < - + col1 * - 41
----
0

skipif mysql # not compatible
query I rowsort label-7315
SELECT COUNT ( * ) FROM tab1 WHERE NULL < - + col1 * - 41
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT ALL - COUNT( * ) + - + COUNT( * ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-7319
SELECT ALL - COUNT ( * ) + - + COUNT ( * ) FROM tab0
----
-6

query I rowsort
SELECT - col0 + - 87 FROM tab0
----
-102
-174
-184

query I rowsort
SELECT ALL col1 * 53 - + + ( + 96 ) * col1 AS col0 FROM tab2
----
-2193
-2881
-3311

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7324
SELECT ALL 30 * + - CAST( NULL AS SIGNED ) / + + ( + - 45 ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7324
SELECT ALL 30 * + - CAST ( NULL AS INTEGER ) / + + ( + - 45 ) AS col1 FROM tab0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT ALL - 21 * - col1 AS col0 FROM tab0 AS cor0
----
1701
21
441

onlyif mysql # aggregate syntax: 
query I rowsort label-7327
SELECT + COUNT( * ) * - 61 AS col1 FROM tab1
----
-183

skipif mysql # not compatible
query I rowsort label-7327
SELECT + COUNT ( * ) * - 61 AS col1 FROM tab1
----
-183

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

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

query I rowsort
SELECT DISTINCT col2 * + + ( - col2 ) FROM tab1
----
-3481
-4624
-9216

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

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

query I rowsort
SELECT DISTINCT - 16 * - - 16 FROM tab1
----
-256

query I rowsort
SELECT + col0 * 36 + - - col1 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1850
3065
3323

onlyif mysql # aggregate syntax: 
query II rowsort label-7333
SELECT DISTINCT + 98 AS col1, - MAX( 63 ) AS col0 FROM tab2 AS cor0
----
98
-63

skipif mysql # not compatible
query II rowsort label-7333
SELECT DISTINCT + 98 AS col1, - MAX ( 63 ) AS col0 FROM tab2 AS cor0
----
98
-63

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7335
SELECT col1, col1 + - CAST( - ( - + col1 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
51
0
67
0
77
0

skipif mysql # not compatible
query II rowsort label-7335
SELECT col1, col1 + - CAST ( - ( - + col1 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
51
0
67
0
77
0

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

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

query I rowsort
SELECT + col1 * col1 - col2 * 73 AS col1 FROM tab0
----
-289
-7226
3130

onlyif mysql # aggregate syntax: 
query I rowsort label-7339
SELECT DISTINCT + MAX( 41 ) * COUNT( * ) AS col1 FROM tab0
----
123

skipif mysql # not compatible
query I rowsort label-7339
SELECT DISTINCT + MAX ( 41 ) * COUNT ( * ) AS col1 FROM tab0
----
123

query I rowsort
SELECT - 89 * - col2 + col1 FROM tab1
----
5256
6099
8558

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7341
SELECT * FROM tab1 WHERE NOT ( NULL ) < - CAST( - col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7341
SELECT * FROM tab1 WHERE NOT ( NULL ) < - CAST ( - col1 AS INTEGER )
----

query I rowsort
SELECT DISTINCT ( 99 ) AS col0 FROM tab1
----
99

query I rowsort
SELECT DISTINCT + col2 * 88 AS col1 FROM tab2
----
2024
3520
5104

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

skipif mysql # not compatible
query III rowsort label-7344
SELECT ALL * FROM tab0 WHERE CAST ( col2 AS INTEGER ) * - col2 + col2 * + CAST ( NULL AS INTEGER ) > + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7345
SELECT DISTINCT COUNT( DISTINCT + col1 ) + + MIN( DISTINCT + col2 + col1 ) FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-7345
SELECT DISTINCT COUNT ( DISTINCT + col1 ) + + MIN ( DISTINCT + col2 + col1 ) FROM tab0
----
34

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

query I rowsort
SELECT 65 * + 38 FROM tab0
----
2470
2470
2470

query I rowsort
SELECT ALL col2 + col1 * - 72 AS col2 FROM tab2 WHERE NULL <= col2
----

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

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

query I rowsort
SELECT DISTINCT - 67 + - col0 AS col0 FROM tab1
----
-118
-152
-158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7351
SELECT + ( + MAX( ALL - col1 ) ) * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT COUNT( * ) FROM tab0 WHERE NULL NOT BETWEEN ( - col0 * - 80 ) AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7352
SELECT COUNT ( * ) FROM tab0 WHERE NULL NOT BETWEEN ( - col0 * - 80 ) AND ( NULL )
----
0

query I rowsort
SELECT DISTINCT + col2 - + ( - col0 + col2 ) FROM tab1 WHERE ( - col1 ) NOT BETWEEN 93 AND - col0 - + 74
----
51
85
91

query I rowsort
SELECT ALL - 8 * - 87 AS col0 FROM tab0
----
696
696
696

query I rowsort
SELECT col2 FROM tab2 WHERE NOT col0 * col1 < ( col1 )
----
23
40
58

query I rowsort
SELECT + col2 * col0 + col1 AS col2 FROM tab2
----
1109
2637
4417

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7357
SELECT ALL + COUNT( * ) * AVG ( + CAST( col0 AS SIGNED ) ) FROM tab1 WHERE NOT 63 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7357
SELECT ALL + COUNT ( * ) * AVG ( + CAST ( col0 AS INTEGER ) ) FROM tab1 WHERE NOT 63 <> NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7358
SELECT ALL + 24 DIV - SUM( DISTINCT + col1 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7358
SELECT ALL + 24 / - SUM ( DISTINCT + col1 ) AS col0 FROM tab1
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7361
SELECT * FROM tab0 WHERE NOT NULL BETWEEN col2 * CAST( - col0 * 77 AS SIGNED ) AND + 19
----

skipif mysql # not compatible
query III rowsort label-7361
SELECT * FROM tab0 WHERE NOT NULL BETWEEN col2 * CAST ( - col0 * 77 AS INTEGER ) AND + 19
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7362
SELECT DISTINCT + 2 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) NOT BETWEEN 47 AND ( - col0 )
----

skipif mysql # not compatible
query I rowsort label-7362
SELECT DISTINCT + 2 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) NOT BETWEEN 47 AND ( - col0 )
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7364
SELECT - col2 FROM tab0 WHERE 93 NOT BETWEEN col2 AND ( + CAST( NULL AS DECIMAL ) ) / col2 + col2
----
-99

skipif mysql # not compatible
query I rowsort label-7364
SELECT - col2 FROM tab0 WHERE 93 NOT BETWEEN col2 AND ( + CAST ( NULL AS REAL ) ) / col2 + col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7365
SELECT SUM( + 17 ) - - MIN( ALL + 59 ) AS col2 FROM tab0 AS cor0
----
110

skipif mysql # not compatible
query I rowsort label-7365
SELECT SUM ( + 17 ) - - MIN ( ALL + 59 ) AS col2 FROM tab0 AS cor0
----
110

query I rowsort
SELECT ALL + 48 * + 27 - 77 FROM tab1 AS cor0
----
1219
1219
1219

query I rowsort
SELECT col1 * col0 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 / - col1 < ( + col1 + + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 25 + - col0 col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-26
-60
-66

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 53 * - col1 + - col1 IS NOT NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col1 < + 8 + 50
----
15
81
47

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

query I rowsort
SELECT ALL - + 8 FROM tab1 cor0
----
-8
-8
-8

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE col1 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col2 * - col2 ) BETWEEN + 49 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 * 13 FROM tab0 cor0
----
1131
1261
195

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

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

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

query I rowsort
SELECT col0 * + - 51 FROM tab0
----
-4437
-4947
-765

query I rowsort
SELECT ALL + col2 + + 72 FROM tab2
----
112
130
95

query I rowsort
SELECT DISTINCT 79 * ( - col2 ) * - 87 FROM tab1
----
405507
467364
659808

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7382
SELECT DISTINCT * FROM tab0 WHERE NOT ( 89 ) BETWEEN NULL AND ( CAST( - col1 AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7382
SELECT DISTINCT * FROM tab0 WHERE NOT ( 89 ) BETWEEN NULL AND ( CAST ( - col1 AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7383
SELECT ALL - 47 + + col2 FROM tab0 WHERE NOT + CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7383
SELECT ALL - 47 + + col2 FROM tab0 WHERE NOT + CAST ( NULL AS REAL ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 16 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT MIN( ALL + + col0 ) * - 65 FROM tab0
----
-975

skipif mysql # not compatible
query I rowsort label-7385
SELECT MIN ( ALL + + col0 ) * - 65 FROM tab0
----
-975

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 col0 FROM tab1
----
74
74
74

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7388
SELECT + 68 + - col2 DIV + col2 AS col2 FROM tab1 cor0
----
67
67
67

skipif mysql # not compatible
query I rowsort label-7388
SELECT + 68 + - col2 / + col2 AS col2 FROM tab1 cor0
----
67
67
67

query I rowsort
SELECT + 71 + - - col0 FROM tab2 cor0
----
117
135
146

query I rowsort
SELECT + 39 + + + col1 AS col0 FROM tab1 AS cor0
----
44
53
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 79 - col1 col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
32
65
74

onlyif mysql # DIV for integer division: 
query I rowsort label-7392
SELECT + col1 * 65 DIV - - col0 FROM tab1
----
17
3
33

skipif mysql # not compatible
query I rowsort label-7392
SELECT + col1 * 65 / - - col0 FROM tab1
----
17
3
33

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7393
SELECT DISTINCT + CAST( + + CAST( NULL AS SIGNED ) AS DECIMAL ) + - + col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7393
SELECT DISTINCT + CAST ( + + CAST ( NULL AS INTEGER ) AS REAL ) + - + col0 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - 90 * + col1 + + 8 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7395
SELECT DISTINCT - CAST( NULL AS DECIMAL ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7395
SELECT DISTINCT - CAST ( NULL AS REAL ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
NULL

query I rowsort
SELECT ALL + - 61 * - col0 FROM tab2 AS cor0
----
2806
3904
4575

query I rowsort
SELECT DISTINCT col0 * + + col2 * 99 + col2 FROM tab1 AS cor0
----
484800
496544
612680

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7399
SELECT ALL + - 66 * - ( 66 ) + COUNT( * ) FROM tab1 AS cor0
----
4359

skipif mysql # not compatible
query I rowsort label-7399
SELECT ALL + - 66 * - ( 66 ) + COUNT ( * ) FROM tab1 AS cor0
----
4359

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7400
SELECT DISTINCT col2 col0 FROM tab1 AS cor0 WHERE NOT - col1 * + + CAST ( col2 AS INTEGER ) NOT IN ( - col1 + col0 )
----

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

query I rowsort
SELECT 24 - + + col2 FROM tab2 AS cor0
----
-16
-34
1

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( + 26 ) <= col1
----

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE - 58 NOT IN ( + col1 / + col0 )
----
-10
-47
-99

query I rowsort
SELECT ALL + ( - col0 ) + + + col0 AS col0 FROM tab2 cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 22 * col2 * + 88 ) IS NULL
----

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

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

query I rowsort
SELECT DISTINCT + 69 * 8 AS col2 FROM tab0 AS cor0 WHERE - 79 IS NOT NULL
----
552

query I rowsort
SELECT 88 - - col1 * - col0 AS col0 FROM tab1
----
-337
-4189
-626

onlyif mysql # DIV for integer division: 
query I rowsort label-7410
SELECT ALL 98 DIV col2 + - col0 AS col2 FROM tab1
----
-50
-84
-90

skipif mysql # not compatible
query I rowsort label-7410
SELECT ALL 98 / col2 + - col0 AS col2 FROM tab1
----
-50
-84
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ( - col1 ) + - 85 FROM tab2
----
-136
-152
-162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7413
SELECT ALL - col2 / col2 FROM tab2 WHERE NULL BETWEEN NULL AND ( - col2 ) * + CAST( NULL AS SIGNED ) + + col2 * 85 AND + 10 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7413
SELECT ALL - col2 / col2 FROM tab2 WHERE NULL BETWEEN NULL AND ( - col2 ) * + CAST ( NULL AS INTEGER ) + + col2 * 85 AND + 10 IS NULL
----

query I rowsort
SELECT DISTINCT col1 - - + col0 + - col1 + + + col1 AS col1 FROM tab1
----
138
65
90

query I rowsort
SELECT col2 * - col2 + + + col1 AS col1 FROM tab1
----
-3476
-4577
-9202

query I rowsort
SELECT ALL - 72 - + col1 AS col0 FROM tab1
----
-119
-77
-86

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE - + col0 IS NULL
----

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

query I rowsort
SELECT + col2 * - - 51 + - col2 + + col1 FROM tab0 AS cor0
----
2431
4951
521

query I rowsort
SELECT DISTINCT col1 / col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7422
SELECT + ( COUNT( - 97 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7422
SELECT + ( COUNT ( - 97 ) ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 28 < ( - - ( + + col1 ) )
----
51
14
96
85
5
59

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

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

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

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

query I rowsort
SELECT - AVG ( ALL - 22 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN ( - col0 ) AND + 81 * + - col2 * + col2
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 35 * col1 FROM tab2 AS cor0
----
1785
2345
2695

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

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

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

skipif mysql # not compatible
query I rowsort label-7431
SELECT MIN ( 28 ) AS col0 FROM tab0 cor0
----
28

query I rowsort
SELECT + col0 * - + ( + - ( - col2 ) ) AS col2 FROM tab2 cor0
----
-1058
-2560
-4350

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

query I rowsort
SELECT ALL 37 + - col0 FROM tab2
----
-27
-38
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-7435
SELECT ALL 74 DIV col2 AS col0 FROM tab1 WHERE NOT ( - 95 ) IS NULL
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7435
SELECT ALL 74 / col2 AS col0 FROM tab1 WHERE NOT ( - 95 ) IS NULL
----
0
1
1

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7436
SELECT ALL - COUNT ( * ) + - ( + 69 ) col2 FROM tab1 AS cor0
----
-72

query II rowsort
SELECT DISTINCT - 29 * + - 28 AS col2, - 22 FROM tab2
----
812
-22

query I rowsort
SELECT ALL col0 * + - ( + - col0 ) FROM tab2
----
2116
4096
5625

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7439
SELECT col2 + CAST( col1 AS SIGNED ) DIV + col1 + + col0 AS col2 FROM tab2
----
105
134
70

skipif mysql # not compatible
query I rowsort label-7439
SELECT col2 + CAST ( col1 AS INTEGER ) / + col1 + + col0 AS col2 FROM tab2
----
105
134
70

query I rowsort
SELECT ALL + ( - 54 ) * + 14 AS col2 FROM tab0 AS cor0
----
-756
-756
-756

query I rowsort
SELECT - col0 + - col0 * 43 * col1 + - col0 * - + col1 AS col1 FROM tab0 AS cor0
----
-4171
-51045
-76821

onlyif mysql # DIV for integer division: 
query I rowsort label-7442
SELECT - col0 + - - 98 DIV col0 + - 64 FROM tab2 AS cor0
----
-108
-127
-138

skipif mysql # not compatible
query I rowsort label-7442
SELECT - col0 + - - 98 / col0 + - 64 FROM tab2 AS cor0
----
-108
-127
-138

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

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

query II rowsort
SELECT DISTINCT col1 - - - 36, col1 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( col1 )
----

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

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN + 87 AND NULL
----

query I rowsort
SELECT + 57 * - col1 FROM tab1 WHERE NOT ( + ( + col1 ) * + col2 ) > ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-7448
SELECT - CAST( NULL AS DECIMAL ) AS col0, col2 DIV col1 FROM tab2
----
NULL
0
NULL
0
NULL
0

skipif mysql # not compatible
query II rowsort label-7448
SELECT - CAST ( NULL AS REAL ) AS col0, col2 / col1 FROM tab2
----
NULL
0
NULL
0
NULL
0

query I rowsort
SELECT 98 * - col1 * + + ( - 76 ) AS col0 FROM tab0
----
156408
603288
7448

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

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

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

skipif mysql # not compatible
query I rowsort label-7451
SELECT - COUNT ( - 14 ) AS col0 FROM tab0
----
-3

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

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT ( - 36 * + + col0 ) IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7454
SELECT 0 DIV COUNT( DISTINCT - 26 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7454
SELECT 0 / COUNT ( DISTINCT - 26 ) FROM tab1
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7457
SELECT CAST( - CAST( - + col2 AS SIGNED ) AS SIGNED ) - col0 + + col1 + - 31 DIV col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( 12 ) IS NULL
----
-27
24
57

skipif mysql # not compatible
query I rowsort label-7457
SELECT CAST ( - CAST ( - + col2 AS INTEGER ) AS INTEGER ) - col0 + + col1 + - 31 / col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( 12 ) IS NULL
----
-27
24
57

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT ALL + - COUNT( * ) + + - 14 + + 74 FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-7460
SELECT ALL + - COUNT ( * ) + + - 14 + + 74 FROM tab2 AS cor0
----
57

query I rowsort
SELECT DISTINCT - ( - 73 ) AS col0 FROM tab1 AS cor0 WHERE NOT + col0 * 21 IN ( + col2 * col2 + - col0 * col2 + - 55 )
----
73

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

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

query I rowsort
SELECT + 68 * - 6 AS col2 FROM tab1
----
-408
-408
-408

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT - COUNT( + 24 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7464
SELECT - COUNT ( + 24 ) FROM tab2
----
-3

query I rowsort
SELECT DISTINCT 86 + 22 * + 83 * + col0 FROM tab0
----
158948
177208
27476

query I rowsort
SELECT - 34 * - 8 AS col2 FROM tab1
----
272
272
272

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

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

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

query I rowsort
SELECT - + col0 * ( col0 ) + 17 FROM tab1 AS cor0
----
-2584
-7208
-8264

query I rowsort
SELECT ALL + 45 + col0 FROM tab2 AS cor0
----
109
120
91

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

query I rowsort
SELECT DISTINCT 20 - - 97 FROM tab2
----
117

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT DISTINCT COUNT( - col2 ) - - COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7474
SELECT DISTINCT COUNT ( - col2 ) - - COUNT ( * ) FROM tab1 AS cor0
----
6

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7476
SELECT * FROM tab2 AS cor0 WHERE - 54 * CAST( - col2 AS DECIMAL ) NOT BETWEEN - col2 - + + 32 AND ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7476
SELECT * FROM tab2 AS cor0 WHERE - 54 * CAST ( - col2 AS REAL ) NOT BETWEEN - col2 - + + 32 AND ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 71 * - col2 + - 93 + - col2 * - col2 - + - 85 * + col2 FROM tab2 AS cor0
----
2067
4083
758

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT ALL COUNT( * ) * + + COUNT( * ) + 41 FROM tab2 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-7478
SELECT ALL COUNT ( * ) * + + COUNT ( * ) + 41 FROM tab2 AS cor0
----
50

query II rowsort
SELECT DISTINCT + col1, + 55 AS col0 FROM tab1 AS cor0
----
14
55
47
55
5
55

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

skipif mysql # not compatible
query I rowsort label-7480
SELECT DISTINCT + COUNT ( DISTINCT + + col0 ) * + + 17 FROM tab0 AS cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-7481
SELECT - + col0 DIV - col2 + 83 FROM tab1 AS cor0
----
83
84
84

skipif mysql # not compatible
query I rowsort label-7481
SELECT - + col0 / - col2 + 83 FROM tab1 AS cor0
----
83
84
84

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7483
SELECT ALL col0 * + col0, CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
225
NULL
7569
NULL
9409
NULL

skipif mysql # not compatible
query II rowsort label-7483
SELECT ALL col0 * + col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
225
NULL
7569
NULL
9409
NULL

query II rowsort
SELECT DISTINCT - 77 * + col1 AS col1, col0 FROM tab1
----
-1078
51
-3619
91
-385
85

query I rowsort
SELECT - col0 * + 94 FROM tab2 AS cor0
----
-4324
-6016
-7050

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 26 * - col0 * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 61 / col2 * + + 62 IS NOT NULL
----

query I rowsort
SELECT ALL + - col2 / + col2 FROM tab2 AS cor0 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT + + 65 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL > + + 11 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 col0, - 69 FROM tab2 AS cor0
----
-23
-69
-40
-69
-58
-69

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

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

query I rowsort
SELECT ALL col1 + - col1 + col1 * + 51 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
2397
255
714

onlyif mysql # aggregate syntax: 
query I rowsort label-7494
SELECT ALL - COUNT( * ) + - 79 col1 FROM tab1 AS cor0
----
-82

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

query I rowsort
SELECT 89 + - col1 FROM tab2 AS cor0
----
12
22
38

query I rowsort
SELECT - col1 + 30 AS col2 FROM tab1 AS cor0
----
-17
16
25

query I rowsort
SELECT ALL + col2 + - + 74 FROM tab2
----
-16
-34
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7498
SELECT DISTINCT - COUNT( * ) + - MAX( DISTINCT - - ( + - col2 ) ) AS col0 FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-7498
SELECT DISTINCT - COUNT ( * ) + - MAX ( DISTINCT - - ( + - col2 ) ) AS col0 FROM tab2
----
20

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - + col2 ) <> + col2 * - + 65 + - col0
----

query I rowsort
SELECT ALL col1 + + 20 FROM tab1
----
25
34
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 44 - + col2 AS col2, + col2 col2 FROM tab0
----
-143
99
-54
10
-91
47

query I rowsort
SELECT - col1 FROM tab0 WHERE - col1 + col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - + 33 * - - col1 + col0 FROM tab1 cor0
----
-1460
-411
-80

query I rowsort
SELECT ALL + col2 + - 89 AS col1 FROM tab0 AS cor0
----
-42
-79
10

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 LEFT OUTER JOIN tab0 AS cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT DISTINCT + + col2 / 78 FROM tab2 WHERE col0 * col2 NOT BETWEEN - + col1 AND NULL
----

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

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

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

query I rowsort
SELECT ALL + col1 + + col0 + col0 * - + col1 * - col1 FROM tab2 AS cor0 WHERE 24 IS NOT NULL
----
119743
336817
379597

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 >= + + 7 * col0
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7513
SELECT DISTINCT + + 5 * col2 DIV 22 AS col0 FROM tab1 AS cor0
----
13
15
21

skipif mysql # not compatible
query I rowsort label-7513
SELECT DISTINCT + + 5 * col2 / 22 AS col0 FROM tab1 AS cor0
----
13
15
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7514
SELECT ALL SUM( DISTINCT - 39 ) AS col1 FROM tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-7514
SELECT ALL SUM ( DISTINCT - 39 ) AS col1 FROM tab2 AS cor0
----
-39

query II rowsort
SELECT 28 AS col2, - col0 AS col0 FROM tab1
----
28
-51
28
-85
28
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-7516
SELECT 41 DIV + 48 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7516
SELECT 41 / + 48 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT ALL MIN( - 61 ) AS col0 FROM tab1 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7517
SELECT ALL MIN ( - 61 ) AS col0 FROM tab1 WHERE NOT col1 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col2, + col1 + 49 + + - col1 + - - ( - col1 ) * col0, 77 col1 FROM tab0
----
9 values hashing to 97975c03d605b8451844d47472e41750

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7520
SELECT - MAX ( DISTINCT col1 ) col2 FROM tab2
----
-77

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7521
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col1 * - col0 col1 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT col2 AS col0, col1 * - col2 AS col0 FROM tab2 AS cor0
----
23
-1173
40
-3080
58
-3886

query I rowsort
SELECT col1 * + 4 * - + col2 AS col2 FROM tab0
----
-15228
-396
-840

query I rowsort
SELECT + + 8 AS col1 FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

onlyif mysql # DIV for integer division: 
query I rowsort label-7525
SELECT ALL 75 DIV + col1 FROM tab0
----
0
3
75

skipif mysql # not compatible
query I rowsort label-7525
SELECT ALL 75 / + col1 FROM tab0
----
0
3
75

query I rowsort
SELECT 45 FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7527
SELECT col1 + CAST( NULL AS DECIMAL ) * 22 FROM tab0 WHERE NOT + - 6 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7527
SELECT col1 + CAST ( NULL AS REAL ) * 22 FROM tab0 WHERE NOT + - 6 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col1 FROM tab1 WHERE + col0 IS NOT NULL
----
59
68
96

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL <= + 77
----

query I rowsort
SELECT - 75 * + - ( col1 ) - - - col2 AS col0 FROM tab1 AS cor0 WHERE + col2 < NULL
----

query I rowsort
SELECT DISTINCT 41 + - 36 FROM tab0
----
5

query I rowsort
SELECT ( + col1 ) * ( + col1 ) FROM tab0
----
1
441
6561

onlyif mysql # aggregate syntax: 
query II rowsort label-7533
SELECT ALL COUNT( * ) + - + MAX( ALL col1 ), + 34 AS col1 FROM tab2
----
-74
34

skipif mysql # not compatible
query II rowsort label-7533
SELECT ALL COUNT ( * ) + - + MAX ( ALL col1 ), + 34 AS col1 FROM tab2
----
-74
34

query I rowsort
SELECT DISTINCT col0 + - - 68 AS col1 FROM tab2
----
114
132
143

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7535
SELECT + 60 - + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7535
SELECT + 60 - + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 + + + col0 col0 FROM tab2
----
102
73
91

query I rowsort
SELECT + col2 * + col0 * - - col2 + - - col2 FROM tab0
----
33182
8710
950796

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

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

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

query I rowsort
SELECT - 55 + - + 25 FROM tab2 AS cor0
----
-80
-80
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT DISTINCT + 5 + SUM( + - 76 ) FROM tab2 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-7541
SELECT DISTINCT + 5 + SUM ( + - 76 ) FROM tab2 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT + COUNT( DISTINCT + 64 ) col2 FROM tab1 WHERE NOT - col2 IS NULL
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7542
SELECT + COUNT ( DISTINCT + 64 ) col2 FROM tab1 WHERE NOT - col2 IS NULL
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7543
SELECT ALL 99 * COUNT( * ) FROM tab2
----
297

skipif mysql # not compatible
query I rowsort label-7543
SELECT ALL 99 * COUNT ( * ) FROM tab2
----
297

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <= col1 * - - col0
----

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

query I rowsort
SELECT ALL - + 38 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col0, col2 )
----

query I rowsort
SELECT - 86 AS col2 FROM tab0 cor0
----
-86
-86
-86

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 / + - col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7550
SELECT + MAX( + + ( + col2 ) ) * - COUNT( * ) * - 94 FROM tab1 AS cor0
----
27072

skipif mysql # not compatible
query I rowsort label-7550
SELECT + MAX ( + + ( + col2 ) ) * - COUNT ( * ) * - 94 FROM tab1 AS cor0
----
27072

query I rowsort
SELECT ALL - col1 * ( + 88 ) AS col1 FROM tab1 AS cor0
----
-1232
-4136
-440

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT ALL + + MAX( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-7552
SELECT ALL + + MAX ( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7553
SELECT col0 DIV + 19 FROM tab1
----
2
4
4

skipif mysql # not compatible
query I rowsort label-7553
SELECT col0 / + 19 FROM tab1
----
2
4
4

query I rowsort
SELECT col0 * - 41 FROM tab2
----
-1886
-2624
-3075

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col1 <= - - 78 + + + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 48 - + col0 * - - 49 * - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( - 51 ) FROM tab0 AS cor0
----
-51
-51
-51

query I rowsort
SELECT ALL - col0 + + 4 FROM tab1 AS cor0
----
-47
-81
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7559
SELECT DISTINCT MAX( - 40 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-40

skipif mysql # not compatible
query I rowsort label-7559
SELECT DISTINCT MAX ( - 40 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-40

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

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

query I rowsort
SELECT - + col2 * - 23 + + col2 FROM tab1 AS cor0
----
1416
1632
2304

onlyif mysql # DIV for integer division: 
query I rowsort label-7562
SELECT 21 + - 16 DIV - col0 + - col1 + + col2 FROM tab0 cor0
----
-12
10
119

skipif mysql # not compatible
query I rowsort label-7562
SELECT 21 + - 16 / - col0 + - col1 + + col2 FROM tab0 cor0
----
-12
10
119

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

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

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

query I rowsort
SELECT col1 + ( + 4 ) * + 50 AS col0 FROM tab1 AS cor0
----
205
214
247

onlyif mysql # aggregate syntax: 
query II rowsort label-7566
SELECT + 85 + - 34 AS col1, - COUNT( * ) FROM tab0 AS cor0
----
51
-3

skipif mysql # not compatible
query II rowsort label-7566
SELECT + 85 + - 34 AS col1, - COUNT ( * ) FROM tab0 AS cor0
----
51
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL > 26 / - col0 - - col2 / - col1
----

query I rowsort
SELECT - col2 + - 10 FROM tab2 AS cor0
----
-33
-50
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-7569
SELECT ALL + col2 DIV 6 + + + 15 * + - 99 FROM tab0
----
-1469
-1478
-1484

skipif mysql # not compatible
query I rowsort label-7569
SELECT ALL + col2 / 6 + + + 15 * + - 99 FROM tab0
----
-1469
-1478
-1484

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + col0 col2 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE - col2 * - 32 <> + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= + 7 * col2
----

query I rowsort
SELECT + 26 - + - col2 + - ( 18 ) FROM tab1 AS cor0
----
104
67
76

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

query I rowsort
SELECT col0 + - 42 * + col0 AS col2 FROM tab0 AS cor0 WHERE NOT col1 + col0 * - col1 / - + col1 + + + 72 IS NULL
----
-3567
-3977
-615

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, + 24 * 53 FROM tab2
----
-23
1272
-40
1272
-58
1272

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT ALL - COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7577
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-7578
SELECT ALL COUNT( * ) AS col0, + 92 + + 43 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9
135

skipif mysql # not compatible
query II rowsort label-7578
SELECT ALL COUNT ( * ) AS col0, + 92 + + 43 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9
135

query II rowsort
SELECT ALL - - col0 AS col2, 1 FROM tab1 AS cor0
----
51
1
85
1
91
1

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

skipif mysql # not compatible
query II rowsort label-7580
SELECT ALL - COUNT ( * ) AS col2, - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-3
-3

query II rowsort
SELECT ALL - + 38, + col1 AS col1 FROM tab0 cor0 WHERE - 34 IS NOT NULL
----
-38
1
-38
21
-38
81

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

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

query I rowsort
SELECT DISTINCT - + col1 * 33 AS col0 FROM tab2 AS cor0
----
-1683
-2211
-2541

query I rowsort
SELECT ALL - col2 * - 96 AS col0 FROM tab2 cor0
----
2208
3840
5568

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

query I rowsort
SELECT ( - col2 ) + - col1 FROM tab0 cor0 WHERE NOT col0 * col0 IS NULL
----
-100
-128
-31

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

skipif mysql # not compatible
query I rowsort label-7587
SELECT COUNT ( * ) / - ( COUNT ( * ) ) FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT ALL - 51 - MIN( col2 ) FROM tab0 WHERE NOT NULL < - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7588
SELECT ALL - 51 - MIN ( col2 ) FROM tab0 WHERE NOT NULL < - col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7589
SELECT CAST( 96 AS SIGNED ) DIV - COUNT( * ) AS col2 FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-7589
SELECT CAST ( 96 AS INTEGER ) / - COUNT ( * ) AS col2 FROM tab0
----
-32

query I rowsort
SELECT + col2 * - ( + col2 ) AS col2 FROM tab1
----
-3481
-4624
-9216

query I rowsort
SELECT DISTINCT + col2 + - - col1 FROM tab0 WHERE NULL IS NULL
----
100
128
31

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7592
SELECT CAST( NULL AS DECIMAL ) * - MAX( - 26 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7592
SELECT CAST ( NULL AS REAL ) * - MAX ( - 26 ) AS col2 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 17 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + - 35 col0 FROM tab0 AS cor0
----
-14
-34
46

query I rowsort
SELECT ALL - col1 * + - col0 FROM tab2 WHERE NOT ( col2 + - col2 ) > col2
----
2346
4928
5025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7596
SELECT ALL 91, - CAST( NULL AS SIGNED ) / + + COUNT( * ) AS col0 FROM tab1
----
91
NULL

skipif mysql # not compatible
query II rowsort label-7596
SELECT ALL 91, - CAST ( NULL AS INTEGER ) / + + COUNT ( * ) AS col0 FROM tab1
----
91
NULL

query I rowsort
SELECT ALL - col2 * 35 FROM tab0 AS cor0
----
-1645
-3465
-350

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7599
SELECT ALL + - MIN( CAST( NULL AS DECIMAL ) ) * - COUNT( * ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7599
SELECT ALL + - MIN ( CAST ( NULL AS REAL ) ) * - COUNT ( * ) FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7600
SELECT ALL + SUM( - col0 ) + + + 22 FROM tab0 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-7600
SELECT ALL + SUM ( - col0 ) + + + 22 FROM tab0 AS cor0
----
-177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7601
SELECT + COUNT( * ) - + CAST( - - AVG ( + 29 ) AS SIGNED ) FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-7601
SELECT + COUNT ( * ) - + CAST ( - - AVG ( + 29 ) AS INTEGER ) FROM tab0 AS cor0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7602
SELECT DISTINCT - - SUM( - 0 ) - ( + 4 ) FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-7602
SELECT DISTINCT - - SUM ( - 0 ) - ( + 4 ) FROM tab2 AS cor0
----
-4

query I rowsort
SELECT ALL + ( 77 ) + 20 FROM tab2 AS cor0
----
97
97
97

query I rowsort
SELECT + 59 - - col2 AS col0 FROM tab1 cor0
----
118
127
155

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col1 - col1 + + col2 col1 FROM tab0
----
197
199
3773

query I rowsort
SELECT col2 - + 30 FROM tab0
----
-20
17
69

query II rowsort
SELECT DISTINCT - col1 - 22 AS col1, col0 * - - col0 * + col0 + - ( + col0 ) AS col0 FROM tab1
----
-27
614040
-36
132600
-69
753480

query I rowsort
SELECT - ( + + col2 ) + + col1 - col0 * + col2 FROM tab1
----
-4978
-5069
-6209

query I rowsort
SELECT DISTINCT 0 + col1 + 67 * + - col2 FROM tab2
----
-1490
-2603
-3819

query I rowsort
SELECT ALL ( - col1 ) - - + col1 + + + col0 - 43 * + 89 * + + col0 FROM tab0
----
-332862
-371122
-57390

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < - col1 - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7613
SELECT col0 + 75 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7613
SELECT col0 + 75 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 69 FROM tab2 WHERE NOT NULL <= + col0
----

query I rowsort
SELECT - 46 + - col0 FROM tab2
----
-110
-121
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + + 56 ) - - + 59 col1 FROM tab0
----
115

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 86 * 85 col1 FROM tab1
----
7310
7310
7310

query I rowsort
SELECT ALL 34 - + col2 FROM tab2
----
-24
-6
11

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

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

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

query II rowsort
SELECT ALL + + col0 AS col1, col1 - - + ( col2 ) FROM tab1 AS cor0
----
51
110
85
64
91
115

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 93 + - 53 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7623
SELECT MIN( 66 ) * - 57 AS col2 FROM tab2 cor0
----
-3762

skipif mysql # not compatible
query I rowsort label-7623
SELECT MIN ( 66 ) * - 57 AS col2 FROM tab2 cor0
----
-3762

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL IS NULL )
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7626
SELECT DISTINCT - ( - COUNT( * ) ) + 74 AS col0 FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-7626
SELECT DISTINCT - ( - COUNT ( * ) ) + 74 AS col0 FROM tab1
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7627
SELECT ALL + col0 FROM tab1 WHERE NOT - col0 * col1 + + + 48 BETWEEN + - CAST( - col0 AS SIGNED ) AND col0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7627
SELECT ALL + col0 FROM tab1 WHERE NOT - col0 * col1 + + + 48 BETWEEN + - CAST ( - col0 AS INTEGER ) AND col0
----
51
85
91

query II rowsort
SELECT DISTINCT 73 AS col0, col0 * col2 FROM tab2 WHERE NOT + 11 - col1 > - - 81
----
73
1058
73
2560
73
4350

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7629
SELECT ALL * FROM tab2 WHERE NOT + col2 IN ( - - 72 * + - 65, + 64 * + CAST( - - 61 AS SIGNED ), - col1, + col0 / - 79 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7629
SELECT ALL * FROM tab2 WHERE NOT + col2 IN ( - - 72 * + - 65, + 64 * + CAST ( - - 61 AS INTEGER ), - col1, + col0 / - 79 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT NULL BETWEEN 29 AND + - 56
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7634
SELECT col2 DIV - - col0 * - 23 + + 29 + col0 * - 93 col2 FROM tab2 AS cor0
----
-4249
-5923
-6946

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7634
SELECT col2 / - - col0 * - 23 + + 29 + col0 * - 93 col2 FROM tab2 AS cor0
----
-4249
-5923
-6946

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

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

skipif mysql # not compatible
query I rowsort label-7636
SELECT DISTINCT - ( + - 52 ) + col2 / - col1 FROM tab2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7637
SELECT ALL ( - 8 ) * COUNT( * ) FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-7637
SELECT ALL ( - 8 ) * COUNT ( * ) FROM tab2
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7638
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 < - 17 * + CAST( - 49 AS SIGNED ) - - 58 AND NOT - 47 + + col2 + + - col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7638
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 < - 17 * + CAST ( - 49 AS INTEGER ) - - 58 AND NOT - 47 + + col2 + + - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7639
SELECT + - 45 * + + COUNT( * ) + 51 + - CAST( + + CAST( - 71 AS SIGNED ) AS SIGNED ) DIV - 41 AS col1 FROM tab2 cor0
----
-85

skipif mysql # not compatible
query I rowsort label-7639
SELECT + - 45 * + + COUNT ( * ) + 51 + - CAST ( + + CAST ( - 71 AS INTEGER ) AS INTEGER ) / - 41 AS col1 FROM tab2 cor0
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7640
SELECT + col0 + - 51 + + 19 + CAST( NULL AS SIGNED ) * - 6 + - + 27 * - col1 + + ( + col0 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7640
SELECT + col0 + - 51 + + 19 + CAST ( NULL AS INTEGER ) * - 6 + - + 27 * - col1 + + ( + col0 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7641
SELECT + CAST( NULL AS DECIMAL ) * + + 46 + + 66 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7641
SELECT + CAST ( NULL AS REAL ) * + + 46 + + 66 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7643
SELECT + + CAST( - col2 AS SIGNED ) * 28 + 35 AS col1 FROM tab1 AS cor0
----
-1617
-1869
-2653

skipif mysql # not compatible
query I rowsort label-7643
SELECT + + CAST ( - col2 AS INTEGER ) * 28 + 35 AS col1 FROM tab1 AS cor0
----
-1617
-1869
-2653

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

query I rowsort
SELECT DISTINCT 56 FROM tab1 AS cor0 WHERE col1 IS NULL
----

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

query I rowsort
SELECT DISTINCT + col2 * + 14 + - - 87 AS col0 FROM tab1
----
1039
1431
913

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7648
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - + 81 - - col2 - 78 / + 91 - - col0 * + col1 * - 11 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7648
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - + 81 - - col2 - 78 / + 91 - - col0 * + col1 * - 11 FROM tab0
----
NULL

query II rowsort
SELECT col0 AS col1, col2 + col2 AS col1 FROM tab2
----
46
46
64
80
75
116

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT DISTINCT + MIN( + col0 ) FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7650
SELECT DISTINCT + MIN ( + col0 ) FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7651
SELECT DISTINCT col0 DIV + 63 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-7651
SELECT DISTINCT col0 / + 63 FROM tab2
----
0
1

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

query II rowsort
SELECT ALL col0, - 82 AS col2 FROM tab1
----
51
-82
85
-82
91
-82

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 86 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7655
SELECT ALL - 78 DIV + col2 + - - col0 FROM tab0 AS cor0
----
14
80
97

skipif mysql # not compatible
query I rowsort label-7655
SELECT ALL - 78 / + col2 + - - col0 FROM tab0 AS cor0
----
14
80
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7656
SELECT ( - - MAX( 44 ) ) FROM tab2 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-7656
SELECT ( - - MAX ( 44 ) ) FROM tab2 AS cor0
----
44

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7658
SELECT ALL - 68 DIV + 77 + - col2 FROM tab1 cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-7658
SELECT ALL - 68 / + 77 + - col2 FROM tab1 cor0
----
-59
-68
-96

query I rowsort
SELECT DISTINCT - col0 + - 44 FROM tab0 AS cor0
----
-131
-141
-59

query I rowsort
SELECT + col0 AS col1 FROM tab2 WHERE NOT + col1 + + col2 > + col0
----

query I rowsort
SELECT ALL + col0 + + ( 78 ) FROM tab2
----
124
142
153

onlyif mysql # DIV for integer division: 
query II rowsort label-7662
SELECT ALL col0 DIV + ( col1 ) AS col1, col2 AS col2 FROM tab0
----
0
47
4
10
97
99

skipif mysql # not compatible
query II rowsort label-7662
SELECT ALL col0 / + ( col1 ) AS col1, col2 AS col2 FROM tab0
----
0
47
4
10
97
99

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7664
SELECT - 2 DIV - col0 AS col1, + ( 48 ) FROM tab2
----
0
48
0
48
0
48

skipif mysql # not compatible
query II rowsort label-7664
SELECT - 2 / - col0 AS col1, + ( 48 ) FROM tab2
----
0
48
0
48
0
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT 61 * COUNT( DISTINCT - col1 ) FROM tab1
----
183

skipif mysql # not compatible
query I rowsort label-7665
SELECT 61 * COUNT ( DISTINCT - col1 ) FROM tab1
----
183

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7666
SELECT - COUNT( * ) DIV 83 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7666
SELECT - COUNT ( * ) / 83 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT DISTINCT ( - - MIN( - - 35 ) ) FROM tab0 WHERE NOT + col0 >= - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7667
SELECT DISTINCT ( - - MIN ( - - 35 ) ) FROM tab0 WHERE NOT + col0 >= - col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7668
SELECT * FROM tab1 WHERE - + 74 * col0 + - 94 NOT BETWEEN NULL AND CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7668
SELECT * FROM tab1 WHERE - + 74 * col0 + - 94 NOT BETWEEN NULL AND CAST ( - col0 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7669
SELECT COUNT( * ) * - + COUNT( + + 18 ) AS col1 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-7669
SELECT COUNT ( * ) * - + COUNT ( + + 18 ) AS col1 FROM tab1
----
-9

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7670
SELECT + col0 * - CAST ( NULL AS REAL ) * - + col0 col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7671
SELECT ALL + ( + SUM( 14 ) ) * - 56 AS col0 FROM tab1 AS cor0
----
-2352

skipif mysql # not compatible
query I rowsort label-7671
SELECT ALL + ( + SUM ( 14 ) ) * - 56 AS col0 FROM tab1 AS cor0
----
-2352

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

query II rowsort
SELECT + col0 + col1 AS col2, col0 AS col0 FROM tab1 AS cor0
----
138
91
65
51
90
85

query I rowsort
SELECT ALL - col2 + - + col0 + + - ( - col1 ) * - - col0 FROM tab1 AS cor0
----
281
4118
567

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7676
SELECT DISTINCT ( + 40 ) + + CAST( - + AVG ( ALL + col1 ) AS SIGNED ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-7676
SELECT DISTINCT ( + 40 ) + + CAST ( - + AVG ( ALL + col1 ) AS INTEGER ) FROM tab0
----
6

query I rowsort
SELECT ALL + 68 - + - col2 AS col0 FROM tab2
----
108
126
91

query I rowsort
SELECT - ( - 80 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7680
SELECT DISTINCT - MAX( + - 26 ) AS col2 FROM tab2 cor0
----
26

skipif mysql # not compatible
query I rowsort label-7680
SELECT DISTINCT - MAX ( + - 26 ) AS col2 FROM tab2 cor0
----
26

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col0 FROM tab2 AS cor0 WHERE + 88 IS NULL
----

query I rowsort
SELECT ALL - ( - 39 ) FROM tab1
----
39
39
39

query I rowsort
SELECT DISTINCT - col2 * - ( + - col1 ) FROM tab2
----
-1173
-3080
-3886

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

skipif mysql # not compatible
query I rowsort label-7685
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 96 * + + col2 * - col0 col0 FROM tab1
----
470016
481440
594048

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

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

query I rowsort
SELECT - AVG ( - 49 ) AS col2 FROM tab2 cor0 WHERE NOT NULL > + col0
----
NULL

query I rowsort
SELECT 54 * + col0 FROM tab2
----
2484
3456
4050

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7691
SELECT DISTINCT - + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ), - col0 DIV + ( - col0 ) col1 FROM tab1 AS cor0 WHERE + 81 NOT IN ( + 2, - col0 * + col1, ( + 38 ) * - 98 )
----
NULL
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7691
SELECT DISTINCT - + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ), - col0 / + ( - col0 ) col1 FROM tab1 AS cor0 WHERE + 81 NOT IN ( + 2, - col0 * + col1, ( + 38 ) * - 98 )
----
NULL
1

query I rowsort
SELECT - - 92 AS col1 FROM tab1 cor0
----
92
92
92

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

query I rowsort
SELECT 62 * - col0 + - + 8 + col0 FROM tab2 AS cor0
----
-2814
-3912
-4583

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7695
SELECT DISTINCT 73 DIV 59 + - + CAST( col1 AS SIGNED ) * + + col0 col1 FROM tab2 AS cor0
----
-2345
-4927
-5024

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7695
SELECT DISTINCT 73 / 59 + - + CAST ( col1 AS INTEGER ) * + + col0 col1 FROM tab2 AS cor0
----
-2345
-4927
-5024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7696
SELECT ALL + COUNT( CAST( + 31 AS SIGNED ) ) col1, - SUM( col0 ) AS col0 FROM tab2 AS cor0
----
3
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7696
SELECT ALL + COUNT ( CAST ( + 31 AS INTEGER ) ) col1, - SUM ( col0 ) AS col0 FROM tab2 AS cor0
----
3
-185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7697
SELECT - 15 + - COUNT( * ) * + + COUNT( * ) DIV ( + COUNT( * ) ) * - 95 + - 93 AS col1 FROM tab0 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-7697
SELECT - 15 + - COUNT ( * ) * + + COUNT ( * ) / ( + COUNT ( * ) ) * - 95 + - 93 AS col1 FROM tab0 AS cor0
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-7698
SELECT DISTINCT + COUNT( * ) FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7698
SELECT DISTINCT + COUNT ( * ) FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT ALL - col1 + - col2 * + 41 * - col1 + - + col2 AS col1 FROM tab0
----
155959
3959
8579

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7700
SELECT ALL COUNT( * ) DIV + MIN( DISTINCT - + col2 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7700
SELECT ALL COUNT ( * ) / + MIN ( DISTINCT - + col2 ) AS col2 FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 WHERE + + 75 NOT IN ( - 95, - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7702
SELECT ALL - CAST( NULL AS SIGNED ) * - COUNT( * ) + - + COUNT( * ) / - 51 FROM tab1 WHERE NOT - 31 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7702
SELECT ALL - CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - + COUNT ( * ) / - 51 FROM tab1 WHERE NOT - 31 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7703
SELECT ALL + 65 DIV - + col0 + + - 78 AS col2 FROM tab2 AS cor0
----
-78
-79
-79

skipif mysql # not compatible
query I rowsort label-7703
SELECT ALL + 65 / - + col0 + + - 78 AS col2 FROM tab2 AS cor0
----
-78
-79
-79

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) = ( - col0 )
----

query II rowsort
SELECT - 40 - + col1, + col2 * + 56 AS col2 FROM tab2 AS cor0
----
-107
3248
-117
2240
-91
1288

query II rowsort
SELECT + col0 + col0, - 79 * + + 36 AS col1 FROM tab2 AS cor0
----
128
-2844
150
-2844
92
-2844

onlyif mysql # DIV for integer division: 
query III rowsort label-7708
SELECT * FROM tab0 AS cor0 WHERE + 1 < + 33 DIV col1
----
97
1
99

skipif mysql # not compatible
query III rowsort label-7708
SELECT * FROM tab0 AS cor0 WHERE + 1 < + 33 / col1
----
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7709
SELECT + - ( col0 ) DIV - + col0 col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7709
SELECT + - ( col0 ) / - + col0 col0 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7710
SELECT DISTINCT + MIN( ALL - col1 ), - SUM( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
-47
223

skipif mysql # not compatible
query II rowsort label-7710
SELECT DISTINCT + MIN ( ALL - col1 ), - SUM ( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
-47
223

onlyif mysql # aggregate syntax: 
query I rowsort label-7711
SELECT - ( COUNT( - 59 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7711
SELECT - ( COUNT ( - 59 ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + col1 - col1 AS col0 FROM tab2 WHERE NOT col1 IS NULL
----
0
0
0

query I rowsort
SELECT DISTINCT - 35 * - + 39 AS col0 FROM tab1
----
1365

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

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

query I rowsort
SELECT ALL + col0 * + 42 FROM tab1 cor0
----
2142
3570
3822

query I rowsort
SELECT + 58 AS col0 FROM tab1, tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7717
SELECT ALL * FROM tab1 WHERE NOT - + col2 * col1 <= CAST( + 25 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-7717
SELECT ALL * FROM tab1 WHERE NOT - + col2 * col1 <= CAST ( + 25 AS REAL )
----

query I rowsort
SELECT + 90 * - + 53 AS col2 FROM tab0
----
-4770
-4770
-4770

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

skipif mysql # not compatible
query III rowsort label-7719
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST ( + + 38 AS INTEGER ) BETWEEN + 89 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7720
SELECT DISTINCT + 41 * - col2 + col0 + + CAST( NULL AS DECIMAL ) + + col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7720
SELECT DISTINCT + 41 * - col2 + col0 + + CAST ( NULL AS REAL ) + + col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7721
SELECT DISTINCT - 29 + + - 36 + + ( col1 ) * 42 DIV + - 3 FROM tab1
----
-135
-261
-723

skipif mysql # not compatible
query I rowsort label-7721
SELECT DISTINCT - 29 + + - 36 + + ( col1 ) * 42 / + - 3 FROM tab1
----
-135
-261
-723

query I rowsort
SELECT ALL - col2 + + 69 + col2 AS col2 FROM tab1
----
69
69
69

query I rowsort
SELECT ( - 16 ) AS col1 FROM tab0
----
-16
-16
-16

query I rowsort
SELECT 20 * 44 FROM tab2
----
880
880
880

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT DISTINCT - COUNT( DISTINCT 48 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-7725
SELECT DISTINCT - COUNT ( DISTINCT 48 ) FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7726
SELECT DISTINCT - 96 * + COUNT( * ) FROM tab2
----
-288

skipif mysql # not compatible
query I rowsort label-7726
SELECT DISTINCT - 96 * + COUNT ( * ) FROM tab2
----
-288

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

query I rowsort
SELECT col0 + - ( - 5 ) AS col2 FROM tab2
----
51
69
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT DISTINCT + MIN( ALL - + 21 ) + + COUNT( DISTINCT - + 70 ) FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-7729
SELECT DISTINCT + MIN ( ALL - + 21 ) + + COUNT ( DISTINCT - + 70 ) FROM tab2 AS cor0
----
-20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 80 * + 37 + + col1 col1 FROM tab2 AS cor0
----
3011
3027
3037

query I rowsort
SELECT ALL 34 + + 66 FROM tab1 AS cor0
----
100
100
100

query I rowsort
SELECT 54 * 17 FROM tab1 AS cor0
----
918
918
918

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

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

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

query I rowsort
SELECT DISTINCT - col1 * col2 * - col0 AS col2 FROM tab1 AS cor0
----
25075
290836
68544

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

skipif mysql # not compatible
query I rowsort label-7736
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

query II rowsort
SELECT DISTINCT + 42 AS col0, - col2 * + + 41 AS col1 FROM tab2 AS cor0
----
42
-1640
42
-2378
42
-943

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 55 * - col2 col2, col2 * + 11 FROM tab0 AS cor0
----
2585
517
5445
1089
550
110

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT - MIN( + + 26 ) FROM tab1, tab1 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-7740
SELECT - MIN ( + + 26 ) FROM tab1, tab1 AS cor0
----
-26

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7743
SELECT ALL MIN( DISTINCT col2 ) FROM tab1 WHERE NOT 90 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7743
SELECT ALL MIN ( DISTINCT col2 ) FROM tab1 WHERE NOT 90 >= NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - 48 + + - 62 col0 FROM tab1 AS cor0
----
2770
3202
4546

onlyif mysql # DIV for integer division: 
query II rowsort label-7745
SELECT DISTINCT - ( + + col0 ) * + 58 + - + col0 + col0 + + 34 DIV ( - - col0 ) AS col0, + col1 + + col1 col2 FROM tab1 AS cor0
----
-2958
28
-4930
10
-5278
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7745
SELECT DISTINCT - ( + + col0 ) * + 58 + - + col0 + col0 + + 34 / ( - - col0 ) AS col0, + col1 + + col1 col2 FROM tab1 AS cor0
----
-2958
28
-4930
10
-5278
94

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + - col0, ( - - 2 ) * col2 - + - col1 + + col1 )
----

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

query II rowsort
SELECT - col2 * - col0 + + 2 AS col0, - 22 AS col1 FROM tab2 AS cor0
----
1060
-22
2562
-22
4352
-22

query I rowsort
SELECT + + 93 + + col1 AS col0 FROM tab0 AS cor0
----
114
174
94

query I rowsort
SELECT - col0 AS col1 FROM tab1 cor0 WHERE ( + col1 - + - 7 * col0 ) IS NOT NULL
----
-51
-85
-91

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7754
SELECT DISTINCT + 2 * - col0 * + 35 + - - 98 + + 74 DIV col1 FROM tab0
----
-5989
-6618
-952

skipif mysql # not compatible
query I rowsort label-7754
SELECT DISTINCT + 2 * - col0 * + 35 + - - 98 + + 74 / col1 FROM tab0
----
-5989
-6618
-952

query I rowsort
SELECT ALL col0 * + 43 + + 16 AS col1 FROM tab0
----
3757
4187
661

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7756
SELECT * FROM tab0 WHERE NULL <> + col1 * + CAST( - CAST( - + 92 AS SIGNED ) AS SIGNED ) - - 35 + - 72
----

skipif mysql # not compatible
query III rowsort label-7756
SELECT * FROM tab0 WHERE NULL <> + col1 * + CAST ( - CAST ( - + 92 AS INTEGER ) AS INTEGER ) - - 35 + - 72
----

query I rowsort
SELECT DISTINCT col1 * 68 * 14 AS col1 FROM tab1
----
13328
44744
4760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + - 46 + - col0 col2 FROM tab2
----
-1104
-1904
-2743

onlyif mysql # DIV for integer division: 
query I rowsort label-7759
SELECT + ( + 73 ) * col0 DIV col0 * col0 + - + col1 AS col0 FROM tab2
----
3307
4595
5408

skipif mysql # not compatible
query I rowsort label-7759
SELECT + ( + 73 ) * col0 / col0 * col0 + - + col1 AS col0 FROM tab2
----
3307
4595
5408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7760
SELECT ALL - col1 * 1 / + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7760
SELECT ALL - col1 * 1 / + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * + col2 + col0 FROM tab2 AS cor0
----
1219
3144
3961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 38 * col0 + + col1 col0 FROM tab0 AS cor0
----
-3285
-3685
-489

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 NOT IN ( col2, 15, - + col2 * - + 51 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7764
SELECT DISTINCT 24 * + COUNT( * ) * 72 * - MIN( + + col2 ) * + 54 FROM tab1
----
-16516224

skipif mysql # not compatible
query I rowsort label-7764
SELECT DISTINCT 24 * + COUNT ( * ) * 72 * - MIN ( + + col2 ) * + 54 FROM tab1
----
-16516224

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7767
SELECT ALL col2 DIV - 58 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7767
SELECT ALL col2 / - 58 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT col2 * - col1 - + col1 AS col2 FROM tab1 AS cor0
----
-1358
-300
-3243

query I rowsort
SELECT DISTINCT - 28 * col1 FROM tab0
----
-2268
-28
-588

onlyif mysql # aggregate syntax: 
query I rowsort label-7770
SELECT DISTINCT - 95 * + SUM( DISTINCT - 43 ) FROM tab2 WHERE NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7770
SELECT DISTINCT - 95 * + SUM ( DISTINCT - 43 ) FROM tab2 WHERE NULL <> NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7771
SELECT + col2 DIV - 22 FROM tab0
----
-2
-4
0

skipif mysql # not compatible
query I rowsort label-7771
SELECT + col2 / - 22 FROM tab0
----
-2
-4
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7772
SELECT ALL - 34 DIV - 4 col2 FROM tab2
----
8
8
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7772
SELECT ALL - 34 / - 4 col2 FROM tab2
----
8
8
8

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7773
SELECT ALL - 52 AS col2, CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
-52
NULL
-52
NULL
-52
NULL

skipif mysql # not compatible
query II rowsort label-7773
SELECT ALL - 52 AS col2, CAST ( NULL AS REAL ) AS col0 FROM tab2
----
-52
NULL
-52
NULL
-52
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT DISTINCT MIN( + col0 ) * - + 83 FROM tab2 AS cor0
----
-3818

skipif mysql # not compatible
query I rowsort label-7774
SELECT DISTINCT MIN ( + col0 ) * - + 83 FROM tab2 AS cor0
----
-3818

query I rowsort
SELECT + col1 + - - 20 AS col1 FROM tab0 AS cor0
----
101
21
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7776
SELECT COUNT( * ) + - 38 FROM tab0
----
-35

skipif mysql # not compatible
query I rowsort label-7776
SELECT COUNT ( * ) + - 38 FROM tab0
----
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + + ( + col2 ) - - col2 + col1 * - - col1 col2 FROM tab0
----
296
548
6670

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7779
SELECT COUNT( * ) * + 95 AS col2 FROM tab1 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-7779
SELECT COUNT ( * ) * + 95 AS col2 FROM tab1 AS cor0
----
285

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE + col0 + + - 86 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 39 * col1 col1 FROM tab0 cor0
----
3159
39
819

query I rowsort
SELECT - 6 * + ( + col1 ) - - + col1 FROM tab1 AS cor0
----
-235
-25
-70

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7784
SELECT ALL 12 DIV + 14 - - col1 AS col0 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7784
SELECT ALL 12 / + 14 - - col1 AS col0 FROM tab0
----
1
21
81

query II rowsort
SELECT DISTINCT col1 + + - col0 * - col2 AS col2, - 57 * ( + col1 ) AS col0 FROM tab1
----
4910
-798
5020
-285
6235
-2679

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE - 37 BETWEEN + col1 AND NULL
----

query I rowsort
SELECT - 16 + - - col1 AS col2 FROM tab1
----
-11
-2
31

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + - col1 col2 FROM tab1
----
-425
-4277
-714

onlyif mysql # DIV for integer division: 
query I rowsort label-7791
SELECT - col1 + - 39 DIV + 47 AS col2 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-7791
SELECT - col1 + - 39 / + 47 AS col2 FROM tab0 AS cor0
----
-1
-21
-81

query II rowsort
SELECT - col2 * col2 * + - col0, - col2 - ( + col1 ) * - col1 AS col0 FROM tab0 AS cor0
----
33135
6514
8700
431
950697
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, + col2 col1 FROM tab2 AS cor0
----
51
23
67
58
77
40

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

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 / 75 <= ( - ( 27 ) )
----

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

query I rowsort
SELECT ALL 96 + 19 * col1 AS col2 FROM tab0
----
115
1635
495

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7799
SELECT COUNT( ALL 77 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7799
SELECT COUNT ( ALL 77 ) FROM tab1
----
3

query I rowsort
SELECT ALL col1 * - col1 + - 23 AS col0 FROM tab0
----
-24
-464
-6584

query I rowsort
SELECT ALL - 48 + + col1 AS col1 FROM tab2
----
19
29
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col1 col1 FROM tab0
----
108
96
98

query III rowsort
SELECT ALL * FROM tab0 WHERE 56 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7804
SELECT + MIN( 55 ) FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-7804
SELECT + MIN ( 55 ) FROM tab1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT ( MIN( DISTINCT + col2 ) ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-7805
SELECT ( MIN ( DISTINCT + col2 ) ) FROM tab1
----
59

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col0 * col0 ) IN ( + col0 + col0 / col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 18 ) IN ( col1 / col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( - 24 ) AS col1 FROM tab0
----
-24
-24
-24

query I rowsort
SELECT 15 - - col1 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT col0 * - col0 - + col2 * - col0 FROM tab0 WHERE - 49 IS NULL
----

query I rowsort
SELECT 50 * - col0 AS col0 FROM tab2
----
-2300
-3200
-3750

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT ALL - MAX( DISTINCT - ( col0 ) ) * COUNT( * ) + 8 * 30 FROM tab1 WHERE col2 NOT BETWEEN col2 / col0 AND 18
----
393

skipif mysql # not compatible
query I rowsort label-7812
SELECT ALL - MAX ( DISTINCT - ( col0 ) ) * COUNT ( * ) + 8 * 30 FROM tab1 WHERE col2 NOT BETWEEN col2 / col0 AND 18
----
393

query I rowsort
SELECT 56 + + col0 FROM tab1
----
107
141
147

query I rowsort
SELECT ALL + 16 - + col1 AS col2 FROM tab0
----
-5
-65
15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7815
SELECT * FROM tab2 WHERE ( NULL ) = - ( CAST( NULL AS SIGNED ) ) + col1
----

skipif mysql # not compatible
query III rowsort label-7815
SELECT * FROM tab2 WHERE ( NULL ) = - ( CAST ( NULL AS INTEGER ) ) + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7816
SELECT ALL COUNT( * ) FROM tab2 WHERE + 47 <> ( col1 ) * col2 + col2
----
3

skipif mysql # not compatible
query I rowsort label-7816
SELECT ALL COUNT ( * ) FROM tab2 WHERE + 47 <> ( col1 ) * col2 + col2
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE + 98 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT 42 * - COUNT( * ) FROM tab2 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-7818
SELECT 42 * - COUNT ( * ) FROM tab2 AS cor0
----
-126

query I rowsort
SELECT DISTINCT - 9 * + col1 + - col2 FROM tab1 cor0
----
-104
-222
-491

onlyif mysql # aggregate syntax: 
query I rowsort label-7820
SELECT - COUNT( * ) * - 90 FROM tab1 AS cor0 WHERE col0 < col0 * ( col1 )
----
270

skipif mysql # not compatible
query I rowsort label-7820
SELECT - COUNT ( * ) * - 90 FROM tab1 AS cor0 WHERE col0 < col0 * ( col1 )
----
270

query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE NULL NOT IN ( + 79 )
----

query I rowsort
SELECT col2 + 41 FROM tab1
----
100
109
137

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT ALL + MIN( ALL + ( 76 ) ) FROM tab0 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-7823
SELECT ALL + MIN ( ALL + ( 76 ) ) FROM tab0 AS cor0
----
76

query I rowsort
SELECT + 10 * + 39 + col0 FROM tab0 AS cor0
----
405
477
487

onlyif mysql # aggregate syntax: 
query I rowsort label-7825
SELECT + + 78 + + MIN( 29 ) FROM tab1 AS cor0
----
107

skipif mysql # not compatible
query I rowsort label-7825
SELECT + + 78 + + MIN ( 29 ) FROM tab1 AS cor0
----
107

query I rowsort
SELECT 79 + col2 FROM tab2 AS cor0
----
102
119
137

query I rowsort
SELECT ALL + 24 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT + col1 + 53 AS col1 FROM tab0 AS cor0
----
134
54
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7829
SELECT - col0 + + CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
-37
-44
-80

skipif mysql # not compatible
query I rowsort label-7829
SELECT - col0 + + CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
-37
-44
-80

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 49 + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7831
SELECT DISTINCT - - col1 * + CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7831
SELECT DISTINCT - - col1 * + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + - col0 * + 37 + - col2 AS col0 FROM tab2 AS cor0
----
-1725
-2408
-2833

query I rowsort
SELECT 24 * + 8 + col0 FROM tab1 AS cor0
----
243
277
283

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 < col2
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7835
SELECT - ( + ( 47 ) ) + MIN( ALL + ( + 92 ) + - ( - ( col2 ) + col2 ) ) FROM tab1 cor0
----
45

skipif mysql # not compatible
query I rowsort label-7835
SELECT - ( + ( 47 ) ) + MIN ( ALL + ( + 92 ) + - ( - ( col2 ) + col2 ) ) FROM tab1 cor0
----
45

query I rowsort
SELECT DISTINCT col2 / 41 FROM tab0 AS cor0 WHERE NULL = col2 / col1
----

query I rowsort
SELECT ALL + col0 AS col2 FROM tab2 AS cor0 WHERE ( + 72 + - col2 ) NOT IN ( - col2 )
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT DISTINCT - SUM( col1 ) col2 FROM tab1 WHERE 91 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7838
SELECT DISTINCT - SUM ( col1 ) col2 FROM tab1 WHERE 91 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE col2 BETWEEN col1 AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL >= ( col2 )
----

query I rowsort
SELECT + ( - col2 ) * - 15 + col2 FROM tab2 WHERE col1 NOT BETWEEN ( + 76 ) AND NULL
----
368
928

query I rowsort
SELECT DISTINCT - AVG ( 6 ) * 34 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT col0 - + - col2 FROM tab2
----
104
133
69

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( - col1 ) + 99 IS NOT NULL OR NOT NULL IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 * + - 80 FROM tab0 cor0
----
-3760
-7920
-800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7846
SELECT ALL CAST( NULL AS SIGNED ) * + + 29 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7846
SELECT ALL CAST ( NULL AS INTEGER ) * + + 29 AS col0 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT - 16 AS col1, + 31 AS col0 FROM tab1
----
-16
31
-16
31
-16
31

query I rowsort
SELECT DISTINCT - 59 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-59

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
51
85
91

query II rowsort
SELECT - 24, + col1 AS col0 FROM tab2
----
-24
51
-24
67
-24
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT ALL COUNT( DISTINCT + + 58 ) AS col0 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-7851
SELECT ALL COUNT ( DISTINCT + + 58 ) AS col0 FROM tab2 cor0
----
1

query II rowsort
SELECT + - col0 AS col0, ( + 58 ) FROM tab1 AS cor0
----
-51
58
-85
58
-91
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7853
SELECT - COUNT( - CAST( + col2 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7853
SELECT - COUNT ( - CAST ( + col2 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 BETWEEN + col2 AND col0
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7855
SELECT DISTINCT - MAX( col2 ) FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-7855
SELECT DISTINCT - MAX ( col2 ) FROM tab2 cor0
----
-58

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT - 90 * + - 22 * - + col2 AS col0 FROM tab1
----
-116820
-134640
-190080

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE NOT + + col0 IN ( + - 50 + + col2 )
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 * - col1 * + - col0 * col0 col0 FROM tab1
----
1372750
1383732
14789866

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col2 ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - 4 * - + col2 AS col0 FROM tab2
----
160
232
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7862
SELECT DISTINCT - MIN( + col0 ) AS col2 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-7862
SELECT DISTINCT - MIN ( + col0 ) AS col2 FROM tab0
----
-15

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 27 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 + - + col0 col0, + 76 FROM tab1 cor0
----
0
76

query II rowsort
SELECT ALL + - col1 + col0 AS col2, col2 AS col1 FROM tab0 AS cor0
----
-66
47
66
10
96
99

query I rowsort
SELECT - 58 FROM tab1 WHERE - - col1 IS NOT NULL
----
-58
-58
-58

query I rowsort
SELECT - col0 * ( + + col2 ) FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + ( col0 ) NOT BETWEEN 67 * col1 AND + col1
----
0

skipif mysql # not compatible
query I rowsort label-7868
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + ( col0 ) NOT BETWEEN 67 * col1 AND + col1
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= 60
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7870
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE + + col0 + - 41 * + + col1 / col0 IS NULL AND - CAST( 85 AS DECIMAL ) + col1 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-7870
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE + + col0 + - 41 * + + col1 / col0 IS NULL AND - CAST ( 85 AS REAL ) + col1 = NULL
----
0

query I rowsort
SELECT ALL + + 45 + - + 73 + - ( + - col2 ) AS col0 FROM tab2 AS cor0
----
-5
12
30

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN 19 AND ( - col2 )
----

query I rowsort
SELECT DISTINCT + 87 * 84 * - - col1 + - 92 - - col2 + col1 FROM tab2 AS cor0
----
372690
489669
562741

query I rowsort
SELECT ALL 88 + col0 AS col1 FROM tab1 cor0
----
139
173
179

query I rowsort
SELECT - col0 - col1 - col0 FROM tab1 AS cor0
----
-116
-175
-229

query I rowsort
SELECT 66 AS col1 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 55 * col2 FROM tab0 WHERE ( ( NOT NULL IS NOT NULL ) )
----
2585
5445
550

query I rowsort
SELECT DISTINCT - ( + 76 ) * - col0 - + - col2 FROM tab2
----
3519
4904
5758

query I rowsort
SELECT + col1 FROM tab1 WHERE + col1 / + col2 * - col0 + + + col0 IS NOT NULL
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 97 col2, + col0 * + ( + - 69 ) FROM tab2
----
97
-3174
97
-4416
97
-5175

query II rowsort
SELECT + col0, - ( col2 ) FROM tab1
----
51
-96
85
-59
91
-68

query II rowsort
SELECT - col1, - 95 AS col2 FROM tab2
----
-51
-95
-67
-95
-77
-95

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 NOT BETWEEN + col1 * + col0 - - 85 + + 42 * col2 * + col2 AND + col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col2 ) >= + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7885
SELECT DISTINCT COUNT( DISTINCT 31 ) col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7885
SELECT DISTINCT COUNT ( DISTINCT 31 ) col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT col2 * col1 * - col2 FROM tab2 cor0
----
-123200
-225388
-26979

query I rowsort
SELECT - 6 * - col0 - - col1 * - 77 FROM tab0 AS cor0
----
-1095
-6147
505

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT - MAX( ALL - - ( + - col2 ) ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-7888
SELECT - MAX ( ALL - - ( + - col2 ) ) AS col2 FROM tab2
----
23

query I rowsort
SELECT ALL 13 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
13
13
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7890
SELECT DISTINCT 95 * - 85 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
-24225

skipif mysql # not compatible
query I rowsort label-7890
SELECT DISTINCT 95 * - 85 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-24225

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <> - col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7892
SELECT ALL - col2 * CAST( - + col0 AS SIGNED ) + 70 + + + col2 DIV - col2 + - col1 FROM tab1 AS cor0
----
4951
5079
6210

skipif mysql # not compatible
query I rowsort label-7892
SELECT ALL - col2 * CAST ( - + col0 AS INTEGER ) + 70 + + + col2 / - col2 + - col1 FROM tab1 AS cor0
----
4951
5079
6210

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 51 ) = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7894
SELECT + 75 * + COUNT( * ) FROM tab1 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-7894
SELECT + 75 * + COUNT ( * ) FROM tab1 AS cor0
----
225

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( - col1 ) * - 97 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( + col1 ) col0, col2 AS col1 FROM tab2 AS cor0
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7897
SELECT DISTINCT MAX( DISTINCT - - col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-7897
SELECT DISTINCT MAX ( DISTINCT - - col2 ) FROM tab2
----
58

query I rowsort
SELECT ALL 88 * + - 3 * - col0 + + ( + col0 ) FROM tab2
----
12190
16960
19875

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - 12 ) NOT BETWEEN ( 37 ) AND 36
----

query I rowsort
SELECT DISTINCT - col0 * - - 63 * - - col0 AS col2 FROM tab2
----
-133308
-258048
-354375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7901
SELECT 83 / + CAST( NULL AS SIGNED ) * + - col0 / + - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7901
SELECT 83 / + CAST ( NULL AS INTEGER ) * + - col0 / + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( - 45 ) AS col2 FROM tab1 AS cor0
----
45

query II rowsort
SELECT - 2 AS col1, - ( - col1 ) FROM tab1 AS cor0
----
-2
14
-2
47
-2
5

query I rowsort
SELECT ALL 17 * + ( + + col1 ) + + 21 AS col0 FROM tab0 AS cor0
----
1398
378
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, col2 col0 FROM tab2 cor0 WHERE ( col0 ) IS NOT NULL
----
51
23
67
58
77
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7906
SELECT + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) / - - 60 / + + MAX( DISTINCT 47 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7906
SELECT + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) / - - 60 / + + MAX ( DISTINCT 47 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 * + + 48 + + - col0 AS col1 FROM tab2 AS cor0
----
-1150
-1984
-2859

onlyif mysql # aggregate syntax: 
query I rowsort label-7908
SELECT DISTINCT - + MIN( + + 28 ) + 21 * + COUNT( * ) + + 76 AS col1 FROM tab1 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-7908
SELECT DISTINCT - + MIN ( + + 28 ) + 21 * + COUNT ( * ) + + 76 AS col1 FROM tab1 AS cor0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-7909
SELECT - - COUNT( * ) FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7909
SELECT - - COUNT ( * ) FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7910
SELECT DISTINCT + + 26 - + + COUNT( * ) FROM tab0 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-7910
SELECT DISTINCT + + 26 - + + COUNT ( * ) FROM tab0 AS cor0
----
23

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE ( NOT ( NULL ) BETWEEN NULL AND col2 )
----

query I rowsort
SELECT + 87 + - - col1 AS col2 FROM tab1 AS cor0
----
101
134
92

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7913
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN + col2 AND ( + col1 + col2 + - CAST( NULL AS DECIMAL ) * - + ( + + col0 ) )
----

skipif mysql # not compatible
query III rowsort label-7913
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN + col2 AND ( + col1 + col2 + - CAST ( NULL AS REAL ) * - + ( + + col0 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7914
SELECT ALL + + col0 * - col0 + + 71 + col2 DIV 32 FROM tab0 AS cor0
----
-153
-7498
-9335

skipif mysql # not compatible
query I rowsort label-7914
SELECT ALL + + col0 * - col0 + + 71 + col2 / 32 FROM tab0 AS cor0
----
-153
-7498
-9335

onlyif mysql # aggregate syntax: 
query I rowsort label-7915
SELECT DISTINCT COUNT( * ) + - + SUM( DISTINCT + - col0 ) FROM tab2 cor0
----
188

skipif mysql # not compatible
query I rowsort label-7915
SELECT DISTINCT COUNT ( * ) + - + SUM ( DISTINCT + - col0 ) FROM tab2 cor0
----
188

onlyif mysql # DIV for integer division: 
query I rowsort label-7916
SELECT ALL - - 27 DIV col2 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-7916
SELECT ALL - - 27 / col2 FROM tab0 AS cor0
----
0
0
2

query I rowsort
SELECT DISTINCT - - 18 FROM tab1 AS cor0 WHERE 14 + - + 11 * + + col0 * - col2 * + 81 = NULL
----

query I rowsort
SELECT DISTINCT 57 + - + col2 AS col0 FROM tab2 AS cor0
----
-1
17
34

query I rowsort
SELECT DISTINCT + + col0 - + + col0 AS col0 FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT + 70 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7921
SELECT * FROM tab2 WHERE NOT NULL IN ( + CAST( NULL AS SIGNED ) + - ( - col1 ) )
----

skipif mysql # not compatible
query III rowsort label-7921
SELECT * FROM tab2 WHERE NOT NULL IN ( + CAST ( NULL AS INTEGER ) + - ( - col1 ) )
----

query II rowsort
SELECT - col0 AS col2, col0 * - col0 * col2 FROM tab1
----
-51
-249696
-85
-426275
-91
-563108

query II rowsort
SELECT ALL col2 AS col2, - 11 * + + col0 AS col0 FROM tab0
----
10
-957
47
-165
99
-1067

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 55 col1, col1 AS col1 FROM tab2
----
-55
51
-55
67
-55
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT - COUNT( col2 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7925
SELECT - COUNT ( col2 ) AS col1 FROM tab0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7926
SELECT + CAST( NULL AS SIGNED ) + CAST( - 67 AS DECIMAL ) * - MIN( DISTINCT - - 2 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7926
SELECT + CAST ( NULL AS INTEGER ) + CAST ( - 67 AS REAL ) * - MIN ( DISTINCT - - 2 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7927
SELECT COUNT( * ), - COUNT( * ) + SUM( + col0 ) AS col1 FROM tab1
----
3
224

skipif mysql # not compatible
query II rowsort label-7927
SELECT COUNT ( * ), - COUNT ( * ) + SUM ( + col0 ) AS col1 FROM tab1
----
3
224

query II rowsort
SELECT + 73 * 1, - col1 FROM tab2 AS cor0 WHERE NOT + col1 * col0 / - col0 IS NOT NULL
----

query I rowsort
SELECT - 87 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-87
-87
-87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7930
SELECT DISTINCT - + col2, CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-7930
SELECT DISTINCT - + col2, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

query I rowsort
SELECT ALL - 67 + - col0 * col2 AS col1 FROM tab1 cor0
----
-4963
-5082
-6255

query I rowsort
SELECT DISTINCT 25 + + col0 * - col2 FROM tab0 AS cor0
----
-680
-845
-9578

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + col1 + - col1 col2 FROM tab0 cor0 WHERE NULL IS NULL
----
-147
45
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT DISTINCT + COUNT( * ) + + + 52 - + 91 FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-7934
SELECT DISTINCT + COUNT ( * ) + + + 52 - + 91 FROM tab0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT 44 * - - MIN( col0 ) FROM tab0
----
660

skipif mysql # not compatible
query I rowsort label-7935
SELECT 44 * - - MIN ( col0 ) FROM tab0
----
660

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT + COUNT( 79 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7936
SELECT + COUNT ( 79 ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT 52 + - MAX( - - col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-7937
SELECT 52 + - MAX ( - - col1 ) FROM tab1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7938
SELECT DISTINCT CAST( NULL AS SIGNED ) * + COUNT( * ) + - + 41 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7938
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + COUNT ( * ) + - + 41 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7939
SELECT + - 31 AS col2 FROM tab2 AS cor0 WHERE + col2 * col1 * + col1 NOT IN ( + CAST( NULL AS SIGNED ), 35, + col2 )
----

skipif mysql # not compatible
query I rowsort label-7939
SELECT + - 31 AS col2 FROM tab2 AS cor0 WHERE + col2 * col1 * + col1 NOT IN ( + CAST ( NULL AS INTEGER ), 35, + col2 )
----

query I rowsort
SELECT ALL + col0 * - col2 + 21 FROM tab1 AS cor0 WHERE NOT + ( + - col1 ) IS NULL
----
-4875
-4994
-6167

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE 72 > col1
----
-46
-75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 75 * + + col2 + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 3 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - - 23 * col1 + 63 - col1 FROM tab0 cor0
----
1845
525
85

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( - 79 ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7946
SELECT ( - 54 ) / + col1 * - + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7946
SELECT ( - 54 ) / + col1 * - + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) <> - col0
----

query I rowsort
SELECT ALL - - col1 + + 41 FROM tab1 WHERE NOT ( - 65 ) > col2
----
46
55
88

query I rowsort
SELECT DISTINCT col1 * 20 * - + col1 AS col2 FROM tab2
----
-118580
-52020
-89780

query III rowsort
SELECT * FROM tab0 WHERE NOT - 71 NOT BETWEEN NULL AND - 15
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7951
SELECT DISTINCT MAX( + - col2 ) FROM tab2 WHERE NULL NOT BETWEEN NULL AND col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7951
SELECT DISTINCT MAX ( + - col2 ) FROM tab2 WHERE NULL NOT BETWEEN NULL AND col0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL < + col2 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7953
SELECT - 90 * - 57 + - COUNT( * ) FROM tab2 AS cor0
----
5127

skipif mysql # not compatible
query I rowsort label-7953
SELECT - 90 * - 57 + - COUNT ( * ) FROM tab2 AS cor0
----
5127

query I rowsort
SELECT + col1 * col1 * + col0 AS col0 FROM tab0 AS cor0
----
38367
97
98415

query I rowsort
SELECT ALL - - col0 * + col2 + - 83 * col1 FROM tab1 AS cor0 WHERE NULL BETWEEN 39 AND + col1 * + 90 * + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7956
SELECT ALL COUNT( * ) * + 36 AS col2 FROM tab0, tab1 AS cor0
----
324

skipif mysql # not compatible
query I rowsort label-7956
SELECT ALL COUNT ( * ) * + 36 AS col2 FROM tab0, tab1 AS cor0
----
324

onlyif mysql # aggregate syntax: 
query I rowsort label-7957
SELECT ( - - SUM( ALL - 5 ) ) AS col2 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-7957
SELECT ( - - SUM ( ALL - 5 ) ) AS col2 FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7958
SELECT + + COUNT( * ) * 57 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
513

skipif mysql # not compatible
query I rowsort label-7958
SELECT + + COUNT ( * ) * 57 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
513

onlyif mysql # DIV for integer division: 
query I rowsort label-7959
SELECT col2 DIV + + ( col0 ) FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-7959
SELECT col2 / + + ( col0 ) FROM tab0
----
0
1
3

query I rowsort
SELECT ALL - 7 + col1 * - - col0 * col2 FROM tab2 AS cor0
----
197113
291443
53951

query I rowsort
SELECT + ( + col2 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
23
40
58

query I rowsort
SELECT col1 + col1 * - 52 AS col1 FROM tab2 cor0
----
-2601
-3417
-3927

query I rowsort
SELECT + col0 FROM tab1 cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT - col0 * - col1 * col2 + + 24 + 26 FROM tab2 AS cor0
----
197170
291500
54008

query I rowsort
SELECT ALL - + 13 + - col0 FROM tab0 AS cor0
----
-100
-110
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-7966
SELECT ALL col2 + col2 + - col2 + col2 DIV + col2 FROM tab2 AS cor0
----
24
41
59

skipif mysql # not compatible
query I rowsort label-7966
SELECT ALL col2 + col2 + - col2 + col2 / + col2 FROM tab2 AS cor0
----
24
41
59

query I rowsort
SELECT - col2 AS col2 FROM tab0 AS cor0 WHERE 66 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT - col1 * - - col1 + 55 FROM tab1
----
-141
-2154
30

query I rowsort
SELECT - - 60 AS col1 FROM tab2 WHERE NULL NOT BETWEEN 83 * col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7970
SELECT DISTINCT 21 + col1 DIV col1 AS col0 FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-7970
SELECT DISTINCT 21 + col1 / col1 AS col0 FROM tab1
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-7971
SELECT DISTINCT 70 col2, 15 - + - ( - + MIN( - col0 ) ) + + 12 AS col2 FROM tab0
----
70
124

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7971
SELECT DISTINCT 70 col2, 15 - + - ( - + MIN ( - col0 ) ) + + 12 AS col2 FROM tab0
----
70
124

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 25 NOT IN ( - col1, - 16 + + 79, + 36 + 50 )
----

query I rowsort
SELECT 46 + + - ( - - col2 ) FROM tab0 WHERE - 66 IS NOT NULL
----
-1
-53
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7974
SELECT ( + - col1 ) * CAST( NULL AS SIGNED ) + + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7974
SELECT ( + - col1 ) * CAST ( NULL AS INTEGER ) + + col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col2 ) * - + 3 col0 FROM tab1
----
-177
-204
-288

query I rowsort
SELECT ALL + + col2 * + 21 FROM tab0 AS cor0
----
2079
210
987

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col1 / - col0 - + - 33 + + + col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT ALL - 74 + + + COUNT( * ) * 30 col0 FROM tab1 AS cor0
----
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7978
SELECT ALL - 74 + + + COUNT ( * ) * 30 col0 FROM tab1 AS cor0
----
16

query I rowsort
SELECT + - col1 - col1 * + - 80 FROM tab2 cor0
----
4029
5293
6083

query I rowsort
SELECT DISTINCT + col2 + - col2 + - col1 * + + col2 AS col2 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT + COUNT( * ) - - MIN( - 73 ) + + COUNT( * ) FROM tab2 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-7981
SELECT + COUNT ( * ) - - MIN ( - 73 ) + + COUNT ( * ) FROM tab2 AS cor0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7982
SELECT ( - - 87 ) + - COUNT( * ) AS col1 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-7982
SELECT ( - - 87 ) + - COUNT ( * ) AS col1 FROM tab0
----
84

query I rowsort
SELECT DISTINCT - 40 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NOT NULL
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7984
SELECT DISTINCT * FROM tab0 WHERE - col0 * CAST( col0 AS SIGNED ) + + 26 BETWEEN + + 92 AND NULL
----

skipif mysql # not compatible
query III rowsort label-7984
SELECT DISTINCT * FROM tab0 WHERE - col0 * CAST ( col0 AS INTEGER ) + + 26 BETWEEN + + 92 AND NULL
----

query I rowsort
SELECT + col0 * + col1 - - col1 FROM tab2 cor0
----
2397
5005
5092

query I rowsort
SELECT DISTINCT - 45 * - - col1 AS col2 FROM tab1 AS cor0
----
-2115
-225
-630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7987
SELECT ALL MAX( + - CAST( col1 AS SIGNED ) ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7987
SELECT ALL MAX ( + - CAST ( col1 AS INTEGER ) ) FROM tab2 AS cor0
----
-51

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL >= 72
----

query I rowsort
SELECT + - ( 68 ) AS col0 FROM tab1 AS cor0
----
-68
-68
-68

query I rowsort
SELECT ALL + + 93 FROM tab1 cor0
----
93
93
93

query I rowsort
SELECT ALL - col0 * + + col0 FROM tab0
----
-225
-7569
-9409

query I rowsort
SELECT DISTINCT 40 * - 98 FROM tab0
----
-3920

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL NOT BETWEEN ( NULL ) AND 74 )
----

query II rowsort
SELECT + col1, - 97 FROM tab0
----
1
-97
21
-97
81
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7995
SELECT - col2 AS col2, CAST( NULL AS SIGNED ) + + - 2 col2 FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7995
SELECT - col2 AS col2, CAST ( NULL AS INTEGER ) + + - 2 col2 FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

query I rowsort
SELECT + 39 * 43 FROM tab0, tab0 cor0
----
9 values hashing to 938dd38b5b8d1eb464483578e3778323

query I rowsort
SELECT ALL + - 77 AS col2 FROM tab1 AS cor0
----
-77
-77
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7998
SELECT DISTINCT + col0 * col2 * - col1 + - + CAST( - 6 AS SIGNED ) col1 FROM tab1 AS cor0
----
-25069
-290830
-68538

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7998
SELECT DISTINCT + col0 * col2 * - col1 + - + CAST ( - 6 AS INTEGER ) col1 FROM tab1 AS cor0
----
-25069
-290830
-68538

onlyif mysql # aggregate syntax: 
query II rowsort label-7999
SELECT DISTINCT + + COUNT( * ) AS col0, + 35 FROM tab1 AS cor0
----
3
35

skipif mysql # not compatible
query II rowsort label-7999
SELECT DISTINCT + + COUNT ( * ) AS col0, + 35 FROM tab1 AS cor0
----
3
35

query I rowsort
SELECT DISTINCT + col2 + + 39 FROM tab2 cor0
----
62
79
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT ( 4 ) + + + COUNT( * ) FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-8001
SELECT ( 4 ) + + + COUNT ( * ) FROM tab2
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8002
SELECT ALL 31 DIV 69 * + + COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8002
SELECT ALL 31 / 69 * + + COUNT ( * ) FROM tab2
----
0

query I rowsort
SELECT - 50 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT DISTINCT + COUNT( - + col1 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8004
SELECT DISTINCT + COUNT ( - + col1 ) FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8005
SELECT ALL - 21 + CAST( - MIN( DISTINCT + + 52 ) AS SIGNED ) FROM tab2 cor0
----
-73

skipif mysql # not compatible
query I rowsort label-8005
SELECT ALL - 21 + CAST ( - MIN ( DISTINCT + + 52 ) AS INTEGER ) FROM tab2 cor0
----
-73

query I rowsort
SELECT DISTINCT - col2 + + + col2 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT col1 FROM tab0 WHERE col0 + + ( - col0 ) + col1 <= - 64 * + col1
----

query I rowsort
SELECT - col0 - + - ( - col1 ) FROM tab1
----
-138
-65
-90

query I rowsort
SELECT ALL - ( - 93 ) + - - col1 FROM tab2
----
144
160
170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - - 74 col1 FROM tab1
----
121
79
88

query I rowsort
SELECT ALL col0 - 22 * + + col1 FROM tab1
----
-25
-257
-943

query I rowsort
SELECT ALL + 92 AS col0 FROM tab1 WHERE NOT + col0 IS NULL
----
92
92
92

query I rowsort
SELECT + 13 * + col2 + - col2 FROM tab1
----
1152
708
816

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col1 + + 60 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col2 * + 51 * - col2 ) = - 18
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8016
SELECT + 71 DIV + - ( - - COUNT( * ) ) col2 FROM tab2
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8016
SELECT + 71 / + - ( - - COUNT ( * ) ) col2 FROM tab2
----
-23

query II rowsort
SELECT + 81, + 32 * 67 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + col0 / - 28 FROM tab1 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT - 54 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-54

query I rowsort
SELECT ALL + - 34 + col2 * + col0 * 17 FROM tab2 AS cor0 WHERE + col1 * + - 71 > NULL
----

query I rowsort
SELECT 19 * ( - col0 ) + + col1 FROM tab0 cor0
----
-1632
-1842
-204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8022
SELECT + ( COUNT( ALL CAST( - + col2 AS SIGNED ) ) ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8022
SELECT + ( COUNT ( ALL CAST ( - + col2 AS INTEGER ) ) ) AS col1 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8023
SELECT COUNT( * ) AS col0, COUNT( * ) AS col2 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8023
SELECT COUNT ( * ) AS col0, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT + COUNT( + col1 ) * + ( + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8024
SELECT + COUNT ( + col1 ) * + ( + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT - 86 * COUNT( * ) AS col0 FROM tab2 cor0
----
-258

skipif mysql # not compatible
query I rowsort label-8025
SELECT - 86 * COUNT ( * ) AS col0 FROM tab2 cor0
----
-258

query I rowsort
SELECT - 57 * + col0 AS col1 FROM tab0 AS cor0
----
-4959
-5529
-855

query II rowsort
SELECT DISTINCT - ( - 5 ) * - - col1 + + + col2 * col1 AS col1, col1 FROM tab1
----
1414
14
320
5
3431
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8028
SELECT MAX( - CAST( - ( + col0 ) AS SIGNED ) ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-8028
SELECT MAX ( - CAST ( - ( + col0 ) AS INTEGER ) ) FROM tab2
----
75

query I rowsort
SELECT + ( - - col2 ) FROM tab1 cor0
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 56 col1 FROM tab0 AS cor0
----
56
56
56

query II rowsort
SELECT + ( - col2 ) AS col0, + col1 * + col0 FROM tab0 AS cor0
----
-10
1827
-47
1215
-99
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 5 < NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( ( col0 + + + 74 * col0 IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - 37, col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT ( NULL >= NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT - COUNT( * ) col0 FROM tab1 WHERE + + 18 IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8035
SELECT - COUNT ( * ) col0 FROM tab1 WHERE + + 18 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8036
SELECT - COUNT( * ) + - 66 col0 FROM tab0
----
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8036
SELECT - COUNT ( * ) + - 66 col0 FROM tab0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8037
SELECT DISTINCT + SUM( - - 53 ) AS col0 FROM tab1 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-8037
SELECT DISTINCT + SUM ( - - 53 ) AS col0 FROM tab1 AS cor0
----
159

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 = NULL
----

query I rowsort
SELECT DISTINCT 3 * + col0 + col1 AS col0 FROM tab2 AS cor0
----
189
269
292

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 + + - col1 NOT BETWEEN ( - - 98 ) AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8041
SELECT + - col0 DIV - col2 + - 60 * + col2 FROM tab1 AS cor0
----
-3539
-4079
-5760

skipif mysql # not compatible
query I rowsort label-8041
SELECT + - col0 / - col2 + - 60 * + col2 FROM tab1 AS cor0
----
-3539
-4079
-5760

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * - + 36 + + col1 * + col0 IN ( + col1, + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT DISTINCT - - COUNT( * ) FROM tab1 AS cor0 WHERE NULL <= 66 + - 95
----
0

skipif mysql # not compatible
query I rowsort label-8043
SELECT DISTINCT - - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL <= 66 + - 95
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8044
SELECT DISTINCT - col2 DIV + col0 * + - col1 + + col2 + - col2 + + - col0 DIV + col2 + + col1 AS col2 FROM tab2 AS cor0
----
49
66
76

skipif mysql # not compatible
query I rowsort label-8044
SELECT DISTINCT - col2 / + col0 * + - col1 + + col2 + - col2 + + - col0 / + col2 + + col1 AS col2 FROM tab2 AS cor0
----
49
66
76

query I rowsort
SELECT DISTINCT + col1 * 85 - - 35 + + - col2 * + - 4 AS col1 FROM tab1 AS cor0
----
1609
4302
696

onlyif mysql # aggregate syntax: 
query I rowsort label-8046
SELECT + SUM( DISTINCT ( - col0 ) ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-8046
SELECT + SUM ( DISTINCT ( - col0 ) ) FROM tab0
----
-199

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8047
SELECT ALL + COUNT( * ) + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8047
SELECT ALL + COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - + 83 - col1 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8049
SELECT DISTINCT - MAX( ALL + 61 ) * - 91 AS col2 FROM tab0
----
5551

skipif mysql # not compatible
query I rowsort label-8049
SELECT DISTINCT - MAX ( ALL + 61 ) * - 91 AS col2 FROM tab0
----
5551

query I rowsort
SELECT ALL col2 - + - 89 FROM tab1
----
148
157
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 - + col1 * - 39 * + 90 col2 FROM tab0 AS cor0
----
284347
3547
73747

onlyif mysql # DIV for integer division: 
query I rowsort label-8052
SELECT 22 - - - col1 DIV + col0 + + - col1 FROM tab0 AS cor0
----
-64
1
21

skipif mysql # not compatible
query I rowsort label-8052
SELECT 22 - - - col1 / + col0 + + - col1 FROM tab0 AS cor0
----
-64
1
21

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = + col1 + 74
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8054
SELECT + - COUNT( * ) col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8054
SELECT + - COUNT ( * ) col0 FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT DISTINCT + - COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8055
SELECT DISTINCT + - COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT + + col1 * - col2 * - col1 + 74 * - + col1 FROM tab0 cor0 WHERE col0 IS NOT NULL
----
25
2856
302373

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * - 33 / + + 84 NOT IN ( col0, + col0, 47 + col2 )
----

query I rowsort
SELECT ALL - ( ( - + ( col0 ) ) ) FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT + 42 - + SUM( ALL 39 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( ( + - col1 ) NOT IN ( - col1 * ( + col0 ), col0, + - col0 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8059
SELECT + 42 - + SUM ( ALL 39 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( ( + - col1 ) NOT IN ( - col1 * ( + col0 ), col0, + - col0 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT DISTINCT - COUNT( * ) * + - COUNT( 61 ) - + - 81 FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-8060
SELECT DISTINCT - COUNT ( * ) * + - COUNT ( 61 ) - + - 81 FROM tab0 AS cor0
----
90

query I rowsort
SELECT ALL 19 * - + col2 AS col1 FROM tab2
----
-1102
-437
-760

query I rowsort
SELECT ( 89 ) * + + 99 FROM tab2
----
8811
8811
8811

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8063
SELECT DISTINCT + CAST( + COUNT( + CAST( NULL AS SIGNED ) ) AS SIGNED ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8063
SELECT DISTINCT + CAST ( + COUNT ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) FROM tab2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8064
SELECT 35 AS col2, + COUNT( * ) DIV + - 46 FROM tab0
----
35
0

skipif mysql # not compatible
query II rowsort label-8064
SELECT 35 AS col2, + COUNT ( * ) / + - 46 FROM tab0
----
35
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8065
SELECT DISTINCT + COUNT( * ) col2, - COUNT( * ) col2 FROM tab0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8065
SELECT DISTINCT + COUNT ( * ) col2, - COUNT ( * ) col2 FROM tab0
----
3
-3

query I rowsort
SELECT ALL - 87 * + 11 * + + col1 AS col2 FROM tab0 cor0
----
-20097
-77517
-957

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8067
SELECT col0 / 60 / - - 14 FROM tab1 AS cor0 WHERE col0 * + + col2 IN ( + CAST( NULL AS SIGNED ), col0 )
----

skipif mysql # not compatible
query I rowsort label-8067
SELECT col0 / 60 / - - 14 FROM tab1 AS cor0 WHERE col0 * + + col2 IN ( + CAST ( NULL AS INTEGER ), col0 )
----

query I rowsort
SELECT - col2 * + - col0 + - ( + col1 ) FROM tab1 AS cor0
----
4882
5010
6141

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT + COUNT( * ) * + + COUNT( * ) AS col1 FROM tab0, tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8069
SELECT + COUNT ( * ) * + + COUNT ( * ) AS col1 FROM tab0, tab2 AS cor0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 34 ) col2 FROM tab1
----
34
34
34

onlyif mysql # DIV for integer division: 
query II rowsort label-8071
SELECT - + col1 DIV + col2 AS col2, + 13 * + col2 FROM tab1 AS cor0
----
0
1248
0
767
0
884

skipif mysql # not compatible
query II rowsort label-8071
SELECT - + col1 / + col2 AS col2, + 13 * + col2 FROM tab1 AS cor0
----
0
1248
0
767
0
884

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 - + 95 - - col0 * - 2 IS NULL
----

query II rowsort
SELECT ALL - + col0 + - - col2 AS col0, col2 FROM tab0 cor0
----
-77
10
2
99
32
47

query I rowsort
SELECT ALL 50 + + col2 + col0 FROM tab0 AS cor0
----
112
147
246

query I rowsort
SELECT 66 FROM tab2 AS cor0 WHERE NULL IS NULL
----
66
66
66

query I rowsort
SELECT ALL col0 + + 72 FROM tab1
----
123
157
163

query I rowsort
SELECT 77 + 61 AS col1 FROM tab2
----
138
138
138

query II rowsort
SELECT + col1 * + + col0 + + col1, col1 AS col1 FROM tab1
----
430
5
4324
47
728
14

query I rowsort
SELECT DISTINCT 77 * + 99 FROM tab2
----
7623

query I rowsort
SELECT col0 + + + col2 + + + 67 AS col2 FROM tab2
----
136
171
200

query I rowsort
SELECT + + 73 AS col0 FROM tab1 WHERE ( col2 ) = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8082
SELECT DISTINCT + col0 * CAST( 64 AS SIGNED ) AS col2 FROM tab1
----
3264
5440
5824

skipif mysql # not compatible
query I rowsort label-8082
SELECT DISTINCT + col0 * CAST ( 64 AS INTEGER ) AS col2 FROM tab1
----
3264
5440
5824

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( - col2 ) NOT BETWEEN - col1 / - 45 + - 45 AND NULL
----

query II rowsort
SELECT + col2, + 98 FROM tab1 AS cor0
----
59
98
68
98
96
98

query I rowsort
SELECT + 91 * col0 * + - ( 9 ) FROM tab1
----
-41769
-69615
-74529

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN + + 20 / + 17 - - + 34 AND + 42
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT ( SUM( + col0 ) ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-8087
SELECT ( SUM ( + col0 ) ) FROM tab0 AS cor0
----
199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( 12 ) col0 FROM tab2 AS cor0
----
-12
-12
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8089
SELECT - 42 * - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8089
SELECT - 42 * - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8090
SELECT + CAST( + + 82 AS SIGNED ), col0 FROM tab0 AS cor0
----
82
15
82
87
82
97

skipif mysql # not compatible
query II rowsort label-8090
SELECT + CAST ( + + 82 AS INTEGER ), col0 FROM tab0 AS cor0
----
82
15
82
87
82
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * + col2 + + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 * - - col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT - col1 * + - col1 * col1 AS col1 FROM tab2 cor0 WHERE - 53 IS NOT NULL
----
132651
300763
456533

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT ALL MIN( + col2 ) AS col0 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-8094
SELECT ALL MIN ( + col2 ) AS col0 FROM tab1 AS cor0
----
59

query II rowsort
SELECT ALL + 10 + + 12, - col1 AS col1 FROM tab2 AS cor0
----
22
-51
22
-67
22
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8096
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE col0 / - CAST( - col0 AS SIGNED ) IS NOT NULL
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-8096
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE col0 / - CAST ( - col0 AS INTEGER ) IS NOT NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8097
SELECT DISTINCT - ( CAST( NULL AS DECIMAL ) ) + col2 + - col2 + + col0 * + col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8097
SELECT DISTINCT - ( CAST ( NULL AS REAL ) ) + col2 + - col2 + + col0 * + col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT ALL MIN( DISTINCT - 70 ) AS col1 FROM tab0
----
-70

skipif mysql # not compatible
query I rowsort label-8098
SELECT ALL MIN ( DISTINCT - 70 ) AS col1 FROM tab0
----
-70

query IIIIII rowsort
SELECT * FROM tab2, tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col1 * - 25 FROM tab0 AS cor0
----
2025
25
525

query I rowsort
SELECT DISTINCT + - ( col1 ) + + col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + col1 + col0 FROM tab1 cor0 WHERE NULL BETWEEN NULL AND - 70
----

query I rowsort
SELECT DISTINCT - 60 AS col2 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
-60

query I rowsort
SELECT ALL - ( + col0 ) + + - col1 AS col2 FROM tab1
----
-138
-65
-90

onlyif mysql # DIV for integer division: 
query II rowsort label-8105
SELECT DISTINCT - ( - col2 ) + - 51 + col0 * + - col0 AS col1, ( + 19 ) DIV + - 62 + 18 + + 7 * + + col1 + + + col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-229
600
-7610
252
-9361
122

skipif mysql # not compatible
query II rowsort label-8105
SELECT DISTINCT - ( - col2 ) + - 51 + col0 * + - col0 AS col1, ( + 19 ) / + - 62 + 18 + + 7 * + + col1 + + + col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-229
600
-7610
252
-9361
122

query I rowsort
SELECT - col0 + 64 AS col1 FROM tab2 AS cor0
----
-11
0
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT - SUM( + 85 ) + - MAX( + col1 ) FROM tab1 cor0
----
-302

skipif mysql # not compatible
query I rowsort label-8107
SELECT - SUM ( + 85 ) + - MAX ( + col1 ) FROM tab1 cor0
----
-302

onlyif mysql # aggregate syntax: 
query I rowsort label-8108
SELECT ALL - MIN( 4 ) * - 97 AS col2 FROM tab0 AS cor0
----
388

skipif mysql # not compatible
query I rowsort label-8108
SELECT ALL - MIN ( 4 ) * - 97 AS col2 FROM tab0 AS cor0
----
388

query I rowsort
SELECT - - col1 * - 15 + - + 27 * - col0 FROM tab2 AS cor0
----
1020
477
573

onlyif mysql # aggregate syntax: 
query I rowsort label-8110
SELECT ALL - + MIN( - 52 ) + - 50 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-8110
SELECT ALL - + MIN ( - 52 ) + - 50 FROM tab1 AS cor0
----
2

query I rowsort
SELECT DISTINCT - col0 * + - 97 AS col0 FROM tab2 AS cor0
----
4462
6208
7275

query I rowsort
SELECT DISTINCT + 26 + - col0 + - 9 FROM tab1 AS cor0
----
-34
-68
-74

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 10 * - + col2 AND + 60
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - + col2 + 22 col2 FROM tab2 WHERE - col2 * col2 IS NULL
----

query I rowsort
SELECT ALL col2 * - 79 FROM tab1
----
-4661
-5372
-7584

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 / + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8117
SELECT DISTINCT col1 DIV + 91 * + 70 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8117
SELECT DISTINCT col1 / + 91 * + 70 AS col0 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8118
SELECT DISTINCT - col1 DIV 55 AS col2, col0 FROM tab2
----
-1
64
-1
75
0
46

skipif mysql # not compatible
query II rowsort label-8118
SELECT DISTINCT - col1 / 55 AS col2, col0 FROM tab2
----
-1
64
-1
75
0
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab2 AS cor0 WHERE NOT ( + 27 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN + ( + col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8121
SELECT DISTINCT - + SUM( - 43 ) FROM tab1 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-8121
SELECT DISTINCT - + SUM ( - 43 ) FROM tab1 AS cor0
----
129

query I rowsort
SELECT ALL AVG ( ALL - col1 ) AS col0 FROM tab0 AS cor0 WHERE 0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT DISTINCT + COUNT( * ) * + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT - 57 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8123
SELECT DISTINCT + COUNT ( * ) * + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - 57 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8124
SELECT COUNT( + ( - col0 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8124
SELECT COUNT ( + ( - col0 ) ) FROM tab0
----
3

query II rowsort
SELECT + 73 * - 34 AS col1, - ( - + ( col0 ) ) + col1 AS col0 FROM tab2
----
-2482
141
-2482
142
-2482
97

query I rowsort
SELECT + col0 AS col2 FROM tab2 WHERE + ( + col2 ) * + 31 <> - 12
----
46
64
75

query I rowsort
SELECT - 40 * col2 * - + col2 FROM tab0
----
392040
4000
88360

query I rowsort
SELECT 86 + col2 + - col1 * + 38 * - ( + 31 ) AS col1 FROM tab1
----
16674
55520
6035

query I rowsort
SELECT + col1 + + + col1 + + col0 * col2 + - 64 FROM tab2
----
1096
2650
4420

query I rowsort
SELECT DISTINCT col0 + - + col0 + + col1 AS col1 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT DISTINCT - - ( + + 87 ) FROM tab2 AS cor0
----
87

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL >= - col0 + - col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 7 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 77 - 11 FROM tab2 AS cor0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT DISTINCT - ( - SUM( col1 ) ) col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8135
SELECT DISTINCT - ( - SUM ( col1 ) ) col1 FROM tab1 AS cor0
----
66

query I rowsort
SELECT - col0 + - - col0 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 63 col0, col2 AS col0 FROM tab2
----
63
23
63
40
63
58

query I rowsort
SELECT ALL - 47 * + col0 AS col1 FROM tab0
----
-4089
-4559
-705

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 WHERE - col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8142
SELECT COUNT( * ) AS col0, COUNT( * ) AS col1 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-8142
SELECT COUNT ( * ) AS col0, COUNT ( * ) AS col1 FROM tab2
----
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8143
SELECT DISTINCT + 21 DIV + col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8143
SELECT DISTINCT + 21 / + col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8144
SELECT ALL + 54 * + MIN( ALL + - col1 ) * - - COUNT( * ) FROM tab0 AS cor0
----
-13122

skipif mysql # not compatible
query I rowsort label-8144
SELECT ALL + 54 * + MIN ( ALL + - col1 ) * - - COUNT ( * ) FROM tab0 AS cor0
----
-13122

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 57 ) > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8146
SELECT ALL - COUNT( * ) DIV + + COUNT( * ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-8146
SELECT ALL - COUNT ( * ) / + + COUNT ( * ) FROM tab1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8147
SELECT - col1 DIV 82 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8147
SELECT - col1 / 82 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT col2 FROM tab2 WHERE NOT - 94 - col1 IS NOT NULL
----

query I rowsort
SELECT + col0 AS col0 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8150
SELECT DISTINCT col0 DIV 44 + + + col1 FROM tab1 AS cor0
----
15
49
6

skipif mysql # not compatible
query I rowsort label-8150
SELECT DISTINCT col0 / 44 + + + col1 FROM tab1 AS cor0
----
15
49
6

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col2 BETWEEN - + col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8152
SELECT DISTINCT + 14 DIV - col2 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8152
SELECT DISTINCT + 14 / - col2 AS col1 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 95 / col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8154
SELECT + MIN( DISTINCT - col1 ) + COUNT( * ) col1 FROM tab2
----
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8154
SELECT + MIN ( DISTINCT - col1 ) + COUNT ( * ) col1 FROM tab2
----
-74

query I rowsort
SELECT - ( + col2 ) + + col2 AS col2 FROM tab2 WHERE NULL IS NULL
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 WHERE NOT - + col0 IS NULL
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8157
SELECT + CAST( + ( - + MIN( + + 62 ) ) AS SIGNED ) * + 36 col2 FROM tab2
----
-2232

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8157
SELECT + CAST ( + ( - + MIN ( + + 62 ) ) AS INTEGER ) * + 36 col2 FROM tab2
----
-2232

query I rowsort
SELECT 59 * col0 FROM tab1 AS cor0
----
3009
5015
5369

query I rowsort
SELECT DISTINCT - 31 + - - 47 FROM tab2 AS cor0
----
16

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 70 IS NOT NULL
----

query I rowsort
SELECT ALL + ( + 80 ) - - - col1 FROM tab0 AS cor0
----
-1
59
79

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 <> - - col1
----

query I rowsort
SELECT - 76 * - 34 * + 21 FROM tab2 AS cor0
----
54264
54264
54264

query III rowsort
SELECT * FROM tab1 WHERE NOT - - ( 36 ) <> + - col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8165
SELECT ALL + MIN( 16 ) * - 37, - COUNT( * ) col1 FROM tab1
----
-592
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8165
SELECT ALL + MIN ( 16 ) * - 37, - COUNT ( * ) col1 FROM tab1
----
-592
-3

query I rowsort
SELECT DISTINCT ( 13 ) FROM tab0
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + + col1 col0 FROM tab1
----
-196
-2209
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8168
SELECT ALL - MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8168
SELECT ALL - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8169
SELECT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8169
SELECT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8170
SELECT * FROM tab0 WHERE NOT CAST( + col1 AS SIGNED ) * - col1 - + col2 * + ( 49 ) + - + col2 + col0 * 95 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8170
SELECT * FROM tab0 WHERE NOT CAST ( + col1 AS INTEGER ) * - col1 - + col2 * + ( 49 ) + - + col2 + col0 * 95 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8171
SELECT ALL ( SUM( - + 12 ) ) AS col1 FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-8171
SELECT ALL ( SUM ( - + 12 ) ) AS col1 FROM tab1
----
-36

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 >= col0
----
51
14
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 38 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT + ( MIN( ALL - col1 ) ) AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8174
SELECT + ( MIN ( ALL - col1 ) ) AS col1 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT ALL - - col1 * + + 57 * - + col2 FROM tab1 AS cor0
----
-16815
-182172
-76608

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8176
SELECT DISTINCT CAST( - col0 AS SIGNED ) col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8176
SELECT DISTINCT CAST ( - col0 AS INTEGER ) col0 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT ALL + col1 * - + 87 AS col2 FROM tab1 AS cor0
----
-1218
-4089
-435

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 <= + 40
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( + col1 ) col1 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT ALL - 64 * SUM( + - 50 ) FROM tab0
----
9600

skipif mysql # not compatible
query I rowsort label-8180
SELECT ALL - 64 * SUM ( + - 50 ) FROM tab0
----
9600

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 <> - col1 * col2
----

query II rowsort
SELECT - 95 AS col1, 37 AS col1 FROM tab1 AS cor0
----
-95
37
-95
37
-95
37

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) <> - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT DISTINCT MAX( ALL - 36 ) FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-8184
SELECT DISTINCT MAX ( ALL - 36 ) FROM tab1 AS cor0
----
-36

query I rowsort
SELECT DISTINCT col0 + - 2 AS col2 FROM tab0 AS cor0
----
13
85
95

query I rowsort
SELECT DISTINCT + - ( - 97 ) + - + col1 * + 64 * + col0 FROM tab2 AS cor0
----
-150047
-315295
-321503

query I rowsort
SELECT ALL - 27 - + col0 FROM tab0
----
-114
-124
-42

query I rowsort
SELECT col0 * 8 + - col1 FROM tab1
----
394
675
681

onlyif mysql # aggregate syntax: 
query I rowsort label-8189
SELECT DISTINCT + COUNT( * ) * - 10 AS col0 FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-8189
SELECT DISTINCT + COUNT ( * ) * - 10 AS col0 FROM tab2 AS cor0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT DISTINCT - + COUNT( * ) * + - 74 FROM tab0 cor0
----
222

skipif mysql # not compatible
query I rowsort label-8190
SELECT DISTINCT - + COUNT ( * ) * + - 74 FROM tab0 cor0
----
222

query I rowsort
SELECT DISTINCT - col2 * - col0 * col1 + - col0 + - col1 FROM tab2
----
196979
291308
53861

query I rowsort
SELECT - col1 - 89 AS col1 FROM tab0
----
-110
-170
-90

query I rowsort
SELECT + col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT NULL NOT IN ( + col2 * col2 + + ( - - 27 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT - 53 - - + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----
-53

skipif mysql # not compatible
query I rowsort label-8194
SELECT - 53 - - + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----
-53

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 6 + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8197
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL IN ( + 3, 70, + CAST( - 67 AS SIGNED ), + col0 * + col1 * + col0 * + - CAST( + col1 AS SIGNED ) + col2 ) )
----

skipif mysql # not compatible
query III rowsort label-8197
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL IN ( + 3, 70, + CAST ( - 67 AS INTEGER ), + col0 * + col1 * + col0 * + - CAST ( + col1 AS INTEGER ) + col2 ) )
----

query I rowsort
SELECT + + ( + + 40 ) AS col2 FROM tab0 AS cor0
----
40
40
40

query I rowsort
SELECT - ( - + col2 ) FROM tab1 cor0
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8200
SELECT col1 DIV + 14 AS col1 FROM tab1 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-8200
SELECT col1 / + 14 AS col1 FROM tab1 AS cor0
----
0
1
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8201
SELECT ALL COUNT( ALL + + CAST( NULL AS SIGNED ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8201
SELECT ALL COUNT ( ALL + + CAST ( NULL AS INTEGER ) ) FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - 34 <= + col1 * - col0 / - col2 + - 79
----
15
81
47
97
1
99

query I rowsort
SELECT DISTINCT + - 1 AS col1 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8204
SELECT - COUNT( - col1 ) * + MAX( ALL + 27 ) FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-8204
SELECT - COUNT ( - col1 ) * + MAX ( ALL + 27 ) FROM tab1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT DISTINCT + 14 + - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
5

skipif mysql # not compatible
query I rowsort label-8205
SELECT DISTINCT + 14 + - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
5

query I rowsort
SELECT + col1 + - - 37 + - - ( - - 72 ) FROM tab1
----
114
123
156

onlyif mysql # aggregate syntax: 
query I rowsort label-8207
SELECT + ( + - COUNT( * ) ) col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8207
SELECT + ( + - COUNT ( * ) ) col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT - 61 + - 27 * + 9 * + col0 AS col1 FROM tab2 AS cor0
----
-11239
-15613
-18286

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8209
SELECT - + CAST( NULL AS SIGNED ) + - + col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8209
SELECT - + CAST ( NULL AS INTEGER ) + - + col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 86 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT ALL - 55 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-8211
SELECT ALL - 55 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-52

query I rowsort
SELECT - col0 + - - 80 AS col2 FROM tab1 AS cor0
----
-11
-5
29

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 / 69 / + col2 + col1 + 26 IS NOT NULL
----

query I rowsort
SELECT - 17 + - + col2 + col1 * 90 FROM tab0 AS cor0
----
-26
1863
7226

onlyif mysql # aggregate syntax: 
query I rowsort label-8215
SELECT DISTINCT + + COUNT( * ) + - 97 AS col1 FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-8215
SELECT DISTINCT + + COUNT ( * ) + - 97 AS col1 FROM tab1 AS cor0
----
-94

query I rowsort
SELECT ALL - col1 + + col1 + col1 FROM tab0 cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8217
SELECT + ( - 48 ) + - MAX( + + col2 ) AS col0 FROM tab1 cor0
----
-144

skipif mysql # not compatible
query I rowsort label-8217
SELECT + ( - 48 ) + - MAX ( + + col2 ) AS col0 FROM tab1 cor0
----
-144

query I rowsort
SELECT DISTINCT 24 + - 23 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8219
SELECT ALL 63 + - - COUNT( * ) AS col0 FROM tab1 WHERE NOT col1 < NULL
----
63

skipif mysql # not compatible
query I rowsort label-8219
SELECT ALL 63 + - - COUNT ( * ) AS col0 FROM tab1 WHERE NOT col1 < NULL
----
63

query I rowsort
SELECT DISTINCT + 25 - - col1 FROM tab0
----
106
26
46

query II rowsort
SELECT ALL + 92 * - col2, + col0 AS col2 FROM tab0
----
-4324
15
-9108
97
-920
87

query I rowsort
SELECT - ( + 16 ) - + - 74 AS col1 FROM tab2 cor0
----
58
58
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8223
SELECT + 83 - + CAST( - 42 AS SIGNED ) FROM tab2 AS cor0
----
125
125
125

skipif mysql # not compatible
query I rowsort label-8223
SELECT + 83 - + CAST ( - 42 AS INTEGER ) FROM tab2 AS cor0
----
125
125
125

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT + - col0 <> - 3 )
----

query I rowsort
SELECT col0 + + - 65 FROM tab2 AS cor0
----
-1
-19
10

query I rowsort
SELECT DISTINCT 16 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8227
SELECT DISTINCT - ( - - MIN( - - col1 ) ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8227
SELECT DISTINCT - ( - - MIN ( - - col1 ) ) FROM tab0
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8228
SELECT + + col0 * + + CAST( NULL AS DECIMAL ), + col0 AS col1 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-8228
SELECT + + col0 * + + CAST ( NULL AS REAL ), + col0 AS col1 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8229
SELECT ALL - col1 DIV + - col0 + + + col0 FROM tab2 AS cor0
----
47
65
75

skipif mysql # not compatible
query I rowsort label-8229
SELECT ALL - col1 / + - col0 + + + col0 FROM tab2 AS cor0
----
47
65
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8230
SELECT ALL - COUNT( + - col2 ) DIV + + 39 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8230
SELECT ALL - COUNT ( + - col2 ) / + + 39 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8231
SELECT DISTINCT - col2 * - col2 FROM tab0 AS cor0 WHERE NOT + col1 * - 17 / col1 * - ( - CAST( - col2 AS SIGNED ) ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-8231
SELECT DISTINCT - col2 * - col2 FROM tab0 AS cor0 WHERE NOT + col1 * - 17 / col1 * - ( - CAST ( - col2 AS INTEGER ) ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8232
SELECT + + CAST( + + 11 AS SIGNED ) FROM tab0 cor0
----
11
11
11

skipif mysql # not compatible
query I rowsort label-8232
SELECT + + CAST ( + + 11 AS INTEGER ) FROM tab0 cor0
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8233
SELECT ALL - 86 * - + 74 * + - COUNT( * ) * + - 23 AS col0 FROM tab0
----
439116

skipif mysql # not compatible
query I rowsort label-8233
SELECT ALL - 86 * - + 74 * + - COUNT ( * ) * + - 23 AS col0 FROM tab0
----
439116

query II rowsort
SELECT DISTINCT 17 AS col1, - col0 FROM tab2
----
17
-46
17
-64
17
-75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 88 * - - col1 - + + col2 <= + - ( - 72 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT DISTINCT - SUM( 14 ) AS col2 FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-8236
SELECT DISTINCT - SUM ( 14 ) AS col2 FROM tab0 AS cor0
----
-42

query II rowsort
SELECT + - col2 AS col1, + 18 AS col0 FROM tab2 AS cor0
----
-23
18
-40
18
-58
18

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col1 ) + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 54 * col1 + col0 FROM tab1
----
2629
355
807

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT + 28 + COUNT( ALL - col0 - col2 ) * MIN( DISTINCT 32 ) FROM tab0
----
124

skipif mysql # not compatible
query I rowsort label-8240
SELECT + 28 + COUNT ( ALL - col0 - col2 ) * MIN ( DISTINCT 32 ) FROM tab0
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT DISTINCT 39 * COUNT( * ) FROM tab0 WHERE col0 IS NOT NULL
----
117

skipif mysql # not compatible
query I rowsort label-8241
SELECT DISTINCT 39 * COUNT ( * ) FROM tab0 WHERE col0 IS NOT NULL
----
117

query I rowsort
SELECT - 63 + 92 * - 61 FROM tab0
----
-5675
-5675
-5675

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT ALL COUNT( * ) AS col0 FROM tab0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8243
SELECT ALL COUNT ( * ) AS col0 FROM tab0 WHERE NOT col0 IS NOT NULL
----
0

query I rowsort
SELECT - 87 - - 14 * + col2 AS col2 FROM tab2
----
235
473
725

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 + col2 / - col0 <= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8246
SELECT - COUNT( * ) + + 16 DIV - MIN( - col1 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8246
SELECT - COUNT ( * ) + + 16 / - MIN ( - col1 ) AS col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8247
SELECT ALL - COUNT( * ) * 27 col1 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8247
SELECT ALL - COUNT ( * ) * 27 col1 FROM tab2 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8248
SELECT + 76 - 4 * COUNT( * ) FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-8248
SELECT + 76 - 4 * COUNT ( * ) FROM tab1
----
64

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8249
SELECT DISTINCT col0 + - col2 DIV + CAST( + 2 DIV col2 + col2 AS SIGNED ) AS col0 FROM tab1
----
50
84
90

skipif mysql # not compatible
query I rowsort label-8249
SELECT DISTINCT col0 + - col2 / + CAST ( + 2 / col2 + col2 AS INTEGER ) AS col0 FROM tab1
----
50
84
90

query I rowsort
SELECT DISTINCT 80 AS col0 FROM tab1 WHERE col0 BETWEEN col2 * + col2 AND NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NULL NOT BETWEEN col1 AND - col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 * + 35 NOT BETWEEN - col0 - - 45 AND NULL
----

query I rowsort
SELECT ALL - col2 / col2 + 77 AS col1 FROM tab0 WHERE NULL NOT BETWEEN 86 AND 20
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8254
SELECT SUM( ALL 29 ) * - 34 FROM tab0
----
-2958

skipif mysql # not compatible
query I rowsort label-8254
SELECT SUM ( ALL 29 ) * - 34 FROM tab0
----
-2958

onlyif mysql # aggregate syntax: 
query I rowsort label-8255
SELECT DISTINCT MIN( ALL col1 ) + 34 FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-8255
SELECT DISTINCT MIN ( ALL col1 ) + 34 FROM tab2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT - 86 + - COUNT( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-89

skipif mysql # not compatible
query I rowsort label-8256
SELECT - 86 + - COUNT ( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-89

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 WHERE ( + col1 ) IS NOT NULL
----
51
85
91

query I rowsort
SELECT - 36 * - 28 AS col1 FROM tab0
----
1008
1008
1008

query I rowsort
SELECT 46 * 99 AS col2 FROM tab0 AS cor0 WHERE col0 IN ( - col0 / - col1 )
----
4554

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 66 / 26 IN ( - 91 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8261
SELECT ALL - 55 DIV 75 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8261
SELECT ALL - 55 / 75 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8262
SELECT ALL + MIN( ALL + CAST( - col0 AS SIGNED ) ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8262
SELECT ALL + MIN ( ALL + CAST ( - col0 AS INTEGER ) ) FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT DISTINCT + MIN( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-8263
SELECT DISTINCT + MIN ( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0
----
46

query I rowsort
SELECT 45 FROM tab0 cor0 CROSS JOIN tab2
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT DISTINCT - SUM( col2 ) * - 62 FROM tab0
----
9672

skipif mysql # not compatible
query I rowsort label-8265
SELECT DISTINCT - SUM ( col2 ) * - 62 FROM tab0
----
9672

query I rowsort
SELECT - 52 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

onlyif mysql # DIV for integer division: 
query I rowsort label-8267
SELECT ALL ( 23 ) DIV + col1 AS col0 FROM tab1 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-8267
SELECT ALL ( 23 ) / + col1 AS col0 FROM tab1 AS cor0
----
0
1
4

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8269
SELECT + col0 DIV 23 AS col2 FROM tab0 AS cor0
----
0
3
4

skipif mysql # not compatible
query I rowsort label-8269
SELECT + col0 / 23 AS col2 FROM tab0 AS cor0
----
0
3
4

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NULL <= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8271
SELECT ALL MAX( + 92 ) FROM tab1 cor0
----
92

skipif mysql # not compatible
query I rowsort label-8271
SELECT ALL MAX ( + 92 ) FROM tab1 cor0
----
92

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( + col2 ) = col1 + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( 9 ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 / - col1 FROM tab2 WHERE NOT + col0 + 60 >= ( col2 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT DISTINCT + 76 * + SUM( DISTINCT 54 ) AS col1 FROM tab2
----
4104

skipif mysql # not compatible
query I rowsort label-8276
SELECT DISTINCT + 76 * + SUM ( DISTINCT 54 ) AS col1 FROM tab2
----
4104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8277
SELECT + CAST( NULL AS SIGNED ) + - 77 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8277
SELECT + CAST ( NULL AS INTEGER ) + - 77 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col1 ) BETWEEN ( + 16 * - col2 ) AND - col2 / col1
----
85
5
59

query I rowsort
SELECT 0 * 64 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8280
SELECT SUM( DISTINCT + 18 ) FROM tab2 WHERE NOT ( NULL ) IN ( + 58 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8280
SELECT SUM ( DISTINCT + 18 ) FROM tab2 WHERE NOT ( NULL ) IN ( + 58 )
----
NULL

query I rowsort
SELECT ( + 34 ) * - ( col0 / + ( col1 / 79 ) ) FROM tab2 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 / + col0 ) NOT IN ( ( col0 ) * col1 )
----

query I rowsort
SELECT DISTINCT - 8 FROM tab1 cor0 WHERE ( 47 ) >= + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab2 AS cor0 WHERE NOT - col0 IN ( ( col0 ) )
----
46
64
75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 67 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NULL ) NOT BETWEEN ( col2 ) AND NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL = NULL
----

query I rowsort
SELECT - + 87 * - 9 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 848ff492b891d623dfe04eb62e848b7d

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 23 IS NOT NULL
----

query I rowsort
SELECT 76 + + - 54 FROM tab1
----
22
22
22

query I rowsort
SELECT 20 * - 79 * + + 73 + + 69 FROM tab0 AS cor0
----
-115271
-115271
-115271

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 / + 78 IS NULL
----

query I rowsort
SELECT ALL - ( - + 77 ) AS col0 FROM tab2 AS cor0
----
77
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8294
SELECT 88 + CAST( NULL AS SIGNED ) * + + AVG ( + col1 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8294
SELECT 88 + CAST ( NULL AS INTEGER ) * + + AVG ( + col1 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 + 56 FROM tab1 AS cor0
----
107
141
147

onlyif mysql # aggregate syntax: 
query I rowsort label-8296
SELECT - 98 + COUNT( * ) - - - MAX( ALL + col1 ) * + 62 FROM tab1 AS cor0
----
-3009

skipif mysql # not compatible
query I rowsort label-8296
SELECT - 98 + COUNT ( * ) - - - MAX ( ALL + col1 ) * + 62 FROM tab1 AS cor0
----
-3009

onlyif mysql # aggregate syntax: 
query I rowsort label-8297
SELECT 24 + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-8297
SELECT 24 + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
27

query I rowsort
SELECT col0 * + - col2 + col2 + + col0 FROM tab0 AS cor0
----
-643
-773
-9407

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8299
SELECT CAST( + COUNT( ALL + col1 ) AS SIGNED ) + - COUNT( ALL col2 - - ( - col2 + col2 * col0 ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8299
SELECT CAST ( + COUNT ( ALL + col1 ) AS INTEGER ) + - COUNT ( ALL col2 - - ( - col2 + col2 * col0 ) ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT col2 * col0 + + + 28 * + 81 AS col1 FROM tab0 cor0
----
11871
2973
3138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8301
SELECT - CAST( NULL AS SIGNED ) + + MIN( ALL col1 ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8301
SELECT - CAST ( NULL AS INTEGER ) + + MIN ( ALL col1 ) AS col2 FROM tab1 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8302
SELECT DISTINCT + col1 * + ( - - 29 ) + - col1 DIV col0 AS col2 FROM tab0 AS cor0
----
2344
29
609

skipif mysql # not compatible
query I rowsort label-8302
SELECT DISTINCT + col1 * + ( - - 29 ) + - col1 / col0 AS col2 FROM tab0 AS cor0
----
2344
29
609

query I rowsort
SELECT ALL + + col1 + - 15 - 94 * 48 FROM tab0 AS cor0
----
-4446
-4506
-4526

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col2 ) NOT BETWEEN - col2 AND ( col1 )
----

query I rowsort
SELECT DISTINCT col2 + col2 + + 64 * - 30 AS col2 FROM tab2 AS cor0
----
-1804
-1840
-1874

query I rowsort
SELECT DISTINCT + - ( + ( 13 ) ) FROM tab0 cor0
----
-13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, col2 col0 FROM tab1 AS cor0
----
14
96
47
68
5
59

query III rowsort
SELECT ALL * FROM tab1 WHERE + - ( col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT DISTINCT + COUNT( * ) - + COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8309
SELECT DISTINCT + COUNT ( * ) - + COUNT ( * ) FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8310
SELECT 91 DIV + col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8310
SELECT 91 / + col2 FROM tab1
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8311
SELECT * FROM tab0 WHERE NULL > - CAST( + - 38 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8311
SELECT * FROM tab0 WHERE NULL > - CAST ( + - 38 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT + COUNT( * ) AS col2 FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8312
SELECT + COUNT ( * ) AS col2 FROM tab1 WHERE NULL IS NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8313
SELECT + CAST( SUM( col1 ) AS SIGNED ) * + 63 AS col2 FROM tab0 WHERE - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8313
SELECT + CAST ( SUM ( col1 ) AS INTEGER ) * + 63 AS col2 FROM tab0 WHERE - col2 IS NULL
----
NULL

query I rowsort
SELECT + col0 * 98 - - - col0 FROM tab1
----
4947
8245
8827

query I rowsort
SELECT col2 * - + 31 - col2 FROM tab2
----
-1280
-1856
-736

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8316
SELECT + col2 * + col2 + - + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8316
SELECT + col2 * + col2 + - + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 28 * - 90 + + 68 FROM tab2 AS cor0
----
-2452
-2452
-2452

onlyif mysql # aggregate syntax: 
query I rowsort label-8318
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( ( NULL ) IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8318
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( ( NULL ) IS NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8319
SELECT DISTINCT + col2 + 20 AS col0 FROM tab2 AS cor0 WHERE ( NULL NOT BETWEEN - CAST( NULL AS SIGNED ) AND ( + col1 * 17 ) )
----

skipif mysql # not compatible
query I rowsort label-8319
SELECT DISTINCT + col2 + 20 AS col0 FROM tab2 AS cor0 WHERE ( NULL NOT BETWEEN - CAST ( NULL AS INTEGER ) AND ( + col1 * 17 ) )
----

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT ALL + col1 * + + 0 * 41 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - ( + 49 ) ) col2 FROM tab0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT + MAX( DISTINCT - col1 ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8323
SELECT + MAX ( DISTINCT - col1 ) AS col1 FROM tab0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT - + 68 AS col0, + ( - + col2 ) col1, + 20 AS col2 FROM tab2 AS cor0
----
9 values hashing to 57882fc192b32ad2315634a5dde0c07a

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8325
SELECT DISTINCT + col2 * 90 - + col2 FROM tab1 AS cor0 WHERE + col2 / + + 21 * CAST( NULL AS SIGNED ) / + 33 + col2 > NULL
----

skipif mysql # not compatible
query I rowsort label-8325
SELECT DISTINCT + col2 * 90 - + col2 FROM tab1 AS cor0 WHERE + col2 / + + 21 * CAST ( NULL AS INTEGER ) / + 33 + col2 > NULL
----

query I rowsort
SELECT + - 3 AS col2 FROM tab2 cor0
----
-3
-3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col0 col2 FROM tab2 AS cor0
----
17
23
24

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 WHERE ( - - ( - 76 ) ) IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8329
SELECT ALL COUNT( * ) DIV 55 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8329
SELECT ALL COUNT ( * ) / 55 FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT 13 * + col2 IN ( + + ( + col2 ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8331
SELECT CAST( - - COUNT( * ) AS SIGNED ) * + 64 AS col0 FROM tab1
----
192

skipif mysql # not compatible
query I rowsort label-8331
SELECT CAST ( - - COUNT ( * ) AS INTEGER ) * + 64 AS col0 FROM tab1
----
192

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8332
SELECT ALL * FROM tab2 WHERE NOT ( - CAST( col1 AS SIGNED ) IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-8332
SELECT ALL * FROM tab2 WHERE NOT ( - CAST ( col1 AS INTEGER ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT 69 * + + COUNT( * ) FROM tab2
----
207

skipif mysql # not compatible
query I rowsort label-8333
SELECT 69 * + + COUNT ( * ) FROM tab2
----
207

query II rowsort
SELECT ALL + col2, + col0 * col2 AS col1 FROM tab0
----
10
870
47
705
99
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + + 51 - + + col0 col0 FROM tab2
----
-18
-53
-82

query II rowsort
SELECT + col2 * + + col2 + - + ( - + 29 ) AS col1, col2 FROM tab1 AS cor0
----
3510
59
4653
68
9245
96

query I rowsort
SELECT - 6 + + col0 FROM tab2 AS cor0
----
40
58
69

query I rowsort
SELECT DISTINCT - - col2 FROM tab1 AS cor0 WHERE col2 * + - col2 + 76 IS NOT NULL
----
59
68
96

query I rowsort
SELECT - 32 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

onlyif mysql # aggregate syntax: 
query I rowsort label-8340
SELECT DISTINCT + COUNT( * ) + COUNT( * ) - - + MAX( DISTINCT 20 ) * - SUM( DISTINCT + - col1 ) col0 FROM tab2
----
3906

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8340
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) - - + MAX ( DISTINCT 20 ) * - SUM ( DISTINCT + - col1 ) col0 FROM tab2
----
3906

onlyif mysql # aggregate syntax: 
query I rowsort label-8341
SELECT ALL 25 * - - COUNT( * ) AS col0 FROM tab0 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8341
SELECT ALL 25 * - - COUNT ( * ) AS col0 FROM tab0 WHERE col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8342
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT - 9 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8342
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - 9 IS NOT NULL
----
0

query I rowsort
SELECT col0 * - - 76 AS col2 FROM tab2 cor0
----
3496
4864
5700

query I rowsort
SELECT DISTINCT - - ( col0 ) + - - col1 AS col0 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT DISTINCT COUNT( ( + col2 ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8345
SELECT DISTINCT COUNT ( ( + col2 ) ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT ALL MAX( + + col0 ) AS col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-8346
SELECT ALL MAX ( + + col0 ) AS col1 FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8347
SELECT COUNT( * ) - - + 17 FROM tab2 cor0
----
20

skipif mysql # not compatible
query I rowsort label-8347
SELECT COUNT ( * ) - - + 17 FROM tab2 cor0
----
20

query II rowsort
SELECT DISTINCT ( - col2 ) AS col0, ( - + 48 ) FROM tab0 cor0 WHERE ( NULL ) >= - col1
----

query II rowsort
SELECT + - 55 + - col2 AS col2, - col2 FROM tab2 AS cor0
----
-113
-58
-78
-23
-95
-40

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT + col0 * 7 * - col1 * ( - col0 ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 NOT IN ( - - col2 + - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8352
SELECT * FROM tab0 WHERE NOT - + col2 * + CAST( NULL AS SIGNED ) + 64 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8352
SELECT * FROM tab0 WHERE NOT - + col2 * + CAST ( NULL AS INTEGER ) + 64 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8353
SELECT ALL + CAST( - + col1 AS SIGNED ) AS col1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-8353
SELECT ALL + CAST ( - + col1 AS INTEGER ) AS col1 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT + col1 * 98 AS col2 FROM tab2 AS cor0
----
4998
6566
7546

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col1 ) < NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( 84 )
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 27 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8358
SELECT COUNT( ALL - - 75 ) DIV MIN( col0 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8358
SELECT COUNT ( ALL - - 75 ) / MIN ( col0 ) AS col1 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 < + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 47 AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

query I rowsort
SELECT - col0 * + 18 AS col0 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8362
SELECT ALL ( + 57 ), + ( + SUM( - 76 ) ) + + - 30 AS col0 FROM tab2 AS cor0
----
57
-258

skipif mysql # not compatible
query II rowsort label-8362
SELECT ALL ( + 57 ), + ( + SUM ( - 76 ) ) + + - 30 AS col0 FROM tab2 AS cor0
----
57
-258

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 NOT BETWEEN ( - + 26 / col2 * - - ( col1 ) ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 20 * + 21 - + 90 col1 FROM tab1 AS cor0
----
330
330
330

query II rowsort
SELECT DISTINCT 56 + + 78 AS col2, - 19 * - col1 FROM tab0 AS cor0
----
134
1539
134
19
134
399

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT - 17 + - COUNT( * ) * - 70 FROM tab0
----
193

skipif mysql # not compatible
query I rowsort label-8366
SELECT - 17 + - COUNT ( * ) * - 70 FROM tab0
----
193

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8368
SELECT - COUNT( ALL + + col1 ) col1 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8368
SELECT - COUNT ( ALL + + col1 ) col1 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT DISTINCT - MAX( DISTINCT - col1 ) FROM tab1 WHERE NOT + col2 NOT BETWEEN + - col1 + + col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8369
SELECT DISTINCT - MAX ( DISTINCT - col1 ) FROM tab1 WHERE NOT + col2 NOT BETWEEN + - col1 + + col1 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT DISTINCT + MIN( ALL - + col0 ) AS col1 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-8370
SELECT DISTINCT + MIN ( ALL - + col0 ) AS col1 FROM tab1
----
-91

query I rowsort
SELECT DISTINCT - 15 + 30 FROM tab0 cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8372
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) NOT IN ( + - col0 / + col1 * - - col1 + - + col0 + + - col2 + + + col1 * - col2 )
----

skipif mysql # not compatible
query III rowsort label-8372
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) NOT IN ( + - col0 / + col1 * - - col1 + - + col0 + + - col2 + + + col1 * - col2 )
----

query I rowsort
SELECT ALL + 12 + - - col0 * - col1 AS col2 FROM tab0 cor0
----
-1203
-1815
-85

query III rowsort
SELECT * FROM tab2 WHERE NULL > ( + + col2 )
----

query I rowsort
SELECT col0 * + col2 + + - col2 FROM tab2 AS cor0
----
1035
2520
4292

query II rowsort
SELECT ALL + 97, col2 FROM tab0 AS cor0
----
97
10
97
47
97
99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL < - 58 + + 17
----

query II rowsort
SELECT ALL + col0 + + 2 + ( - col2 ), 33 AS col0 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT + + col0 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - - ( + 50 ) * - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - ( col1 ) FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8382
SELECT MIN( - - ( + + 10 ) ), MAX( + - 39 ) AS col2 FROM tab0 WHERE NOT NULL <= + 43 / col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8382
SELECT MIN ( - - ( + + 10 ) ), MAX ( + - 39 ) AS col2 FROM tab0 WHERE NOT NULL <= + 43 / col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT DISTINCT 93 * COUNT( * ) * 42 FROM tab0 cor0 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-8383
SELECT DISTINCT 93 * COUNT ( * ) * 42 FROM tab0 cor0 WHERE NOT NULL < NULL
----
0

query I rowsort
SELECT ALL + - col2 * - - 30 FROM tab2 AS cor0 WHERE NOT col0 / - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 63 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
63

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 NOT IN ( - - col1 + - 54 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 * - - 41 AS col2 FROM tab1
----
-1927
-205
-574

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE col0 - - 31 + + col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8388
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE col0 - - 31 + + col1 IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 AS cor0 WHERE + col0 / col0 IS NULL
----

query I rowsort
SELECT ALL + col2 + - - col0 - - 78 * - ( - ( - 22 ) ) * 94 + + 64 AS col1 FROM tab2 cor0
----
-161107
-161136
-161171

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 85 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8392
SELECT DISTINCT + - col1 + + - col0 + col2 - CAST( + - 33 AS SIGNED ) + col1 AS col0 FROM tab1 cor0
----
10
7
78

skipif mysql # not compatible
query I rowsort label-8392
SELECT DISTINCT + - col1 + + - col0 + col2 - CAST ( + - 33 AS INTEGER ) + col1 AS col0 FROM tab1 cor0
----
10
7
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8393
SELECT - CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8393
SELECT - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE - - col0 / - col0 + + 66 * col0 <> col0
----
1
21
81

query I rowsort
SELECT + col1 * col0 * col0 AS col1 FROM tab2
----
107916
315392
376875

query I rowsort
SELECT - 2 * + - col2 AS col2 FROM tab0
----
198
20
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8397
SELECT DISTINCT + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab0 WHERE NOT - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8397
SELECT DISTINCT + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab0 WHERE NOT - col1 IS NULL
----
NULL

query I rowsort
SELECT + col1 * - 70 + + col0 AS col0 FROM tab1
----
-265
-3199
-929

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8399
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 / + CAST( NULL AS SIGNED ) / - col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8399
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 / + CAST ( NULL AS INTEGER ) / - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8400
SELECT - 84 + - COUNT( * ) FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-8400
SELECT - 84 + - COUNT ( * ) FROM tab1 AS cor0
----
-87

query I rowsort
SELECT DISTINCT col1 + col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
162
2
42

query I rowsort
SELECT DISTINCT + col2 * + 73 * - col0 + ( - col1 ) FROM tab2 cor0
----
-186957
-317617
-77285

onlyif mysql # DIV for integer division: 
query I rowsort label-8403
SELECT col2 DIV - - 49 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8403
SELECT col2 / - - 49 FROM tab1
----
1
1
1

query I rowsort
SELECT ALL + ( - + ( - col2 ) ) + + col2 AS col1 FROM tab0
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT + COUNT( * ) - - 74 col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8405
SELECT + COUNT ( * ) - - 74 col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-8406
SELECT ALL + col1 DIV + col0 AS col2 FROM tab2 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8406
SELECT ALL + col1 / + col0 AS col2 FROM tab2 cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8407
SELECT 80 * + COUNT( * ) + COUNT( * ) AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) <> - 67
----
0

skipif mysql # not compatible
query I rowsort label-8407
SELECT 80 * + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) <> - 67
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8408
SELECT DISTINCT + - 9 DIV - + col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8408
SELECT DISTINCT + - 9 / - + col2 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8409
SELECT * FROM tab0 cor0 WHERE NOT + CAST( NULL AS SIGNED ) + + 58 * + ( ( ( - col2 ) ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8409
SELECT * FROM tab0 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + + 58 * + ( ( ( - col2 ) ) ) IS NULL
----

query II rowsort
SELECT ALL 89, col1 + 47 AS col2 FROM tab0 AS cor0
----
89
128
89
48
89
68

query I rowsort
SELECT + col1 * + + ( - col2 ) FROM tab2 AS cor0
----
-1173
-3080
-3886

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 95 IS NOT NULL
----

query I rowsort
SELECT ( - ( - col1 ) ) AS col2 FROM tab1
----
14
47
5

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > - + 75
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8415
SELECT ( + + col0 ) DIV - 55 col2 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8415
SELECT ( + + col0 ) / - 55 col2 FROM tab2
----
-1
-1
0

query I rowsort
SELECT DISTINCT ( 83 ) FROM tab2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT ALL SUM( DISTINCT + ( + + 76 ) ) AS col0 FROM tab1
----
76

skipif mysql # not compatible
query I rowsort label-8417
SELECT ALL SUM ( DISTINCT + ( + + 76 ) ) AS col0 FROM tab1
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8418
SELECT ALL - - col1 * ( - + CAST( NULL AS SIGNED ) ) / - col1 * + - 94 + - col0 AS col2 FROM tab1 WHERE NOT + ( - - col1 ) * + - col0 * + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8418
SELECT ALL - - col1 * ( - + CAST ( NULL AS INTEGER ) ) / - col1 * + - 94 + - col0 AS col2 FROM tab1 WHERE NOT + ( - - col1 ) * + - col0 * + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8419
SELECT + col1 / CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8419
SELECT + col1 / CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT ALL + MAX( DISTINCT + 71 ) FROM tab2
----
71

skipif mysql # not compatible
query I rowsort label-8420
SELECT ALL + MAX ( DISTINCT + 71 ) FROM tab2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8421
SELECT ALL ( MIN( ALL + col1 ) ) AS col2 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-8421
SELECT ALL ( MIN ( ALL + col1 ) ) AS col2 FROM tab2
----
51

query I rowsort
SELECT DISTINCT - - 72 FROM tab0 cor0
----
72

onlyif mysql # DIV for integer division: 
query II rowsort label-8423
SELECT ALL - col1 DIV - col0 AS col1, - col2 + col1 FROM tab0 AS cor0
----
0
-98
0
11
5
34

skipif mysql # not compatible
query II rowsort label-8423
SELECT ALL - col1 / - col0 AS col1, - col2 + col1 FROM tab0 AS cor0
----
0
-98
0
11
5
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8424
SELECT DISTINCT 53 / + CAST( NULL AS SIGNED ), 55 AS col1 FROM tab0 AS cor0
----
NULL
55

skipif mysql # not compatible
query II rowsort label-8424
SELECT DISTINCT 53 / + CAST ( NULL AS INTEGER ), 55 AS col1 FROM tab0 AS cor0
----
NULL
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8425
SELECT DISTINCT 61 DIV + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-8425
SELECT DISTINCT 61 / + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8426
SELECT DISTINCT COUNT( * ) + + - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8426
SELECT DISTINCT COUNT ( * ) + + - COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT - - 80 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT + col1 * - 40 AS col1 FROM tab0 WHERE NOT + ( + - 75 ) <= 52
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8429
SELECT + col1 * col2 * CAST( + + col2 AS SIGNED ) + col1 * col0 * - col1 AS col2 FROM tab0 AS cor0
----
-36267
80514
9704

skipif mysql # not compatible
query I rowsort label-8429
SELECT + col1 * col2 * CAST ( + + col2 AS INTEGER ) + col1 * col0 * - col1 AS col2 FROM tab0 AS cor0
----
-36267
80514
9704

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col0 ) NOT IN ( - col0, - col0, + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8431
SELECT ALL - - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( + col1 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8431
SELECT ALL - - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( + col1 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT ALL + COUNT( * ) + SUM( 26 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8432
SELECT ALL + COUNT ( * ) + SUM ( 26 ) FROM tab0 AS cor0
----
81

query II rowsort
SELECT - - col1 + + - col2 AS col2, - col0 * + col1 AS col0 FROM tab0 AS cor0
----
-98
-97
11
-1827
34
-1215

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8434
SELECT col0 * col0 + + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8434
SELECT col0 * col0 + + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT - COUNT( * ) * + COUNT( * ) + - COUNT( * ) FROM tab1, tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-8435
SELECT - COUNT ( * ) * + COUNT ( * ) + - COUNT ( * ) FROM tab1, tab0 AS cor0
----
-90

query I rowsort
SELECT 26 * - + col1 AS col1 FROM tab0
----
-2106
-26
-546

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT DISTINCT 58 + COUNT( ( + col2 ) ) FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-8437
SELECT DISTINCT 58 + COUNT ( ( + col2 ) ) FROM tab0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT ALL + SUM( + col2 ) col1 FROM tab2
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8438
SELECT ALL + SUM ( + col2 ) col1 FROM tab2
----
121

query I rowsort
SELECT ALL - + col1 * - - col1 FROM tab2 WHERE NOT + - col0 + col2 > + col1
----
-2601
-4489
-5929

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8440
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) NOT IN ( col2 * + col1 / - col1 * + ( - + CAST( NULL AS SIGNED ) ) / 82 )
----

skipif mysql # not compatible
query III rowsort label-8440
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) NOT IN ( col2 * + col1 / - col1 * + ( - + CAST ( NULL AS INTEGER ) ) / 82 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT DISTINCT COUNT( ALL - 72 ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8441
SELECT DISTINCT COUNT ( ALL - 72 ) AS col1 FROM tab0 cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 61 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 88 * col2 + - col1 * 53 * col1 col2, + col0 FROM tab1 AS cor0 WHERE + 73 NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT DISTINCT col1 - 91 AS col1 FROM tab1 AS cor0
----
-44
-77
-86

query I rowsort
SELECT 63 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT - - 7 * - ( - ( - ( + col1 ) ) ) AS col1 FROM tab0 AS cor0
----
-147
-567
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-8447
SELECT ALL - ( + col0 ) DIV - - col1 FROM tab1 AS cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-8447
SELECT ALL - ( + col0 ) / - - col1 FROM tab1 AS cor0
----
-1
-17
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - + col0 col0 FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8449
SELECT ( COUNT( ALL col1 ) ) DIV COUNT( * ) col1 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8449
SELECT ( COUNT ( ALL col1 ) ) / COUNT ( * ) col1 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8450
SELECT ALL COUNT( * ) * - MAX( - - col2 ) FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-8450
SELECT ALL COUNT ( * ) * - MAX ( - - col2 ) FROM tab1
----
-288

onlyif mysql # DIV for integer division: 
query I rowsort label-8451
SELECT DISTINCT - 83 DIV col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-8451
SELECT DISTINCT - 83 / col2 FROM tab1
----
-1
0

query II rowsort
SELECT 83 AS col2, + col1 FROM tab1
----
83
14
83
47
83
5

query I rowsort
SELECT DISTINCT + col1 * - col1 * - 4 AS col2 FROM tab0
----
1764
26244
4

query I rowsort
SELECT DISTINCT col0 * + 59 FROM tab0
----
5133
5723
885

query I rowsort
SELECT + ( col1 ) FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 14 col2 FROM tab1 AS cor0
----
14
14
14

onlyif mysql # DIV for integer division: 
query I rowsort label-8457
SELECT DISTINCT - + col1 DIV col0 + - + 86 AS col1 FROM tab0 cor0
----
-86
-91

skipif mysql # not compatible
query I rowsort label-8457
SELECT DISTINCT - + col1 / col0 + - + 86 AS col1 FROM tab0 cor0
----
-86
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8458
SELECT ALL 4 * col2 * - - col1 + + + CAST( NULL AS SIGNED ) + col2 AS col0, + col2 FROM tab2 cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-8458
SELECT ALL 4 * col2 * - - col1 + + + CAST ( NULL AS INTEGER ) + col2 AS col0, + col2 FROM tab2 cor0
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT col2 * - + col0 + + + 15 AS col0 FROM tab0
----
-690
-855
-9588

onlyif mysql # DIV for integer division: 
query I rowsort label-8460
SELECT - 89 DIV + ( - 69 ) FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8460
SELECT - 89 / + ( - 69 ) FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8461
SELECT ALL + COUNT( * ) DIV + + COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8461
SELECT ALL + COUNT ( * ) / + + COUNT ( * ) FROM tab1
----
1

query I rowsort
SELECT DISTINCT - 11 AS col1 FROM tab1, tab0 AS cor0
----
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 64 col0 FROM tab2 AS cor0 WHERE NOT + 85 IS NOT NULL OR NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8464
SELECT 0 * COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8464
SELECT 0 * COUNT ( * ) FROM tab2 AS cor0
----
0

query II rowsort
SELECT 71, - 46 + + - col2 AS col2 FROM tab2 AS cor0
----
71
-104
71
-69
71
-86

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-8466
SELECT DISTINCT + - col2 AS col2, col1 + col1 + col0 DIV + + 31 FROM tab0 AS cor0 WHERE - 59 + - + CAST( - ( + + col1 ) AS DECIMAL ) IS NOT NULL
----
-10
44
-47
162
-99
5

skipif mysql # not compatible
query II rowsort label-8466
SELECT DISTINCT + - col2 AS col2, col1 + col1 + col0 / + + 31 FROM tab0 AS cor0 WHERE - 59 + - + CAST ( - ( + + col1 ) AS REAL ) IS NOT NULL
----
-10
44
-47
162
-99
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8467
SELECT DISTINCT + 21 + MAX( ALL - 59 ) FROM tab2 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-8467
SELECT DISTINCT + 21 + MAX ( ALL - 59 ) FROM tab2 AS cor0
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8468
SELECT ALL COUNT( * ) - AVG ( + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8468
SELECT ALL COUNT ( * ) - AVG ( + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN 3 AND NULL
----

query I rowsort
SELECT ALL col0 + - 78 + + 92 FROM tab1
----
105
65
99

query I rowsort
SELECT - 55 + + 64 AS col1 FROM tab2
----
9
9
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8472
SELECT - 95 + - 35 DIV + COUNT( * ) - COUNT( * ) FROM tab2
----
-109

skipif mysql # not compatible
query I rowsort label-8472
SELECT - 95 + - 35 / + COUNT ( * ) - COUNT ( * ) FROM tab2
----
-109

query I rowsort
SELECT + col0 + col1 * - - 71 * + 32 AS col1 FROM tab0
----
184047
2369
47799

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8474
SELECT DISTINCT + ( COUNT( * ) ) + CAST( - 54 AS SIGNED ) DIV - 40 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-8474
SELECT DISTINCT + ( COUNT ( * ) ) + CAST ( - 54 AS INTEGER ) / - 40 FROM tab0
----
4

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 <> - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE ( NOT - 57 * col2 > + 11 + + + 7 * - 22 )
----
3

skipif mysql # not compatible
query I rowsort label-8476
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE ( NOT - 57 * col2 > + 11 + + + 7 * - 22 )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8477
SELECT + - 75 DIV 68 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8477
SELECT + - 75 / 68 FROM tab1 AS cor0
----
-1
-1
-1

query II rowsort
SELECT col2, col1 - + + 23 * + col2 AS col1 FROM tab1
----
59
-1352
68
-1517
96
-2194

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8479
SELECT DISTINCT - CAST( - col0 AS SIGNED ) FROM tab2 cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8479
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) FROM tab2 cor0
----
46
64
75

query I rowsort
SELECT ALL - + col1 * - col1 * - 84 FROM tab1 AS cor0
----
-16464
-185556
-2100

onlyif mysql # aggregate syntax: 
query I rowsort label-8481
SELECT DISTINCT - COUNT( * ) + + - 80 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-83

skipif mysql # not compatible
query I rowsort label-8481
SELECT DISTINCT - COUNT ( * ) + + - 80 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-83

query I rowsort
SELECT + 31 FROM tab1 AS cor0 WHERE NOT NULL <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8483
SELECT CAST( + 63 AS SIGNED ) FROM tab2 cor0
----
63
63
63

skipif mysql # not compatible
query I rowsort label-8483
SELECT CAST ( + 63 AS INTEGER ) FROM tab2 cor0
----
63
63
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8484
SELECT - COUNT( * ) DIV + 59 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8484
SELECT - COUNT ( * ) / + 59 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8485
SELECT + + 97 * 35 - CAST( ( - 69 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
3464
3464
3464

skipif mysql # not compatible
query I rowsort label-8485
SELECT + + 97 * 35 - CAST ( ( - 69 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
3464
3464
3464

query I rowsort
SELECT DISTINCT - ( - ( - + col0 ) ) * - col1 * 83 * + 21 AS col0 FROM tab1
----
1244502
740775
7454811

onlyif mysql # DIV for integer division: 
query I rowsort label-8487
SELECT 93 DIV + col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8487
SELECT 93 / + col2 FROM tab1
----
0
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8488
SELECT ALL CAST( NULL AS SIGNED ) AS col1, - 32 DIV + + COUNT( * ) AS col2 FROM tab1, tab1 AS cor0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-8488
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, - 32 / + + COUNT ( * ) AS col2 FROM tab1, tab1 AS cor0
----
NULL
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT - ( + MIN( + col0 ) ) col0 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8489
SELECT - ( + MIN ( + col0 ) ) col0 FROM tab0 AS cor0
----
-15

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL OR + + col1 <= - col0
----

query I rowsort
SELECT + + ( + - col0 ) * + - 56 FROM tab1 AS cor0
----
2856
4760
5096

query I rowsort
SELECT DISTINCT - 7 + + + 40 FROM tab1 cor0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8493
SELECT - col2 * - CAST( 57 AS SIGNED ) * 11 FROM tab0 AS cor0
----
29469
62073
6270

skipif mysql # not compatible
query I rowsort label-8493
SELECT - col2 * - CAST ( 57 AS INTEGER ) * 11 FROM tab0 AS cor0
----
29469
62073
6270

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + + col1 + + col2 col1 FROM tab0 AS cor0
----
198
220
3854

query I rowsort
SELECT ALL 87 * + - col1 FROM tab2
----
-4437
-5829
-6699

query I rowsort
SELECT ALL + col1 / + + col1 / - ( + col0 ) + + col0 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8497
SELECT DISTINCT AVG ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8497
SELECT DISTINCT AVG ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8498
SELECT * FROM tab1 AS cor0 WHERE ( + 22 ) = - ( - - col0 ) + + 65 + ( + col2 ) + - CAST( 9 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8498
SELECT * FROM tab1 AS cor0 WHERE ( + 22 ) = - ( - - col0 ) + + 65 + ( + col2 ) + - CAST ( 9 AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8499
SELECT + col2 DIV - col2 + - col0 FROM tab2 AS cor0
----
-47
-65
-76

skipif mysql # not compatible
query I rowsort label-8499
SELECT + col2 / - col2 + - col0 FROM tab2 AS cor0
----
-47
-65
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT DISTINCT + 42 * - COUNT( * ) FROM tab0 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-8500
SELECT DISTINCT + 42 * - COUNT ( * ) FROM tab0 AS cor0
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT ALL + - COUNT( - + col1 ) + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8501
SELECT ALL + - COUNT ( - + col1 ) + COUNT ( * ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT + - col0 + col1 + + + 17 * - + col2 AS col0 FROM tab1 AS cor0
----
-1083
-1200
-1669

query I rowsort
SELECT ALL col2 + - + 81 AS col2 FROM tab1 AS cor0
----
-13
-22
15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8504
SELECT ALL * FROM tab1 cor0 WHERE - ( 49 ) * 49 <= CAST( - + 78 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8504
SELECT ALL * FROM tab1 cor0 WHERE - ( 49 ) * 49 <= CAST ( - + 78 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8505
SELECT DISTINCT col2 DIV - + col1 DIV - + 1 + - - 99 FROM tab0
----
198
99

skipif mysql # not compatible
query I rowsort label-8505
SELECT DISTINCT col2 / - + col1 / - + 1 + - - 99 FROM tab0
----
198
99

query I rowsort
SELECT ALL + 23 + - - col2 - + col1 AS col2 FROM tab0
----
-11
12
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8507
SELECT ALL CAST( NULL AS SIGNED ) * - + col2 - - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8507
SELECT ALL CAST ( NULL AS INTEGER ) * - + col2 - - col0 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col2 AS col0, col0 AS col0 FROM tab0
----
10
87
47
15
99
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8509
SELECT + col1 DIV + - 86 - + 21 col0 FROM tab1
----
-21
-21
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8509
SELECT + col1 / + - 86 - + 21 col0 FROM tab1
----
-21
-21
-21

query I rowsort
SELECT ALL 5 - + - col0 + col2 AS col0 FROM tab2 AS cor0
----
109
138
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT 76 + + COUNT( * ) FROM tab2 AS cor0 WHERE - ( - col2 ) > - 36
----
79

skipif mysql # not compatible
query I rowsort label-8511
SELECT 76 + + COUNT ( * ) FROM tab2 AS cor0 WHERE - ( - col2 ) > - 36
----
79

query I rowsort
SELECT + 73 * - col2 - + + 17 AS col0 FROM tab2 AS cor0
----
-1696
-2937
-4251

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col0 col1, col1 * 54 FROM tab1 AS cor0
----
51
756
85
270
91
2538

onlyif mysql # DIV for integer division: 
query I rowsort label-8514
SELECT DISTINCT - + col1 DIV - 75 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-8514
SELECT DISTINCT - + col1 / - 75 FROM tab2 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT DISTINCT COUNT( + col2 ) * - + 77 FROM tab0 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-8515
SELECT DISTINCT COUNT ( + col2 ) * - + 77 FROM tab0 AS cor0
----
-231

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col2 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT 48 AS col0 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 + 71 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query II rowsort
SELECT col1 * + col2 AS col2, 45 FROM tab1
----
1344
45
295
45
3196
45

query I rowsort
SELECT ALL 36 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 + - col2 FROM tab1 WHERE - col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 74 <> NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 37 AND - 44
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8524
SELECT - COUNT( ALL col2 ) AS col0, - 43 AS col1 FROM tab1 AS cor0
----
-3
-43

skipif mysql # not compatible
query II rowsort label-8524
SELECT - COUNT ( ALL col2 ) AS col0, - 43 AS col1 FROM tab1 AS cor0
----
-3
-43

query II rowsort
SELECT ALL col1 * - 98, col0 AS col1 FROM tab0 AS cor0
----
-2058
87
-7938
15
-98
97

query I rowsort
SELECT + col1 + - col2 + col0 FROM tab0 WHERE NOT - col0 + - col1 IS NULL
----
-1
49
98

onlyif mysql # DIV for integer division: 
query I rowsort label-8527
SELECT ALL - 90 DIV - col0 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8527
SELECT ALL - 90 / - col0 AS col0 FROM tab2
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8528
SELECT + col2 DIV + + 54 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8528
SELECT + col2 / + + 54 FROM tab2
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8529
SELECT 62 DIV - + 45 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8529
SELECT 62 / - + 45 FROM tab2
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-8530
SELECT + 43 * col2 DIV + 37, col2 AS col1 FROM tab0
----
11
10
115
99
54
47

skipif mysql # not compatible
query II rowsort label-8530
SELECT + 43 * col2 / + 37, col2 AS col1 FROM tab0
----
11
10
115
99
54
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8531
SELECT ( - COUNT( * ) ) DIV - 7 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8531
SELECT ( - COUNT ( * ) ) / - 7 AS col1 FROM tab2
----
0

query II rowsort
SELECT DISTINCT col0 AS col0, - col2 AS col0 FROM tab1
----
51
-96
85
-59
91
-68

query I rowsort
SELECT 73 + - - 31 AS col1 FROM tab2 AS cor0 WHERE + col1 + - col2 NOT BETWEEN col2 / col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( - ( - col1 ) - 86 * + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 44 * + col1 * - col2 col2 FROM tab2 AS cor0
----
135520
170984
51612

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col0 - + col1 * + col0 * col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 30 * 73 + - + col1 AS col1 FROM tab1 AS cor0
----
2143
2176
2185

query I rowsort
SELECT ALL + + col2 * - - 29 AS col2 FROM tab1 AS cor0
----
1711
1972
2784

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT - - COUNT( + 66 ) FROM tab2 AS cor0 WHERE + col2 * + - ( + col2 ) <> 5 + col1
----
3

skipif mysql # not compatible
query I rowsort label-8539
SELECT - - COUNT ( + 66 ) FROM tab2 AS cor0 WHERE + col2 * + - ( + col2 ) <> 5 + col1
----
3

query I rowsort
SELECT DISTINCT - col0 * - col1 + col2 AS col2 FROM tab0 AS cor0
----
1262
1837
196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8541
SELECT DISTINCT - + COUNT( * ) DIV 74 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8541
SELECT DISTINCT - + COUNT ( * ) / 74 AS col0 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 7 IS NULL
----

query I rowsort
SELECT + col1 * col1 + + - ( - col2 ) AS col2 FROM tab0 AS cor0
----
100
451
6608

query I rowsort
SELECT + + col0 * col2 + + 73 FROM tab2 AS cor0
----
1131
2633
4423

onlyif mysql # aggregate syntax: 
query I rowsort label-8545
SELECT ALL - COUNT( * ) + 62 FROM tab2 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-8545
SELECT ALL - COUNT ( * ) + 62 FROM tab2 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT 54 + COUNT( * ) FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-8546
SELECT 54 + COUNT ( * ) FROM tab2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8547
SELECT DISTINCT - MAX( - + col0 ) * - 23 + - ( + 20 ) - - COUNT( * ) + + + 4 * - + COUNT( * ) * - - 70 AS col2 FROM tab1 WHERE NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8547
SELECT DISTINCT - MAX ( - + col0 ) * - 23 + - ( + 20 ) - - COUNT ( * ) + + + 4 * - + COUNT ( * ) * - - 70 AS col2 FROM tab1 WHERE NULL <> NULL
----
NULL

query II rowsort
SELECT DISTINCT 48 * + col2 + + - col1, - col2 AS col1 FROM tab1
----
2827
-59
3217
-68
4594
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - 15 col2 FROM tab0
----
0
72
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 69 - + - 90 + + col0 + col2 col0 FROM tab2
----
228
263
292

query I rowsort
SELECT DISTINCT + 55 - - col1 AS col1 FROM tab2
----
106
122
132

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8552
SELECT DISTINCT ( CAST( NULL AS DECIMAL ) ) - + - ( + 89 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8552
SELECT DISTINCT ( CAST ( NULL AS REAL ) ) - + - ( + 89 ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL col2 * col1 * - 36 - - 96 FROM tab1
----
-10524
-114960
-48288

onlyif mysql # DIV for integer division: 
query I rowsort label-8554
SELECT DISTINCT - col1 DIV + - col0 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8554
SELECT DISTINCT - col1 / + - col0 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8555
SELECT - CAST( + + COUNT( * ) AS SIGNED ) col0 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8555
SELECT - CAST ( + + COUNT ( * ) AS INTEGER ) col0 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT - - 25 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
25

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < - 82 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8558
SELECT + MIN( ALL + + col0 ) AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) NOT IN ( + + 25 - 37 * - - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8558
SELECT + MIN ( ALL + + col0 ) AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) NOT IN ( + + 25 - 37 * - - col0 )
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND 20
----

query I rowsort
SELECT + col2 * - + col0 AS col0 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query II rowsort label-8561
SELECT DISTINCT - - COUNT( * ), COUNT( * ) AS col0 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8561
SELECT DISTINCT - - COUNT ( * ), COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3
3

query I rowsort
SELECT ALL - col0 * - - ( - ( - + col2 ) ) * + + col1 FROM tab2 AS cor0
----
-197120
-291450
-53958

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT - - 57 + + MIN( ALL + - col1 ) FROM tab1 cor0
----
10

skipif mysql # not compatible
query I rowsort label-8563
SELECT - - 57 + + MIN ( ALL + - col1 ) FROM tab1 cor0
----
10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( 3 ) IS NOT NULL
----

query I rowsort
SELECT 94 * - col2 + ( + - col2 ) AS col0 FROM tab0
----
-4465
-9405
-950

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 42 * - col0 * col2 col1 FROM tab2
----
-107520
-182700
-44436

query I rowsort
SELECT DISTINCT 20 * col1 FROM tab0
----
1620
20
420

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE + col2 IN ( - col1, + ( - col1 ), - 50 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col0 ) <= - ( 22 )
----

query II rowsort
SELECT DISTINCT 58 + + - col0, + ( col2 ) - 97 + - col1 * - 36 AS col0 FROM tab0 AS cor0
----
-29
669
-39
38
43
2866

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE 70 - - 38 IS NULL
----

query I rowsort
SELECT ALL ( + + 63 ) FROM tab0
----
63
63
63

query I rowsort
SELECT + ( - col0 ) + + col0 * - - col2 FROM tab2 AS cor0
----
1012
2496
4275

query I rowsort
SELECT ALL + col2 * + col1 * - - 27 AS col1 FROM tab0 AS cor0
----
102789
2673
5670

onlyif mysql # DIV for integer division: 
query I rowsort label-8575
SELECT DISTINCT + + ( + col0 ) DIV - 36 - - 51 + - col0 FROM tab2 AS cor0
----
-14
-26
4

skipif mysql # not compatible
query I rowsort label-8575
SELECT DISTINCT + + ( + col0 ) / - 36 - - 51 + - col0 FROM tab2 AS cor0
----
-14
-26
4

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 12 ) + + col1 col0 FROM tab1 AS cor0
----
17
26
59

onlyif mysql # DIV for integer division: 
query I rowsort label-8578
SELECT + ( + - col0 ) DIV - 33 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-8578
SELECT + ( + - col0 ) / - 33 FROM tab2 AS cor0
----
1
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL + 11 * - - 53 + - ( - 54 ) + - 23 - + - col2 + - ( + 45 ) AS col2, 13 FROM tab2 AS cor0
----
592
13
609
13
627
13

onlyif mysql # aggregate syntax: 
query II rowsort label-8581
SELECT - ( - COUNT( * ) ), COUNT( * ) AS col1 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-8581
SELECT - ( - COUNT ( * ) ), COUNT ( * ) AS col1 FROM tab2
----
3
3

query I rowsort
SELECT ALL - ( + col2 ) + + col2 * + 64 AS col1 FROM tab2
----
1449
2520
3654

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8583
SELECT ALL - CAST( NULL AS SIGNED ) * - - 7 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8583
SELECT ALL - CAST ( NULL AS INTEGER ) * - - 7 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 45 * ( + + col1 ) AS col1 FROM tab0
----
-3645
-45
-945

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 / - + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 48 AS col2 FROM tab1 cor0
----
48

query I rowsort
SELECT 9 * - 43 AS col1 FROM tab0
----
-387
-387
-387

onlyif mysql # aggregate syntax: 
query II rowsort label-8588
SELECT DISTINCT + + MAX( DISTINCT + ( + col0 ) ), 28 * - 74 AS col2 FROM tab2 AS cor0
----
75
-2072

skipif mysql # not compatible
query II rowsort label-8588
SELECT DISTINCT + + MAX ( DISTINCT + ( + col0 ) ), 28 * - 74 AS col2 FROM tab2 AS cor0
----
75
-2072

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8589
SELECT * FROM tab1 AS cor0 WHERE NOT col2 BETWEEN NULL AND ( - + 44 ) + + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-8589
SELECT * FROM tab1 AS cor0 WHERE NOT col2 BETWEEN NULL AND ( - + 44 ) + + CAST ( NULL AS REAL )
----

query I rowsort
SELECT ALL AVG ( ALL - - 89 ) FROM tab0 AS cor0 WHERE + col1 * - col2 NOT BETWEEN NULL AND NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab0 AS cor0 WHERE NOT - col2 - 71 IS NULL
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN col0 * - - col1 AND + - 78
----

query I rowsort
SELECT ALL 3 + - col1 FROM tab2
----
-48
-64
-74

query I rowsort
SELECT ALL - + ( + - col2 ) + + col1 FROM tab2 WHERE NOT ( NOT NULL <> + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT + COUNT( ALL - + col1 ) + - 59 AS col0 FROM tab0
----
-56

skipif mysql # not compatible
query I rowsort label-8595
SELECT + COUNT ( ALL - + col1 ) + - 59 AS col0 FROM tab0
----
-56

query I rowsort
SELECT - 78 AS col1 FROM tab2 WHERE - col1 IS NOT NULL
----
-78
-78
-78

query I rowsort
SELECT ALL col0 + + + 79 AS col0 FROM tab2 AS cor0
----
125
143
154

query I rowsort
SELECT DISTINCT - 41 + - + 24 * - col2 AS col1 FROM tab1 AS cor0
----
1375
1591
2263

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT MAX( + - col1 ) col0 FROM tab2
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8599
SELECT MAX ( + - col1 ) col0 FROM tab2
----
-51

query II rowsort
SELECT DISTINCT - col2 - - col0, col0 AS col1 FROM tab1
----
-45
51
23
91
26
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT - - ( - 19 ) + - - 79 + ( 80 ) * - - 82 * COUNT( * ) * - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-58980

skipif mysql # not compatible
query I rowsort label-8601
SELECT - - ( - 19 ) + - - 79 + ( 80 ) * - - 82 * COUNT ( * ) * - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-58980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8602
SELECT - MAX( DISTINCT CAST( - col0 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8602
SELECT - MAX ( DISTINCT CAST ( - col0 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
51

query I rowsort
SELECT - ( + - col1 ) * - - col1 FROM tab2 AS cor0
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-8604
SELECT MAX( DISTINCT - col1 ) AS col1 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8604
SELECT MAX ( DISTINCT - col1 ) AS col1 FROM tab0 cor0
----
-1

query II rowsort
SELECT DISTINCT 22 AS col2, col0 FROM tab1
----
22
51
22
85
22
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT MIN( ALL - + col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-8606
SELECT MIN ( ALL - + col0 ) FROM tab0
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 84 col2 FROM tab1
----
-84
-84
-84

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT + + col1 <> col1 - + col1 + + col0 * ( - 5 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 48 NOT BETWEEN NULL AND col1
----

query II rowsort
SELECT col0, 98 + - ( - col0 ) * - - col0 AS col0 FROM tab1
----
51
2699
85
7323
91
8379

query I rowsort
SELECT ALL + 11 FROM tab1 WHERE + 78 < NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 80 * - col0 <= col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 * + col0 * 87 AS col0 FROM tab0
----
61335
75690
835461

query I rowsort
SELECT - 28 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8616
SELECT ALL 55 DIV ( + - COUNT( * ) ) FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-8616
SELECT ALL 55 / ( + - COUNT ( * ) ) FROM tab0
----
-18

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT + 51 IS NOT NULL
----

query I rowsort
SELECT - 22 + + col0 FROM tab1 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8619
SELECT - col1 + - col2 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8619
SELECT - col1 + - col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8620
SELECT + ( - col2 ) * - + 86 + + - col1 DIV - + col0 AS col1 FROM tab1 cor0
----
5074
5848
8256

skipif mysql # not compatible
query I rowsort label-8620
SELECT + ( - col2 ) * - + 86 + + - col1 / - + col0 AS col1 FROM tab1 cor0
----
5074
5848
8256

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8621
SELECT - CAST( - 23 AS SIGNED ) + + col1 FROM tab0 cor0
----
104
24
44

skipif mysql # not compatible
query I rowsort label-8621
SELECT - CAST ( - 23 AS INTEGER ) + + col1 FROM tab0 cor0
----
104
24
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8622
SELECT - + 63 + + 15 + - COUNT( * ) FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8622
SELECT - + 63 + + 15 + - COUNT ( * ) FROM tab0 AS cor0
----
-51

query II rowsort
SELECT - col2 + + 8 AS col2, col0 * col2 FROM tab1 AS cor0
----
-51
5015
-60
6188
-88
4896

query III rowsort
SELECT * FROM tab2 WHERE 8 * - col2 BETWEEN NULL AND col2
----

query I rowsort
SELECT col2 + col1 + - col0 - + col0 + 43 * + 31 FROM tab0
----
1190
1239
1431

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8626
SELECT * FROM tab0 WHERE - - 99 BETWEEN - col0 AND + col2 * - CAST( - col2 AS SIGNED ) + col0 * 65
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8626
SELECT * FROM tab0 WHERE - - 99 BETWEEN - col0 AND + col2 * - CAST ( - col2 AS INTEGER ) + col0 * 65
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE - - col1 * + ( + - col2 ) / 96 + - col1 + + col0 / + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8628
SELECT ALL CAST( NULL AS SIGNED ) / + ( + - col0 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8628
SELECT ALL CAST ( NULL AS INTEGER ) / + ( + - col0 ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col0 FROM tab1 WHERE NOT col0 IS NULL
----
59
68
96

query I rowsort
SELECT DISTINCT 43 + col2 AS col2 FROM tab0 AS cor0
----
142
53
90

query I rowsort
SELECT - 23 - 69 FROM tab2 AS cor0
----
-92
-92
-92

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 WHERE + + 63 = - - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 col1 FROM tab0 WHERE ( - + col0 * 57 ) IS NOT NULL
----
66
66
66

query I rowsort
SELECT DISTINCT - 48 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-48

query I rowsort
SELECT + col2 * + - ( - col0 ) AS col0 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-8637
SELECT - - MIN( + 95 ) * 82 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8637
SELECT - - MIN ( + 95 ) * 82 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

query II rowsort
SELECT ALL col2, + 52 AS col0 FROM tab2 AS cor0
----
23
52
40
52
58
52

query I rowsort
SELECT + ( - - 25 ) AS col1 FROM tab0 AS cor0
----
25
25
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col2 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 cor0 WHERE NOT - 56 >= + - col1
----
-1
-21

query I rowsort
SELECT DISTINCT - 85 / + 10 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT 38 * - col0 IS NULL )
----

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT ( NOT 78 IS NULL )
----

query II rowsort
SELECT ALL - 50 * 63 AS col0, + col1 AS col0 FROM tab0
----
-3150
1
-3150
21
-3150
81

query I rowsort
SELECT + 55 / + col0 - + col0 + - + col1 FROM tab1 WHERE NOT - 77 IS NOT NULL
----

query I rowsort
SELECT - 5 * + - col0 AS col0 FROM tab1
----
255
425
455

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 * - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT + MAX( ALL - col2 ) FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-8649
SELECT + MAX ( ALL - col2 ) FROM tab1 cor0
----
-59

query I rowsort
SELECT ALL - col0 + + + col1 * + col0 FROM tab1 AS cor0
----
340
4186
663

query I rowsort
SELECT DISTINCT - col0 * - - col1 * + 45 + - + 97 AS col1 FROM tab0 AS cor0
----
-4462
-54772
-82312

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8653
SELECT - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NULL NOT IN ( - ( - + col1 ), col2 + 82, - + col2, col1 + - col0, + col2 + - - 35, - col1, col0 )
----

skipif mysql # not compatible
query I rowsort label-8653
SELECT - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL NOT IN ( - ( - + col1 ), col2 + 82, - + col2, col1 + - col0, + col2 + - - 35, - col1, col0 )
----

query I rowsort
SELECT ALL - - 90 FROM tab2 AS cor0 WHERE - 86 > NULL
----

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE col2 * col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT ALL - COUNT( DISTINCT + - ( col1 ) ) + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8656
SELECT ALL - COUNT ( DISTINCT + - ( col1 ) ) + COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 26 + - col2 FROM tab1 cor0
----
-122
-85
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT ALL - COUNT( * ) + + ( 40 ) FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-8658
SELECT ALL - COUNT ( * ) + + ( 40 ) FROM tab1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT DISTINCT + MIN( - col0 ) + - + SUM( + - col0 ) * + + 41 AS col0 FROM tab0
----
8062

skipif mysql # not compatible
query I rowsort label-8659
SELECT DISTINCT + MIN ( - col0 ) + - + SUM ( + - col0 ) * + + 41 AS col0 FROM tab0
----
8062

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8660
SELECT ALL - 16 - + SUM( ALL + col2 ) + + - MAX( ALL + 4 ) DIV COUNT( ALL - - col1 ) - - 27 FROM tab2
----
-111

skipif mysql # not compatible
query I rowsort label-8660
SELECT ALL - 16 - + SUM ( ALL + col2 ) + + - MAX ( ALL + 4 ) / COUNT ( ALL - - col1 ) - - 27 FROM tab2
----
-111

query III rowsort
SELECT ALL * FROM tab1 WHERE + 57 / + 3 - - - col2 + - ( col2 ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8662
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS DECIMAL ) NOT BETWEEN NULL AND col1
----

skipif mysql # not compatible
query III rowsort label-8662
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS REAL ) NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL + 6 - + col1 FROM tab0
----
-15
-75
5

query I rowsort
SELECT ALL - 88 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT - 45 * COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 * col2 >= - col1
----
0

skipif mysql # not compatible
query I rowsort label-8665
SELECT - 45 * COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 * col2 >= - col1
----
0

query I rowsort
SELECT - col2 AS col2 FROM tab0 AS cor0 WHERE NOT - 7 IS NULL
----
-10
-47
-99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 / col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col2 * - col0 * - 68 * - - 76 AS col1, col1 AS col2 FROM tab1
----
25302528
14
25917520
5
31979584
47

query II rowsort
SELECT + 24, 36 - 84 AS col1 FROM tab2
----
24
-48
24
-48
24
-48

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8670
SELECT DISTINCT + 51 AS col2, + col0 * + col0 * CAST( NULL AS DECIMAL ) * + - col1 / - col2 AS col2 FROM tab1
----
51
NULL

skipif mysql # not compatible
query II rowsort label-8670
SELECT DISTINCT + 51 AS col2, + col0 * + col0 * CAST ( NULL AS REAL ) * + - col1 / - col2 AS col2 FROM tab1
----
51
NULL

query II rowsort
SELECT col0, - col1 * ( + - 36 ) * col1 AS col0 FROM tab2 AS cor0
----
46
93636
64
213444
75
161604

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT ALL 72 + COUNT( * ) + 5 * + + SUM( 16 ) AS col1 FROM tab1 AS cor0
----
315

skipif mysql # not compatible
query I rowsort label-8672
SELECT ALL 72 + COUNT ( * ) + 5 * + + SUM ( 16 ) AS col1 FROM tab1 AS cor0
----
315

query I rowsort
SELECT DISTINCT - 15 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-15

query I rowsort
SELECT col0 * - 19 AS col0 FROM tab2
----
-1216
-1425
-874

onlyif mysql # aggregate syntax: 
query I rowsort label-8675
SELECT 94 * COUNT( DISTINCT col1 ) * + + 51 AS col1 FROM tab2
----
14382

skipif mysql # not compatible
query I rowsort label-8675
SELECT 94 * COUNT ( DISTINCT col1 ) * + + 51 AS col1 FROM tab2
----
14382

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8676
SELECT ALL + + CAST( - 68 AS SIGNED ) * col0 AS col2 FROM tab0 cor0
----
-1020
-5916
-6596

skipif mysql # not compatible
query I rowsort label-8676
SELECT ALL + + CAST ( - 68 AS INTEGER ) * col0 AS col2 FROM tab0 cor0
----
-1020
-5916
-6596

onlyif mysql # aggregate syntax: 
query I rowsort label-8677
SELECT + + 96 * - COUNT( * ) + + - 23 AS col0 FROM tab2 cor0
----
-311

skipif mysql # not compatible
query I rowsort label-8677
SELECT + + 96 * - COUNT ( * ) + + - 23 AS col0 FROM tab2 cor0
----
-311

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( col0 ) * - - 18 + - 69 <> + - col2 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 18 * col1 AS col1 FROM tab2 AS cor0
----
-1206
-1386
-918

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8680
SELECT ALL + col1 + - CAST( NULL AS DECIMAL ), col0 AS col2 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-8680
SELECT ALL + col1 + - CAST ( NULL AS REAL ), col0 AS col2 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT + col2 + - col0 + + + 47 + 26 FROM tab2 AS cor0
----
49
50
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT + MIN( - col2 ) + ( + 94 ) AS col0 FROM tab1 cor0
----
-2

skipif mysql # not compatible
query I rowsort label-8682
SELECT + MIN ( - col2 ) + ( + 94 ) AS col0 FROM tab1 cor0
----
-2

query I rowsort
SELECT ALL - 78 + - col0 FROM tab1 AS cor0
----
-129
-163
-169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8684
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 33 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8684
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 33 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - col2 * col1 + ( + - col2 ) + 43 AS col2 FROM tab2 AS cor0
----
1193
3083
3871

query I rowsort
SELECT DISTINCT 81 AS col1 FROM tab2, tab2 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT ALL - COUNT( * ) * COUNT( * ) * 39 AS col1 FROM tab1
----
-351

skipif mysql # not compatible
query I rowsort label-8687
SELECT ALL - COUNT ( * ) * COUNT ( * ) * 39 AS col1 FROM tab1
----
-351

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - 60 col1 FROM tab0 AS cor0
----
-13
-50
39

query I rowsort
SELECT ALL - + 61 * col1 FROM tab0 AS cor0
----
-1281
-4941
-61

query II rowsort
SELECT ALL + - col2, col0 * - col2 AS col0 FROM tab0 AS cor0
----
-10
-870
-47
-705
-99
-9603

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= ( col1 )
----

query I rowsort
SELECT - col0 + 98 FROM tab1
----
13
47
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8693
SELECT - 25 + + COUNT( * ) AS col1 FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-8693
SELECT - 25 + + COUNT ( * ) AS col1 FROM tab1
----
-22

query I rowsort
SELECT - col2 / col2 AS col0 FROM tab0 WHERE NULL NOT IN ( + col2 + 12 / - col2 )
----

query I rowsort
SELECT + 15 + col1 AS col0 FROM tab1
----
20
29
62

query I rowsort
SELECT DISTINCT 66 AS col1 FROM tab1 WHERE NOT 65 - - col1 NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col2 NOT BETWEEN col0 + col2 AND 37 * 66 + + 36
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 * + 70 = + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8699
SELECT - col0 FROM tab2 WHERE NOT ( col0 * col1 + - col2 ) >= - ( + CAST( col0 AS SIGNED ) ) / + col1
----

skipif mysql # not compatible
query I rowsort label-8699
SELECT - col0 FROM tab2 WHERE NOT ( col0 * col1 + - col2 ) >= - ( + CAST ( col0 AS INTEGER ) ) / + col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col2 ) BETWEEN + col0 AND NULL
----
87
21
10

query I rowsort
SELECT col1 + - 17 AS col2 FROM tab2
----
34
50
60

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 WHERE NOT ( NULL ) IN ( + col1 )
----

query I rowsort
SELECT ALL 10 AS col1 FROM tab1 WHERE - col1 + - col1 IS NOT NULL
----
10
10
10

query I rowsort
SELECT DISTINCT col2 - 9 * col2 FROM tab0
----
-376
-792
-80

query I rowsort
SELECT ALL + 77 AS col1 FROM tab1 WHERE ( NULL ) IS NULL
----
77
77
77

query I rowsort
SELECT ALL 39 * 89 - 89 FROM tab1
----
3382
3382
3382

query I rowsort
SELECT 87 + 20 * + col1 FROM tab2 WHERE col2 + col2 * col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8708
SELECT ALL 19 + col0 * + CAST( + 88 AS SIGNED ) FROM tab2
----
4067
5651
6619

skipif mysql # not compatible
query I rowsort label-8708
SELECT ALL 19 + col0 * + CAST ( + 88 AS INTEGER ) FROM tab2
----
4067
5651
6619

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8709
SELECT ALL - AVG ( col2 ) AS col1 FROM tab1 WHERE + ( CAST( - col0 AS SIGNED ) ) + ( + col2 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8709
SELECT ALL - AVG ( col2 ) AS col1 FROM tab1 WHERE + ( CAST ( - col0 AS INTEGER ) ) + ( + col2 ) IS NULL
----
NULL

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 WHERE NOT ( ( + col1 ) ) NOT BETWEEN ( 56 ) AND col1
----
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8711
SELECT ALL + SUM( - CAST( - 84 AS SIGNED ) ) AS col1 FROM tab2
----
252

skipif mysql # not compatible
query I rowsort label-8711
SELECT ALL + SUM ( - CAST ( - 84 AS INTEGER ) ) AS col1 FROM tab2
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT - MAX( ALL - 22 ) AS col2 FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-8712
SELECT - MAX ( ALL - 22 ) AS col2 FROM tab0
----
22

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 54 NOT BETWEEN col1 - 72 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8714
SELECT col1 DIV + col2 - + col2 DIV + col1 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-8714
SELECT col1 / + col2 - + col2 / + col1 FROM tab2
----
1
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8715
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( - CAST( col2 AS SIGNED ) + + col0 )
----

skipif mysql # not compatible
query III rowsort label-8715
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( - CAST ( col2 AS INTEGER ) + + col0 )
----

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE - col1 > - col0 + 33 / 96
----
-67

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 - col0 * + col1 > + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( - col0 )
----

query I rowsort
SELECT DISTINCT + 95 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col0 * col0 FROM tab0 cor0 WHERE NOT 56 / + ( 59 * 87 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 26 + + col0 FROM tab1 AS cor0
----
111
117
77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 76 NOT BETWEEN 77 AND NULL
----

query I rowsort
SELECT 83 * 70 FROM tab2
----
5810
5810
5810

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT - 24 * - SUM( DISTINCT col1 + col2 ) FROM tab2 AS cor0
----
7584

skipif mysql # not compatible
query I rowsort label-8725
SELECT - 24 * - SUM ( DISTINCT col1 + col2 ) FROM tab2 AS cor0
----
7584

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8727
SELECT ALL + COUNT( * ) * ( + COUNT( * ) * + COUNT( * ) ) FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-8727
SELECT ALL + COUNT ( * ) * ( + COUNT ( * ) * + COUNT ( * ) ) FROM tab0 AS cor0
----
27

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN ( 45 ) AND + 8 + 14 * - col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8729
SELECT ALL - - ( 41 ) + CAST( + 44 AS SIGNED ) DIV - 71 FROM tab2 AS cor0
----
41
41
41

skipif mysql # not compatible
query I rowsort label-8729
SELECT ALL - - ( 41 ) + CAST ( + 44 AS INTEGER ) / - 71 FROM tab2 AS cor0
----
41
41
41

query I rowsort
SELECT DISTINCT + - 96 * - col2 + + col1 AS col0 FROM tab1 AS cor0
----
5669
6575
9230

query I rowsort
SELECT ALL + + 92 + col1 FROM tab1 AS cor0
----
106
139
97

query I rowsort
SELECT ALL + 90 * - 90 + - col2 FROM tab1 AS cor0
----
-8159
-8168
-8196

query I rowsort
SELECT + 66 + - - col2 AS col1 FROM tab0
----
113
165
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8734
SELECT DISTINCT - COUNT( * ) + 87 - ( + 48 ) FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-8734
SELECT DISTINCT - COUNT ( * ) + 87 - ( + 48 ) FROM tab0
----
36

query I rowsort
SELECT ALL 45 + - col0 + + col1 FROM tab0
----
-21
-51
111

onlyif mysql # DIV for integer division: 
query I rowsort label-8736
SELECT - col2 + ( col1 ) DIV + ( + col2 ) AS col0 FROM tab0
----
-46
-8
-99

skipif mysql # not compatible
query I rowsort label-8736
SELECT - col2 + ( col1 ) / + ( + col2 ) AS col0 FROM tab0
----
-46
-8
-99

query I rowsort
SELECT + 97 + col1 AS col2 FROM tab2
----
148
164
174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8738
SELECT + ( COUNT( * ) ) * + 72 AS col2 FROM tab2 WHERE col0 NOT BETWEEN - CAST( + col1 AS SIGNED ) * - 89 AND ( + col2 )
----
216

skipif mysql # not compatible
query I rowsort label-8738
SELECT + ( COUNT ( * ) ) * + 72 AS col2 FROM tab2 WHERE col0 NOT BETWEEN - CAST ( + col1 AS INTEGER ) * - 89 AND ( + col2 )
----
216

query I rowsort
SELECT + 64 + + + col2 * + col1 AS col1 FROM tab2
----
1237
3144
3950

query III rowsort
SELECT * FROM tab2 WHERE + 32 * col2 + 16 * + 5 NOT BETWEEN 18 + 87 AND 56 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT DISTINCT - COUNT( * ) - - + COUNT( * ) * MIN( ALL - col2 ) AS col0 FROM tab0
----
-300

skipif mysql # not compatible
query I rowsort label-8741
SELECT DISTINCT - COUNT ( * ) - - + COUNT ( * ) * MIN ( ALL - col2 ) AS col0 FROM tab0
----
-300

query I rowsort
SELECT ALL - col0 * col1 AS col0 FROM tab2 WHERE NOT + col2 NOT IN ( - col2 * col0 - col2 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT DISTINCT MIN( DISTINCT 8 ) AS col2 FROM tab0 WHERE NULL >= - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8743
SELECT DISTINCT MIN ( DISTINCT 8 ) AS col2 FROM tab0 WHERE NULL >= - col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT DISTINCT - - COUNT( + + col0 ) * 44 FROM tab1 cor0
----
132

skipif mysql # not compatible
query I rowsort label-8744
SELECT DISTINCT - - COUNT ( + + col0 ) * 44 FROM tab1 cor0
----
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8745
SELECT ALL - col2 * + CAST( + col1 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT + 7 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8745
SELECT ALL - col2 * + CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT + 7 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT ALL COUNT( * ) * + ( + COUNT( ALL col1 ) ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8746
SELECT ALL COUNT ( * ) * + ( + COUNT ( ALL col1 ) ) FROM tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT - + 90 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT ALL + SUM( - ( + + ( ( - col1 ) ) ) ) AS col1 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-8748
SELECT ALL + SUM ( - ( + + ( ( - col1 ) ) ) ) AS col1 FROM tab0 AS cor0
----
103

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT ( - ( + 75 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT ALL - SUM( - + 94 ) AS col0 FROM tab2 cor0
----
282

skipif mysql # not compatible
query I rowsort label-8750
SELECT ALL - SUM ( - + 94 ) AS col0 FROM tab2 cor0
----
282

query I rowsort
SELECT 87 FROM tab1 AS cor0 WHERE NOT 58 - 77 IS NULL
----
87
87
87

query I rowsort
SELECT DISTINCT + 90 FROM tab0 AS cor0 WHERE NOT ( + col2 ) IS NULL
----
90

query I rowsort
SELECT + + col0 * - - col1 AS col2 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8754
SELECT DISTINCT - col0 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + - col2 + ( - 82 ) )
----

skipif mysql # not compatible
query I rowsort label-8754
SELECT DISTINCT - col0 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + - col2 + ( - 82 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8755
SELECT DISTINCT 86 * - CAST( NULL AS SIGNED ) * + CAST( + 75 AS SIGNED ) + + ( + 24 - + CAST( 45 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8755
SELECT DISTINCT 86 * - CAST ( NULL AS INTEGER ) * + CAST ( + 75 AS INTEGER ) + + ( + 24 - + CAST ( 45 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8756
SELECT + + 14 DIV - + 29 + + 73 + col1 * col2 + - 1 * col2 FROM tab0 AS cor0
----
273
3833
73

skipif mysql # not compatible
query I rowsort label-8756
SELECT + + 14 / - + 29 + + 73 + col1 * col2 + - 1 * col2 FROM tab0 AS cor0
----
273
3833
73

query I rowsort
SELECT col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL AND NOT col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8758
SELECT + col1 DIV + col2 + col0 AS col0 FROM tab0
----
16
89
97

skipif mysql # not compatible
query I rowsort label-8758
SELECT + col1 / + col2 + col0 AS col0 FROM tab0
----
16
89
97

query I rowsort
SELECT + col2 + - + 27 FROM tab1
----
32
41
69

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) BETWEEN col2 AND NULL
----

query I rowsort
SELECT 87 AS col0 FROM tab1 WHERE NOT - 23 > NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 21 <> ( - + col2 + 49 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT COUNT( * ) * + 61 FROM tab2 WHERE NOT - col1 * + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8763
SELECT COUNT ( * ) * + 61 FROM tab2 WHERE NOT - col1 * + col1 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8764
SELECT ALL - col0 DIV 8 AS col1 FROM tab1
----
-10
-11
-6

skipif mysql # not compatible
query I rowsort label-8764
SELECT ALL - col0 / 8 AS col1 FROM tab1
----
-10
-11
-6

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - col1 / - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8766
SELECT - - 92 DIV - col0 AS col2 FROM tab0 AS cor0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-8766
SELECT - - 92 / - col0 AS col2 FROM tab0 AS cor0
----
-1
-6
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT ALL COUNT( * ) + - 7 FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-8767
SELECT ALL COUNT ( * ) + - 7 FROM tab0 AS cor0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT DISTINCT - MAX( col2 ) + 86 FROM tab1 AS cor0 WHERE NOT col2 >= ( + + col1 * - - 30 )
----
-10

skipif mysql # not compatible
query I rowsort label-8768
SELECT DISTINCT - MAX ( col2 ) + 86 FROM tab1 AS cor0 WHERE NOT col2 >= ( + + col1 * - - 30 )
----
-10

query I rowsort
SELECT ALL - col0 + - + col1 FROM tab2 AS cor0
----
-141
-142
-97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * + col2 * + col2 NOT BETWEEN - 69 AND ( NULL )
----

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE ( 62 * - - 10 / + col0 ) < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col2 * - - 18 + 90 * - col1 BETWEEN - 35 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8773
SELECT + COUNT( - col2 ) + - SUM( ALL - col1 ) AS col2 FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-8773
SELECT + COUNT ( - col2 ) + - SUM ( ALL - col1 ) AS col2 FROM tab2
----
198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8774
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) + SUM( ALL 55 ) AS col0 FROM tab2 AS cor0 WHERE NOT 95 + ( 32 ) + - 76 * - 16 * + 81 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8774
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) + SUM ( ALL 55 ) AS col0 FROM tab2 AS cor0 WHERE NOT 95 + ( 32 ) + - 76 * - 16 * + 81 <= NULL
----
NULL

query I rowsort
SELECT ( - col2 ) * + - col1 + col0 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * - + col1 FROM tab2 cor0
----
-2346
-4928
-5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 93 + - col1 + + col0 * - 87 col2 FROM tab1 AS cor0
----
-4358
-7307
-7871

query I rowsort
SELECT col0 + col2 + - col1 * col1 AS col1 FROM tab1 AS cor0
----
-2050
-49
119

query I rowsort
SELECT - 65 + - col1 AS col1 FROM tab0 AS cor0
----
-146
-66
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8780
SELECT + CAST( + + col0 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-8780
SELECT + CAST ( + + col0 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
15
87
97

query I rowsort
SELECT + col0 * + + 0 + - - 69 + 84 AS col1 FROM tab2 AS cor0
----
153
153
153

query I rowsort
SELECT - col2 / - col2 FROM tab2 AS cor0 WHERE ( col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8783
SELECT DISTINCT - col0 + + - CAST( 63 AS SIGNED ) + + CAST( + 43 AS SIGNED ) FROM tab0 AS cor0
----
-107
-117
-35

skipif mysql # not compatible
query I rowsort label-8783
SELECT DISTINCT - col0 + + - CAST ( 63 AS INTEGER ) + + CAST ( + 43 AS INTEGER ) FROM tab0 AS cor0
----
-107
-117
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8784
SELECT + 53 DIV + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-8784
SELECT + 53 / + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-17

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( - col0 ) NOT BETWEEN NULL AND ( + col2 / + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 42 * - col2 IS NULL
----

query I rowsort
SELECT DISTINCT + 79 + - - col0 AS col1 FROM tab1
----
130
164
170

onlyif mysql # aggregate syntax: 
query I rowsort label-8788
SELECT ALL COUNT( * ) * - - 70 * 74 FROM tab0 WHERE - col0 IS NOT NULL
----
15540

skipif mysql # not compatible
query I rowsort label-8788
SELECT ALL COUNT ( * ) * - - 70 * 74 FROM tab0 WHERE - col0 IS NOT NULL
----
15540

query II rowsort
SELECT 71, + col1 AS col0 FROM tab2
----
71
51
71
67
71
77

query I rowsort
SELECT + 43 * - col0 FROM tab2 AS cor0
----
-1978
-2752
-3225

onlyif mysql # aggregate syntax: 
query II rowsort label-8791
SELECT DISTINCT COUNT( * ) AS col0, - COUNT( * ) * - 36 FROM tab1 AS cor0
----
3
108

skipif mysql # not compatible
query II rowsort label-8791
SELECT DISTINCT COUNT ( * ) AS col0, - COUNT ( * ) * - 36 FROM tab1 AS cor0
----
3
108

onlyif mysql # aggregate syntax: 
query II rowsort label-8792
SELECT DISTINCT COUNT( * ), COUNT( * ) AS col1 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8792
SELECT DISTINCT COUNT ( * ), COUNT ( * ) AS col1 FROM tab2 AS cor0
----
3
3

query I rowsort
SELECT ALL col0 * - 27 AS col1 FROM tab0 AS cor0
----
-2349
-2619
-405

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8795
SELECT COUNT( * ) * 92 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8795
SELECT COUNT ( * ) * 92 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8796
SELECT - col0 DIV + 47 AS col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8796
SELECT - col0 / + 47 AS col0 FROM tab2
----
-1
-1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8797
SELECT - MAX( DISTINCT + ( CAST( NULL AS SIGNED ) ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8797
SELECT - MAX ( DISTINCT + ( CAST ( NULL AS INTEGER ) ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8798
SELECT DISTINCT - CAST( + col2 AS SIGNED ), - col2 - + col1 + + + col1 + + 95 + - - 88 * ( col1 * - 54 ) AS col1 FROM tab1 AS cor0
----
-59
-23724
-68
-223317
-96
-66529

skipif mysql # not compatible
query II rowsort label-8798
SELECT DISTINCT - CAST ( + col2 AS INTEGER ), - col2 - + col1 + + + col1 + + 95 + - - 88 * ( col1 * - 54 ) AS col1 FROM tab1 AS cor0
----
-59
-23724
-68
-223317
-96
-66529

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8799
SELECT DISTINCT CAST( 67 AS SIGNED ), col2 AS col2 FROM tab1 AS cor0
----
67
59
67
68
67
96

skipif mysql # not compatible
query II rowsort label-8799
SELECT DISTINCT CAST ( 67 AS INTEGER ), col2 AS col2 FROM tab1 AS cor0
----
67
59
67
68
67
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT ALL SUM( - 62 ) AS col1 FROM tab1 AS cor0 WHERE col2 < - col1 * + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8800
SELECT ALL SUM ( - 62 ) AS col1 FROM tab1 AS cor0 WHERE col2 < - col1 * + col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8801
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * col1 > NULL
----

skipif mysql # not compatible
query III rowsort label-8801
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * col1 > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= 89 * - - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 49 col1 FROM tab0 WHERE NOT + col2 <> NULL
----

query I rowsort
SELECT DISTINCT - col0 + - col2 * 51 FROM tab1 WHERE NOT col2 NOT BETWEEN ( - col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT SUM( + - 47 ) FROM tab1
----
-141

skipif mysql # not compatible
query I rowsort label-8805
SELECT SUM ( + - 47 ) FROM tab1
----
-141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8806
SELECT DISTINCT CAST( NULL AS SIGNED ) / - col2 * + - 69 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8806
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - col2 * + - 69 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8807
SELECT * FROM tab2 WHERE - col2 IN ( - 8, - CAST( NULL AS SIGNED ) + - col1 )
----

skipif mysql # not compatible
query III rowsort label-8807
SELECT * FROM tab2 WHERE - col2 IN ( - 8, - CAST ( NULL AS INTEGER ) + - col1 )
----

query II rowsort
SELECT DISTINCT col0 AS col2, - col1 + - 34 AS col2 FROM tab2 AS cor0
----
46
-85
64
-111
75
-101

query I rowsort
SELECT ALL + + ( + col1 ) + - + col0 FROM tab1 AS cor0
----
-37
-44
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 24 + - col1 + ( + 41 ) * 27 + col2 col2 FROM tab0 AS cor0
----
1097
1120
1229

query I rowsort
SELECT - 95 + - + 23 + + col2 AS col1 FROM tab1 AS cor0
----
-22
-50
-59

query II rowsort
SELECT DISTINCT - 32 - col2 + - col0, col1 * - 87 * col0 AS col2 FROM tab1 AS cor0
----
-176
-36975
-179
-62118
-191
-372099

query I rowsort
SELECT DISTINCT + col2 + - 69 AS col2 FROM tab2 AS cor0
----
-11
-29
-46

query III rowsort
SELECT ALL * FROM tab0 WHERE + 26 * - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 - + col1 AS col2 FROM tab1 cor0
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT ALL COUNT( * ) AS col0 FROM tab0 cor0 WHERE NOT NULL IN ( + 7 + col2 * + col2, col2 )
----
0

skipif mysql # not compatible
query I rowsort label-8816
SELECT ALL COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NOT NULL IN ( + 7 + col2 * + col2, col2 )
----
0

query I rowsort
SELECT DISTINCT 5 FROM tab1 AS cor0 WHERE NOT col0 * + col0 * - + 62 IN ( + col0 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT + COUNT( + 19 ) AS col0 FROM tab0 cor0 WHERE + col1 + + col1 >= + - 5
----
3

skipif mysql # not compatible
query I rowsort label-8818
SELECT + COUNT ( + 19 ) AS col0 FROM tab0 cor0 WHERE + col1 + + col1 >= + - 5
----
3

query I rowsort
SELECT + col2 + + ( + col2 ) AS col2 FROM tab1 AS cor0
----
118
136
192

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 4 IS NULL
----

query I rowsort
SELECT ALL 56 + + col2 * - col2 + + 57 AS col2 FROM tab0 AS cor0
----
-2096
-9688
13

query II rowsort
SELECT ALL 23 - + + col1, col2 FROM tab2 AS cor0
----
-28
23
-44
58
-54
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8823
SELECT - col1 * - col2 + + CAST( - col0 AS SIGNED ) FROM tab0
----
123
2
3792

skipif mysql # not compatible
query I rowsort label-8823
SELECT - col1 * - col2 + + CAST ( - col0 AS INTEGER ) FROM tab0
----
123
2
3792

query I rowsort
SELECT ( 84 ) FROM tab2
----
84
84
84

query II rowsort
SELECT + col2 AS col1, - 73 FROM tab2
----
23
-73
40
-73
58
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-8826
SELECT DISTINCT MIN( ALL + 32 ) AS col1 FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-8826
SELECT DISTINCT MIN ( ALL + 32 ) AS col1 FROM tab2
----
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col1 ) col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT + SUM( - col2 ) * - COUNT( * ) FROM tab0 AS cor0
----
468

skipif mysql # not compatible
query I rowsort label-8828
SELECT + SUM ( - col2 ) * - COUNT ( * ) FROM tab0 AS cor0
----
468

onlyif mysql # aggregate syntax: 
query I rowsort label-8829
SELECT ALL ( - MAX( DISTINCT - ( col0 ) ) ) AS col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-8829
SELECT ALL ( - MAX ( DISTINCT - ( col0 ) ) ) AS col1 FROM tab2 AS cor0
----
46

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 * col2 + - - col0 * 12 * col2 IS NULL
----

query II rowsort
SELECT - 85 AS col0, 1 * + col0 + 54 FROM tab2
----
-85
100
-85
118
-85
129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8832
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8832
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - - col1 AS col2 FROM tab2 AS cor0 WHERE + 46 * + col0 - - col1 IS NULL
----

query II rowsort
SELECT + + col2, col0 AS col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

query II rowsort
SELECT + 47 + - + col0, col1 AS col2 FROM tab1 AS cor0
----
-38
5
-4
14
-44
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8836
SELECT DISTINCT - 19 + - MIN( + col2 ) FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-8836
SELECT DISTINCT - 19 + - MIN ( + col2 ) FROM tab2 AS cor0
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-8837
SELECT DISTINCT 6 DIV + + col1 + + col0 FROM tab1
----
51
86
91

skipif mysql # not compatible
query I rowsort label-8837
SELECT DISTINCT 6 / + + col1 + + col0 FROM tab1
----
51
86
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT ALL + COUNT( * ) * - - ( + + 87 ) AS col2 FROM tab0
----
261

skipif mysql # not compatible
query I rowsort label-8838
SELECT ALL + COUNT ( * ) * - - ( + + 87 ) AS col2 FROM tab0
----
261

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8840
SELECT DISTINCT - SUM( ALL 97 ) AS col2 FROM tab1
----
-291

skipif mysql # not compatible
query I rowsort label-8840
SELECT DISTINCT - SUM ( ALL 97 ) AS col2 FROM tab1
----
-291

query I rowsort
SELECT ALL - col1 AS col0 FROM tab2 cor0 WHERE NULL IS NULL
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query II rowsort label-8842
SELECT DISTINCT 89 * + col0, ( 41 ) * col2 DIV + 89 + + col1 + - ( 15 ) + col0 - - 12 * - - 54 AS col0 FROM tab2 AS cor0
----
4094
740
5696
792
6675
801

skipif mysql # not compatible
query II rowsort label-8842
SELECT DISTINCT 89 * + col0, ( 41 ) * col2 / + 89 + + col1 + - ( 15 ) + col0 - - 12 * - - 54 AS col0 FROM tab2 AS cor0
----
4094
740
5696
792
6675
801

query I rowsort
SELECT - 69 - - col0 + + 2 AS col1 FROM tab1 AS cor0
----
-16
18
24

query I rowsort
SELECT + 73 + - col2 FROM tab0 AS cor0
----
-26
26
63

query II rowsort
SELECT ALL + ( - col1 ) * + col1, + col0 FROM tab0 WHERE + 92 IN ( + col1, + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8846
SELECT DISTINCT - 24 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-8846
SELECT DISTINCT - 24 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-72

query I rowsort
SELECT ALL + - col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT - - col0 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT ALL + 74 - - COUNT( * ) FROM tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8848
SELECT ALL + 74 - - COUNT ( * ) FROM tab1 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT + - MAX( ALL - - col1 ) AS col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-8849
SELECT + - MAX ( ALL - - col1 ) AS col1 FROM tab2 AS cor0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8850
SELECT + CAST( NULL AS SIGNED ) * - + 12 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8850
SELECT + CAST ( NULL AS INTEGER ) * - + 12 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8851
SELECT + 87 AS col1, COUNT( * ) col1 FROM tab1 AS cor0
----
87
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8851
SELECT + 87 AS col1, COUNT ( * ) col1 FROM tab1 AS cor0
----
87
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 49 NOT BETWEEN NULL AND - - 3
----

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE + col2 >= + col2 + + col1
----

query I rowsort
SELECT DISTINCT - - col0 * - 58 AS col2 FROM tab1 AS cor0
----
-2958
-4930
-5278

query I rowsort
SELECT - ( + + 99 ) FROM tab1 AS cor0
----
-99
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8856
SELECT ALL - + MIN( + col0 ) AS col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8856
SELECT ALL - + MIN ( + col0 ) AS col2 FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8857
SELECT - SUM( DISTINCT + col2 ) col0 FROM tab0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8857
SELECT - SUM ( DISTINCT + col2 ) col0 FROM tab0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT DISTINCT SUM( ALL col2 ) AS col1 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-8858
SELECT DISTINCT SUM ( ALL col2 ) AS col1 FROM tab2
----
121

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 > col2
----
15
81
47
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 26 col0 FROM tab0 AS cor0
----
-26
-26
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8861
SELECT DISTINCT - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8861
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT - MIN( DISTINCT + - 15 ) AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-8862
SELECT - MIN ( DISTINCT + - 15 ) AS col1 FROM tab0
----
15

query I rowsort
SELECT ALL 12 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT ALL - - 21 + 1 FROM tab1 AS cor0
----
22
22
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8865
SELECT ALL - - CAST( + - col1 AS SIGNED ) + - + 3 col1, col0 FROM tab0 cor0
----
-24
87
-4
97
-84
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8865
SELECT ALL - - CAST ( + - col1 AS INTEGER ) + - + 3 col1, col0 FROM tab0 cor0
----
-24
87
-4
97
-84
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE - 25 + + col0 + 16 - + 87 + + - 47 / + col2 * - 83 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8866
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE - 25 + + col0 + 16 - + 87 + + - 47 / + col2 * - 83 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8867
SELECT + CAST( NULL AS SIGNED ) + - col0 AS col2 FROM tab1 WHERE - col0 * + + 4 - - + 78 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8867
SELECT + CAST ( NULL AS INTEGER ) + - col0 AS col2 FROM tab1 WHERE - col0 * + + 4 - - + 78 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT DISTINCT COUNT( - 35 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8868
SELECT DISTINCT COUNT ( - 35 ) FROM tab0
----
3

query I rowsort
SELECT ALL 6 * + 62 * - - 66 * - col2 * + - col1 FROM tab2
----
28799496
75620160
95409072

onlyif mysql # DIV for integer division: 
query I rowsort label-8870
SELECT ALL + ( - 90 ) DIV + col2 AS col0 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8870
SELECT ALL + ( - 90 ) / + col2 AS col0 FROM tab1
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8871
SELECT + 38 * - + CAST( NULL AS SIGNED ) + - 91 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8871
SELECT + 38 * - + CAST ( NULL AS INTEGER ) + - 91 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-8872
SELECT - COUNT( * ) - - + COUNT( * ) col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8872
SELECT - COUNT ( * ) - - + COUNT ( * ) col2 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8873
SELECT ALL - CAST( + - COUNT( * ) AS SIGNED ) DIV + 80 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8873
SELECT ALL - CAST ( + - COUNT ( * ) AS INTEGER ) / + 80 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 / + 41 NOT BETWEEN + col1 AND + col1 + - - 37
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8875
SELECT ALL - - ( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8875
SELECT ALL - - ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 92 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8877
SELECT - CAST( - + col2 AS SIGNED ), col1 FROM tab2 cor0
----
23
51
40
77
58
67

skipif mysql # not compatible
query II rowsort label-8877
SELECT - CAST ( - + col2 AS INTEGER ), col1 FROM tab2 cor0
----
23
51
40
77
58
67

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 8 / - 1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8879
SELECT ALL + - ( + 34 ) DIV col1 * + + col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8879
SELECT ALL + - ( + 34 ) / col1 * + + col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT DISTINCT COUNT( + 10 ) * + COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8880
SELECT DISTINCT COUNT ( + 10 ) * + COUNT ( * ) FROM tab1 AS cor0
----
9

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT NULL > col1 )
----

query I rowsort
SELECT - 85 * - 56 FROM tab1, tab0 AS cor0
----
9 values hashing to df802575cc88e4569822578f52716a87

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - ( - col2 ) ) <= - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 * + 21 col0 FROM tab1
----
1638
1638
1638

query II rowsort
SELECT ALL + 26 AS col1, col1 + col0 + - col0 * - 48 AS col1 FROM tab0
----
26
4284
26
4754
26
816

query I rowsort
SELECT ALL - col2 * + - 53 FROM tab1
----
3127
3604
5088

query I rowsort
SELECT ALL - ( + 76 ) FROM tab1 AS cor0
----
-76
-76
-76

query I rowsort
SELECT ALL + + col1 + - + 43 AS col2 FROM tab1 AS cor0
----
-29
-38
4

query II rowsort
SELECT DISTINCT col0 AS col2, col2 * - col1 AS col1 FROM tab1 AS cor0 WHERE - col1 * + col2 + col0 IS NULL OR - - 75 - + col0 BETWEEN + col1 AND ( - - col2 )
----
51
-1344

query I rowsort
SELECT DISTINCT + - 70 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8891
SELECT ( + 99 ) DIV - col2 FROM tab0
----
-1
-2
-9

skipif mysql # not compatible
query I rowsort label-8891
SELECT ( + 99 ) / - col2 FROM tab0
----
-1
-2
-9

query III rowsort
SELECT * FROM tab1 WHERE NULL <> - col0 * + col0
----

query I rowsort
SELECT + col0 + + + 78 AS col2 FROM tab1 cor0
----
129
163
169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8894
SELECT ALL - - ( + 90 ) * - - CAST( NULL AS SIGNED ) * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8894
SELECT ALL - - ( + 90 ) * - - CAST ( NULL AS INTEGER ) * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + - col0 * + col2 FROM tab0 cor0
----
-752
-880
-9702

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8896
SELECT DISTINCT MAX( DISTINCT + CAST( NULL AS SIGNED ) ) col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8896
SELECT DISTINCT MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8897
SELECT DISTINCT - 99 * + - COUNT( * ) + + + 44 col0 FROM tab0 cor0
----
341

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8897
SELECT DISTINCT - 99 * + - COUNT ( * ) + + + 44 col0 FROM tab0 cor0
----
341

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8898
SELECT CAST( NULL AS DECIMAL ) + + col2 AS col0, col0 * 24 - col2 FROM tab2 AS cor0
----
NULL
1081
NULL
1496
NULL
1742

skipif mysql # not compatible
query II rowsort label-8898
SELECT CAST ( NULL AS REAL ) + + col2 AS col0, col0 * 24 - col2 FROM tab2 AS cor0
----
NULL
1081
NULL
1496
NULL
1742

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT DISTINCT - MIN( DISTINCT - - col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8899
SELECT DISTINCT - MIN ( DISTINCT - - col1 ) FROM tab0 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( - - col2 ) > - + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 1 + - col2 AS col0 FROM tab1 AS cor0
----
-58
-67
-95

query I rowsort
SELECT ALL + + col0 AS col1 FROM tab0 WHERE NOT 85 * + - col2 < col0 * + col1 + col1 OR NOT col0 IN ( + col0, col2 )
----

query I rowsort
SELECT DISTINCT - 75 - - - col0 * - + 58 FROM tab2
----
2593
3637
4275

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT - MAX( col1 ) AS col2 FROM tab0 WHERE col0 IS NOT NULL
----
-81

skipif mysql # not compatible
query I rowsort label-8904
SELECT - MAX ( col1 ) AS col2 FROM tab0 WHERE col0 IS NOT NULL
----
-81

query I rowsort
SELECT DISTINCT 51 - - + ( - col1 ) + + 63 FROM tab1
----
100
109
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 89 col1 FROM tab0
----
-89
-89
-89

query I rowsort
SELECT + 48 - col2 FROM tab1 AS cor0
----
-11
-20
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-8908
SELECT ALL - - 87 * + 52 * - MAX( DISTINCT - + col2 ) + ( COUNT( * ) ) AS col0, + 76 FROM tab1 AS cor0
----
266919
76

skipif mysql # not compatible
query II rowsort label-8908
SELECT ALL - - 87 * + 52 * - MAX ( DISTINCT - + col2 ) + ( COUNT ( * ) ) AS col0, + 76 FROM tab1 AS cor0
----
266919
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8909
SELECT 33 + - COUNT( * ) FROM tab2 cor0
----
30

skipif mysql # not compatible
query I rowsort label-8909
SELECT 33 + - COUNT ( * ) FROM tab2 cor0
----
30

query II rowsort
SELECT 65, - col1 AS col1 FROM tab1
----
65
-14
65
-47
65
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-8911
SELECT COUNT( * ) AS col1, 67 AS col2 FROM tab0 AS cor0
----
3
67

skipif mysql # not compatible
query II rowsort label-8911
SELECT COUNT ( * ) AS col1, 67 AS col2 FROM tab0 AS cor0
----
3
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, - 29 AS col1 FROM tab2 AS cor0
----
46
-29
64
-29
75
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-8913
SELECT - col2 DIV - - col1 AS col0 FROM tab1 AS cor0
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-8913
SELECT - col2 / - - col1 AS col0 FROM tab1 AS cor0
----
-1
-11
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col0, - 50 col0 FROM tab1 AS cor0
----
-59
-50
-68
-50
-96
-50

query II rowsort
SELECT ALL + col1 AS col2, col0 * + 43 FROM tab1 AS cor0
----
14
2193
47
3913
5
3655

query II rowsort
SELECT ALL - col0, + col0 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8917
SELECT DISTINCT 8 * + CAST( NULL AS SIGNED ) AS col0, col2 col0 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8917
SELECT DISTINCT 8 * + CAST ( NULL AS INTEGER ) AS col0, col2 col0 FROM tab2
----
NULL
23
NULL
40
NULL
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8918
SELECT ALL - AVG ( ALL 60 ) * - - AVG ( col2 ) * - COUNT( * ) * + COUNT( * ) AS col2 FROM tab1 WHERE NOT - + CAST( NULL AS SIGNED ) <= - col0 / - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-8918
SELECT ALL - AVG ( ALL 60 ) * - - AVG ( col2 ) * - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1 WHERE NOT - + CAST ( NULL AS INTEGER ) <= - col0 / - 34
----
NULL

query I rowsort
SELECT DISTINCT + 89 AS col0 FROM tab0 WHERE NOT - ( - col0 ) IS NULL
----
89

query I rowsort
SELECT ALL 42 * + 14 FROM tab0
----
588
588
588

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8921
SELECT ALL col1 col2 FROM tab2 WHERE NULL NOT IN ( CAST( NULL AS SIGNED ), + 96 + col2 * + col1, - col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8921
SELECT ALL col1 col2 FROM tab2 WHERE NULL NOT IN ( CAST ( NULL AS INTEGER ), + 96 + col2 * + col1, - col1 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) IN ( + - col2 - - - col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8923
SELECT - 36 + + ( + CAST( - 61 AS DECIMAL ) ) / col0 + + - 79, + col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) < NULL
----

skipif mysql # not compatible
query II rowsort label-8923
SELECT - 36 + + ( + CAST ( - 61 AS REAL ) ) / col0 + + - 79, + col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT ALL 53 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8925
SELECT ALL + col0 AS col2, - CAST( + col0 AS SIGNED ) AS col2 FROM tab1
----
51
-51
85
-85
91
-91

skipif mysql # not compatible
query II rowsort label-8925
SELECT ALL + col0 AS col2, - CAST ( + col0 AS INTEGER ) AS col2 FROM tab1
----
51
-51
85
-85
91
-91

query I rowsort
SELECT ALL - + col0 AS col2 FROM tab0 WHERE NOT + + 8 = + col0 * col0 * + 77
----
-15
-87
-97

query I rowsort
SELECT + ( + 77 ) * col1 FROM tab0
----
1617
6237
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8928
SELECT - - 67 col1 FROM tab2 WHERE - 26 NOT BETWEEN 25 + - + 20 / + CAST( NULL AS SIGNED ) * col2 + col2 AND - - col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8928
SELECT - - 67 col1 FROM tab2 WHERE - 26 NOT BETWEEN 25 + - + 20 / + CAST ( NULL AS INTEGER ) * col2 + col2 AND - - col0
----

query I rowsort
SELECT + ( + 65 ) AS col2 FROM tab1
----
65
65
65

onlyif mysql # DIV for integer division: 
query I rowsort label-8930
SELECT ALL 57 DIV col2 FROM tab0 AS cor0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-8930
SELECT ALL 57 / col2 FROM tab0 AS cor0
----
0
1
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8931
SELECT DISTINCT + - col0 DIV + col2 - col1 AS col1 FROM tab2 AS cor0
----
-53
-68
-78

skipif mysql # not compatible
query I rowsort label-8931
SELECT DISTINCT + - col0 / + col2 - col1 AS col1 FROM tab2 AS cor0
----
-53
-68
-78

query I rowsort
SELECT - - col0 * + - 85 + + col2 FROM tab1 AS cor0
----
-4239
-7166
-7667

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 95 <> + + 39 * - ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8934
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE col2 = + col1
----
0

skipif mysql # not compatible
query I rowsort label-8934
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE col2 = + col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8935
SELECT DISTINCT - + 28 + - COUNT( * ) FROM tab0 cor0
----
-31

skipif mysql # not compatible
query I rowsort label-8935
SELECT DISTINCT - + 28 + - COUNT ( * ) FROM tab0 cor0
----
-31

query I rowsort
SELECT ALL - col1 + + - col0 + - 85 * col2 * - 84 AS col0 FROM tab2 AS cor0
----
164123
285459
413978

onlyif mysql # DIV for integer division: 
query I rowsort label-8937
SELECT + col2 + ( + + 74 ) + col0 DIV + + col1 FROM tab2
----
114
133
97

skipif mysql # not compatible
query I rowsort label-8937
SELECT + col2 + ( + + 74 ) + col0 / + + col1 FROM tab2
----
114
133
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT 43 + + - COUNT( * ) FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-8938
SELECT 43 + + - COUNT ( * ) FROM tab0
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8939
SELECT col1 * - + 70 + CAST( NULL AS SIGNED ) + col1 col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8939
SELECT col1 * - + 70 + CAST ( NULL AS INTEGER ) + col1 col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 > col1 + + col2 * + 96 - - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8941
SELECT - + COUNT( * ) FROM tab1 AS cor0 WHERE - 39 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8941
SELECT - + COUNT ( * ) FROM tab1 AS cor0 WHERE - 39 IS NULL
----
0

query I rowsort
SELECT - col0 + col0 AS col1 FROM tab2 AS cor0 WHERE + col1 <= - + 89
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8943
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - CAST( col1 AS SIGNED ) + + col0 >= + + CAST( NULL AS SIGNED ) * + + 27
----

skipif mysql # not compatible
query III rowsort label-8943
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - CAST ( col1 AS INTEGER ) + + col0 >= + + CAST ( NULL AS INTEGER ) * + + 27
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + 13 col2 FROM tab2
----
-299
-520
-754

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8945
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + col2 FROM tab0 WHERE - 81 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8945
SELECT DISTINCT CAST ( NULL AS REAL ) * + col2 FROM tab0 WHERE - 81 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - ( 97 ) * - 50 - - col1 + + 10 AS col1 FROM tab1
----
4865
4874
4907

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = - 17 - + col2
----

query I rowsort
SELECT ALL - - col2 * - + 3 + + col1 AS col2 FROM tab2 AS cor0
----
-107
-18
-43

query II rowsort
SELECT ( - ( + 49 ) ) AS col0, + col2 FROM tab2 AS cor0
----
-49
23
-49
40
-49
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * + col0 col1 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
2116
4096
5625

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8951
SELECT + col0 AS col1, + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-8951
SELECT + col0 AS col1, + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

query I rowsort
SELECT DISTINCT 38 * + col2 AS col0 FROM tab1
----
2242
2584
3648

onlyif mysql # DIV for integer division: 
query I rowsort label-8953
SELECT DISTINCT col0 DIV + col0 col0 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8953
SELECT DISTINCT col0 / + col0 col0 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8954
SELECT DISTINCT - - 44 + - COUNT( 89 ) FROM tab0 WHERE NOT NULL <> NULL
----
44

skipif mysql # not compatible
query I rowsort label-8954
SELECT DISTINCT - - 44 + - COUNT ( 89 ) FROM tab0 WHERE NOT NULL <> NULL
----
44

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 * col2 + 76 BETWEEN + 62 AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8956
SELECT ALL - ( CAST( NULL AS SIGNED ) ) * - 60 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8956
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) * - 60 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8957
SELECT COUNT( * ) * - 62 * MIN( ALL - col0 ) AS col1 FROM tab1
----
16926

skipif mysql # not compatible
query I rowsort label-8957
SELECT COUNT ( * ) * - 62 * MIN ( ALL - col0 ) AS col1 FROM tab1
----
16926

onlyif mysql # aggregate syntax: 
query II rowsort label-8958
SELECT 76 AS col2, - MAX( DISTINCT + col2 ) AS col2 FROM tab0
----
76
-99

skipif mysql # not compatible
query II rowsort label-8958
SELECT 76 AS col2, - MAX ( DISTINCT + col2 ) AS col2 FROM tab0
----
76
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8959
SELECT col0 + CAST( + - col2 AS SIGNED ) * + 74 + + - col2 + + + 37 * col0 * - + col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-8959
SELECT col0 + CAST ( + - col2 AS INTEGER ) * + 74 + + - col2 + + + 37 * col0 * - + col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8960
SELECT - + col0 AS col1 FROM tab1 cor0 WHERE NOT - CAST( NULL AS SIGNED ) - + 85 = - col2
----

skipif mysql # not compatible
query I rowsort label-8960
SELECT - + col0 AS col1 FROM tab1 cor0 WHERE NOT - CAST ( NULL AS INTEGER ) - + 85 = - col2
----

query I rowsort
SELECT DISTINCT - - col0 * + col2 + + col0 AS col2 FROM tab1 AS cor0 WHERE col1 = + col0
----

query I rowsort
SELECT + + col2 AS col2 FROM tab2 AS cor0 WHERE + col1 <> + col2
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8963
SELECT DISTINCT SUM( ALL + CAST( + - 73 AS SIGNED ) ) FROM tab2
----
-219

skipif mysql # not compatible
query I rowsort label-8963
SELECT DISTINCT SUM ( ALL + CAST ( + - 73 AS INTEGER ) ) FROM tab2
----
-219

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + 78 - + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8965
SELECT DISTINCT + - COUNT( * ) + + - MAX( - col2 ) AS col2 FROM tab2 cor0 WHERE NOT ( col2 ) NOT IN ( - ( - CAST( NULL AS SIGNED ) ), + 20 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8965
SELECT DISTINCT + - COUNT ( * ) + + - MAX ( - col2 ) AS col2 FROM tab2 cor0 WHERE NOT ( col2 ) NOT IN ( - ( - CAST ( NULL AS INTEGER ) ), + 20 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col1 * - + 30 * + col2 * col2 col0 FROM tab2 AS cor0
----
-236544000
-37231020
-507123000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8967
SELECT - + col0 * + + col2 + - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8967
SELECT - + col0 * + + col2 + - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT + MIN( ALL - + col2 ) AS col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-8968
SELECT + MIN ( ALL - + col2 ) AS col2 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT DISTINCT + 46 - 56 AS col1 FROM tab2 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT DISTINCT ( - SUM( DISTINCT - col2 ) ) - + COUNT( * ) AS col2 FROM tab2
----
118

skipif mysql # not compatible
query I rowsort label-8970
SELECT DISTINCT ( - SUM ( DISTINCT - col2 ) ) - + COUNT ( * ) AS col2 FROM tab2
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-8971
SELECT DISTINCT + ( COUNT( * ) ) FROM tab2 WHERE col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8971
SELECT DISTINCT + ( COUNT ( * ) ) FROM tab2 WHERE col2 IS NOT NULL
----
3

query I rowsort
SELECT ALL 97 - - col0 FROM tab1
----
148
182
188

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8973
SELECT ALL + col1 - 90 + CAST( NULL AS SIGNED ) + + 68, col0 * - col2 col2 FROM tab0
----
NULL
-705
NULL
-870
NULL
-9603

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8973
SELECT ALL + col1 - 90 + CAST ( NULL AS INTEGER ) + + 68, col0 * - col2 col2 FROM tab0
----
NULL
-705
NULL
-870
NULL
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8974
SELECT - + 56 * - 79 * - + 80 + - + CAST( - 23 AS SIGNED ) col2 FROM tab2 AS cor0
----
-353897
-353897
-353897

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8974
SELECT - + 56 * - 79 * - + 80 + - + CAST ( - 23 AS INTEGER ) col2 FROM tab2 AS cor0
----
-353897
-353897
-353897

query II rowsort
SELECT ALL col2 AS col0, - 66 FROM tab2 AS cor0
----
23
-66
40
-66
58
-66

query I rowsort
SELECT - + col2 * + 53 + - 69 AS col2 FROM tab2 AS cor0
----
-1288
-2189
-3143

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT DISTINCT - SUM( 75 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-675

skipif mysql # not compatible
query I rowsort label-8977
SELECT DISTINCT - SUM ( 75 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-675

query I rowsort
SELECT - 31 * - - col0 AS col1 FROM tab0 AS cor0
----
-2697
-3007
-465

query I rowsort
SELECT DISTINCT ( + - col0 ) * + col1 AS col1 FROM tab0 cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT DISTINCT - SUM( ALL + 13 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-39

skipif mysql # not compatible
query I rowsort label-8980
SELECT DISTINCT - SUM ( ALL + 13 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-39

query I rowsort
SELECT ALL - col1 - 24 + + 95 + - col1 / + + col0 * - 72 * - + col2 FROM tab2 AS cor0 WHERE NOT col0 > + - 78
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 36 IN ( + + 76, col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8983
SELECT - CAST( - 54 AS SIGNED ) FROM tab0
----
54
54
54

skipif mysql # not compatible
query I rowsort label-8983
SELECT - CAST ( - 54 AS INTEGER ) FROM tab0
----
54
54
54

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 NOT BETWEEN col0 - - - 51 AND - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8985
SELECT 15 + + COUNT( * ) FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-8985
SELECT 15 + + COUNT ( * ) FROM tab1 AS cor0
----
18

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > col0 / + 76 + - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8987
SELECT DISTINCT 88 * - COUNT( * ) FROM tab2
----
-264

skipif mysql # not compatible
query I rowsort label-8987
SELECT DISTINCT 88 * - COUNT ( * ) FROM tab2
----
-264

query I rowsort
SELECT ALL 6 * + - col2 FROM tab2
----
-138
-240
-348

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8989
SELECT DISTINCT ( + - CAST( NULL AS DECIMAL ) ) * col2 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8989
SELECT DISTINCT ( + - CAST ( NULL AS REAL ) ) * col2 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8990
SELECT * FROM tab0 AS cor0 WHERE ( NOT 92 NOT IN ( + col2 * + + CAST( - col0 AS DECIMAL ) + 69 + col2, 88, + 77 / - 42 ) )
----

skipif mysql # not compatible
query III rowsort label-8990
SELECT * FROM tab0 AS cor0 WHERE ( NOT 92 NOT IN ( + col2 * + + CAST ( - col0 AS REAL ) + 69 + col2, 88, + 77 / - 42 ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 41 * - + col1 <= + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + ( - ( - ( + col2 ) ) ) * ( col0 ) + - col0 AS col1 FROM tab0 AS cor0
----
690
783
9506

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 BETWEEN + 82 AND NULL
----

query I rowsort
SELECT DISTINCT - ( - 67 ) + - - col2 FROM tab1
----
126
135
163

onlyif mysql # DIV for integer division: 
query I rowsort label-8995
SELECT DISTINCT col1 DIV + + col0 - - 42 FROM tab0
----
42
47

skipif mysql # not compatible
query I rowsort label-8995
SELECT DISTINCT col1 / + + col0 - - 42 FROM tab0
----
42
47

query II rowsort
SELECT 1 + col1 AS col1, 72 AS col1 FROM tab2
----
52
72
68
72
78
72

onlyif mysql # DIV for integer division: 
query I rowsort label-8997
SELECT 19 DIV 73 + 13 FROM tab1
----
13
13
13

skipif mysql # not compatible
query I rowsort label-8997
SELECT 19 / 73 + 13 FROM tab1
----
13
13
13

query I rowsort
SELECT + ( - ( - 94 ) ) + - col2 FROM tab0
----
-5
47
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8999
SELECT ALL 94 + + CAST( - col2 AS SIGNED ) AS col1 FROM tab2
----
36
54
71

skipif mysql # not compatible
query I rowsort label-8999
SELECT ALL 94 + + CAST ( - col2 AS INTEGER ) AS col1 FROM tab2
----
36
54
71

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( ( + + 0 ) ) AS col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9002
SELECT ALL - - 70 FROM tab1 WHERE NULL BETWEEN NULL AND - CAST( - CAST( - + col1 AS SIGNED ) AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9002
SELECT ALL - - 70 FROM tab1 WHERE NULL BETWEEN NULL AND - CAST ( - CAST ( - + col1 AS INTEGER ) AS INTEGER )
----

query I rowsort
SELECT - - 79 * - + col1 * + 9 FROM tab2 AS cor0
----
-36261
-47637
-54747

query I rowsort
SELECT - ( 99 ) * + 36 + - - ( + col0 ) AS col2 FROM tab1
----
-3473
-3479
-3513

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 * + 54 - + col1 + - col2 * col2 * + + 48 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9006
SELECT ALL - CAST( - - col0 AS SIGNED ) + + + col0 + 57 * col0 DIV 86 FROM tab1 AS cor0
----
33
56
60

skipif mysql # not compatible
query I rowsort label-9006
SELECT ALL - CAST ( - - col0 AS INTEGER ) + + + col0 + 57 * col0 / 86 FROM tab1 AS cor0
----
33
56
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 92 col0 FROM tab0 AS cor0
----
92

query I rowsort
SELECT + - col1 + + 46 FROM tab0 AS cor0
----
-35
25
45

query I rowsort
SELECT 16 + + 0 + + 60 AS col2 FROM tab1
----
76
76
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9010
SELECT 77 DIV COUNT( * ) + COUNT( * ) FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-9010
SELECT 77 / COUNT ( * ) + COUNT ( * ) FROM tab0
----
28

query I rowsort
SELECT 41 * - + col1 FROM tab0
----
-3321
-41
-861

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT DISTINCT - COUNT( 20 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9012
SELECT DISTINCT - COUNT ( 20 ) FROM tab1
----
-3

query I rowsort
SELECT + ( - - 85 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT COUNT( * ) + + - 45 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-36

skipif mysql # not compatible
query I rowsort label-9014
SELECT COUNT ( * ) + + - 45 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9015
SELECT 11 + - COUNT( * ) * + ( + SUM( ALL + - 66 ) ) + + COUNT( * ) * + 29 AS col1 FROM tab0 AS cor0
----
692

skipif mysql # not compatible
query I rowsort label-9015
SELECT 11 + - COUNT ( * ) * + ( + SUM ( ALL + - 66 ) ) + + COUNT ( * ) * + 29 AS col1 FROM tab0 AS cor0
----
692

query I rowsort
SELECT - 94 * + col2 FROM tab1 AS cor0
----
-5546
-6392
-9024

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9017
SELECT - COUNT( DISTINCT - col2 ) DIV - 75 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9017
SELECT - COUNT ( DISTINCT - col2 ) / - 75 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9018
SELECT + col2 * 95 - - CAST( - 6 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
5599
6454
9114

skipif mysql # not compatible
query I rowsort label-9018
SELECT + col2 * 95 - - CAST ( - 6 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
5599
6454
9114

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 col2 FROM tab2 AS cor0 WHERE - 61 BETWEEN col2 AND - 71
----

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9021
SELECT - 8 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9021
SELECT - 8 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9022
SELECT DISTINCT + COUNT( * ) * + + COUNT( * ), COUNT( * ) AS col1 FROM tab1
----
9
3

skipif mysql # not compatible
query II rowsort label-9022
SELECT DISTINCT + COUNT ( * ) * + + COUNT ( * ), COUNT ( * ) AS col1 FROM tab1
----
9
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9023
SELECT + - CAST( NULL AS SIGNED ) * - + col2 + - ( + col1 ) FROM tab1 WHERE NOT NULL < - + col2
----

skipif mysql # not compatible
query I rowsort label-9023
SELECT + - CAST ( NULL AS INTEGER ) * - + col2 + - ( + col1 ) FROM tab1 WHERE NOT NULL < - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9024
SELECT ALL col1 * - 74 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9024
SELECT ALL col1 * - 74 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9025
SELECT DISTINCT + 16 DIV 72 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9025
SELECT DISTINCT + 16 / 72 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9026
SELECT + 58 col1, CAST( 85 AS SIGNED ) * - - 92 + - - col2 * + 91 + + 64 FROM tab1 AS cor0
----
58
13253
58
14072
58
16620

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9026
SELECT + 58 col1, CAST ( 85 AS INTEGER ) * - - 92 + - - col2 * + 91 + + 64 FROM tab1 AS cor0
----
58
13253
58
14072
58
16620

query II rowsort
SELECT DISTINCT + - 10 AS col1, col0 FROM tab1 AS cor0
----
-10
51
-10
85
-10
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9028
SELECT ALL ( + + MAX( + CAST( NULL AS SIGNED ) ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9028
SELECT ALL ( + + MAX ( + CAST ( NULL AS INTEGER ) ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN + 90 AND NULL
----

query I rowsort
SELECT DISTINCT - - 90 AS col1 FROM tab2 AS cor0
----
90

query I rowsort
SELECT DISTINCT + 52 + + - col2 AS col1 FROM tab0 AS cor0
----
-47
42
5

query II rowsort
SELECT DISTINCT - 45 AS col0, 66 AS col1 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
-45
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 22 + + - col2 + + col2 + + col2 + col1 col2 FROM tab1
----
132
137
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT DISTINCT COUNT( ALL 81 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9034
SELECT DISTINCT COUNT ( ALL 81 ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT ( + 54 ) AS col1 FROM tab0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT SUM( - col2 ) + + 47 * - - MIN( - + 9 ) AS col2 FROM tab0
----
-579

skipif mysql # not compatible
query I rowsort label-9036
SELECT SUM ( - col2 ) + + 47 * - - MIN ( - + 9 ) AS col2 FROM tab0
----
-579

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9037
SELECT DISTINCT COUNT( * ), CAST( NULL AS SIGNED ) / CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-9037
SELECT DISTINCT COUNT ( * ), CAST ( NULL AS INTEGER ) / CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
3
NULL

query I rowsort
SELECT col1 + - + col2 AS col0 FROM tab1
----
-21
-54
-82

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + - 99 ) + - + col0 <> + - 35 * + 13
----

query I rowsort
SELECT + 45 + 3 AS col2 FROM tab1 AS cor0
----
48
48
48

query I rowsort
SELECT DISTINCT + col1 + + 39 FROM tab0 cor0
----
120
40
60

query I rowsort
SELECT ALL - col0 - col2 + + 12 FROM tab0
----
-184
-50
-85

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - 67 * + col0 <= NULL
----

query I rowsort
SELECT - 71 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

query I rowsort
SELECT - - 45 * col2 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query II rowsort
SELECT - col2 * + 30 AS col0, 57 FROM tab2 AS cor0
----
-1200
57
-1740
57
-690
57

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 * ( col1 ) >= NULL
----

query I rowsort
SELECT + col2 * + + col1 FROM tab2 cor0
----
1173
3080
3886

query II rowsort
SELECT DISTINCT col0 * - col1 * - 60 AS col2, + 19 AS col0 FROM tab0
----
109620
19
5820
19
72900
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT ALL MAX( ALL + + col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-9050
SELECT ALL MAX ( ALL + + col1 ) FROM tab0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9051
SELECT ALL - + col1 / - - col0 AS col0 FROM tab0 WHERE NOT + col1 * CAST( NULL AS SIGNED ) BETWEEN - + 52 + - col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-9051
SELECT ALL - + col1 / - - col0 AS col0 FROM tab0 WHERE NOT + col1 * CAST ( NULL AS INTEGER ) BETWEEN - + 52 + - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT ALL MAX( - - col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-9052
SELECT ALL MAX ( - - col1 ) FROM tab2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9053
SELECT ALL ( CAST( 28 AS SIGNED ) ) * + col2 AS col0 FROM tab1
----
1652
1904
2688

skipif mysql # not compatible
query I rowsort label-9053
SELECT ALL ( CAST ( 28 AS INTEGER ) ) * + col2 AS col0 FROM tab1
----
1652
1904
2688

query I rowsort
SELECT 42 * + 11 FROM tab1
----
462
462
462

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9055
SELECT DISTINCT - MIN( 34 ) * - + MAX( DISTINCT + col0 ) * - + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9055
SELECT DISTINCT - MIN ( 34 ) * - + MAX ( DISTINCT + col0 ) * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9056
SELECT * FROM tab0 WHERE NOT + CAST( - - 96 AS SIGNED ) NOT BETWEEN + 53 AND NULL
----

skipif mysql # not compatible
query III rowsort label-9056
SELECT * FROM tab0 WHERE NOT + CAST ( - - 96 AS INTEGER ) NOT BETWEEN + 53 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT ALL + 35 * + COUNT( * ) FROM tab0
----
105

skipif mysql # not compatible
query I rowsort label-9057
SELECT ALL + 35 * + COUNT ( * ) FROM tab0
----
105

query I rowsort
SELECT DISTINCT 14 * col2 * + 35 AS col2 FROM tab0
----
23030
48510
4900

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT DISTINCT - COUNT( + - 36 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9059
SELECT DISTINCT - COUNT ( + - 36 ) AS col1 FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + 36 * + - col1 col1 FROM tab0
----
-3492
-43740
-65772

query II rowsort
SELECT ALL + col1, ( - 43 ) * + 29 + col1 AS col0 FROM tab2
----
51
-1196
67
-1180
77
-1170

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT ALL + ( + MAX( DISTINCT + col0 ) ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9062
SELECT ALL + ( + MAX ( DISTINCT + col0 ) ) AS col2 FROM tab1 AS cor0
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 85 * 25 col2 FROM tab2 AS cor0
----
-2125

query I rowsort
SELECT - col0 * 16 AS col0 FROM tab1 AS cor0
----
-1360
-1456
-816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col1, - 0 col0 FROM tab0
----
10
0
47
0
99
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9066
SELECT DISTINCT - col1 + + - 18 AS col1 FROM tab0 WHERE - col0 + 89 NOT IN ( + CAST( NULL AS SIGNED ) * + 76, 15, col2, col2 )
----

skipif mysql # not compatible
query I rowsort label-9066
SELECT DISTINCT - col1 + + - 18 AS col1 FROM tab0 WHERE - col0 + 89 NOT IN ( + CAST ( NULL AS INTEGER ) * + 76, 15, col2, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT DISTINCT - - MAX( - + col1 ) col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9067
SELECT DISTINCT - - MAX ( - + col1 ) col1 FROM tab0 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-9068
SELECT ALL + col2 AS col1, + col2 DIV - + 79 FROM tab2 AS cor0
----
23
0
40
0
58
0

skipif mysql # not compatible
query II rowsort label-9068
SELECT ALL + col2 AS col1, + col2 / - + 79 FROM tab2 AS cor0
----
23
0
40
0
58
0

query I rowsort
SELECT - + 73 * + 85 + col2 AS col1 FROM tab1 AS cor0
----
-6109
-6137
-6146

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT ALL + ( + COUNT( ALL col0 ) ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9070
SELECT ALL + ( + COUNT ( ALL col0 ) ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9071
SELECT + 54 + + col2 - + 95 * + col1 + CAST( - col0 AS SIGNED ), col0 FROM tab0 AS cor0
----
-2018
87
-39
97
-7609
15

skipif mysql # not compatible
query II rowsort label-9071
SELECT + 54 + + col2 - + 95 * + col1 + CAST ( - col0 AS INTEGER ), col0 FROM tab0 AS cor0
----
-2018
87
-39
97
-7609
15

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 33 BETWEEN ( + + col2 ) AND col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9073
SELECT ALL - 29 DIV - + col1 AS col1 FROM tab1
----
0
2
5

skipif mysql # not compatible
query I rowsort label-9073
SELECT ALL - 29 / - + col1 AS col1 FROM tab1
----
0
2
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT + COUNT( * ) * + COUNT( * ) - MAX( ALL + ( - col1 ) ) + + 60 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9074
SELECT + COUNT ( * ) * + COUNT ( * ) - MAX ( ALL + ( - col1 ) ) + + 60 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE col2 * - col2 * col2 * col0 NOT IN ( col1 + - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9076
SELECT + 57 * + - ( 12 ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9076
SELECT + 57 * + - ( 12 ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT ( 84 ) AS col1, 95 - - - col1 * + - col2, col0 AS col2 FROM tab1
----
9 values hashing to 1eacf42cdc9c52c33fc8a48de1d5d237

onlyif mysql # aggregate syntax: 
query I rowsort label-9078
SELECT DISTINCT + ( + ( - COUNT( * ) ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9078
SELECT DISTINCT + ( + ( - COUNT ( * ) ) ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9079
SELECT - col0 + + CAST( NULL AS SIGNED ) + col2 + - - 12 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9079
SELECT - col0 + + CAST ( NULL AS INTEGER ) + col2 + - - 12 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT 8 * - col1 - - + col2 AS col1, col2 FROM tab1
----
-16
96
-308
68
19
59

query I rowsort
SELECT - - 18 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col0 NOT BETWEEN NULL AND - col2
----

query I rowsort
SELECT DISTINCT col0 * + 69 - + col2 + - col0 FROM tab1
----
3372
5721
6120

query I rowsort
SELECT + col1 FROM tab1 WHERE - - 44 * - - col0 IS NULL
----

query II rowsort
SELECT col0, 98 FROM tab1
----
51
98
85
98
91
98

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * 65 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - ( + 93 ) AS col0 FROM tab0 cor0
----
-93
-93
-93

query I rowsort
SELECT + col0 * - + col0 AS col0 FROM tab0 cor0
----
-225
-7569
-9409

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 0 * - + col2 - - - 47 - - - ( - col2 ) * - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 97 * - 15 * col2 AS col1 FROM tab2 AS cor0
----
-33465
-58200
-84390

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - 29 * 10 < 5
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9092
SELECT ALL MAX( + ( + col1 ) ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9092
SELECT ALL MAX ( + ( + col1 ) ) FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT + + COUNT( * ) * + COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-9093
SELECT + + COUNT ( * ) * + COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT DISTINCT - 63 * + COUNT( * ) + + COUNT( * ) FROM tab2 cor0
----
-186

skipif mysql # not compatible
query I rowsort label-9094
SELECT DISTINCT - 63 * + COUNT ( * ) + + COUNT ( * ) FROM tab2 cor0
----
-186

query I rowsort
SELECT DISTINCT - 8 * - - col0 FROM tab0
----
-120
-696
-776

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9096
SELECT DISTINCT COUNT( * ) + - 44 FROM tab0 WHERE NOT col1 * + col2 + ( col0 ) NOT BETWEEN - col1 + + 14 * + CAST( NULL AS SIGNED ) AND NULL
----
-44

skipif mysql # not compatible
query I rowsort label-9096
SELECT DISTINCT COUNT ( * ) + - 44 FROM tab0 WHERE NOT col1 * + col2 + ( col0 ) NOT BETWEEN - col1 + + 14 * + CAST ( NULL AS INTEGER ) AND NULL
----
-44

query II rowsort
SELECT DISTINCT + col2 * - col0, col0 + - col0 + col0 AS col0 FROM tab2
----
-1058
46
-2560
64
-4350
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE NOT 89 + + col0 <> col1 - - - col1
----
0

skipif mysql # not compatible
query I rowsort label-9098
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 89 + + col0 <> col1 - - - col1
----
0

query I rowsort
SELECT DISTINCT + col0 * - ( - ( 71 ) ) AS col1 FROM tab0 AS cor0
----
1065
6177
6887

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9100
SELECT ALL - 97 DIV - COUNT( * ) FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-9100
SELECT ALL - 97 / - COUNT ( * ) FROM tab2
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9101
SELECT DISTINCT - + COUNT( * ) * - 29 - + 59 + - COUNT( * ) + - CAST( 76 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
117

skipif mysql # not compatible
query I rowsort label-9101
SELECT DISTINCT - + COUNT ( * ) * - 29 - + 59 + - COUNT ( * ) + - CAST ( 76 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT COUNT( * ) * + 41 AS col0 FROM tab2
----
123

skipif mysql # not compatible
query I rowsort label-9102
SELECT COUNT ( * ) * + 41 AS col0 FROM tab2
----
123

query II rowsort
SELECT + col2 AS col0, col1 AS col1 FROM tab2 WHERE ( + col0 ) * col0 - - col1 - - + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9104
SELECT 49 * - 35 * - + 43 AS col0, - COUNT( * ) + - 2 + + COUNT( * ) FROM tab1
----
73745
-2

skipif mysql # not compatible
query II rowsort label-9104
SELECT 49 * - 35 * - + 43 AS col0, - COUNT ( * ) + - 2 + + COUNT ( * ) FROM tab1
----
73745
-2

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN ( 8 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT - + COUNT( DISTINCT col0 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9106
SELECT - + COUNT ( DISTINCT col0 ) FROM tab0 cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 * col0 + - 33 + + col0 + - col0 / - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 14 AS col0 FROM tab2 cor0
----
-14
-14
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-9109
SELECT ALL + col1 * 47 DIV + 39 + - + 9 + 45 DIV - col2 * - col2 AS col2 FROM tab1 AS cor0
----
-3
47
7

skipif mysql # not compatible
query I rowsort label-9109
SELECT ALL + col1 * 47 / + 39 + - + 9 + 45 / - col2 * - col2 AS col2 FROM tab1 AS cor0
----
-3
47
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9110
SELECT ALL 15 + COUNT( * ) FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-9110
SELECT ALL 15 + COUNT ( * ) FROM tab0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT ALL + COUNT( + col1 ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9111
SELECT ALL + COUNT ( + col1 ) col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9112
SELECT DISTINCT COUNT( * ) + - 19 FROM tab0
----
-16

skipif mysql # not compatible
query I rowsort label-9112
SELECT DISTINCT COUNT ( * ) + - 19 FROM tab0
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-9113
SELECT DISTINCT + COUNT( * ) AS col2, 24 col2 FROM tab1
----
3
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9113
SELECT DISTINCT + COUNT ( * ) AS col2, 24 col2 FROM tab1
----
3
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT COUNT( * ) + - - 72 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-9114
SELECT COUNT ( * ) + - - 72 FROM tab0
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9115
SELECT ALL + COUNT( * ) * + COUNT( * ) - 20 DIV 14 AS col0 FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-9115
SELECT ALL + COUNT ( * ) * + COUNT ( * ) - 20 / 14 AS col0 FROM tab0
----
8

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 97 * + - ( + 54 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + ( - 73 ) AS col1 FROM tab2
----
-73

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col2 AND - + col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= 84
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9120
SELECT - - 99 * + + COUNT( * ) FROM tab1 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-9120
SELECT - - 99 * + + COUNT ( * ) FROM tab1 AS cor0
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-9121
SELECT + SUM( col1 ) * + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-585

skipif mysql # not compatible
query I rowsort label-9121
SELECT + SUM ( col1 ) * + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-585

query II rowsort
SELECT DISTINCT col1 * - + 21 AS col0, + 48 * - 29 FROM tab1 AS cor0
----
-105
-1392
-294
-1392
-987
-1392

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> 95
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - col2 + + 8 col2 FROM tab2 AS cor0
----
1181
3088
3894

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 + 21 <> + col0
----

query I rowsort
SELECT + 40 * - 96 AS col0 FROM tab2
----
-3840
-3840
-3840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9127
SELECT - col2 * CAST( NULL AS SIGNED ) * - + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9127
SELECT - col2 * CAST ( NULL AS INTEGER ) * - + col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT - MAX( ALL + + 0 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9128
SELECT - MAX ( ALL + + 0 ) AS col0 FROM tab0
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT NULL BETWEEN - col2 AND + - 22 * 78 )
----

query I rowsort
SELECT ALL ( + ( + ( - col1 ) ) ) FROM tab2
----
-51
-67
-77

query II rowsort
SELECT ALL - 32 AS col0, + ( + - col0 ) FROM tab2 AS cor0
----
-32
-46
-32
-64
-32
-75

query I rowsort
SELECT - col2 + 83 FROM tab1
----
-13
15
24

query I rowsort
SELECT ALL col1 * + 26 AS col2 FROM tab0
----
2106
26
546

query I rowsort
SELECT - ( 18 ) * + 88 AS col2 FROM tab0
----
-1584
-1584
-1584

onlyif mysql # aggregate syntax: 
query I rowsort label-9135
SELECT DISTINCT - ( + ( + COUNT( ALL 60 ) ) ) - COUNT( * ) FROM tab2 WHERE NULL NOT IN ( 15 )
----
0

skipif mysql # not compatible
query I rowsort label-9135
SELECT DISTINCT - ( + ( + COUNT ( ALL 60 ) ) ) - COUNT ( * ) FROM tab2 WHERE NULL NOT IN ( 15 )
----
0

query I rowsort
SELECT DISTINCT 47 - 89 FROM tab1
----
-42

query I rowsort
SELECT - col0 AS col2 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9138
SELECT COUNT( * ) - + 2 AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9138
SELECT COUNT ( * ) - + 2 AS col1 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9139
SELECT SUM( ALL - 15 ) + + 65 AS col0 FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-9139
SELECT SUM ( ALL - 15 ) + + 65 AS col0 FROM tab2
----
20

query I rowsort
SELECT + 26 - - col0 * col1 FROM tab0
----
123
1241
1853

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 BETWEEN - col1 * col0 AND 78 - col0 / 23
----
87
21
10
97
1
99

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 WHERE 44 * col1 + 53 * col2 NOT BETWEEN + col0 AND ( + 89 + - col2 )
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9143
SELECT 36 * - COUNT( * ) AS col2 FROM tab2
----
-108

skipif mysql # not compatible
query I rowsort label-9143
SELECT 36 * - COUNT ( * ) AS col2 FROM tab2
----
-108

query I rowsort
SELECT ALL + col0 / col1 + ( + 61 ) AS col0 FROM tab2 WHERE col0 BETWEEN NULL AND 41 * col1
----

query III rowsort
SELECT * FROM tab1 WHERE NULL >= - 47 * + col1 - col1
----

query I rowsort
SELECT col1 + 0 FROM tab1 WHERE NOT col1 BETWEEN + 89 / + 80 - 36 AND ( + col0 ) * - col2
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9147
SELECT + col2 AS col0 FROM tab2 WHERE ( NULL ) BETWEEN - col1 AND + col2 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9147
SELECT + col2 AS col0 FROM tab2 WHERE ( NULL ) BETWEEN - col1 AND + col2 * CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9148
SELECT DISTINCT - 15 * + COUNT( * ) FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-9148
SELECT DISTINCT - 15 * + COUNT ( * ) FROM tab1
----
-45

query III rowsort
SELECT * FROM tab2 WHERE NOT + 17 * - col0 <= - col0 * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL > + col0
----

query I rowsort
SELECT - 34 + 70 AS col0 FROM tab2
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9152
SELECT DISTINCT ( + COUNT( DISTINCT col2 ) ) * COUNT( * ) col0 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9152
SELECT DISTINCT ( + COUNT ( DISTINCT col2 ) ) * COUNT ( * ) col0 FROM tab2
----
9

query I rowsort
SELECT DISTINCT - ( + 59 ) * col2 AS col2 FROM tab1
----
-3481
-4012
-5664

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT 46 + + ( SUM( + col2 ) ) FROM tab2
----
167

skipif mysql # not compatible
query I rowsort label-9154
SELECT 46 + + ( SUM ( + col2 ) ) FROM tab2
----
167

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND ( + 51 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9156
SELECT ALL 13 DIV 25 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9156
SELECT ALL 13 / 25 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 / col1 + + col0 IN ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9158
SELECT + col1 DIV 74 col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9158
SELECT + col1 / 74 col0 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9159
SELECT ALL - 53 DIV + 59 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9159
SELECT ALL - 53 / + 59 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT 12 FROM tab2 WHERE ( - col0 ) < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + col1 / col0 + + ( - 52 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 85 * col2 + col0 AS col0 FROM tab0
----
4010
8512
937

query I rowsort
SELECT ( col0 ) - col1 * - col0 FROM tab0 AS cor0
----
1230
1914
194

onlyif mysql # aggregate syntax: 
query I rowsort label-9164
SELECT DISTINCT + COUNT( ALL - col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9164
SELECT DISTINCT + COUNT ( ALL - col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9165
SELECT ALL 97 + - col0 DIV col1 FROM tab1 AS cor0
----
80
94
96

skipif mysql # not compatible
query I rowsort label-9165
SELECT ALL 97 + - col0 / col1 FROM tab1 AS cor0
----
80
94
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9166
SELECT COUNT( - col1 ) + 21 AS col2 FROM tab1 cor0
----
24

skipif mysql # not compatible
query I rowsort label-9166
SELECT COUNT ( - col1 ) + 21 AS col2 FROM tab1 cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT ALL + COUNT( + 93 ) AS col0 FROM tab1 cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-9167
SELECT ALL + COUNT ( + 93 ) AS col0 FROM tab1 cor0 CROSS JOIN tab0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 28 * + 75 col2 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to 10218a2a4c99eb39ed03b5d70f638acf

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9169
SELECT - SUM( - col2 ) * CAST( 11 AS SIGNED ) + COUNT( * ) * - COUNT( ALL col0 / col0 ) FROM tab2 WHERE NOT ( + ( + 89 ) ) <> + col1 * 77
----
NULL

skipif mysql # not compatible
query I rowsort label-9169
SELECT - SUM ( - col2 ) * CAST ( 11 AS INTEGER ) + COUNT ( * ) * - COUNT ( ALL col0 / col0 ) FROM tab2 WHERE NOT ( + ( + 89 ) ) <> + col1 * 77
----
NULL

query I rowsort
SELECT + 0 * 75 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 47 AS col2 FROM tab0 AS cor0 WHERE NOT - ( - 12 ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT + ( 77 ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT + - col0 * - 40 FROM tab0 AS cor0
----
3480
3880
600

query I rowsort
SELECT ALL 33 - col0 * + col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( 21 ) IS NULL
----
-2083
-4063
-5592

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( 32 ) AND 66 + - 43
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9176
SELECT ALL + MAX( ALL 60 ) FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-9176
SELECT ALL + MAX ( ALL 60 ) FROM tab0 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( + col0 + col1 * + 88 ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9177
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( + col0 + col1 * + 88 ) IS NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( 87 )
----

query I rowsort
SELECT col1 * col2 * col2 FROM tab1
----
129024
17405
217328

query I rowsort
SELECT DISTINCT col1 - + col2 FROM tab2 WHERE NOT + col2 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9181
SELECT ALL + ( MIN( col1 ) ) col1 FROM tab2
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9181
SELECT ALL + ( MIN ( col1 ) ) col1 FROM tab2
----
51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9182
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM tab0 WHERE ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9182
SELECT DISTINCT CAST ( NULL AS REAL ) FROM tab0 WHERE ( NULL ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9183
SELECT SUM( - + col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-9183
SELECT SUM ( - + col1 ) FROM tab2
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-9184
SELECT + COUNT( * ) + - - 88 FROM tab2 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9184
SELECT + COUNT ( * ) + - - 88 FROM tab2 AS cor0
----
91

query I rowsort
SELECT 55 + ( col0 ) FROM tab1 AS cor0
----
106
140
146

query I rowsort
SELECT ALL + - col0 * - col1 + col1 FROM tab0 AS cor0
----
1296
1848
98

query I rowsort
SELECT DISTINCT col0 * col2 * - 26 + col0 FROM tab2 AS cor0
----
-113025
-27462
-66496

query I rowsort
SELECT DISTINCT - col2 * - col0 FROM tab2 AS cor0 WHERE - 76 * - 27 BETWEEN ( - col2 ) + 16 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT ( - col0 * col0 ) < NULL )
----

query I rowsort
SELECT ALL - 12 * - - col1 FROM tab0 AS cor0
----
-12
-252
-972

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 62, ( - + 11 ) + 35 col1 FROM tab0 AS cor0
----
62
24
62
24
62
24

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 * col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 + 4 * - + 70 FROM tab2 AS cor0
----
-203
-213
-229

query I rowsort
SELECT + - 58 - - - 5 FROM tab1 AS cor0
----
-63
-63
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 col2 FROM tab0 AS cor0 WHERE NULL > col0 * col1 OR NULL BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT - + col1 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
-14
-47
-5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 NOT IN ( 34 * 49 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 + - - 3 AS col1 FROM tab1 AS cor0
----
54
88
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - - col1 * col1
----
0

skipif mysql # not compatible
query I rowsort label-9199
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - - col1 * col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9200
SELECT + + MIN( DISTINCT col2 ) DIV COUNT( ALL + CAST( col1 AS SIGNED ) ) + 53 AS col0 FROM tab2 cor0
----
60

skipif mysql # not compatible
query I rowsort label-9200
SELECT + + MIN ( DISTINCT col2 ) / COUNT ( ALL + CAST ( col1 AS INTEGER ) ) + 53 AS col0 FROM tab2 cor0
----
60

query I rowsort
SELECT DISTINCT col1 + 22 AS col2 FROM tab2 AS cor0 WHERE ( 51 * - 72 + + col2 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT + MAX( ( 99 ) ) AS col1 FROM tab2 WHERE ( NULL ) = ( + 62 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9202
SELECT + MAX ( ( 99 ) ) AS col1 FROM tab2 WHERE ( NULL ) = ( + 62 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9203
SELECT ALL 21 + - col0 + + col1 DIV - col1 AS col0 FROM tab2
----
-26
-44
-55

skipif mysql # not compatible
query I rowsort label-9203
SELECT ALL 21 + - col0 + + col1 / - col1 AS col0 FROM tab2
----
-26
-44
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT DISTINCT 22 * - ( COUNT( * ) ) FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-9204
SELECT DISTINCT 22 * - ( COUNT ( * ) ) FROM tab0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT COUNT( ALL - col1 ) + - 87 * MAX( ALL col2 ) AS col1 FROM tab2
----
-5043

skipif mysql # not compatible
query I rowsort label-9205
SELECT COUNT ( ALL - col1 ) + - 87 * MAX ( ALL col2 ) AS col1 FROM tab2
----
-5043

query I rowsort
SELECT ALL 70 AS col2 FROM tab2 WHERE - - col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9207
SELECT MIN( + - col2 ) AS col0, + 61 FROM tab1
----
-96
61

skipif mysql # not compatible
query II rowsort label-9207
SELECT MIN ( + - col2 ) AS col0, + 61 FROM tab1
----
-96
61

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9208
SELECT ALL - - col1 DIV col1 + - col2 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
-46
-9
-98

skipif mysql # not compatible
query I rowsort label-9208
SELECT ALL - - col1 / col1 + - col2 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
-46
-9
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9209
SELECT ALL + CAST( + col0 AS SIGNED ) col1 FROM tab0 AS cor0 WHERE NOT ( col0 + col2 ) BETWEEN ( + CAST( - col0 AS SIGNED ) * 78 ) AND + 91
----
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9209
SELECT ALL + CAST ( + col0 AS INTEGER ) col1 FROM tab0 AS cor0 WHERE NOT ( col0 + col2 ) BETWEEN ( + CAST ( - col0 AS INTEGER ) * 78 ) AND + 91
----
87
97

query I rowsort
SELECT + - col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-51
-85
-91

query II rowsort
SELECT + col2 * - - 81 AS col1, 77 FROM tab2 AS cor0
----
1863
77
3240
77
4698
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9212
SELECT DISTINCT - col2 DIV 84 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-9212
SELECT DISTINCT - col2 / 84 FROM tab1
----
-1
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - 95 IN ( + col2 * col0 / col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 16 * - col2 * + col1 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT + 14 * - ( col2 ) AS col1, - 41 * - col0 FROM tab2 cor0
----
-322
1886
-560
2624
-812
3075

query I rowsort
SELECT DISTINCT - 55 FROM tab2 AS cor0 WHERE col2 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9217
SELECT ALL - ( - col2 ) DIV - + 18 AS col0 FROM tab1 AS cor0
----
-3
-3
-5

skipif mysql # not compatible
query I rowsort label-9217
SELECT ALL - ( - col2 ) / - + 18 AS col0 FROM tab1 AS cor0
----
-3
-3
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT 22 * SUM( DISTINCT + 65 ) FROM tab1 AS cor0
----
1430

skipif mysql # not compatible
query I rowsort label-9218
SELECT 22 * SUM ( DISTINCT + 65 ) FROM tab1 AS cor0
----
1430

query I rowsort
SELECT DISTINCT + 58 AS col0 FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN ( + col1 ) AND NULL
----
58

query I rowsort
SELECT + col0 * col0 + 96 FROM tab1 AS cor0
----
2697
7321
8377

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 80 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 AS col2 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT - col0 * col2 + - - ( - + ( - col0 ) ) FROM tab2 cor0
----
-1012
-2496
-4275

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9224
SELECT * FROM tab2 AS cor0 WHERE - - CAST( NULL AS SIGNED ) * col2 IS NULL AND NOT col0 = ( - CAST( - col0 AS SIGNED ) * 20 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9224
SELECT * FROM tab2 AS cor0 WHERE - - CAST ( NULL AS INTEGER ) * col2 IS NULL AND NOT col0 = ( - CAST ( - col0 AS INTEGER ) * 20 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT COUNT( * ) * COUNT( * ) AS col0 FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-9225
SELECT COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2 cor0
----
9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - ( - 81 ) ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT ALL + MIN( ALL + col2 ) + + 75 AS col1 FROM tab2
----
98

skipif mysql # not compatible
query I rowsort label-9227
SELECT ALL + MIN ( ALL + col2 ) + + 75 AS col1 FROM tab2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9228
SELECT ALL - SUM( ALL + + col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-9228
SELECT ALL - SUM ( ALL + + col2 ) FROM tab1
----
-223

query II rowsort
SELECT 96 AS col0, col1 AS col0 FROM tab1
----
96
14
96
47
96
5

query I rowsort
SELECT ALL + - col0 AS col0 FROM tab1 WHERE + 93 <> + col1
----
-51
-85
-91

query III rowsort
SELECT * FROM tab2 WHERE + - col2 * col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + ( 12 ) IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 BETWEEN 71 AND col0 * col2
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9234
SELECT - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE - col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9234
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT DISTINCT - + col2 + - - 36 FROM tab0 AS cor0
----
-11
-63
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + 76 col0, col2 AS col1 FROM tab2 WHERE NULL IN ( - + col1 )
----

query I rowsort
SELECT DISTINCT - 52 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-52

query I rowsort
SELECT - col0 + - - col0 AS col0 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL >= 33 + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9240
SELECT DISTINCT CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9240
SELECT DISTINCT CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 66 col2 FROM tab1 AS cor0
----
-66
-66
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-9242
SELECT ALL + COUNT( * ) AS col0, + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( 18 ) IS NULL
----
3
3

skipif mysql # not compatible
query II rowsort label-9242
SELECT ALL + COUNT ( * ) AS col0, + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( 18 ) IS NULL
----
3
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9243
SELECT COUNT( * ) / - AVG ( CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9243
SELECT COUNT ( * ) / - AVG ( CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT ALL - COUNT( DISTINCT + col2 ) + + 6 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9244
SELECT ALL - COUNT ( DISTINCT + col2 ) + + 6 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9245
SELECT + COUNT( * ) DIV - - 38 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9245
SELECT + COUNT ( * ) / - - 38 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT - SUM( DISTINCT + + col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-9246
SELECT - SUM ( DISTINCT + + col1 ) FROM tab2 AS cor0
----
-195

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 97 > NULL
----

query I rowsort
SELECT - 50 * - col1 + + - 47 AS col1 FROM tab2 WHERE NULL < NULL
----

query I rowsort
SELECT + col2 + - col0 + - - 54 / - - col0 AS col1 FROM tab1 WHERE + 77 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT DISTINCT + 65 * COUNT( ALL col0 ) - 30 FROM tab1
----
165

skipif mysql # not compatible
query I rowsort label-9250
SELECT DISTINCT + 65 * COUNT ( ALL col0 ) - 30 FROM tab1
----
165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - 24 col2 FROM tab1
----
-109
-115
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT ALL MIN( 39 ) * + COUNT( * ) FROM tab1 WHERE - - ( - col2 ) + + col0 - + - col2 / - + col2 IS NOT NULL
----
117

skipif mysql # not compatible
query I rowsort label-9252
SELECT ALL MIN ( 39 ) * + COUNT ( * ) FROM tab1 WHERE - - ( - col2 ) + + col0 - + - col2 / - + col2 IS NOT NULL
----
117

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 NOT BETWEEN ( col2 + - 43 ) AND - col2 + 26
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9254
SELECT - 3 * COUNT( * ) AS col2 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-9254
SELECT - 3 * COUNT ( * ) AS col2 FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9255
SELECT DISTINCT + + SUM( - col1 ) col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9255
SELECT DISTINCT + + SUM ( - col1 ) col0 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT + - 55 AS col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND - col1 / col2 * col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 91 <> + 15
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= 61
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT - - COUNT( + col2 ) AS col2 FROM tab2 cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9259
SELECT - - COUNT ( + col2 ) AS col2 FROM tab2 cor0 WHERE NOT col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT - - MAX( + 68 ) FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-9260
SELECT - - MAX ( + 68 ) FROM tab0 AS cor0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT - MAX( DISTINCT + + col0 ) FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9261
SELECT - MAX ( DISTINCT + + col0 ) FROM tab1 cor0
----
-91

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < + 39
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > ( col1 - 10 )
----

query I rowsort
SELECT ALL + - col1 + col1 + - 96 * - col1 AS col0 FROM tab1 AS cor0
----
1344
4512
480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9265
SELECT SUM( DISTINCT - + CAST( NULL AS SIGNED ) ) + - 16, 37 col1 FROM tab1
----
NULL
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9265
SELECT SUM ( DISTINCT - + CAST ( NULL AS INTEGER ) ) + - 16, 37 col1 FROM tab1
----
NULL
37

query I rowsort
SELECT col2 * col0 + 57 AS col2 FROM tab0
----
762
927
9660

onlyif mysql # DIV for integer division: 
query I rowsort label-9267
SELECT ALL 10 DIV - col1 AS col1 FROM tab0
----
-10
0
0

skipif mysql # not compatible
query I rowsort label-9267
SELECT ALL 10 / - col1 AS col1 FROM tab0
----
-10
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 83 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9269
SELECT ALL + SUM( + col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-9269
SELECT ALL + SUM ( + col2 ) FROM tab0
----
156

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 71 * - col2 + - col1 <= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 94 * + ( col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 92 * - - col0 + + + col0 * + - col2 AS col0 FROM tab2 cor0
----
2550
3174
3328

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT SUM( DISTINCT 54 ) AS col1 FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-9273
SELECT SUM ( DISTINCT 54 ) AS col1 FROM tab0 AS cor0
----
54

query II rowsort
SELECT 76, col2 FROM tab0
----
76
10
76
47
76
99

query I rowsort
SELECT col1 * - col1 * - + col2 FROM tab1
----
1475
150212
18816

onlyif mysql # aggregate syntax: 
query I rowsort label-9276
SELECT DISTINCT - ( + - COUNT( * ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9276
SELECT DISTINCT - ( + - COUNT ( * ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-9277
SELECT DISTINCT - 28 AS col0, - col2 DIV col2 + + - col1 * + + col0 AS col0 FROM tab0
----
-28
-1216
-28
-1828
-28
-98

skipif mysql # not compatible
query II rowsort label-9277
SELECT DISTINCT - 28 AS col0, - col2 / col2 + + - col1 * + + col0 AS col0 FROM tab0
----
-28
-1216
-28
-1828
-28
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9278
SELECT + col1 * + 4 * - CAST( - col1 AS SIGNED ) - + col0 FROM tab2 AS cor0
----
10358
17881
23652

skipif mysql # not compatible
query I rowsort label-9278
SELECT + col1 * + 4 * - CAST ( - col1 AS INTEGER ) - + col0 FROM tab2 AS cor0
----
10358
17881
23652

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 85 col2 FROM tab1 cor0
----
85
85
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, - 60 - - 55 + - col1 col2 FROM tab2 AS cor0
----
-46
-56
-64
-82
-75
-72

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col2 AND + col1 * col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 61 NOT BETWEEN NULL AND + col2
----
85
5
59

query I rowsort
SELECT + col2 + ( + + 16 ) * col2 FROM tab1 AS cor0
----
1003
1156
1632

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <= + 40
----

query II rowsort
SELECT DISTINCT col2 AS col1, col2 * + col0 AS col0 FROM tab0 cor0
----
10
870
47
705
99
9603

query I rowsort
SELECT DISTINCT + 41 + - col0 + - + col1 * - 86 AS col0 FROM tab2 AS cor0
----
4381
5728
6599

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9287
SELECT + CAST( - + CAST( col0 AS SIGNED ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-9287
SELECT + CAST ( - + CAST ( col0 AS INTEGER ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT ( NULL ) IN ( - 84 + + - col1 * + col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9289
SELECT - CAST( NULL AS SIGNED ) / col0 AS col1, 4 FROM tab2
----
NULL
4
NULL
4
NULL
4

skipif mysql # not compatible
query II rowsort label-9289
SELECT - CAST ( NULL AS INTEGER ) / col0 AS col1, 4 FROM tab2
----
NULL
4
NULL
4
NULL
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT COUNT( * ) * 35 col0 FROM tab1
----
105

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9290
SELECT COUNT ( * ) * 35 col0 FROM tab1
----
105

query II rowsort
SELECT DISTINCT + col0 * + col1 AS col2, 29 * - col0 + - col2 * + col0 AS col1 FROM tab0
----
1215
-1140
1827
-3393
97
-12416

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT - SUM( - + 91 ) FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-9292
SELECT - SUM ( - + 91 ) FROM tab1
----
273

query I rowsort
SELECT ALL + 99 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query II rowsort
SELECT ALL ( col2 ), col2 FROM tab1
----
59
59
68
68
96
96

query II rowsort
SELECT + + 42 * - - col2 AS col1, col0 FROM tab2 AS cor0
----
1680
64
2436
75
966
46

onlyif mysql # DIV for integer division: 
query II rowsort label-9296
SELECT DISTINCT - ( col2 ) DIV 99 AS col2, + ( - - col2 ) FROM tab2
----
0
23
0
40
0
58

skipif mysql # not compatible
query II rowsort label-9296
SELECT DISTINCT - ( col2 ) / 99 AS col2, + ( - - col2 ) FROM tab2
----
0
23
0
40
0
58

query I rowsort
SELECT - + col0 - + col0 + + - 43 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-217
-237
-73

query I rowsort
SELECT DISTINCT 47 * + col1 FROM tab1
----
2209
235
658

query I rowsort
SELECT DISTINCT 42 AS col1 FROM tab1 cor0
----
42

query I rowsort
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 * col0 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9301
SELECT * FROM tab1 AS cor0 WHERE 24 NOT BETWEEN ( - CAST( + col2 AS SIGNED ) * col0 - 1 ) AND - col0 * - + col0
----

skipif mysql # not compatible
query III rowsort label-9301
SELECT * FROM tab1 AS cor0 WHERE 24 NOT BETWEEN ( - CAST ( + col2 AS INTEGER ) * col0 - 1 ) AND - col0 * - + col0
----

query I rowsort
SELECT ALL col0 * + col0 + - col0 FROM tab1
----
2550
7140
8190

query I rowsort
SELECT + 86 * + col1 * - col2 FROM tab2
----
-100878
-264880
-334196

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT - 35 * COUNT( * ) AS col0 FROM tab0
----
-105

skipif mysql # not compatible
query I rowsort label-9304
SELECT - 35 * COUNT ( * ) AS col0 FROM tab0
----
-105

query I rowsort
SELECT ALL + ( + ( + col2 ) ) FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9306
SELECT DISTINCT col0 + 5 + - CAST( - 69 AS SIGNED ) + - col2 * - + 81 + 2 FROM tab0
----
3898
8192
973

skipif mysql # not compatible
query I rowsort label-9306
SELECT DISTINCT col0 + 5 + - CAST ( - 69 AS INTEGER ) + - col2 * - + 81 + 2 FROM tab0
----
3898
8192
973

query I rowsort
SELECT DISTINCT + ( + 59 ) AS col0 FROM tab1
----
59

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL BETWEEN 0 AND + + 5
----

query I rowsort
SELECT 75 + + col1 + col0 * col1 * + col2 FROM tab1
----
25155
290958
68633

query I rowsort
SELECT DISTINCT - col2 + + 4 FROM tab1
----
-55
-64
-92

query III rowsort
SELECT * FROM tab1 WHERE - col1 / - col2 * + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9312
SELECT - + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9312
SELECT - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT - 77 * + + 40 + col2 + - - col0, col0 * + 45 AS col2 FROM tab2 WHERE + col1 * - 47 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9314
SELECT 0 * col2 DIV + 82 col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9314
SELECT 0 * col2 / + 82 col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9315
SELECT CAST( + CAST( - COUNT( ALL - + col0 ) AS SIGNED ) AS SIGNED ) * + MIN( col2 ) FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-9315
SELECT CAST ( + CAST ( - COUNT ( ALL - + col0 ) AS INTEGER ) AS INTEGER ) * + MIN ( col2 ) FROM tab2 AS cor0
----
-69

query I rowsort
SELECT - col1 + + + 86 AS col2 FROM tab1 AS cor0 WHERE col2 >= NULL
----

query I rowsort
SELECT - - ( ( col0 ) ) FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT DISTINCT - MAX( - col1 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9318
SELECT DISTINCT - MAX ( - col1 ) AS col2 FROM tab2 AS cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-9319
SELECT - - col2 DIV - - 33 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-9319
SELECT - - col2 / - - 33 FROM tab0 AS cor0
----
0
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9320
SELECT ALL - - SUM( 79 ) AS col0 FROM tab0 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-9320
SELECT ALL - - SUM ( 79 ) AS col0 FROM tab0 AS cor0
----
237

query I rowsort
SELECT DISTINCT + + ( - ( - 95 ) ) FROM tab1 AS cor0
----
95

query I rowsort
SELECT ALL + - 2 FROM tab2 cor0 WHERE NOT 37 * - - ( - col0 ) * + col1 + - 78 - - col2 + + + ( - - col2 ) + - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9323
SELECT + - col0 DIV - + col0 + col2 * - col1 + col0 FROM tab0 AS cor0
----
-1
-122
-3791

skipif mysql # not compatible
query I rowsort label-9323
SELECT + - col0 / - + col0 + col2 * - col1 + col0 FROM tab0 AS cor0
----
-1
-122
-3791

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9324
SELECT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col2 * + 69 ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9326
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NOT NULL >= ( - col1 )
----

skipif mysql # not compatible
query I rowsort label-9326
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NOT NULL >= ( - col1 )
----

query II rowsort
SELECT + 99 AS col2, col2 AS col1 FROM tab2
----
99
23
99
40
99
58

query II rowsort
SELECT DISTINCT + col0, col2 * 45 FROM tab0
----
15
2115
87
450
97
4455

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9329
SELECT - CAST( - col1 AS SIGNED ) AS col2, + col1 AS col0 FROM tab1 WHERE NOT + col0 + + 19 >= - col1
----

skipif mysql # not compatible
query II rowsort label-9329
SELECT - CAST ( - col1 AS INTEGER ) AS col2, + col1 AS col0 FROM tab1 WHERE NOT + col0 + + 19 >= - col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9330
SELECT + COUNT( * ) AS col0, - 97 FROM tab1 AS cor0
----
3
-97

skipif mysql # not compatible
query II rowsort label-9330
SELECT + COUNT ( * ) AS col0, - 97 FROM tab1 AS cor0
----
3
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 14 col0 FROM tab1 AS cor0
----
-14
-14
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9332
SELECT + CAST( - col1 AS SIGNED ) - - 92 AS col0 FROM tab2 AS cor0 WHERE NOT - 36 BETWEEN - col0 * col0 AND col1
----

skipif mysql # not compatible
query I rowsort label-9332
SELECT + CAST ( - col1 AS INTEGER ) - - 92 AS col0 FROM tab2 AS cor0 WHERE NOT - 36 BETWEEN - col0 * col0 AND col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9333
SELECT + COUNT( * ) AS col2, + SUM( + col1 ) DIV 50 + - + 12 AS col2 FROM tab2 AS cor0
----
3
-9

skipif mysql # not compatible
query II rowsort label-9333
SELECT + COUNT ( * ) AS col2, + SUM ( + col1 ) / 50 + - + 12 AS col2 FROM tab2 AS cor0
----
3
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT ALL - MAX( DISTINCT col0 ) AS col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-9334
SELECT ALL - MAX ( DISTINCT col0 ) AS col2 FROM tab0 AS cor0
----
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-9335
SELECT - 13 DIV - col1, col1 AS col1 FROM tab1
----
0
14
0
47
2
5

skipif mysql # not compatible
query II rowsort label-9335
SELECT - 13 / - col1, col1 AS col1 FROM tab1
----
0
14
0
47
2
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - col1 ), 2 col0 FROM tab0 AS cor0
----
-1
2
-21
2
-81
2

query II rowsort
SELECT ALL + 33 * - - col2 * - + col0 * + - col1 + - col2 AS col1, col0 FROM tab2 AS cor0
----
1780591
46
6504920
64
9617792
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9338
SELECT DISTINCT - + COUNT( * ) * COUNT( * ) DIV + COUNT( * ) + - - 19 FROM tab0 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-9338
SELECT DISTINCT - + COUNT ( * ) * COUNT ( * ) / + COUNT ( * ) + - - 19 FROM tab0 AS cor0
----
16

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE - col1 - 91 IS NOT NULL
----
14
47
5

query I rowsort
SELECT 60 + - col1 FROM tab1
----
13
46
55

query I rowsort
SELECT DISTINCT - 83 AS col2 FROM tab0 WHERE NOT col1 < NULL
----

query I rowsort
SELECT ALL + 60 * - + ( 39 ) FROM tab2
----
-2340
-2340
-2340

query II rowsort
SELECT + col1 * + col1 + + col0, col2 - col1 + 50 AS col1 FROM tab0
----
528
39
6576
16
98
148

query II rowsort
SELECT DISTINCT + col2, - col2 FROM tab0
----
10
-10
47
-47
99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT ALL + + ( + SUM( + 6 ) ) * - COUNT( * ) col1 FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9345
SELECT ALL + + ( + SUM ( + 6 ) ) * - COUNT ( * ) col1 FROM tab0 AS cor0
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9346
SELECT ALL - 0 DIV - MIN( ALL - col2 ) col1, MAX( ALL + col1 ) + + 48 AS col0 FROM tab1 AS cor0
----
0
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9346
SELECT ALL - 0 / - MIN ( ALL - col2 ) col1, MAX ( ALL + col1 ) + + 48 AS col0 FROM tab1 AS cor0
----
0
95

query I rowsort
SELECT DISTINCT + col0 + + 79 FROM tab0 AS cor0
----
166
176
94

query I rowsort
SELECT DISTINCT - - col1 AS col0 FROM tab0 WHERE + col2 * - - 78 + + + 92 + col1 IS NOT NULL
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + + col2 col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 41 NOT BETWEEN col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - col1 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - 69 + + + col0 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 44 = - - 76
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9354
SELECT ALL - - col0 DIV - col0 - - 37 * - col1 AS col1 FROM tab0 AS cor0
----
-2998
-38
-778

skipif mysql # not compatible
query I rowsort label-9354
SELECT ALL - - col0 / - col0 - - 37 * - col1 AS col1 FROM tab0 AS cor0
----
-2998
-38
-778

onlyif mysql # DIV for integer division: 
query I rowsort label-9355
SELECT 29 DIV - + col2 * - - col1 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9355
SELECT 29 / - + col2 * - - col1 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9356
SELECT DISTINCT + col1 DIV col2 * col1 AS col2 FROM tab2 AS cor0
----
102
67
77

skipif mysql # not compatible
query I rowsort label-9356
SELECT DISTINCT + col1 / col2 * col1 AS col2 FROM tab2 AS cor0
----
102
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 71 col0 FROM tab2 AS cor0
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT ALL - COUNT( 17 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9358
SELECT ALL - COUNT ( 17 ) FROM tab0
----
-3

query I rowsort
SELECT 58 * - col1 AS col1 FROM tab2
----
-2958
-3886
-4466

query I rowsort
SELECT DISTINCT - col0 * - col0 FROM tab2 WHERE + 28 * - 74 + - - col0 * + - ( - + col2 ) * + 99 * + col1 NOT IN ( col2 - 13 )
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-9361
SELECT DISTINCT 21 * + - COUNT( * ) AS col1 FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-9361
SELECT DISTINCT 21 * + - COUNT ( * ) AS col1 FROM tab1
----
-63

query I rowsort
SELECT - - col0 FROM tab0 WHERE NOT NULL <= col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9363
SELECT + 50 AS col2, col0 DIV - 86 AS col1 FROM tab1 WHERE NOT - 29 = col2 * col2 * + - col1 * col2
----
50
-1
50
0
50
0

skipif mysql # not compatible
query II rowsort label-9363
SELECT + 50 AS col2, col0 / - 86 AS col1 FROM tab1 WHERE NOT - 29 = col2 * col2 * + - col1 * col2
----
50
-1
50
0
50
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9364
SELECT DISTINCT + 40 DIV ( - col0 ) col2 FROM tab2 AS cor0 WHERE ( col1 * + + col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9364
SELECT DISTINCT + 40 / ( - col0 ) col2 FROM tab2 AS cor0 WHERE ( col1 * + + col1 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT ALL + MIN( - 89 ) FROM tab2 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-9365
SELECT ALL + MIN ( - 89 ) FROM tab2 AS cor0
----
-89

query I rowsort
SELECT ALL + - 38 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 22 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 70 col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-70

query I rowsort
SELECT col1 * + + col1 FROM tab1 AS cor0 WHERE + col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 60 NOT IN ( + 16 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + + col0 AS col0, + col0 * - col0 FROM tab0 AS cor0
----
15
-225
87
-7569
97
-9409

query I rowsort
SELECT + col0 * col0 AS col2 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT - 80 + + col1 + - col1 + + + col0 + - ( - 72 ) FROM tab2 AS cor0
----
38
56
67

query I rowsort
SELECT ALL col0 + 36 FROM tab1 AS cor0
----
121
127
87

query II rowsort
SELECT + col2 AS col2, col0 AS col2 FROM tab0 AS cor0
----
10
87
47
15
99
97

query I rowsort
SELECT ALL col0 - ( col0 ) * col0 FROM tab0 AS cor0 WHERE 11 IS NOT NULL
----
-210
-7482
-9312

query I rowsort
SELECT DISTINCT + - 75 + + 87 FROM tab0 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT DISTINCT - + COUNT( * ) col0 FROM tab1 AS cor0 WHERE + 30 NOT BETWEEN NULL AND + - col1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9378
SELECT DISTINCT - + COUNT ( * ) col0 FROM tab1 AS cor0 WHERE + 30 NOT BETWEEN NULL AND + - col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT ALL + 33 + + + MAX( + col1 ) AS col1 FROM tab2
----
110

skipif mysql # not compatible
query I rowsort label-9379
SELECT ALL + 33 + + + MAX ( + col1 ) AS col1 FROM tab2
----
110

query III rowsort
SELECT * FROM tab1 WHERE col1 > col0
----

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE + - col0 NOT BETWEEN NULL AND - col0 + - 89
----
-23
-40
-58

query I rowsort
SELECT ALL col1 - 51 + - col2 FROM tab2
----
-14
-23
-42

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 <= 60
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 15 - col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-32
1
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9385
SELECT ALL CAST( col0 AS SIGNED ), + 36 AS col0 FROM tab0
----
15
36
87
36
97
36

skipif mysql # not compatible
query II rowsort label-9385
SELECT ALL CAST ( col0 AS INTEGER ), + 36 AS col0 FROM tab0
----
15
36
87
36
97
36

query I rowsort
SELECT DISTINCT + ( + col2 ) * - 11 * + - col2 FROM tab0
----
107811
1100
24299

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT - 64 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9388
SELECT ALL - 72 + - col1 + - col1 DIV - col1 FROM tab0 AS cor0
----
-152
-72
-92

skipif mysql # not compatible
query I rowsort label-9388
SELECT ALL - 72 + - col1 + - col1 / - col1 FROM tab0 AS cor0
----
-152
-72
-92

query I rowsort
SELECT - + col0 + + col1 * - col0 AS col0 FROM tab2 cor0
----
-2392
-4992
-5100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 13 * + 43 col0 FROM tab2 AS cor0 WHERE 75 IS NOT NULL
----
559
559
559

query I rowsort
SELECT ALL - 40 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

query I rowsort
SELECT DISTINCT ( + 18 ) AS col2 FROM tab2 cor0
----
18

query I rowsort
SELECT - col0 * 77 FROM tab0 AS cor0
----
-1155
-6699
-7469

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col2 + + col1 - - ( + col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col2 * + col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9396
SELECT DISTINCT - - 22 DIV - ( + + col1 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9396
SELECT DISTINCT - - 22 / - ( + + col1 ) AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT + COUNT( - - 75 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9397
SELECT + COUNT ( - - 75 ) FROM tab1 cor0
----
3

query II rowsort
SELECT + - col0, + 15 AS col0 FROM tab1 AS cor0
----
-51
15
-85
15
-91
15

query I rowsort
SELECT - + 69 AS col2 FROM tab2 AS cor0
----
-69
-69
-69

query II rowsort
SELECT ALL + col2, 58 AS col0 FROM tab0 AS cor0
----
10
58
47
58
99
58

query I rowsort
SELECT DISTINCT ( + - 20 ) AS col0 FROM tab2, tab1 AS cor0
----
-20

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 NOT BETWEEN - col0 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9403
SELECT ALL COUNT( * ) * - CAST( - 16 AS SIGNED ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9403
SELECT ALL COUNT ( * ) * - CAST ( - 16 AS INTEGER ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT ( NOT - ( 81 ) / - 79 + + col1 BETWEEN NULL AND col1 ) )
----

query II rowsort
SELECT ALL col0 + - - col2 * + - 64 * 90, 43 FROM tab2 WHERE NULL >= - col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 * - - col2 + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 70 col0 FROM tab2
----
-3570
-4690
-5390

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9408
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( + - col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9408
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( + - col1 AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + - 21 ) + + col0 * + col2 + - - col2 col0 FROM tab1 AS cor0
----
4971
5053
6235

query I rowsort
SELECT DISTINCT + col1 + - 27 FROM tab0 cor0
----
-26
-6
54

query III rowsort
SELECT * FROM tab2 WHERE + col2 * + 39 < ( NULL )
----

query I rowsort
SELECT 31 AS col0 FROM tab0 WHERE NULL > 56
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9413
SELECT ALL + COUNT( * ) * - - 61 AS col1 FROM tab2 WHERE NOT + - col1 NOT IN ( + col2, 32, + col1, - + col1 )
----
183

skipif mysql # not compatible
query I rowsort label-9413
SELECT ALL + COUNT ( * ) * - - 61 AS col1 FROM tab2 WHERE NOT + - col1 NOT IN ( + col2, 32, + col1, - + col1 )
----
183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9414
SELECT COUNT( - CAST( - - col2 AS SIGNED ) ) * + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9414
SELECT COUNT ( - CAST ( - - col2 AS INTEGER ) ) * + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT - col2 * + 81 - + col1 FROM tab0 AS cor0
----
-3888
-8020
-831

query I rowsort
SELECT DISTINCT + - col0 + col2 + + ( col0 ) AS col0 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query II rowsort label-9417
SELECT ALL + COUNT( * ) + + 1 + 96, + ( COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
100
3

skipif mysql # not compatible
query II rowsort label-9417
SELECT ALL + COUNT ( * ) + + 1 + 96, + ( COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
100
3

query I rowsort
SELECT 19 + - - col1 AS col1 FROM tab0
----
100
20
40

query I rowsort
SELECT ALL col0 - + + col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9420
SELECT - col0 + col0 AS col0, 48 DIV col0 * + col2 AS col1 FROM tab0
----
0
0
0
0
0
141

skipif mysql # not compatible
query II rowsort label-9420
SELECT - col0 + col0 AS col0, 48 / col0 * + col2 AS col1 FROM tab0
----
0
0
0
0
0
141

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT ALL ( + + MAX( DISTINCT + col2 ) ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-9421
SELECT ALL ( + + MAX ( DISTINCT + col2 ) ) FROM tab1
----
96

query I rowsort
SELECT ALL + 71 * - 10 AS col0 FROM tab1
----
-710
-710
-710

query II rowsort
SELECT ALL + 46, col1 AS col2 FROM tab0 AS cor0
----
46
1
46
21
46
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9424
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9424
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col2 IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9425
SELECT - 77, + CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-77
3

skipif mysql # not compatible
query II rowsort label-9425
SELECT - 77, + CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-77
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT + MIN( ALL + 19 ) - - SUM( + - col2 ) / - 89 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9426
SELECT + MIN ( ALL + 19 ) - - SUM ( + - col2 ) / - 89 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9427
SELECT DISTINCT + CAST( NULL AS SIGNED ), ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9427
SELECT DISTINCT + CAST ( NULL AS INTEGER ), ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9428
SELECT + COUNT( * ) DIV - + MIN( - + col1 ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9428
SELECT + COUNT ( * ) / - + MIN ( - + col1 ) FROM tab0 cor0
----
0

query I rowsort
SELECT + ( + + 61 ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT DISTINCT - + 44 AS col1 FROM tab2 cor0
----
-44

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 75 * + 23 + col0 + ( col2 ) IS NOT NULL ) OR - 65 IS NULL
----

query I rowsort
SELECT - 30 * 15 * + col1 AS col0 FROM tab2 AS cor0
----
-22950
-30150
-34650

query II rowsort
SELECT col1, - 35 FROM tab0
----
1
-35
21
-35
81
-35

query I rowsort
SELECT - 10 * - col0 FROM tab2
----
460
640
750

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT ALL + COUNT( * ) * 38 FROM tab0
----
114

skipif mysql # not compatible
query I rowsort label-9435
SELECT ALL + COUNT ( * ) * 38 FROM tab0
----
114

query II rowsort
SELECT 80, - col1 AS col1 FROM tab1
----
80
-14
80
-47
80
-5

query I rowsort
SELECT + col2 * - ( + col1 ) AS col0 FROM tab0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT ALL + 70 * COUNT( * ) AS col2 FROM tab2
----
210

skipif mysql # not compatible
query I rowsort label-9438
SELECT ALL + 70 * COUNT ( * ) AS col2 FROM tab2
----
210

query I rowsort
SELECT DISTINCT + col1 * + 38 AS col1 FROM tab2
----
1938
2546
2926

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 46 * col1 * col2 * - 35 + - col1 + - 95 col2 FROM tab0 WHERE NULL IS NULL
----
-159486
-338216
-6129446

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9441
SELECT - - 71 * + + CAST( NULL AS SIGNED ) + + ( + col1 ) FROM tab1 WHERE NOT - + 91 * col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9441
SELECT - - 71 * + + CAST ( NULL AS INTEGER ) + + ( + col1 ) FROM tab1 WHERE NOT - + 91 * col0 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT col0 FROM tab2 WHERE NOT col2 + - col0 + - - 90 IN ( + col0, - 4, - - 71, - col1, + - col1 * - - 30 / + - 76 * + col1, 78 )
----
46
64
75

query I rowsort
SELECT DISTINCT + + col0 * - 29 + - - ( - + 44 ) * 63 + + 64 FROM tab1 AS cor0
----
-4187
-5173
-5347

query I rowsort
SELECT DISTINCT + col1 + + 8 AS col1 FROM tab1 AS cor0
----
13
22
55

query I rowsort
SELECT ALL - col0 + 66 + 30 AS col1 FROM tab0 cor0
----
-1
81
9

query I rowsort
SELECT ALL 71 + - 9 AS col1 FROM tab0 AS cor0
----
62
62
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT COUNT( ALL - 78 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9447
SELECT COUNT ( ALL - 78 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - 60 + + - col0 FROM tab1
----
-111
-145
-151

query I rowsort
SELECT + col0 FROM tab2 WHERE - col1 IS NOT NULL
----
46
64
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * - + 10 + - + 29 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9451
SELECT ( - CAST( + - ( col2 ) AS SIGNED ) ) FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9451
SELECT ( - CAST ( + - ( col2 ) AS INTEGER ) ) FROM tab1 cor0
----
59
68
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= + ( + col1 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 89 + - col0 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9454
SELECT ALL - col2 + ( - col1 ) DIV + - ( - + 55 ) FROM tab2 AS cor0
----
-23
-41
-59

skipif mysql # not compatible
query I rowsort label-9454
SELECT ALL - col2 + ( - col1 ) / + - ( - + 55 ) FROM tab2 AS cor0
----
-23
-41
-59

query I rowsort
SELECT DISTINCT - 55 * col1 + col1 + col2 AS col1 FROM tab2
----
-2731
-3560
-4118

onlyif mysql # aggregate syntax: 
query II rowsort label-9456
SELECT ALL + + COUNT( * ) + + MIN( DISTINCT - 68 ) col0, MAX( DISTINCT - col2 ) col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9456
SELECT ALL + + COUNT ( * ) + + MIN ( DISTINCT - 68 ) col0, MAX ( DISTINCT - col2 ) col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9457
SELECT - 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-9457
SELECT - COUNT ( * ) col2 FROM tab0, tab2 AS cor0
----
-9

query I rowsort
SELECT DISTINCT - col1 * + + col1 - ( + col0 ) AS col2 FROM tab0
----
-528
-6576
-98

query I rowsort
SELECT - col0 * - 24 AS col1 FROM tab0 AS cor0
----
2088
2328
360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 10 col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9461
SELECT + 70 DIV - - 47 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9461
SELECT + 70 / - - 47 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9462
SELECT - 74 * col2 * + 89 - - - CAST( + 89 AS SIGNED ) FROM tab1 cor0
----
-388663
-447937
-632345

skipif mysql # not compatible
query I rowsort label-9462
SELECT - 74 * col2 * + 89 - - - CAST ( + 89 AS INTEGER ) FROM tab1 cor0
----
-388663
-447937
-632345

onlyif mysql # aggregate syntax: 
query I rowsort label-9463
SELECT ALL COUNT( * ) * 53 AS col1 FROM tab1
----
159

skipif mysql # not compatible
query I rowsort label-9463
SELECT ALL COUNT ( * ) * 53 AS col1 FROM tab1
----
159

query I rowsort
SELECT col1 * + 71 AS col2 FROM tab0
----
1491
5751
71

query II rowsort
SELECT + col2, + 46 FROM tab0
----
10
46
47
46
99
46

query I rowsort
SELECT col2 * + col2 FROM tab0 AS cor0 WHERE NOT + col0 > - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT + + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) > 83 + + ( 37 ) * - col2
----
0

skipif mysql # not compatible
query I rowsort label-9467
SELECT + + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) > 83 + + ( 37 ) * - col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9468
SELECT 56 * + 63 + COUNT( * ) FROM tab0 AS cor0
----
3531

skipif mysql # not compatible
query I rowsort label-9468
SELECT 56 * + 63 + COUNT ( * ) FROM tab0 AS cor0
----
3531

onlyif mysql # aggregate syntax: 
query I rowsort label-9469
SELECT ALL + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + 40 > + col0
----
2

skipif mysql # not compatible
query I rowsort label-9469
SELECT ALL + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + 40 > + col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT DISTINCT + + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL <> - col0
----
0

skipif mysql # not compatible
query I rowsort label-9470
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL <> - col0
----
0

query I rowsort
SELECT col2 - col2 + + - 72 FROM tab1 AS cor0 WHERE NOT + 22 NOT BETWEEN - col2 AND ( - - col1 + + 77 * - col0 * - col2 * + col1 )
----
-72
-72
-72

query I rowsort
SELECT DISTINCT + - ( ( 98 ) ) FROM tab1 cor0
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-9473
SELECT DISTINCT + + col0 * col1 * - 22 - + 92 DIV + ( + col0 ) + + col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-108340
-110484
-51563

skipif mysql # not compatible
query I rowsort label-9473
SELECT DISTINCT + + col0 * col1 * - 22 - + 92 / + ( + col0 ) + + col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-108340
-110484
-51563

query I rowsort
SELECT 83 * - - col0 + + - 34 AS col2 FROM tab0
----
1211
7187
8017

query I rowsort
SELECT + col2 * 83 + - col1 FROM tab1
----
4892
5597
7954

query I rowsort
SELECT + - 86 FROM tab1 WHERE NULL IS NULL
----
-86
-86
-86

query I rowsort
SELECT - col0 + col1 + - ( - 12 ) AS col1 FROM tab0
----
-54
-84
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9478
SELECT col0 + - col0, CAST( col2 AS SIGNED ) col2 FROM tab0 cor0
----
0
10
0
47
0
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9478
SELECT col0 + - col0, CAST ( col2 AS INTEGER ) col2 FROM tab0 cor0
----
0
10
0
47
0
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9479
SELECT + SUM( DISTINCT - col2 ) FROM tab1 WHERE ( NOT NULL IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9479
SELECT + SUM ( DISTINCT - col2 ) FROM tab1 WHERE ( NOT NULL IS NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9480
SELECT + 2 - + + col1 + - CAST( NULL AS SIGNED ) * + - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9480
SELECT + 2 - + + col1 + - CAST ( NULL AS INTEGER ) * + - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT DISTINCT + - SUM( DISTINCT + col2 ) * + - 16 FROM tab0 AS cor0
----
2496

skipif mysql # not compatible
query I rowsort label-9481
SELECT DISTINCT + - SUM ( DISTINCT + col2 ) * + - 16 FROM tab0 AS cor0
----
2496

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9482
SELECT DISTINCT + COUNT( * ) * COUNT( * ) DIV + 14 + + COUNT( * ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9482
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) / + 14 + + COUNT ( * ) FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9483
SELECT ALL col2 + + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9483
SELECT ALL col2 + + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT - COUNT( - col0 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9484
SELECT - COUNT ( - col0 ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT - 26 * + col2 / - - col0 FROM tab1 WHERE NOT NULL = col1
----

query I rowsort
SELECT DISTINCT + 20 * - 68 * - 32 * + col2 FROM tab0
----
2045440
4308480
435200

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 cor0 WHERE NOT ( - 14 BETWEEN + col1 / + 52 AND NULL )
----
3

skipif mysql # not compatible
query I rowsort label-9487
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 cor0 WHERE NOT ( - 14 BETWEEN + col1 / + 52 AND NULL )
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 64 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9489
SELECT DISTINCT SUM( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9489
SELECT DISTINCT SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT - MIN( ALL + col0 ) AS col2 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-9490
SELECT - MIN ( ALL + col0 ) AS col2 FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT 95 * COUNT( ALL + 13 ) * COUNT( DISTINCT ( + ( col2 ) ) ) AS col1 FROM tab2
----
855

skipif mysql # not compatible
query I rowsort label-9491
SELECT 95 * COUNT ( ALL + 13 ) * COUNT ( DISTINCT ( + ( col2 ) ) ) AS col1 FROM tab2
----
855

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-9492
SELECT ALL + - CAST( NULL AS DECIMAL ), COUNT( + col0 ) DIV - + ( - + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9492
SELECT ALL + - CAST ( NULL AS REAL ), COUNT ( + col0 ) / - + ( - + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT - - AVG ( DISTINCT - col2 ) * - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - 30 * - + col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9493
SELECT - - AVG ( DISTINCT - col2 ) * - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - 30 * - + col1 AND NULL
----
NULL

query II rowsort
SELECT DISTINCT col1 AS col1, + 95 FROM tab0 cor0
----
1
95
21
95
81
95

query I rowsort
SELECT + ( - col2 ) + - + col2 * col1 AS col0 FROM tab0 AS cor0
----
-198
-220
-3854

query I rowsort
SELECT - - col1 + col2 + + - 7 FROM tab1 AS cor0
----
103
108
57

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 60 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + ( - + 17 ) AS col1 FROM tab2
----
-17
-17
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-9499
SELECT DISTINCT COUNT( * ), + MIN( col0 ) * COUNT( * ) AS col2 FROM tab1
----
3
153

skipif mysql # not compatible
query II rowsort label-9499
SELECT DISTINCT COUNT ( * ), + MIN ( col0 ) * COUNT ( * ) AS col2 FROM tab1
----
3
153

query I rowsort
SELECT - 55 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9501
SELECT ALL MAX( - - col1 ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-9501
SELECT ALL MAX ( - - col1 ) AS col2 FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-9502
SELECT DISTINCT - 71 AS col2, ( COUNT( * ) ) AS col0 FROM tab0
----
-71
3

skipif mysql # not compatible
query II rowsort label-9502
SELECT DISTINCT - 71 AS col2, ( COUNT ( * ) ) AS col0 FROM tab0
----
-71
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT ALL + ( MIN( DISTINCT - col1 ) ) col1 FROM tab0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9503
SELECT ALL + ( MIN ( DISTINCT - col1 ) ) col1 FROM tab0
----
-81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = col2 + - 42
----

query I rowsort
SELECT DISTINCT - - 53 + ( + 14 ) FROM tab0 AS cor0
----
67

query I rowsort
SELECT + - col2 + - + col2 FROM tab1 cor0
----
-118
-136
-192

onlyif mysql # DIV for integer division: 
query I rowsort label-9507
SELECT + col1 DIV + - col2 + - + 77 * + - col0 AS col0 FROM tab0
----
1154
6697
7469

skipif mysql # not compatible
query I rowsort label-9507
SELECT + col1 / + - col2 + - + 77 * + - col0 AS col0 FROM tab0
----
1154
6697
7469

query III rowsort
SELECT * FROM tab1 WHERE - col1 + - 98 * + col2 <= - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col2, col0 AS col2 FROM tab0 AS cor0 WHERE NULL <> 97
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT - - ( COUNT( * ) ) * + 51 FROM tab0 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-9510
SELECT - - ( COUNT ( * ) ) * + 51 FROM tab0 AS cor0
----
153

query I rowsort
SELECT - 71 * - - col1 + ( - 30 ) + + + 17 FROM tab2 AS cor0
----
-3634
-4770
-5480

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN + 36 AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9513
SELECT DISTINCT col1 DIV - - 42 AS col0, + col2 * + col1 AS col1 FROM tab0 AS cor0
----
0
210
0
99
1
3807

skipif mysql # not compatible
query II rowsort label-9513
SELECT DISTINCT col1 / - - 42 AS col0, + col2 * + col1 AS col1 FROM tab0 AS cor0
----
0
210
0
99
1
3807

query I rowsort
SELECT - col0 * + 61 * + - col2 AS col0 FROM tab0 cor0
----
43005
53070
585783

query I rowsort
SELECT - - col2 - + - 94 AS col1 FROM tab2 AS cor0
----
117
134
152

query I rowsort
SELECT - - col2 - + 94 + 85 * col0 AS col2 FROM tab1 AS cor0
----
4337
7190
7709

onlyif mysql # aggregate syntax: 
query II rowsort label-9517
SELECT DISTINCT SUM( DISTINCT - + 12 ) col1, 69 FROM tab2 AS cor0
----
-12
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9517
SELECT DISTINCT SUM ( DISTINCT - + 12 ) col1, 69 FROM tab2 AS cor0
----
-12
69

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 99 BETWEEN NULL AND - col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9519
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + + col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9519
SELECT DISTINCT - CAST ( NULL AS REAL ) * + + col0 FROM tab1
----
NULL

query I rowsort
SELECT ( 24 ) AS col1 FROM tab2
----
24
24
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9521
SELECT ALL - COUNT( * ) DIV + 45 + + - 88 FROM tab2 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-9521
SELECT ALL - COUNT ( * ) / + 45 + + - 88 FROM tab2 AS cor0
----
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 col2 FROM tab2 cor0
----
6
6
6

query I rowsort
SELECT ALL - col1 + - - col1 * + + col2 * col0 AS col2 FROM tab2 AS cor0
----
197043
291383
53907

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 + + 38 col0, - 90 AS col2 FROM tab2 AS cor0 WHERE NULL >= col2
----

query I rowsort
SELECT DISTINCT 57 + - col2 * - col2 * - - 70 AS col1 FROM tab2 cor0
----
112057
235537
37087

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9527
SELECT DISTINCT col2 / + + 23 + - ( - + CAST( NULL AS SIGNED ) ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9527
SELECT DISTINCT col2 / + + 23 + - ( - + CAST ( NULL AS INTEGER ) ) col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9528
SELECT ALL - COUNT( + 4 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9528
SELECT ALL - COUNT ( + 4 ) AS col0 FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9529
SELECT - col1 / - CAST( NULL AS SIGNED ) + + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9529
SELECT - col1 / - CAST ( NULL AS INTEGER ) + + col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + - ( 14 ) FROM tab0
----
1
73
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col0, 32 col0 FROM tab1
----
14
32
47
32
5
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9532
SELECT col1 * - CAST( + + 30 AS SIGNED ) + + - 73 FROM tab2
----
-1603
-2083
-2383

skipif mysql # not compatible
query I rowsort label-9532
SELECT col1 * - CAST ( + + 30 AS INTEGER ) + + - 73 FROM tab2
----
-1603
-2083
-2383

query I rowsort
SELECT 2 + + + col1 FROM tab0
----
23
3
83

query I rowsort
SELECT col1 * col0 + - 73 + 32 + - - col1 * 31 * 17 FROM tab2
----
29182
40293
45466

query I rowsort
SELECT - 85 + - - col2 FROM tab2
----
-27
-45
-62

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT - - col0 - - 24 < col2 )
----
85
5
59
91
47
68

query I rowsort
SELECT ALL - - 78 * + + col0 AS col0 FROM tab2 cor0
----
3588
4992
5850

query I rowsort
SELECT DISTINCT - 61 + - + col0 AS col2 FROM tab1 AS cor0
----
-112
-146
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-9539
SELECT DISTINCT - ( + COUNT( * ) ) + ( - - AVG ( + 88 ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9539
SELECT DISTINCT - ( + COUNT ( * ) ) + ( - - AVG ( + 88 ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 75 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9541
SELECT * FROM tab2 WHERE + CAST( col1 AS SIGNED ) + + ( + 17 ) BETWEEN NULL AND ( - 27 )
----

skipif mysql # not compatible
query III rowsort label-9541
SELECT * FROM tab2 WHERE + CAST ( col1 AS INTEGER ) + + ( + 17 ) BETWEEN NULL AND ( - 27 )
----

query III rowsort
SELECT * FROM tab0 WHERE + col1 - - col1 + + + col1 + - + col1 NOT IN ( + + col1 / + col1 * + + col1, - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 - + + col0 FROM tab1
----
-23
-26
45

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9544
SELECT + + CAST( NULL AS DECIMAL ) + - COUNT( * ) col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9544
SELECT + + CAST ( NULL AS REAL ) + - COUNT ( * ) col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 30 * - + col0 * - + col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + + 66 + + 77 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9547
SELECT ( + COUNT( * ) ) AS col0, - AVG ( + CAST( NULL AS SIGNED ) ) * - COUNT( * ) FROM tab1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-9547
SELECT ( + COUNT ( * ) ) AS col0, - AVG ( + CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) FROM tab1
----
3
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9548
SELECT + 13 AS col1 FROM tab0 WHERE NOT ( ( NOT + CAST( - 50 AS SIGNED ) * + col2 / + 74 NOT BETWEEN NULL AND + 5 ) )
----

skipif mysql # not compatible
query I rowsort label-9548
SELECT + 13 AS col1 FROM tab0 WHERE NOT ( ( NOT + CAST ( - 50 AS INTEGER ) * + col2 / + 74 NOT BETWEEN NULL AND + 5 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9549
SELECT ALL CAST( NULL AS SIGNED ) * - 5 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9549
SELECT ALL CAST ( NULL AS INTEGER ) * - 5 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 93 * + 95 * - col2 FROM tab0
----
-415245
-874665
-88350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9551
SELECT ALL 89 AS col2 FROM tab0 WHERE ( ( NOT NULL BETWEEN NULL AND - 72 * + + CAST( NULL AS SIGNED ) + + 66 ) )
----

skipif mysql # not compatible
query I rowsort label-9551
SELECT ALL 89 AS col2 FROM tab0 WHERE ( ( NOT NULL BETWEEN NULL AND - 72 * + + CAST ( NULL AS INTEGER ) + + 66 ) )
----

query II rowsort
SELECT ALL col0 * + col2, col1 FROM tab1
----
4896
14
5015
5
6188
47

query I rowsort
SELECT DISTINCT 23 * - 85 FROM tab0
----
-1955

onlyif mysql # DIV for integer division: 
query I rowsort label-9554
SELECT 98 DIV - col0 AS col1 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-9554
SELECT 98 / - col0 AS col1 FROM tab2
----
-1
-1
-2

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 49 > + col2
----
75
67
58

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT col0 * + 44 AS col1 FROM tab1
----
2244
3740
4004

onlyif mysql # DIV for integer division: 
query I rowsort label-9558
SELECT ALL col1 DIV + + col1 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9558
SELECT ALL col1 / + + col1 AS col1 FROM tab0
----
1
1
1

query II rowsort
SELECT - 97 + - + col0 + - col1, - col2 AS col0 FROM tab2
----
-194
-23
-238
-40
-239
-58

query I rowsort
SELECT ALL + 96 + - + col0 AS col0 FROM tab2 AS cor0
----
21
32
50

query I rowsort
SELECT - col2 * + col2 + ( 28 ) FROM tab0 AS cor0
----
-2181
-72
-9773

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NULL = + col0
----

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NULL <> NULL
----

query II rowsort
SELECT + - col1 AS col0, - col2 AS col1 FROM tab1 AS cor0
----
-14
-96
-47
-68
-5
-59

query I rowsort
SELECT DISTINCT + 84 + - col0 AS col1 FROM tab2 AS cor0
----
20
38
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9566
SELECT - MIN( ALL - - 64 ) col2 FROM tab2 AS cor0
----
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9566
SELECT - MIN ( ALL - - 64 ) col2 FROM tab2 AS cor0
----
-64

query I rowsort
SELECT 30 * - 35 FROM tab1
----
-1050
-1050
-1050

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT ALL + MIN( ALL + - col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-9568
SELECT ALL + MIN ( ALL + - col2 ) FROM tab2
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9569
SELECT col0 * col1 + - CAST( col2 AS SIGNED ) AS col0 FROM tab2 WHERE NULL BETWEEN - col0 * 23 * + col2 AND + 96 + - + 24
----

skipif mysql # not compatible
query I rowsort label-9569
SELECT col0 * col1 + - CAST ( col2 AS INTEGER ) AS col0 FROM tab2 WHERE NULL BETWEEN - col0 * 23 * + col2 AND + 96 + - + 24
----

query I rowsort
SELECT col2 * - 99 AS col2 FROM tab1
----
-5841
-6732
-9504

query I rowsort
SELECT DISTINCT + 27 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
27

query III rowsort
SELECT * FROM tab2 WHERE 9 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT - COUNT( * ) * - + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-9573
SELECT - COUNT ( * ) * - + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9574
SELECT col1 * + ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9574
SELECT col1 * + ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * - col0 + col2 * 99 FROM tab0 AS cor0
----
120
198
3948

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 98 col0 FROM tab0 AS cor0
----
98
98
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9577
SELECT ALL CAST( NULL AS SIGNED ) * - 51 + - + COUNT( * ) col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9577
SELECT ALL CAST ( NULL AS INTEGER ) * - 51 + - + COUNT ( * ) col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 14 * - + col2 AS col1 FROM tab2 AS cor0
----
322
560
812

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 79 IS NULL
----

query II rowsort
SELECT ALL - col1, - col0 AS col2 FROM tab2
----
-51
-46
-67
-75
-77
-64

query I rowsort
SELECT ALL - 33 * - 66 FROM tab0
----
2178
2178
2178

query I rowsort
SELECT col1 / col2 * col0 + - col1 AS col2 FROM tab0 WHERE NOT 72 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 * - ( + col0 ) * - col1 FROM tab0 AS cor0
----
-158949
-18225
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 34 * 10 col2 FROM tab0
----
340
340
340

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col0 col1 FROM tab1 cor0
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9586
SELECT ALL + - col0 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9586
SELECT ALL + - col0 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9587
SELECT DISTINCT - - 64 * col2 - + 22 + - ( - col2 ) + - + CAST( - + 26 AS SIGNED ) + col1 AS col1, + col2 col2 FROM tab1 AS cor0
----
3844
59
4471
68
6258
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9587
SELECT DISTINCT - - 64 * col2 - + 22 + - ( - col2 ) + - + CAST ( - + 26 AS INTEGER ) + col1 AS col1, + col2 col2 FROM tab1 AS cor0
----
3844
59
4471
68
6258
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9588
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) + - + COUNT( * ) AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9588
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) + - + COUNT ( * ) AS col1 FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT - - col0 * - 7 + - + col2 AS col0 FROM tab1 AS cor0
----
-453
-654
-705

onlyif mysql # aggregate syntax: 
query I rowsort label-9590
SELECT DISTINCT + COUNT( * ) + - - 22 AS col2 FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-9590
SELECT DISTINCT + COUNT ( * ) + - - 22 AS col2 FROM tab2
----
25

query I rowsort
SELECT - 91 + 87 AS col1 FROM tab2
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9592
SELECT DISTINCT - 99 - + - COUNT( ALL col1 ) - + - 93 * + SUM( ALL + col2 ) AS col1 FROM tab2
----
11157

skipif mysql # not compatible
query I rowsort label-9592
SELECT DISTINCT - 99 - + - COUNT ( ALL col1 ) - + - 93 * + SUM ( ALL + col2 ) AS col1 FROM tab2
----
11157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9593
SELECT + MIN( DISTINCT + CAST( NULL AS SIGNED ) ) + + ( - - 56 ) - - AVG ( 77 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9593
SELECT + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) + + ( - - 56 ) - - AVG ( 77 ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + col1 + 89 FROM tab2
----
140
156
166

onlyif mysql # aggregate syntax: 
query II rowsort label-9595
SELECT DISTINCT COUNT( * ) AS col1, - COUNT( * ) AS col0 FROM tab0
----
3
-3

skipif mysql # not compatible
query II rowsort label-9595
SELECT DISTINCT COUNT ( * ) AS col1, - COUNT ( * ) AS col0 FROM tab0
----
3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9596
SELECT ALL + col2 * + + 9 * - + col0 FROM tab1 WHERE col0 * + - ( - - 92 ) * + CAST( NULL AS SIGNED ) + - col2 + + + col0 + 87 IS NULL
----
-44064
-45135
-55692

skipif mysql # not compatible
query I rowsort label-9596
SELECT ALL + col2 * + + 9 * - + col0 FROM tab1 WHERE col0 * + - ( - - 92 ) * + CAST ( NULL AS INTEGER ) + - col2 + + + col0 + 87 IS NULL
----
-44064
-45135
-55692

query I rowsort
SELECT DISTINCT ( + 65 ) AS col2 FROM tab0
----
65

query I rowsort
SELECT + col0 * + col2 + + col2 AS col1 FROM tab2
----
1081
2600
4408

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT - 38 * + COUNT( * ) AS col2 FROM tab1
----
-114

skipif mysql # not compatible
query I rowsort label-9599
SELECT - 38 * + COUNT ( * ) AS col2 FROM tab1
----
-114

query I rowsort
SELECT ALL + ( - - col2 ) * col1 + 45 * col1 * - - col2 + + - 45 FROM tab0 AS cor0
----
175077
4509
9615

query I rowsort
SELECT ALL - - 88 + - col2 AS col2 FROM tab1 AS cor0
----
-8
20
29

onlyif mysql # DIV for integer division: 
query I rowsort label-9602
SELECT DISTINCT - 3 DIV col2 + col0 * 69 col0 FROM tab1
----
3519
5865
6279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9602
SELECT DISTINCT - 3 / col2 + col0 * 69 col0 FROM tab1
----
3519
5865
6279

query I rowsort
SELECT col2 * + col2 AS col0 FROM tab0 WHERE NULL = 57 * + col0
----

query I rowsort
SELECT DISTINCT col2 + + col2 / - 17 AS col2 FROM tab1 WHERE ( col1 + col0 ) <> NULL
----

query I rowsort
SELECT - 16 AS col2 FROM tab1 WHERE NULL < + col1 * col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9606
SELECT DISTINCT COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) + - CAST( NULL AS SIGNED ) * + 37 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9606
SELECT DISTINCT COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) + - CAST ( NULL AS INTEGER ) * + 37 FROM tab1
----
NULL

query I rowsort
SELECT ALL col1 + 74 * + col2 FROM tab2
----
1753
3037
4359

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9608
SELECT + COUNT( col0 ) DIV + COUNT( * ) FROM tab0 WHERE - 95 IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-9608
SELECT + COUNT ( col0 ) / + COUNT ( * ) FROM tab0 WHERE - 95 IS NOT NULL
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 + - 1 * 83 col1 FROM tab0
----
-24
-24
-24

query I rowsort
SELECT + col0 * + ( + ( 10 ) ) + col1 FROM tab2
----
511
717
817

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 68 col0 FROM tab1 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT ( + col1 ) BETWEEN col0 AND NULL
----
10
99

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 * + 56 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col2 / + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab2 WHERE - ( col2 ) IS NOT NULL
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 56 col0 FROM tab0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( - col1 * + 24 )
----

query I rowsort
SELECT 39 + col2 AS col0 FROM tab1
----
107
135
98

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col0 ) > NULL
----

query I rowsort
SELECT ALL - 56 AS col1 FROM tab1
----
-56
-56
-56

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9620
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) NOT BETWEEN col0 AND 67
----

skipif mysql # not compatible
query III rowsort label-9620
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) NOT BETWEEN col0 AND 67
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT COUNT( * ) * 54 FROM tab0 AS cor0 WHERE NOT NULL < - 57
----
0

skipif mysql # not compatible
query I rowsort label-9621
SELECT COUNT ( * ) * 54 FROM tab0 AS cor0 WHERE NOT NULL < - 57
----
0

query I rowsort
SELECT col1 * col1 + col2 * - col0 FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN + col2 * - 48 AND - col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 35 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9624
SELECT COUNT( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9624
SELECT COUNT ( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT ( + 98 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1
----
98

query I rowsort
SELECT ALL 5 * 13 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

onlyif mysql # DIV for integer division: 
query I rowsort label-9627
SELECT DISTINCT 72 - col1 DIV - col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
72
73

skipif mysql # not compatible
query I rowsort label-9627
SELECT DISTINCT 72 - col1 / - col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
72
73

query I rowsort
SELECT 16 + - col2 * - col1 AS col2 FROM tab0 AS cor0
----
115
226
3823

query I rowsort
SELECT ALL 76 FROM tab2 cor0
----
76
76
76

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) = 9
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9631
SELECT - col0 + + ( CAST( NULL AS SIGNED ) ) col1 FROM tab2 AS cor0 WHERE NULL >= + 93
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9631
SELECT - col0 + + ( CAST ( NULL AS INTEGER ) ) col1 FROM tab2 AS cor0 WHERE NULL >= + 93
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9632
SELECT - - ( 36 ) DIV col2 FROM tab0 cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-9632
SELECT - - ( 36 ) / col2 FROM tab0 cor0
----
0
0
3

query I rowsort
SELECT col0 + col2 * 14 AS col1 FROM tab1 WHERE - col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9634
SELECT ALL + 59 * CAST( NULL AS SIGNED ) + MIN( DISTINCT + col1 + 37 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9634
SELECT ALL + 59 * CAST ( NULL AS INTEGER ) + MIN ( DISTINCT + col1 + 37 ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9635
SELECT ALL * FROM tab1 WHERE ( NULL ) BETWEEN + col2 AND ( CAST( 34 AS SIGNED ) * - col0 )
----

skipif mysql # not compatible
query III rowsort label-9635
SELECT ALL * FROM tab1 WHERE ( NULL ) BETWEEN + col2 AND ( CAST ( 34 AS INTEGER ) * - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 IS NOT NULL OR ( + 13 * - 5 + 10 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9637
SELECT DISTINCT 8 FROM tab0 WHERE NOT CAST( col2 AS SIGNED ) IS NULL
----
8

skipif mysql # not compatible
query I rowsort label-9637
SELECT DISTINCT 8 FROM tab0 WHERE NOT CAST ( col2 AS INTEGER ) IS NULL
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT DISTINCT + COUNT( * ) * + 44 FROM tab0
----
132

skipif mysql # not compatible
query I rowsort label-9638
SELECT DISTINCT + COUNT ( * ) * + 44 FROM tab0
----
132

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9639
SELECT col0 + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9639
SELECT col0 + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9640
SELECT - - 34 * + CAST( - CAST( - 8 AS SIGNED ) AS SIGNED ) AS col1 FROM tab2 cor0
----
272
272
272

skipif mysql # not compatible
query I rowsort label-9640
SELECT - - 34 * + CAST ( - CAST ( - 8 AS INTEGER ) AS INTEGER ) AS col1 FROM tab2 cor0
----
272
272
272

query I rowsort
SELECT ALL 0 + - col2 AS col2 FROM tab2 AS cor0 WHERE NULL IN ( col2 )
----

query I rowsort
SELECT ALL ( + 29 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( - col1 + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9644
SELECT DISTINCT col0 DIV + 11 FROM tab0 AS cor0
----
1
7
8

skipif mysql # not compatible
query I rowsort label-9644
SELECT DISTINCT col0 / + 11 FROM tab0 AS cor0
----
1
7
8

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 36 + col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 - + col0 IN ( - 28 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col2 AS col1, - ( col2 ) * 12 FROM tab2 AS cor0
----
-23
-276
-40
-480
-58
-696

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND ( + 28 )
----

query I rowsort
SELECT + 57 * 37 AS col1 FROM tab0 AS cor0
----
2109
2109
2109

query I rowsort
SELECT + - col2 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 >= col2 + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9652
SELECT SUM( 59 ) AS col0 FROM tab0
----
177

skipif mysql # not compatible
query I rowsort label-9652
SELECT SUM ( 59 ) AS col0 FROM tab0
----
177

query I rowsort
SELECT + 60 + - 50 FROM tab2
----
10
10
10

query I rowsort
SELECT + 39 AS col1 FROM tab2 AS cor0 WHERE + 44 IN ( - ( - col1 ) )
----

query II rowsort
SELECT + - 80 + - + col0, + 66 * + - col0 + + 47 AS col0 FROM tab0 AS cor0
----
-167
-5695
-177
-6355
-95
-943

query I rowsort
SELECT - + col1 FROM tab1 AS cor0 WHERE NULL = + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - + 29 + - col1 col0 FROM tab0 AS cor0
----
-2544
-2814
-516

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * - col2 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 * - col2 + - - col0 FROM tab2 cor0
----
1219
3144
3961

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT DISTINCT - COUNT( * ) - + - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-9660
SELECT DISTINCT - COUNT ( * ) - + - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9661
SELECT DISTINCT + ( - 11 ) - + + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-20

skipif mysql # not compatible
query I rowsort label-9661
SELECT DISTINCT + ( - 11 ) - + + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-20

query III rowsort
SELECT * FROM tab2 WHERE - 57 < + + ( - 49 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9663
SELECT DISTINCT - + col0 AS col1, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-9663
SELECT DISTINCT - + col0 AS col1, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

query I rowsort
SELECT 37 - + col0 - - col1 + col0 AS col0 FROM tab1 AS cor0
----
42
51
84

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 11 * - + col0 + - + ( - col2 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 IN ( + 55 + 65 + - col1 )
----

query I rowsort
SELECT ALL 74 * - - 15 FROM tab2 cor0
----
1110
1110
1110

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9668
SELECT - ( - + col2 ) + + 50 + - CAST( - col2 AS SIGNED ) DIV + ( 56 * 50 + + col2 ) FROM tab0 AS cor0
----
149
60
97

skipif mysql # not compatible
query I rowsort label-9668
SELECT - ( - + col2 ) + + 50 + - CAST ( - col2 AS INTEGER ) / + ( 56 * 50 + + col2 ) FROM tab0 AS cor0
----
149
60
97

query I rowsort
SELECT + 30 * + + col2 + 66 + + + col0 FROM tab2 cor0
----
1330
1881
802

query I rowsort
SELECT col1 * + col0 + 28 AS col1 FROM tab2 cor0 WHERE + 64 IN ( - col0, col0 )
----
4956

query I rowsort
SELECT DISTINCT + - 44 * col2 + + 50 AS col2 FROM tab2 AS cor0 WHERE + 89 IS NOT NULL
----
-1710
-2502
-962

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col2 + - 32 NOT IN ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9673
SELECT CAST( NULL AS SIGNED ) / - 21 + - - AVG ( DISTINCT 42 ) + - SUM( - col1 ) col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9673
SELECT CAST ( NULL AS INTEGER ) / - 21 + - - AVG ( DISTINCT 42 ) + - SUM ( - col1 ) col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9674
SELECT - 32 + - CAST( NULL AS SIGNED ) - + 27 * - col1 col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9674
SELECT - 32 + - CAST ( NULL AS INTEGER ) - + 27 * - col1 col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 55 - col2 AS col2 FROM tab0
----
-102
-154
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-9676
SELECT + SUM( ALL - col0 ), + 83 AS col2 FROM tab1
----
-227
83

skipif mysql # not compatible
query II rowsort label-9676
SELECT + SUM ( ALL - col0 ), + 83 AS col2 FROM tab1
----
-227
83

query I rowsort
SELECT col1 * 92 * - + col0 FROM tab0
----
-111780
-168084
-8924

onlyif mysql # DIV for integer division: 
query I rowsort label-9678
SELECT ALL + col0 DIV + col0 - + - col2 AS col0 FROM tab2
----
24
41
59

skipif mysql # not compatible
query I rowsort label-9678
SELECT ALL + col0 / + col0 - + - col2 AS col0 FROM tab2
----
24
41
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT DISTINCT COUNT( * ) * - 20 AS col0 FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-9679
SELECT DISTINCT COUNT ( * ) * - 20 AS col0 FROM tab2
----
-60

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + 33 / 29 - + col2 ) IN ( - col0 / col2 )
----

query I rowsort
SELECT 32 * + col0 AS col0 FROM tab1
----
1632
2720
2912

onlyif mysql # DIV for integer division: 
query I rowsort label-9682
SELECT ALL + col1 DIV - 45 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9682
SELECT ALL + col1 / - 45 FROM tab1
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9683
SELECT AVG ( - col2 ) * + + 17 * - - CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9683
SELECT AVG ( - col2 ) * + + 17 * - - CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9684
SELECT DISTINCT - COUNT( * ) * COUNT( * ) AS col0, + 55 * - + 70 AS col0 FROM tab1
----
-9
-3850

skipif mysql # not compatible
query II rowsort label-9684
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) AS col0, + 55 * - + 70 AS col0 FROM tab1
----
-9
-3850

query II rowsort
SELECT - + col2 * + col1 AS col2, 76 FROM tab0 cor0
----
-210
76
-3807
76
-99
76

query II rowsort
SELECT DISTINCT - col0 AS col1, + col1 * - 96 * - col1 FROM tab0 cor0
----
-15
629856
-87
42336
-97
96

query I rowsort
SELECT DISTINCT col1 * 86 FROM tab2 AS cor0
----
4386
5762
6622

onlyif mysql # aggregate syntax: 
query I rowsort label-9688
SELECT - - ( COUNT( * ) ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9688
SELECT - - ( COUNT ( * ) ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9689
SELECT + col1 DIV + - col1 AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9689
SELECT + col1 / + - col1 AS col0 FROM tab0
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) NOT IN ( 75 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 74 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9692
SELECT DISTINCT + - col2 DIV - col0 + col0 + + col2 AS col1 FROM tab2 AS cor0
----
104
133
69

skipif mysql # not compatible
query I rowsort label-9692
SELECT DISTINCT + - col2 / - col0 + col0 + + col2 AS col1 FROM tab2 AS cor0
----
104
133
69

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 + + col1 + + - col1 * + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9694
SELECT DISTINCT + ( + - COUNT( * ) ) col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9694
SELECT DISTINCT + ( + - COUNT ( * ) ) col1 FROM tab1 cor0
----
-3

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab0 AS cor0 WHERE ( + col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9696
SELECT DISTINCT col1 + col1 FROM tab2 AS cor0 WHERE NOT ( + col1 ) NOT BETWEEN ( NULL ) AND ( - - CAST( + + col0 AS SIGNED ) + - col0 )
----

skipif mysql # not compatible
query I rowsort label-9696
SELECT DISTINCT col1 + col1 FROM tab2 AS cor0 WHERE NOT ( + col1 ) NOT BETWEEN ( NULL ) AND ( - - CAST ( + + col0 AS INTEGER ) + - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + ( 81 ) col2 FROM tab1
----
4779
5508
7776

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9698
SELECT DISTINCT col1 * - + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9698
SELECT DISTINCT col1 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9699
SELECT COUNT( * ) DIV + + 71 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9699
SELECT COUNT ( * ) / + + 71 AS col0 FROM tab0
----
0

query II rowsort
SELECT ALL + col2, 28 FROM tab0
----
10
28
47
28
99
28

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9701
SELECT * FROM tab1 WHERE ( NULL ) BETWEEN ( NULL ) AND - col2 + + ( - CAST( + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9701
SELECT * FROM tab1 WHERE ( NULL ) BETWEEN ( NULL ) AND - col2 + + ( - CAST ( + col0 AS INTEGER ) )
----

query II rowsort
SELECT ALL - col1 AS col1, - ( + + 5 ) FROM tab1
----
-14
-5
-47
-5
-5
-5

query I rowsort
SELECT - 20 AS col2 FROM tab0 WHERE + col1 + - col0 NOT BETWEEN NULL AND ( + col1 + - col1 )
----
-20

query I rowsort
SELECT + 12 * col0 FROM tab1 WHERE + col1 * - col1 / - col0 IS NULL
----

query I rowsort
SELECT DISTINCT col2 * + - col2 * col1 * 21 FROM tab0
----
-205821
-3757509
-44100

query I rowsort
SELECT DISTINCT + + col2 * + 99 AS col1 FROM tab0 AS cor0
----
4653
9801
990

query I rowsort
SELECT - ( 61 ) AS col1 FROM tab0 AS cor0
----
-61
-61
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9708
SELECT + CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9708
SELECT + CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 38 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT COUNT( * ) + + + 70 FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-9710
SELECT COUNT ( * ) + + + 70 FROM tab0
----
73

query I rowsort
SELECT - 76 AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

query I rowsort
SELECT DISTINCT + 83 * 41 FROM tab1 AS cor0
----
3403

query I rowsort
SELECT - ( + + 59 ) * 95 AS col2 FROM tab2 AS cor0
----
-5605
-5605
-5605

query I rowsort
SELECT ALL 45 * - - 94 + + 25 AS col1 FROM tab0 AS cor0
----
4255
4255
4255

query I rowsort
SELECT ALL - col2 * 6 * + 84 + + + col0 AS col0 FROM tab2 AS cor0
----
-11546
-20096
-29157

query I rowsort
SELECT DISTINCT + + col1 + - - col1 * + col0 AS col1 FROM tab1 AS cor0
----
430
4324
728

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9717
SELECT + 61 DIV - 23 - COUNT( * ) AS col2 FROM tab2 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9717
SELECT + 61 / - 23 - COUNT ( * ) AS col2 FROM tab2 cor0
----
-5

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) > col0 * col0 * col0 - + col0 / + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - + col0 col0 FROM tab2
----
104
133
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9720
SELECT col2 - CAST( 96 AS SIGNED ) AS col1 FROM tab0
----
-49
-86
3

skipif mysql # not compatible
query I rowsort label-9720
SELECT col2 - CAST ( 96 AS INTEGER ) AS col1 FROM tab0
----
-49
-86
3

query I rowsort
SELECT ALL - 94 + - + col1 AS col2 FROM tab2
----
-145
-161
-171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9722
SELECT DISTINCT CAST( NULL AS SIGNED ) * MAX( DISTINCT + ( - 94 ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9722
SELECT DISTINCT CAST ( NULL AS INTEGER ) * MAX ( DISTINCT + ( - 94 ) ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9723
SELECT col1 AS col2, + CAST( + - col0 AS SIGNED ) + 47 AS col2 FROM tab0
----
1
-50
21
-40
81
32

skipif mysql # not compatible
query II rowsort label-9723
SELECT col1 AS col2, + CAST ( + - col0 AS INTEGER ) + 47 AS col2 FROM tab0
----
1
-50
21
-40
81
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT ALL 95 * - COUNT( * ) AS col0 FROM tab1
----
-285

skipif mysql # not compatible
query I rowsort label-9724
SELECT ALL 95 * - COUNT ( * ) AS col0 FROM tab1
----
-285

onlyif mysql # DIV for integer division: 
query I rowsort label-9725
SELECT ALL - 1 DIV - col0 * + col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9725
SELECT ALL - 1 / - col0 * + col2 FROM tab2
----
0
0
0

query I rowsort
SELECT - col0 + - - col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( + col2 + 90 + col1 * col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9727
SELECT - col0 DIV 20 FROM tab0 cor0
----
-4
-4
0

skipif mysql # not compatible
query I rowsort label-9727
SELECT - col0 / 20 FROM tab0 cor0
----
-4
-4
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9728
SELECT COUNT( * ) * - COUNT( ALL + + col0 ) AS col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9728
SELECT COUNT ( * ) * - COUNT ( ALL + + col0 ) AS col0 FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9729
SELECT + MIN( DISTINCT - + 20 ) AS col2 FROM tab1
----
-20

skipif mysql # not compatible
query I rowsort label-9729
SELECT + MIN ( DISTINCT - + 20 ) AS col2 FROM tab1
----
-20

query I rowsort
SELECT 84 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 25 > NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 + + - col2 / col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9733
SELECT - col2 DIV - + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9733
SELECT - col2 / - + col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE + col1 + - 74 >= - 6
----
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 90 * - + 43 IS NOT NULL
----

query I rowsort
SELECT ALL + - ( - ( col0 ) ) FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9737
SELECT - + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9737
SELECT - + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT DISTINCT + col0 + + 46 FROM tab1 AS cor0
----
131
137
97

query I rowsort
SELECT + - ( - + col1 ) FROM tab1 cor0
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9740
SELECT ALL CAST( NULL AS SIGNED ) * + ( 39 ) * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9740
SELECT ALL CAST ( NULL AS INTEGER ) * + ( 39 ) * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9741
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 44 + - 34 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9741
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 44 + - 34 AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9742
SELECT + ( + CAST( NULL AS SIGNED ) ) + - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9742
SELECT + ( + CAST ( NULL AS INTEGER ) ) + - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9743
SELECT col0 * - 63 + + ( + CAST( NULL AS SIGNED ) ) / col1 * - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9743
SELECT col0 * - 63 + + ( + CAST ( NULL AS INTEGER ) ) / col1 * - col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9744
SELECT DISTINCT col0 * - col0 DIV - col0 + - col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9744
SELECT DISTINCT col0 * - col0 / - col0 + - col0 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = col2 + - - col2
----

query III rowsort
SELECT * FROM tab2 WHERE 61 + + 27 + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) + - col1 col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 * 92 + + col1 * - - 9 AS col0 FROM tab0 cor0
----
2109
8193
8933

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NULL > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9750
SELECT - - 51 * + col2 + + col1 DIV + + 78 FROM tab2 cor0
----
1173
2040
2958

skipif mysql # not compatible
query I rowsort label-9750
SELECT - - 51 * + col2 + + col1 / + + 78 FROM tab2 cor0
----
1173
2040
2958

query I rowsort
SELECT DISTINCT col2 * + col1 + + 80 AS col2 FROM tab2 AS cor0
----
1253
3160
3966

query I rowsort
SELECT DISTINCT + + col2 + - + col1 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT MIN( 5 ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-9753
SELECT MIN ( 5 ) AS col2 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT SUM( col0 ) AS col2 FROM tab1 AS cor0 WHERE 2 * - col2 * col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9754
SELECT SUM ( col0 ) AS col2 FROM tab1 AS cor0 WHERE 2 * - col2 * col1 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( NULL ) = + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9756
SELECT MAX( 60 ) + + CAST( + 74 AS SIGNED ) + SUM( DISTINCT ( - col0 ) ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9756
SELECT MAX ( 60 ) + + CAST ( + 74 AS INTEGER ) + SUM ( DISTINCT ( - col0 ) ) FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9757
SELECT + SUM( ALL - - col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-9757
SELECT + SUM ( ALL - - col2 ) FROM tab2 AS cor0
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9758
SELECT 76 DIV CAST( + ( COUNT( * ) ) AS SIGNED ) AS col1 FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-9758
SELECT 76 / CAST ( + ( COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab0
----
25

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ( col2 ) * - + col2, col2 FROM tab2 WHERE NOT col0 / + + 5 IS NOT NULL
----

query I rowsort
SELECT col1 * + col0 * + 2 AS col0 FROM tab2
----
10050
4692
9856

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9762
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN + - col1 + CAST( + col2 AS SIGNED ) AND - col1
----

skipif mysql # not compatible
query III rowsort label-9762
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN + - col1 + CAST ( + col2 AS INTEGER ) AND - col1
----

query II rowsort
SELECT DISTINCT col0 * - + 32 * + 47 + + + col2 + + col1 AS col0, col1 AS col2 FROM tab0 cor0
----
-130817
21
-145788
1
-22432
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT ALL MAX( ALL - 66 ) AS col0 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-9764
SELECT ALL MAX ( ALL - 66 ) AS col0 FROM tab1
----
-66

query I rowsort
SELECT ALL + - 53 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 col0 FROM tab2 AS cor0 WHERE NOT NULL < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT DISTINCT ( ( + + COUNT( * ) ) ) + COUNT( * ) FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-9767
SELECT DISTINCT ( ( + + COUNT ( * ) ) ) + COUNT ( * ) FROM tab0 cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 6 + + + col0 * col0 col1 FROM tab1 AS cor0
----
2595
7219
8275

query I rowsort
SELECT col2 + 57 FROM tab0 AS cor0
----
104
156
67

query I rowsort
SELECT DISTINCT + 9 * + 30 + + col1 + col0 FROM tab1 AS cor0
----
335
360
408

query I rowsort
SELECT col2 * + ( - col1 ) - - col1 AS col1 FROM tab0 AS cor0
----
-189
-3726
-98

onlyif mysql # DIV for integer division: 
query II rowsort label-9772
SELECT ALL - ( - col2 ) DIV col2 AS col1, col2 FROM tab0 AS cor0
----
1
10
1
47
1
99

skipif mysql # not compatible
query II rowsort label-9772
SELECT ALL - ( - col2 ) / col2 AS col1, col2 FROM tab0 AS cor0
----
1
10
1
47
1
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + col2 * - 65 * 79 AND - + col2
----

query I rowsort
SELECT DISTINCT col2 + 15 AS col0 FROM tab1
----
111
74
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9775
SELECT ALL COUNT( DISTINCT 95 ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9775
SELECT ALL COUNT ( DISTINCT 95 ) AS col2 FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9776
SELECT ( + + CAST( + col1 AS SIGNED ) ) * - + col1 FROM tab1
----
-196
-2209
-25

skipif mysql # not compatible
query I rowsort label-9776
SELECT ( + + CAST ( + col1 AS INTEGER ) ) * - + col1 FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT ALL - col2 * + ( + col1 ) + + + col1 FROM tab0
----
-189
-3726
-98

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND + col2 + col1 * + + col2
----

query I rowsort
SELECT + - 42 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 30 * - + col1 FROM tab1
----
-1410
-150
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT MAX( - 4 ) * 24 col0 FROM tab1 WHERE ( 21 * 91 / - ( ( + - col0 ) ) ) IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9781
SELECT MAX ( - 4 ) * 24 col0 FROM tab1 WHERE ( 21 * 91 / - ( ( + - col0 ) ) ) IS NULL
----
NULL

query II rowsort
SELECT - - col1 AS col1, + col0 AS col2 FROM tab2 AS cor0
----
51
46
67
75
77
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9783
SELECT DISTINCT - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL < 47
----

skipif mysql # not compatible
query I rowsort label-9783
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL < 47
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 93 BETWEEN NULL AND - - 25 + + - 80
----

query I rowsort
SELECT ALL - - col2 * + col2 + + + col2 + + col0 AS col0 FROM tab2 AS cor0
----
1704
3497
598

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT DISTINCT + COUNT( * ) + + + 29 FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-9786
SELECT DISTINCT + COUNT ( * ) + + + 29 FROM tab0
----
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 41 * - col1 * + 5 col0, col1 AS col0 FROM tab0 AS cor0
----
-16605
81
-205
1
-4305
21

onlyif mysql # DIV for integer division: 
query I rowsort label-9788
SELECT DISTINCT + col0 DIV - col1 AS col1 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9788
SELECT DISTINCT + col0 / - col1 AS col1 FROM tab2 AS cor0
----
-1
0

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 40 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + - 66 ) col1 FROM tab1 AS cor0
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT SUM( ALL - col2 ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-121

skipif mysql # not compatible
query I rowsort label-9791
SELECT SUM ( ALL - col2 ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - 45 col2 FROM tab2
----
2295
3015
3465

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9793
SELECT col0 / CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9793
SELECT col0 / CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + 7 NOT IN ( + - 51 / + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col2, 48 AS col2 FROM tab2
----
23
48
40
48
58
48

query III rowsort
SELECT ALL * FROM tab1 WHERE - 65 IS NULL
----

query I rowsort
SELECT ALL 33 * + col0 * + col0 FROM tab2 AS cor0
----
135168
185625
69828

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 WHERE col2 + - col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9798
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 WHERE col2 + - col0 IS NOT NULL
----
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( + 99 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9800
SELECT DISTINCT + CAST( col2 AS SIGNED ) * - col2 + + col0 AS col2, - 94 AS col0 FROM tab2 AS cor0
----
-1536
-94
-3289
-94
-483
-94

skipif mysql # not compatible
query II rowsort label-9800
SELECT DISTINCT + CAST ( col2 AS INTEGER ) * - col2 + + col0 AS col2, - 94 AS col0 FROM tab2 AS cor0
----
-1536
-94
-3289
-94
-483
-94

query I rowsort
SELECT 74 * + col1 * + 79 AS col2 FROM tab2 AS cor0
----
298146
391682
450142

query I rowsort
SELECT DISTINCT + col0 + ( + col0 ) AS col2 FROM tab1 AS cor0
----
102
170
182

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 81 - - - col2 * + col0 * - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( - + col0 ), 78 col0 FROM tab1 AS cor0
----
51
78
85
78
91
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9805
SELECT ALL - + col0 + - 6 * - + 92 * + col1, col2 * - CAST( + ( - col0 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
11505
870
44697
705
455
9603

skipif mysql # not compatible
query II rowsort label-9805
SELECT ALL - + col0 + - 6 * - + 92 * + col1, col2 * - CAST ( + ( - col0 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
11505
870
44697
705
455
9603

query I rowsort
SELECT ALL - col0 + 82 FROM tab1
----
-3
-9
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT DISTINCT COUNT( * ) + - 37 FROM tab2 WHERE NOT NULL IS NULL
----
-37

skipif mysql # not compatible
query I rowsort label-9807
SELECT DISTINCT COUNT ( * ) + - 37 FROM tab2 WHERE NOT NULL IS NULL
----
-37

query I rowsort
SELECT 92 + - - 80 FROM tab0
----
172
172
172

onlyif mysql # DIV for integer division: 
query I rowsort label-9809
SELECT col2 DIV - col0 + + col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9809
SELECT col2 / - col0 + + col1 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9810
SELECT - COUNT( * ) DIV - + ( - COUNT( - col2 ) ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9810
SELECT - COUNT ( * ) / - + ( - COUNT ( - col2 ) ) AS col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - + col0 * col1 * col0 + col2 FROM tab0 AS cor0
----
-158939
-18178
-9310

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col1 ) BETWEEN + - 21 AND - + ( - - col0 ) * - + 70 + - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9813
SELECT + 10 DIV + + COUNT( - col1 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9813
SELECT + 10 / + + COUNT ( - col1 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9814
SELECT ALL - col0 * col2 DIV - col2 - - col0 - ( + col2 ) * - col2 AS col0 FROM tab2
----
1728
3514
621

skipif mysql # not compatible
query I rowsort label-9814
SELECT ALL - col0 * col2 / - col2 - - col0 - ( + col2 ) * - col2 AS col0 FROM tab2
----
1728
3514
621

query I rowsort
SELECT 20 - - + 69 AS col1 FROM tab2
----
89
89
89

query II rowsort
SELECT ALL col2 AS col2, - 94 FROM tab2
----
23
-94
40
-94
58
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT 68 * + COUNT( * ) AS col0 FROM tab0
----
204

skipif mysql # not compatible
query I rowsort label-9817
SELECT 68 * + COUNT ( * ) AS col0 FROM tab0
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-9818
SELECT ALL + SUM( - col1 ) * - 63 FROM tab1
----
4158

skipif mysql # not compatible
query I rowsort label-9818
SELECT ALL + SUM ( - col1 ) * - 63 FROM tab1
----
4158

onlyif mysql # DIV for integer division: 
query I rowsort label-9819
SELECT ALL 69 DIV + + col2 col0 FROM tab0 AS cor0
----
0
1
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9819
SELECT ALL 69 / + + col2 col0 FROM tab0 AS cor0
----
0
1
6

query I rowsort
SELECT ALL + col0 * - + 9 * + col1 AS col2 FROM tab1 AS cor0
----
-3825
-38493
-6426

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( + col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9822
SELECT + 80 DIV - ( col0 ) AS col0, col2 AS col1 FROM tab0
----
-5
47
0
10
0
99

skipif mysql # not compatible
query II rowsort label-9822
SELECT + 80 / - ( col0 ) AS col0, col2 AS col1 FROM tab0
----
-5
47
0
10
0
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9823
SELECT - col0 * - col1 * + 44 * + - CAST( col0 AS SIGNED ) col0 FROM tab1
----
-1589500
-1602216
-17125108

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9823
SELECT - col0 * - col1 * + 44 * + - CAST ( col0 AS INTEGER ) col0 FROM tab1
----
-1589500
-1602216
-17125108

onlyif mysql # DIV for integer division: 
query I rowsort label-9824
SELECT + 46 DIV - 24 AS col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9824
SELECT + 46 / - 24 AS col2 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT - 60 * 10 FROM tab2
----
-600
-600
-600

query I rowsort
SELECT + 78 * col1 FROM tab2
----
3978
5226
6006

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT - COUNT( DISTINCT - 25 ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-9827
SELECT - COUNT ( DISTINCT - 25 ) AS col1 FROM tab1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9828
SELECT + ( col1 ) DIV - - 94 + + col0 col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9828
SELECT + ( col1 ) / - - 94 + + col0 col0 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT DISTINCT - COUNT( DISTINCT + ( - + col2 ) ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9829
SELECT DISTINCT - COUNT ( DISTINCT + ( - + col2 ) ) FROM tab2 cor0
----
-3

query I rowsort
SELECT ALL + + 6 FROM tab2 AS cor0
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9831
SELECT - - COUNT( + - col0 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9831
SELECT - - COUNT ( + - col0 ) AS col2 FROM tab2 AS cor0
----
3

query II rowsort
SELECT ALL - col2, col0 AS col1 FROM tab1
----
-59
85
-68
91
-96
51

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 6 + - col0 <= col0 * col1
----

query II rowsort
SELECT - 43 AS col2, col1 AS col2 FROM tab0 AS cor0
----
-43
1
-43
21
-43
81

query I rowsort
SELECT DISTINCT 27 + - - 36 AS col0 FROM tab0 AS cor0
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-9836
SELECT + + COUNT( * ) AS col2, COUNT( * ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9836
SELECT + + COUNT ( * ) AS col2, COUNT ( * ) FROM tab1 AS cor0
----
3
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9837
SELECT - SUM( DISTINCT col0 ) DIV 53 AS col0 FROM tab1 WHERE NULL IS NULL
----
-4

skipif mysql # not compatible
query I rowsort label-9837
SELECT - SUM ( DISTINCT col0 ) / 53 AS col0 FROM tab1 WHERE NULL IS NULL
----
-4

query I rowsort
SELECT + col2 * - - col2 * 26 AS col0 FROM tab0
----
254826
2600
57434

query I rowsort
SELECT - 51 * + col0 AS col0 FROM tab1
----
-2601
-4335
-4641

query I rowsort
SELECT DISTINCT ( - - 86 ) + 95 AS col1 FROM tab1
----
181

query I rowsort
SELECT ALL - col1 * - - 12 FROM tab1 WHERE + + col1 NOT BETWEEN NULL AND - 47
----
-168
-564
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9842
SELECT ( + 82 ) + + CAST( NULL AS SIGNED ) FROM tab0, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9842
SELECT ( + 82 ) + + CAST ( NULL AS INTEGER ) FROM tab0, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT ALL MAX( DISTINCT - col0 ) * + 14 FROM tab2
----
-644

skipif mysql # not compatible
query I rowsort label-9843
SELECT ALL MAX ( DISTINCT - col0 ) * + 14 FROM tab2
----
-644

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT - 36 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT ALL - 62 * - COUNT( * ) * + - COUNT( * ) FROM tab2
----
-558

skipif mysql # not compatible
query I rowsort label-9845
SELECT ALL - 62 * - COUNT ( * ) * + - COUNT ( * ) FROM tab2
----
-558

query I rowsort
SELECT ALL - col0 + - 27 FROM tab1 cor0
----
-112
-118
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9847
SELECT - MAX( ALL + col1 ) + 39 * + - COUNT( ALL - + 10 ) AS col1 FROM tab2 AS cor0
----
-194

skipif mysql # not compatible
query I rowsort label-9847
SELECT - MAX ( ALL + col1 ) + 39 * + - COUNT ( ALL - + 10 ) AS col1 FROM tab2 AS cor0
----
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT MIN( ALL - 46 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9848
SELECT MIN ( ALL - 46 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9849
SELECT - col1 + + CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
-108
-96
-98

skipif mysql # not compatible
query I rowsort label-9849
SELECT - col1 + + CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
-108
-96
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-9850
SELECT 91 DIV + - 61 + - col0 FROM tab2 AS cor0
----
-47
-65
-76

skipif mysql # not compatible
query I rowsort label-9850
SELECT 91 / + - 61 + - col0 FROM tab2 AS cor0
----
-47
-65
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9851
SELECT COUNT( * ) / - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9851
SELECT COUNT ( * ) / - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) >= col1
----

query I rowsort
SELECT ALL - col0 * + + col0 - - col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-2587
-7220
-8234

onlyif mysql # DIV for integer division: 
query I rowsort label-9854
SELECT DISTINCT + + col2 DIV - col0 AS col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9854
SELECT DISTINCT + + col2 / - col0 AS col2 FROM tab2 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 93 col2 FROM tab2 AS cor0
----
-93
-93
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-9856
SELECT ALL - col0 DIV + + col0 + + col0 AS col2 FROM tab2 AS cor0
----
45
63
74

skipif mysql # not compatible
query I rowsort label-9856
SELECT ALL - col0 / + + col0 + + col0 AS col2 FROM tab2 AS cor0
----
45
63
74

query I rowsort
SELECT DISTINCT + 20 FROM tab0 cor0 WHERE NOT - col2 + + - col2 / + col0 IS NULL
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9858
SELECT ALL - CAST( - - ( - + col2 ) AS SIGNED ) FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-9858
SELECT ALL - CAST ( - - ( - + col2 ) AS INTEGER ) FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 80 + + 27 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT DISTINCT + COUNT( DISTINCT + + col1 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9860
SELECT DISTINCT + COUNT ( DISTINCT + + col1 ) AS col0 FROM tab2
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN - + col2 AND + col0
----

query I rowsort
SELECT DISTINCT ( + 44 ) AS col0 FROM tab2
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9863
SELECT + CAST( NULL AS SIGNED ) * - - col1 col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9863
SELECT + CAST ( NULL AS INTEGER ) * - - col1 col2 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT 92, + col2 AS col0 FROM tab1
----
92
59
92
68
92
96

query II rowsort
SELECT DISTINCT + col2, 80 + - col0 FROM tab2
----
23
34
40
16
58
5

query II rowsort
SELECT ALL 82 AS col0, col0 - - col2 * col1 FROM tab0
----
82
196
82
297
82
3822

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9867
SELECT - CAST( NULL AS DECIMAL ) * - col1 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9867
SELECT - CAST ( NULL AS REAL ) * - col1 col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 24 + - col2 + + + 98 AS col1 FROM tab1
----
26
54
63

query II rowsort
SELECT col2 * + - ( + col1 ) + - 1, + 77 AS col0 FROM tab2 AS cor0
----
-1174
77
-3081
77
-3887
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9870
SELECT ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT DISTINCT + 55 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL NOT IN ( + 24 )
----

query I rowsort
SELECT 85 FROM tab0 WHERE - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9873
SELECT * FROM tab0 AS cor0 WHERE + CAST( col2 AS SIGNED ) + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9873
SELECT * FROM tab0 AS cor0 WHERE + CAST ( col2 AS INTEGER ) + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - col2 FROM tab1 AS cor0 WHERE NOT col1 = + + col2
----
-59
-68
-96

query I rowsort
SELECT ALL - col1 + - col1 + + col2 + - col1 FROM tab0 AS cor0
----
-196
-53
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT ALL - SUM( DISTINCT - - 99 ) + 9 AS col2 FROM tab2 cor0
----
-90

skipif mysql # not compatible
query I rowsort label-9876
SELECT ALL - SUM ( DISTINCT - - 99 ) + 9 AS col2 FROM tab2 cor0
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9877
SELECT ALL + + CAST( NULL AS SIGNED ) + - COUNT( * ) * + 26 AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9877
SELECT ALL + + CAST ( NULL AS INTEGER ) + - COUNT ( * ) * + 26 AS col2 FROM tab2 cor0
----
NULL

query II rowsort
SELECT ALL col1 - - col0, + 67 AS col1 FROM tab0 cor0
----
108
67
96
67
98
67

query I rowsort
SELECT + 68 + col1 FROM tab1
----
115
73
82

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN - + 15 * - col0 * col1 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN + 26 AND 85
----

query I rowsort
SELECT ALL 61 * - col2 FROM tab1
----
-3599
-4148
-5856

query I rowsort
SELECT ALL col2 * col1 - col0 * col1 AS col1 FROM tab1
----
-1081
-130
630

query II rowsort
SELECT ALL 28 * ( - + col2 ) * col1, + col0 AS col1 FROM tab1
----
-37632
51
-8260
85
-89488
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, + 77 col1 FROM tab1
----
14
77
47
77
5
77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( - + col2 ) * - col1 <> NULL
----

query I rowsort
SELECT DISTINCT - col0 * - + 19 - + col2 * col0 - - 58 FROM tab0 AS cor0
----
-362
-7702
841

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * + col0 NOT IN ( - - 82 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 94 * + 11 IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9890
SELECT 12 DIV + col0 * - - col2 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9890
SELECT 12 / + col0 * - - col2 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT 9 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9892
SELECT ALL + CAST( NULL AS SIGNED ) * - 33 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9892
SELECT ALL + CAST ( NULL AS INTEGER ) * - 33 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 15 * - - col1 <= NULL
----

query I rowsort
SELECT + 89 / + - col0 + + col1 FROM tab2 AS cor0 WHERE NOT + ( - col2 ) * + 8 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9895
SELECT - - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9895
SELECT - - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 83 > 96
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - ( + 40 ) AS col1 FROM tab2 cor0
----
40

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 89 ) IS NOT NULL
----

query I rowsort
SELECT ( + 86 ) AS col0 FROM tab1 cor0
----
86
86
86

query I rowsort
SELECT + col2 * + col1 * col0 FROM tab0 cor0
----
18270
57105
9603

query I rowsort
SELECT ALL - col0 * + 45 - col2 FROM tab0 AS cor0
----
-3925
-4464
-722

onlyif mysql # aggregate syntax: 
query I rowsort label-9902
SELECT ALL COUNT( * ) * + 85 FROM tab0
----
255

skipif mysql # not compatible
query I rowsort label-9902
SELECT ALL COUNT ( * ) * + 85 FROM tab0
----
255

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 95 * - col2 col2 FROM tab2
----
2185
3800
5510

query II rowsort
SELECT ALL - 6, col2 + - 96 AS col0 FROM tab1
----
-6
-28
-6
-37
-6
0

query I rowsort
SELECT col2 * - 55 AS col1 FROM tab1
----
-3245
-3740
-5280

query III rowsort
SELECT * FROM tab1 WHERE NOT + 88 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9907
SELECT ALL col2 DIV + - col1 * - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9907
SELECT ALL col2 / + - col1 * - col1 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9908
SELECT + 48, + 36 DIV - 47 * + col2 AS col1 FROM tab1 AS cor0
----
48
0
48
0
48
0

skipif mysql # not compatible
query II rowsort label-9908
SELECT + 48, + 36 / - 47 * + col2 AS col1 FROM tab1 AS cor0
----
48
0
48
0
48
0

query I rowsort
SELECT - 42 FROM tab2 WHERE - col0 * - col2 IN ( 20 * col0, ( + - col1 ) + + 0 * + col2 - - col0 )
----

query I rowsort
SELECT DISTINCT + 19 + + col0 FROM tab2 AS cor0
----
65
83
94

query I rowsort
SELECT ALL + + ( + + col1 ) + col0 * + 80 * - - col0 AS col0 FROM tab1 AS cor0
----
208094
578005
662527

query II rowsort
SELECT - col0, 20 AS col0 FROM tab1 AS cor0
----
-51
20
-85
20
-91
20

query I rowsort
SELECT ( 86 ) FROM tab0 AS cor0
----
86
86
86

onlyif mysql # DIV for integer division: 
query I rowsort label-9914
SELECT DISTINCT + + 40 + + col0 DIV + - 25 FROM tab0 AS cor0
----
37
40

skipif mysql # not compatible
query I rowsort label-9914
SELECT DISTINCT + + 40 + + col0 / + - 25 FROM tab0 AS cor0
----
37
40

onlyif mysql # aggregate syntax: 
query II rowsort label-9915
SELECT + COUNT( * ), COUNT( * ) AS col2 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9915
SELECT + COUNT ( * ), COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3
3

query I rowsort
SELECT ALL - - 43 + - 59 AS col1 FROM tab2 AS cor0
----
-16
-16
-16

query I rowsort
SELECT 33 FROM tab2 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT ALL - col1 - - - col1 FROM tab1 AS cor0
----
-10
-28
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT + 59 - - + COUNT( * ) AS col2 FROM tab0
----
62

skipif mysql # not compatible
query I rowsort label-9919
SELECT + 59 - - + COUNT ( * ) AS col2 FROM tab0
----
62

query I rowsort
SELECT + 7 * - col1 - 44 AS col1 FROM tab1
----
-142
-373
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT DISTINCT - 62 + 25 + - - MIN( - col0 ) - - - 35 AS col0 FROM tab1
----
-163

skipif mysql # not compatible
query I rowsort label-9921
SELECT DISTINCT - 62 + 25 + - - MIN ( - col0 ) - - - 35 AS col0 FROM tab1
----
-163

query I rowsort
SELECT ALL - 36 AS col1 FROM tab0 WHERE + col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + 63 + + col0 NOT IN ( ( 5 ), col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 94 - col0 FROM tab0
----
-3
7
79

query I rowsort
SELECT DISTINCT - ( - col2 ) - - 78 * - col0 FROM tab2
----
-3565
-4952
-5792

query I rowsort
SELECT DISTINCT - col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - - 67 * - + col0 * + - 73 + + col0 FROM tab2 AS cor0
----
225032
313088
366900

query I rowsort
SELECT ALL - ( + col2 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-9929
SELECT ALL + COUNT( * ) AS col2, - COUNT( * ) * + - 28 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
252

skipif mysql # not compatible
query II rowsort label-9929
SELECT ALL + COUNT ( * ) AS col2, - COUNT ( * ) * + - 28 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
252

query I rowsort
SELECT DISTINCT 6 FROM tab0, tab2 cor0
----
6

query II rowsort
SELECT + 59 AS col0, col0 AS col0 FROM tab0
----
59
15
59
87
59
97

query I rowsort
SELECT ALL + col1 * col0 - - col0 AS col0 FROM tab1 AS cor0
----
4368
510
765

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9933
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < col1 + + 35 * CAST( - 37 AS DECIMAL ) + col0
----

skipif mysql # not compatible
query III rowsort label-9933
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < col1 + + 35 * CAST ( - 37 AS REAL ) + col0
----

query I rowsort
SELECT + + ( - + col1 ) AS col1 FROM tab2 cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT ALL 87 * COUNT( * ) AS col1 FROM tab2 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-9935
SELECT ALL 87 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
261

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9936
SELECT DISTINCT ( - col2 ) * col2 / - - 72 + 32 * 5 * + ( CAST( - ( col0 ) AS SIGNED ) ) + + col0 + + col2 - - col1 col0 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9936
SELECT DISTINCT ( - col2 ) * col2 / - - 72 + 32 * 5 * + ( CAST ( - ( col0 ) AS INTEGER ) ) + + col0 + + col2 - - col1 col0 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT DISTINCT 29 * - COUNT( * ) FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-9937
SELECT DISTINCT 29 * - COUNT ( * ) FROM tab1
----
-87

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 81 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9939
SELECT COUNT( ALL + 22 ) AS col2 FROM tab1 WHERE col0 + + - 98 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9939
SELECT COUNT ( ALL + 22 ) AS col2 FROM tab1 WHERE col0 + + - 98 IS NULL
----
0

query I rowsort
SELECT ALL + col1 + 94 + + 78 AS col0 FROM tab2 AS cor0
----
223
239
249

query I rowsort
SELECT col1 + + col0 + + + col1 * + + col1 FROM tab0 AS cor0
----
549
6657
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9942
SELECT DISTINCT CAST( 30 AS SIGNED ) + - CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
35
44
77

skipif mysql # not compatible
query I rowsort label-9942
SELECT DISTINCT CAST ( 30 AS INTEGER ) + - CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
35
44
77

query I rowsort
SELECT ALL 36 - col1 AS col0 FROM tab1
----
-11
22
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9944
SELECT - COUNT( * ) + + - 14 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-23

skipif mysql # not compatible
query I rowsort label-9944
SELECT - COUNT ( * ) + + - 14 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-23

query I rowsort
SELECT DISTINCT 15 FROM tab0 WHERE NOT - 64 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9946
SELECT ALL + CAST( - 92 AS SIGNED ) AS col2 FROM tab0
----
-92
-92
-92

skipif mysql # not compatible
query I rowsort label-9946
SELECT ALL + CAST ( - 92 AS INTEGER ) AS col2 FROM tab0
----
-92
-92
-92

query I rowsort
SELECT 13 - - col0 FROM tab2
----
59
77
88

query III rowsort
SELECT DISTINCT + col0, col0 * - + col2, - col2 AS col2 FROM tab2
----
9 values hashing to ad519db9613dbbee0e0a626616c2b1d1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9949
SELECT 36 DIV 25 * + + COUNT( * ) - - 21 FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-9949
SELECT 36 / 25 * + + COUNT ( * ) - - 21 FROM tab1
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-9950
SELECT ALL + - ( + MIN( - - col0 ) ) AS col0, - COUNT( * ) FROM tab1 AS cor0
----
-51
-3

skipif mysql # not compatible
query II rowsort label-9950
SELECT ALL + - ( + MIN ( - - col0 ) ) AS col0, - COUNT ( * ) FROM tab1 AS cor0
----
-51
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9951
SELECT - col1 DIV - 2 + col1 DIV - - col1 FROM tab1 AS cor0
----
24
3
8

skipif mysql # not compatible
query I rowsort label-9951
SELECT - col1 / - 2 + col1 / - - col1 FROM tab1 AS cor0
----
24
3
8

query I rowsort
SELECT - col1 + - 85 FROM tab2 AS cor0
----
-136
-152
-162

query I rowsort
SELECT ALL col1 + ( + - col1 ) FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( - + 43 ) IS NOT NULL AND col1 IS NULL
----

query II rowsort
SELECT ALL - - ( - col0 ) * + col1 AS col0, + col1 + col2 FROM tab2 cor0
----
-2346
74
-4928
117
-5025
125

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN 46 AND - - col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 29 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9958
SELECT COUNT( * ) * - + 67 col2, 34 FROM tab1
----
-201
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9958
SELECT COUNT ( * ) * - + 67 col2, 34 FROM tab1
----
-201
34

query III rowsort
SELECT col1, + 85 + - col2 * + 67, 2 AS col1 FROM tab0
----
9 values hashing to 584667c2786bf657cb3dae5873ca8c3a

query II rowsort
SELECT DISTINCT + col1 AS col0, + 47 * - col2 FROM tab0
----
1
-4653
21
-470
81
-2209

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 / + + col2 BETWEEN NULL AND 90
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 <> - + col2 + + - 95 - + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9963
SELECT DISTINCT + COUNT( * ), COUNT( ALL 78 ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9963
SELECT DISTINCT + COUNT ( * ), COUNT ( ALL 78 ) FROM tab2 AS cor0
----
3
3

query II rowsort
SELECT ALL col0, + 79 AS col2 FROM tab1 AS cor0
----
51
79
85
79
91
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT COUNT( * ) * - COUNT( col0 ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-9965
SELECT COUNT ( * ) * - COUNT ( col0 ) FROM tab2
----
-9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 = 80
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9967
SELECT ALL SUM( + CAST( - 94 AS SIGNED ) ) FROM tab0 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-9967
SELECT ALL SUM ( + CAST ( - 94 AS INTEGER ) ) FROM tab0 AS cor0
----
-282

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9968
SELECT + col0 + + 53 + + CAST( NULL AS SIGNED ) * - - col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 61 AND + col0
----

skipif mysql # not compatible
query I rowsort label-9968
SELECT + col0 + + 53 + + CAST ( NULL AS INTEGER ) * - - col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 61 AND + col0
----

query I rowsort
SELECT DISTINCT col1 + + ( - - col0 ) FROM tab1 cor0
----
138
65
90

query I rowsort
SELECT - col2 + - + col1 FROM tab0 AS cor0
----
-100
-128
-31

query I rowsort
SELECT col0 + 32 + + + 85 + + - col1 AS col1 FROM tab1 AS cor0
----
154
161
197

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT ALL - 36 + + MIN( col2 ) FROM tab0 cor0
----
-26

skipif mysql # not compatible
query I rowsort label-9972
SELECT ALL - 36 + + MIN ( col2 ) FROM tab0 cor0
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9973
SELECT + CAST( NULL AS SIGNED ) * + 92 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9973
SELECT + CAST ( NULL AS INTEGER ) * + 92 col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, 57 col2 FROM tab0
----
10
57
47
57
99
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT ALL + COUNT( - 87 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9975
SELECT ALL + COUNT ( - 87 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT + MAX( ALL + + col0 ) AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-9976
SELECT + MAX ( ALL + + col0 ) AS col0 FROM tab2
----
75

query I rowsort
SELECT + 92 * - col0 AS col0 FROM tab1
----
-4692
-7820
-8372

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT DISTINCT - MIN( - - col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-9978
SELECT DISTINCT - MIN ( - - col1 ) FROM tab2
----
-51

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - ( + ( - - col0 ) ) * + 63 IS NULL
----

query I rowsort
SELECT DISTINCT 12 * - + 65 AS col0 FROM tab1 cor0
----
-780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9981
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + - - col1 + ( + - col2 ) * 81 * + col1 * 42 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9981
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + - - col1 + ( + - col2 ) * 81 * + col1 * 42 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL 25 + col2 AS col1 FROM tab2 AS cor0
----
48
65
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9983
SELECT - + col1 * - col1 + + + col2 AS col1 FROM tab0 AS cor0 WHERE NULL < 26 - + 54 + - col1 - - + CAST( 58 AS SIGNED ) * - col1 AND NOT NULL = ( NULL )
----

skipif mysql # not compatible
query I rowsort label-9983
SELECT - + col1 * - col1 + + + col2 AS col1 FROM tab0 AS cor0 WHERE NULL < 26 - + 54 + - col1 - - + CAST ( 58 AS INTEGER ) * - col1 AND NOT NULL = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT ALL + - 64 * MIN( DISTINCT + - col2 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL AND + col1 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9984
SELECT ALL + - 64 * MIN ( DISTINCT + - col2 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL AND + col1 <= NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE + 77 * + col1 / col1 + + col0 + col0 IS NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 WHERE NOT + 18 IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9987
SELECT + CAST( col1 AS DECIMAL ) + - + col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE + col1 BETWEEN col2 + + ( - col1 ) AND + + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9987
SELECT + CAST ( col1 AS REAL ) + - + col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE + col1 BETWEEN col2 + + ( - col1 ) AND + + col1
----
NULL

query I rowsort
SELECT ALL 85 - col0 + - + 41 FROM tab2
----
-2
-20
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-9989
SELECT col0 DIV - 7 + + 27 AS col0 FROM tab0 AS cor0
----
14
15
25

skipif mysql # not compatible
query I rowsort label-9989
SELECT col0 / - 7 + + 27 AS col0 FROM tab0 AS cor0
----
14
15
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9990
SELECT + COUNT( * ) DIV + + MAX( ALL - 26 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9990
SELECT + COUNT ( * ) / + + MAX ( ALL - 26 ) FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9991
SELECT + + MIN( + 0 ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9991
SELECT + + MIN ( + 0 ) AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9992
SELECT DISTINCT - COUNT( * ) DIV + + 20 + - COUNT( * ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9992
SELECT DISTINCT - COUNT ( * ) / + + 20 + - COUNT ( * ) col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT 40 * + 55 FROM tab2 AS cor0
----
2200
2200
2200

onlyif mysql # aggregate syntax: 
query I rowsort label-9994
SELECT + + COUNT( ALL - 8 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9994
SELECT + + COUNT ( ALL - 8 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - 28 * 45 FROM tab2 AS cor0
----
-1260
-1260
-1260

onlyif mysql # aggregate syntax: 
query I rowsort label-9996
SELECT DISTINCT - COUNT( + col1 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9996
SELECT DISTINCT - COUNT ( + col1 ) AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9997
SELECT DISTINCT + ( - - MAX( ALL + col2 ) ) AS col2, + COUNT( * ) FROM tab1
----
96
3

skipif mysql # not compatible
query II rowsort label-9997
SELECT DISTINCT + ( - - MAX ( ALL + col2 ) ) AS col2, + COUNT ( * ) FROM tab1
----
96
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT ALL SUM( - 3 ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-9998
SELECT ALL SUM ( - 3 ) FROM tab1
----
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-9999
SELECT ALL - col2, col2 DIV - 49 * + - col1 AS col2 FROM tab0
----
-10
0
-47
0
-99
2

skipif mysql # not compatible
query II rowsort label-9999
SELECT ALL - col2, col2 / - 49 * + - col1 AS col2 FROM tab0
----
-10
0
-47
0
-99
2

