sqllogictest
Artifact Content
Not logged in

Artifact f5a89fcd8fecc2f6df842ad5b2922bcf6940ecd8:


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)

query I rowsort
SELECT + col2 - 29 FROM tab2 cor0
----
-6
11
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 40 * - col1 - col1 * 78 col2 FROM tab0 AS cor0
----
-118
-2478
-9558

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2
SELECT + CAST( - col0 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( col0 + col1 * col1 ) BETWEEN NULL AND - col1 * ( + 84 )
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2
SELECT + CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( col0 + col1 * col1 ) BETWEEN NULL AND - col1 * ( + 84 )
----
-51
-85
-91

query I rowsort
SELECT ALL + + 48 FROM tab0 cor0
----
48
48
48

query I rowsort
SELECT ALL + col1 * - 80 AS col0 FROM tab1 AS cor0
----
-1120
-3760
-400

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 26 BETWEEN col2 - - col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT NULL NOT IN ( + 99 / + 33 )
----

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE + col2 NOT BETWEEN ( 21 ) AND col1 + + 50
----
14
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8
SELECT - COUNT( * ) * 53 AS col0 FROM tab0 WHERE NOT - 33 NOT BETWEEN col2 + col0 AND col2
----
0

skipif mysql # not compatible
query I rowsort label-8
SELECT - COUNT ( * ) * 53 AS col0 FROM tab0 WHERE NOT - 33 NOT BETWEEN col2 + col0 AND col2
----
0

query I rowsort
SELECT 72 * col0 AS col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
3672
6120
6552

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

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

query I rowsort
SELECT DISTINCT - col0 * 62 AS col2 FROM tab0
----
-5394
-6014
-930

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

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

query I rowsort
SELECT + 92 * col0 * - col0 AS col0 FROM tab1
----
-239292
-664700
-761852

onlyif mysql # aggregate syntax: 
query I rowsort label-15
SELECT 84 * + SUM( DISTINCT - 64 ) AS col1 FROM tab0
----
-5376

skipif mysql # not compatible
query I rowsort label-15
SELECT 84 * + SUM ( DISTINCT - 64 ) AS col1 FROM tab0
----
-5376

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 11 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-17
SELECT CAST( 32 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

skipif mysql # not compatible
query I rowsort label-17
SELECT CAST ( 32 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-19
SELECT ALL + col0 DIV col0 + - 28 + col0 FROM tab2 AS cor0
----
19
37
48

skipif mysql # not compatible
query I rowsort label-19
SELECT ALL + col0 / col0 + - 28 + col0 FROM tab2 AS cor0
----
19
37
48

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-22
SELECT DISTINCT 64 * SUM( ALL - col1 ) FROM tab0 cor0
----
-6592

skipif mysql # not compatible
query I rowsort label-22
SELECT DISTINCT 64 * SUM ( ALL - col1 ) FROM tab0 cor0
----
-6592

onlyif mysql # DIV for integer division: 
query I rowsort label-23
SELECT col0 * 62 DIV - col0 AS col2 FROM tab0 AS cor0
----
-62
-62
-62

skipif mysql # not compatible
query I rowsort label-23
SELECT col0 * 62 / - col0 AS col2 FROM tab0 AS cor0
----
-62
-62
-62

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 74 < + 93
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT ( + COUNT( * ) ) col1 FROM tab2 AS cor0 WHERE - 28 + + col1 * col0 IN ( + 93 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-25
SELECT ( + COUNT ( * ) ) col1 FROM tab2 AS cor0 WHERE - 28 + + col1 * col0 IN ( + 93 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-26
SELECT ALL - + 30 DIV + - col1 + + + col0 AS col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-26
SELECT ALL - + 30 / + - col1 + + + col0 AS col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE ( 32 ) <> col2
----
1
21
81

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NULL <> - 64 + 6 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-29
SELECT DISTINCT 20 * + COUNT( * ) FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-29
SELECT DISTINCT 20 * + COUNT ( * ) FROM tab1 AS cor0
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-30
SELECT ALL - COUNT( ALL - 20 ) DIV 15 col0 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-30
SELECT ALL - COUNT ( ALL - 20 ) / 15 col0 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-31
SELECT + col0 + - - 9 + + CAST( + col1 AS SIGNED ) DIV 10 DIV col2 AS col0 FROM tab0
----
106
24
96

skipif mysql # not compatible
query I rowsort label-31
SELECT + col0 + - - 9 + + CAST ( + col1 AS INTEGER ) / 10 / col2 AS col0 FROM tab0
----
106
24
96

onlyif mysql # aggregate syntax: 
query I rowsort label-32
SELECT DISTINCT - 57 + - COUNT( + col2 ) - COUNT( DISTINCT + ( + col2 ) ) * + 84 col0 FROM tab2
----
-312

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-32
SELECT DISTINCT - 57 + - COUNT ( + col2 ) - COUNT ( DISTINCT + ( + col2 ) ) * + 84 col0 FROM tab2
----
-312

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

query I rowsort
SELECT + col1 * 5 AS col2 FROM tab0 WHERE + col2 + 45 * col0 IS NOT NULL
----
105
405
5

onlyif mysql # DIV for integer division: 
query I rowsort label-35
SELECT - ( + 89 ) * + col1 + + col2 DIV + 89 AS col1 FROM tab0
----
-1869
-7209
-88

skipif mysql # not compatible
query I rowsort label-35
SELECT - ( + 89 ) * + col1 + + col2 / + 89 AS col1 FROM tab0
----
-1869
-7209
-88

query I rowsort
SELECT DISTINCT + col1 * + - col0 * - col2 + 94 AS col2 FROM tab1
----
25169
290930
68638

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-37
SELECT ALL 71 + 71 AS col1, - CAST( - + AVG ( col2 ) AS SIGNED ) FROM tab1
----
142
74

skipif mysql # not compatible
query II rowsort label-37
SELECT ALL 71 + 71 AS col1, - CAST ( - + AVG ( col2 ) AS INTEGER ) FROM tab1
----
142
74

onlyif mysql # aggregate syntax: 
query I rowsort label-38
SELECT ALL + ( - COUNT( * ) ) + + - 53 AS col0 FROM tab0
----
-56

skipif mysql # not compatible
query I rowsort label-38
SELECT ALL + ( - COUNT ( * ) ) + + - 53 AS col0 FROM tab0
----
-56

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL > + col2
----

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 41 NOT BETWEEN ( NULL ) AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 76 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 68 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-44
SELECT - - MAX( DISTINCT - - col1 ) * 58 - - + 11 AS col0 FROM tab0 cor0
----
4709

skipif mysql # not compatible
query I rowsort label-44
SELECT - - MAX ( DISTINCT - - col1 ) * 58 - - + 11 AS col0 FROM tab0 cor0
----
4709

query I rowsort
SELECT DISTINCT + 92 / - 58 AS col2 FROM tab2 WHERE NOT + - col2 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT DISTINCT - COUNT( ALL - col1 ) * - 32 * MIN( ALL + col0 ) - 77 FROM tab1 AS cor0
----
4819

skipif mysql # not compatible
query I rowsort label-47
SELECT DISTINCT - COUNT ( ALL - col1 ) * - 32 * MIN ( ALL + col0 ) - 77 FROM tab1 AS cor0
----
4819

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 75 * + col2 col1 FROM tab1 AS cor0
----
-4425
-5100
-7200

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

query II rowsort
SELECT - col1 AS col2, + col1 * - 93 AS col0 FROM tab1 cor0
----
-14
-1302
-47
-4371
-5
-465

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-53
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, + col1 AS col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-53
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, + col1 AS col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 WHERE NULL IS NULL
----
51
67
77

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

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

skipif mysql # not compatible
query I rowsort label-56
SELECT ALL + COUNT ( * ) * - + COUNT ( * ) FROM tab2
----
-9

query I rowsort
SELECT - 77 * col1 AS col1 FROM tab1
----
-1078
-3619
-385

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

onlyif mysql # aggregate syntax: 
query I rowsort label-59
SELECT SUM( - + col1 ) * 98 AS col0 FROM tab1 cor0
----
-6468

skipif mysql # not compatible
query I rowsort label-59
SELECT SUM ( - + col1 ) * 98 AS col0 FROM tab1 cor0
----
-6468

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-60
SELECT ALL + col0 / + 53 + + col1 / + col2 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * - col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-60
SELECT ALL + col0 / + 53 + + col1 / + col2 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-61
SELECT MAX( DISTINCT + - col0 ) FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-61
SELECT MAX ( DISTINCT + - col0 ) FROM tab0 cor0
----
-15

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-63
SELECT ALL col1 + - 89 col2 FROM tab2 cor0 WHERE - 10 / + + 71 * col1 NOT IN ( - CAST( - col2 AS SIGNED ) )
----
-12
-22
-38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-63
SELECT ALL col1 + - 89 col2 FROM tab2 cor0 WHERE - 10 / + + 71 * col1 NOT IN ( - CAST ( - col2 AS INTEGER ) )
----
-12
-22
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-64
SELECT - 80 DIV + 63 - + - ( + 60 ) FROM tab1 AS cor0
----
59
59
59

skipif mysql # not compatible
query I rowsort label-64
SELECT - 80 / + 63 - + - ( + 60 ) FROM tab1 AS cor0
----
59
59
59

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-66
SELECT DISTINCT * FROM tab0 WHERE ( + CAST( + + col1 AS SIGNED ) + col0 / + ( - 8 ) ) BETWEEN + 46 * col1 AND ( 49 * + 84 )
----

skipif mysql # not compatible
query III rowsort label-66
SELECT DISTINCT * FROM tab0 WHERE ( + CAST ( + + col1 AS INTEGER ) + col0 / + ( - 8 ) ) BETWEEN + 46 * col1 AND ( 49 * + 84 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-67
SELECT + - col1 / - - CAST( NULL AS DECIMAL ) AS col2, col2 * - col2 + col2 FROM tab0 WHERE NOT + + 21 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-67
SELECT + - col1 / - - CAST ( NULL AS REAL ) AS col2, col2 * - col2 + col2 FROM tab0 WHERE NOT + + 21 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-68
SELECT DISTINCT - COUNT( ALL - 7 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-68
SELECT DISTINCT - COUNT ( ALL - 7 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-69
SELECT DISTINCT + col1 + - 39 DIV - 60 AS col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-69
SELECT DISTINCT + col1 + - 39 / - 60 AS col2 FROM tab0
----
1
21
81

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

skipif mysql # not compatible
query I rowsort label-70
SELECT + - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL <= ( NULL )
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-72
SELECT + CAST( - + col2 AS SIGNED ) * + col1 AS col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-72
SELECT + CAST ( - + col2 AS INTEGER ) * + col1 AS col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT ALL - 31 + - col2 AS col1 FROM tab2 AS cor0
----
-54
-71
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + col0 col0, 28 AS col2 FROM tab1 AS cor0
----
2601
28
7225
28
8281
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-75
SELECT ALL 32 / + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-75
SELECT ALL 32 / + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ( + col0 ) * col0, + col0 AS col0 FROM tab0 AS cor0
----
225
15
7569
87
9409
97

query I rowsort
SELECT ALL - 8 * 79 AS col2 FROM tab0 AS cor0
----
-632
-632
-632

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-78
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) * 24 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-78
SELECT DISTINCT - + CAST ( NULL AS REAL ) * 24 FROM tab2 cor0
----
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-79
SELECT DISTINCT + SUM ( + col0 ) col0 FROM tab1
----
227

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-81
SELECT DISTINCT + 88 DIV + COUNT( * ) AS col2 FROM tab2 WHERE NULL IS NULL
----
29

skipif mysql # not compatible
query I rowsort label-81
SELECT DISTINCT + 88 / + COUNT ( * ) AS col2 FROM tab2 WHERE NULL IS NULL
----
29

query I rowsort
SELECT - col0 + + 94 AS col2 FROM tab2 AS cor0
----
19
30
48

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

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

query I rowsort
SELECT DISTINCT + col2 + 89 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + + col0 - + 88 FROM tab2 AS cor0
----
-13
-24
-42

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 24 + + 44 * - + ( - + col2 ) * + 68 * - col1 = - + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 27 + 45 col1 FROM tab2 WHERE NOT + col2 / - - col0 + - col2 IN ( col0 * + col2 - + col2 )
----
72

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-89
SELECT CAST( + - 23 AS SIGNED ) AS col1 FROM tab2
----
-23
-23
-23

skipif mysql # not compatible
query I rowsort label-89
SELECT CAST ( + - 23 AS INTEGER ) AS col1 FROM tab2
----
-23
-23
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + + col2 ) col0 FROM tab1
----
59
68
96

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 3 * + + col1 - - 47 col0 FROM tab0 AS cor0
----
-16
-196
44

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-95
SELECT ALL col1 DIV + 39, ( - - 41 ) AS col1 FROM tab0 AS cor0
----
0
41
0
41
2
41

skipif mysql # not compatible
query II rowsort label-95
SELECT ALL col1 / + 39, ( - - 41 ) AS col1 FROM tab0 AS cor0
----
0
41
0
41
2
41

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-96
SELECT * FROM tab0 AS cor0 WHERE NOT 41 / + - ( + + 64 ) + - CAST( - + col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-96
SELECT * FROM tab0 AS cor0 WHERE NOT 41 / + - ( + + 64 ) + - CAST ( - + col2 AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 2 / col1 col2 FROM tab0 AS cor0 WHERE NULL <= NULL
----

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

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

query I rowsort
SELECT ALL col2 FROM tab2 WHERE ( col2 / - - col1 ) IN ( col2 )
----

query I rowsort
SELECT + 66 * 3 FROM tab0
----
198
198
198

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

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

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

query I rowsort
SELECT + 84 * col1 * col0 * - + col1 * 31 AS col2 FROM tab2
----
-311558184
-876701700
-988103424

onlyif mysql # DIV for integer division: 
query II rowsort label-104
SELECT col1, col0 DIV + 94 FROM tab1
----
14
0
47
0
5
0

skipif mysql # not compatible
query II rowsort label-104
SELECT col1, col0 / + 94 FROM tab1
----
14
0
47
0
5
0

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

skipif mysql # not compatible
query I rowsort label-105
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NULL <= + - col2
----
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-106
SELECT ALL CAST ( NULL AS INTEGER ) col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-107
SELECT - CAST( 0 AS SIGNED ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-107
SELECT - CAST ( 0 AS INTEGER ) FROM tab2
----
0
0
0

query I rowsort
SELECT - col1 * - 48 AS col1 FROM tab0
----
1008
3888
48

onlyif mysql # aggregate syntax: 
query I rowsort label-109
SELECT DISTINCT + 53 + 60 + COUNT( * ) FROM tab1 AS cor0
----
116

skipif mysql # not compatible
query I rowsort label-109
SELECT DISTINCT + 53 + 60 + COUNT ( * ) FROM tab1 AS cor0
----
116

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-110
SELECT COUNT( * ) + CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-110
SELECT COUNT ( * ) + CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL

query II rowsort
SELECT col0 - - + col1, + col1 + 91 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT 43 + + + col2 AS col0 FROM tab2 AS cor0 WHERE 22 * + ( - col1 ) IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-113
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) + + ( - 99 ) FROM tab2 cor0
----
-96

query II rowsort
SELECT DISTINCT - + 5, ( - + col2 ) AS col1 FROM tab1 AS cor0
----
-5
-59
-5
-68
-5
-96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * - col2 - + col2 IS NULL AND ( NOT NULL IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 51 - - 48 FROM tab1 AS cor0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - - 46 col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

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

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

query I rowsort
SELECT DISTINCT col0 * - - col2 AS col1 FROM tab1
----
4896
5015
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-120
SELECT + 71 DIV + col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-120
SELECT + 71 / + col2 FROM tab1
----
0
1
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 / - 43 NOT BETWEEN + + ( + col1 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 97 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-123
SELECT - 21 - - + COUNT( * ) FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-123
SELECT - 21 - - + COUNT ( * ) FROM tab0 AS cor0
----
-18

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 81 * + 76 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-125
SELECT ALL CAST( NULL AS SIGNED ) * - MAX( - - col2 ) FROM tab0
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-126
SELECT ALL CAST( - COUNT( DISTINCT - + 50 ) AS SIGNED ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-126
SELECT ALL CAST ( - COUNT ( DISTINCT - + 50 ) AS INTEGER ) FROM tab2 AS cor0
----
-1

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 73 AND ( - - 75 + + col2 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-128
SELECT + + 36 DIV + + col0 - + 82 AS col1, - col1 FROM tab2 AS cor0
----
-82
-51
-82
-67
-82
-77

skipif mysql # not compatible
query II rowsort label-128
SELECT + + 36 / + + col0 - + 82 AS col1, - col1 FROM tab2 AS cor0
----
-82
-51
-82
-67
-82
-77

onlyif mysql # DIV for integer division: 
query II rowsort label-129
SELECT DISTINCT col0, col1 DIV - 32 FROM tab1 cor0
----
51
0
85
0
91
-1

skipif mysql # not compatible
query II rowsort label-129
SELECT DISTINCT col0, col1 / - 32 FROM tab1 cor0
----
51
0
85
0
91
-1

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

query II rowsort
SELECT + col1 + + - col1 * - 1 * - col0, - col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-132
SELECT ALL COUNT( * ) - + 42 FROM tab0 WHERE ( - - 6 ) < NULL
----
-42

skipif mysql # not compatible
query I rowsort label-132
SELECT ALL COUNT ( * ) - + 42 FROM tab0 WHERE ( - - 6 ) < NULL
----
-42

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

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

query I rowsort
SELECT + col0 * 83 FROM tab2 cor0
----
3818
5312
6225

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-136
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NULL ) <> - col1 + + - CAST( ( + 99 ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-136
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NULL ) <> - col1 + + - CAST ( ( + 99 ) AS INTEGER )
----

query I rowsort
SELECT ALL + + col1 + + 27 * col2 * col1 AS col2 FROM tab0 AS cor0
----
102870
2674
5691

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE 21 <> NULL
----

query I rowsort
SELECT ALL + ( + - 36 ) + 98 AS col0 FROM tab2
----
62
62
62

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-140
SELECT CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0 WHERE - col0 + + col2 / - CAST( NULL AS SIGNED ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-140
SELECT CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0 WHERE - col0 + + col2 / - CAST ( NULL AS INTEGER ) IS NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-141
SELECT DISTINCT + col2 + - col1 - + col1 AS col2, 9 * + ( col0 ) DIV + col0 AS col2 FROM tab1 AS cor0
----
-26
9
49
9
68
9

skipif mysql # not compatible
query II rowsort label-141
SELECT DISTINCT + col2 + - col1 - + col1 AS col2, 9 * + ( col0 ) / + col0 AS col2 FROM tab1 AS cor0
----
-26
9
49
9
68
9

query I rowsort
SELECT DISTINCT - + 46 - + + col1 - + col1 AS col0 FROM tab0 AS cor0
----
-208
-48
-88

query I rowsort
SELECT ALL 38 AS col1 FROM tab1 cor0
----
38
38
38

query I rowsort
SELECT + 43 * - - 1 * + col0 AS col0 FROM tab2 AS cor0
----
1978
2752
3225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-145
SELECT - COUNT( * ) - + MIN( CAST( 98 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
-101

skipif mysql # not compatible
query I rowsort label-145
SELECT - COUNT ( * ) - + MIN ( CAST ( 98 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
-101

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) <> col2 AND NOT col1 >= + + col1
----

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

skipif mysql # not compatible
query I rowsort label-147
SELECT - col0 AS col1 FROM tab1 WHERE NULL IN ( - col0 * - CAST ( + 12 AS INTEGER ), + col2 * - col0 * col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 85 + - - col0 col0 FROM tab1
----
-34
0
6

onlyif mysql # aggregate syntax: 
query I rowsort label-149
SELECT ALL - COUNT( DISTINCT + 77 ) AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-149
SELECT ALL - COUNT ( DISTINCT + 77 ) AS col0 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-150
SELECT ALL 21 + - MIN( + col0 ) * - 69 AS col1 FROM tab1
----
3540

skipif mysql # not compatible
query I rowsort label-150
SELECT ALL 21 + - MIN ( + col0 ) * - 69 AS col1 FROM tab1
----
3540

query I rowsort
SELECT ALL col2 - - - 47 * + 14 FROM tab2
----
-600
-618
-635

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

query II rowsort
SELECT DISTINCT + col0 AS col0, - col0 * + + col0 * + col2 * - col1 * + - 19 FROM tab2 cor0
----
46
-47159292
64
-239697920
75
-415316250

query I rowsort
SELECT ALL col1 - + col1 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-156
SELECT DISTINCT - ( + MAX( + + 32 ) ) FROM tab2 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-156
SELECT DISTINCT - ( + MAX ( + + 32 ) ) FROM tab2 AS cor0
----
-32

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

query II rowsort
SELECT ALL - 47, 80 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col2 BETWEEN + 64 AND NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-161
SELECT 91 * + + COUNT( * ) + + - COUNT( * ) AS col2 FROM tab2
----
270

skipif mysql # not compatible
query I rowsort label-161
SELECT 91 * + + COUNT ( * ) + + - COUNT ( * ) AS col2 FROM tab2
----
270

query I rowsort
SELECT - 79 + + ( - - col1 ) * + 35 FROM tab2
----
1706
2266
2616

query I rowsort
SELECT DISTINCT col0 + + - col1 FROM tab2 cor0
----
-13
-5
8

query III rowsort
SELECT * FROM tab2 WHERE - + 52 < - 9
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
query I rowsort label-165
SELECT DISTINCT 78 * + - CAST ( NULL AS INTEGER ) + - + COUNT ( * ) * + + 59 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-166
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-166
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + - col0 + - col1 + - 29 FROM tab1 AS cor0
----
-119
-167
-94

query I rowsort
SELECT ALL 36 + 13 AS col0 FROM tab1 AS cor0
----
49
49
49

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-171
SELECT DISTINCT + col0 - + - col1 DIV + col1 col2 FROM tab0 AS cor0
----
16
88
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-171
SELECT DISTINCT + col0 - + - col1 / + col1 col2 FROM tab0 AS cor0
----
16
88
98

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-172
SELECT ALL - CAST( - + 95 AS SIGNED ) DIV 33 + - - 88 - + col2 FROM tab0 AS cor0
----
-9
43
80

skipif mysql # not compatible
query I rowsort label-172
SELECT ALL - CAST ( - + 95 AS INTEGER ) / 33 + - - 88 - + col2 FROM tab0 AS cor0
----
-9
43
80

query I rowsort
SELECT 96 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + col2 * col1, + col2 * - ( - 2 ), + + col0, + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-174
SELECT + MIN( DISTINCT - 49 ) * + + ( + + ( - - COUNT( DISTINCT + + col2 ) ) ) * - 2 FROM tab0 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-174
SELECT + MIN ( DISTINCT - 49 ) * + + ( + + ( - - COUNT ( DISTINCT + + col2 ) ) ) * - 2 FROM tab0 AS cor0
----
294

query I rowsort
SELECT DISTINCT - ( + + col0 ) FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-176
SELECT ALL MIN( DISTINCT col0 ) col0 FROM tab1
----
51

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

query I rowsort
SELECT - - col2 FROM tab2 WHERE NULL NOT IN ( - + col2, 93 + 47 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-178
SELECT + 66 * + CAST( 26 AS SIGNED ) FROM tab0
----
1716
1716
1716

skipif mysql # not compatible
query I rowsort label-178
SELECT + 66 * + CAST ( 26 AS INTEGER ) FROM tab0
----
1716
1716
1716

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

query II rowsort
SELECT col0 AS col0, + ( - col0 ) + + - col1 + - col0 FROM tab0
----
15
-111
87
-195
97
-195

query II rowsort
SELECT - col1, ( - col2 ) AS col1 FROM tab2
----
-51
-23
-67
-58
-77
-40

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

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

query I rowsort
SELECT DISTINCT - 61 * + 50 - - col0 FROM tab0 WHERE NOT ( + - col1 + - 11 ) IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-186
SELECT DISTINCT 75, + MIN( - col2 ) AS col0 FROM tab0 AS cor0
----
75
-99

skipif mysql # not compatible
query II rowsort label-186
SELECT DISTINCT 75, + MIN ( - col2 ) AS col0 FROM tab0 AS cor0
----
75
-99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-187
SELECT DISTINCT + col1 * CAST( 68 AS SIGNED ) DIV - col2 FROM tab0 AS cor0
----
-117
-142
0

skipif mysql # not compatible
query I rowsort label-187
SELECT DISTINCT + col1 * CAST ( 68 AS INTEGER ) / - col2 FROM tab0 AS cor0
----
-117
-142
0

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

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

query I rowsort
SELECT ALL + + 98 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT ALL + + 27 AS col2 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT ALL + - 64 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

onlyif mysql # aggregate syntax: 
query I rowsort label-192
SELECT DISTINCT - MAX( DISTINCT + - ( + + col2 ) ) * + - 94 + - COUNT( * ) FROM tab1 AS cor0
----
-5549

skipif mysql # not compatible
query I rowsort label-192
SELECT DISTINCT - MAX ( DISTINCT + - ( + + col2 ) ) * + - 94 + - COUNT ( * ) FROM tab1 AS cor0
----
-5549

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

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

query I rowsort
SELECT DISTINCT - 42 * + col0 - col0 AS col2 FROM tab0 AS cor0
----
-3741
-4171
-645

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

query I rowsort
SELECT DISTINCT 77 + col1 FROM tab1 AS cor0 WHERE NOT - col0 >= - col2
----
124
82

query I rowsort
SELECT 42 * - - col0 FROM tab2 AS cor0
----
1932
2688
3150

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

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

skipif mysql # not compatible
query I rowsort label-199
SELECT MIN ( + 12 ) AS col0 FROM tab2 AS cor0
----
12

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

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

query I rowsort
SELECT col1 * - - 89 AS col0 FROM tab0
----
1869
7209
89

query I rowsort
SELECT ALL - col1 * + 83 AS col2 FROM tab1 AS cor0
----
-1162
-3901
-415

query I rowsort
SELECT + - col2 + - col0 + + + 70 * col0 AS col2 FROM tab1 AS cor0
----
3423
5806
6211

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

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

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

query I rowsort
SELECT + 80 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

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

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

query I rowsort
SELECT DISTINCT - 8 - - 31 AS col2 FROM tab2 AS cor0
----
23

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

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

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

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

query I rowsort
SELECT - col2 - + 28 FROM tab0 AS cor0
----
-127
-38
-75

query I rowsort
SELECT DISTINCT col1 - - col0 * col0 AS col1 FROM tab2 AS cor0
----
2167
4173
5692

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-213
SELECT * FROM tab1 AS cor0 WHERE + col1 * - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-213
SELECT * FROM tab1 AS cor0 WHERE + col1 * - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-215
SELECT 10 * - COUNT( * ) AS col2 FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-215
SELECT 10 * - COUNT ( * ) AS col2 FROM tab2
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-216
SELECT - COUNT( * ) DIV - 52 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-216
SELECT - COUNT ( * ) / - 52 AS col2 FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL IS NOT NULL OR NOT NULL <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 + 72 > - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

skipif mysql # not compatible
query I rowsort label-220
SELECT - COUNT ( ALL 79 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-221
SELECT - ( + - MAX( DISTINCT + - 37 ) ) FROM tab0
----
-37

skipif mysql # not compatible
query I rowsort label-221
SELECT - ( + - MAX ( DISTINCT + - 37 ) ) FROM tab0
----
-37

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-225
SELECT ALL + 94 DIV + + 70 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-225
SELECT ALL + 94 / + + 70 FROM tab1 AS cor0
----
1
1
1

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * - 32 * - col1 * + col2 col2 FROM tab0 AS cor0
----
1827360
307296
584640

onlyif mysql # DIV for integer division: 
query I rowsort label-229
SELECT ALL + + 49 DIV + + col2 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
0
1
2

skipif mysql # not compatible
query I rowsort label-229
SELECT ALL + + 49 / + + col2 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
0
1
2

query I rowsort
SELECT ALL col2 FROM tab0 WHERE - col2 - - 66 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-231
SELECT + COUNT( * ) + - 1 * - + 17 AS col0 FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-231
SELECT + COUNT ( * ) + - 1 * - + 17 AS col0 FROM tab1
----
20

query I rowsort
SELECT col2 * + + 10 + - + col0 FROM tab2
----
184
336
505

query II rowsort
SELECT - col1 + - - col1 AS col0, 64 + + col2 AS col0 FROM tab0
----
0
111
0
163
0
74

query I rowsort
SELECT col2 + - 15 FROM tab1
----
44
53
81

query I rowsort
SELECT ALL 87 + - 44 + col1 FROM tab0
----
124
44
64

query I rowsort
SELECT 3 + - - col0 FROM tab0 WHERE - ( - + 43 ) * + - ( - + ( + col2 ) ) + 2 < col1
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-238
SELECT ( + - CAST( NULL AS SIGNED ) ), + 99 AS col0 FROM tab0 AS cor0
----
NULL
99
NULL
99
NULL
99

skipif mysql # not compatible
query II rowsort label-238
SELECT ( + - CAST ( NULL AS INTEGER ) ), + 99 AS col0 FROM tab0 AS cor0
----
NULL
99
NULL
99
NULL
99

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

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

query I rowsort
SELECT - col0 - - 85 * + + 54 FROM tab1
----
4499
4505
4539

query II rowsort
SELECT ALL - + 25 + - - ( - + 38 ), 3 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-63
3
-63
3
-63
3

query I rowsort
SELECT - 12 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query I rowsort
SELECT DISTINCT 21 + - ( + + col0 ) FROM tab2 AS cor0
----
-25
-43
-54

query I rowsort
SELECT ALL - 42 AS col1 FROM tab1 AS cor0 WHERE + col1 > + 6
----
-42
-42

query I rowsort
SELECT DISTINCT + 46 - 4 AS col0 FROM tab0 AS cor0
----
42

query I rowsort
SELECT + col0 * 45 * - + col2 FROM tab0 AS cor0 WHERE NOT - 78 / - 18 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 + 10 col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-249
SELECT ALL ( 3 ) DIV - col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-249
SELECT ALL ( 3 ) / - col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-250
SELECT DISTINCT - ( COUNT( * ) ) DIV COUNT( * ) - + 63 FROM tab0 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-250
SELECT DISTINCT - ( COUNT ( * ) ) / COUNT ( * ) - + 63 FROM tab0 AS cor0
----
-64

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-252
SELECT col1 * + col2 + CAST( - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
123
2
3792

skipif mysql # not compatible
query I rowsort label-252
SELECT col1 * + col2 + CAST ( - col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
123
2
3792

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-255
SELECT + 44 DIV + 70 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-255
SELECT + 44 / + 70 FROM tab2
----
0
0
0

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

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

query I rowsort
SELECT ALL col0 * col1 AS col2 FROM tab1 AS cor0 WHERE NULL IN ( 2 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT SUM( DISTINCT + - 47 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-47

skipif mysql # not compatible
query I rowsort label-259
SELECT SUM ( DISTINCT + - 47 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-47

query II rowsort
SELECT ALL - 99 + + col0 AS col1, ( - col1 ) AS col0 FROM tab2
----
-24
-67
-35
-77
-53
-51

query I rowsort
SELECT ALL col0 * - + ( col2 ) FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT 83 + + col0 AS col0 FROM tab1 AS cor0
----
134
168
174

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-265
SELECT + COUNT( DISTINCT - ( - col2 ) ) * 84 * CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab1 cor0
----
756

skipif mysql # not compatible
query I rowsort label-265
SELECT + COUNT ( DISTINCT - ( - col2 ) ) * 84 * CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 cor0
----
756

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-268
SELECT ( + + COUNT( * ) ) FROM tab2 AS cor0 WHERE - 17 - - 86 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-268
SELECT ( + + COUNT ( * ) ) FROM tab2 AS cor0 WHERE - 17 - - 86 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT + 62 + 59 FROM tab1 WHERE + col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN - - col2 AND + col1 + + col0
----

query I rowsort
SELECT ALL col1 + - - 72 AS col0 FROM tab0
----
153
73
93

query I rowsort
SELECT - 34 + - - col2 FROM tab2 AS cor0
----
-11
24
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-273
SELECT + 38 + - 97 DIV - COUNT( * ) FROM tab1 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-273
SELECT + 38 + - 97 / - COUNT ( * ) FROM tab1 AS cor0
----
70

query I rowsort
SELECT col2 + 28 AS col1 FROM tab2 AS cor0
----
51
68
86

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

onlyif mysql # DIV for integer division: 
query I rowsort label-276
SELECT + col1 DIV - - 84 + + + col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-276
SELECT + col1 / - - 84 + + + col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT ALL 19 - + col1 FROM tab0 AS cor0
----
-2
-62
18

onlyif mysql # aggregate syntax: 
query I rowsort label-278
SELECT 9 * - COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-278
SELECT 9 * - COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0
----
-30

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-280
SELECT ALL - 92 * + ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-280
SELECT ALL - 92 * + ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT DISTINCT 83 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-283
SELECT + 20 col2, MIN( ( - col2 ) ) AS col2 FROM tab1 AS cor0
----
20
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-283
SELECT + 20 col2, MIN ( ( - col2 ) ) AS col2 FROM tab1 AS cor0
----
20
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-284
SELECT DISTINCT + COUNT( * ) AS col0, - 20 * - 67 AS col0 FROM tab2 AS cor0
----
3
1340

skipif mysql # not compatible
query II rowsort label-284
SELECT DISTINCT + COUNT ( * ) AS col0, - 20 * - 67 AS col0 FROM tab2 AS cor0
----
3
1340

query I rowsort
SELECT DISTINCT - - ( + 50 ) * + - 79 FROM tab0 AS cor0
----
-3950

query II rowsort
SELECT + - col1 AS col2, col1 + - col1 AS col0 FROM tab1 AS cor0
----
-14
0
-47
0
-5
0

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

query II rowsort
SELECT DISTINCT - + col0 * - 10 AS col1, col2 FROM tab2 cor0
----
460
23
640
40
750
58

query I rowsort
SELECT + col1 * + - col2 * - col0 * 67 AS col0 FROM tab1
----
1680025
19486012
4592448

onlyif mysql # aggregate syntax: 
query I rowsort label-290
SELECT 69 * - ( + COUNT( - col0 ) ) FROM tab1
----
-207

skipif mysql # not compatible
query I rowsort label-290
SELECT 69 * - ( + COUNT ( - col0 ) ) FROM tab1
----
-207

onlyif mysql # aggregate syntax: 
query I rowsort label-291
SELECT ALL COUNT( col1 ) * COUNT( * ) - + + MAX( - - col1 ) AS col2 FROM tab1
----
-38

skipif mysql # not compatible
query I rowsort label-291
SELECT ALL COUNT ( col1 ) * COUNT ( * ) - + + MAX ( - - col1 ) AS col2 FROM tab1
----
-38

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 NOT IN ( col2 * col1 * - + 74 + 58 * - 49 * col0, ( + - col0 ), + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-293
SELECT CAST( NULL AS SIGNED ) * - col2 AS col0, + 37 AS col2, - col2 FROM tab2
----
9 values hashing to 12234584f1f3ffbffab9e74dbdd1ee23

skipif mysql # not compatible
query III rowsort label-293
SELECT CAST ( NULL AS INTEGER ) * - col2 AS col0, + 37 AS col2, - col2 FROM tab2
----
9 values hashing to 12234584f1f3ffbffab9e74dbdd1ee23

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

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

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

skipif mysql # not compatible
query I rowsort label-295
SELECT ALL - MAX ( DISTINCT - col0 ) FROM tab0 AS cor0
----
15

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

onlyif mysql # aggregate syntax: 
query I rowsort label-297
SELECT ALL + + COUNT( ALL + 24 ) + + COUNT( * ) * - + 69 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-612

skipif mysql # not compatible
query I rowsort label-297
SELECT ALL + + COUNT ( ALL + 24 ) + + COUNT ( * ) * - + 69 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-612

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab2 WHERE col2 / - col0 + - col1 - - col1 * 21 * - col2 IS NULL
----

query I rowsort
SELECT DISTINCT + ( + ( + ( - + 1 ) ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-300
SELECT + COUNT( DISTINCT - 71 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-300
SELECT + COUNT ( DISTINCT - 71 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
1

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

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

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

query I rowsort
SELECT col0 + - 68 FROM tab1 AS cor0
----
-17
17
23

onlyif mysql # aggregate syntax: 
query II rowsort label-304
SELECT DISTINCT MAX( col2 ) AS col0, - 90 + - 43 AS col0 FROM tab1
----
96
-133

skipif mysql # not compatible
query II rowsort label-304
SELECT DISTINCT MAX ( col2 ) AS col0, - 90 + - 43 AS col0 FROM tab1
----
96
-133

query I rowsort
SELECT col1 + - col0 + + col1 FROM tab1
----
-23
-75
3

query I rowsort
SELECT ALL - ( + 15 ) * + col1 + 88 AS col2 FROM tab2
----
-1067
-677
-917

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT ALL SUM( DISTINCT 26 ) FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-307
SELECT ALL SUM ( DISTINCT 26 ) FROM tab0
----
26

query II rowsort
SELECT + 73 * - + col0 AS col2, - 77 + - + 23 * + col0 * + 54 AS col1 FROM tab1
----
-3723
-63419
-6205
-105647
-6643
-113099

query I rowsort
SELECT DISTINCT 93 + - - ( 11 ) AS col2 FROM tab1
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-310
SELECT DISTINCT - COUNT( * ) - + 83 col0 FROM tab0 WHERE + + col0 IS NULL
----
-83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-310
SELECT DISTINCT - COUNT ( * ) - + 83 col0 FROM tab0 WHERE + + col0 IS NULL
----
-83

query I rowsort
SELECT DISTINCT col1 + - - col0 * + 1 * - 43 AS col1 FROM tab0 AS cor0
----
-3720
-4170
-564

query I rowsort
SELECT - col0 - - col2 + + col1 + + col0 * - + col1 * - - col0 AS col2 FROM tab0 AS cor0
----
-159005
-18112
-9406

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + 47 AND 97
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-315
SELECT - + ( - 31 ) * - + ( - - 37 ) * + 28 / CAST( NULL AS SIGNED ) - 14 - + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-315
SELECT - + ( - 31 ) * - + ( - - 37 ) * + 28 / CAST ( NULL AS INTEGER ) - 14 - + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT + - 98 - 13 * - col1 AS col2 FROM tab1 AS cor0 WHERE NOT col0 + + col1 >= - 53
----

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

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

query I rowsort
SELECT DISTINCT + 33 * - col0 FROM tab1 AS cor0
----
-1683
-2805
-3003

query I rowsort
SELECT - - col2 * 62 * - col2 FROM tab2 AS cor0
----
-208568
-32798
-99200

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

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

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

query I rowsort
SELECT ALL + 53 * - col2 FROM tab0
----
-2491
-5247
-530

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-324
SELECT * FROM tab1 WHERE NOT + 78 / col1 > CAST( - col2 AS SIGNED ) - col1
----

skipif mysql # not compatible
query III rowsort label-324
SELECT * FROM tab1 WHERE NOT + 78 / col1 > CAST ( - col2 AS INTEGER ) - col1
----

query I rowsort
SELECT - 12 * - 49 * + - col0 FROM tab1
----
-29988
-49980
-53508

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-329
SELECT ALL CAST( NULL AS SIGNED ) * 36 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-329
SELECT ALL CAST ( NULL AS INTEGER ) * 36 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query II rowsort label-330
SELECT ( - col0 ) DIV 54 * - col2, - 12 AS col2 FROM tab2
----
0
-12
40
-12
58
-12

skipif mysql # not compatible
query II rowsort label-330
SELECT ( - col0 ) / 54 * - col2, - 12 AS col2 FROM tab2
----
0
-12
40
-12
58
-12

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * - col1 * - col0 * + col1 <> + col0
----
97
1
99

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-333
SELECT - 83 * CAST( - col1 AS SIGNED ) - + - col1 AS col1 FROM tab1 cor0
----
1176
3948
420

skipif mysql # not compatible
query I rowsort label-333
SELECT - 83 * CAST ( - col1 AS INTEGER ) - + - col1 AS col1 FROM tab1 cor0
----
1176
3948
420

query II rowsort
SELECT DISTINCT col0 * - 97 * + + 88 + 67 * + col0 * col2 * + col1 AS col2, - col0 AS col0 FROM tab2 AS cor0
----
12660736
-64
18886950
-75
3222530
-46

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

onlyif mysql # aggregate syntax: 
query I rowsort label-336
SELECT ALL + 30 * + MAX( 88 ) FROM tab0
----
2640

skipif mysql # not compatible
query I rowsort label-336
SELECT ALL + 30 * + MAX ( 88 ) FROM tab0
----
2640

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 BETWEEN NULL AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-338
SELECT DISTINCT MIN( + + 94 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
94

skipif mysql # not compatible
query I rowsort label-338
SELECT DISTINCT MIN ( + + 94 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
94

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

query I rowsort
SELECT 49 * - col1 AS col1 FROM tab1 AS cor0 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-341
SELECT - col0 / - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-341
SELECT - col0 / - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-342
SELECT ALL MAX( + CAST( NULL AS SIGNED ) ) * COUNT( * ) * - - COUNT( ALL - + 91 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-342
SELECT ALL MAX ( + CAST ( NULL AS INTEGER ) ) * COUNT ( * ) * - - COUNT ( ALL - + 91 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - ( - 99 ) FROM tab1
----
99

query I rowsort
SELECT ALL ( + 69 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-345
SELECT 70 + COUNT( + - col1 ) FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-345
SELECT 70 + COUNT ( + - col1 ) FROM tab0
----
73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-347
SELECT + SUM( DISTINCT - col2 ) * 32 FROM tab1 AS cor0
----
-7136

skipif mysql # not compatible
query I rowsort label-347
SELECT + SUM ( DISTINCT - col2 ) * 32 FROM tab1 AS cor0
----
-7136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 7 col0 FROM tab2
----
7
7
7

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND col0
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-352
SELECT ALL + - MAX( DISTINCT + col0 ) + - ( + - COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT col0 * - 67 * + 80 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-352
SELECT ALL + - MAX ( DISTINCT + col0 ) + - ( + - COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT col0 * - 67 * + 80 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-353
SELECT ALL SUM( + + CAST( + col0 AS SIGNED ) ) * + - 75 AS col1 FROM tab0 AS cor0
----
-14925

skipif mysql # not compatible
query I rowsort label-353
SELECT ALL SUM ( + + CAST ( + col0 AS INTEGER ) ) * + - 75 AS col1 FROM tab0 AS cor0
----
-14925

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 14 * + 73 < NULL
----

query II rowsort
SELECT DISTINCT - col1 AS col0, + 57 AS col2 FROM tab0 WHERE + + col2 * + 27 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-356
SELECT + col1 col2, + 93 DIV col2 * - - 76 AS col0 FROM tab2
----
51
304
67
76
77
152

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-356
SELECT + col1 col2, + 93 / col2 * - - 76 AS col0 FROM tab2
----
51
304
67
76
77
152

onlyif mysql # DIV for integer division: 
query I rowsort label-357
SELECT col1 DIV 93 + 5 col0 FROM tab1
----
5
5
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-357
SELECT col1 / 93 + 5 col0 FROM tab1
----
5
5
5

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

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

skipif mysql # not compatible
query I rowsort label-359
SELECT col2 / + 57 AS col2 FROM tab1 AS cor0
----
1
1
1

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

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

query I rowsort
SELECT - col0 * + col0 + - 38 AS col2 FROM tab0 cor0
----
-263
-7607
-9447

onlyif mysql # aggregate syntax: 
query II rowsort label-362
SELECT 56 * - + COUNT( * ) AS col0, - 88 FROM tab0
----
-168
-88

skipif mysql # not compatible
query II rowsort label-362
SELECT 56 * - + COUNT ( * ) AS col0, - 88 FROM tab0
----
-168
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-363
SELECT ALL - 12 DIV + MIN( + 26 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-363
SELECT ALL - 12 / + MIN ( + 26 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query I rowsort
SELECT DISTINCT - - col1 - - + col2 AS col2 FROM tab0 cor0
----
100
128
31

onlyif mysql # DIV for integer division: 
query I rowsort label-365
SELECT DISTINCT col0 DIV col1 + - 56 FROM tab1 AS cor0
----
-39
-53
-55

skipif mysql # not compatible
query I rowsort label-365
SELECT DISTINCT col0 / col1 + - 56 FROM tab1 AS cor0
----
-39
-53
-55

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

skipif mysql # not compatible
query I rowsort label-366
SELECT + MIN ( ALL + - col0 ) + + - 33 AS col0 FROM tab0 AS cor0
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-367
SELECT ALL - + SUM( DISTINCT + - 21 ) - - - 0 AS col2 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-367
SELECT ALL - + SUM ( DISTINCT + - 21 ) - - - 0 AS col2 FROM tab2 AS cor0
----
21

query I rowsort
SELECT - col2 + + + 56 + - + ( col1 ) AS col2 FROM tab2 cor0
----
-18
-61
-69

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

query I rowsort
SELECT DISTINCT + col0 - 77 * - col1 FROM tab0
----
1704
174
6252

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-371
SELECT ALL + + 56 DIV - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-371
SELECT ALL + + 56 / - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-18

query II rowsort
SELECT + 51 * - 43 * + + col1 / + - 38 + + col0, - 50 AS col2 FROM tab1 AS cor0 WHERE NOT col0 = ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-373
SELECT - COUNT( * ) * - 96 + 44 AS col1 FROM tab2 AS cor0
----
332

skipif mysql # not compatible
query I rowsort label-373
SELECT - COUNT ( * ) * - 96 + 44 AS col1 FROM tab2 AS cor0
----
332

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - col2 - - - col1 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 98 IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-377
SELECT + COUNT( * ) DIV - - 47 * + MIN( - 68 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-377
SELECT + COUNT ( * ) / - - 47 * + MIN ( - 68 ) AS col1 FROM tab2
----
0

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - 71 AND - 76 / - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-381
SELECT + MAX( ALL - 63 ) * - - 61 FROM tab0 AS cor0
----
-3843

skipif mysql # not compatible
query I rowsort label-381
SELECT + MAX ( ALL - 63 ) * - - 61 FROM tab0 AS cor0
----
-3843

query II rowsort
SELECT 29, + col1 * - 43 AS col2 FROM tab0 AS cor0
----
29
-3483
29
-43
29
-903

onlyif mysql # aggregate syntax: 
query I rowsort label-383
SELECT + COUNT( * ) AS col1 FROM tab0 cor0 WHERE NOT NULL < + col1
----
0

skipif mysql # not compatible
query I rowsort label-383
SELECT + COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NOT NULL < + col1
----
0

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

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

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

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

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

query I rowsort
SELECT col2 * - - col0 AS col2 FROM tab2 AS cor0
----
1058
2560
4350

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

skipif mysql # not compatible
query I rowsort label-388
SELECT ALL COUNT ( * ) + 85 FROM tab1
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-389
SELECT ALL - SUM( ALL + 61 ) AS col0, ( - + ( SUM( ALL - - 20 ) ) ) FROM tab1
----
-183
-60

skipif mysql # not compatible
query II rowsort label-389
SELECT ALL - SUM ( ALL + 61 ) AS col0, ( - + ( SUM ( ALL - - 20 ) ) ) FROM tab1
----
-183
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 * + 33 AS col0, 9 * + 5 col1 FROM tab0
----
1551
45
3267
45
330
45

query I rowsort
SELECT DISTINCT + col2 * + + col0 + - col2 * - col1 AS col1 FROM tab0
----
1080
4512
9702

query I rowsort
SELECT DISTINCT - 78 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 81 + - + col2 FROM tab2
----
23
41
58

query I rowsort
SELECT DISTINCT - col1 * + + col1 + + - col1 * + - col2 AS col2 FROM tab2 cor0
----
-1428
-2849
-603

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

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

query I rowsort
SELECT ALL ( + + col1 ) * - 83 AS col1 FROM tab0 AS cor0
----
-1743
-6723
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-397
SELECT DISTINCT + MIN( ALL + col2 ) AS col1 FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-397
SELECT DISTINCT + MIN ( ALL + col2 ) AS col1 FROM tab1 cor0
----
59

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

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 - + 35 - - 98 * - 20 IN ( - 15 * - col0 * col0 * + col0 / 4 / - ( + ( - col0 ) ), col0, - - col2 + - col2 + 68 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 - ( + col1 ) AS col2 FROM tab0 cor0
----
-66
66
96

query I rowsort
SELECT + col0 - + 89 AS col2 FROM tab0 AS cor0
----
-2
-74
8

query I rowsort
SELECT ( col0 ) - col1 FROM tab0 AS cor0
----
-66
66
96

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

query I rowsort
SELECT 52 + col1 AS col2 FROM tab0
----
133
53
73

query I rowsort
SELECT col0 * - ( + - 70 ) FROM tab0
----
1050
6090
6790

onlyif mysql # aggregate syntax: 
query I rowsort label-410
SELECT + MAX( DISTINCT + 85 ) * + 67 FROM tab1
----
5695

skipif mysql # not compatible
query I rowsort label-410
SELECT + MAX ( DISTINCT + 85 ) * + 67 FROM tab1
----
5695

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-411
SELECT - col0 + + CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT - col0 <> NULL
----

skipif mysql # not compatible
query I rowsort label-411
SELECT - col0 + + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT - col0 <> NULL
----

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

skipif mysql # not compatible
query I rowsort label-412
SELECT 1 * - COUNT ( * ) AS col2 FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-413
SELECT col1 DIV + 79 col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-413
SELECT col1 / + 79 col0 FROM tab0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT MIN( - col2 ) * + - 63 FROM tab1
----
6048

skipif mysql # not compatible
query I rowsort label-414
SELECT MIN ( - col2 ) * + - 63 FROM tab1
----
6048

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-415
SELECT ALL 95 DIV COUNT( * ) AS col2, 1 FROM tab1
----
31
1

skipif mysql # not compatible
query II rowsort label-415
SELECT ALL 95 / COUNT ( * ) AS col2, 1 FROM tab1
----
31
1

onlyif mysql # DIV for integer division: 
query II rowsort label-416
SELECT 42 DIV - col1 AS col1, - col1 FROM tab1
----
-3
-14
-8
-5
0
-47

skipif mysql # not compatible
query II rowsort label-416
SELECT 42 / - col1 AS col1, - col1 FROM tab1
----
-3
-14
-8
-5
0
-47

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-418
SELECT ALL - - 5 AS col0, 69 DIV + + 5 FROM tab0 cor0
----
5
13
5
13
5
13

skipif mysql # not compatible
query II rowsort label-418
SELECT ALL - - 5 AS col0, 69 / + + 5 FROM tab0 cor0
----
5
13
5
13
5
13

query I rowsort
SELECT - + ( - 5 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

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

onlyif mysql # DIV for integer division: 
query I rowsort label-421
SELECT col2 DIV - + 15 AS col0 FROM tab1 AS cor0
----
-3
-4
-6

skipif mysql # not compatible
query I rowsort label-421
SELECT col2 / - + 15 AS col0 FROM tab1 AS cor0
----
-3
-4
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-422
SELECT DISTINCT - col1 DIV ( 45 ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-422
SELECT DISTINCT - col1 / ( 45 ) AS col2 FROM tab2 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( + col0 ) col0 FROM tab1 cor0
----
51
85
91

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-424
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST( - col1 AS DECIMAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-424
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST ( - col1 AS REAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE col2 * - col2 IS NOT NULL
----
46
64
75

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 17 col0 FROM tab2 cor0
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-428
SELECT DISTINCT - + COUNT( * ) DIV + 50 AS col0 FROM tab1 AS cor0 WHERE 51 + + col0 <= col2
----
0

skipif mysql # not compatible
query I rowsort label-428
SELECT DISTINCT - + COUNT ( * ) / + 50 AS col0 FROM tab1 AS cor0 WHERE 51 + + col0 <= col2
----
0

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 WHERE NULL < - col0
----

query I rowsort
SELECT ALL 47 + - col2 FROM tab0
----
-52
0
37

query I rowsort
SELECT - ( - col1 ) + + col0 + - col2 AS col0 FROM tab0
----
-1
49
98

query I rowsort
SELECT col2 + 45 FROM tab1
----
104
113
141

query I rowsort
SELECT DISTINCT col0 + col0 * col0 * - - col0 * - 14 * + + col2 FROM tab2
----
-146800576
-31342146
-342562425

query I rowsort
SELECT col0 * - - col1 + + ( + - 41 ) * col2 AS col0 FROM tab0
----
-3962
-712
1417

query II rowsort
SELECT DISTINCT + col2 * 36 + + col2 AS col2, + 28 + + col2 AS col1 FROM tab0
----
1739
75
3663
127
370
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-436
SELECT ALL ( - CAST( + - COUNT( * ) AS SIGNED ) ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-436
SELECT ALL ( - CAST ( + - COUNT ( * ) AS INTEGER ) ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-437
SELECT DISTINCT 37 * - ( + COUNT( + col2 ) ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-437
SELECT DISTINCT 37 * - ( + COUNT ( + col2 ) ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT + 2 + - 0 AS col1 FROM tab1 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-439
SELECT + MAX( 70 ) FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-439
SELECT + MAX ( 70 ) FROM tab2
----
70

query I rowsort
SELECT col1 + 15 FROM tab0
----
16
36
96

query I rowsort
SELECT ALL 22 FROM tab1 WHERE ( NULL ) IS NULL
----
22
22
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - + 19 col2 FROM tab0
----
-4
68
78

query I rowsort
SELECT DISTINCT - ( 90 ) * - 54 FROM tab1
----
4860

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 47 col0 FROM tab0
----
3807
47
987

query I rowsort
SELECT 16 * 89 FROM tab0
----
1424
1424
1424

onlyif mysql # DIV for integer division: 
query I rowsort label-446
SELECT ALL + col2 DIV 78 + - 61 FROM tab1
----
-60
-61
-61

skipif mysql # not compatible
query I rowsort label-446
SELECT ALL + col2 / 78 + - 61 FROM tab1
----
-60
-61
-61

query I rowsort
SELECT - 87 FROM tab1 WHERE ( - col1 ) BETWEEN ( + col0 ) AND - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-448
SELECT DISTINCT 44 DIV col1 FROM tab0
----
0
2
44

skipif mysql # not compatible
query I rowsort label-448
SELECT DISTINCT 44 / col1 FROM tab0
----
0
2
44

query I rowsort
SELECT + ( 17 ) * - 43 FROM tab0
----
-731
-731
-731

query I rowsort
SELECT + 6 * 73 FROM tab2
----
438
438
438

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > col0 * - col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 64 BETWEEN NULL AND + 38
----

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

skipif mysql # not compatible
query I rowsort label-453
SELECT DISTINCT 40 / 73 AS col1 FROM tab2
----
0

query I rowsort
SELECT + 88 AS col0 FROM tab1 WHERE NULL IN ( + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-455
SELECT DISTINCT - SUM( DISTINCT + 93 ) DIV + COUNT( * ) FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-455
SELECT DISTINCT - SUM ( DISTINCT + 93 ) / + COUNT ( * ) FROM tab1
----
-31

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

query I rowsort
SELECT - col0 * + 27 + col2 FROM tab0
----
-2339
-2520
-358

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-459
SELECT ALL - col1 + - col0 DIV ( col1 ) AS col1 FROM tab2
----
-51
-68
-77

skipif mysql # not compatible
query I rowsort label-459
SELECT ALL - col1 + - col0 / ( col1 ) AS col1 FROM tab2
----
-51
-68
-77

query I rowsort
SELECT DISTINCT + 63 * col1 + - col0 * 65 AS col2 FROM tab2
----
-654
223
691

query I rowsort
SELECT - col0 * - 30 + - col0 FROM tab1
----
1479
2465
2639

query I rowsort
SELECT DISTINCT 34 + col1 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN ( col0 ) AND ( col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-463
SELECT 29 DIV col1 FROM tab1 AS cor0
----
0
2
5

skipif mysql # not compatible
query I rowsort label-463
SELECT 29 / col1 FROM tab1 AS cor0
----
0
2
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-464
SELECT + 6 * CAST( NULL AS DECIMAL ) col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-464
SELECT + 6 * CAST ( NULL AS REAL ) col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-465
SELECT ( - col1 ) * + 73 + + CAST( NULL AS DECIMAL ) FROM tab2 WHERE NOT ( - ( col0 ) ) BETWEEN ( 10 ) AND ( NULL )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-465
SELECT ( - col1 ) * + 73 + + CAST ( NULL AS REAL ) FROM tab2 WHERE NOT ( - ( col0 ) ) BETWEEN ( 10 ) AND ( NULL )
----
NULL
NULL
NULL

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 33 * col2 col1 FROM tab1 AS cor0
----
1947
2244
3168

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

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

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

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

query I rowsort
SELECT 35 * - col2 FROM tab1 AS cor0
----
-2065
-2380
-3360

onlyif mysql # aggregate syntax: 
query I rowsort label-473
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND col0
----
0

skipif mysql # not compatible
query I rowsort label-473
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND col0
----
0

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

query I rowsort
SELECT DISTINCT - col2 + 71 * + 98 FROM tab0 AS cor0 WHERE NOT ( col1 ) IS NOT NULL
----

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

query I rowsort
SELECT + ( + col2 ) * col0 AS col2 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-478
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS DECIMAL ) <> ( + 77 )
----

skipif mysql # not compatible
query III rowsort label-478
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS REAL ) <> ( + 77 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-479
SELECT - COUNT( * ) * COUNT( DISTINCT 74 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-479
SELECT - COUNT ( * ) * COUNT ( DISTINCT 74 ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-480
SELECT DISTINCT MIN( + col2 ) + - COUNT( * ) AS col0 FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-480
SELECT DISTINCT MIN ( + col2 ) + - COUNT ( * ) AS col0 FROM tab1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT + COUNT( * ) AS col1 FROM tab1 WHERE - col0 + - col1 IN ( 53 )
----
0

skipif mysql # not compatible
query I rowsort label-481
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE - col0 + - col1 IN ( 53 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-482
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE - col1 > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-482
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE - col1 > ( NULL )
----
0

query I rowsort
SELECT ALL col2 + - col1 + - col2 * - 47 AS col1 FROM tab0
----
2175
459
4751

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 98 col0 FROM tab2
----
121
138
156

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-486
SELECT ALL - CAST( - - col0 AS SIGNED ) * + 50 + + 46 AS col1 FROM tab1
----
-2504
-4204
-4504

skipif mysql # not compatible
query I rowsort label-486
SELECT ALL - CAST ( - - col0 AS INTEGER ) * + 50 + + 46 AS col1 FROM tab1
----
-2504
-4204
-4504

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <> NULL AND NOT ( NULL ) IS NOT NULL
----

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 BETWEEN ( 93 * col1 + 22 ) AND ( - col0 )
----

query I rowsort
SELECT DISTINCT + 25 - col0 AS col1 FROM tab1 cor0
----
-26
-60
-66

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 68 + 24 * 1 col0 FROM tab1 AS cor0
----
-44
-44
-44

query I rowsort
SELECT DISTINCT + 70 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
70

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

query I rowsort
SELECT DISTINCT - 3 AS col0 FROM tab0 WHERE NULL IS NULL
----
-3

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

query I rowsort
SELECT DISTINCT 53 + - - ( - ( - col1 ) ) AS col0 FROM tab2 AS cor0
----
104
120
130

query I rowsort
SELECT ALL - ( + - 53 ) FROM tab1 AS cor0
----
53
53
53

query I rowsort
SELECT - + 19 + col0 * + col0 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-500
SELECT + 9, 9 * + SUM( col2 ) - COUNT( * ) AS col2 FROM tab1 AS cor0
----
9
2004

skipif mysql # not compatible
query II rowsort label-500
SELECT + 9, 9 * + SUM ( col2 ) - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
9
2004

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NOT + 1 * - ( + col2 ) * - col1 IS NOT NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 BETWEEN - col1 AND - 52
----

query I rowsort
SELECT - 10 FROM tab2 WHERE NOT - col2 + - col0 IN ( col2 )
----
-10
-10
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-505
SELECT - col2 FROM tab0 WHERE NOT ( + - col0 ) BETWEEN + 92 + col2 * + CAST( NULL AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-505
SELECT - col2 FROM tab0 WHERE NOT ( + - col0 ) BETWEEN + 92 + col2 * + CAST ( NULL AS INTEGER ) AND ( NULL )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col0 col2 FROM tab0
----
705
870
9603

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

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

query I rowsort
SELECT DISTINCT 71 * - 75 * + - col0 AS col2 FROM tab2
----
244950
340800
399375

query I rowsort
SELECT - ( col2 ) * + 93 FROM tab1
----
-5487
-6324
-8928

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( + 7 / + + col0 + 15 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-513
SELECT - MAX( DISTINCT - + col0 ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-513
SELECT - MAX ( DISTINCT - + col0 ) AS col0 FROM tab1
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-514
SELECT ALL - COUNT( * ) DIV + + 21 AS col1 FROM tab1
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-515
SELECT ALL COUNT( * ) * - 12 AS col1 FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-515
SELECT ALL COUNT ( * ) * - 12 AS col1 FROM tab0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-516
SELECT - col0 / - CAST( NULL AS SIGNED ), + col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-516
SELECT - col0 / - CAST ( NULL AS INTEGER ), + col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

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

query I rowsort
SELECT - 56 AS col1 FROM tab2 cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-519
SELECT ALL COUNT( * ) col0 FROM tab1 AS cor0 WHERE NOT ( 79 + 28 * - col1 ) <= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-519
SELECT ALL COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT ( 79 + 28 * - col1 ) <= NULL
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-521
SELECT + COUNT( * ) * - 31 + MAX( - col2 ) FROM tab2 AS cor0 WHERE NOT ( NULL <= + 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-521
SELECT + COUNT ( * ) * - 31 + MAX ( - col2 ) FROM tab2 AS cor0 WHERE NOT ( NULL <= + 45 )
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-523
SELECT DISTINCT - col0 DIV 87 * - + 65 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-523
SELECT DISTINCT - col0 / 87 * - + 65 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-524
SELECT DISTINCT col1 / col2 FROM tab1 WHERE NULL BETWEEN col1 / col0 + - col0 + col1 / + CAST( NULL AS SIGNED ) * col0 AND + 70 * col2 OR + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-524
SELECT DISTINCT col1 / col2 FROM tab1 WHERE NULL BETWEEN col1 / col0 + - col0 + col1 / + CAST ( NULL AS INTEGER ) * col0 AND + 70 * col2 OR + col0 IS NULL
----

query I rowsort
SELECT DISTINCT - ( - - 76 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-76

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

query I rowsort
SELECT + - 1 * - col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-528
SELECT DISTINCT - col1 * - - col2 * + col0 DIV + + col0 AS col1 FROM tab0 AS cor0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-528
SELECT DISTINCT - col1 * - - col2 * + col0 / + + col0 AS col1 FROM tab0 AS cor0
----
-210
-3807
-99

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

query II rowsort
SELECT ALL + - 26, col2 FROM tab2 cor0
----
-26
23
-26
40
-26
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * - 61 > - + 5
----

query I rowsort
SELECT - col1 + + col2 + - + col0 * - + col0 AS col0 FROM tab2 AS cor0
----
2088
4059
5616

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-534
SELECT DISTINCT 20 * + COUNT( col0 ) col2 FROM tab1 AS cor0
----
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-534
SELECT DISTINCT 20 * + COUNT ( col0 ) col2 FROM tab1 AS cor0
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-535
SELECT ALL 8 DIV + - COUNT( * ) AS col0 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-535
SELECT ALL 8 / + - COUNT ( * ) AS col0 FROM tab0
----
-2

query I rowsort
SELECT + 75 + + 93 + - ( col2 ) FROM tab1
----
100
109
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + ( - - col0 ) - + 63 + + col2 * + ( 74 ) col0 FROM tab2
----
1708
3001
4362

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

skipif mysql # not compatible
query I rowsort label-538
SELECT ALL + ( + CAST ( 50 AS INTEGER ) ) + + CAST ( NULL AS INTEGER ) + + - col0 + CAST ( col2 AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-539
SELECT ALL COUNT( * ) * 59 AS col0 FROM tab0 WHERE ( col0 - + + ( + col0 ) * col1 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-539
SELECT ALL COUNT ( * ) * 59 AS col0 FROM tab0 WHERE ( col0 - + + ( + col0 ) * col1 ) IS NULL
----
0

query II rowsort
SELECT ALL 21 - 40, col0 FROM tab2
----
-19
46
-19
64
-19
75

query I rowsort
SELECT DISTINCT col2 + - - col1 + 54 AS col1 FROM tab2
----
128
171
179

query I rowsort
SELECT DISTINCT + col2 + + 28 * - 36 * col2 FROM tab2 cor0
----
-23161
-40280
-58406

query I rowsort
SELECT ALL + 77 + - 7 AS col0 FROM tab1 AS cor0
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-544
SELECT ALL - - 54 - + MIN( + col2 ) FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-544
SELECT ALL - - 54 - + MIN ( + col2 ) FROM tab0 AS cor0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-545
SELECT COUNT( * ) - - 89 AS col1 FROM tab0 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-545
SELECT COUNT ( * ) - - 89 AS col1 FROM tab0 AS cor0
----
92

query I rowsort
SELECT + + 93 - - col0 + + col0 AS col1 FROM tab2 AS cor0
----
185
221
243

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 47 NOT IN ( - 59 * - 69 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 * + col2 col1 FROM tab2
----
1311
2280
3306

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-552
SELECT - col1 + - CAST( 50 AS SIGNED ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-101
-117
-127

skipif mysql # not compatible
query I rowsort label-552
SELECT - col1 + - CAST ( 50 AS INTEGER ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-101
-117
-127

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN - col2 AND - 25 + ( - - 61 ) * + - 49 * - col2 + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-557
SELECT + + SUM( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0 WHERE NOT - col0 NOT IN ( - col1 / - - col0 + - - 61, - 13 )
----
NULL

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

query II rowsort
SELECT 14, col0 AS col0 FROM tab2 AS cor0
----
14
46
14
64
14
75

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT - + ( - - 79 ) * + - COUNT( * ) FROM tab0 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-559
SELECT - + ( - - 79 ) * + - COUNT ( * ) FROM tab0 AS cor0
----
237

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL > + 20
----

query I rowsort
SELECT ALL - - ( + col2 ) * + ( + - col0 ) AS col0 FROM tab0 AS cor0
----
-705
-870
-9603

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-564
SELECT DISTINCT + COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-565
SELECT CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab0
----
NULL

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

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * 35 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-570
SELECT ALL + - CAST( ( ( - - 96 ) ) AS SIGNED ) * + + col2 * - col0 AS col0 FROM tab0 AS cor0
----
67680
83520
921888

skipif mysql # not compatible
query I rowsort label-570
SELECT ALL + - CAST ( ( ( - - 96 ) ) AS INTEGER ) * + + col2 * - col0 AS col0 FROM tab0 AS cor0
----
67680
83520
921888

onlyif mysql # aggregate syntax: 
query I rowsort label-571
SELECT DISTINCT - 39 + + SUM( - col1 ) FROM tab1 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-571
SELECT DISTINCT - 39 + + SUM ( - col1 ) FROM tab1 AS cor0
----
-105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col1 + col2 col0 FROM tab1 AS cor0
----
4345
484
810

onlyif mysql # aggregate syntax: 
query I rowsort label-573
SELECT + + SUM( + col1 ) * 83 AS col2 FROM tab1 AS cor0
----
5478

skipif mysql # not compatible
query I rowsort label-573
SELECT + + SUM ( + col1 ) * 83 AS col2 FROM tab1 AS cor0
----
5478

query I rowsort
SELECT DISTINCT + col0 * + - col0 + - 48 FROM tab0 AS cor0
----
-273
-7617
-9457

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

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

query II rowsort
SELECT + + col0 * + + ( + 42 ) * col0 AS col0, ( - col0 ) AS col1 FROM tab1 AS cor0
----
109242
-51
303450
-85
347802
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-577
SELECT + - COUNT( DISTINCT col2 ) col0 FROM tab0 WHERE + col2 + + col1 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-577
SELECT + - COUNT ( DISTINCT col2 ) col0 FROM tab0 WHERE + col2 + + col1 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 IS NULL AND NOT NULL IS NULL
----

query I rowsort
SELECT col0 * - + col2 + col1 FROM tab1
----
-4882
-5010
-6141

query I rowsort
SELECT ALL col0 + - - 6 + - col1 - - col2 * col1 * + 71 * + col2 FROM tab0
----
12703899
149172
695973

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-581
SELECT - + col2 + 44 + - col1 * + - col2 * CAST( NULL AS SIGNED ), - col1 col0 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-581
SELECT - + col2 + 44 + - col1 * + - col2 * CAST ( NULL AS INTEGER ), - col1 col0 FROM tab1 AS cor0
----
NULL
-14
NULL
-47
NULL
-5

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-583
SELECT - + CAST ( + - col2 AS INTEGER ) col0 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT ALL - 71 - - col0 AS col1 FROM tab0 AS cor0
----
-56
16
26

onlyif mysql # aggregate syntax: 
query I rowsort label-585
SELECT ALL + MIN( DISTINCT - 68 ) - 89 FROM tab0 AS cor0
----
-157

skipif mysql # not compatible
query I rowsort label-585
SELECT ALL + MIN ( DISTINCT - 68 ) - 89 FROM tab0 AS cor0
----
-157

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-586
SELECT + CAST( NULL AS DECIMAL ) * - - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-586
SELECT + CAST ( NULL AS REAL ) * - - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT - 19 * + col2 * - 73 AS col2 FROM tab2 cor0
----
31901
55480
80446

query I rowsort
SELECT ALL + + 29 FROM tab0 AS cor0 WHERE col0 * + 92 IS NOT NULL
----
29
29
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 24 col0 FROM tab0 AS cor0
----
24

query II rowsort
SELECT + 46 + col2 * ( col1 ) * - col2, + 59 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-123154
59
-225342
59
-26933
59

query II rowsort
SELECT DISTINCT + col0 AS col2, + col1 + 10 + 13 FROM tab0 AS cor0
----
15
104
87
44
97
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-593
SELECT DISTINCT - CAST( + + COUNT( CAST( + col1 AS SIGNED ) ) AS SIGNED ) FROM tab2 WHERE - col1 IN ( + col0, - col0, + + col0 + 64 + + + col1 / - - col2 * + 73 )
----
0

skipif mysql # not compatible
query I rowsort label-593
SELECT DISTINCT - CAST ( + + COUNT ( CAST ( + col1 AS INTEGER ) ) AS INTEGER ) FROM tab2 WHERE - col1 IN ( + col0, - col0, + + col0 + 64 + + + col1 / - - col2 * + 73 )
----
0

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

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

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

query II rowsort
SELECT col0 * + 74 AS col2, col1 + + col0 AS col2 FROM tab1
----
3774
65
6290
90
6734
138

query I rowsort
SELECT + col2 * - - ( - col0 ) FROM tab2
----
-1058
-2560
-4350

query II rowsort
SELECT ALL - - col0 * + - 66, col0 AS col1 FROM tab1 AS cor0
----
-3366
51
-5610
85
-6006
91

onlyif mysql # aggregate syntax: 
query I rowsort label-599
SELECT ALL - 66 * - COUNT( * ) FROM tab1 cor0
----
198

skipif mysql # not compatible
query I rowsort label-599
SELECT ALL - 66 * - COUNT ( * ) FROM tab1 cor0
----
198

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-604
SELECT + 89 + + + SUM( DISTINCT - col1 ) FROM tab2 AS cor0
----
-106

skipif mysql # not compatible
query I rowsort label-604
SELECT + 89 + + + SUM ( DISTINCT - col1 ) FROM tab2 AS cor0
----
-106

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 >= + + col2
----
15
81
47
97
1
99

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

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

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

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT ( - ( - col2 ) ) IS NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-611
SELECT CAST( + + 72 AS SIGNED ) * col1 AS col0 FROM tab0
----
1512
5832
72

skipif mysql # not compatible
query I rowsort label-611
SELECT CAST ( + + 72 AS INTEGER ) * col1 AS col0 FROM tab0
----
1512
5832
72

query I rowsort
SELECT ALL col2 + - 78 AS col0 FROM tab0
----
-31
-68
21

onlyif mysql # aggregate syntax: 
query I rowsort label-613
SELECT + MAX( ALL + 7 ) * + 24 AS col0 FROM tab2
----
168

skipif mysql # not compatible
query I rowsort label-613
SELECT + MAX ( ALL + 7 ) * + 24 AS col0 FROM tab2
----
168

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT + + col2 = - + col0
----
10
47
99

query I rowsort
SELECT ALL + ( + col1 ) + - + col2 AS col1 FROM tab0
----
-98
11
34

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

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT ALL + 83 + SUM( ALL 92 ) FROM tab2
----
359

skipif mysql # not compatible
query I rowsort label-617
SELECT ALL + 83 + SUM ( ALL 92 ) FROM tab2
----
359

onlyif mysql # aggregate syntax: 
query I rowsort label-618
SELECT ALL COUNT( * ) - MIN( - 58 ) FROM tab1
----
61

skipif mysql # not compatible
query I rowsort label-618
SELECT ALL COUNT ( * ) - MIN ( - 58 ) FROM tab1
----
61

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

query I rowsort
SELECT DISTINCT - 22 - + - ( col2 ) + + 17 * - ( - 96 ) AS col1 FROM tab0 AS cor0
----
1620
1657
1709

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-622
SELECT + - 49 * - + COUNT( * ) * + 27 * + - MAX( + 9 ) AS col1 FROM tab2 AS cor0
----
-35721

skipif mysql # not compatible
query I rowsort label-622
SELECT + - 49 * - + COUNT ( * ) * + 27 * + - MAX ( + 9 ) AS col1 FROM tab2 AS cor0
----
-35721

onlyif mysql # aggregate syntax: 
query I rowsort label-623
SELECT DISTINCT - COUNT( * ) * + 68 FROM tab0
----
-204

skipif mysql # not compatible
query I rowsort label-623
SELECT DISTINCT - COUNT ( * ) * + 68 FROM tab0
----
-204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-624
SELECT + COUNT( * ), 7 + 90 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL >= - CAST( NULL AS SIGNED )
----
0
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-624
SELECT + COUNT ( * ), 7 + 90 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL >= - CAST ( NULL AS INTEGER )
----
0
97

query I rowsort
SELECT DISTINCT - - 18 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
18

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

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

query I rowsort
SELECT ALL + 37 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

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

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

query II rowsort
SELECT DISTINCT 78 AS col1, col0 FROM tab1 cor0
----
78
51
78
85
78
91

onlyif mysql # aggregate syntax: 
query I rowsort label-631
SELECT + COUNT( * ) * 87 AS col1 FROM tab1 cor0
----
261

skipif mysql # not compatible
query I rowsort label-631
SELECT + COUNT ( * ) * 87 AS col1 FROM tab1 cor0
----
261

query II rowsort
SELECT + 77 AS col2, - col0 FROM tab1 AS cor0
----
77
-51
77
-85
77
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-633
SELECT DISTINCT COUNT( DISTINCT - 45 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-633
SELECT DISTINCT COUNT ( DISTINCT - 45 ) FROM tab1 AS cor0
----
1

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + 25, - col1 )
----

query I rowsort
SELECT ALL + 50 + col1 * 9 * - col0 AS col2 FROM tab1
----
-3775
-38443
-6376

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 5 IN ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT col1 + + 23 - + + col0 + - + 52, col0 FROM tab0 AS cor0
----
-125
97
-95
87
37
15

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-639
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT + + ( - col1 ) + ( + CAST( NULL AS DECIMAL ) ) - - + col1 NOT IN ( + + ( - 89 ) * 12 - 41, + 75 ) )
----

skipif mysql # not compatible
query III rowsort label-639
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT + + ( - col1 ) + ( + CAST ( NULL AS REAL ) ) - - + col1 NOT IN ( + + ( - 89 ) * 12 - 41, + 75 ) )
----

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-641
SELECT ALL + MIN ( ALL + col2 ) col1 FROM tab1 AS cor0
----
59

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + 40 IS NULL
----

query I rowsort
SELECT - 83 FROM tab2 AS cor0 WHERE + col0 >= col1
----
-83

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + + col2 col2 FROM tab2 AS cor0
----
116
46
80

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( + 40 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-647
SELECT ALL - 66 + col0 DIV CAST( - - 46 AS SIGNED ) AS col1 FROM tab1
----
-65
-65
-65

skipif mysql # not compatible
query I rowsort label-647
SELECT ALL - 66 + col0 / CAST ( - - 46 AS INTEGER ) AS col1 FROM tab1
----
-65
-65
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT DISTINCT 39 + + COUNT( * ) * - - 79 FROM tab0
----
276

skipif mysql # not compatible
query I rowsort label-648
SELECT DISTINCT 39 + + COUNT ( * ) * - - 79 FROM tab0
----
276

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

query I rowsort
SELECT - + 70 AS col0 FROM tab1 cor0
----
-70
-70
-70

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-654
SELECT + 72 * COUNT( DISTINCT - 11 ) AS col2 FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-654
SELECT + 72 * COUNT ( DISTINCT - 11 ) AS col2 FROM tab1 AS cor0
----
72

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

query II rowsort
SELECT - - 15 * - - ( - - col1 ) - col2 * - col0 AS col1, 81 AS col1 FROM tab2 AS cor0
----
1823
81
3715
81
5355
81

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

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

query I rowsort
SELECT ALL 45 * 55 FROM tab1 AS cor0
----
2475
2475
2475

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-659
SELECT - col0 AS col0 FROM tab2 WHERE 70 BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-659
SELECT - col0 AS col0 FROM tab2 WHERE 70 BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-661
SELECT - 32 + - CAST( - 5 AS SIGNED ) * + 26 FROM tab1 WHERE ( NULL IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-661
SELECT - 32 + - CAST ( - 5 AS INTEGER ) * + 26 FROM tab1 WHERE ( NULL IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col0 + - col1 col0 FROM tab0
----
15
87
97

query I rowsort
SELECT DISTINCT + 17 + - + col2 * - - col1 FROM tab0
----
-193
-3790
-82

query II rowsort
SELECT ALL col0, + ( + + col2 ) + - - col2 * + col1 AS col1 FROM tab0 AS cor0
----
15
3854
87
220
97
198

query I rowsort
SELECT ALL ( - col2 ) * col0 + - ( col2 ) AS col0 FROM tab2 AS cor0
----
-1081
-2600
-4408

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-666
SELECT * FROM tab1 WHERE NOT NULL = col2 / - CAST( NULL AS SIGNED ) * - CAST( col0 AS SIGNED ) * + + col2
----

skipif mysql # not compatible
query III rowsort label-666
SELECT * FROM tab1 WHERE NOT NULL = col2 / - CAST ( NULL AS INTEGER ) * - CAST ( col0 AS INTEGER ) * + + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> ( - col1 - 76 - + 16 )
----

query I rowsort
SELECT - col0 * col2 * + 65 FROM tab0
----
-45825
-56550
-624195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-669
SELECT MIN( - 52 ) + - CAST( + 99 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-151

skipif mysql # not compatible
query I rowsort label-669
SELECT MIN ( - 52 ) + - CAST ( + 99 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-151

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-671
SELECT + - MAX( + - col1 ), - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-671
SELECT + - MAX ( + - col1 ), - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
1
NULL

query II rowsort
SELECT ALL + ( - - col1 ), + 4 + + col1 AS col0 FROM tab2 AS cor0
----
51
55
67
71
77
81

query I rowsort
SELECT ALL + 50 / - - col1 - col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-676
SELECT + 17 / 56 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-677
SELECT + MIN( 67 ) FROM tab1 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-677
SELECT + MIN ( 67 ) FROM tab1 AS cor0
----
67

query I rowsort
SELECT DISTINCT + 16 * + 4 FROM tab2
----
64

query I rowsort
SELECT - 98 + + col2 FROM tab1
----
-2
-30
-39

query I rowsort
SELECT - col0 * + - col2 * - + col0 FROM tab2
----
-163840
-326250
-48668

onlyif mysql # DIV for integer division: 
query I rowsort label-681
SELECT DISTINCT col0 + + col1 * + col1 DIV + col1 FROM tab2
----
141
142
97

skipif mysql # not compatible
query I rowsort label-681
SELECT DISTINCT col0 + + col1 * + col1 / + col1 FROM tab2
----
141
142
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-683
SELECT - 91 * + - COUNT( * ) + - 70 FROM tab2 AS cor0
----
203

skipif mysql # not compatible
query I rowsort label-683
SELECT - 91 * + - COUNT ( * ) + - 70 FROM tab2 AS cor0
----
203

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 0 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-685
SELECT - MAX( DISTINCT - 61 ) FROM tab1 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-685
SELECT - MAX ( DISTINCT - 61 ) FROM tab1 AS cor0
----
61

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-689
SELECT DISTINCT + - col0 DIV + + col2 - + 5 + col2 DIV - + col0 FROM tab2 cor0
----
-6
-7

skipif mysql # not compatible
query I rowsort label-689
SELECT DISTINCT + - col0 / + + col2 - + 5 + col2 / - + col0 FROM tab2 cor0
----
-6
-7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col1 ) = 88
----

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

query I rowsort
SELECT ALL + 87 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-694
SELECT SUM( + 43 ) AS col0, + 95 FROM tab0
----
129
95

skipif mysql # not compatible
query II rowsort label-694
SELECT SUM ( + 43 ) AS col0, + 95 FROM tab0
----
129
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - 28 * + col2 col2 FROM tab0
----
106596
2772
5880

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

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

skipif mysql # not compatible
query I rowsort label-697
SELECT + 55 * - COUNT ( * ) FROM tab0
----
-165

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

onlyif mysql # aggregate syntax: 
query II rowsort label-699
SELECT DISTINCT - 56 * + COUNT( * ), + 26 col0 FROM tab0
----
-168
26

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 11 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-701
SELECT + MIN( DISTINCT - col1 ) AS col1 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-701
SELECT + MIN ( DISTINCT - col1 ) AS col1 FROM tab1
----
-47

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

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

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

skipif mysql # not compatible
query I rowsort label-704
SELECT DISTINCT - + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT ( + 3 ) FROM tab2 cor0
----
3
3
3

query I rowsort
SELECT ALL col0 * + - col2 AS col1 FROM tab1
----
-4896
-5015
-6188

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

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

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

skipif mysql # not compatible
query I rowsort label-708
SELECT ALL - 4 * CAST ( + COUNT ( * ) AS INTEGER ) - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-709
SELECT DISTINCT ( COUNT( * ) ) * 72 AS col1 FROM tab0 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-709
SELECT DISTINCT ( COUNT ( * ) ) * 72 AS col1 FROM tab0 AS cor0
----
216

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-710
SELECT - col0 AS col1, col2 / + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-710
SELECT - col0 AS col1, col2 / + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-711
SELECT ALL col1 + col0 DIV - col0 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
50
66
76

skipif mysql # not compatible
query I rowsort label-711
SELECT ALL col1 + col0 / - col0 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
50
66
76

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

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

query I rowsort
SELECT ALL - 50 * - col0 AS col0 FROM tab2 AS cor0
----
2300
3200
3750

onlyif mysql # aggregate syntax: 
query I rowsort label-714
SELECT ALL + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT - 95 + 62 NOT IN ( + 64, - col1, + col2 * + 1 + - 28 / - - ( - 29 ) - - col2, col0, + col1, - 23 )
----
0

skipif mysql # not compatible
query I rowsort label-714
SELECT ALL + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - 95 + 62 NOT IN ( + 64, - col1, + col2 * + 1 + - 28 / - - ( - 29 ) - - col2, col0, + col1, - 23 )
----
0

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

query I rowsort
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( 90 ) BETWEEN + 96 AND col2
----
59
68
96

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

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

query I rowsort
SELECT ALL col0 + - - 76 AS col2 FROM tab1
----
127
161
167

query I rowsort
SELECT DISTINCT 61 * col1 + - 43 + + + col1 AS col0 FROM tab0
----
1259
19
4979

query I rowsort
SELECT + 74 + - + col2 AS col0 FROM tab1 AS cor0
----
-22
15
6

query I rowsort
SELECT - col0 + + 65 * 30 FROM tab2 cor0
----
1875
1886
1904

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-722
SELECT ALL + + COUNT( * ) * + + CAST( COUNT( * ) AS SIGNED ) col2 FROM tab1 WHERE NOT 32 * + + col0 IS NULL
----
9

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

query I rowsort
SELECT ALL + 50 + - + col0 + + + ( - - col0 ) AS col1 FROM tab1
----
50
50
50

query I rowsort
SELECT DISTINCT + - col1 + + + col0 + + - 50 AS col1 FROM tab0 AS cor0
----
-116
16
46

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

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

query I rowsort
SELECT DISTINCT - + col0 * + + col1 + - - col1 + - col0 AS col1 FROM tab0 AS cor0
----
-1149
-1893
-193

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

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

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

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

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

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

query I rowsort
SELECT - col1 - + col0 + - col0 * + + col1 FROM tab1 AS cor0
----
-4415
-515
-779

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-733
SELECT ALL + COUNT( - 59 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-733
SELECT ALL + COUNT ( - 59 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query II rowsort
SELECT - 68 AS col1, col0 AS col2 FROM tab1
----
-68
51
-68
85
-68
91

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

query II rowsort
SELECT + col0 AS col2, col1 * + col1 FROM tab0
----
15
6561
87
441
97
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col0, - col1 + + + col0 FROM tab1
----
14
37
47
44
5
80

onlyif mysql # aggregate syntax: 
query II rowsort label-738
SELECT DISTINCT - 76 AS col1, - COUNT( * ) * - 40 AS col1 FROM tab2
----
-76
120

skipif mysql # not compatible
query II rowsort label-738
SELECT DISTINCT - 76 AS col1, - COUNT ( * ) * - 40 AS col1 FROM tab2
----
-76
120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 * + 29 col2 FROM tab2
----
2436
2436
2436

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

skipif mysql # not compatible
query I rowsort label-740
SELECT - col2 / + + col2 FROM tab1 cor0
----
-1
-1
-1

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

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

query I rowsort
SELECT DISTINCT col1 * 48 * - + col2 FROM tab0
----
-10080
-182736
-4752

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

skipif mysql # not compatible
query I rowsort label-743
SELECT ALL + COUNT ( - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + + col2 * - + col2 - ( col1 ) FROM tab1 AS cor0
----
-3486
-4671
-9230

query I rowsort
SELECT DISTINCT 70 * - - 75 FROM tab0 AS cor0 WHERE NOT col2 <> + col2
----
5250

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

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

query I rowsort
SELECT - 11 + + col0 AS col1 FROM tab0
----
4
76
86

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT NULL <= col1 - + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-750
SELECT MAX( + - col0 ) * - - CAST( NULL AS DECIMAL ) + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-751
SELECT col1 DIV + col2 + + col0 * + 70 FROM tab2
----
3222
4481
5251

skipif mysql # not compatible
query I rowsort label-751
SELECT col1 / + col2 + + col0 * + 70 FROM tab2
----
3222
4481
5251

onlyif mysql # aggregate syntax: 
query I rowsort label-752
SELECT ALL + COUNT( * ) * - COUNT( * ) + - 22 AS col1 FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-752
SELECT ALL + COUNT ( * ) * - COUNT ( * ) + - 22 AS col1 FROM tab0
----
-31

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-753
SELECT DISTINCT * FROM tab0 WHERE ( + + col1 ) NOT IN ( - - col2 / + 55 + col2 * + - ( + col2 ) + + 94 / - col1 * - CAST( NULL AS SIGNED ) * - + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-753
SELECT DISTINCT * FROM tab0 WHERE ( + + col1 ) NOT IN ( - - col2 / + 55 + col2 * + - ( + col2 ) + + 94 / - col1 * - CAST ( NULL AS INTEGER ) * - + CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT - 68 * col1 * - col1 * + + 12 + + col0 AS col1 FROM tab2 WHERE NULL >= + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - + 62 + - + col0 * + 59 * 36 * - - col0 col0 FROM tab1
----
-15345877
-17588815
-5524535

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-756
SELECT ALL - CAST( NULL AS SIGNED ) + + col0 col1 FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-757
SELECT DISTINCT col2 DIV 30 + + 11 col1 FROM tab0 cor0
----
11
12
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-757
SELECT DISTINCT col2 / 30 + + 11 col1 FROM tab0 cor0
----
11
12
14

query I rowsort
SELECT ALL + col0 + col2 + - - 84 + - - col0 * col0 + 77 FROM tab0 AS cor0
----
448
7827
9766

query I rowsort
SELECT - + col0 - - col2 + + 87 AS col1 FROM tab1 AS cor0
----
132
61
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-760
SELECT + col0 * - 70 - - CAST( - 84 AS SIGNED ) FROM tab2
----
-3304
-4564
-5334

skipif mysql # not compatible
query I rowsort label-760
SELECT + col0 * - 70 - - CAST ( - 84 AS INTEGER ) FROM tab2
----
-3304
-4564
-5334

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-762
SELECT DISTINCT + ( - 25 ) DIV - col0 AS col0 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-762
SELECT DISTINCT + ( - 25 ) / - col0 AS col0 FROM tab0 AS cor0
----
0
1

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

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

query I rowsort
SELECT - - col1 * + 47 FROM tab0 AS cor0
----
3807
47
987

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT - COUNT( - 66 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-767
SELECT - COUNT ( - 66 ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - - col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT ALL MIN( - 26 ) FROM tab0
----
-26

skipif mysql # not compatible
query I rowsort label-769
SELECT ALL MIN ( - 26 ) FROM tab0
----
-26

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

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

query I rowsort
SELECT + col1 * + - col2 + - - 54 FROM tab2
----
-1119
-3026
-3832

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

onlyif mysql # DIV for integer division: 
query II rowsort label-773
SELECT ( + 96 ) AS col2, + col1 * col0 DIV col1 + + col0 AS col2 FROM tab0
----
96
174
96
194
96
30

skipif mysql # not compatible
query II rowsort label-773
SELECT ( + 96 ) AS col2, + col1 * col0 / col1 + + col0 AS col2 FROM tab0
----
96
174
96
194
96
30

query I rowsort
SELECT ALL col2 / + col2 AS col0 FROM tab2 AS cor0 WHERE NOT - col1 NOT IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-775
SELECT + COUNT( * ) * + + 57 FROM tab2 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-775
SELECT + COUNT ( * ) * + + 57 FROM tab2 AS cor0
----
171

query I rowsort
SELECT col2 * - + 88 FROM tab0 AS cor0
----
-4136
-8712
-880

query I rowsort
SELECT - 73 * - 27 FROM tab1 AS cor0
----
1971
1971
1971

query I rowsort
SELECT - ( col1 ) * col1 + - 69 FROM tab1 AS cor0
----
-2278
-265
-94

query I rowsort
SELECT ALL + 87 + + 9 FROM tab2 AS cor0
----
96
96
96

query I rowsort
SELECT DISTINCT + + col1 * - - col1 FROM tab2 WHERE ( col1 * - + 37 ) NOT IN ( col2, col2 )
----
2601
4489
5929

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 + 30 >= ( + + ( + - 36 ) )
----
46
51
23
64
77
40

query I rowsort
SELECT 18 + - ( + ( + - col0 ) ) FROM tab0
----
105
115
33

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT DISTINCT COUNT( * ) + + 14 + - + 52 + COUNT( * ) col1 FROM tab2
----
-32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-783
SELECT DISTINCT COUNT ( * ) + + 14 + - + 52 + COUNT ( * ) col1 FROM tab2
----
-32

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NULL > 28 - - col2 * + 4
----

query I rowsort
SELECT DISTINCT - col1 + + + col2 * + col2 AS col0 FROM tab2
----
1523
3297
478

onlyif mysql # aggregate syntax: 
query I rowsort label-786
SELECT ALL ( - COUNT( DISTINCT - + col2 ) ) + + 26 AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-786
SELECT ALL ( - COUNT ( DISTINCT - + col2 ) ) + + 26 AS col0 FROM tab2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-787
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE - col0 + col0 NOT IN ( - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-787
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE - col0 + col0 NOT IN ( - - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL + col2 * - + 70 FROM tab0
----
-3290
-6930
-700

query I rowsort
SELECT + 60 - + - 64 FROM tab2
----
124
124
124

query I rowsort
SELECT + + ( 50 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT DISTINCT - 99 * + col0 AS col0 FROM tab0
----
-1485
-8613
-9603

query I rowsort
SELECT + + 23 AS col0 FROM tab2 AS cor0
----
23
23
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-793
SELECT CAST( + ( + COUNT( * ) ) AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT - 50 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-793
SELECT CAST ( + ( + COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT - 50 IS NOT NULL
----
0

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

query I rowsort
SELECT col2 * + 62 * 4 AS col1 FROM tab2 AS cor0
----
14384
5704
9920

query I rowsort
SELECT DISTINCT + 37 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) = 11 / - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-797
SELECT ALL CAST( + col1 AS SIGNED ) AS col2, col1 * - 96 FROM tab2
----
51
-4896
67
-6432
77
-7392

skipif mysql # not compatible
query II rowsort label-797
SELECT ALL CAST ( + col1 AS INTEGER ) AS col2, col1 * - 96 FROM tab2
----
51
-4896
67
-6432
77
-7392

query II rowsort
SELECT DISTINCT + 72 * col1 AS col0, 74 AS col1 FROM tab1
----
1008
74
3384
74
360
74

onlyif mysql # DIV for integer division: 
query I rowsort label-799
SELECT ALL - 39 DIV + - 17 FROM tab0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-799
SELECT ALL - 39 / + - 17 FROM tab0
----
2
2
2

query I rowsort
SELECT + 11 FROM tab2 cor0 WHERE NOT ( + - 91 IS NOT NULL )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-802
SELECT MAX( + + col0 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
75

skipif mysql # not compatible
query I rowsort label-802
SELECT MAX ( + + col0 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-803
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

skipif mysql # not compatible
query IIIIII rowsort label-803
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 39 + + - col2 AS col0 FROM tab0
----
-60
-8
29

query II rowsort
SELECT col0 AS col2, col0 AS col0 FROM tab2
----
46
46
64
64
75
75

query II rowsort
SELECT + 79 * - col0, col2 * - col2 AS col1 FROM tab0
----
-1185
-2209
-6873
-100
-7663
-9801

onlyif mysql # DIV for integer division: 
query I rowsort label-810
SELECT 49 DIV + + col1 FROM tab1
----
1
3
9

skipif mysql # not compatible
query I rowsort label-810
SELECT 49 / + + col1 FROM tab1
----
1
3
9

query III rowsort
SELECT * FROM tab0 WHERE ( NULL NOT BETWEEN NULL AND 46 * + 76 / + 80 * col0 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-813
SELECT ALL + 43 + + COUNT( * ) FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-813
SELECT ALL + 43 + + COUNT ( * ) FROM tab0
----
46

query II rowsort
SELECT - col2 - + 47, + col1 FROM tab1 AS cor0
----
-106
5
-115
47
-143
14

query I rowsort
SELECT - col2 - + - 45 FROM tab0 AS cor0
----
-2
-54
35

onlyif mysql # aggregate syntax: 
query I rowsort label-816
SELECT DISTINCT + 7 * MAX( ALL - + 44 ) col1 FROM tab1
----
-308

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-816
SELECT DISTINCT + 7 * MAX ( ALL - + 44 ) col1 FROM tab1
----
-308

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-818
SELECT DISTINCT MAX( DISTINCT - - CAST( NULL AS DECIMAL ) ) * + 17 + - 9 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-818
SELECT DISTINCT MAX ( DISTINCT - - CAST ( NULL AS REAL ) ) * + 17 + - 9 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - ( ( + col1 ) ) FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-820
SELECT 11 DIV - 98 + col0 FROM tab2 cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-820
SELECT 11 / - 98 + col0 FROM tab2 cor0
----
46
64
75

query I rowsort
SELECT DISTINCT col1 * ( - 2 ) + col1 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT ALL col2 * - - col0 FROM tab2
----
1058
2560
4350

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-827
SELECT - MIN( - + 38 ) FROM tab0
----
38

skipif mysql # not compatible
query I rowsort label-827
SELECT - MIN ( - + 38 ) FROM tab0
----
38

query III rowsort
SELECT * FROM tab0 WHERE NOT - 56 IS NOT NULL
----

query I rowsort
SELECT ALL + 16 + + + col2 FROM tab0
----
115
26
63

query I rowsort
SELECT DISTINCT ( col2 ) * - - 30 * - 93 - - col2 AS col0 FROM tab0 AS cor0
----
-131083
-276111
-27890

query I rowsort
SELECT - - ( - - col2 ) * - - col0 FROM tab2 AS cor0
----
1058
2560
4350

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

skipif mysql # not compatible
query I rowsort label-832
SELECT SUM ( DISTINCT 76 ) FROM tab1 AS cor0
----
76

query II rowsort
SELECT ALL - col0 * + - ( + 59 ), + col0 AS col1 FROM tab2 AS cor0
----
2714
46
3776
64
4425
75

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

query I rowsort
SELECT - - 81 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

onlyif mysql # DIV for integer division: 
query I rowsort label-836
SELECT ALL + 34 DIV + 7 FROM tab1, tab0 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

skipif mysql # not compatible
query I rowsort label-836
SELECT ALL + 34 / + 7 FROM tab1, tab0 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL NOT BETWEEN - ( + - ( + + 37 ) ) - - + 18 AND col2 OR ( NOT + col1 IS NOT NULL )
----

query II rowsort
SELECT ALL - col2 AS col0, col1 FROM tab0 AS cor0 WHERE NOT col0 <> + - col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-840
SELECT DISTINCT + col2 DIV col1 AS col0, + 21 FROM tab0 AS cor0
----
0
21
99
21

skipif mysql # not compatible
query II rowsort label-840
SELECT DISTINCT + col2 / col1 AS col0, + 21 FROM tab0 AS cor0
----
0
21
99
21

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

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

query I rowsort
SELECT - - col1 - - 25 FROM tab0 AS cor0
----
106
26
46

onlyif mysql # aggregate syntax: 
query I rowsort label-843
SELECT DISTINCT - - MIN( + 35 ) FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-843
SELECT DISTINCT - - MIN ( + 35 ) FROM tab0 AS cor0
----
35

query I rowsort
SELECT DISTINCT + 83 + + 59 - 92 FROM tab2
----
50

query I rowsort
SELECT ALL - - 2 + 44 FROM tab0 AS cor0
----
46
46
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-846
SELECT col0 + + - CAST( - - 55 AS SIGNED ) FROM tab1 AS cor0
----
-4
30
36

skipif mysql # not compatible
query I rowsort label-846
SELECT col0 + + - CAST ( - - 55 AS INTEGER ) FROM tab1 AS cor0
----
-4
30
36

onlyif mysql # DIV for integer division: 
query I rowsort label-847
SELECT ALL + col2 DIV - ( + - col0 ) - - col1 AS col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-847
SELECT ALL + col2 / - ( + - col0 ) - - col1 AS col1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query II rowsort label-848
SELECT ALL - 64 AS col2, COUNT( * ) AS col2 FROM tab2 cor0 WHERE ( NULL ) < + + col1 * - - col2
----
-64
0

skipif mysql # not compatible
query II rowsort label-848
SELECT ALL - 64 AS col2, COUNT ( * ) AS col2 FROM tab2 cor0 WHERE ( NULL ) < + + col1 * - - col2
----
-64
0

query I rowsort
SELECT DISTINCT + + 24 * - - col1 FROM tab1 AS cor0
----
1128
120
336

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-851
SELECT + 79 * + - COUNT( DISTINCT + - col1 ) FROM tab1
----
-237

skipif mysql # not compatible
query I rowsort label-851
SELECT + 79 * + - COUNT ( DISTINCT + - col1 ) FROM tab1
----
-237

query I rowsort
SELECT - 20 * col2 * + col1 * - col0 FROM tab1 AS cor0
----
1370880
501500
5816720

query II rowsort
SELECT DISTINCT - col1 AS col2, col2 * - col1 AS col0 FROM tab2 AS cor0
----
-51
-1173
-67
-3886
-77
-3080

query I rowsort
SELECT + ( + - col2 ) FROM tab2 cor0
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 37 IS NULL
----

query I rowsort
SELECT ALL - 24 * + + col1 FROM tab2 cor0
----
-1224
-1608
-1848

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

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

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

query II rowsort
SELECT DISTINCT - col1 - 46 AS col1, + 7 FROM tab0 WHERE - col2 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 + + - 63 + - 19 AS col0 FROM tab2
----
-128
-146
-157

query I rowsort
SELECT col0 * 24 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1104
1536
1800

query I rowsort
SELECT ALL - 67 * - 8 FROM tab0
----
536
536
536

query I rowsort
SELECT DISTINCT - ( - 65 ) + + - col2 * 1 FROM tab0 AS cor0
----
-34
18
55

query I rowsort
SELECT ALL - - 68 * - col0 FROM tab2 AS cor0
----
-3128
-4352
-5100

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN + 9 AND NULL
----

query I rowsort
SELECT 78 * - - col2 FROM tab1
----
4602
5304
7488

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

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

query I rowsort
SELECT DISTINCT - + col2 - - + 68 + - ( - col0 ) * + 60 FROM tab0 AS cor0
----
5278
5789
921

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT + MIN( ALL - 56 ) AS col2 FROM tab2 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-869
SELECT + MIN ( ALL - 56 ) AS col2 FROM tab2 AS cor0
----
-56

query I rowsort
SELECT + col1 * - col2 * col2 * col0 FROM tab1
----
-1479425
-19776848
-6580224

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

onlyif mysql # DIV for integer division: 
query I rowsort label-872
SELECT - 23 DIV + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-872
SELECT - 23 / + col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 71 * - col0 col2 FROM tab2
----
-3266
-4544
-5325

query III rowsort
SELECT * FROM tab0 WHERE - col0 + - col2 * - ( + col2 ) IS NULL
----

query I rowsort
SELECT - col0 * col0 * + col0 * - + col2 FROM tab0
----
158625
6585030
90354627

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-877
SELECT DISTINCT - 8 DIV - - COUNT( * ) FROM tab0, tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-877
SELECT DISTINCT - 8 / - - COUNT ( * ) FROM tab0, tab0 AS cor0
----
0

query I rowsort
SELECT + col0 * 89 * col0 FROM tab1 AS cor0 WHERE NOT - col0 * - + col2 <= + + col1
----
231489
643025
737009

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

onlyif mysql # DIV for integer division: 
query I rowsort label-880
SELECT - 99 DIV col1 AS col0 FROM tab1 AS cor0
----
-19
-2
-7

skipif mysql # not compatible
query I rowsort label-880
SELECT - 99 / col1 AS col0 FROM tab1 AS cor0
----
-19
-2
-7

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

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

query I rowsort
SELECT ALL + - 0 * 13 * + 82 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - + col1 * 30 FROM tab0 cor0
----
-2430
-30
-630

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-884
SELECT - ( - ( SUM ( - - col1 ) ) ) col0 FROM tab2 cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-885
SELECT + MAX( 61 ) * - + 95 FROM tab0 AS cor0
----
-5795

skipif mysql # not compatible
query I rowsort label-885
SELECT + MAX ( 61 ) * - + 95 FROM tab0 AS cor0
----
-5795

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, 84 col0 FROM tab2
----
51
84
67
84
77
84

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

onlyif mysql # aggregate syntax: 
query I rowsort label-888
SELECT ALL + COUNT( * ) * 50 * COUNT( ALL col2 ) FROM tab1 WHERE + 76 * + - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-888
SELECT ALL + COUNT ( * ) * 50 * COUNT ( ALL col2 ) FROM tab1 WHERE + 76 * + - col1 IS NULL
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-890
SELECT CAST( 64 AS SIGNED ) FROM tab2
----
64
64
64

skipif mysql # not compatible
query I rowsort label-890
SELECT CAST ( 64 AS INTEGER ) FROM tab2
----
64
64
64

query I rowsort
SELECT DISTINCT - - col2 * - - col1 * - col2 AS col0 FROM tab1 AS cor0
----
-129024
-17405
-217328

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

query II rowsort
SELECT - 20 + - - col1 AS col1, - col2 FROM tab1 AS cor0
----
-15
-59
-6
-96
27
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-894
SELECT - 23 + COUNT( ALL + col2 ) FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-894
SELECT - 23 + COUNT ( ALL + col2 ) FROM tab0 AS cor0
----
-20

query I rowsort
SELECT col2 * - 98 + + 15 FROM tab0 AS cor0
----
-4591
-965
-9687

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-897
SELECT ALL + col2 - + col0 * - CAST( + col0 AS SIGNED ) col0 FROM tab1 AS cor0
----
2697
7284
8349

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-897
SELECT ALL + col2 - + col0 * - CAST ( + col0 AS INTEGER ) col0 FROM tab1 AS cor0
----
2697
7284
8349

query I rowsort
SELECT ALL ( - + col0 ) + - 65 * - col0 AS col1 FROM tab2 AS cor0
----
2944
4096
4800

query I rowsort
SELECT ALL + 22 - + col2 FROM tab1 AS cor0
----
-37
-46
-74

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - - col2 IS NOT NULL AND col2 = + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-901
SELECT + COUNT( * ) + - + 17 * + + 45 col2 FROM tab2 AS cor0
----
-762

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-901
SELECT + COUNT ( * ) + - + 17 * + + 45 col2 FROM tab2 AS cor0
----
-762

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - + col1 col0 FROM tab1
----
-110
-115
-64

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + 22 + - ( 61 + 67 ) NOT IN ( - 30 + - 3 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 79 + - ( + col0 ) col0 FROM tab1
----
-12
-6
28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-910
SELECT DISTINCT 27 + - SUM( col2 ) * + 23 FROM tab2
----
-2756

skipif mysql # not compatible
query I rowsort label-910
SELECT DISTINCT 27 + - SUM ( col2 ) * + 23 FROM tab2
----
-2756

query I rowsort
SELECT ALL 80 FROM tab2 WHERE NULL IN ( 61 )
----

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

query I rowsort
SELECT - col0 - + 77 * + col0 FROM tab2
----
-3588
-4992
-5850

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

query I rowsort
SELECT ALL - col1 / - 97 AS col0 FROM tab0 WHERE 40 IS NULL
----

query I rowsort
SELECT 62 + + 30 AS col0 FROM tab0
----
92
92
92

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) <> ( 64 )
----

query I rowsort
SELECT - 7 * 67 FROM tab0
----
-469
-469
-469

query I rowsort
SELECT DISTINCT - 50 + col0 FROM tab2
----
-4
14
25

query I rowsort
SELECT ALL 52 * col1 AS col0 FROM tab1
----
2444
260
728

query III rowsort
SELECT ALL * FROM tab1 WHERE + 2 IN ( + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 37 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 + - col2 FROM tab2 WHERE NOT col2 - + col1 IS NULL
----
-116
-46
-80

query I rowsort
SELECT ALL 36 FROM tab2 WHERE NOT col2 / + col2 IS NULL
----
36
36
36

query I rowsort
SELECT col0 + + 64 AS col0 FROM tab0
----
151
161
79

onlyif mysql # DIV for integer division: 
query I rowsort label-926
SELECT + 58 DIV ( col1 ) FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
0
2
58

skipif mysql # not compatible
query I rowsort label-926
SELECT + 58 / ( col1 ) FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
0
2
58

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

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

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

query I rowsort
SELECT DISTINCT AVG ( + 2 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( - col1 ) NOT BETWEEN col0 + + 47 AND 91
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-930
SELECT DISTINCT MAX( ALL - 21 ) FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-930
SELECT DISTINCT MAX ( ALL - 21 ) FROM tab0 AS cor0
----
-21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-932
SELECT + 58 + - COUNT( * ) AS col1 FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-932
SELECT + 58 + - COUNT ( * ) AS col1 FROM tab1
----
55

query I rowsort
SELECT - 25 + col0 FROM tab1
----
26
60
66

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

query I rowsort
SELECT 20 AS col1 FROM tab1 AS cor0 WHERE ( 19 ) IN ( + col1 + + ( 83 ) )
----

query I rowsort
SELECT DISTINCT - 4 + + col2 * 5 AS col2 FROM tab0 cor0
----
231
46
491

query I rowsort
SELECT - - col1 + col0 * + 16 AS col0 FROM tab1 AS cor0
----
1365
1503
830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col1 ) * - 52 + + 38 col1 FROM tab2 AS cor0
----
-2614
-3446
-3966

onlyif mysql # aggregate syntax: 
query I rowsort label-939
SELECT ALL 62 - - MAX( ALL col0 ) AS col0 FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-939
SELECT ALL 62 - - MAX ( ALL col0 ) AS col0 FROM tab1 AS cor0
----
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 - - col2 * + col1 col2 FROM tab2 cor0
----
1150
3040
3828

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-943
SELECT col2 * CAST( col2 AS SIGNED ) col0 FROM tab0 AS cor0
----
100
2209
9801

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-943
SELECT col2 * CAST ( col2 AS INTEGER ) col0 FROM tab0 AS cor0
----
100
2209
9801

query I rowsort
SELECT DISTINCT + - 45 * ( - col0 * col0 ) AS col1 FROM tab2 AS cor0
----
184320
253125
95220

onlyif mysql # aggregate syntax: 
query I rowsort label-945
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) AS col1 FROM tab2 WHERE NOT - col2 IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-945
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2 WHERE NOT - col2 IS NULL
----
-9

query I rowsort
SELECT col0 * + 28 AS col1 FROM tab1
----
1428
2380
2548

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

query I rowsort
SELECT + col2 * + + 24 AS col0 FROM tab2
----
1392
552
960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-949
SELECT SUM( DISTINCT - col2 ) DIV 57 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-949
SELECT SUM ( DISTINCT - col2 ) / 57 FROM tab1
----
-3

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

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

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

query I rowsort
SELECT ALL col2 * 67 AS col2 FROM tab0
----
3149
6633
670

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 15 col1 FROM tab2
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-954
SELECT DISTINCT 17 DIV - - col2 AS col2 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-954
SELECT DISTINCT 17 / - - col2 AS col2 FROM tab0
----
0
1

query I rowsort
SELECT - col1 * col2 AS col1 FROM tab0 WHERE NOT + 94 IN ( col0 )
----
-210
-3807
-99

query I rowsort
SELECT ALL - 84 + + col0 FROM tab0 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT - ( + col2 ) IS NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-958
SELECT ALL + MAX( - 91 ) FROM tab2 cor0 WHERE - col0 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-958
SELECT ALL + MAX ( - 91 ) FROM tab2 cor0 WHERE - col0 <= NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-959
SELECT + MIN( col0 ) DIV - ( - 53 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-959
SELECT + MIN ( col0 ) / - ( - 53 ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT 76 * - - col1 + - 18 * col0 AS col1 FROM tab2 AS cor0
----
3048
3742
4700

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-963
SELECT - MIN( DISTINCT 86 ) AS col1 FROM tab0 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-963
SELECT - MIN ( DISTINCT 86 ) AS col1 FROM tab0 AS cor0
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-964
SELECT DISTINCT - col2 DIV + + col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-964
SELECT DISTINCT - col2 / + + col2 FROM tab1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-965
SELECT + col2 * + 9 + + 54 DIV col2 AS col0 FROM tab1 AS cor0
----
531
612
864

skipif mysql # not compatible
query I rowsort label-965
SELECT + col2 * + 9 + + 54 / col2 AS col0 FROM tab1 AS cor0
----
531
612
864

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-967
SELECT col1 AS col2, - CAST( - col1 AS SIGNED ) AS col0 FROM tab0 cor0
----
1
1
21
21
81
81

skipif mysql # not compatible
query II rowsort label-967
SELECT col1 AS col2, - CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 cor0
----
1
1
21
21
81
81

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

skipif mysql # not compatible
query I rowsort label-968
SELECT + 43 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
129

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 11 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-970
SELECT + - 87 DIV ( ( - 96 ) ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-970
SELECT + - 87 / ( ( - 96 ) ) FROM tab2 AS cor0
----
0
0
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-972
SELECT + col2 * CAST( + - 88 AS SIGNED ) FROM tab1 AS cor0
----
-5192
-5984
-8448

skipif mysql # not compatible
query I rowsort label-972
SELECT + col2 * CAST ( + - 88 AS INTEGER ) FROM tab1 AS cor0
----
-5192
-5984
-8448

onlyif mysql # aggregate syntax: 
query I rowsort label-973
SELECT + 83 * + COUNT( * ) + ( + 96 ) AS col2 FROM tab2 WHERE NULL = - 21 - + col1
----
96

skipif mysql # not compatible
query I rowsort label-973
SELECT + 83 * + COUNT ( * ) + ( + 96 ) AS col2 FROM tab2 WHERE NULL = - 21 - + col1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-974
SELECT col1 * - 42 FROM tab0 WHERE - col1 + - 21 < - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-974
SELECT col1 * - 42 FROM tab0 WHERE - col1 + - 21 < - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 WHERE col2 = - 87
----

query I rowsort
SELECT - col0 + + col2 FROM tab1 WHERE - col0 + col2 NOT BETWEEN ( - 46 + + 35 ) AND ( NULL )
----
-23
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 33 col2 FROM tab2 WHERE col0 NOT IN ( - + 0 )
----
-1518
-2112
-2475

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-979
SELECT col2 + - + CAST( - col2 AS SIGNED ) FROM tab2
----
116
46
80

skipif mysql # not compatible
query I rowsort label-979
SELECT col2 + - + CAST ( - col2 AS INTEGER ) FROM tab2
----
116
46
80

query I rowsort
SELECT + col2 + + col1 * - ( + + 75 ) AS col0 FROM tab0 AS cor0
----
-1565
-6028
24

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col0 BETWEEN ( + 11 ) AND - 59 / - 24
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 - 55 FROM tab1
----
-106
-140
-146

query I rowsort
SELECT - col2 * + 14 * - col2 - + 10 + - ( - col0 ) * - 40 FROM tab0 AS cor0
----
-2090
133324
30316

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-986
SELECT - SUM( ALL - 23 ) AS col1 FROM tab1 cor0
----
69

skipif mysql # not compatible
query I rowsort label-986
SELECT - SUM ( ALL - 23 ) AS col1 FROM tab1 cor0
----
69

query I rowsort
SELECT DISTINCT - ( - 9 ) FROM tab0 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 39, col0 col1 FROM tab2 AS cor0
----
39
46
39
64
39
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 + - - ( 72 ) * 76 <> NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-991
SELECT DISTINCT CAST( - 52 AS SIGNED ) FROM tab1 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-991
SELECT DISTINCT CAST ( - 52 AS INTEGER ) FROM tab1 AS cor0
----
-52

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

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

query I rowsort
SELECT ALL ( - 4 ) * - - col1 * 47 + + + col0 FROM tab2
----
-12521
-14412
-9542

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

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

query I rowsort
SELECT ALL - 19 * + col1 * - 9 AS col1 FROM tab2
----
11457
13167
8721

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 55 col2 FROM tab1 WHERE NOT - col2 IN ( + 70 )
----
-55
-55
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-998
SELECT DISTINCT MAX( + + 30 ) FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-998
SELECT DISTINCT MAX ( + + 30 ) FROM tab1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-999
SELECT - ( - COUNT( ALL - 12 ) ) * - ( 66 ) AS col2 FROM tab1
----
-198

skipif mysql # not compatible
query I rowsort label-999
SELECT - ( - COUNT ( ALL - 12 ) ) * - ( 66 ) AS col2 FROM tab1
----
-198

query II rowsort
SELECT ALL col0, + col2 - - col2 * - 76 FROM tab0
----
15
-3525
87
-750
97
-7425

query I rowsort
SELECT ( 50 ) AS col0 FROM tab2
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1002
SELECT DISTINCT MIN( ALL - col2 ) AS col0 FROM tab1 cor0 WHERE NOT ( - col2 / + col2 ) IS NULL
----
-96

skipif mysql # not compatible
query I rowsort label-1002
SELECT DISTINCT MIN ( ALL - col2 ) AS col0 FROM tab1 cor0 WHERE NOT ( - col2 / + col2 ) IS NULL
----
-96

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

skipif mysql # not compatible
query II rowsort label-1003
SELECT + CAST ( NULL AS INTEGER ) AS col1, + ( 44 ) AS col0 FROM tab2 cor0
----
NULL
44
NULL
44
NULL
44

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 * + col0 <> ( 67 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 * col2 >= - col1 / 62
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE NOT + + 14 < NULL
----

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

query I rowsort
SELECT ALL + col2 + col0 FROM tab2 WHERE - - col1 BETWEEN NULL AND + col2
----

query I rowsort
SELECT 45 * - - 89 FROM tab0
----
4005
4005
4005

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

query I rowsort
SELECT ALL + 30 * 80 + col1 FROM tab1 AS cor0
----
2405
2414
2447

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

query I rowsort
SELECT ALL 78 * - - col2 + ( - col2 ) FROM tab1 AS cor0
----
4543
5236
7392

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1014
SELECT ALL - ( COUNT ( * ) ) col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT ALL + 60 * - col2 AS col1 FROM tab0 AS cor0
----
-2820
-5940
-600

query I rowsort
SELECT 42 + 13 * ( 28 ) AS col0 FROM tab1
----
406
406
406

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

query III rowsort
SELECT * FROM tab0 WHERE col2 / - + 6 + + + 5 - - col1 + + + 36 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1019
SELECT * FROM tab1 WHERE - col1 * - 33 + - col1 + + col2 + - - col0 * - col1 / + col2 + - col2 + - col0 * + CAST( - col0 * col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1019
SELECT * FROM tab1 WHERE - col1 * - 33 + - col1 + + col2 + - - col0 * - col1 / + col2 + - col2 + - col0 * + CAST ( - col0 * col1 AS INTEGER ) IS NULL
----

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

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

query II rowsort
SELECT + 20, col2 + col2 + + ( + 16 ) * col0 * - ( - 37 ) + + col2 AS col0 FROM tab0
----
20
51534
20
57721
20
9021

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1023
SELECT - COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-1023
SELECT - COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab1
----
-1

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 + col2 <= ( - col0 )
----

query I rowsort
SELECT + col1 * + col1 + - col2 + - + col1 - - - 59 + + 79 * ( + col0 ) * + 90 * col2 AS col0 FROM tab1 AS cor0
----
34810587
35656552
43998715

query I rowsort
SELECT 29 + + 85 AS col0 FROM tab2
----
114
114
114

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT ALL + SUM( 70 ) + - MAX( - col0 ) AS col2 FROM tab2
----
256

skipif mysql # not compatible
query I rowsort label-1028
SELECT ALL + SUM ( 70 ) + - MAX ( - col0 ) AS col2 FROM tab2
----
256

query I rowsort
SELECT 77 * col0 FROM tab0
----
1155
6699
7469

query I rowsort
SELECT ALL 49 * + 13 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 12b87444b04f45f0759e3d9d094c19c7

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1031
SELECT ALL + COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

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

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

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NULL <= 75
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1034
SELECT ALL - - col2, col0 + + 28 DIV + - col0 + + + col0 AS col0 FROM tab0 AS cor0 WHERE - col2 - + col0 IS NOT NULL
----
10
174
47
29
99
194

skipif mysql # not compatible
query II rowsort label-1034
SELECT ALL - - col2, col0 + + 28 / + - col0 + + + col0 AS col0 FROM tab0 AS cor0 WHERE - col2 - + col0 IS NOT NULL
----
10
174
47
29
99
194

query I rowsort
SELECT DISTINCT + col2 * - 12 - - col2 FROM tab2 cor0
----
-253
-440
-638

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT SUM( - 36 ) AS col0 FROM tab1 cor0
----
-108

skipif mysql # not compatible
query I rowsort label-1036
SELECT SUM ( - 36 ) AS col0 FROM tab1 cor0
----
-108

query I rowsort
SELECT - 82 * - - 91 FROM tab1 AS cor0
----
-7462
-7462
-7462

query II rowsort
SELECT col0 AS col0, col1 - - - 45 FROM tab2
----
46
6
64
32
75
22

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

query II rowsort
SELECT + 14 AS col2, col0 + + + col1 FROM tab0
----
14
108
14
96
14
98

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

skipif mysql # not compatible
query I rowsort label-1041
SELECT ALL + COUNT ( * ) FROM tab1 WHERE col2 / col2 IS NULL
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1043
SELECT - MAX( - col1 ) * + + 87 AS col0 FROM tab1
----
435

skipif mysql # not compatible
query I rowsort label-1043
SELECT - MAX ( - col1 ) * + + 87 AS col0 FROM tab1
----
435

query II rowsort
SELECT - 35 AS col2, - col2 AS col2 FROM tab0 AS cor0 WHERE NOT col2 + + - 0 <= + col0
----
-35
-47
-35
-99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1046
SELECT + + MIN( - col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-1046
SELECT + + MIN ( - col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 89
----
NULL

query I rowsort
SELECT DISTINCT col1 * - col2 * - col2 AS col2 FROM tab0 AS cor0
----
178929
2100
9801

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 - + - 73 + 45 * - col0 - col2 IN ( + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + - col1 col1 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT ALL + 74 + + + 86 AS col2 FROM tab1
----
160
160
160

query II rowsort
SELECT 12 AS col2, - col2 * col0 FROM tab1 AS cor0 WHERE + ( - - col2 ) BETWEEN - - col0 AND - + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1052
SELECT + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-1052
SELECT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 90 + + col0 col2 FROM tab1 AS cor0
----
141
175
181

query I rowsort
SELECT + + 2 * + 74 FROM tab2 AS cor0
----
148
148
148

query I rowsort
SELECT ALL - + col1 * - - 36 * col1 FROM tab0 AS cor0
----
-15876
-236196
-36

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) > - + 84
----

query I rowsort
SELECT - + col0 * - 5 FROM tab2 AS cor0 WHERE 45 IS NOT NULL
----
230
320
375

onlyif mysql # aggregate syntax: 
query I rowsort label-1058
SELECT - 75 * MIN( DISTINCT - col2 ) + - + 60 + - + ( - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
4293

skipif mysql # not compatible
query I rowsort label-1058
SELECT - 75 * MIN ( DISTINCT - col2 ) + - + 60 + - + ( - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
4293

onlyif mysql # aggregate syntax: 
query I rowsort label-1059
SELECT - 88 - - COUNT( * ) FROM tab0 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-1059
SELECT - 88 - - COUNT ( * ) FROM tab0 AS cor0
----
-85

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

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

query I rowsort
SELECT DISTINCT + col0 * + 75 FROM tab2 WHERE NULL BETWEEN + - col2 AND - - 72
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1062
SELECT - COUNT( * ) + - 82 AS col1 FROM tab2
----
-85

skipif mysql # not compatible
query I rowsort label-1062
SELECT - COUNT ( * ) + - 82 AS col1 FROM tab2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-1063
SELECT ALL - SUM( + col1 ) + + COUNT( * ) - MAX( + col2 ) FROM tab1
----
-159

skipif mysql # not compatible
query I rowsort label-1063
SELECT ALL - SUM ( + col1 ) + + COUNT ( * ) - MAX ( + col2 ) FROM tab1
----
-159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 63 + - + 91 + col2 - + + col1 + + + col2 * ( ( - 30 ) ) col1 FROM tab2
----
-1265
-1777
-746

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 30 / + 4 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1066
SELECT ALL - COUNT( * ) + - CAST( NULL AS SIGNED ) + - 71 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1066
SELECT ALL - COUNT ( * ) + - CAST ( NULL AS INTEGER ) + - 71 AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 76 <= - col1
----

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

query I rowsort
SELECT ALL - col0 * + col0 - col1 AS col1 FROM tab2 AS cor0
----
-2167
-4173
-5692

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1071
SELECT ALL + - CAST( NULL AS DECIMAL ) AS col0, + 10 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 0e9bdb581b2cbc3d671b1ddb9fed2fd8

skipif mysql # not compatible
query II rowsort label-1071
SELECT ALL + - CAST ( NULL AS REAL ) AS col0, + 10 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 0e9bdb581b2cbc3d671b1ddb9fed2fd8

query II rowsort
SELECT ALL col0 * + + ( - col1 ), col1 AS col1 FROM tab1
----
-425
5
-4277
47
-714
14

query I rowsort
SELECT 47 * - col1 AS col0 FROM tab0
----
-3807
-47
-987

query III rowsort
SELECT ALL * FROM tab1 WHERE 58 + + - 90 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1075
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> - CAST( NULL AS SIGNED ) - CAST( - - 79 AS SIGNED ) + col1
----

skipif mysql # not compatible
query III rowsort label-1075
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> - CAST ( NULL AS INTEGER ) - CAST ( - - 79 AS INTEGER ) + col1
----

query II rowsort
SELECT - 48, + col1 + col0 AS col2 FROM tab2 AS cor0
----
-48
141
-48
142
-48
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1077
SELECT + + MAX( - - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

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

query II rowsort
SELECT DISTINCT + + 65 AS col1, col1 * - + 64 AS col2 FROM tab2 AS cor0
----
65
-3264
65
-4288
65
-4928

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + 12 = ( + - 90 )
----

query II rowsort
SELECT 74 * 51 AS col1, col1 AS col0 FROM tab0
----
3774
1
3774
21
3774
81

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - 9 col0 FROM tab0
----
-8
12
72

query I rowsort
SELECT ALL - 35 * 61 * - 60 * 1 * + + col1 FROM tab1
----
1793400
6020700
640500

query I rowsort
SELECT 23 * - col2 * 29 FROM tab1
----
-39353
-45356
-64032

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

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

query I rowsort
SELECT DISTINCT + col0 * + + 71 FROM tab1
----
3621
6035
6461

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1090
SELECT ( + + MIN( - - 93 ) ) FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-1090
SELECT ( + + MIN ( - - 93 ) ) FROM tab1 AS cor0
----
93

query I rowsort
SELECT - + 23 FROM tab2 cor0
----
-23
-23
-23

query I rowsort
SELECT DISTINCT - 98 - col2 AS col0 FROM tab1 AS cor0 WHERE NOT 81 IS NULL
----
-157
-166
-194

query I rowsort
SELECT DISTINCT ( - - col2 ) * + + 92 FROM tab1 AS cor0
----
5428
6256
8832

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1094
SELECT 25 DIV + - 61 + - ( + COUNT( * ) ) + MIN( - col1 ) + + + 97 + + COUNT( * ) AS col1 FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-1094
SELECT 25 / + - 61 + - ( + COUNT ( * ) ) + MIN ( - col1 ) + + + 97 + + COUNT ( * ) AS col1 FROM tab0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1095
SELECT DISTINCT + COUNT( * ) + - - COUNT( ALL + ( - + col2 ) ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-1095
SELECT DISTINCT + COUNT ( * ) + - - COUNT ( ALL + ( - + col2 ) ) FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1096
SELECT ALL + COUNT( ALL + col1 ) * - - COUNT( * ) * ( - COUNT( * ) ) AS col1 FROM tab2 AS cor0 WHERE col0 + + 69 + 38 * - col0 * - - col0 NOT BETWEEN - + col2 AND NULL
----
-27

skipif mysql # not compatible
query I rowsort label-1096
SELECT ALL + COUNT ( ALL + col1 ) * - - COUNT ( * ) * ( - COUNT ( * ) ) AS col1 FROM tab2 AS cor0 WHERE col0 + + 69 + 38 * - col0 * - - col0 NOT BETWEEN - + col2 AND NULL
----
-27

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

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

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

query I rowsort
SELECT + col1 * + - col1 + + - col2 - - col0 FROM tab0 cor0
----
-3
-364
-6593

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1100
SELECT ALL - 89 AS col1 FROM tab0 AS cor0 WHERE NOT NULL > 99 + + col0 + CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1100
SELECT ALL - 89 AS col1 FROM tab0 AS cor0 WHERE NOT NULL > 99 + + col0 + CAST ( + col2 AS INTEGER )
----

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

query I rowsort
SELECT 61 FROM tab2 cor0 WHERE NULL IN ( col2 * + 2 - - col1 + + col1 )
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1104
SELECT - 75 * + 69 * col2 * + col1 + - col0 AS col2, col2 DIV col2 AS col0 FROM tab0 AS cor0
----
-1086837
1
-19701240
1
-512422
1

skipif mysql # not compatible
query II rowsort label-1104
SELECT - 75 * + 69 * col2 * + col1 + - col0 AS col2, col2 / col2 AS col0 FROM tab0 AS cor0
----
-1086837
1
-19701240
1
-512422
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1106
SELECT + - COUNT( * ) * - SUM( + col0 ) FROM tab1 AS cor0
----
681

skipif mysql # not compatible
query I rowsort label-1106
SELECT + - COUNT ( * ) * - SUM ( + col0 ) FROM tab1 AS cor0
----
681

onlyif mysql # aggregate syntax: 
query I rowsort label-1107
SELECT DISTINCT - - 76 * + COUNT( * ) AS col2 FROM tab1 WHERE NOT + 54 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1107
SELECT DISTINCT - - 76 * + COUNT ( * ) AS col2 FROM tab1 WHERE NOT + 54 <= NULL
----
0

query I rowsort
SELECT ALL col2 + 91 AS col1 FROM tab1
----
150
159
187

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1110
SELECT 70, + SUM( DISTINCT - col1 ) + - 38 * + COUNT( * ) AS col1 FROM tab1
----
70
-180

skipif mysql # not compatible
query II rowsort label-1110
SELECT 70, + SUM ( DISTINCT - col1 ) + - 38 * + COUNT ( * ) AS col1 FROM tab1
----
70
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT + COUNT( * ) * 10 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-1111
SELECT + COUNT ( * ) * 10 FROM tab1
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-1112
SELECT col0 DIV - - ( - col1 ) col2 FROM tab1
----
-1
-17
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1112
SELECT col0 / - - ( - col1 ) col2 FROM tab1
----
-1
-17
-3

query I rowsort
SELECT DISTINCT - 41 * - col0 * + col2 AS col0 FROM tab2
----
104960
178350
43378

query I rowsort
SELECT DISTINCT col2 * + col1 + - 71 AS col0 FROM tab1
----
1273
224
3125

onlyif mysql # aggregate syntax: 
query I rowsort label-1115
SELECT ALL - + 19 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-1115
SELECT ALL - + 19 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-57

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * + col2 <= + - 73
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - 26, - 85 + - 18 * + col1 * + col0 AS col0 FROM tab0 AS cor0
----
-26
-1831
-26
-21955
-26
-32971

onlyif mysql # aggregate syntax: 
query I rowsort label-1119
SELECT + MIN( ALL - 58 ) * COUNT( * ) * SUM( DISTINCT - col0 ) AS col2 FROM tab2
----
32190

skipif mysql # not compatible
query I rowsort label-1119
SELECT + MIN ( ALL - 58 ) * COUNT ( * ) * SUM ( DISTINCT - col0 ) AS col2 FROM tab2
----
32190

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

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

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

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1126
SELECT CAST ( - 51 AS INTEGER ) AS col1 FROM tab0
----
-51
-51
-51

query I rowsort
SELECT DISTINCT col1 * - ( col1 ) + + 74 AS col0 FROM tab2
----
-2527
-4415
-5855

query I rowsort
SELECT DISTINCT + + 80 * - col1 / 2 FROM tab2 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1129
SELECT DISTINCT MIN( DISTINCT + 92 ) FROM tab0
----
92

skipif mysql # not compatible
query I rowsort label-1129
SELECT DISTINCT MIN ( DISTINCT + 92 ) FROM tab0
----
92

query I rowsort
SELECT - + 14 FROM tab0 WHERE NOT ( 97 ) BETWEEN - ( - - 51 ) AND col2
----
-14
-14

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

query I rowsort
SELECT ALL - 69 * col0 + - 30 FROM tab0
----
-1065
-6033
-6723

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

query I rowsort
SELECT - 81 * - col1 + - 57 FROM tab0 AS cor0
----
1644
24
6504

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 * - col1 IN ( + - col1 - col2, - 48, col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1137
SELECT MIN( DISTINCT + - col0 ) AS col2 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-1137
SELECT MIN ( DISTINCT + - col0 ) AS col2 FROM tab2
----
-75

query I rowsort
SELECT DISTINCT + ( + 48 ) + - col1 AS col1 FROM tab2
----
-19
-29
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * col1 BETWEEN - 38 AND + 66 + - 32
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1140
SELECT DISTINCT col2 DIV - col1 + + col1 + 95 + col1 FROM tab0 AS cor0
----
-2
137
257

skipif mysql # not compatible
query I rowsort label-1140
SELECT DISTINCT col2 / - col1 + + col1 + 95 + col1 FROM tab0 AS cor0
----
-2
137
257

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1141
SELECT ALL - - col2 + CAST( + col0 AS SIGNED ) * col2 FROM tab2 AS cor0
----
1081
2600
4408

skipif mysql # not compatible
query I rowsort label-1141
SELECT ALL - - col2 + CAST ( + col0 AS INTEGER ) * col2 FROM tab2 AS cor0
----
1081
2600
4408

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1144
SELECT ALL COUNT ( * ) * COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2
----
27

query I rowsort
SELECT ALL - 75 + - col0 FROM tab1
----
-126
-160
-166

onlyif mysql # DIV for integer division: 
query I rowsort label-1146
SELECT col0 DIV - 42 AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1146
SELECT col0 / - 42 AS col2 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT ALL 89 * ( COUNT( - col0 ) ) FROM tab0
----
267

skipif mysql # not compatible
query I rowsort label-1147
SELECT ALL 89 * ( COUNT ( - col0 ) ) FROM tab0
----
267

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1148
SELECT 1 / + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1148
SELECT 1 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * 97 FROM tab0
----
-4559
-9603
-970

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

query II rowsort
SELECT + col2 AS col1, col2 * + col2 - - col1 AS col0 FROM tab0 AS cor0
----
10
121
47
2290
99
9802

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1154
SELECT ( - col2 ) DIV + 39 AS col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1154
SELECT ( - col2 ) / + 39 AS col0 FROM tab2
----
-1
-1
0

query II rowsort
SELECT DISTINCT 42, + col0 FROM tab2 AS cor0
----
42
46
42
64
42
75

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

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

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

query II rowsort
SELECT DISTINCT + col0 * + col2 + col1 + + - 21 AS col2, + 60 * - col2 FROM tab0 AS cor0
----
765
-2820
870
-600
9583
-5940

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT ALL COUNT( DISTINCT + 29 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1159
SELECT ALL COUNT ( DISTINCT + 29 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL - - col0 * + 20 FROM tab0 AS cor0
----
1740
1940
300

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

skipif mysql # not compatible
query I rowsort label-1161
SELECT 14 / - - col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 33 + col2 AS col2 FROM tab1
----
101
129
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * 96 col1, + col0 AS col1 FROM tab2 WHERE NOT - 23 IS NOT NULL
----

query I rowsort
SELECT ( - + col2 ) + col0 * 99 AS col0 FROM tab2
----
4531
6296
7367

query I rowsort
SELECT ALL + col0 + - 20 * col0 * - - col0 + + col2 AS col0 FROM tab0
----
-151283
-187984
-4438

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

skipif mysql # not compatible
query I rowsort label-1166
SELECT 82 * + COUNT ( * ) * - 42 FROM tab0
----
-10332

query I rowsort
SELECT ALL 93 + ( - + col1 ) FROM tab2
----
16
26
42

query I rowsort
SELECT DISTINCT - ( 44 ) * col1 * + col0 + - 60 AS col0 FROM tab1
----
-18760
-188248
-31476

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - + 55 col0 FROM tab1
----
-114
-123
-151

query I rowsort
SELECT DISTINCT + + 21 AS col2 FROM tab0 AS cor0
----
21

query II rowsort
SELECT - col0 AS col1, 98 - + - 1 AS col2 FROM tab2 AS cor0
----
-46
99
-64
99
-75
99

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

skipif mysql # not compatible
query I rowsort label-1173
SELECT DISTINCT 8 - - + COUNT ( * ) AS col0 FROM tab0 cor0
----
11

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

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

query I rowsort
SELECT DISTINCT - - 76 - - 49 FROM tab2 AS cor0
----
125

query I rowsort
SELECT ( col1 ) * - + 80 FROM tab1 cor0
----
-1120
-3760
-400

query I rowsort
SELECT ALL - col2 * + col0 + - col0 FROM tab1 AS cor0
----
-4947
-5100
-6279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1178
SELECT 47 * + CAST( + col1 AS SIGNED ) FROM tab0
----
3807
47
987

skipif mysql # not compatible
query I rowsort label-1178
SELECT 47 * + CAST ( + col1 AS INTEGER ) FROM tab0
----
3807
47
987

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1179
SELECT 65 * + CAST( - COUNT( * ) AS SIGNED ) FROM tab1
----
-195

skipif mysql # not compatible
query I rowsort label-1179
SELECT 65 * + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-1180
SELECT COUNT( * ) * - + 71 FROM tab1
----
-213

skipif mysql # not compatible
query I rowsort label-1180
SELECT COUNT ( * ) * - + 71 FROM tab1
----
-213

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

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

query I rowsort
SELECT + 34 * 87 - 79 FROM tab0 AS cor0
----
2879
2879
2879

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - - col0 col0 FROM tab1
----
2601
7225
8281

onlyif mysql # DIV for integer division: 
query I rowsort label-1184
SELECT ALL 17 DIV + + col1 AS col1 FROM tab0
----
0
0
17

skipif mysql # not compatible
query I rowsort label-1184
SELECT ALL 17 / + + col1 AS col1 FROM tab0
----
0
0
17

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1186
SELECT - col0 DIV - - 41 AS col0 FROM tab1 AS cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-1186
SELECT - col0 / - - 41 AS col0 FROM tab1 AS cor0
----
-1
-2
-2

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1188
SELECT + SUM( 93 ) DIV - ( - 14 ) col0 FROM tab1 cor0
----
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1188
SELECT + SUM ( 93 ) / - ( - 14 ) col0 FROM tab1 cor0
----
19

query I rowsort
SELECT ALL + 3 * + 67 AS col0 FROM tab1 AS cor0
----
201
201
201

onlyif mysql # aggregate syntax: 
query I rowsort label-1190
SELECT DISTINCT - - 41 + ( - + COUNT( * ) ) * + 80 * - 9 * + 66 FROM tab0 AS cor0
----
142601

skipif mysql # not compatible
query I rowsort label-1190
SELECT DISTINCT - - 41 + ( - + COUNT ( * ) ) * + 80 * - 9 * + 66 FROM tab0 AS cor0
----
142601

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col0 BETWEEN 61 * ( + 27 ) + + col0 * - - 64 AND ( - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT - MAX( ALL + 93 ) FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-1192
SELECT - MAX ( ALL + 93 ) FROM tab0
----
-93

query II rowsort
SELECT DISTINCT + col0 + - + ( + 49 ) * + + 13, - col1 AS col0 FROM tab0 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1194
SELECT DISTINCT * FROM tab0 WHERE + col1 IN ( CAST( NULL AS DECIMAL ), 40 )
----

skipif mysql # not compatible
query III rowsort label-1194
SELECT DISTINCT * FROM tab0 WHERE + col1 IN ( CAST ( NULL AS REAL ), 40 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1195
SELECT + COUNT( * ) DIV + 92 + + COUNT( * ) * - 14 FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-1195
SELECT + COUNT ( * ) / + 92 + + COUNT ( * ) * - 14 FROM tab0
----
-42

query I rowsort
SELECT - 41 FROM tab0 WHERE NULL IS NULL
----
-41
-41
-41

query I rowsort
SELECT DISTINCT - 30 + col2 - - - 21 * - col1 AS col0 FROM tab2
----
1064
1435
1627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - + col2 col0 FROM tab1
----
-21
-54
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 33 + col1 col0 FROM tab0 AS cor0
----
114
34
54

onlyif mysql # DIV for integer division: 
query I rowsort label-1200
SELECT DISTINCT + - col2 DIV + col1 + + + col2 * - + col1 AS col0 FROM tab1 AS cor0
----
-1350
-306
-3197

skipif mysql # not compatible
query I rowsort label-1200
SELECT DISTINCT + - col2 / + col1 + + + col2 * - + col1 AS col0 FROM tab1 AS cor0
----
-1350
-306
-3197

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1203
SELECT DISTINCT + - 83 + + SUM( - - 74 ) FROM tab2 AS cor0
----
139

skipif mysql # not compatible
query I rowsort label-1203
SELECT DISTINCT + - 83 + + SUM ( - - 74 ) FROM tab2 AS cor0
----
139

query I rowsort
SELECT - 94 - - col2 AS col0 FROM tab2 AS cor0
----
-36
-54
-71

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

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

query I rowsort
SELECT 89 - + + col2 AS col1 FROM tab0 cor0
----
-10
42
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1207
SELECT + 70 - - + MAX( ALL + col2 ) FROM tab2 cor0
----
128

skipif mysql # not compatible
query I rowsort label-1207
SELECT + 70 - - + MAX ( ALL + col2 ) FROM tab2 cor0
----
128

query II rowsort
SELECT DISTINCT 65 * - - 0 / - col0 * - ( + col1 ) - - 9, ( - col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 AS cor0 WHERE NOT + 39 = + 66 + + col1
----
23
40
58

query I rowsort
SELECT ALL + + 4 * col1 FROM tab2 AS cor0
----
204
268
308

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1211
SELECT + - 18 FROM tab2 WHERE NOT + 83 - - col0 / col1 + - col1 - col0 * 61 IN ( + - 48, + 67 * 39 + + col2, CAST( NULL AS DECIMAL ) / - col2 * - ( + + 90 ) * - - 97, 32 * col2 )
----

skipif mysql # not compatible
query I rowsort label-1211
SELECT + - 18 FROM tab2 WHERE NOT + 83 - - col0 / col1 + - col1 - col0 * 61 IN ( + - 48, + 67 * 39 + + col2, CAST ( NULL AS REAL ) / - col2 * - ( + + 90 ) * - - 97, 32 * col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1212
SELECT COUNT( * ), 61 AS col0 FROM tab2
----
3
61

skipif mysql # not compatible
query II rowsort label-1212
SELECT COUNT ( * ), 61 AS col0 FROM tab2
----
3
61

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

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

query II rowsort
SELECT DISTINCT 14 / - 88 AS col0, col0 FROM tab0 WHERE NOT - col0 BETWEEN NULL AND + 58
----

query II rowsort
SELECT DISTINCT col2 AS col0, col0 + col0 FROM tab2
----
23
92
40
128
58
150

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT ALL MAX( DISTINCT - - col0 ) AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-1216
SELECT ALL MAX ( DISTINCT - - col0 ) AS col1 FROM tab1
----
91

query I rowsort
SELECT ALL - 8 * - col2 FROM tab0 AS cor0
----
376
792
80

query II rowsort
SELECT + col1, - col2 + 55 FROM tab2 AS cor0
----
51
32
67
-3
77
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1219
SELECT - + COUNT( DISTINCT + col1 ) * - 83 AS col0 FROM tab1 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-1219
SELECT - + COUNT ( DISTINCT + col1 ) * - 83 AS col0 FROM tab1 AS cor0
----
249

query I rowsort
SELECT DISTINCT - 17 AS col0 FROM tab1 cor0
----
-17

query I rowsort
SELECT + 8 * - - col0 AS col1 FROM tab1 AS cor0
----
408
680
728

query I rowsort
SELECT DISTINCT + ( col0 ) + - + 94 FROM tab1
----
-3
-43
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-1223
SELECT ALL col2 + + col2 + + 93 DIV col1 col1 FROM tab0
----
24
291
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1223
SELECT ALL col2 + + col2 + + 93 / col1 col1 FROM tab0
----
24
291
95

query I rowsort
SELECT DISTINCT - + 54 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - ( + + 79 ) < NULL
----

query I rowsort
SELECT ALL + - 48 * + col0 AS col1 FROM tab1 AS cor0
----
-2448
-4080
-4368

query I rowsort
SELECT ALL - col2 + + + col1 * + col2 FROM tab1 cor0
----
1248
236
3128

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

skipif mysql # not compatible
query I rowsort label-1227
SELECT ( + - COUNT ( * ) ) + - COUNT ( * ) FROM tab2 cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1228
SELECT DISTINCT - - 52 * - 43 * + + col1 * - + CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
-438256
-4939324
-55900

skipif mysql # not compatible
query I rowsort label-1228
SELECT DISTINCT - - 52 * - 43 * + + col1 * - + CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
-438256
-4939324
-55900

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

skipif mysql # not compatible
query I rowsort label-1229
SELECT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( col2 * - 54 * - col2 )
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 BETWEEN 17 AND NULL
----

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

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

query I rowsort
SELECT ALL + 61 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT ALL 15 + + COUNT( * ) FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-1233
SELECT ALL 15 + + COUNT ( * ) FROM tab2
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1234
SELECT - col2 AS col2, - col0 * - + 38 * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-1234
SELECT - col2 AS col2, - col0 * - + 38 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

query I rowsort
SELECT ALL + 64 - - - col0 FROM tab0
----
-23
-33
49

query I rowsort
SELECT DISTINCT + + col1 - - - col0 - 47 + - col2 + + + col1 FROM tab2 AS cor0
----
-14
-46
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 51 >= + 71 * - col1 + + 91 * - - 30
----
15
81
47

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

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

query I rowsort
SELECT - 7 + + col2 AS col2 FROM tab0 AS cor0
----
3
40
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1240
SELECT ALL * FROM tab1 WHERE NOT col0 >= + 76 AND NOT ( CAST( + ( + ( + - 29 ) ) AS SIGNED ) * + ( + col1 ) + + + col2 / - 10 ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-1240
SELECT ALL * FROM tab1 WHERE NOT col0 >= + 76 AND NOT ( CAST ( + ( + ( + - 29 ) ) AS INTEGER ) * + ( + col1 ) + + + col2 / - 10 ) >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1241
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1241
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1242
SELECT DISTINCT + 34 + + ( + + COUNT( * ) ) * + + 66 AS col1 FROM tab2
----
232

skipif mysql # not compatible
query I rowsort label-1242
SELECT DISTINCT + 34 + + ( + + COUNT ( * ) ) * + + 66 AS col1 FROM tab2
----
232

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1244
SELECT DISTINCT col1 DIV - + col0 - + col1 * col0 FROM tab0 AS cor0
----
-1220
-1827
-97

skipif mysql # not compatible
query I rowsort label-1244
SELECT DISTINCT col1 / - + col0 - + col1 * col0 FROM tab0 AS cor0
----
-1220
-1827
-97

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1247
SELECT + - 98, + COUNT( + ( CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab0 AS cor0
----
-98
0

skipif mysql # not compatible
query II rowsort label-1247
SELECT + - 98, + COUNT ( + ( CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab0 AS cor0
----
-98
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1248
SELECT 33 * 44 * + COUNT( * ) FROM tab2 AS cor0
----
4356

skipif mysql # not compatible
query I rowsort label-1248
SELECT 33 * 44 * + COUNT ( * ) FROM tab2 AS cor0
----
4356

query I rowsort
SELECT DISTINCT col0 / col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0 + + ( - col1 ), - col2 * + col2 + col1, - col2 )
----

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

query I rowsort
SELECT - col2 * + + 45 FROM tab0 cor0
----
-2115
-4455
-450

query I rowsort
SELECT - + 14 AS col0 FROM tab2 cor0
----
-14
-14
-14

query I rowsort
SELECT col2 * - 98 * - 39 AS col2 FROM tab2
----
152880
221676
87906

onlyif mysql # aggregate syntax: 
query I rowsort label-1254
SELECT + MAX( ALL 70 ) AS col0 FROM tab1
----
70

skipif mysql # not compatible
query I rowsort label-1254
SELECT + MAX ( ALL 70 ) AS col0 FROM tab1
----
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 46, + col1 * - col0 * - + col1 * - col0 col2 FROM tab2 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 84 ) col0 FROM tab2
----
84
84
84

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > 96 * + - col2 + col1
----

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1260
SELECT ALL MIN( ALL - 52 ) col2, - 50 FROM tab2 AS cor0
----
-52
-50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1260
SELECT ALL MIN ( ALL - 52 ) col2, - 50 FROM tab2 AS cor0
----
-52
-50

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

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

query II rowsort
SELECT - col2 AS col2, col1 FROM tab2 AS cor0 WHERE 73 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1263
SELECT DISTINCT + 58 * + - COUNT( ALL - 18 ) + - - 85 AS col1 FROM tab2 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-1263
SELECT DISTINCT + 58 * + - COUNT ( ALL - 18 ) + - - 85 AS col1 FROM tab2 AS cor0
----
-89

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col2 / col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * - col1 + + - 56 AS col2 FROM tab2
----
-2402
-4984
-5081

query III rowsort
SELECT * FROM tab0 WHERE - - ( + + col1 ) * - - col1 + 72 * + 7 BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1267
SELECT COUNT( * ) + - - 40 AS col0 FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-1267
SELECT COUNT ( * ) + - - 40 AS col0 FROM tab1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT DISTINCT + 63 - - COUNT( * ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-1268
SELECT DISTINCT + 63 - - COUNT ( * ) FROM tab1 AS cor0
----
66

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

query II rowsort
SELECT DISTINCT - ( + 99 ) AS col1, col2 AS col0 FROM tab1 AS cor0
----
-99
59
-99
68
-99
96

query I rowsort
SELECT ALL + 61 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT DISTINCT + 7 * + 16 FROM tab2
----
112

query I rowsort
SELECT ALL - col0 * 58 AS col2 FROM tab0
----
-5046
-5626
-870

onlyif mysql # aggregate syntax: 
query I rowsort label-1274
SELECT - - 88 * - COUNT( * ) FROM tab1 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-1274
SELECT - - 88 * - COUNT ( * ) FROM tab1 AS cor0
----
-264

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

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

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

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

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

query II rowsort
SELECT ALL 24 AS col2, col0 FROM tab2
----
24
46
24
64
24
75

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

skipif mysql # not compatible
query I rowsort label-1280
SELECT SUM ( DISTINCT 68 ) AS col0 FROM tab0
----
68

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

query II rowsort
SELECT DISTINCT + + col0, col2 FROM tab0 cor0
----
15
47
87
10
97
99

onlyif mysql # DIV for integer division: 
query I rowsort label-1283
SELECT 25 DIV - 95 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1283
SELECT 25 / - 95 FROM tab2 cor0
----
0
0
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT ( - - SUM( - col0 ) ) col2 FROM tab1
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1286
SELECT ( - - SUM ( - col0 ) ) col2 FROM tab1
----
-227

query I rowsort
SELECT ALL + col1 + + 26 * - col2 FROM tab2 AS cor0
----
-1441
-547
-963

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 <> - + ( + col0 )
----

query II rowsort
SELECT 35 AS col2, - col0 AS col2 FROM tab2
----
35
-46
35
-64
35
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1291
SELECT - CAST( NULL AS SIGNED ), + col0 AS col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-1291
SELECT - CAST ( NULL AS INTEGER ), + col0 AS col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT ALL - 1 + - col2 FROM tab0
----
-100
-11
-48

query II rowsort
SELECT ALL + 89 * + col2 + - - 56 AS col2, - 12 * - col1 FROM tab0
----
4239
972
8867
12
946
252

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

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

query I rowsort
SELECT DISTINCT 58 - col1 AS col2 FROM tab0 AS cor0
----
-23
37
57

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1297
SELECT 67 DIV + CAST( col0 AS SIGNED ) + + - col0 AS col0 FROM tab0 cor0
----
-11
-87
-97

skipif mysql # not compatible
query I rowsort label-1297
SELECT 67 / + CAST ( col0 AS INTEGER ) + + - col0 AS col0 FROM tab0 cor0
----
-11
-87
-97

query I rowsort
SELECT + - 52 + - col1 FROM tab2 AS cor0
----
-103
-119
-129

query I rowsort
SELECT ALL + 97 * col0 FROM tab0
----
1455
8439
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-1300
SELECT DISTINCT - COUNT( * ) * + - 74 AS col2 FROM tab2
----
222

skipif mysql # not compatible
query I rowsort label-1300
SELECT DISTINCT - COUNT ( * ) * + - 74 AS col2 FROM tab2
----
222

onlyif mysql # DIV for integer division: 
query I rowsort label-1301
SELECT - col0 DIV - col0 col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1301
SELECT - col0 / - col0 col1 FROM tab1
----
1
1
1

query I rowsort
SELECT ALL - 32 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1304
SELECT - MAX( 13 ) col1 FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1304
SELECT - MAX ( 13 ) col1 FROM tab0 AS cor0
----
-13

query I rowsort
SELECT DISTINCT - + 95 AS col2 FROM tab2 cor0
----
-95

query I rowsort
SELECT - 10 * 27 AS col1 FROM tab1 AS cor0
----
-270
-270
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT 46 + + col2 < - col2
----
3

skipif mysql # not compatible
query I rowsort label-1307
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 46 + + col2 < - col2
----
3

query I rowsort
SELECT - + 4 * + col2 FROM tab0 AS cor0
----
-188
-396
-40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1309
SELECT ALL + col1 * CAST( + col1 AS SIGNED ) * - + col1, col1 AS col1 FROM tab0 AS cor0
----
-1
1
-531441
81
-9261
21

skipif mysql # not compatible
query II rowsort label-1309
SELECT ALL + col1 * CAST ( + col1 AS INTEGER ) * - + col1, col1 AS col1 FROM tab0 AS cor0
----
-1
1
-531441
81
-9261
21

query I rowsort
SELECT DISTINCT 90 * - + 59 FROM tab0 AS cor0
----
-5310

query I rowsort
SELECT DISTINCT + 14 * + 71 AS col2 FROM tab2 AS cor0
----
994

onlyif mysql # DIV for integer division: 
query I rowsort label-1312
SELECT ALL + 86 DIV - - col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1312
SELECT ALL + 86 / - - col0 FROM tab2
----
1
1
1

query I rowsort
SELECT + 80 * 81 AS col0 FROM tab0
----
6480
6480
6480

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1317
SELECT + CAST( col2 AS SIGNED ) * + - col2 * 8 + + 3 AS col2 FROM tab2 AS cor0
----
-12797
-26909
-4229

skipif mysql # not compatible
query I rowsort label-1317
SELECT + CAST ( col2 AS INTEGER ) * + - col2 * 8 + + 3 AS col2 FROM tab2 AS cor0
----
-12797
-26909
-4229

query I rowsort
SELECT col1 + - - col0 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT + 63 + - 3 AS col1 FROM tab2 AS cor0
----
60
60
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 1 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 >= + col2 - col1 + 41
----
15
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1322
SELECT DISTINCT + - CAST( - col2 AS SIGNED ) + + 52 + + col2 * - col0 FROM tab2 AS cor0
----
-2468
-4240
-983

skipif mysql # not compatible
query I rowsort label-1322
SELECT DISTINCT + - CAST ( - col2 AS INTEGER ) + + 52 + + col2 * - col0 FROM tab2 AS cor0
----
-2468
-4240
-983

query I rowsort
SELECT DISTINCT + 18 * - col2 AS col1 FROM tab1 AS cor0
----
-1062
-1224
-1728

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1325
SELECT + - 14 * - 44 * + MAX( + col1 ) FROM tab1 cor0
----
28952

skipif mysql # not compatible
query I rowsort label-1325
SELECT + - 14 * - 44 * + MAX ( + col1 ) FROM tab1 cor0
----
28952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1326
SELECT CAST( - + COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1326
SELECT CAST ( - + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NULL >= NULL
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT ALL + 8 + - - COUNT( * ) + - 78 AS col1 FROM tab2
----
-67

skipif mysql # not compatible
query I rowsort label-1330
SELECT ALL + 8 + - - COUNT ( * ) + - 78 AS col1 FROM tab2
----
-67

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

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

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT col1 * 60 <= - col0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1333
SELECT 17 + - - ( + 37 ) * - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-316

skipif mysql # not compatible
query I rowsort label-1333
SELECT 17 + - - ( + 37 ) * - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-316

query I rowsort
SELECT ALL ( - 90 ) AS col0 FROM tab0
----
-90
-90
-90

query I rowsort
SELECT DISTINCT 71 * - ( + col1 ) AS col0 FROM tab2 AS cor0
----
-3621
-4757
-5467

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1336
SELECT ( 93 ), - CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0 WHERE NOT ( - 87 ) + - col1 = NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1336
SELECT ( 93 ), - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0 WHERE NOT ( - 87 ) + - col1 = NULL
----

query I rowsort
SELECT + ( + col2 ) FROM tab2 AS cor0 WHERE NOT NULL < ( NULL )
----

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - 73 * + + col1 * - 70 IS NOT NULL
----

query I rowsort
SELECT ALL col0 * - 87 AS col1 FROM tab2
----
-4002
-5568
-6525

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 * + col0 col1 FROM tab2
----
368
512
600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( - col1 ) AS col1, + col0 * + 97 col2 FROM tab1 AS cor0
----
14
4947
47
8827
5
8245

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT - - 47 AS col1 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

onlyif mysql # DIV for integer division: 
query I rowsort label-1346
SELECT + 11 * + + 84 + col1 + + ( + col0 ) DIV + col0 AS col2 FROM tab2
----
1002
976
992

skipif mysql # not compatible
query I rowsort label-1346
SELECT + 11 * + + 84 + col1 + + ( + col0 ) / + col0 AS col2 FROM tab2
----
1002
976
992

onlyif mysql # DIV for integer division: 
query I rowsort label-1347
SELECT ALL col2 DIV - 17 FROM tab1
----
-3
-4
-5

skipif mysql # not compatible
query I rowsort label-1347
SELECT ALL col2 / - 17 FROM tab1
----
-3
-4
-5

query I rowsort
SELECT ALL 81 - col0 - + + col2 * col2 * 40 * + col0 FROM tab1
----
-11835404
-16831370
-18800610

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT COUNT( * ) * + COUNT( * ) + - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL = col1 * - + ( + 99 )
----
0

skipif mysql # not compatible
query I rowsort label-1349
SELECT COUNT ( * ) * + COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL = col1 * - + ( + 99 )
----
0

query I rowsort
SELECT + - 85 AS col1 FROM tab2 AS cor0 WHERE + col1 / col2 >= + 0 * 70 + - - 67 * ( col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1351
SELECT DISTINCT - ( 25 ) + - col0 DIV col0 FROM tab2 cor0
----
-26

skipif mysql # not compatible
query I rowsort label-1351
SELECT DISTINCT - ( 25 ) + - col0 / col0 FROM tab2 cor0
----
-26

query I rowsort
SELECT DISTINCT + + 78 AS col2 FROM tab1 AS cor0 WHERE NOT NULL = + col2
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1356
SELECT DISTINCT COUNT( * ) + + 71 AS col0 FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-1356
SELECT DISTINCT COUNT ( * ) + + 71 AS col0 FROM tab1
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1357
SELECT 99 DIV + ( + ( + MIN( DISTINCT col2 ) ) ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1357
SELECT 99 / + ( + ( + MIN ( DISTINCT col2 ) ) ) AS col2 FROM tab1
----
1

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1360
SELECT - col0, 77 DIV 64 col1 FROM tab2
----
-46
1
-64
1
-75
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1360
SELECT - col0, 77 / 64 col1 FROM tab2
----
-46
1
-64
1
-75
1

query II rowsort
SELECT DISTINCT col0 AS col1, + 42 FROM tab0
----
15
42
87
42
97
42

query I rowsort
SELECT DISTINCT + + 21 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + 22 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1363
SELECT + CAST( + 8 AS SIGNED ) FROM tab2 cor0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-1363
SELECT + CAST ( + 8 AS INTEGER ) FROM tab2 cor0
----
8
8
8

onlyif mysql # aggregate syntax: 
query II rowsort label-1364
SELECT - MAX( ALL - + col1 ) AS col2, + 28 col0 FROM tab0 AS cor0
----
1
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1364
SELECT - MAX ( ALL - + col1 ) AS col2, + 28 col0 FROM tab0 AS cor0
----
1
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1365
SELECT DISTINCT ( MIN( - col1 ) ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-1365
SELECT DISTINCT ( MIN ( - col1 ) ) FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1366
SELECT DISTINCT - SUM( ALL col2 ) * - COUNT( * ) FROM tab1
----
669

skipif mysql # not compatible
query I rowsort label-1366
SELECT DISTINCT - SUM ( ALL col2 ) * - COUNT ( * ) FROM tab1
----
669

query I rowsort
SELECT DISTINCT - - col1 * 70 AS col2 FROM tab1 cor0
----
3290
350
980

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

query I rowsort
SELECT col2 * col1 + 67 FROM tab1 AS cor0
----
1411
3263
362

query I rowsort
SELECT DISTINCT 22 * + 24 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - - 45 AS col2 FROM tab2 AS cor0
----
45
45
45

query I rowsort
SELECT DISTINCT ( col2 ) + 60 FROM tab0
----
107
159
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1373
SELECT DISTINCT CAST( col1 AS SIGNED ) * + 81 FROM tab2 WHERE NULL BETWEEN - 20 AND + 72
----

skipif mysql # not compatible
query I rowsort label-1373
SELECT DISTINCT CAST ( col1 AS INTEGER ) * + 81 FROM tab2 WHERE NULL BETWEEN - 20 AND + 72
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE NOT ( ( + col2 + - col1 / + + col1 ) IS NULL )
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1375
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1, tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-1375
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1, tab2 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1376
SELECT DISTINCT 5 + - COUNT( * ) FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-1376
SELECT DISTINCT 5 + - COUNT ( * ) FROM tab0 AS cor0
----
2

query I rowsort
SELECT ALL + col1 * - col0 - - col0 FROM tab0 AS cor0
----
-1200
-1740
0

query I rowsort
SELECT - - col2 + + 82 - col1 AS col1 FROM tab2 AS cor0
----
45
54
73

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 / col1 >= + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-1380
SELECT - col1 + - + col0 AS col0, + col2 DIV 1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-108
10
-96
47
-98
99

skipif mysql # not compatible
query II rowsort label-1380
SELECT - col1 + - + col0 AS col0, + col2 / 1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-108
10
-96
47
-98
99

query I rowsort
SELECT ALL - ( - + col1 ) FROM tab1 AS cor0 WHERE NOT 2 > ( NULL )
----

query I rowsort
SELECT - + 35 + + + 25 FROM tab2 cor0
----
-10
-10
-10

query I rowsort
SELECT col2 * - 4 - - ( - col2 ) FROM tab0
----
-235
-495
-50

query I rowsort
SELECT ALL + col2 * + ( col0 ) AS col0 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT DISTINCT 76 * col0 AS col1 FROM tab1
----
3876
6460
6916

query I rowsort
SELECT + 21 + col2 * + col0 AS col0 FROM tab1
----
4917
5036
6209

query I rowsort
SELECT ALL 83 + - 42 FROM tab2 WHERE NOT col1 * 57 NOT IN ( 35 )
----

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 WHERE NOT ( - col1 * + 80 ) IS NOT NULL
----

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 WHERE NOT + 98 * col2 + + 88 > col1
----

query III rowsort
SELECT * FROM tab1 WHERE - col2 > 28
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1391
SELECT DISTINCT col2 DIV 51 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1391
SELECT DISTINCT col2 / 51 FROM tab1
----
1

query I rowsort
SELECT 25 - col2 AS col1 FROM tab0
----
-22
-74
15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1393
SELECT ALL CAST( col2 AS SIGNED ) DIV col0 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-1393
SELECT ALL CAST ( col2 AS INTEGER ) / col0 FROM tab0
----
0
1
3

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE col2 + col1 <> + col1 * 57
----
15
87
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1396
SELECT + COUNT( DISTINCT 20 ) AS col0 FROM tab1 WHERE NOT ( - 81 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1396
SELECT + COUNT ( DISTINCT 20 ) AS col0 FROM tab1 WHERE NOT ( - 81 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT DISTINCT - MAX( DISTINCT col2 ) AS col1 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-1397
SELECT DISTINCT - MAX ( DISTINCT col2 ) AS col1 FROM tab0
----
-99

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 17 IN ( - 18 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1399
SELECT - MIN( 48 ) FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-1399
SELECT - MIN ( 48 ) FROM tab2
----
-48

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 WHERE NOT ( col2 * + col1 ) IS NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1401
SELECT DISTINCT ( - 96 ) AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND col1 * col1 + - CAST( - 89 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1401
SELECT DISTINCT ( - 96 ) AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND col1 * col1 + - CAST ( - 89 AS INTEGER )
----

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

query I rowsort
SELECT ( 97 ) + - col1 FROM tab0
----
16
76
96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( - col1 - 14 * col2 ) AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1405
SELECT DISTINCT + MAX( + 28 ) * - 43 FROM tab2 AS cor0
----
-1204

skipif mysql # not compatible
query I rowsort label-1405
SELECT DISTINCT + MAX ( + 28 ) * - 43 FROM tab2 AS cor0
----
-1204

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

skipif mysql # not compatible
query I rowsort label-1406
SELECT DISTINCT + col1 * - CAST ( - 40 * col0 AS INTEGER ) FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN - col2 AND NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( col0 / - 4 + + col0 ) IN ( + 62 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
query III rowsort label-1408
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( - 30 AS INTEGER ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col0 * - 42 ) < ( - 54 + 46 )
----

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1412
SELECT ALL COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
0

query I rowsort
SELECT - col1 * 84 FROM tab0
----
-1764
-6804
-84

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 96 NOT IN ( + 60 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1419
SELECT col0 DIV + 5 FROM tab1 cor0 WHERE ( ( + col0 ) ) IS NOT NULL
----
10
17
18

skipif mysql # not compatible
query I rowsort label-1419
SELECT col0 / + 5 FROM tab1 cor0 WHERE ( ( + col0 ) ) IS NOT NULL
----
10
17
18

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 - - 96 * ( 17 / 20 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT DISTINCT MAX( 83 ) FROM tab2 AS cor0 WHERE col0 <= ( + 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1421
SELECT DISTINCT MAX ( 83 ) FROM tab2 AS cor0 WHERE col0 <= ( + 7 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 + col2 col2 FROM tab1
----
109
118
146

onlyif mysql # aggregate syntax: 
query I rowsort label-1423
SELECT ALL + COUNT( * ) + - MAX( DISTINCT col2 ) AS col2 FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-1423
SELECT ALL + COUNT ( * ) + - MAX ( DISTINCT col2 ) AS col2 FROM tab1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-1424
SELECT ALL COUNT( 48 ) + COUNT( * ) AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-1424
SELECT ALL COUNT ( 48 ) + COUNT ( * ) AS col2 FROM tab1
----
6

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1425
SELECT CAST ( - col0 AS INTEGER ) col2 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 WHERE 2 = ( NULL )
----

query I rowsort
SELECT DISTINCT - col0 * 29 + col1 * 65 FROM tab0
----
-1158
-2748
4830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
1600
3364
529

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 79 NOT IN ( 90 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT ( - - 7 ) + + - COUNT( DISTINCT col0 ) col0 FROM tab0
----
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1430
SELECT ( - - 7 ) + + - COUNT ( DISTINCT col0 ) col0 FROM tab0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1431
SELECT 95 + - + col2 + + CAST( - col2 AS SIGNED ) AS col1 FROM tab0
----
-103
1
75

skipif mysql # not compatible
query I rowsort label-1431
SELECT 95 + - + col2 + + CAST ( - col2 AS INTEGER ) AS col1 FROM tab0
----
-103
1
75

query I rowsort
SELECT ( - 3 ) FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

onlyif mysql # DIV for integer division: 
query I rowsort label-1433
SELECT col0 DIV + col1 AS col0 FROM tab0 AS cor0 WHERE 71 - + col2 IS NOT NULL
----
0
4
97

skipif mysql # not compatible
query I rowsort label-1433
SELECT col0 / + col1 AS col0 FROM tab0 AS cor0 WHERE 71 - + col2 IS NOT NULL
----
0
4
97

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

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

query I rowsort
SELECT 34 * - 31 + + 54 FROM tab2 cor0 WHERE NOT - col2 IS NULL
----
-1000
-1000
-1000

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

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

query I rowsort
SELECT + col0 / col1 AS col1 FROM tab1 AS cor0 WHERE NOT - 46 * col0 >= NULL
----

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

skipif mysql # not compatible
query III rowsort label-1438
SELECT ALL * FROM tab2 AS cor0 WHERE ( col1 - col0 + 98 / - CAST ( NULL AS INTEGER ) ) BETWEEN ( NULL ) AND - col2
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col2 + - - 85 * col1 ) IN ( col0 * - ( 36 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-1441
SELECT - col0 * col1 DIV - col1 AS col2 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-1441
SELECT - col0 * col1 / - col1 AS col2 FROM tab0
----
15
87
97

query I rowsort
SELECT ALL col2 * - 30 AS col1 FROM tab1
----
-1770
-2040
-2880

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1445
SELECT COUNT( col0 ) AS col2, - 67 FROM tab2
----
3
-67

skipif mysql # not compatible
query II rowsort label-1445
SELECT COUNT ( col0 ) AS col2, - 67 FROM tab2
----
3
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1446
SELECT ALL COUNT( col2 ) FROM tab0 WHERE NOT ( + + CAST( + col0 AS SIGNED ) * - col2 ) IN ( - 82 + - 91 )
----
3

skipif mysql # not compatible
query I rowsort label-1446
SELECT ALL COUNT ( col2 ) FROM tab0 WHERE NOT ( + + CAST ( + col0 AS INTEGER ) * - col2 ) IN ( - 82 + - 91 )
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1448
SELECT ALL COUNT( * ) * - - 2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-1448
SELECT ALL COUNT ( * ) * - - 2 FROM tab2
----
6

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1450
SELECT ALL + col1 DIV - col2 AS col2, + col0 + + - col2 AS col0 FROM tab0 AS cor0
----
-1
-32
-2
77
0
-2

skipif mysql # not compatible
query II rowsort label-1450
SELECT ALL + col1 / - col2 AS col2, + col0 + + - col2 AS col0 FROM tab0 AS cor0
----
-1
-32
-2
77
0
-2

query I rowsort
SELECT ALL 66 + 81 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND + 40 / 14
----

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

query I rowsort
SELECT ALL - 94 AS col2 FROM tab2 AS cor0 WHERE NOT ( col0 * - col2 * - col2 + - 70 ) IS NULL
----
-94
-94
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 12 * - 27 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5a5579836de27ded95f20962e158b1f6

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

skipif mysql # not compatible
query I rowsort label-1455
SELECT COUNT ( * ) / + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT + + ( col0 ) * + 20 * + - 11 FROM tab0 AS cor0
----
-19140
-21340
-3300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 48 col1, col2 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1460
SELECT - 97 DIV col1 DIV - col2 * - - 27 * - - col1 + - 43 FROM tab2 AS cor0
----
-43
-43
-43

skipif mysql # not compatible
query I rowsort label-1460
SELECT - 97 / col1 / - col2 * - - 27 * - - col1 + - 43 FROM tab2 AS cor0
----
-43
-43
-43

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

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

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

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

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

query II rowsort
SELECT DISTINCT col1 AS col2, col2 + - + 82 AS col1 FROM tab1
----
14
14
47
-14
5
-23

query I rowsort
SELECT DISTINCT + col2 * - + 31 + col1 - col2 FROM tab0
----
-1423
-299
-3167

onlyif mysql # aggregate syntax: 
query I rowsort label-1467
SELECT + 74 + COUNT( * ) FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-1467
SELECT + 74 + COUNT ( * ) FROM tab1
----
77

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

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

query I rowsort
SELECT DISTINCT 80 + - - col2 - col1 - + col0 * - col0 AS col0 FROM tab2
----
2168
4139
5696

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1470
SELECT - COUNT( * ) DIV + + 39 FROM tab1 WHERE col1 * 17 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1470
SELECT - COUNT ( * ) / + + 39 FROM tab1 WHERE col1 * 17 IS NOT NULL
----
0

query II rowsort
SELECT - col0 * col2 + + - 77 * + 68 AS col1, col2 AS col1 FROM tab2
----
-6294
23
-7796
40
-9586
58

query I rowsort
SELECT DISTINCT ( col0 ) - + col0 + + 40 * + - col0 + + 21 + 94 * col2 AS col1 FROM tab2 AS cor0
----
1221
2473
343

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

query I rowsort
SELECT + col0 + - col1 * - - col1 + + col0 FROM tab2 AS cor0
----
-2509
-4339
-5801

query I rowsort
SELECT + ( ( + 41 ) ) + - col2 FROM tab2 AS cor0
----
-17
1
18

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col0 <= NULL
----

query I rowsort
SELECT + col2 * - + 5 * - 93 * - col1 AS col0 FROM tab2
----
-1432200
-1806990
-545445

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

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

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 90 = NULL
----

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

query I rowsort
SELECT DISTINCT - + 40 AS col2 FROM tab2 AS cor0 WHERE NULL IN ( - 88 + + 9, + ( + 44 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - col1 ) col1, - col0 * + col0 * + - col1 AS col1 FROM tab1 cor0
----
-14
36414
-47
389207
-5
36125

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

query I rowsort
SELECT 92 * - col2 FROM tab0
----
-4324
-9108
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-1487
SELECT + 70 - - COUNT( + 69 ) + AVG ( 69 ) / + 96 AS col2 FROM tab2 WHERE NOT NULL IN ( - col2 + + 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1487
SELECT + 70 - - COUNT ( + 69 ) + AVG ( 69 ) / + 96 AS col2 FROM tab2 WHERE NOT NULL IN ( - col2 + + 76 )
----
NULL

query I rowsort
SELECT 40 * - 2 FROM tab2
----
-80
-80
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1489
SELECT DISTINCT - - 7 FROM tab2 WHERE NOT + + col1 <> CAST( - ( + + 21 ) AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1489
SELECT DISTINCT - - 7 FROM tab2 WHERE NOT + + col1 <> CAST ( - ( + + 21 ) AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN 67 * - col1 + col1 AND - + col2
----

query II rowsort
SELECT ALL + 39 AS col0, - col1 FROM tab0 AS cor0
----
39
-1
39
-21
39
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1492
SELECT - 55 * - MIN( + + 45 ) - + + COUNT( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
2466

skipif mysql # not compatible
query I rowsort label-1492
SELECT - 55 * - MIN ( + + 45 ) - + + COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
2466

onlyif mysql # DIV for integer division: 
query II rowsort label-1493
SELECT DISTINCT + 98 DIV col1, 11 DIV + + col1 col2 FROM tab0
----
1
0
4
0
98
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1493
SELECT DISTINCT + 98 / col1, 11 / + + col1 col2 FROM tab0
----
1
0
4
0
98
11

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1496
SELECT ALL - CAST( + col2 AS SIGNED ) * + 83 - + 93 AS col1 FROM tab2 AS cor0
----
-2002
-3413
-4907

skipif mysql # not compatible
query I rowsort label-1496
SELECT ALL - CAST ( + col2 AS INTEGER ) * + 83 - + 93 AS col1 FROM tab2 AS cor0
----
-2002
-3413
-4907

query I rowsort
SELECT + + 82 + + - ( - col2 ) AS col1 FROM tab2 AS cor0
----
105
122
140

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1499
SELECT - CAST( NULL AS SIGNED ) * - 81 * - col0 / - 73 + - col2 + + + col2 * - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1499
SELECT - CAST ( NULL AS INTEGER ) * - 81 * - col0 / - 73 + - col2 + + + col2 * - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1500
SELECT DISTINCT - - col2 * col2 FROM tab2 WHERE NOT - + ( - + 30 ) * + col2 + + col1 BETWEEN ( + + col2 ) AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1500
SELECT DISTINCT - - col2 * col2 FROM tab2 WHERE NOT - + ( - + 30 ) * + col2 + + col1 BETWEEN ( + + col2 ) AND CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1501
SELECT DISTINCT COUNT( * ) * 57 * + MIN( ALL - + col2 ) FROM tab2
----
-9918

skipif mysql # not compatible
query I rowsort label-1501
SELECT DISTINCT COUNT ( * ) * 57 * + MIN ( ALL - + col2 ) FROM tab2
----
-9918

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1502
SELECT col2, col1 + - + ( - + CAST( NULL AS SIGNED ) ) * + ( + 71 ) - + 32 * + + col0 AS col2 FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-1502
SELECT col2, col1 + - + ( - + CAST ( NULL AS INTEGER ) ) * + ( + 71 ) - + 32 * + + col0 AS col2 FROM tab2
----
23
NULL
40
NULL
58
NULL

query II rowsort
SELECT DISTINCT - - 31 AS col1, + 21 + col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 9 * - col0 FROM tab0
----
135
783
873

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

query I rowsort
SELECT DISTINCT + ( + col2 ) + - 44 FROM tab2
----
-21
-4
14

query II rowsort
SELECT - 25, - 49 * - - col0 + - col2 AS col2 FROM tab0
----
-25
-4273
-25
-4852
-25
-782

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1508
SELECT DISTINCT * FROM tab2 WHERE NULL < + CAST( - col2 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-1508
SELECT DISTINCT * FROM tab2 WHERE NULL < + CAST ( - col2 AS REAL )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1510
SELECT ALL SUM( DISTINCT - - 99 ) FROM tab1 cor0
----
99

skipif mysql # not compatible
query I rowsort label-1510
SELECT ALL SUM ( DISTINCT - - 99 ) FROM tab1 cor0
----
99

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + col1 >= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + ( - + 8 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

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

skipif mysql # not compatible
query II rowsort label-1513
SELECT CAST ( NULL AS INTEGER ), - col1 AS col0 FROM tab1
----
NULL
-14
NULL
-47
NULL
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1514
SELECT DISTINCT ( MIN( ALL - + col2 ) ) FROM tab1 WHERE NOT + - col0 NOT BETWEEN 16 * + col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1514
SELECT DISTINCT ( MIN ( ALL - + col2 ) ) FROM tab1 WHERE NOT + - col0 NOT BETWEEN 16 * + col1 AND NULL
----
NULL

query II rowsort
SELECT DISTINCT 46, - ( - 92 ) + - col0 AS col1 FROM tab1 AS cor0
----
46
1
46
41
46
7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1517
SELECT COUNT( - 68 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1517
SELECT COUNT ( - 68 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1518
SELECT CAST( NULL AS SIGNED ) AS col2, - COUNT( * ) * + 83 col2 FROM tab0 AS cor0
----
NULL
-249

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1518
SELECT CAST ( NULL AS INTEGER ) AS col2, - COUNT ( * ) * + 83 col2 FROM tab0 AS cor0
----
NULL
-249

query I rowsort
SELECT ( + ( 54 ) ) FROM tab1, tab0 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT - ( - + 37 ) FROM tab0
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT SUM( ALL + 74 ) * - COUNT( * ) AS col0 FROM tab2
----
-666

skipif mysql # not compatible
query I rowsort label-1521
SELECT SUM ( ALL + 74 ) * - COUNT ( * ) AS col0 FROM tab2
----
-666

query I rowsort
SELECT DISTINCT col2 * - 2 FROM tab0
----
-198
-20
-94

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

query I rowsort
SELECT DISTINCT + col0 * + 85 + - ( - 61 ) AS col0 FROM tab2 AS cor0
----
3971
5501
6436

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1525
SELECT ALL * FROM tab2 cor0 WHERE + col0 NOT IN ( - - 15 * col2 + - col0 * + 87 * + CAST( NULL AS SIGNED ), 65 * col0 )
----

skipif mysql # not compatible
query III rowsort label-1525
SELECT ALL * FROM tab2 cor0 WHERE + col0 NOT IN ( - - 15 * col2 + - col0 * + 87 * + CAST ( NULL AS INTEGER ), 65 * col0 )
----

query I rowsort
SELECT DISTINCT + - col0 + 89 FROM tab2 AS cor0
----
14
25
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1527
SELECT + 9 + - COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-1527
SELECT + 9 + - COUNT ( * ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT ALL - + col0 + + - col0 - col2 FROM tab0 AS cor0
----
-184
-293
-77

query I rowsort
SELECT ALL 60 * 93 AS col1 FROM tab0 AS cor0
----
5580
5580
5580

query I rowsort
SELECT ( - col1 ) * - 33 FROM tab0 AS cor0
----
2673
33
693

query I rowsort
SELECT ALL - col0 - - 35 FROM tab2 AS cor0
----
-11
-29
-40

query I rowsort
SELECT + col2 - - - 56 AS col0 FROM tab2 AS cor0
----
-16
-33
2

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 40 NOT BETWEEN NULL AND + 16 - - col1
----

query I rowsort
SELECT DISTINCT ( 30 ) AS col2 FROM tab1
----
30

query I rowsort
SELECT ALL - col2 - + - col0 FROM tab2
----
17
23
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * - ( - - 16 ) + - col1 col0, 11 col2 FROM tab0
----
-1585
11
-181
11
-833
11

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

skipif mysql # not compatible
query I rowsort label-1537
SELECT + - CAST ( NULL AS INTEGER ) + - col0 + col2 AS col0 FROM tab0 WHERE NOT + col0 IS NOT NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 20 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1541
SELECT ALL 71 * + + SUM( + ( - - col0 ) ) col1 FROM tab1 AS cor0
----
16117

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1541
SELECT ALL 71 * + + SUM ( + ( - - col0 ) ) col1 FROM tab1 AS cor0
----
16117

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1545
SELECT DISTINCT ( - - col2 ) * + CAST( + 52 AS SIGNED ) + 44 AS col2 FROM tab0
----
2488
5192
564

skipif mysql # not compatible
query I rowsort label-1545
SELECT DISTINCT ( - - col2 ) * + CAST ( + 52 AS INTEGER ) + 44 AS col2 FROM tab0
----
2488
5192
564

query I rowsort
SELECT DISTINCT + 93 * + - col0 * - col2 AS col1 FROM tab2
----
238080
404550
98394

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

skipif mysql # not compatible
query I rowsort label-1547
SELECT ( - ( COUNT ( * ) ) ) AS col2 FROM tab0 WHERE NOT NULL <= - col0
----
0

query I rowsort
SELECT + col2 * ( - ( 19 ) ) FROM tab0
----
-1881
-190
-893

onlyif mysql # aggregate syntax: 
query I rowsort label-1549
SELECT MIN( + 15 ) * 38 AS col2 FROM tab1
----
570

skipif mysql # not compatible
query I rowsort label-1549
SELECT MIN ( + 15 ) * 38 AS col2 FROM tab1
----
570

query I rowsort
SELECT ALL col0 * col2 + + ( - col0 ) FROM tab2 AS cor0
----
1012
2496
4275

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

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

query II rowsort
SELECT ALL col1 AS col1, col1 * + col0 FROM tab1 AS cor0
----
14
714
47
4277
5
425

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1555
SELECT ALL + - SUM( - + col1 ) col1 FROM tab1 AS cor0 WHERE NOT - 86 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1555
SELECT ALL + - SUM ( - + col1 ) col1 FROM tab1 AS cor0 WHERE NOT - 86 IS NOT NULL
----
NULL

query II rowsort
SELECT - col1 + - col0 * + - ( col0 ) * col0 + + col2 * + col2 AS col0, col2 FROM tab1 AS cor0
----
141853
96
617601
59
758148
68

query I rowsort
SELECT DISTINCT + 29 / - 11 AS col1 FROM tab1 AS cor0 WHERE col2 - + 72 IS NULL
----

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

query I rowsort
SELECT col1 + + col1 + - 82 * col0 + + col0 * col1 AS col1 FROM tab2 AS cor0
----
-1324
-166
-991

query I rowsort
SELECT col0 * 16 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1360
1456
816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 48 col1 FROM tab2 cor0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-1562
SELECT MAX( DISTINCT + col2 ) * + 43 AS col2 FROM tab1 AS cor0
----
4128

skipif mysql # not compatible
query I rowsort label-1562
SELECT MAX ( DISTINCT + col2 ) * + 43 AS col2 FROM tab1 AS cor0
----
4128

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1563
SELECT ALL - col1, - CAST( + col1 AS SIGNED ) - col1 AS col0 FROM tab1
----
-14
-28
-47
-94
-5
-10

skipif mysql # not compatible
query II rowsort label-1563
SELECT ALL - col1, - CAST ( + col1 AS INTEGER ) - col1 AS col0 FROM tab1
----
-14
-28
-47
-94
-5
-10

query II rowsort
SELECT + 30 AS col1, - 36 * + col1 AS col2 FROM tab0
----
30
-2916
30
-36
30
-756

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT MIN( DISTINCT - 7 ) AS col1 FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-1567
SELECT MIN ( DISTINCT - 7 ) AS col1 FROM tab1
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1568
SELECT + CAST( + 33 AS SIGNED ) - COUNT( * ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-1568
SELECT + CAST ( + 33 AS INTEGER ) - COUNT ( * ) FROM tab0
----
30

query I rowsort
SELECT DISTINCT + col2 + + col0 * col2 - - col2 AS col1 FROM tab1
----
5088
5133
6324

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

skipif mysql # not compatible
query I rowsort label-1570
SELECT DISTINCT + col1 / - CAST ( NULL AS INTEGER ) - col2 * - 69 * + + col2 FROM tab2 AS cor0
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-1572
SELECT DISTINCT - CAST ( + - col1 AS INTEGER ) FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT + col1 * - + col2 * col2 AS col2 FROM tab2
----
-123200
-225388
-26979

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col0 NOT IN ( + - col2 / + + 66 * - + 6 * col0, - col2 )
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1578
SELECT ALL - ( - COUNT( * ) ) AS col1, 96 col2 FROM tab0 AS cor0
----
3
96

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1579
SELECT 35 / - ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1579
SELECT 35 / - ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1581
SELECT 69 DIV - col2 + 47 + - - ( col1 ) + col1 + + + col1 AS col2 FROM tab2 AS cor0
----
197
247
277

skipif mysql # not compatible
query I rowsort label-1581
SELECT 69 / - col2 + 47 + - - ( col1 ) + col1 + + + col1 AS col2 FROM tab2 AS cor0
----
197
247
277

query I rowsort
SELECT + 15 * ( + + col2 ) AS col2 FROM tab1 AS cor0
----
1020
1440
885

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

skipif mysql # not compatible
query II rowsort label-1583
SELECT ALL + COUNT ( + col1 ) AS col1, + COUNT ( * ) FROM tab1 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query II rowsort label-1584
SELECT DISTINCT COUNT( * ) AS col1, MAX( - col0 ) - 14 FROM tab2
----
3
-60

skipif mysql # not compatible
query II rowsort label-1584
SELECT DISTINCT COUNT ( * ) AS col1, MAX ( - col0 ) - 14 FROM tab2
----
3
-60

query I rowsort
SELECT DISTINCT col0 + + col2 + + + col2 + + - col0 AS col1 FROM tab1
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-1586
SELECT DISTINCT + SUM( + 65 ) AS col1 FROM tab0
----
195

skipif mysql # not compatible
query I rowsort label-1586
SELECT DISTINCT + SUM ( + 65 ) AS col1 FROM tab0
----
195

query I rowsort
SELECT ALL 21 + 78 + col1 AS col2 FROM tab1
----
104
113
146

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

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

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

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

query I rowsort
SELECT DISTINCT + + col1 * 92 FROM tab1 AS cor0
----
1288
4324
460

query I rowsort
SELECT DISTINCT col1 / 37 * - col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL - col2 AS col1, 5 - 3 AS col2 FROM tab2 cor0
----
-23
2
-40
2
-58
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1593
SELECT DISTINCT + 81 + + COUNT( * ) FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-1593
SELECT DISTINCT + 81 + + COUNT ( * ) FROM tab0
----
84

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1595
SELECT DISTINCT - - MAX( CAST( - col1 AS SIGNED ) ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-1595
SELECT DISTINCT - - MAX ( CAST ( - col1 AS INTEGER ) ) FROM tab1 AS cor0
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 - col1 + - 11 col2 FROM tab2 AS cor0
----
-28
-44
-54

query II rowsort
SELECT + col2 - + 72 AS col2, col0 FROM tab2 AS cor0
----
-14
75
-32
64
-49
46

onlyif mysql # DIV for integer division: 
query I rowsort label-1598
SELECT + col1 DIV col2 - col1 AS col2 FROM tab2 cor0
----
-49
-66
-76

skipif mysql # not compatible
query I rowsort label-1598
SELECT + col1 / col2 - col1 AS col2 FROM tab2 cor0
----
-49
-66
-76

query I rowsort
SELECT DISTINCT - 97 - - col2 + - ( - + col1 ) AS col0 FROM tab1 AS cor0
----
-33
13
18

query I rowsort
SELECT + col2 + + 25 AS col1 FROM tab1 AS cor0
----
121
84
93

query I rowsort
SELECT DISTINCT - 5 * col1 FROM tab1
----
-235
-25
-70

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col2 + + + col0 < - col1
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT 12 * - - 30 FROM tab0
----
360

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

skipif mysql # not compatible
query I rowsort label-1604
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab1
----
-3

query II rowsort
SELECT ALL + 25 * + col0, col0 FROM tab2 AS cor0
----
1150
46
1600
64
1875
75

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 56 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1610
SELECT * FROM tab1 WHERE col1 * + 65 IS NOT NULL OR NOT + CAST( 63 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1610
SELECT * FROM tab1 WHERE col1 * + 65 IS NOT NULL OR NOT + CAST ( 63 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

query II rowsort
SELECT + 94, col1 - + col1 AS col1 FROM tab2 AS cor0
----
94
0
94
0
94
0

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1616
SELECT - + col1 DIV - - 31 AS col0 FROM tab2 AS cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-1616
SELECT - + col1 / - - 31 AS col0 FROM tab2 AS cor0
----
-1
-2
-2

query I rowsort
SELECT DISTINCT - - 7 AS col2 FROM tab0 cor0
----
7

query I rowsort
SELECT - + 98 + 59 FROM tab1 AS cor0
----
-39
-39
-39

query II rowsort
SELECT ALL + + col0, ( - col2 ) + - 85 - + col0 AS col1 FROM tab1 AS cor0
----
51
-232
85
-229
91
-244

query I rowsort
SELECT - col0 + col2 + col2 AS col1 FROM tab2
----
0
16
41

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col0 * + 21 >= NULL
----

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

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

query I rowsort
SELECT + col1 * 68 FROM tab0
----
1428
5508
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1624
SELECT ALL + 4 + SUM( - - 38 ) DIV - 47 + + 10 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-1624
SELECT ALL + 4 + SUM ( - - 38 ) / - 47 + + 10 FROM tab2
----
12

query I rowsort
SELECT ALL + + 78 FROM tab1 WHERE NULL IN ( + col2 * - col0 + - 0, - col2 / 7, col2 * - col1 + - col2 - - 29 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + col2 ) AS col0, + col1 - + col2 * + + col1 * + + 31 col1 FROM tab1
----
59
-9140
68
-99029
96
-41650

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1628
SELECT MIN( 66 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-1628
SELECT MIN ( 66 ) FROM tab1
----
66

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * 79 BETWEEN - - 52 AND - 53 / - col2 + - 38
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT + COUNT( ALL col1 ) col0 FROM tab2 AS cor0 WHERE + col1 <> - - col0 * 21 * - + col2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1631
SELECT + COUNT ( ALL col1 ) col0 FROM tab2 AS cor0 WHERE + col1 <> - - col0 * 21 * - + col2
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> ( NULL ) AND - col0 + - - 81 + 82 * - col1 - - + col2 + + 97 BETWEEN col2 AND ( NULL )
----

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

skipif mysql # not compatible
query I rowsort label-1633
SELECT 75 + + COUNT ( * ) FROM tab2
----
78

query I rowsort
SELECT ALL - col1 + + - 94 FROM tab0 AS cor0
----
-115
-175
-95

query I rowsort
SELECT DISTINCT 36 * 58 * col2 - col1 AS col2 FROM tab0 AS cor0
----
206711
20859
98055

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 + - col2 * 98 BETWEEN NULL AND - col1 / - - ( 98 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1639
SELECT + 57 * + 51 * COUNT( * ) FROM tab2
----
8721

skipif mysql # not compatible
query I rowsort label-1639
SELECT + 57 * + 51 * COUNT ( * ) FROM tab2
----
8721

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * - col2 <= + ( + ( ( + col1 ) ) )
----

query I rowsort
SELECT - 23 * 86 FROM tab2
----
-1978
-1978
-1978

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NOT + + col1 + 20 - + + 79 BETWEEN NULL AND 3
----
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1643
SELECT DISTINCT - ( - - MIN( DISTINCT - col2 ) ) AS col2 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-1643
SELECT DISTINCT - ( - - MIN ( DISTINCT - col2 ) ) AS col2 FROM tab1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1644
SELECT CAST( + - ( col2 ) AS SIGNED ) FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-1644
SELECT CAST ( + - ( col2 ) AS INTEGER ) FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1645
SELECT ALL + 71 * - COUNT( * ) * + MAX( col2 ) FROM tab1
----
-20448

skipif mysql # not compatible
query I rowsort label-1645
SELECT ALL + 71 * - COUNT ( * ) * + MAX ( col2 ) FROM tab1
----
-20448

query I rowsort
SELECT ALL + ( + 13 ) FROM tab0
----
13
13
13

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 * 42, - col1 col0 FROM tab1 AS cor0
----
-2142
-14
-3570
-5
-3822
-47

query II rowsort
SELECT + 7 AS col0, 59 + + ( - col1 ) + - + col1 FROM tab0 AS cor0
----
7
-103
7
17
7
57

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

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

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

skipif mysql # not compatible
query I rowsort label-1652
SELECT DISTINCT + COUNT ( DISTINCT - + 78 ) * + COUNT ( col1 ) AS col2 FROM tab0 AS cor0
----
3

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1654
SELECT - + 74 DIV - - col1 AS col0, 42 FROM tab2 AS cor0
----
-1
42
-1
42
0
42

skipif mysql # not compatible
query II rowsort label-1654
SELECT - + 74 / - - col1 AS col0, 42 FROM tab2 AS cor0
----
-1
42
-1
42
0
42

query II rowsort
SELECT ALL + col2 * - col2 AS col0, 75 FROM tab1 cor0
----
-3481
75
-4624
75
-9216
75

query I rowsort
SELECT ALL + 96 - - col2 + - - col1 * - col1 AS col0 FROM tab0 cor0 WHERE NULL BETWEEN + col2 * 5 * - + col1 / ( + - 96 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT DISTINCT 22 + - - 49 + 44 * + SUM( ALL col1 ) AS col2 FROM tab0 AS cor0 WHERE ( col0 * - 28 ) IS NOT NULL
----
4603

skipif mysql # not compatible
query I rowsort label-1657
SELECT DISTINCT 22 + - - 49 + 44 * + SUM ( ALL col1 ) AS col2 FROM tab0 AS cor0 WHERE ( col0 * - 28 ) IS NOT NULL
----
4603

query I rowsort
SELECT DISTINCT - + 84 AS col2 FROM tab0 AS cor0
----
-84

query I rowsort
SELECT ALL + - col2 * - col0 + + col0 + - - 61 AS col0 FROM tab2 AS cor0
----
1165
2685
4486

query II rowsort
SELECT DISTINCT - 64 + - col2 + + + col2, col1 FROM tab2
----
-64
51
-64
67
-64
77

onlyif mysql # DIV for integer division: 
query I rowsort label-1661
SELECT ALL + 71 + - - 77 + col1 + + col1 + + - 15 DIV + ( + - col1 ) FROM tab1
----
161
177
242

skipif mysql # not compatible
query I rowsort label-1661
SELECT ALL + 71 + - - 77 + col1 + + col1 + + - 15 / + ( + - col1 ) FROM tab1
----
161
177
242

onlyif mysql # aggregate syntax: 
query I rowsort label-1662
SELECT DISTINCT 9 + + COUNT( * ) * - COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1662
SELECT DISTINCT 9 + + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab0
----
0

query II rowsort
SELECT DISTINCT - col2 AS col0, - 16 FROM tab1
----
-59
-16
-68
-16
-96
-16

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1665
SELECT ALL + 21 DIV - - col2 + - col0 + - - col1 AS col1 FROM tab1 AS cor0
----
-37
-44
-80

skipif mysql # not compatible
query I rowsort label-1665
SELECT ALL + 21 / - - col2 + - col0 + - - col1 AS col1 FROM tab1 AS cor0
----
-37
-44
-80

query I rowsort
SELECT - col1 * + - col2 * - col2 * + col2 + + - col1 * - col2 - + 9 AS col1 FROM tab0 AS cor0
----
-20799
-8405865
-970209

query I rowsort
SELECT ALL + - ( - 10 ) + + - 19 FROM tab2 AS cor0
----
-9
-9
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1668
SELECT - ( ( - col1 ) ) AS col1 FROM tab1 AS cor0 WHERE NOT 65 NOT BETWEEN + + 66 AND - + CAST( NULL AS SIGNED ) + 2
----

skipif mysql # not compatible
query I rowsort label-1668
SELECT - ( ( - col1 ) ) AS col1 FROM tab1 AS cor0 WHERE NOT 65 NOT BETWEEN + + 66 AND - + CAST ( NULL AS INTEGER ) + 2
----

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

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

query I rowsort
SELECT ALL + + 67 * + col2 * + ( + 88 ) FROM tab0 AS cor0
----
277112
583704
58960

query I rowsort
SELECT DISTINCT - 73 AS col2 FROM tab2 cor0
----
-73

query I rowsort
SELECT DISTINCT ( 70 ) FROM tab0
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1673
SELECT ALL * FROM tab0 WHERE 62 + - col0 * 35 * CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1673
SELECT ALL * FROM tab0 WHERE 62 + - col0 * 35 * CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1674
SELECT DISTINCT - MIN( ALL 31 ) FROM tab2
----
-31

skipif mysql # not compatible
query I rowsort label-1674
SELECT DISTINCT - MIN ( ALL 31 ) FROM tab2
----
-31

query I rowsort
SELECT DISTINCT + 22 FROM tab1, tab2 AS cor0
----
22

query I rowsort
SELECT - - col2 AS col1 FROM tab1 WHERE NOT + col2 <> - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1677
SELECT - - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + 14 * + col0 * col1 * 45 * col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1677
SELECT - - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + 14 * + col0 * col1 * 45 * col2 AND NULL
----
0

query I rowsort
SELECT DISTINCT - - col0 * + col0 AS col1 FROM tab1 cor0
----
2601
7225
8281

query I rowsort
SELECT DISTINCT 34 + + - 29 AS col2 FROM tab2
----
5

query I rowsort
SELECT DISTINCT ( + col2 ) + col1 + - 99 + - + 26 * + - col0 FROM tab1
----
1337
2175
2382

query I rowsort
SELECT ALL 7 + + + 2 FROM tab0
----
9
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT DISTINCT - COUNT( * ) * COUNT( * ) col0 FROM tab1 AS cor0
----
-9

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1683
SELECT + col0 DIV ( - ( - col2 ) ) + + 73 + 75 + - - col2 + 94 DIV ( - col2 ) AS col0 FROM tab2 AS cor0
----
169
187
206

skipif mysql # not compatible
query I rowsort label-1683
SELECT + col0 / ( - ( - col2 ) ) + + 73 + 75 + - - col2 + 94 / ( - col2 ) AS col0 FROM tab2 AS cor0
----
169
187
206

query I rowsort
SELECT ALL - col2 FROM tab1 cor0 WHERE NOT col2 + - col1 * 38 < NULL
----

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 BETWEEN - col2 * + 23 * col2 + - - col1 AND - col2 * - col0 + 21 * + + 83
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1688
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( + CAST( + ( - + col2 ) AS SIGNED ), - 78 * + 85 )
----

skipif mysql # not compatible
query III rowsort label-1688
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( + CAST ( + ( - + col2 ) AS INTEGER ), - 78 * + 85 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT - col1 + + col0 / - col1 > + ( 23 ) * + - ( col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 43 AS col0 FROM tab0 AS cor0 WHERE 77 NOT BETWEEN + - col0 AND - - col2
----
43
43

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 77 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT col2 * 94 AS col0 FROM tab2
----
2162
3760
5452

onlyif mysql # DIV for integer division: 
query I rowsort label-1694
SELECT DISTINCT col1 DIV + - col0 AS col1 FROM tab0
----
-5
0

skipif mysql # not compatible
query I rowsort label-1694
SELECT DISTINCT col1 / + - col0 AS col1 FROM tab0
----
-5
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1696
SELECT DISTINCT col0 + - col2 * - CAST( - + col0 AS SIGNED ) AS col2 FROM tab1
----
-4845
-4930
-6097

skipif mysql # not compatible
query I rowsort label-1696
SELECT DISTINCT col0 + - col2 * - CAST ( - + col0 AS INTEGER ) AS col2 FROM tab1
----
-4845
-4930
-6097

query I rowsort
SELECT - col0 + col1 - - + 0 FROM tab2
----
-8
13
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 23 + - col2 col1 FROM tab2
----
-17
-35
0

query I rowsort
SELECT - 15 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

query II rowsort
SELECT - 56, - 86 AS col2 FROM tab2 AS cor0
----
-56
-86
-56
-86
-56
-86

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <= + 21
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1702
SELECT + + COUNT( * ) AS col0, - COUNT( * ) col2 FROM tab0 cor0
----
3
-3

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1703
SELECT DISTINCT - - COUNT( * ) AS col1, - COUNT( * ) + - + ( + 65 ) + + MIN( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
3
-149

skipif mysql # not compatible
query II rowsort label-1703
SELECT DISTINCT - - COUNT ( * ) AS col1, - COUNT ( * ) + - + ( + 65 ) + + MIN ( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
3
-149

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1705
SELECT + col0 * - - CAST( NULL AS SIGNED ) - 49 AS col2 FROM tab1 WHERE NOT - col1 + col1 * + col0 <> NULL
----

skipif mysql # not compatible
query I rowsort label-1705
SELECT + col0 * - - CAST ( NULL AS INTEGER ) - 49 AS col2 FROM tab1 WHERE NOT - col1 + col1 * + col0 <> NULL
----

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 56 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1711
SELECT 4 DIV col0 + + 10 + + 24 * - col1 FROM tab1
----
-110
-1118
-326

skipif mysql # not compatible
query I rowsort label-1711
SELECT 4 / col0 + + 10 + + 24 * - col1 FROM tab1
----
-110
-1118
-326

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 34 * + + 17 + + col2 AS col1, 81 col0 FROM tab0
----
588
81
625
81
677
81

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT + col2 - - 90 < NULL
----

query I rowsort
SELECT DISTINCT + 20 + + col0 * - - col2 AS col1 FROM tab2 AS cor0
----
1078
2580
4370

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

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

query I rowsort
SELECT + + col0 * 36 + - - 76 * - col2 FROM tab0 AS cor0
----
-3032
-4032
2372

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

query I rowsort
SELECT + - col0 * + 26 AS col0 FROM tab0 AS cor0
----
-2262
-2522
-390

query I rowsort
SELECT - + col0 * 63 AS col0 FROM tab1 AS cor0
----
-3213
-5355
-5733

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT ALL - + MIN( + + col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1720
SELECT ALL - + MIN ( + + col1 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL + - 8 * - 88 * col1 FROM tab0 AS cor0
----
14784
57024
704

query I rowsort
SELECT ALL + 7 + 43 + + + 51 AS col0 FROM tab2 AS cor0
----
101
101
101

query I rowsort
SELECT DISTINCT - - 25 AS col1 FROM tab2 AS cor0
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-1724
SELECT + 35 * + - col2 DIV - col2 + col0 + - 29 * - col2 AS col0 FROM tab1
----
1831
2098
2870

skipif mysql # not compatible
query I rowsort label-1724
SELECT + 35 * + - col2 / - col2 + col0 + - 29 * - col2 AS col0 FROM tab1
----
1831
2098
2870

onlyif mysql # aggregate syntax: 
query I rowsort label-1725
SELECT ALL SUM( - - 75 ) * - 15 + - 7 AS col1 FROM tab1
----
-3382

skipif mysql # not compatible
query I rowsort label-1725
SELECT ALL SUM ( - - 75 ) * - 15 + - 7 AS col1 FROM tab1
----
-3382

query I rowsort
SELECT - col2 * + 85 * - col2 FROM tab0 AS cor0
----
187765
833085
8500

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 60, - 37 col1 FROM tab2 AS cor0
----
60
-37
60
-37
60
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-1728
SELECT 80 DIV + ( + 77 ) FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1728
SELECT 80 / + ( + 77 ) FROM tab0
----
1
1
1

query I rowsort
SELECT - + ( + + 85 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1730
SELECT + CAST( COUNT( ALL + 96 ) AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT + 98 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1730
SELECT + CAST ( COUNT ( ALL + 96 ) AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT + 98 IS NULL
----
3

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

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

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

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

query I rowsort
SELECT ALL 8 * - 54 FROM tab2
----
-432
-432
-432

query I rowsort
SELECT DISTINCT col0 * - + col1 * + col2 * col1 * - col0 FROM tab1
----
10656875
1243905572
48940416

onlyif mysql # DIV for integer division: 
query I rowsort label-1737
SELECT ALL + 59 DIV - 83 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1737
SELECT ALL + 59 / - 83 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - 82 * + col0 * - 73 BETWEEN NULL AND - + 8 + - col2 + - - col1 * + - 83 + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1739
SELECT ALL + + SUM( ALL + CAST( NULL AS DECIMAL ) ) col2 FROM tab0 WHERE NOT 5 < ( + 55 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1739
SELECT ALL + + SUM ( ALL + CAST ( NULL AS REAL ) ) col2 FROM tab0 WHERE NOT 5 < ( + 55 )
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1743
SELECT - CAST( NULL AS SIGNED ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1743
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 20 + col0 AS col1 FROM tab1
----
105
111
71

query I rowsort
SELECT 26 + - col0 + col0 FROM tab0 AS cor0
----
26
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1746
SELECT DISTINCT + COUNT( * ) - + ( 35 ) FROM tab2 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-1746
SELECT DISTINCT + COUNT ( * ) - + ( 35 ) FROM tab2 AS cor0
----
-32

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1748
SELECT + col1 DIV col1 * - ( + - 76 ) FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
76
76
76

skipif mysql # not compatible
query I rowsort label-1748
SELECT + col1 / col1 * - ( + - 76 ) FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
76
76
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1749
SELECT DISTINCT - CAST( - 41 AS SIGNED ) col0 FROM tab1 AS cor0
----
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1749
SELECT DISTINCT - CAST ( - 41 AS INTEGER ) col0 FROM tab1 AS cor0
----
41

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1750
SELECT - - MAX ( DISTINCT + ( - 31 ) ) col1 FROM tab0 AS cor0
----
-31

query I rowsort
SELECT + 80 * - col0 FROM tab2
----
-3680
-5120
-6000

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE col1 * + 79 > + - col0 * + col2 + + + col2 / - 62 + + + col2 * col2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT DISTINCT COUNT( * ) + - 55 FROM tab2
----
-52

skipif mysql # not compatible
query I rowsort label-1753
SELECT DISTINCT COUNT ( * ) + - 55 FROM tab2
----
-52

query I rowsort
SELECT - col2 * - 42 FROM tab1
----
2478
2856
4032

query II rowsort
SELECT 7 AS col2, + col0 AS col0 FROM tab1
----
7
51
7
85
7
91

onlyif mysql # DIV for integer division: 
query I rowsort label-1756
SELECT + 65 * col0 DIV + + ( 30 ) AS col1 FROM tab2
----
138
162
99

skipif mysql # not compatible
query I rowsort label-1756
SELECT + 65 * col0 / + + ( 30 ) AS col1 FROM tab2
----
138
162
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1757
SELECT COUNT( ALL - 78 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1757
SELECT COUNT ( ALL - 78 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1758
SELECT DISTINCT 84 + + + COUNT( * ) FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-1758
SELECT DISTINCT 84 + + + COUNT ( * ) FROM tab0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1759
SELECT - - COUNT( * ) - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-1759
SELECT - - COUNT ( * ) - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
6

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

query II rowsort
SELECT - 40, - 34 + + col2 + + + 88 AS col0 FROM tab1 AS cor0
----
-40
113
-40
122
-40
150

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

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

query I rowsort
SELECT DISTINCT - - 61 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
61

query I rowsort
SELECT ALL - - col2 FROM tab1 WHERE NOT col0 * - - col2 IS NULL
----
59
68
96

query I rowsort
SELECT DISTINCT - 92 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-92

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

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

query I rowsort
SELECT + col0 * + 64 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
5568
6208
960

query I rowsort
SELECT DISTINCT + 19 AS col2 FROM tab2 cor0
----
19

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

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

query I rowsort
SELECT DISTINCT ( + ( + col0 ) ) AS col1 FROM tab1 AS cor0
----
51
85
91

query II rowsort
SELECT col0 AS col0, + col2 - - col0 FROM tab1 AS cor0
----
51
147
85
144
91
159

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

query II rowsort
SELECT + col2 AS col2, - 12 * + col1 FROM tab1 AS cor0
----
59
-60
68
-564
96
-168

query I rowsort
SELECT DISTINCT 91 + - col1 * - col1 AS col1 FROM tab0
----
532
6652
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT DISTINCT + 99 + + COUNT( * ) AS col2 FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-1775
SELECT DISTINCT + 99 + + COUNT ( * ) AS col2 FROM tab0
----
102

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 62 <= col2 * 63 + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - 52 * - col2 AS col2, col1 AS col1 FROM tab1 AS cor0
----
3068
5
3536
47
4992
14

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

skipif mysql # not compatible
query III rowsort label-1778
SELECT ALL * FROM tab2 WHERE + CAST ( NULL AS INTEGER ) >= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE 44 * - 21 BETWEEN NULL AND col1 / + col2
----

query II rowsort
SELECT + 22, + col0 * + col0 + - + col2 AS col1 FROM tab0
----
22
178
22
7559
22
9310

query II rowsort
SELECT col0 AS col0, + 49 - - 9 FROM tab1 AS cor0
----
51
58
85
58
91
58

query II rowsort
SELECT - - 94 * ( - 70 ) - col2 AS col0, - 6 + - - 19 - - 62 FROM tab2 AS cor0
----
-6603
75
-6620
75
-6638
75

query I rowsort
SELECT ( 15 ) - - 73 AS col0 FROM tab1 AS cor0
----
88
88
88

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1785
SELECT - + 7 - + CAST( - + 71 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
64
64
64

skipif mysql # not compatible
query I rowsort label-1785
SELECT - + 7 - + CAST ( - + 71 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
64
64
64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1786
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN - ( - CAST( NULL AS SIGNED ) ) * - - 77 AND - + 5
----

skipif mysql # not compatible
query III rowsort label-1786
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN - ( - CAST ( NULL AS INTEGER ) ) * - - 77 AND - + 5
----

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

query I rowsort
SELECT ALL col2 + - 38 * - 21 * col0 FROM tab1
----
40794
67889
72686

query II rowsort
SELECT DISTINCT 42 + - 70, col2 FROM tab1
----
-28
59
-28
68
-28
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1790
SELECT ALL - COUNT( * ) + - MAX( + col1 ) FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-1790
SELECT ALL - COUNT ( * ) + - MAX ( + col1 ) FROM tab0
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1791
SELECT + 29 * 6, CAST( 63 AS SIGNED ) AS col2 FROM tab1
----
174
63
174
63
174
63

skipif mysql # not compatible
query II rowsort label-1791
SELECT + 29 * 6, CAST ( 63 AS INTEGER ) AS col2 FROM tab1
----
174
63
174
63
174
63

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT DISTINCT - - MAX( col1 ) AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-1793
SELECT DISTINCT - - MAX ( col1 ) AS col1 FROM tab1 AS cor0
----
47

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 26 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

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

query I rowsort
SELECT ALL + 32 FROM tab1 WHERE NOT NULL <= NULL
----

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1800
SELECT ALL - MAX( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1801
SELECT + CAST( - ( + COUNT( DISTINCT + 7 ) ) AS SIGNED ) DIV + MAX( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1801
SELECT + CAST ( - ( + COUNT ( DISTINCT + 7 ) ) AS INTEGER ) / + MAX ( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1803
SELECT * FROM tab1 cor0 WHERE NOT + 93 / 79 * ( + col2 ) BETWEEN NULL AND CAST( - - 22 AS SIGNED ) * - col0 / - col2 + - - col1 + + - col0 + - 95
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1803
SELECT * FROM tab1 cor0 WHERE NOT + 93 / 79 * ( + col2 ) BETWEEN NULL AND CAST ( - - 22 AS INTEGER ) * - col0 / - col2 + - - col1 + + - col0 + - 95
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT ALL + COUNT( * ) * + - COUNT( * ) AS col1 FROM tab2 WHERE ( + 93 ) BETWEEN col1 - - 68 AND 4 * - + 35
----
0

skipif mysql # not compatible
query I rowsort label-1806
SELECT ALL + COUNT ( * ) * + - COUNT ( * ) AS col1 FROM tab2 WHERE ( + 93 ) BETWEEN col1 - - 68 AND 4 * - + 35
----
0

query I rowsort
SELECT - col2 * 25 * + col2 AS col0 FROM tab0
----
-245025
-2500
-55225

onlyif mysql # aggregate syntax: 
query I rowsort label-1808
SELECT SUM( + col2 ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1808
SELECT SUM ( + col2 ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT 64 * + + col0 AS col2 FROM tab0
----
5568
6208
960

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 < + 67
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1812
SELECT - CAST( + col2 AS SIGNED ) AS col0 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-1812
SELECT - CAST ( + col2 AS INTEGER ) AS col0 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT ALL - 4 * - 71 AS col2 FROM tab0 AS cor0
----
284
284
284

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1815
SELECT DISTINCT - - 72 * + CAST( - col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1656
-2880
-4176

skipif mysql # not compatible
query I rowsort label-1815
SELECT DISTINCT - - 72 * + CAST ( - col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1656
-2880
-4176

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT ( + COUNT( * ) ) + 30 * ( - - SUM( ALL - ( + ( 0 ) ) ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1817
SELECT ( + COUNT ( * ) ) + 30 * ( - - SUM ( ALL - ( + ( 0 ) ) ) ) AS col2 FROM tab0
----
3

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

query II rowsort
SELECT DISTINCT col1, col2 FROM tab2 AS cor0 WHERE NOT + col0 <> col0 + 56
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1820
SELECT DISTINCT - SUM( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0 WHERE 17 <> + ( - col1 )
----
-185

skipif mysql # not compatible
query I rowsort label-1820
SELECT DISTINCT - SUM ( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0 WHERE 17 <> + ( - col1 )
----
-185

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 <= + col1 + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-1822
SELECT - - 31 DIV + 27 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1822
SELECT - - 31 / + 27 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT 85 * - ( col2 ) * 5 FROM tab2 AS cor0
----
-17000
-24650
-9775

query I rowsort
SELECT DISTINCT col1 - - ( - col0 ) FROM tab2
----
-8
13
5

query I rowsort
SELECT ALL col0 + + 31 FROM tab1
----
116
122
82

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

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

query II rowsort
SELECT ALL col0, - 10 + + - col2 FROM tab1
----
51
-106
85
-69
91
-78

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 NOT BETWEEN NULL AND - 19
----

query I rowsort
SELECT 96 * col2 AS col1 FROM tab0
----
4512
9504
960

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1833
SELECT DISTINCT + ( + col1 ) * col0 AS col0, + CAST( NULL AS SIGNED ) * 16 FROM tab1 AS cor0
----
425
NULL
4277
NULL
714
NULL

skipif mysql # not compatible
query II rowsort label-1833
SELECT DISTINCT + ( + col1 ) * col0 AS col0, + CAST ( NULL AS INTEGER ) * 16 FROM tab1 AS cor0
----
425
NULL
4277
NULL
714
NULL

query I rowsort
SELECT ALL + 31 * 9 FROM tab0 AS cor0
----
279
279
279

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 55 - 61 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 * col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1600
3364
529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1837
SELECT DISTINCT 6 + ( - col0 + - col0 ) AS col0 FROM tab2 WHERE NOT ( + CAST( - 56 AS SIGNED ) ) IS NULL
----
-122
-144
-86

skipif mysql # not compatible
query I rowsort label-1837
SELECT DISTINCT 6 + ( - col0 + - col0 ) AS col0 FROM tab2 WHERE NOT ( + CAST ( - 56 AS INTEGER ) ) IS NULL
----
-122
-144
-86

query III rowsort
SELECT ALL * FROM tab1 WHERE 66 * - 87 - + col2 * col0 BETWEEN + 63 AND col1 + col1
----

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

query I rowsort
SELECT ALL 67 * - 99 FROM tab0 WHERE NULL NOT IN ( - 19 )
----

query I rowsort
SELECT ALL col2 * + 48 - col2 AS col2 FROM tab2
----
1081
1880
2726

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

query I rowsort
SELECT ALL + col0 * + col1 + - col1 FROM tab1
----
420
4230
700

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 37 ) NOT IN ( 18 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1846
SELECT * FROM tab0 WHERE ( NULL ) NOT BETWEEN - col0 / CAST( NULL AS SIGNED ) + + col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-1846
SELECT * FROM tab0 WHERE ( NULL ) NOT BETWEEN - col0 / CAST ( NULL AS INTEGER ) + + col0 AND NULL
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1849
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col1 * - 43 + CAST( 49 AS SIGNED ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1849
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col1 * - 43 + CAST ( 49 AS INTEGER ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1850
SELECT col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE - 3 NOT BETWEEN col1 AND - 62 / 16
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1850
SELECT col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE - 3 NOT BETWEEN col1 AND - 62 / 16
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL = - col0 / ( - col0 ) - - 40
----

query I rowsort
SELECT + 91 FROM tab2 WHERE - 93 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1853
SELECT 0 * CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab1 WHERE NULL BETWEEN ( - col2 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1853
SELECT 0 * CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab1 WHERE NULL BETWEEN ( - col2 ) AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT - 71 * COUNT( * ) col2 FROM tab1
----
-213

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

query I rowsort
SELECT DISTINCT ( - 23 ) FROM tab1
----
-23

query I rowsort
SELECT + 90 AS col0 FROM tab2 WHERE NOT NULL IN ( + col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1857
SELECT ALL + MIN( - col1 ) DIV - COUNT( * ) + 66 DIV + COUNT( * ) AS col0 FROM tab0
----
49

skipif mysql # not compatible
query I rowsort label-1857
SELECT ALL + MIN ( - col1 ) / - COUNT ( * ) + 66 / + COUNT ( * ) AS col0 FROM tab0
----
49

query I rowsort
SELECT - 44 * col1 FROM tab0
----
-3564
-44
-924

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

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

query I rowsort
SELECT ALL + col1 * + 36 AS col0 FROM tab2 AS cor0
----
1836
2412
2772

query I rowsort
SELECT DISTINCT - 95 * - col2 AS col2 FROM tab1 AS cor0 WHERE NOT - col1 > ( NULL )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1862
SELECT ALL col2 / + col2 col2 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT DISTINCT + SUM( ALL + 8 ) FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-1863
SELECT DISTINCT + SUM ( ALL + 8 ) FROM tab1 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1864
SELECT + 50 + COUNT( * ) FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-1864
SELECT + 50 + COUNT ( * ) FROM tab0 AS cor0
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1865
SELECT * FROM tab1 AS cor0 WHERE col2 IN ( + CAST( + 21 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1865
SELECT * FROM tab1 AS cor0 WHERE col2 IN ( + CAST ( + 21 AS INTEGER ) )
----

query I rowsort
SELECT + col2 + + 16 * 79 FROM tab0 AS cor0
----
1274
1311
1363

onlyif mysql # DIV for integer division: 
query I rowsort label-1867
SELECT ALL - col0 DIV + 27 AS col1 FROM tab1 AS cor0
----
-1
-3
-3

skipif mysql # not compatible
query I rowsort label-1867
SELECT ALL - col0 / + 27 AS col1 FROM tab1 AS cor0
----
-1
-3
-3

query I rowsort
SELECT col1 * ( - col1 ) AS col1 FROM tab2 cor0
----
-2601
-4489
-5929

query I rowsort
SELECT DISTINCT + ( - 16 ) + - 36 * 74 FROM tab2 AS cor0
----
-2680

query I rowsort
SELECT ALL 83 * - 73 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to 0d5dd8613cd6a050076dffd84f2ff1bf

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1871
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) FROM tab2 cor0 CROSS JOIN tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1871
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) FROM tab2 cor0 CROSS JOIN tab2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT - COUNT( * ) - - MAX( 41 ) * - COUNT( * ) FROM tab2 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-1873
SELECT - COUNT ( * ) - - MAX ( 41 ) * - COUNT ( * ) FROM tab2 AS cor0
----
-126

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1875
SELECT DISTINCT - - ( CAST( 40 AS SIGNED ) ) * COUNT( * ) - - 5 AS col0 FROM tab0 AS cor0
----
125

skipif mysql # not compatible
query I rowsort label-1875
SELECT DISTINCT - - ( CAST ( 40 AS INTEGER ) ) * COUNT ( * ) - - 5 AS col0 FROM tab0 AS cor0
----
125

query I rowsort
SELECT 72 - - 77 AS col2 FROM tab1 AS cor0
----
149
149
149

query I rowsort
SELECT 18 - col2 * col0 AS col1 FROM tab1 AS cor0
----
-4878
-4997
-6170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - - 56 col0 FROM tab2 AS cor0
----
102
120
131

query I rowsort
SELECT DISTINCT + col0 - 96 AS col2 FROM tab2 AS cor0
----
-21
-32
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1880
SELECT + - MIN( DISTINCT + 89 ) + 52 FROM tab0 cor0
----
-37

skipif mysql # not compatible
query I rowsort label-1880
SELECT + - MIN ( DISTINCT + 89 ) + 52 FROM tab0 cor0
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1881
SELECT * FROM tab2 AS cor0 WHERE ( - CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1881
SELECT * FROM tab2 AS cor0 WHERE ( - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

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

query I rowsort
SELECT 89 + 56 FROM tab2 AS cor0
----
145
145
145

query I rowsort
SELECT ALL + + 54 - - 41 FROM tab1 AS cor0
----
95
95
95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT SUM( DISTINCT ( col2 ) ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1886
SELECT SUM ( DISTINCT ( col2 ) ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col2 )
----
NULL

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 50 * col1 > - col1 * col1
----

query I rowsort
SELECT 16 * + - 7 FROM tab2
----
-112
-112
-112

query I rowsort
SELECT - 55 FROM tab1 WHERE NOT 76 = col0 * - 53
----
-55
-55
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1891
SELECT COUNT( * ) FROM tab1 WHERE NOT + 64 * 93 NOT IN ( + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-1891
SELECT COUNT ( * ) FROM tab1 WHERE NOT + 64 * 93 NOT IN ( + col0 )
----
0

query I rowsort
SELECT DISTINCT 34 * - + col0 * + col1 AS col0 FROM tab0
----
-3298
-41310
-62118

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1894
SELECT 75 * COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-1894
SELECT 75 * COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
228

query I rowsort
SELECT DISTINCT 21 FROM tab2 AS cor0 WHERE NULL > - col0
----

query II rowsort
SELECT DISTINCT + 88, 35 AS col0 FROM tab1
----
88
35

query I rowsort
SELECT DISTINCT + 28 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 86 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
86

query I rowsort
SELECT + col1 / 77 AS col2 FROM tab1 WHERE NOT NULL <> NULL
----

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

query I rowsort
SELECT ALL + - 45 * col1 FROM tab0 AS cor0
----
-3645
-45
-945

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1904
SELECT ALL SUM( ALL 66 ) AS col0 FROM tab1 AS cor0 WHERE NOT + col2 * - col2 IS NULL
----
198

skipif mysql # not compatible
query I rowsort label-1904
SELECT ALL SUM ( ALL 66 ) AS col0 FROM tab1 AS cor0 WHERE NOT + col2 * - col2 IS NULL
----
198

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col1 * + + col0 / col0 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1906
SELECT col1 + + - 0 + + col0 - + - 34 DIV - col1 FROM tab0
----
107
64
96

skipif mysql # not compatible
query I rowsort label-1906
SELECT col1 + + - 0 + + col0 - + - 34 / - col1 FROM tab0
----
107
64
96

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

skipif mysql # not compatible
query I rowsort label-1907
SELECT - ( - + COUNT ( * ) ) AS col2 FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1908
SELECT DISTINCT - ( + + col1 ) DIV - col1 + col2 + col2 FROM tab1
----
119
137
193

skipif mysql # not compatible
query I rowsort label-1908
SELECT DISTINCT - ( + + col1 ) / - col1 + col2 + col2 FROM tab1
----
119
137
193

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < + 91
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT ALL + MAX( ALL + col0 ) + 87 FROM tab0
----
184

skipif mysql # not compatible
query I rowsort label-1911
SELECT ALL + MAX ( ALL + col0 ) + 87 FROM tab0
----
184

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1913
SELECT ALL CAST( + col2 AS SIGNED ) * + - col2 * ( - col2 ) AS col0 FROM tab1
----
205379
314432
884736

skipif mysql # not compatible
query I rowsort label-1913
SELECT ALL CAST ( + col2 AS INTEGER ) * + - col2 * ( - col2 ) AS col0 FROM tab1
----
205379
314432
884736

query I rowsort
SELECT DISTINCT - col0 * ( + col0 ) * - col1 FROM tab1
----
36125
36414
389207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1915
SELECT - col2 + 88 FROM tab1 AS cor0 WHERE - col2 BETWEEN + CAST( col0 AS SIGNED ) AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1915
SELECT - col2 + 88 FROM tab1 AS cor0 WHERE - col2 BETWEEN + CAST ( col0 AS INTEGER ) AND CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col1 FROM tab0 cor0 WHERE NULL NOT BETWEEN ( col1 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT DISTINCT - MAX( DISTINCT - ( col1 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 + + - 90 IN ( + col2 )
----
51

skipif mysql # not compatible
query I rowsort label-1917
SELECT DISTINCT - MAX ( DISTINCT - ( col1 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 + + - 90 IN ( + col2 )
----
51

query I rowsort
SELECT + + col0 + - ( col0 ) * col0 * + 48 AS col2 FROM tab1 AS cor0
----
-124797
-346715
-397397

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

query I rowsort
SELECT 2 + - - col0 AS col1 FROM tab1
----
53
87
93

onlyif mysql # DIV for integer division: 
query I rowsort label-1921
SELECT + 60 + + 61 DIV - - 34 FROM tab2
----
61
61
61

skipif mysql # not compatible
query I rowsort label-1921
SELECT + 60 + + 61 / - - 34 FROM tab2
----
61
61
61

onlyif mysql # aggregate syntax: 
query II rowsort label-1922
SELECT COUNT( * ), - 64 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9
-64

skipif mysql # not compatible
query II rowsort label-1922
SELECT COUNT ( * ), - 64 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1923
SELECT ALL - - 58 + + COUNT( * ) AS col1 FROM tab2 cor0
----
61

skipif mysql # not compatible
query I rowsort label-1923
SELECT ALL - - 58 + + COUNT ( * ) AS col1 FROM tab2 cor0
----
61

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

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

query I rowsort
SELECT DISTINCT - 85 * + col0 * - + col1 * - col2 AS col1 FROM tab1 AS cor0
----
-2131375
-24721060
-5826240

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

skipif mysql # not compatible
query I rowsort label-1926
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE - col2 * - col0 * + 7 * - col2 + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1927
SELECT + 60 AS col2, + MAX( ALL col2 ) * - 75 FROM tab1 AS cor0
----
60
-7200

skipif mysql # not compatible
query II rowsort label-1927
SELECT + 60 AS col2, + MAX ( ALL col2 ) * - 75 FROM tab1 AS cor0
----
60
-7200

query II rowsort
SELECT ALL - col1 AS col2, 15 FROM tab2 AS cor0
----
-51
15
-67
15
-77
15

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col0 ) NOT BETWEEN + col0 + - + col0 / 27 AND col2 + col2 * col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 59 NOT BETWEEN - col0 * col0 + 74 AND NULL
----

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

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

query I rowsort
SELECT DISTINCT + col2 * - - col1 * 48 FROM tab2
----
147840
186528
56304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1933
SELECT DISTINCT - 73 - - 44 * - - 81 FROM tab2 WHERE NOT NULL >= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1933
SELECT DISTINCT - 73 - - 44 * - - 81 FROM tab2 WHERE NOT NULL >= - CAST ( NULL AS INTEGER )
----

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

skipif mysql # not compatible
query III rowsort label-1934
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT col2 * - col1 - - col2 < CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT 55 * COUNT( * ) FROM tab2
----
165

skipif mysql # not compatible
query I rowsort label-1935
SELECT 55 * COUNT ( * ) FROM tab2
----
165

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1936
SELECT ALL COUNT( * ) * - + 21 DIV + - 76 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1936
SELECT ALL COUNT ( * ) * - + 21 / + - 76 FROM tab1
----
0

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

skipif mysql # not compatible
query I rowsort label-1937
SELECT ALL COUNT ( * ) / MAX ( col0 ) * + + 32 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT DISTINCT - 81 + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-1938
SELECT DISTINCT - 81 + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-78

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 8 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1940
SELECT col2 * - CAST( 41 AS SIGNED ) FROM tab2 AS cor0
----
-1640
-2378
-943

skipif mysql # not compatible
query I rowsort label-1940
SELECT col2 * - CAST ( 41 AS INTEGER ) FROM tab2 AS cor0
----
-1640
-2378
-943

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT COUNT( * ) * 16 + + 24 AS col2 FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-1941
SELECT COUNT ( * ) * 16 + + 24 AS col2 FROM tab0 AS cor0
----
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - + col2 ) col2 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1943
SELECT DISTINCT + col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( - 19 * + + ( - col0 ) / - 17 + CAST( NULL AS SIGNED ) - - + col2 / col2 )
----

skipif mysql # not compatible
query I rowsort label-1943
SELECT DISTINCT + col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( - 19 * + + ( - col0 ) / - 17 + CAST ( NULL AS INTEGER ) - - + col2 / col2 )
----

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

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

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

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

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

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

query I rowsort
SELECT ALL + col1 + ( 78 ) AS col2 FROM tab1
----
125
83
92

query I rowsort
SELECT ALL - 50 * - ( ( 28 ) ) + 32 AS col2 FROM tab1
----
1432
1432
1432

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1949
SELECT * FROM tab2 WHERE 90 = ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1949
SELECT * FROM tab2 WHERE 90 = ( + CAST ( NULL AS INTEGER ) )
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 IN ( 46 + col0, - ( - + col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1952
SELECT DISTINCT COUNT( * ) - - COUNT( * ) + + - 40 AS col2 FROM tab0
----
-34

skipif mysql # not compatible
query I rowsort label-1952
SELECT DISTINCT COUNT ( * ) - - COUNT ( * ) + + - 40 AS col2 FROM tab0
----
-34

query I rowsort
SELECT - col0 + - + 37 FROM tab0
----
-124
-134
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1954
SELECT ALL - ( - + ( - COUNT( * ) ) ) + - - 4 - - MAX( DISTINCT + 87 ) FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-1954
SELECT ALL - ( - + ( - COUNT ( * ) ) ) + - - 4 - - MAX ( DISTINCT + 87 ) FROM tab0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT + COUNT( * ) + 44 FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-1955
SELECT + COUNT ( * ) + 44 FROM tab0
----
47

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE col2 * - 10 IS NOT NULL
----
59
68
96

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

query I rowsort
SELECT - col1 * + col0 + - col2 + + col1 - col0 FROM tab0 AS cor0
----
-1196
-1903
-292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1959
SELECT + - COUNT( * ) * - CAST( 50 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-1959
SELECT + - COUNT ( * ) * - CAST ( 50 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
150

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 / col1 / + + ( - - col0 ) = ( NULL )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 59 * + col0 + + col2 col0 FROM tab2 cor0
----
2737
3816
4483

query I rowsort
SELECT ALL + col0 * - 8 FROM tab2
----
-368
-512
-600

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1968
SELECT + col1 * col2 DIV + ( - col0 ) FROM tab0
----
-1
-2
-253

skipif mysql # not compatible
query I rowsort label-1968
SELECT + col1 * col2 / + ( - col0 ) FROM tab0
----
-1
-2
-253

query I rowsort
SELECT - col2 * ( 53 ) AS col1 FROM tab0
----
-2491
-5247
-530

onlyif mysql # DIV for integer division: 
query II rowsort label-1970
SELECT DISTINCT + col2, - 45 DIV + col1 FROM tab2
----
23
0
40
0
58
0

skipif mysql # not compatible
query II rowsort label-1970
SELECT DISTINCT + col2, - 45 / + col1 FROM tab2
----
23
0
40
0
58
0

query I rowsort
SELECT 24 * + - 28 * + 67 AS col1 FROM tab2
----
-45024
-45024
-45024

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

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

query I rowsort
SELECT col0 * - 88 AS col0 FROM tab0
----
-1320
-7656
-8536

onlyif mysql # aggregate syntax: 
query II rowsort label-1974
SELECT + COUNT( * ) AS col2, - 43 FROM tab2 AS cor0
----
3
-43

skipif mysql # not compatible
query II rowsort label-1974
SELECT + COUNT ( * ) AS col2, - 43 FROM tab2 AS cor0
----
3
-43

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT - + COUNT( + 99 ) col1 FROM tab0 cor0
----
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT + - MAX( col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT + 51 * - col1 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1977
SELECT + - MAX ( col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT + 51 * - col1 = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1978
SELECT - COUNT( * ) + + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-1978
SELECT - COUNT ( * ) + + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-18

query I rowsort
SELECT ALL + ( col2 ) + - 68 FROM tab2
----
-10
-28
-45

query I rowsort
SELECT + col2 * + 74 FROM tab1
----
4366
5032
7104

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 79 + - col1 * + 35 - + 66 - + - ( + - col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 46 * - col1 * + 32 + + col1 + col0 FROM tab0 AS cor0
----
-119136
-1374
-30804

onlyif mysql # aggregate syntax: 
query II rowsort label-1983
SELECT DISTINCT + MIN( ALL col2 ) AS col2, + 68 * COUNT( * ) FROM tab1 AS cor0
----
59
204

skipif mysql # not compatible
query II rowsort label-1983
SELECT DISTINCT + MIN ( ALL col2 ) AS col2, + 68 * COUNT ( * ) FROM tab1 AS cor0
----
59
204

query I rowsort
SELECT - col2 + - 91 FROM tab1 AS cor0
----
-150
-159
-187

query I rowsort
SELECT DISTINCT col1 * - 72 AS col1 FROM tab2 AS cor0
----
-3672
-4824
-5544

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1986
SELECT + - COUNT( * ) DIV - 19 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1986
SELECT + - COUNT ( * ) / - 19 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1987
SELECT ALL + 41 DIV - 48 * + + 48 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1987
SELECT ALL + 41 / - 48 * + + 48 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE - col2 + + - col2 / - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1989
SELECT DISTINCT - + MAX( + - col2 ) FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-1989
SELECT DISTINCT - + MAX ( + - col2 ) FROM tab1 cor0
----
59

query I rowsort
SELECT DISTINCT 86 * + ( + - 99 ) * - - col2 FROM tab2
----
-195822
-340560
-493812

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

query I rowsort
SELECT - 98 * + 9 AS col2 FROM tab2 WHERE NOT + col2 IS NOT NULL
----

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col1 >= + 42 * + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1997
SELECT - + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + 83 + + CAST( 10 AS SIGNED ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1997
SELECT - + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + 83 + + CAST ( 10 AS INTEGER ) IS NULL
----
-3

query I rowsort
SELECT DISTINCT 26 * + col0 FROM tab0 AS cor0
----
2262
2522
390

query I rowsort
SELECT ALL col0 / + 42 + - col1 + + + col1 + + 75 FROM tab0 WHERE - + 46 IS NULL
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2001
SELECT DISTINCT * FROM tab1 WHERE NOT + - CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2001
SELECT DISTINCT * FROM tab1 WHERE NOT + - CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2002
SELECT DISTINCT - CAST( - 61 AS SIGNED ) DIV - - COUNT( * ) AS col1 FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-2002
SELECT DISTINCT - CAST ( - 61 AS INTEGER ) / - - COUNT ( * ) AS col1 FROM tab1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2003
SELECT ALL COUNT( * ) + - 9 col1 FROM tab1
----
-6

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

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

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

query I rowsort
SELECT ( + - col2 ) AS col2 FROM tab2 cor0 WHERE NOT 93 + col0 <> col2
----

query I rowsort
SELECT + col1 + - 21 * - - col1 FROM tab2 AS cor0
----
-1020
-1340
-1540

query I rowsort
SELECT + 84 * - + col0 * + col2 + + col2 + + ( - col2 ) - col1 + - 95 * - + col2 * - 78 * - ( 23 ) + + 8 + col2 * + col0 AS col0 FROM tab1 AS cor0
----
11075597
15954906
9639128

query I rowsort
SELECT col0 + - 48 + + col2 FROM tab0
----
14
148
49

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2010
SELECT 64 * + 54 + + col2 DIV col1 FROM tab0 AS cor0
----
3456
3456
3555

skipif mysql # not compatible
query I rowsort label-2010
SELECT 64 * + 54 + + col2 / col1 FROM tab0 AS cor0
----
3456
3456
3555

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 <> + + 32
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

query I rowsort
SELECT - + col0 - + - ( + 0 ) + - 82 AS col1 FROM tab0 AS cor0
----
-169
-179
-97

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

query I rowsort
SELECT ALL + 24 * - col1 AS col0 FROM tab1 cor0
----
-1128
-120
-336

query II rowsort
SELECT ALL ( - 83 ) + - col0 * 90, col2 FROM tab2
----
-4223
23
-5843
40
-6833
58

query I rowsort
SELECT - col1 + + 9 FROM tab1
----
-38
-5
4

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

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

query I rowsort
SELECT ALL - 51 + + - col1 + - col1 + + col0 * - col2 * + col0 AS col1 FROM tab2
----
-164045
-326435
-48821

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

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

query I rowsort
SELECT + 85 AS col2 FROM tab1 WHERE + 86 + + col1 NOT BETWEEN + 86 AND - + col1
----
85
85
85

query II rowsort
SELECT - col1, 23 AS col1 FROM tab1 AS cor0
----
-14
23
-47
23
-5
23

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN - col0 AND + 97 * + col2 + + - 2 / 37 / - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT ALL + MAX( ALL + col0 ) * 85 FROM tab2 AS cor0
----
6375

skipif mysql # not compatible
query I rowsort label-2027
SELECT ALL + MAX ( ALL + col0 ) * 85 FROM tab2 AS cor0
----
6375

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

skipif mysql # not compatible
query I rowsort label-2028
SELECT - - col2 * CAST ( NULL AS REAL ) * col0 + + 60 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT - + SUM( - ( - + 25 ) ) AS col0 FROM tab0 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2029
SELECT - + SUM ( - ( - + 25 ) ) AS col0 FROM tab0 cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT ALL + MAX( 40 ) AS col0 FROM tab1, tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-2030
SELECT ALL + MAX ( 40 ) AS col0 FROM tab1, tab0 AS cor0
----
40

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

query I rowsort
SELECT + 93 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query II rowsort
SELECT + col2 AS col0, 48 + + ( + col2 ) FROM tab2
----
23
71
40
88
58
106

query I rowsort
SELECT col0 * + 9 FROM tab0
----
135
783
873

query I rowsort
SELECT ALL + 88 + + col2 AS col1 FROM tab2
----
111
128
146

query II rowsort
SELECT ALL col2 AS col2, 99 - + ( - + 54 ) FROM tab1
----
59
153
68
153
96
153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2037
SELECT ALL - COUNT( - col1 ) + - 75 + 55 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE - col0 + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2037
SELECT ALL - COUNT ( - col1 ) + - 75 + 55 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE - col0 + col0 IS NOT NULL
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2039
SELECT ALL 63 DIV - + col1 FROM tab1 AS cor0
----
-1
-12
-4

skipif mysql # not compatible
query I rowsort label-2039
SELECT ALL 63 / - + col1 FROM tab1 AS cor0
----
-1
-12
-4

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT 73 * + 9 + + SUM( DISTINCT + 85 ) AS col1 FROM tab1
----
742

skipif mysql # not compatible
query I rowsort label-2041
SELECT 73 * + 9 + + SUM ( DISTINCT + 85 ) AS col1 FROM tab1
----
742

query I rowsort
SELECT - 66 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2043
SELECT + ( - col0 ) + - col1 + + + ( ( col1 ) ) + CAST( col1 AS SIGNED ) + - 87 * + - col0 AS col0 FROM tab1 AS cor0
----
4400
7315
7873

skipif mysql # not compatible
query I rowsort label-2043
SELECT + ( - col0 ) + - col1 + + + ( ( col1 ) ) + CAST ( col1 AS INTEGER ) + - 87 * + - col0 AS col0 FROM tab1 AS cor0
----
4400
7315
7873

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2044
SELECT * FROM tab1 cor0 WHERE + 53 NOT IN ( col2 - + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2044
SELECT * FROM tab1 cor0 WHERE + 53 NOT IN ( col2 - + CAST ( NULL AS INTEGER ) )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2046
SELECT DISTINCT - 42 - - + col1 DIV col2 AS col0 FROM tab1 AS cor0 WHERE NOT - 30 + - - col2 = - 6
----
-42

skipif mysql # not compatible
query I rowsort label-2046
SELECT DISTINCT - 42 - - + col1 / col2 AS col0 FROM tab1 AS cor0 WHERE NOT - 30 + - - col2 = - 6
----
-42

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

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

query I rowsort
SELECT + col1 * 58 FROM tab1
----
2726
290
812

query I rowsort
SELECT - 7 * + 3 FROM tab2
----
-21
-21
-21

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2050
SELECT DISTINCT - 89, CAST( NULL AS DECIMAL ) col0 FROM tab2
----
-89
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2050
SELECT DISTINCT - 89, CAST ( NULL AS REAL ) col0 FROM tab2
----
-89
NULL

query I rowsort
SELECT DISTINCT col2 + col0 * + 81 + + col2 * - col0 FROM tab1
----
-669
1251
1929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2052
SELECT + + col2 AS col0 FROM tab0 WHERE - CAST( - col2 AS SIGNED ) + - 50 + - 83 + + col0 / - + col2 + ( + col1 ) + - - col2 * - col2 > - + col1
----

skipif mysql # not compatible
query I rowsort label-2052
SELECT + + col2 AS col0 FROM tab0 WHERE - CAST ( - col2 AS INTEGER ) + - 50 + - 83 + + col0 / - + col2 + ( + col1 ) + - - col2 * - col2 > - + col1
----

query I rowsort
SELECT ALL ( 74 ) - + ( col0 ) AS col2 FROM tab0
----
-13
-23
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2054
SELECT col2 - + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2054
SELECT col2 - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * 59 * + col1 + - - 99 + - col1 FROM tab0
----
157
26097
387117

onlyif mysql # DIV for integer division: 
query I rowsort label-2056
SELECT 86 DIV col2 * - 2 col0 FROM tab2
----
-2
-4
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2056
SELECT 86 / col2 * - 2 col0 FROM tab2
----
-2
-4
-6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) > col0
----

query I rowsort
SELECT DISTINCT - + col0 FROM tab1 AS cor0 WHERE 83 / ( - + 8 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 col0 FROM tab1 AS cor0
----
81
81
81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 95 + + - col0 + 17 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT - COUNT( * ) * - + COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2062
SELECT - COUNT ( * ) * - + COUNT ( * ) FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-2063
SELECT ALL 30 AS col1, COUNT( * ) + + 21 * 25 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----
30
525

skipif mysql # not compatible
query II rowsort label-2063
SELECT ALL 30 AS col1, COUNT ( * ) + + 21 * 25 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----
30
525

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < - col2 + + col2
----

query I rowsort
SELECT ALL + - 77 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 <> - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2067
SELECT DISTINCT + - col0 DIV col1 * 57 AS col2 FROM tab0 cor0
----
-228
-5529
0

skipif mysql # not compatible
query I rowsort label-2067
SELECT DISTINCT + - col0 / col1 * 57 AS col2 FROM tab0 cor0
----
-228
-5529
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2068
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 * CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2068
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 * CAST ( NULL AS REAL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2069
SELECT ALL - CAST( NULL AS SIGNED ), 75 AS col2 FROM tab2 AS cor0
----
NULL
75
NULL
75
NULL
75

skipif mysql # not compatible
query II rowsort label-2069
SELECT ALL - CAST ( NULL AS INTEGER ), 75 AS col2 FROM tab2 AS cor0
----
NULL
75
NULL
75
NULL
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2070
SELECT + ( + col1 ) - + CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE NOT 27 * - ( col0 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2070
SELECT + ( + col1 ) - + CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE NOT 27 * - ( col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2071
SELECT + + COUNT( DISTINCT - CAST( col2 AS DECIMAL ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2071
SELECT + + COUNT ( DISTINCT - CAST ( col2 AS REAL ) ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT + MAX( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2072
SELECT + MAX ( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2074
SELECT DISTINCT ( + COUNT( * ) ) FROM tab2 WHERE NULL BETWEEN - 69 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2074
SELECT DISTINCT ( + COUNT ( * ) ) FROM tab2 WHERE NULL BETWEEN - 69 AND NULL
----
0

query I rowsort
SELECT DISTINCT + 22 + - col1 AS col2 FROM tab0
----
-59
1
21

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 89 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + - 2 * - col1 + - 80 FROM tab2 cor0
----
22
54
74

query I rowsort
SELECT + 56 + + col0 AS col0 FROM tab1 AS cor0
----
107
141
147

query I rowsort
SELECT 48 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT ALL col1 * - 13 + col0 + - col0 FROM tab0
----
-1053
-13
-273

query I rowsort
SELECT + col1 - + 83 AS col2 FROM tab2
----
-16
-32
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2082
SELECT DISTINCT + COUNT( * ) + - - COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2082
SELECT DISTINCT + COUNT ( * ) + - - COUNT ( * ) FROM tab0 AS cor0
----
6

query I rowsort
SELECT ALL + col2 - col1 AS col1 FROM tab2 AS cor0
----
-28
-37
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 - + col1 col2 FROM tab2 AS cor0
----
-141
-142
-97

query II rowsort
SELECT + ( col0 ) - - - col0 AS col1, - col0 FROM tab1 AS cor0
----
0
-51
0
-85
0
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-2086
SELECT + 85 DIV col1 + 3 DIV + col0 + + col0 col2 FROM tab2 cor0
----
47
65
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2086
SELECT + 85 / col1 + 3 / + col0 + + col0 col2 FROM tab2 cor0
----
47
65
76

onlyif mysql # aggregate syntax: 
query II rowsort label-2087
SELECT ALL - 23, + COUNT( * ) + + 63 AS col0 FROM tab2 AS cor0
----
-23
66

skipif mysql # not compatible
query II rowsort label-2087
SELECT ALL - 23, + COUNT ( * ) + + 63 AS col0 FROM tab2 AS cor0
----
-23
66

query I rowsort
SELECT ALL - - col1 / + - 24 AS col1 FROM tab1 WHERE NOT + + col0 - + ( col0 ) <> NULL
----

query II rowsort
SELECT ALL + 83 + - col0 + + 54 * + col2 AS col1, col1 + - + col2 AS col0 FROM tab0
----
2606
34
5332
-98
536
11

query I rowsort
SELECT ALL 4 * 84 * + col0 FROM tab0
----
29232
32592
5040

query I rowsort
SELECT DISTINCT - 0 FROM tab0 WHERE NOT - - col2 < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2092
SELECT + + 0 * + 63 AS col0 FROM tab0 WHERE NOT CAST( NULL AS DECIMAL ) * col0 > 72 + - col0
----

skipif mysql # not compatible
query I rowsort label-2092
SELECT + + 0 * + 63 AS col0 FROM tab0 WHERE NOT CAST ( NULL AS REAL ) * col0 > 72 + - col0
----

query I rowsort
SELECT ALL - ( + + 46 ) * col0 AS col2 FROM tab0
----
-4002
-4462
-690

onlyif mysql # DIV for integer division: 
query I rowsort label-2094
SELECT - col0 DIV ( - 17 ) FROM tab2
----
2
3
4

skipif mysql # not compatible
query I rowsort label-2094
SELECT - col0 / ( - 17 ) FROM tab2
----
2
3
4

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2095
SELECT + CAST( - col2 AS SIGNED ) DIV - + 33 AS col1 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-2095
SELECT + CAST ( - col2 AS INTEGER ) / - + 33 AS col1 FROM tab0
----
0
1
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( ( NULL ) NOT IN ( col2 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2097
SELECT COUNT( * ) DIV - 70 AS col0 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2097
SELECT COUNT ( * ) / - 70 AS col0 FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT + 55 + COUNT( * ) FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
55

skipif mysql # not compatible
query I rowsort label-2098
SELECT + 55 + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
55

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 > - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2100
SELECT DISTINCT - col0 * - CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-2100
SELECT DISTINCT - col0 * - CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # DIV for integer division: 
query I rowsort label-2101
SELECT ALL col0 DIV + col0 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2101
SELECT ALL col0 / + col0 AS col1 FROM tab2
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2102
SELECT DISTINCT + ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2102
SELECT DISTINCT + ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2103
SELECT - 93 DIV - - col1 FROM tab0 AS cor0
----
-1
-4
-93

skipif mysql # not compatible
query I rowsort label-2103
SELECT - 93 / - - col1 FROM tab0 AS cor0
----
-1
-4
-93

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 39 + - 41 * + col2 * - 2 - + - 46 IS NULL
----

query II rowsort
SELECT - 81, - col1 * - - col0 * col0 AS col0 FROM tab2 AS cor0
----
-81
-107916
-81
-315392
-81
-376875

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 24 col1 FROM tab1 AS cor0
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT ALL - MAX( + + col2 ) AS col2 FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2107
SELECT ALL - MAX ( + + col2 ) AS col2 FROM tab0 cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT DISTINCT - MAX( 39 ) FROM tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-2108
SELECT DISTINCT - MAX ( 39 ) FROM tab2 AS cor0
----
-39

query I rowsort
SELECT DISTINCT + - 70 AS col0 FROM tab0 cor0
----
-70

query I rowsort
SELECT ALL 36 + - 3 + - col0 * + - col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - 84 AS col0 FROM tab2 cor0 WHERE - 96 NOT BETWEEN col1 * - 6 + - col2 AND + + col2
----

query I rowsort
SELECT ALL - col1 * - + ( + ( - + 73 ) ) AS col2 FROM tab0
----
-1533
-5913
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 60 * + col0 col2 FROM tab2
----
-126960
-245760
-337500

onlyif mysql # aggregate syntax: 
query II rowsort label-2114
SELECT 1 AS col2, - MAX( ALL + 7 ) col0 FROM tab1
----
1
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2114
SELECT 1 AS col2, - MAX ( ALL + 7 ) col0 FROM tab1
----
1
-7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2115
SELECT ALL 39, CAST( col0 AS SIGNED ) AS col0 FROM tab0
----
39
15
39
87
39
97

skipif mysql # not compatible
query II rowsort label-2115
SELECT ALL 39, CAST ( col0 AS INTEGER ) AS col0 FROM tab0
----
39
15
39
87
39
97

query I rowsort
SELECT ALL 22 + + col1 + col1 * + ( - 53 ) FROM tab1
----
-238
-2422
-706

query I rowsort
SELECT DISTINCT col1 * - 46 + col2 AS col0 FROM tab2
----
-2323
-3024
-3502

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col1, + col1 col1 FROM tab0
----
10
21
47
81
99
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2119
SELECT ALL ( + 25 ) DIV - - 43 * + col0 + + ( + - 11 ) * - col2 * + col1 + - col1 DIV - col0 FROM tab1
----
14784
3245
35156

skipif mysql # not compatible
query I rowsort label-2119
SELECT ALL ( + 25 ) / - - 43 * + col0 + + ( + - 11 ) * - col2 * + col1 + - col1 / - col0 FROM tab1
----
14784
3245
35156

query II rowsort
SELECT col2, ( - col2 ) AS col2 FROM tab2
----
23
-23
40
-40
58
-58

query II rowsort
SELECT col1 AS col1, - 85 FROM tab2
----
51
-85
67
-85
77
-85

query II rowsort
SELECT - 27, - col1 + col1 * - col0 AS col2 FROM tab2 AS cor0
----
-27
-2397
-27
-5005
-27
-5092

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2123
SELECT ALL - ( + + 10 ) / + - 7 - - col1 + - col2 * + 78 * - ( - 19 ) + CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2123
SELECT ALL - ( + + 10 ) / + - 7 - - col1 + - col2 * + 78 * - ( - 19 ) + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2124
SELECT + col1 + - - 69 DIV - ( - 61 ) FROM tab0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-2124
SELECT + col1 + - - 69 / - ( - 61 ) FROM tab0
----
2
22
82

query I rowsort
SELECT ALL + - col0 - - - col1 FROM tab2 AS cor0
----
-141
-142
-97

query I rowsort
SELECT ALL - col0 - col1 AS col1 FROM tab2 AS cor0
----
-141
-142
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 76 - - - col0 col0 FROM tab2 AS cor0
----
1
12
30

query I rowsort
SELECT + ( + - 53 ) * - col0 * 45 FROM tab0 AS cor0
----
207495
231345
35775

onlyif mysql # aggregate syntax: 
query I rowsort label-2129
SELECT - - MIN( + - 13 ) AS col2 FROM tab1 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-2129
SELECT - - MIN ( + - 13 ) AS col2 FROM tab1 AS cor0
----
-13

query I rowsort
SELECT - + col1 * - 20 FROM tab2 AS cor0
----
1020
1340
1540

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2131
SELECT + 94 DIV - COUNT( * ) AS col0 FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-2131
SELECT + 94 / - COUNT ( * ) AS col0 FROM tab0
----
-31

query I rowsort
SELECT DISTINCT - col2 * - 97 FROM tab2
----
2231
3880
5626

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT 5 AS col2, col0 FROM tab0
----
5
15
5
87
5
97

query I rowsort
SELECT ALL + - col1 FROM tab1 WHERE NOT + 38 / + col2 + - 2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2136
SELECT DISTINCT - SUM( - + col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-2136
SELECT DISTINCT - SUM ( - + col2 ) FROM tab2 AS cor0
----
121

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * col1 BETWEEN NULL AND + col1 * + + col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 * + col1 - 0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2139
SELECT + CAST( NULL AS SIGNED ) * + - 44 / - col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2139
SELECT + CAST ( NULL AS INTEGER ) * + - 44 / - col0 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2140
SELECT col2 DIV 7 AS col1 FROM tab2 AS cor0
----
3
5
8

skipif mysql # not compatible
query I rowsort label-2140
SELECT col2 / 7 AS col1 FROM tab2 AS cor0
----
3
5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT ALL + - 33 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-2141
SELECT ALL + - 33 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 40 + - col1 col1 FROM tab1
----
-45
-54
-87

query I rowsort
SELECT ALL col2 * - 42 + + col0 FROM tab1
----
-2393
-2765
-3981

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT DISTINCT - - COUNT( * ) AS col0 FROM tab1 WHERE NOT + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2144
SELECT DISTINCT - - COUNT ( * ) AS col0 FROM tab1 WHERE NOT + col0 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2145
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2145
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 WHERE col2 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab2 WHERE NULL IS NULL
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 79 col1 FROM tab1 WHERE 29 + - 56 IS NULL
----

query I rowsort
SELECT 93 + - col1 FROM tab0 AS cor0
----
12
72
92

query I rowsort
SELECT DISTINCT - - col0 - + col2 + col0 FROM tab0 AS cor0
----
-17
164
95

query I rowsort
SELECT + col2 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN - - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2151
SELECT ALL - MAX( + - ( + col0 ) ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2151
SELECT ALL - MAX ( + - ( + col0 ) ) FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2152
SELECT ALL - COUNT( * ) + - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2152
SELECT ALL - COUNT ( * ) + - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - ( - + col1 ) AS col0 FROM tab1 AS cor0
----
14
47
5

query II rowsort
SELECT DISTINCT + - col2 AS col2, col1 AS col1 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

query II rowsort
SELECT col1, - col2 * - + 58 + + 93 FROM tab0 AS cor0
----
1
5835
21
673
81
2819

query II rowsort
SELECT 24 AS col2, - 88 FROM tab1 cor0
----
24
-88
24
-88
24
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 49 col1 FROM tab0 AS cor0
----
49

query I rowsort
SELECT + 51 AS col1 FROM tab2 WHERE NOT - 2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2159
SELECT + MAX( + col1 ) AS col0, 58 DIV + COUNT( * ) FROM tab0
----
81
19

skipif mysql # not compatible
query II rowsort label-2159
SELECT + MAX ( + col1 ) AS col0, 58 / + COUNT ( * ) FROM tab0
----
81
19

query I rowsort
SELECT ALL col2 + + col2 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT ( MAX( - 95 ) ) AS col1 FROM tab2
----
-95

skipif mysql # not compatible
query I rowsort label-2161
SELECT ( MAX ( - 95 ) ) AS col1 FROM tab2
----
-95

query II rowsort
SELECT col1 * + col0, - ( + col1 ) AS col1 FROM tab0
----
1215
-81
1827
-21
97
-1

query I rowsort
SELECT - 7 * 17 - + - 72 + col0 AS col1 FROM tab1 AS cor0
----
38
4
44

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 28 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2165
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( - col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2165
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( - col1 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL AVG ( col1 ) AS col2 FROM tab2 AS cor0 WHERE 3 * 72 IS NULL
----
NULL

query I rowsort
SELECT ALL + - 50 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query I rowsort
SELECT DISTINCT + 94 AS col1 FROM tab0 WHERE + col0 IN ( + col1, col2, + 57 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2169
SELECT - 97 + - 14 DIV - COUNT( * ) col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2169
SELECT - 97 + - 14 / - COUNT ( * ) col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-96

query I rowsort
SELECT ALL + ( + 84 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

onlyif mysql # aggregate syntax: 
query I rowsort label-2171
SELECT DISTINCT + 69 * - - ( - - 90 ) - - 11 * COUNT( * ) FROM tab1 AS cor0
----
6243

skipif mysql # not compatible
query I rowsort label-2171
SELECT DISTINCT + 69 * - - ( - - 90 ) - - 11 * COUNT ( * ) FROM tab1 AS cor0
----
6243

query I rowsort
SELECT + col2 + 96 FROM tab0 cor0
----
106
143
195

query I rowsort
SELECT 91 - + col1 - col1 AS col0 FROM tab1 AS cor0 WHERE - 86 <= NULL
----

query I rowsort
SELECT ALL + col0 - - col2 + - col2 FROM tab1 AS cor0 WHERE NOT NULL >= col2 + - col0 + + col0 * - - col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + + - 38 IN ( - 59 * - 69 * + - col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> col1 + - 22 + - col2 * - 58
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2177
SELECT DISTINCT 29 DIV - + col1 AS col2 FROM tab1
----
-2
-5
0

skipif mysql # not compatible
query I rowsort label-2177
SELECT DISTINCT 29 / - + col1 AS col2 FROM tab1
----
-2
-5
0

query II rowsort
SELECT ALL 17 + 67 AS col0, col0 * - ( - col2 ) - - - ( - + 60 ) AS col1 FROM tab2
----
84
1118
84
2620
84
4410

query I rowsort
SELECT DISTINCT ( 12 ) AS col2 FROM tab2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2180
SELECT - COUNT( - 18 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2180
SELECT - COUNT ( - 18 ) AS col0 FROM tab0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 * - col1 - + + col0 * - col2 BETWEEN col0 AND NULL
----

query I rowsort
SELECT DISTINCT col0 * col1 + + col2 AS col1 FROM tab0
----
1262
1837
196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 11 + - col2 col2 FROM tab0
----
-36
-88
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2184
SELECT DISTINCT - 78 - COUNT( * ) FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-2184
SELECT DISTINCT - 78 - COUNT ( * ) FROM tab2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2185
SELECT + 36 + COUNT( * ) AS col1 FROM tab2 WHERE NULL >= 76
----
36

skipif mysql # not compatible
query I rowsort label-2185
SELECT + 36 + COUNT ( * ) AS col1 FROM tab2 WHERE NULL >= 76
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2186
SELECT ALL - + col1 - + + col0 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2186
SELECT ALL - + col1 - + + col0 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( - col1 ) - + col0 FROM tab0 AS cor0
----
-66
-96
66

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 35 + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2189
SELECT + COUNT( ALL - CAST( - + col1 AS SIGNED ) ) AS col0 FROM tab2 WHERE - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2189
SELECT + COUNT ( ALL - CAST ( - + col1 AS INTEGER ) ) AS col0 FROM tab2 WHERE - col0 IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 52 col2 FROM tab2
----
2652
3484
4004

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2191
SELECT COUNT( * ) DIV 3 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2191
SELECT COUNT ( * ) / 3 FROM tab1
----
1

query II rowsort
SELECT ALL col0 AS col1, - 46 AS col2 FROM tab0 cor0
----
15
-46
87
-46
97
-46

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 31 <> NULL
----

query I rowsort
SELECT col2 * 40 FROM tab1 AS cor0
----
2360
2720
3840

onlyif mysql # aggregate syntax: 
query I rowsort label-2195
SELECT - MAX( DISTINCT 90 ) AS col1 FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-2195
SELECT - MAX ( DISTINCT 90 ) AS col1 FROM tab2
----
-90

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 <= - 18 + - col2 / - - col2
----
51
14
96
85
5
59

query I rowsort
SELECT - 24 * - + 58 + - + 24 AS col0 FROM tab1 AS cor0
----
1368
1368
1368

onlyif mysql # aggregate syntax: 
query I rowsort label-2199
SELECT ALL + 18 * + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
162

skipif mysql # not compatible
query I rowsort label-2199
SELECT ALL + 18 * + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 26 col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 47d0574274146de273829785364ada39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2201
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 28 * - ( - col2 ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2201
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 28 * - ( - col2 ) AS col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT + - 58 + - col0 FROM tab2 AS cor0
----
-104
-122
-133

query I rowsort
SELECT + 8 * + 91 - - col2 FROM tab1 cor0
----
787
796
824

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2204
SELECT ALL - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2204
SELECT ALL - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2205
SELECT - col0 + + 0 + + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2205
SELECT - col0 + + 0 + + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2206
SELECT - col2 DIV - + 8 + + col1 + - + col1 AS col0 FROM tab1 cor0
----
12
7
8

skipif mysql # not compatible
query I rowsort label-2206
SELECT - col2 / - + 8 + + col1 + - + col1 AS col0 FROM tab1 cor0
----
12
7
8

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2208
SELECT - CAST( NULL AS SIGNED ) + + col0 * - 74 col2, + col1 AS col0 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2208
SELECT - CAST ( NULL AS INTEGER ) + + col0 * - 74 col2, + col1 AS col0 FROM tab2
----
NULL
51
NULL
67
NULL
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2209
SELECT DISTINCT + 73 col0 FROM tab2 WHERE - 0 + + col2 * - col1 NOT IN ( CAST( NULL AS SIGNED ), - col2 * + 34, - 10, + 22 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2209
SELECT DISTINCT + 73 col0 FROM tab2 WHERE - 0 + + col2 * - col1 NOT IN ( CAST ( NULL AS INTEGER ), - col2 * + 34, - 10, + 22 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 + col1 * + 63 col2, col1 + - col2 + - 55 FROM tab0
----
1410
-44
160
-153
5118
-21

query I rowsort
SELECT ALL - 17 + + 71 + - col1 FROM tab1
----
40
49
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2212
SELECT COUNT( * ) + + 24 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-2212
SELECT COUNT ( * ) + + 24 FROM tab1
----
27

query II rowsort
SELECT + 53, col2 AS col1 FROM tab1 AS cor0
----
53
59
53
68
53
96

query I rowsort
SELECT + + col0 * + - col1 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT ALL + + 78 * + - ( col2 ) * col0 - - + 58 AS col1 FROM tab1 AS cor0
----
-381830
-391112
-482606

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( - col1, col1 * + 81 / - 61 + - col2 )
----

query I rowsort
SELECT DISTINCT + 49 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 89 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 97 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2220
SELECT col1 DIV + - 96 DIV col0 * + + ( + + col2 ) * - 24 col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2220
SELECT col1 / + - 96 / col0 * + + ( + + col2 ) * - 24 col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 43 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
-43
-43
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT - + SUM( - col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-2222
SELECT - + SUM ( - col0 ) FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT ALL - 50 * - COUNT( * ) + + - 15 AS col1 FROM tab1 AS cor0 WHERE 0 IS NOT NULL
----
135

skipif mysql # not compatible
query I rowsort label-2223
SELECT ALL - 50 * - COUNT ( * ) + + - 15 AS col1 FROM tab1 AS cor0 WHERE 0 IS NOT NULL
----
135

query I rowsort
SELECT ALL 62 AS col1 FROM tab1 cor0
----
62
62
62

query I rowsort
SELECT ALL 18 * + 9 AS col2 FROM tab2
----
162
162
162

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT DISTINCT + MAX( 31 ) AS col0 FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-2226
SELECT DISTINCT + MAX ( 31 ) AS col0 FROM tab1
----
31

query II rowsort
SELECT ALL col2, col2 AS col2 FROM tab2
----
23
23
40
40
58
58

query I rowsort
SELECT col0 FROM tab0 WHERE NOT - col2 * - + col0 > - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2229
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2229
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) col1 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2230
SELECT 89 DIV - col2 FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-2230
SELECT 89 / - col2 FROM tab2
----
-1
-2
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2231
SELECT COUNT( * ) DIV 79 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2231
SELECT COUNT ( * ) / 79 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT + + 6 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-2232
SELECT + + 6 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
18

query I rowsort
SELECT DISTINCT ( 79 ) AS col1 FROM tab1
----
79

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) = + 90
----

query I rowsort
SELECT ALL 31 * + col0 * - col2 + + 7 AS col2 FROM tab1
----
-151769
-155458
-191821

query I rowsort
SELECT + col0 FROM tab1 WHERE - col0 IS NOT NULL
----
51
85
91

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2238
SELECT ( - + MIN( DISTINCT - 41 ) ) * - 41 AS col2 FROM tab0
----
-1681

skipif mysql # not compatible
query I rowsort label-2238
SELECT ( - + MIN ( DISTINCT - 41 ) ) * - 41 AS col2 FROM tab0
----
-1681

query I rowsort
SELECT - 24 - col2 + - - col0 * col2 FROM tab0
----
634
836
9480

query I rowsort
SELECT col1 - + - 29 AS col0 FROM tab1
----
34
43
76

query II rowsort
SELECT col1 + - 47 + + 93 AS col2, + col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 61 - - 75 - + col2 * 96 AS col1 FROM tab0 cor0
----
-4376
-824
-9368

query II rowsort
SELECT DISTINCT 12 AS col0, + 35 FROM tab1
----
12
35

query I rowsort
SELECT + 95 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

onlyif mysql # DIV for integer division: 
query II rowsort label-2245
SELECT - col2 AS col2, col0 - + col1 DIV + col2 col1 FROM tab1
----
-59
85
-68
91
-96
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2245
SELECT - col2 AS col2, col0 - + col1 / + col2 col1 FROM tab1
----
-59
85
-68
91
-96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT ALL + COUNT( * ) * + - COUNT( * ) AS col1 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-2246
SELECT ALL + COUNT ( * ) * + - COUNT ( * ) AS col1 FROM tab1
----
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2247
SELECT ALL CAST( NULL AS DECIMAL ) AS col2, 47 AS col0 FROM tab1 AS cor0
----
NULL
47
NULL
47
NULL
47

skipif mysql # not compatible
query II rowsort label-2247
SELECT ALL CAST ( NULL AS REAL ) AS col2, 47 AS col0 FROM tab1 AS cor0
----
NULL
47
NULL
47
NULL
47

query I rowsort
SELECT - ( - 85 ) AS col0 FROM tab2 AS cor0
----
85
85
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2249
SELECT - + col2 AS col0, col2 + + + CAST( NULL AS SIGNED ) * + col1 + + + 99 * + col2 AS col0 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-2249
SELECT - + col2 AS col0, col2 + + + CAST ( NULL AS INTEGER ) * + col1 + + + 99 * + col2 AS col0 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2250
SELECT - + col0 * 82 DIV col2 - - col1 AS col0 FROM tab1 cor0
----
-113
-29
-62

skipif mysql # not compatible
query I rowsort label-2250
SELECT - + col0 * 82 / col2 - - col1 AS col0 FROM tab1 cor0
----
-113
-29
-62

query I rowsort
SELECT - + AVG ( - - col0 ) FROM tab0 AS cor0 WHERE NOT - col1 = NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 73, + col0 * - - 46 col0 FROM tab0 AS cor0
----
73
4002
73
4462
73
690

query II rowsort
SELECT 62, + 2 AS col2 FROM tab1 AS cor0
----
62
2
62
2
62
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2254
SELECT COUNT( - CAST( NULL AS SIGNED ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2254
SELECT COUNT ( - CAST ( NULL AS INTEGER ) ) FROM tab2
----
0

query I rowsort
SELECT DISTINCT - 1 + + col0 * + - col2 FROM tab0
----
-706
-871
-9604

query I rowsort
SELECT DISTINCT + col2 * - 33 AS col0 FROM tab1
----
-1947
-2244
-3168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2257
SELECT ALL CAST( NULL AS SIGNED ) / - COUNT( * ) AS col1, + COUNT( * ) AS col2 FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-2257
SELECT ALL CAST ( NULL AS INTEGER ) / - COUNT ( * ) AS col1, + COUNT ( * ) AS col2 FROM tab0
----
NULL
3

query II rowsort
SELECT + col2 * - 81 AS col1, + col1 + - 30 AS col1 FROM tab0
----
-3807
51
-8019
-29
-810
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2259
SELECT ALL - COUNT( * ) + + MIN( DISTINCT - col0 ) FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-2259
SELECT ALL - COUNT ( * ) + + MIN ( DISTINCT - col0 ) FROM tab2
----
-78

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 46 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( col2 + + col2 / + - 43 * 18 * col2 * + + 84, - 20 + 97, - - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT ALL + SUM( DISTINCT + col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-2262
SELECT ALL + SUM ( DISTINCT + col1 ) FROM tab1
----
66

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 - - 46 - + + 82 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2264
SELECT 44 DIV col1 + - col2 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-2264
SELECT 44 / col1 + - col2 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT + - 29 + - col2 AS col2 FROM tab1 AS cor0
----
-125
-88
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT + + 14 + + COUNT( * ) FROM tab0 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-2266
SELECT + + 14 + + COUNT ( * ) FROM tab0 AS cor0
----
17

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - - 45 AND + ( + 18 ) * - - col2 * + + ( + col1 )
----

query I rowsort
SELECT DISTINCT col0 + - 40 AS col1 FROM tab1
----
11
45
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2269
SELECT - 91 - + + CAST( - + 71 AS SIGNED ) FROM tab0 AS cor0
----
-20
-20
-20

skipif mysql # not compatible
query I rowsort label-2269
SELECT - 91 - + + CAST ( - + 71 AS INTEGER ) FROM tab0 AS cor0
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT DISTINCT SUM( - col0 ) AS col2 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-2270
SELECT DISTINCT SUM ( - col0 ) AS col2 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT + - col0 - + 80 AS col0 FROM tab1 AS cor0
----
-131
-165
-171

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT col1 + 80 FROM tab2 cor0
----
131
147
157

query II rowsort
SELECT DISTINCT col0 AS col2, + col2 AS col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT ALL - COUNT( DISTINCT + 91 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2275
SELECT ALL - COUNT ( DISTINCT + 91 ) AS col2 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT 55 + - - 96 + - + col0 * 56 FROM tab2 AS cor0
----
-2425
-3433
-4049

query II rowsort
SELECT ALL col2 AS col1, - col2 FROM tab0
----
10
-10
47
-47
99
-99

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
67
77

query I rowsort
SELECT ( 45 ) + 70 AS col0 FROM tab2
----
115
115
115

query I rowsort
SELECT 59 * - col2 AS col2 FROM tab2
----
-1357
-2360
-3422

query III rowsort
SELECT * FROM tab0 WHERE NOT 79 * 34 NOT IN ( + col2 / + col2, 52, col1, + col1 * + - 63 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2282
SELECT ( + col0 ) * - ( + col2 ) AS col0, CAST( NULL AS SIGNED ) FROM tab2
----
-1058
NULL
-2560
NULL
-4350
NULL

skipif mysql # not compatible
query II rowsort label-2282
SELECT ( + col0 ) * - ( + col2 ) AS col0, CAST ( NULL AS INTEGER ) FROM tab2
----
-1058
NULL
-2560
NULL
-4350
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - 89 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( - 46 )
----

query II rowsort
SELECT - + ( - col1 ), 92 AS col1 FROM tab2 AS cor0
----
51
92
67
92
77
92

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 - + 59 AND NULL
----

query III rowsort
SELECT - col2 AS col2, + col2 AS col0, - + 62 FROM tab2 AS cor0
----
9 values hashing to 047706c85178a483c46cfe074d2cf9d3

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 col0 * col1 - col1 AS col1 FROM tab2 cor0
----
2295
4851
4958

onlyif mysql # aggregate syntax: 
query I rowsort label-2290
SELECT DISTINCT MAX( ALL 77 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-2290
SELECT DISTINCT MAX ( ALL 77 ) FROM tab2
----
77

query I rowsort
SELECT ( - - col1 ) * col0 + + col1 AS col0 FROM tab0 AS cor0
----
1296
1848
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 64 col0 FROM tab2 AS cor0
----
-64
-64
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 6 col0 FROM tab0 AS cor0
----
-6
-6
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2294
SELECT DISTINCT + col2 * + CAST( - 59 AS SIGNED ) FROM tab1 AS cor0
----
-3481
-4012
-5664

skipif mysql # not compatible
query I rowsort label-2294
SELECT DISTINCT + col2 * + CAST ( - 59 AS INTEGER ) FROM tab1 AS cor0
----
-3481
-4012
-5664

onlyif mysql # aggregate syntax: 
query I rowsort label-2295
SELECT ALL - 17 * 80 * COUNT( * ) FROM tab1 AS cor0
----
-4080

skipif mysql # not compatible
query I rowsort label-2295
SELECT ALL - 17 * 80 * COUNT ( * ) FROM tab1 AS cor0
----
-4080

query I rowsort
SELECT ALL - + col1 * - - col0 AS col2 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT - + col0 * + 57 + 59 FROM tab2 WHERE NULL IN ( - col0, - col0, + + col2 * 51 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col0 + 18 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - 17, col1 * + 32 AS col1 FROM tab2 AS cor0
----
-17
1632
-17
2144
-17
2464

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2301
SELECT - - CAST( NULL AS SIGNED ) * + - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2301
SELECT - - CAST ( NULL AS INTEGER ) * + - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * 29 - - + col1 <= - col1
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 IN ( - col2 )
----

query I rowsort
SELECT ALL + col1 + col2 * + col1 FROM tab0 WHERE - col2 * 54 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL + ( + col2 ) * col0 AS col0 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT DISTINCT COUNT( * ) * + 14 FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-2306
SELECT DISTINCT COUNT ( * ) * + 14 FROM tab2
----
42

query I rowsort
SELECT - col2 * 79 FROM tab2
----
-1817
-3160
-4582

query I rowsort
SELECT - col0 * 54 AS col0 FROM tab0
----
-4698
-5238
-810

query I rowsort
SELECT ALL - 6 FROM tab1 WHERE 26 * - 93 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2310
SELECT + col0 * - CAST( col0 AS SIGNED ) AS col1 FROM tab2
----
-2116
-4096
-5625

skipif mysql # not compatible
query I rowsort label-2310
SELECT + col0 * - CAST ( col0 AS INTEGER ) AS col1 FROM tab2
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT DISTINCT 74 * COUNT( * ) FROM tab0
----
222

skipif mysql # not compatible
query I rowsort label-2311
SELECT DISTINCT 74 * COUNT ( * ) FROM tab0
----
222

query I rowsort
SELECT ALL - 24 * col0 FROM tab1
----
-1224
-2040
-2184

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT + COUNT( * ) * + SUM( - ( + 96 ) ) FROM tab1
----
-864

skipif mysql # not compatible
query I rowsort label-2313
SELECT + COUNT ( * ) * + SUM ( - ( + 96 ) ) FROM tab1
----
-864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab0 WHERE 53 < col0
----
10
99

query I rowsort
SELECT col2 * - ( 90 ) AS col0 FROM tab2
----
-2070
-3600
-5220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2316
SELECT + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT ( col1 ) * + col1 IN ( col2 - - 73 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2316
SELECT + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT ( col1 ) * + col1 IN ( col2 - - 73 )
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT + COUNT( * ) * + COUNT( * ) AS col1 FROM tab1 WHERE + 45 * col1 IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-2317
SELECT + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1 WHERE + 45 * col1 IS NOT NULL
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2318
SELECT ( 25 ) DIV + COUNT( * ) FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-2318
SELECT ( 25 ) / + COUNT ( * ) FROM tab0
----
8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2319
SELECT ALL COUNT( CAST( NULL AS DECIMAL ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2319
SELECT ALL COUNT ( CAST ( NULL AS REAL ) ) FROM tab2
----
0

query I rowsort
SELECT ALL col1 + - 7 FROM tab0
----
-6
14
74

query I rowsort
SELECT + col0 * 47 + col2 FROM tab0
----
4099
4658
752

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 22 IS NULL
----

query I rowsort
SELECT - ( 49 ) AS col2 FROM tab2
----
-49
-49
-49

query I rowsort
SELECT DISTINCT 18 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2325
SELECT + COUNT( * ) FROM tab1 WHERE NULL > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2325
SELECT + COUNT ( * ) FROM tab1 WHERE NULL > ( NULL )
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) IN ( 5 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 >= ( 1 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 * col2 > - col0
----

query I rowsort
SELECT 84 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 60 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 WHERE NOT NULL IN ( 45 + + 7 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT DISTINCT - COUNT( col1 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2331
SELECT DISTINCT - COUNT ( col1 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT ALL MIN( 51 ) FROM tab0 AS cor0 WHERE - col0 NOT IN ( - col2 )
----
51

skipif mysql # not compatible
query I rowsort label-2332
SELECT ALL MIN ( 51 ) FROM tab0 AS cor0 WHERE - col0 NOT IN ( - col2 )
----
51

query I rowsort
SELECT - col0 * 7 FROM tab1 AS cor0
----
-357
-595
-637

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT SUM( ( col0 ) ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-2334
SELECT SUM ( ( col0 ) ) FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT ALL - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( 82 ) <= col2 * - 46
----
-3

skipif mysql # not compatible
query I rowsort label-2335
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( 82 ) <= col2 * - 46
----
-3

query I rowsort
SELECT 41 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 70 + ( + col2 ) )
----

query I rowsort
SELECT 72 * + 76 FROM tab2 AS cor0
----
5472
5472
5472

query I rowsort
SELECT ALL - - col1 * 73 FROM tab2 AS cor0
----
3723
4891
5621

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT 7 * - COUNT( * ) FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-2339
SELECT 7 * - COUNT ( * ) FROM tab1 AS cor0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT DISTINCT - ( + 48 ) * - COUNT( * ) + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-2340
SELECT DISTINCT - ( + 48 ) * - COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
141

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT ( + col2 ) <= NULL
----

query I rowsort
SELECT col2 AS col1 FROM tab0 cor0 WHERE + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2343
SELECT DISTINCT - 30 DIV + col1 AS col2 FROM tab1 AS cor0
----
-2
-6
0

skipif mysql # not compatible
query I rowsort label-2343
SELECT DISTINCT - 30 / + col1 AS col2 FROM tab1 AS cor0
----
-2
-6
0

query I rowsort
SELECT DISTINCT 89 + col0 AS col2 FROM tab2
----
135
153
164

query III rowsort
SELECT * FROM tab0 WHERE - 61 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2346
SELECT ALL - 20 DIV - col1 FROM tab0
----
0
0
20

skipif mysql # not compatible
query I rowsort label-2346
SELECT ALL - 20 / - col1 FROM tab0
----
0
0
20

query I rowsort
SELECT ALL 87 + - - 42 AS col1 FROM tab1
----
129
129
129

onlyif mysql # aggregate syntax: 
query I rowsort label-2348
SELECT DISTINCT COUNT( * ) + - COUNT( * ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2348
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 60 ) IS NULL
----

query I rowsort
SELECT DISTINCT + col2 * - 10 AS col2 FROM tab2
----
-230
-400
-580

query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE ( col2 ) > ( + col2 ) + col1
----

query I rowsort
SELECT + col0 + - col1 + col2 * - col1 AS col0 FROM tab0 cor0
----
-144
-3
-3873

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 - + col2 <> NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT BETWEEN - col2 AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 51 / - col0 )
----

query I rowsort
SELECT - 62 * - col0 FROM tab2 AS cor0
----
2852
3968
4650

query I rowsort
SELECT DISTINCT + 35 * + col2 * col1 FROM tab0 AS cor0
----
133245
3465
7350

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN ( 44 ) AND - col1
----

query I rowsort
SELECT + col0 * - 16 * col0 FROM tab0 AS cor0
----
-121104
-150544
-3600

query III rowsort
SELECT * FROM tab2 WHERE ( NOT 13 BETWEEN col0 AND NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2361
SELECT ALL 8 DIV - ( - 20 ) * COUNT( DISTINCT + col1 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2361
SELECT ALL 8 / - ( - 20 ) * COUNT ( DISTINCT + col1 ) AS col0 FROM tab2
----
0

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( 97 * ( 11 ) ) = 13
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2364
SELECT DISTINCT ( + COUNT( * ) ) FROM tab2 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2364
SELECT DISTINCT ( + COUNT ( * ) ) FROM tab2 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT ALL + - 72 + ( - MAX( ALL + 85 ) + + ( - ( + 14 ) ) ) * + COUNT( * ) FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
-963

skipif mysql # not compatible
query I rowsort label-2365
SELECT ALL + - 72 + ( - MAX ( ALL + 85 ) + + ( - ( + 14 ) ) ) * + COUNT ( * ) FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
-963

query I rowsort
SELECT col1 / - ( col2 ) AS col1 FROM tab0 WHERE + col0 <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2367
SELECT + AVG ( - CAST( NULL AS SIGNED ) ) - 94 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2367
SELECT + AVG ( - CAST ( NULL AS INTEGER ) ) - 94 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN ( - col1 * - col2 ) AND NULL
----

query I rowsort
SELECT DISTINCT + col1 + + - ( + col2 ) AS col0 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT DISTINCT + ( col0 ) - col2 AS col1 FROM tab1 AS cor0
----
-45
23
26

query I rowsort
SELECT + col2 AS col1 FROM tab0 AS cor0 WHERE ( 71 * 20 ) NOT IN ( col2 )
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2372
SELECT ALL + CAST( - 98 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-98
-98
-98

skipif mysql # not compatible
query I rowsort label-2372
SELECT ALL + CAST ( - 98 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-98
-98
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-2373
SELECT + col0 DIV + col0 AS col1 FROM tab1 WHERE NOT ( - 26 ) IS NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2373
SELECT + col0 / + col0 AS col1 FROM tab1 WHERE NOT ( - 26 ) IS NULL
----
1
1
1

query I rowsort
SELECT + - col2 FROM tab0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT COUNT( * ) AS col2 FROM tab0 WHERE NOT col1 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-2375
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE NOT col1 <> NULL
----
0

query I rowsort
SELECT + 61 * - col1 FROM tab2
----
-3111
-4087
-4697

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT DISTINCT + SUM( DISTINCT + ( col0 ) ) AS col0 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-2377
SELECT DISTINCT + SUM ( DISTINCT + ( col0 ) ) AS col0 FROM tab2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT + COUNT( * ) * + + 41 FROM tab2
----
123

skipif mysql # not compatible
query I rowsort label-2378
SELECT + COUNT ( * ) * + + 41 FROM tab2
----
123

query I rowsort
SELECT - col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( ( NOT 11 IS NOT NULL ) )
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-2380
SELECT + ( - col2 ) DIV - col1 AS col2 FROM tab1 AS cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-2380
SELECT + ( - col2 ) / - col1 AS col2 FROM tab1 AS cor0
----
1
11
6

query I rowsort
SELECT ALL 58 AS col2 FROM tab0 AS cor0 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2382
SELECT CAST( - 26 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT ( - col2 * 93 ) NOT IN ( ( col0 ) )
----

skipif mysql # not compatible
query I rowsort label-2382
SELECT CAST ( - 26 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT ( - col2 * 93 ) NOT IN ( ( col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-2383
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-2383
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( + 4 ) IS NOT NULL
----

query II rowsort
SELECT ALL + col2 AS col0, - 21 FROM tab2 AS cor0
----
23
-21
40
-21
58
-21

query I rowsort
SELECT DISTINCT col1 - 43 + + ( 15 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-14
-23
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 92 col0 FROM tab0 cor0
----
-92

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2388
SELECT DISTINCT col2, - CAST( CAST( - col2 AS SIGNED ) AS SIGNED ) DIV - 89 + col0 FROM tab0 AS cor0
----
10
87
47
15
99
96

skipif mysql # not compatible
query II rowsort label-2388
SELECT DISTINCT col2, - CAST ( CAST ( - col2 AS INTEGER ) AS INTEGER ) / - 89 + col0 FROM tab0 AS cor0
----
10
87
47
15
99
96

query I rowsort
SELECT DISTINCT - + col2 * + - col0 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT DISTINCT - ( col2 ) + - - col1 AS col1 FROM tab1 cor0
----
-21
-54
-82

query III rowsort
SELECT * FROM tab0 WHERE NULL >= ( + col2 * 90 )
----

query II rowsort
SELECT + col2 AS col1, 80 AS col1 FROM tab1
----
59
80
68
80
96
80

query I rowsort
SELECT 85 - col1 FROM tab1 AS cor0 WHERE ( - col0 / col1 + 79 ) NOT IN ( col0 )
----
38
71
80

query I rowsort
SELECT - 36 + + col1 AS col1 FROM tab0 cor0
----
-15
-35
45

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 19 * - + col1 = ( + 79 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col2 + col1 AS col2, col1 * - col2 * col0 FROM tab0
----
100
-9603
128
-57105
31
-18270

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT COUNT( * ) + MAX( ALL + col0 ) FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-2397
SELECT COUNT ( * ) + MAX ( ALL + col0 ) FROM tab1
----
94

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + + 80 AND ( - + 50 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2399
SELECT ALL - COUNT( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2399
SELECT ALL - COUNT ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT - col0 NOT IN ( + 35 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2401
SELECT DISTINCT col0 * - + CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2401
SELECT DISTINCT col0 * - + CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2402
SELECT ALL + col0 / col0 * - CAST( NULL AS SIGNED ) * + ( - col2 ) AS col2, - col1 * col2 AS col0 FROM tab1 cor0
----
NULL
-1344
NULL
-295
NULL
-3196

skipif mysql # not compatible
query II rowsort label-2402
SELECT ALL + col0 / col0 * - CAST ( NULL AS INTEGER ) * + ( - col2 ) AS col2, - col1 * col2 AS col0 FROM tab1 cor0
----
NULL
-1344
NULL
-295
NULL
-3196

onlyif mysql # DIV for integer division: 
query I rowsort label-2403
SELECT DISTINCT - + ( 40 ) DIV col2 FROM tab0 AS cor0
----
-4
0

skipif mysql # not compatible
query I rowsort label-2403
SELECT DISTINCT - + ( 40 ) / col2 FROM tab0 AS cor0
----
-4
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 + + + 3 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2405
SELECT + 50 AS col1 FROM tab2 AS cor0 WHERE NOT - CAST( - col0 AS SIGNED ) * + 70 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2405
SELECT + 50 AS col1 FROM tab2 AS cor0 WHERE NOT - CAST ( - col0 AS INTEGER ) * + 70 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT - SUM( - 54 ) AS col0 FROM tab1 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-2406
SELECT - SUM ( - 54 ) AS col0 FROM tab1 AS cor0
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT DISTINCT MIN( - col1 ) AS col2 FROM tab1 cor0 WHERE NOT ( col1 / col0 ) IS NULL
----
-47

skipif mysql # not compatible
query I rowsort label-2407
SELECT DISTINCT MIN ( - col1 ) AS col2 FROM tab1 cor0 WHERE NOT ( col1 / col0 ) IS NULL
----
-47

query I rowsort
SELECT 54 * + col2 AS col2 FROM tab1
----
3186
3672
5184

onlyif mysql # aggregate syntax: 
query II rowsort label-2409
SELECT ALL COUNT( * ) AS col2, COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-2409
SELECT ALL COUNT ( * ) AS col2, COUNT ( * ) FROM tab0
----
3
3

query I rowsort
SELECT ALL - col0 * - 64 FROM tab2
----
2944
4096
4800

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT DISTINCT 51 * + MIN( ALL + ( - + col1 ) ) AS col0 FROM tab2
----
-3927

skipif mysql # not compatible
query I rowsort label-2411
SELECT DISTINCT 51 * + MIN ( ALL + ( - + col1 ) ) AS col0 FROM tab2
----
-3927

query I rowsort
SELECT DISTINCT 90 * - col0 FROM tab0
----
-1350
-7830
-8730

query I rowsort
SELECT 95 * + col0 AS col1 FROM tab1
----
4845
8075
8645

query I rowsort
SELECT DISTINCT 41 FROM tab2 WHERE NOT + - col2 NOT IN ( + col1 )
----

query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE NOT NULL IN ( + col0 * - - col0 )
----

query II rowsort
SELECT + 70 * + col2 * - + col0 AS col2, - col0 AS col2 FROM tab0
----
-49350
-15
-60900
-87
-672210
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2417
SELECT ALL - 62 col2, CAST( NULL AS SIGNED ) FROM tab2
----
-62
NULL
-62
NULL
-62
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2417
SELECT ALL - 62 col2, CAST ( NULL AS INTEGER ) FROM tab2
----
-62
NULL
-62
NULL
-62
NULL

query I rowsort
SELECT col1 * ( 7 ) FROM tab1
----
329
35
98

onlyif mysql # DIV for integer division: 
query I rowsort label-2419
SELECT DISTINCT col0 + + + 90 DIV - 59 - + + 63 AS col0 FROM tab1
----
-13
21
27

skipif mysql # not compatible
query I rowsort label-2419
SELECT DISTINCT col0 + + + 90 / - 59 - + + 63 AS col0 FROM tab1
----
-13
21
27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2420
SELECT + CAST( NULL AS DECIMAL ) * - 98 * - 41 + + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2420
SELECT + CAST ( NULL AS REAL ) * - 98 * - 41 + + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT + 15 AS col2 FROM tab1 cor0
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-2422
SELECT ALL + COUNT( - - 64 ) AS col0, - 55 AS col0 FROM tab0 AS cor0
----
3
-55

skipif mysql # not compatible
query II rowsort label-2422
SELECT ALL + COUNT ( - - 64 ) AS col0, - 55 AS col0 FROM tab0 AS cor0
----
3
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-2423
SELECT ALL - col1 * - col2 DIV - col2 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-2423
SELECT ALL - col1 * - col2 / - col2 FROM tab0 AS cor0
----
-1
-21
-81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( - 19 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2425
SELECT + col2 / 90 + - + 31 + - ( + + 84 ) + - col1 - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2425
SELECT + col2 / 90 + - + 31 + - ( + + 84 ) + - col1 - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col0 * - 10 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2427
SELECT - - SUM( col2 ) + - CAST( - ( - 69 ) AS SIGNED ) AS col1 FROM tab2 cor0
----
52

skipif mysql # not compatible
query I rowsort label-2427
SELECT - - SUM ( col2 ) + - CAST ( - ( - 69 ) AS INTEGER ) AS col1 FROM tab2 cor0
----
52

query I rowsort
SELECT - - col0 * + 42 * col1 + col1 AS col1 FROM tab0 AS cor0
----
4075
51111
76755

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2429
SELECT ALL ( - col1 ) + + ( - CAST( 56 AS SIGNED ) ) FROM tab2
----
-107
-123
-133

skipif mysql # not compatible
query I rowsort label-2429
SELECT ALL ( - col1 ) + + ( - CAST ( 56 AS INTEGER ) ) FROM tab2
----
-107
-123
-133

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2430
SELECT ALL * FROM tab0 WHERE ( - - CAST( NULL AS DECIMAL ) + + col0 ) IN ( - col1 )
----

skipif mysql # not compatible
query III rowsort label-2430
SELECT ALL * FROM tab0 WHERE ( - - CAST ( NULL AS REAL ) + + col0 ) IN ( - col1 )
----

query II rowsort
SELECT - col1, 11 AS col2 FROM tab1 AS cor0 WHERE ( - col0 ) IS NOT NULL
----
-14
11
-47
11
-5
11

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL > ( - 98 )
----

query I rowsort
SELECT 44 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query II rowsort
SELECT ALL 81 * - col1 AS col0, 23 AS col1 FROM tab1
----
-1134
23
-3807
23
-405
23

query I rowsort
SELECT + + ( + 8 ) FROM tab2 AS cor0
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2436
SELECT DISTINCT MAX( DISTINCT - col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2436
SELECT DISTINCT MAX ( DISTINCT - col2 ) FROM tab2 AS cor0
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 9 AS col1, col0 col2 FROM tab2 AS cor0
----
9
46
9
64
9
75

onlyif mysql # DIV for integer division: 
query I rowsort label-2438
SELECT + + col1 DIV - 86 col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2438
SELECT + + col1 / - 86 col1 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT - + col1 AS col0, col2 * col0 FROM tab1 AS cor0
----
-14
4896
-47
6188
-5
5015

onlyif mysql # DIV for integer division: 
query I rowsort label-2440
SELECT DISTINCT - + col2 * 90 DIV - - col1 AS col0 FROM tab0 AS cor0
----
-42
-52
-8910

skipif mysql # not compatible
query I rowsort label-2440
SELECT DISTINCT - + col2 * 90 / - - col1 AS col0 FROM tab0 AS cor0
----
-42
-52
-8910

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 37 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 93 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2443
SELECT ALL - col1 AS col1 FROM tab1 WHERE NOT ( NOT - CAST( NULL AS SIGNED ) IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-2443
SELECT ALL - col1 AS col1 FROM tab1 WHERE NOT ( NOT - CAST ( NULL AS INTEGER ) IS NOT NULL )
----

query II rowsort
SELECT DISTINCT - col2 * 15 AS col0, + col1 AS col2 FROM tab1
----
-1020
47
-1440
14
-885
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 50 <> + + ( - 75 ) - - col2 )
----

query I rowsort
SELECT DISTINCT - AVG ( ALL col1 ) FROM tab1 WHERE NOT ( col2 ) <> + 24 * - 84 + - col2 + - 1 * - col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2447
SELECT DISTINCT SUM( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-2447
SELECT DISTINCT SUM ( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
-103

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 NOT BETWEEN NULL AND - + 95
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - 20 + col1 + - + col2 * - col1 - + - col2 + - col1, - 53 AS col1 FROM tab1
----
1420
-53
3244
-53
334
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2450
SELECT DISTINCT CAST( NULL AS SIGNED ) + + COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2450
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col2 FROM tab1
----
NULL

query II rowsort
SELECT ALL 29 AS col1, 58 FROM tab2
----
29
58
29
58
29
58

query I rowsort
SELECT + col2 + - col1 * - col2 AS col2 FROM tab1
----
1440
3264
354

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 63 col1, + 93 FROM tab2 AS cor0 WHERE NOT NULL <= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2454
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2454
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col0 + + + 26 + - 91 + - 64 + col2 * - ( + - col2 ) - - 18 col1 FROM tab0 AS cor0
----
-88
2130
9692

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 22 >= + 75
----

onlyif mysql # DIV for integer division: 
query III rowsort label-2457
SELECT col2 * - - col1 * col1 + col0, col2 DIV - 88 col1, - col2 * - 88 AS col2 FROM tab2 AS cor0
----
9 values hashing to 2168fe2c2a69d3b4226b5d5188e84549

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-2457
SELECT col2 * - - col1 * col1 + col0, col2 / - 88 col1, - col2 * - 88 AS col2 FROM tab2 AS cor0
----
9 values hashing to 2168fe2c2a69d3b4226b5d5188e84549

query I rowsort
SELECT DISTINCT + 14 * - col2 - 17 AS col2 FROM tab2 AS cor0 WHERE NOT 19 + + ( - 39 ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2459
SELECT ALL + CAST( NULL AS DECIMAL ) / col1 * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2459
SELECT ALL + CAST ( NULL AS REAL ) / col1 * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col0 col0, 61 + 73 FROM tab2 AS cor0
----
-46
134
-64
134
-75
134

query III rowsort
SELECT * FROM tab2 WHERE + col2 = - + col1 - + col1
----

query I rowsort
SELECT DISTINCT + ( + 75 ) + + col1 AS col2 FROM tab0
----
156
76
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2463
SELECT - col0 DIV - + 1 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-2463
SELECT - col0 / - + 1 FROM tab0
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2464
SELECT 63 DIV 50 col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2464
SELECT 63 / 50 col1 FROM tab2
----
1
1
1

query II rowsort
SELECT DISTINCT 5 * col1 AS col2, 80 FROM tab2
----
255
80
335
80
385
80

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT - 94 * COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) = ( + + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2467
SELECT - 94 * COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) = ( + + col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2468
SELECT - 76 * + MAX( ALL - 48 ) FROM tab0 AS cor0
----
3648

skipif mysql # not compatible
query I rowsort label-2468
SELECT - 76 * + MAX ( ALL - 48 ) FROM tab0 AS cor0
----
3648

query I rowsort
SELECT ALL col2 * 3 FROM tab0
----
141
297
30

query I rowsort
SELECT - ( - 97 ) AS col2 FROM tab2
----
97
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT ALL MIN( + 54 ) AS col1 FROM tab2 cor0
----
54

skipif mysql # not compatible
query I rowsort label-2471
SELECT ALL MIN ( + 54 ) AS col1 FROM tab2 cor0
----
54

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 < col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2473
SELECT - CAST( NULL AS SIGNED ) AS col2, COUNT( * ) FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-2473
SELECT - CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) FROM tab0 AS cor0
----
NULL
3

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
51
85
91

query I rowsort
SELECT ALL 95 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + 98 AS col1, + 32 AS col2 FROM tab1 AS cor0
----
98
32
98
32
98
32

query I rowsort
SELECT DISTINCT col2 * + 88 - - col1 AS col0 FROM tab0 AS cor0
----
4217
8713
901

query I rowsort
SELECT DISTINCT col0 + + col0 - col1 FROM tab1
----
135
165
88

query I rowsort
SELECT DISTINCT + ( - - 50 ) FROM tab2
----
50

query I rowsort
SELECT DISTINCT + - col0 AS col2 FROM tab1 AS cor0 WHERE NOT col0 <= col0
----

query II rowsort
SELECT DISTINCT col1, + 10 * - col0 FROM tab2 AS cor0
----
51
-460
67
-750
77
-640

query II rowsort
SELECT DISTINCT col0 * - - 84, col2 AS col1 FROM tab0 AS cor0
----
1260
47
7308
10
8148
99

query I rowsort
SELECT DISTINCT - col0 * + 22 FROM tab0 AS cor0
----
-1914
-2134
-330

onlyif mysql # DIV for integer division: 
query I rowsort label-2484
SELECT ALL + 0 DIV 92 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2484
SELECT ALL + 0 / 92 AS col0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 99 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT - 58 * + SUM( DISTINCT + col1 ) * ( + MIN( DISTINCT - col0 ) ) FROM tab1 AS cor0 WHERE 60 IS NOT NULL
----
348348

skipif mysql # not compatible
query I rowsort label-2486
SELECT - 58 * + SUM ( DISTINCT + col1 ) * ( + MIN ( DISTINCT - col0 ) ) FROM tab1 AS cor0 WHERE 60 IS NOT NULL
----
348348

query I rowsort
SELECT DISTINCT + col1 * + + col2 FROM tab1
----
1344
295
3196

query I rowsort
SELECT ALL - 13 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query II rowsort
SELECT DISTINCT - 49 + + col0, col2 AS col1 FROM tab0 cor0
----
-34
47
38
10
48
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2490
SELECT DISTINCT - CAST( + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2490
SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT 44 * + 84 * - 42 - + - col1 FROM tab0 AS cor0
----
-155151
-155211
-155231

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2492
SELECT DISTINCT col2 * 12 + - ( CAST( NULL AS SIGNED ) ) - col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2492
SELECT DISTINCT col2 * 12 + - ( CAST ( NULL AS INTEGER ) ) - col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2493
SELECT - ( + COUNT( * ) ) - + ( + 76 ) AS col0 FROM tab0 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-2493
SELECT - ( + COUNT ( * ) ) - + ( + 76 ) AS col0 FROM tab0 AS cor0
----
-79

query I rowsort
SELECT + 4 - + 77 AS col1 FROM tab1 AS cor0
----
-73
-73
-73

query I rowsort
SELECT DISTINCT col2 * - 52 FROM tab1 AS cor0
----
-3068
-3536
-4992

query I rowsort
SELECT ( col0 ) + 96 AS col1 FROM tab0
----
111
183
193

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 22 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 5 + + + col1 * - col0 col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1210
-1822
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2499
SELECT ALL 1 + + COUNT( * ) col2 FROM tab0
----
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2499
SELECT ALL 1 + + COUNT ( * ) col2 FROM tab0
----
4

onlyif mysql # DIV for integer division: 
query II rowsort label-2500
SELECT ALL - 41 - + 14 + - col1 + + ( col2 ) - + 44 DIV col1 * col2 AS col1, col2 AS col0 FROM tab1
----
-261
96
-34
68
-473
59

skipif mysql # not compatible
query II rowsort label-2500
SELECT ALL - 41 - + 14 + - col1 + + ( col2 ) - + 44 / col1 * col2 AS col1, col2 AS col0 FROM tab1
----
-261
96
-34
68
-473
59

query I rowsort
SELECT DISTINCT col0 - - 33 AS col2 FROM tab1 AS cor0
----
118
124
84

query I rowsort
SELECT col0 * - 33 AS col0 FROM tab1 AS cor0
----
-1683
-2805
-3003

onlyif mysql # DIV for integer division: 
query II rowsort label-2503
SELECT - 71 AS col0, 80 DIV 5 + + ( + col2 ) FROM tab0 AS cor0
----
-71
115
-71
26
-71
63

skipif mysql # not compatible
query II rowsort label-2503
SELECT - 71 AS col0, 80 / 5 + + ( + col2 ) FROM tab0 AS cor0
----
-71
115
-71
26
-71
63

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 <> - - 78
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - 82 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 23 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) = 85 * - - 42
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT + MAX( - 67 ) col2 FROM tab1 AS cor0
----
-67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2508
SELECT + MAX ( - 67 ) col2 FROM tab1 AS cor0
----
-67

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > - 42
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 14 * + - col2 * + ( - ( col2 ) ) + - col1 + + 8 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - ( + col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT DISTINCT - + 73 * + 50 + - 33 FROM tab2 AS cor0
----
-3683

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT ALL SUM( + 29 ) FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-2513
SELECT ALL SUM ( + 29 ) FROM tab1
----
87

query I rowsort
SELECT - ( - 80 ) AS col0 FROM tab2
----
80
80
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2515
SELECT DISTINCT - 1 DIV + COUNT( * ) + + + 60 * - - 30 AS col1 FROM tab2
----
1800

skipif mysql # not compatible
query I rowsort label-2515
SELECT DISTINCT - 1 / + COUNT ( * ) + + + 60 * - - 30 AS col1 FROM tab2
----
1800

query I rowsort
SELECT - ( + 26 ) FROM tab2
----
-26
-26
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2517
SELECT ALL 74 * + COUNT( * ) FROM tab2 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-2517
SELECT ALL 74 * + COUNT ( * ) FROM tab2 AS cor0
----
222

query II rowsort
SELECT - 41 * + 76 * - 71 AS col0, col2 FROM tab2 AS cor0
----
221236
23
221236
40
221236
58

query I rowsort
SELECT ALL + col0 + + ( - col1 ) * col2 AS col1 FROM tab0 AS cor0
----
-123
-2
-3792

query I rowsort
SELECT DISTINCT + col2 * - + col2 + 81 * + - 51 FROM tab1 AS cor0
----
-13347
-7612
-8755

query II rowsort
SELECT ALL - col1 * 38 + - col2 AS col1, + col0 FROM tab1 cor0
----
-1854
91
-249
85
-628
51

query I rowsort
SELECT DISTINCT col2 * - + col1 AS col1 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT ALL + + col2 FROM tab0 WHERE + col0 + + - col2 + - 88 + + + col1 < + - col0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2524
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab0 cor0 WHERE NOT col1 + - 58 BETWEEN NULL AND col2
----

skipif mysql # not compatible
query I rowsort label-2524
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE NOT col1 + - 58 BETWEEN NULL AND col2
----

query I rowsort
SELECT - col0 + col1 * - ( + col0 ) * 62 FROM tab1 AS cor0
----
-26435
-265265
-44319

query I rowsort
SELECT DISTINCT col2 + - + col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + - col1 AS col2 FROM tab2 AS cor0 WHERE col1 * 2 IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - ( - 30 ) AS col1 FROM tab1 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT + 92 * + 91 + COUNT( * ) FROM tab2 AS cor0
----
8375

skipif mysql # not compatible
query I rowsort label-2529
SELECT + 92 * + 91 + COUNT ( * ) FROM tab2 AS cor0
----
8375

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT - MIN( DISTINCT col1 ) AS col1 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-2530
SELECT - MIN ( DISTINCT col1 ) AS col1 FROM tab1
----
-5

query III rowsort
SELECT * FROM tab1 WHERE - 78 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT ALL MIN( DISTINCT + - col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-2532
SELECT ALL MIN ( DISTINCT + - col1 ) FROM tab0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-2533
SELECT 19 DIV + col2 - ( col0 ) + + - 89 FROM tab2
----
-135
-153
-164

skipif mysql # not compatible
query I rowsort label-2533
SELECT 19 / + col2 - ( col0 ) + + - 89 FROM tab2
----
-135
-153
-164

onlyif mysql # aggregate syntax: 
query II rowsort label-2534
SELECT COUNT( * ) - 24, - COUNT( * ) AS col1 FROM tab0
----
-21
-3

skipif mysql # not compatible
query II rowsort label-2534
SELECT COUNT ( * ) - 24, - COUNT ( * ) AS col1 FROM tab0
----
-21
-3

query I rowsort
SELECT DISTINCT + 80 + - + col2 FROM tab1
----
-16
12
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT + ( + COUNT( * ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2536
SELECT + ( + COUNT ( * ) ) AS col2 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( - ( 17 ) ) AS col1, 13 col2 FROM tab2 WHERE NOT NULL <> ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 94, col0 * 77 )
----

query I rowsort
SELECT + + ( + + 47 ) FROM tab1 AS cor0
----
47
47
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 72 col0 FROM tab0
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2541
SELECT - - 42 + 42 + - COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT + 97 * + CAST( NULL AS SIGNED ) * - col0 IS NOT NULL
----
84

skipif mysql # not compatible
query I rowsort label-2541
SELECT - - 42 + 42 + - COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + 97 * + CAST ( NULL AS INTEGER ) * - col0 IS NOT NULL
----
84

query II rowsort
SELECT ALL col0 AS col2, + 69 AS col1 FROM tab2 AS cor0
----
46
69
64
69
75
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 74 col1 FROM tab1 AS cor0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2544
SELECT + COUNT( * ) AS col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2544
SELECT + COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT - MIN( 93 ) FROM tab1 cor0
----
-93

skipif mysql # not compatible
query I rowsort label-2545
SELECT - MIN ( 93 ) FROM tab1 cor0
----
-93

query I rowsort
SELECT ALL + col0 * + 37 AS col0 FROM tab1 AS cor0
----
1887
3145
3367

query I rowsort
SELECT + + 26 * + - col2 FROM tab2 AS cor0
----
-1040
-1508
-598

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
15
87
97

query II rowsort
SELECT DISTINCT - 74 + - col1 AS col1, + ( col2 ) * - 89 * ( - ( + col2 ) ) + + col1 - - + 50 * - col2 AS col2 FROM tab2
----
-125
45982
-141
296563
-151
140477

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2550
SELECT - MAX( + + CAST( - 38 AS SIGNED ) ) FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-2550
SELECT - MAX ( + + CAST ( - 38 AS INTEGER ) ) FROM tab2
----
38

query I rowsort
SELECT ALL - 80 + + - col1 + + 51 FROM tab1
----
-34
-43
-76

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 26 > NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT 69 = - + 58 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2554
SELECT - + 37 * + - col2 * col0 + - + col1 DIV + col2 FROM tab1 cor0
----
181152
185555
228956

skipif mysql # not compatible
query I rowsort label-2554
SELECT - + 37 * + - col2 * col0 + - + col1 / + col2 FROM tab1 cor0
----
181152
185555
228956

onlyif mysql # DIV for integer division: 
query I rowsort label-2555
SELECT ALL col1 DIV - + col1 + - col1 FROM tab0
----
-2
-22
-82

skipif mysql # not compatible
query I rowsort label-2555
SELECT ALL col1 / - + col1 + - col1 FROM tab0
----
-2
-22
-82

query I rowsort
SELECT DISTINCT + 75 + - + col1 FROM tab2
----
-2
24
8

query I rowsort
SELECT col0 - - col1 + - + col1 FROM tab1
----
51
85
91

query I rowsort
SELECT ALL - - 38 FROM tab2 AS cor0 WHERE + col1 - ( - + col2 ) * + col0 * - + col0 NOT BETWEEN NULL AND - 14 * - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT ALL - COUNT( * ) - - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2559
SELECT ALL - COUNT ( * ) - - COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT col2 * 66 + + col0 AS col2 FROM tab0 AS cor0
----
3117
6631
747

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2561
SELECT - - col1 * + CAST( + 91 AS SIGNED ) + col1 FROM tab1 cor0
----
1288
4324
460

skipif mysql # not compatible
query I rowsort label-2561
SELECT - - col1 * + CAST ( + 91 AS INTEGER ) + col1 FROM tab1 cor0
----
1288
4324
460

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col0 * - + col1 + - 1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2563
SELECT + + 67 + + COUNT( * ) - - COUNT( * ) FROM tab2 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-2563
SELECT + + 67 + + COUNT ( * ) - - COUNT ( * ) FROM tab2 AS cor0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT DISTINCT MAX( ALL col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2564
SELECT DISTINCT MAX ( ALL col0 ) FROM tab1 AS cor0
----
91

query III rowsort
SELECT * FROM tab1 WHERE col1 / - - col2 / - col2 - + 89 + - col0 <> col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 5 + col0 FROM tab1 WHERE NOT - col1 = NULL
----

query I rowsort
SELECT ALL 96 * - col1 FROM tab0
----
-2016
-7776
-96

query II rowsort
SELECT col2 AS col0, + col1 FROM tab2
----
23
51
40
77
58
67

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 * + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2570
SELECT ( + - MAX( + col1 ) ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-2570
SELECT ( + - MAX ( + col1 ) ) FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-2571
SELECT + COUNT( * ), + 95 AS col0 FROM tab1 AS cor0
----
3
95

skipif mysql # not compatible
query II rowsort label-2571
SELECT + COUNT ( * ), + 95 AS col0 FROM tab1 AS cor0
----
3
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2572
SELECT DISTINCT - 7 DIV + COUNT( * ) FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-2572
SELECT DISTINCT - 7 / + COUNT ( * ) FROM tab2 AS cor0
----
-2

query I rowsort
SELECT DISTINCT - 55 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2574
SELECT ALL + + COUNT( col1 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2574
SELECT ALL + + COUNT ( col1 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2575
SELECT DISTINCT * FROM tab0 WHERE NOT - + CAST( NULL AS DECIMAL ) < NULL
----

skipif mysql # not compatible
query III rowsort label-2575
SELECT DISTINCT * FROM tab0 WHERE NOT - + CAST ( NULL AS REAL ) < NULL
----

query I rowsort
SELECT + 48 AS col0 FROM tab0 cor0
----
48
48
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2577
SELECT + + 17 + - col2 + - - 70 col1, col0 + + + CAST( NULL AS SIGNED ) - - col2 * + - ( col0 ) AS col2 FROM tab1 AS cor0
----
-9
NULL
19
NULL
28
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2577
SELECT + + 17 + - col2 + - - 70 col1, col0 + + + CAST ( NULL AS INTEGER ) - - col2 * + - ( col0 ) AS col2 FROM tab1 AS cor0
----
-9
NULL
19
NULL
28
NULL

query I rowsort
SELECT + col2 + + + col0 AS col1 FROM tab1 AS cor0
----
144
147
159

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 <> - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 14 + - - col0 AS col1 FROM tab0 AS cor0
----
1
73
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2 AS col2, - col2 col1 FROM tab0 WHERE NULL <> NULL
----

query I rowsort
SELECT ( + - 56 ) AS col1 FROM tab0
----
-56
-56
-56

query II rowsort
SELECT 28, - 45 AS col2 FROM tab2
----
28
-45
28
-45
28
-45

query I rowsort
SELECT ALL ( - - col1 ) + + + 48 * + 27 FROM tab0
----
1297
1317
1377

query I rowsort
SELECT DISTINCT + + 76 AS col0 FROM tab0 WHERE - 96 IS NOT NULL
----
76

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 79 >= + 10 - + - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2587
SELECT - 34 + + CAST( + COUNT( * ) AS SIGNED ) + - 95 AS col0 FROM tab0
----
-126

skipif mysql # not compatible
query I rowsort label-2587
SELECT - 34 + + CAST ( + COUNT ( * ) AS INTEGER ) + - 95 AS col0 FROM tab0
----
-126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2588
SELECT - CAST( NULL AS SIGNED ) + - + ( col0 ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2588
SELECT - CAST ( NULL AS INTEGER ) + - + ( col0 ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - + ( - col2 ) col1 FROM tab0
----
-77
2
32

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col2 / + - col1 >= + 75 - + col2 + - + ( - 19 )
----
15
81
47
87
21
10

query I rowsort
SELECT ( + 91 ) AS col0 FROM tab2 AS cor0
----
91
91
91

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 WHERE NULL = - + 22
----

query II rowsort
SELECT 33 AS col2, + col0 AS col1 FROM tab2
----
33
46
33
64
33
75

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( NOT col2 IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2595
SELECT CAST( + col2 AS SIGNED ) DIV - - 19 AS col0 FROM tab0
----
0
2
5

skipif mysql # not compatible
query I rowsort label-2595
SELECT CAST ( + col2 AS INTEGER ) / - - 19 AS col0 FROM tab0
----
0
2
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2596
SELECT ALL 38 DIV + COUNT( * ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-2596
SELECT ALL 38 / + COUNT ( * ) FROM tab0
----
12

query I rowsort
SELECT ALL 51 * + 97 * + ( col1 ) FROM tab0
----
103887
400707
4947

query I rowsort
SELECT DISTINCT + 0 * - col0 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col2 * + ( + + 35 ) * 32 FROM tab1 AS cor0
----
107520
66080
76160

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 / - - 1 * + ( + - col1 ) IS NULL
----

query I rowsort
SELECT col1 / + col0 AS col0 FROM tab2 AS cor0 WHERE ( ( 53 IS NULL ) )
----

query I rowsort
SELECT DISTINCT - col2 * + - 33 AS col1 FROM tab0 AS cor0
----
1551
3267
330

query I rowsort
SELECT - + ( + + 34 ) AS col0 FROM tab0 AS cor0
----
-34
-34
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-2604
SELECT col1 + + col0 DIV col0 FROM tab1
----
15
48
6

skipif mysql # not compatible
query I rowsort label-2604
SELECT col1 + + col0 / col0 FROM tab1
----
15
48
6

query I rowsort
SELECT + col0 * + col1 AS col1 FROM tab2 WHERE NULL IS NULL
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2606
SELECT + 84 / 35 * + - CAST( NULL AS SIGNED ) + - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2606
SELECT + 84 / 35 * + - CAST ( NULL AS INTEGER ) + - col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE - 38 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * + + col0 + - 70 col0, col2 AS col1 FROM tab0 AS cor0
----
1145
47
1757
10
27
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT MAX( DISTINCT col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-2609
SELECT MAX ( DISTINCT col1 ) FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2610
SELECT ALL - MAX( ALL + col0 ) col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2610
SELECT ALL - MAX ( ALL + col0 ) col1 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT + - ( + 0 ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL + + 67 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT ALL + ( + - col2 ) FROM tab0 WHERE NOT NULL BETWEEN - col0 AND 11
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2614
SELECT + 65 * - + 78 + - 55 - + COUNT( * ) * + AVG ( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2614
SELECT + 65 * - + 78 + - 55 - + COUNT ( * ) * + AVG ( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT + COUNT( DISTINCT col1 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2615
SELECT + COUNT ( DISTINCT col1 ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2616
SELECT DISTINCT - MIN( ALL 18 ) FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-2616
SELECT DISTINCT - MIN ( ALL 18 ) FROM tab1 AS cor0
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-2617
SELECT + COUNT( * ) AS col2, COUNT( * ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-2617
SELECT + COUNT ( * ) AS col2, COUNT ( * ) FROM tab1 AS cor0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - + 22 ) col2 FROM tab0 AS cor0
----
-22
-22
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2619
SELECT - MIN( DISTINCT 19 ) col2 FROM tab2 AS cor0
----
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2619
SELECT - MIN ( DISTINCT 19 ) col2 FROM tab2 AS cor0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2620
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( col1 ) IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 99 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 * + 63 FROM tab1
----
3717
4284
6048

onlyif mysql # DIV for integer division: 
query I rowsort label-2624
SELECT ( + - ( 61 ) ) DIV col0 FROM tab0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-2624
SELECT ( + - ( 61 ) ) / col0 FROM tab0
----
-4
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 0 ) col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * - ( + + 26 ) AS col1 FROM tab2 AS cor0
----
-1196
-1664
-1950

query I rowsort
SELECT DISTINCT - col2 + + col0 + + col2 AS col0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2628
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-9

query III rowsort
SELECT * FROM tab0 WHERE NOT + 96 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2630
SELECT ALL - 20 DIV + - COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-2630
SELECT ALL - 20 / + - COUNT ( * ) FROM tab0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + 2 col2 FROM tab2
----
48
66
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT ALL + 27 * + COUNT( * ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2632
SELECT ALL + 27 * + COUNT ( * ) FROM tab0 AS cor0
----
81

query I rowsort
SELECT + - col0 + - + col2 AS col2 FROM tab0 AS cor0
----
-196
-62
-97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 5 * col0 > - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT DISTINCT 15 * - + COUNT( 11 ) FROM tab2 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-2635
SELECT DISTINCT 15 * - + COUNT ( 11 ) FROM tab2 AS cor0
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2636
SELECT DISTINCT + + CAST( NULL AS SIGNED ) / + 32 AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2636
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) / + 32 AS col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL + 60 + 72 AS col2 FROM tab2 AS cor0
----
132
132
132

query I rowsort
SELECT DISTINCT 6 + col2 FROM tab1
----
102
65
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2639
SELECT DISTINCT + 24 * + - 72 + - - 60 + MIN( DISTINCT + - col2 ) col0 FROM tab1
----
-1764

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2639
SELECT DISTINCT + 24 * + - 72 + - - 60 + MIN ( DISTINCT + - col2 ) col0 FROM tab1
----
-1764

query I rowsort
SELECT ALL + 42 + + 69 * + - ( + + col2 ) * + 44 * 18 + - col2 FROM tab1
----
-3224249
-3716090
-5246262

onlyif mysql # DIV for integer division: 
query II rowsort label-2641
SELECT + col1 AS col2, col1 DIV + col2 col1 FROM tab2
----
51
2
67
1
77
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2641
SELECT + col1 AS col2, col1 / + col2 col1 FROM tab2
----
51
2
67
1
77
1

query I rowsort
SELECT col0 - + - 81 FROM tab1
----
132
166
172

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * - col0 <> + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - + - 77 col1 FROM tab0 AS cor0
----
-10
-20
62

onlyif mysql # DIV for integer division: 
query I rowsort label-2645
SELECT DISTINCT + + col2 DIV - col0 * ( col0 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2645
SELECT DISTINCT + + col2 / - col0 * ( col0 ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT ALL + - COUNT( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2646
SELECT ALL + - COUNT ( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 25 * + - col0 col0 FROM tab2
----
-1150
-1600
-1875

query I rowsort
SELECT DISTINCT - 0 + + 69 FROM tab0 WHERE NOT + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - 48 AND 23
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2650
SELECT + SUM( col0 ) * + + ( MAX( col2 ) ) AS col2 FROM tab1 AS cor0
----
21792

skipif mysql # not compatible
query I rowsort label-2650
SELECT + SUM ( col0 ) * + + ( MAX ( col2 ) ) AS col2 FROM tab1 AS cor0
----
21792

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( NULL NOT IN ( - 8 ) ) )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND col2 / 59
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN + col1 AND NULL
----

query II rowsort
SELECT - col2 AS col1, - 52 * + - col1 * + + 91 * 31 AS col0 FROM tab0
----
-10
3080532
-47
11882052
-99
146692

query III rowsort
SELECT * FROM tab2 WHERE NOT 2 * + 84 >= - col2 / col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2656
SELECT * FROM tab0 WHERE NOT + - 27 < col2 * - 77 / - 87 + - CAST( col1 AS SIGNED )
----
15
81
47

skipif mysql # not compatible
query III rowsort label-2656
SELECT * FROM tab0 WHERE NOT + - 27 < col2 * - 77 / - 87 + - CAST ( col1 AS INTEGER )
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2657
SELECT + SUM( DISTINCT + col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-2657
SELECT + SUM ( DISTINCT + col1 ) FROM tab1
----
66

query II rowsort
SELECT DISTINCT + col1, col2 FROM tab1
----
14
96
47
68
5
59

onlyif mysql # aggregate syntax: 
query II rowsort label-2659
SELECT DISTINCT COUNT( * ), + COUNT( * ) col0 FROM tab1
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2659
SELECT DISTINCT COUNT ( * ), + COUNT ( * ) col0 FROM tab1
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + 80 + col2 * - col2 IS NOT NULL AND col1 / + col1 > col2 * + - col1
----
0

skipif mysql # not compatible
query I rowsort label-2660
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + 80 + col2 * - col2 IS NOT NULL AND col1 / + col1 > col2 * + - col1
----
0

query I rowsort
SELECT - - 91 + + 23 AS col1 FROM tab1 AS cor0
----
114
114
114

query I rowsort
SELECT - + ( - 51 ) FROM tab0 AS cor0
----
51
51
51

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL IN ( col2 * + - 11, col0 )
----

query I rowsort
SELECT DISTINCT - - ( + 20 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
20

query I rowsort
SELECT + 97 * + col0 * + + 66 AS col1 FROM tab0
----
556974
620994
96030

onlyif mysql # DIV for integer division: 
query I rowsort label-2666
SELECT ALL + col0 + - - col2 DIV 84 col2 FROM tab1
----
52
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2666
SELECT ALL + col0 + - - col2 / 84 col2 FROM tab1
----
52
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2667
SELECT ALL - - CAST( NULL AS SIGNED ) * 42 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2667
SELECT ALL - - CAST ( NULL AS INTEGER ) * 42 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * - - 81 AS col1 FROM tab0 AS cor0
----
3807
8019
810

query I rowsort
SELECT DISTINCT - 1 * - col1 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2670
SELECT ALL COUNT( * ) * - - 19 FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-2670
SELECT ALL COUNT ( * ) * - - 19 FROM tab0 AS cor0
----
57

query I rowsort
SELECT + col0 + - col2 + + + col0 FROM tab0 cor0
----
-17
164
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2672
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0 + - 96 col0, - 48 FROM tab1 AS cor0
----
-147
-48
-181
-48
-187
-48

query I rowsort
SELECT ( - 24 ) + - ( 67 ) + ( - + col2 ) FROM tab0 AS cor0
----
-101
-138
-190

query I rowsort
SELECT + ( - 81 ) + - col2 * + 20 AS col1 FROM tab1 AS cor0
----
-1261
-1441
-2001

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2676
SELECT DISTINCT + - CAST( NULL AS SIGNED ) / - col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2676
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) / - col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2677
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2677
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT - 50 * + 47 + + MAX( - 11 ) AS col0 FROM tab1
----
-2361

skipif mysql # not compatible
query I rowsort label-2678
SELECT - 50 * + 47 + + MAX ( - 11 ) AS col0 FROM tab1
----
-2361

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 52 + 79 col1 FROM tab2
----
-2573
-3405
-3925

query I rowsort
SELECT DISTINCT col2 * - 97 + col2 FROM tab2
----
-2208
-3840
-5568

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2681
SELECT ALL + col1 col0 FROM tab0 WHERE + ( - CAST( + col1 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2681
SELECT ALL + col1 col0 FROM tab0 WHERE + ( - CAST ( + col1 AS INTEGER ) ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + col1 IN ( col1 * + col0 )
----

query I rowsort
SELECT ALL - 41 - + + 30 AS col0 FROM tab2 AS cor0
----
-71
-71
-71

query I rowsort
SELECT + ( 36 ) FROM tab1 AS cor0
----
36
36
36

onlyif mysql # aggregate syntax: 
query II rowsort label-2685
SELECT + 40, + COUNT( * ) + 68 AS col2 FROM tab1 AS cor0
----
40
71

skipif mysql # not compatible
query II rowsort label-2685
SELECT + 40, + COUNT ( * ) + 68 AS col2 FROM tab1 AS cor0
----
40
71

onlyif mysql # DIV for integer division: 
query I rowsort label-2686
SELECT DISTINCT + 68 DIV + 75 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2686
SELECT DISTINCT + 68 / + 75 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 78 * + 63 AS col2 FROM tab1 AS cor0
----
-4914

onlyif mysql # DIV for integer division: 
query II rowsort label-2688
SELECT 35 DIV + + col0 col2, col2 FROM tab2
----
0
23
0
40
0
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2688
SELECT 35 / + + col0 col2, col2 FROM tab2
----
0
23
0
40
0
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2689
SELECT ALL CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2689
SELECT ALL CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + + - 22 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT - + ( - 81 ) AS col0 FROM tab2 AS cor0
----
81
81
81

query II rowsort
SELECT 46 AS col2, col0 * col1 FROM tab0 AS cor0
----
46
1215
46
1827
46
97

query II rowsort
SELECT col2, col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

query III rowsort
SELECT ALL * FROM tab2 WHERE 48 * + 17 + + 72 <= 41
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2695
SELECT MIN( DISTINCT 46 ) AS col2 FROM tab1
----
46

skipif mysql # not compatible
query I rowsort label-2695
SELECT MIN ( DISTINCT 46 ) AS col2 FROM tab1
----
46

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 * - + col0 = - col2 + + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-2697
SELECT - 41 DIV - 52, col1 AS col0 FROM tab1
----
0
14
0
47
0
5

skipif mysql # not compatible
query II rowsort label-2697
SELECT - 41 / - 52, col1 AS col0 FROM tab1
----
0
14
0
47
0
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2698
SELECT 6 * MAX( ALL + + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2698
SELECT 6 * MAX ( ALL + + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT ALL - + 24 AS col2 FROM tab0 AS cor0
----
-24
-24
-24

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL + - ( - col1 ) * 64 FROM tab2 AS cor0 WHERE NOT col0 BETWEEN col0 - col1 AND - 34 * - col1 + - col1 + + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2702
SELECT COUNT( * ) * 44 AS col2, COUNT( * ) * - 51 FROM tab2 AS cor0
----
132
-153

skipif mysql # not compatible
query II rowsort label-2702
SELECT COUNT ( * ) * 44 AS col2, COUNT ( * ) * - 51 FROM tab2 AS cor0
----
132
-153

query I rowsort
SELECT col0 + - + col2 FROM tab2
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT SUM( DISTINCT - col1 ) + + + 38 AS col0 FROM tab0
----
-65

skipif mysql # not compatible
query I rowsort label-2704
SELECT SUM ( DISTINCT - col1 ) + + + 38 AS col0 FROM tab0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT + + 73 + + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-2705
SELECT + + 73 + + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
76

query I rowsort
SELECT ALL - 73 * - col0 - + col1 + + + col2 * - 96 FROM tab2 AS cor0
----
-160
1099
755

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT DISTINCT + MAX( ALL - + col0 ) AS col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2707
SELECT DISTINCT + MAX ( ALL - + col0 ) AS col1 FROM tab2 AS cor0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2708
SELECT + 80 * + - CAST( NULL AS SIGNED ) / CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2708
SELECT + 80 * + - CAST ( NULL AS INTEGER ) / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - 48 IS NOT NULL
----

query I rowsort
SELECT ALL 28 + + col0 FROM tab0
----
115
125
43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2711
SELECT col0 AS col2 FROM tab2 WHERE - col2 BETWEEN col0 + - CAST( + + col2 AS DECIMAL ) + - 91 + 15 AND 10 + - + 47
----
64
75

skipif mysql # not compatible
query I rowsort label-2711
SELECT col0 AS col2 FROM tab2 WHERE - col2 BETWEEN col0 + - CAST ( + + col2 AS REAL ) + - 91 + 15 AND 10 + - + 47
----
64
75

query I rowsort
SELECT ( - - 61 ) - - - 38 FROM tab1
----
23
23
23

query I rowsort
SELECT + 47 - + - col1 FROM tab2
----
114
124
98

query I rowsort
SELECT + 80 + - col2 FROM tab0
----
-19
33
70

query I rowsort
SELECT ALL + 66 FROM tab1 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2716
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 NOT IN ( + 87, CAST( - col2 AS SIGNED ) + - - 57, + col0 + + col0, 68 * - - 59 + - + ( - - col2 ) - col2 )
----

skipif mysql # not compatible
query III rowsort label-2716
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 NOT IN ( + 87, CAST ( - col2 AS INTEGER ) + - - 57, + col0 + + col0, 68 * - - 59 + - + ( - - col2 ) - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT ALL - MIN( ALL ( + - col1 ) ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-2717
SELECT ALL - MIN ( ALL ( + - col1 ) ) AS col0 FROM tab1 AS cor0
----
47

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 NOT BETWEEN - ( - col0 ) AND + col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2719
SELECT ALL + ( COUNT( * ) ) DIV - + 81 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
0

skipif mysql # not compatible
query I rowsort label-2719
SELECT ALL + ( COUNT ( * ) ) / - + 81 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2720
SELECT ALL CAST( NULL AS SIGNED ) * - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2720
SELECT ALL CAST ( NULL AS INTEGER ) * - col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2721
SELECT DISTINCT 86 DIV col1 FROM tab0
----
1
4
86

skipif mysql # not compatible
query I rowsort label-2721
SELECT DISTINCT 86 / col1 FROM tab0
----
1
4
86

query I rowsort
SELECT 69 * + 77 AS col2 FROM tab1 cor0 WHERE NOT ( + 31 ) IS NULL
----
5313
5313
5313

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2723
SELECT ALL 61, - 63 * CAST( + col0 AS SIGNED ) col1 FROM tab2 AS cor0
----
61
-2898
61
-4032
61
-4725

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2723
SELECT ALL 61, - 63 * CAST ( + col0 AS INTEGER ) col1 FROM tab2 AS cor0
----
61
-2898
61
-4032
61
-4725

onlyif mysql # aggregate syntax: 
query I rowsort label-2724
SELECT DISTINCT + COUNT( * ) * + - 24 AS col2 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-2724
SELECT DISTINCT + COUNT ( * ) * + - 24 AS col2 FROM tab2 AS cor0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2725
SELECT + CAST( + 73 AS SIGNED ) FROM tab2 AS cor0
----
73
73
73

skipif mysql # not compatible
query I rowsort label-2725
SELECT + CAST ( + 73 AS INTEGER ) FROM tab2 AS cor0
----
73
73
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2726
SELECT DISTINCT + col1 AS col0 FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) > + - col2 + col0 + col2
----

skipif mysql # not compatible
query I rowsort label-2726
SELECT DISTINCT + col1 AS col0 FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) > + - col2 + col0 + col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 87 > + 73
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2728
SELECT COUNT( 99 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2728
SELECT COUNT ( 99 ) AS col2 FROM tab2
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= ( - - 31 ) / - + col2 / 53
----

query II rowsort
SELECT ALL + col0, + 14 + col0 * - 0 * + 39 FROM tab2
----
46
14
64
14
75
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT DISTINCT MAX( - + 82 ) AS col2 FROM tab2 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-2731
SELECT DISTINCT MAX ( - + 82 ) AS col2 FROM tab2 AS cor0
----
-82

query II rowsort
SELECT ALL - 66, col0 * col2 AS col1 FROM tab2 AS cor0
----
-66
1058
-66
2560
-66
4350

query I rowsort
SELECT col1 + + + 64 + + col1 AS col0 FROM tab2 AS cor0
----
166
198
218

onlyif mysql # aggregate syntax: 
query II rowsort label-2734
SELECT DISTINCT - COUNT( * ) col2, 96 FROM tab2 cor0
----
-3
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2734
SELECT DISTINCT - COUNT ( * ) col2, 96 FROM tab2 cor0
----
-3
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 16 col1 FROM tab1 AS cor0
----
-16
-16
-16

query II rowsort
SELECT 42, col0 AS col2 FROM tab1 AS cor0
----
42
51
42
85
42
91

query I rowsort
SELECT DISTINCT - col1 - + 57 * + col1 FROM tab1 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2738
SELECT ALL - 86 + col0 DIV col1 * col0 * 84 * col0 AS col2 FROM tab1 AS cor0
----
10317214
655366
695518

skipif mysql # not compatible
query I rowsort label-2738
SELECT ALL - 86 + col0 / col1 * col0 * 84 * col0 AS col2 FROM tab1 AS cor0
----
10317214
655366
695518

onlyif mysql # aggregate syntax: 
query I rowsort label-2739
SELECT COUNT( * ) * - MAX( - col0 ) * - - 86 - 74 AS col0 FROM tab0 AS cor0
----
3796

skipif mysql # not compatible
query I rowsort label-2739
SELECT COUNT ( * ) * - MAX ( - col0 ) * - - 86 - 74 AS col0 FROM tab0 AS cor0
----
3796

query I rowsort
SELECT DISTINCT + - 79 - - col2 + - 91 FROM tab0 cor0
----
-123
-160
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT DISTINCT ( 25 ) - - - 65 + + 16 + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-2741
SELECT DISTINCT ( 25 ) - - - 65 + + 16 + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2742
SELECT - SUM( - col1 ) * - 24 AS col2 FROM tab1
----
-1584

skipif mysql # not compatible
query I rowsort label-2742
SELECT - SUM ( - col1 ) * - 24 AS col2 FROM tab1
----
-1584

query I rowsort
SELECT DISTINCT - + 42 * 37 FROM tab2 cor0
----
-1554

query III rowsort
SELECT * FROM tab2 WHERE + ( - col0 ) NOT IN ( 53 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 82 - 62 AS col1 FROM tab2
----
-144
-144
-144

query I rowsort
SELECT DISTINCT - col2 + - col2 * 83 AS col2 FROM tab2
----
-1932
-3360
-4872

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT + SUM( - 54 ) FROM tab0
----
-162

skipif mysql # not compatible
query I rowsort label-2747
SELECT + SUM ( - 54 ) FROM tab0
----
-162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 74 ) col2 FROM tab2
----
74
74
74

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 34 - + col2 BETWEEN + col1 AND col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NOT - 90 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2751
SELECT ALL - COUNT( ALL 10 ) * 42 FROM tab0 WHERE NOT 73 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2751
SELECT ALL - COUNT ( ALL 10 ) * 42 FROM tab0 WHERE NOT 73 < NULL
----
0

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT ( - 45 ) - + col1 FROM tab2
----
-112
-122
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2754
SELECT + CAST( + COUNT( * ) AS SIGNED ) FROM tab1 WHERE NULL >= - col2 / col2
----
0

skipif mysql # not compatible
query I rowsort label-2754
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 WHERE NULL >= - col2 / col2
----
0

query I rowsort
SELECT DISTINCT - col1 + col1 * + col0 FROM tab1
----
420
4230
700

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT - COUNT( * ) FROM tab0 WHERE NOT - 79 BETWEEN + col0 AND NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2756
SELECT - COUNT ( * ) FROM tab0 WHERE NOT - 79 BETWEEN + col0 AND NULL
----
-3

query I rowsort
SELECT 45 * col0 AS col2 FROM tab0
----
3915
4365
675

query I rowsort
SELECT DISTINCT col0 - ( - col1 + - col1 * col2 ) AS col2 FROM tab0
----
197
318
3903

query I rowsort
SELECT + 72 * col0 AS col1 FROM tab0 WHERE NULL <= + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col0 ) <= + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 FROM tab2 WHERE - col0 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 WHERE NOT - col0 > col1
----
1
21
81

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 WHERE NOT col2 BETWEEN - 95 / col2 + + col2 AND - col0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT ALL + COUNT( * ) * + 15 AS col1 FROM tab1 cor0
----
45

skipif mysql # not compatible
query I rowsort label-2764
SELECT ALL + COUNT ( * ) * + 15 AS col1 FROM tab1 cor0
----
45

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col0 / - ( + col2 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > col1 * + col2 - - 65
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2767
SELECT 33 + + 88 * COUNT( * ) AS col1 FROM tab2
----
297

skipif mysql # not compatible
query I rowsort label-2767
SELECT 33 + + 88 * COUNT ( * ) AS col1 FROM tab2
----
297

query III rowsort
SELECT * FROM tab1 WHERE - 85 IS NULL
----

query I rowsort
SELECT ALL - - col0 * col0 - - col2 AS col1 FROM tab1 AS cor0
----
2697
7284
8349

onlyif mysql # DIV for integer division: 
query I rowsort label-2770
SELECT DISTINCT col1 DIV + col0 - - col1 AS col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2770
SELECT DISTINCT col1 / + col0 - - col1 AS col2 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > - 70 + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2772
SELECT DISTINCT - col0 * + CAST( NULL AS SIGNED ) - ( + col1 ) col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2772
SELECT DISTINCT - col0 * + CAST ( NULL AS INTEGER ) - ( + col1 ) col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 84 - 53 * - col1 FROM tab2 AS cor0
----
2619
3467
3997

onlyif mysql # aggregate syntax: 
query I rowsort label-2774
SELECT ALL + + SUM( col2 ) - - 11 AS col1 FROM tab2 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-2774
SELECT ALL + + SUM ( col2 ) - - 11 AS col1 FROM tab2 AS cor0
----
132

query I rowsort
SELECT - - ( col2 ) - - col1 FROM tab0 cor0
----
100
128
31

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2776
SELECT COUNT( * ) * + ( - 91 ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col0 AND 31 * CAST( NULL AS DECIMAL ) - + col0
----
0

skipif mysql # not compatible
query I rowsort label-2776
SELECT COUNT ( * ) * + ( - 91 ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col0 AND 31 * CAST ( NULL AS REAL ) - + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT 71 * + - MIN( DISTINCT + 97 ) FROM tab1
----
-6887

skipif mysql # not compatible
query I rowsort label-2777
SELECT 71 * + - MIN ( DISTINCT + 97 ) FROM tab1
----
-6887

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2778
SELECT CAST( + 35 AS SIGNED ) * - 37 FROM tab2
----
-1295
-1295
-1295

skipif mysql # not compatible
query I rowsort label-2778
SELECT CAST ( + 35 AS INTEGER ) * - 37 FROM tab2
----
-1295
-1295
-1295

query I rowsort
SELECT 79 * + 73 AS col1 FROM tab0
----
5767
5767
5767

query I rowsort
SELECT - 88 * - col0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 * + 82 * + 72 AS col2 FROM tab2
----
301104
395568
454608

query III rowsort
SELECT ALL * FROM tab2 WHERE + 26 / col1 + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( 91 ) * + col2 AS col2 FROM tab0
----
4277
9009
910

query I rowsort
SELECT ( 11 ) FROM tab1
----
11
11
11

query I rowsort
SELECT 20 * + + col0 * col0 AS col1 FROM tab0
----
151380
188180
4500

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT + COUNT( * ) AS col1 FROM tab1 cor0 WHERE NOT NULL > + 6 * + col1
----
0

skipif mysql # not compatible
query I rowsort label-2786
SELECT + COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NOT NULL > + 6 * + col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT ALL COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2787
SELECT ALL COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT ALL + 76 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT - - col2 * + col1 * + col0 AS col0 FROM tab0 cor0
----
18270
57105
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2790
SELECT DISTINCT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL > ( + CAST( NULL AS SIGNED ) * + col2 )
----

skipif mysql # not compatible
query I rowsort label-2790
SELECT DISTINCT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL > ( + CAST ( NULL AS INTEGER ) * + col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = 78
----

query I rowsort
SELECT + 75 - 5 FROM tab0 AS cor0 WHERE NOT ( 23 ) BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL + col2 * - 24 * - + ( col1 ) AS col2 FROM tab2 AS cor0
----
28152
73920
93264

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT MIN( - col1 ) AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2794
SELECT MIN ( - col1 ) AS col1 FROM tab0 AS cor0
----
-81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 * 95 + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2796
SELECT - + MAX( + col1 ) DIV - MAX( + col2 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2796
SELECT - + MAX ( + col1 ) / - MAX ( + col2 ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT - + MIN( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2797
SELECT - + MIN ( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT ALL + col2 * + 94 + col2 + - 10 * col2 AS col0 FROM tab0 cor0
----
3995
8415
850

onlyif mysql # DIV for integer division: 
query I rowsort label-2799
SELECT DISTINCT col2 DIV col1 FROM tab2 WHERE col1 BETWEEN + - col1 AND + 97 * + 4
----
0

skipif mysql # not compatible
query I rowsort label-2799
SELECT DISTINCT col2 / col1 FROM tab2 WHERE col1 BETWEEN + - col1 AND + 97 * + 4
----
0

query I rowsort
SELECT DISTINCT col1 * ( - col2 ) AS col2 FROM tab0
----
-210
-3807
-99

query III rowsort
SELECT * FROM tab2 WHERE + - col2 - - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT 11 + - COUNT( * ) col2 FROM tab0
----
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2802
SELECT 11 + - COUNT ( * ) col2 FROM tab0
----
8

query I rowsort
SELECT col0 * 65 + col2 + - 56 - 33 * - 86 FROM tab1
----
6193
8366
8765

query I rowsort
SELECT DISTINCT + col2 + + col1 * + col2 AS col1 FROM tab1
----
1440
3264
354

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT ALL - COUNT( * ) col0 FROM tab0 WHERE NOT + - col0 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2805
SELECT ALL - COUNT ( * ) col0 FROM tab0 WHERE NOT + - col0 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2806
SELECT DISTINCT col2 + col0 col1, - CAST( NULL AS SIGNED ) FROM tab0
----
196
NULL
62
NULL
97
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2806
SELECT DISTINCT col2 + col0 col1, - CAST ( NULL AS INTEGER ) FROM tab0
----
196
NULL
62
NULL
97
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 14 * + + 74 IS NULL
----

query I rowsort
SELECT ALL col2 + + - col1 FROM tab2
----
-28
-37
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2809
SELECT - CAST( NULL AS SIGNED ) * + 0 AS col1 FROM tab0 AS cor0 WHERE + 89 NOT BETWEEN - 36 AND + col2 * - col1 + ( col0 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2809
SELECT - CAST ( NULL AS INTEGER ) * + 0 AS col1 FROM tab0 AS cor0 WHERE + 89 NOT BETWEEN - 36 AND + col2 * - col1 + ( col0 )
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT - COUNT( * ) + - 98 AS col2 FROM tab2 AS cor0
----
-101

skipif mysql # not compatible
query I rowsort label-2810
SELECT - COUNT ( * ) + - 98 AS col2 FROM tab2 AS cor0
----
-101

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2811
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( ( + 0 + CAST( col0 AS SIGNED ) ) NOT IN ( col0 * col1 ) )
----

skipif mysql # not compatible
query III rowsort label-2811
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( ( + 0 + CAST ( col0 AS INTEGER ) ) NOT IN ( col0 * col1 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2812
SELECT ALL + CAST( NULL AS SIGNED ) * - SUM( CAST( NULL AS SIGNED ) ) + + + MAX( ALL CAST( NULL AS SIGNED ) ) * + 97 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2812
SELECT ALL + CAST ( NULL AS INTEGER ) * - SUM ( CAST ( NULL AS INTEGER ) ) + + + MAX ( ALL CAST ( NULL AS INTEGER ) ) * + 97 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 18 - + 85 AS col1 FROM tab2
----
-67
-67
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 24 - - + 40 col0 FROM tab0 AS cor0
----
64

query I rowsort
SELECT - 91 + + col0 * - + 19 FROM tab2 AS cor0
----
-1307
-1516
-965

onlyif mysql # DIV for integer division: 
query I rowsort label-2816
SELECT ALL - col1 DIV + 8 - + col1 AS col0 FROM tab2 AS cor0
----
-57
-75
-86

skipif mysql # not compatible
query I rowsort label-2816
SELECT ALL - col1 / + 8 - + col1 AS col0 FROM tab2 AS cor0
----
-57
-75
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - 93 * - - col0 / 22 col2 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + col1
----

query II rowsort
SELECT ALL - 95, - col0 * - 0 + 42 * - col0 * - col2 AS col1 FROM tab1 AS cor0
----
-95
205632
-95
210630
-95
259896

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( - col2 ) = ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col2 col0 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT col0 * 34 FROM tab0 AS cor0 WHERE NOT + col0 + - + 13 * 10 + - - 31 IS NULL
----
2958
3298
510

query II rowsort
SELECT - - col0, col2 FROM tab1 cor0
----
51
96
85
59
91
68

query II rowsort
SELECT col1 AS col0, + 10 + col0 FROM tab2 AS cor0
----
51
56
67
85
77
74

query II rowsort
SELECT + col0, ( + col1 ) + + col0 FROM tab1 AS cor0
----
51
65
85
90
91
138

onlyif mysql # aggregate syntax: 
query I rowsort label-2825
SELECT DISTINCT + - ( + + MAX( ALL col2 ) ) FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2825
SELECT DISTINCT + - ( + + MAX ( ALL col2 ) ) FROM tab0 cor0
----
-99

query I rowsort
SELECT - 95 + + ( - AVG ( ALL + col2 ) ) AS col1 FROM tab2 WHERE NOT - - col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2827
SELECT ALL MAX( + + 10 ) AS col0, 51 FROM tab0
----
10
51

skipif mysql # not compatible
query II rowsort label-2827
SELECT ALL MAX ( + + 10 ) AS col0, 51 FROM tab0
----
10
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2828
SELECT DISTINCT - MIN( - 85 ) AS col2 FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-2828
SELECT DISTINCT - MIN ( - 85 ) AS col2 FROM tab0
----
85

query I rowsort
SELECT 32 * + 28 FROM tab0, tab0 AS cor0
----
9 values hashing to e191185eaa721a70575d6e1b1bcd8092

query I rowsort
SELECT 97 * - col0 AS col0 FROM tab1
----
-4947
-8245
-8827

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, + ( col1 ) + col0 col2 FROM tab2 AS cor0
----
-51
97
-67
142
-77
141

query I rowsort
SELECT DISTINCT 49 FROM tab2 cor0
----
49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( 74, + 18, - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT DISTINCT MAX( DISTINCT col0 ) AS col2 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-2834
SELECT DISTINCT MAX ( DISTINCT col0 ) AS col2 FROM tab2
----
75

onlyif mysql # DIV for integer division: 
query II rowsort label-2835
SELECT - - 98 + - 86, 99 DIV - col1 AS col0 FROM tab0 AS cor0
----
12
-1
12
-4
12
-99

skipif mysql # not compatible
query II rowsort label-2835
SELECT - - 98 + - 86, 99 / - col1 AS col0 FROM tab0 AS cor0
----
12
-1
12
-4
12
-99

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE 13 + + col2 NOT BETWEEN + + ( + + col0 ) AND ( NULL )
----
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> - col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2838
SELECT ALL - ( - + 21 ) DIV + col1 AS col0, col2 * - + 66 AS col0 FROM tab0 AS cor0
----
0
-3102
1
-660
21
-6534

skipif mysql # not compatible
query II rowsort label-2838
SELECT ALL - ( - + 21 ) / + col1 AS col0, col2 * - + 66 AS col0 FROM tab0 AS cor0
----
0
-3102
1
-660
21
-6534

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT DISTINCT - MIN( DISTINCT col2 ) AS col2 FROM tab1 WHERE NULL < col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2839
SELECT DISTINCT - MIN ( DISTINCT col2 ) AS col2 FROM tab1 WHERE NULL < col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2840
SELECT DISTINCT SUM( ALL + col1 ) col0 FROM tab1
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2840
SELECT DISTINCT SUM ( ALL + col1 ) col0 FROM tab1
----
66

query I rowsort
SELECT DISTINCT + col0 + - + 65 FROM tab0
----
-50
22
32

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 WHERE NULL > + 28
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 10 + - + col0 col2 FROM tab2
----
-36
-54
-65

onlyif mysql # DIV for integer division: 
query II rowsort label-2844
SELECT 48, col0 DIV - 6 AS col2 FROM tab0
----
48
-14
48
-16
48
-2

skipif mysql # not compatible
query II rowsort label-2844
SELECT 48, col0 / - 6 AS col2 FROM tab0
----
48
-14
48
-16
48
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2845
SELECT DISTINCT - col0 - + 56 + 7 + - col0 * + ( CAST( + col2 AS SIGNED ) ) AS col1 FROM tab1
----
-4996
-5149
-6328

skipif mysql # not compatible
query I rowsort label-2845
SELECT DISTINCT - col0 - + 56 + 7 + - col0 * + ( CAST ( + col2 AS INTEGER ) ) AS col1 FROM tab1
----
-4996
-5149
-6328

query I rowsort
SELECT - col2 FROM tab2 WHERE - col2 > + col0
----

query I rowsort
SELECT DISTINCT + col2 * - - col0 AS col2 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-2848
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2848
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT + col0 * + 82 - + + 76 * - col0 * - 95 AS col1 FROM tab1 AS cor0
----
-364038
-606730
-649558

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 88 > NULL
----

query I rowsort
SELECT DISTINCT + col0 + 67 + + col2 AS col0 FROM tab0
----
129
164
263

onlyif mysql # DIV for integer division: 
query I rowsort label-2852
SELECT ALL + - ( - 52 ) DIV col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2852
SELECT ALL + - ( - 52 ) / col2 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE ( + col1 ) BETWEEN NULL AND col1 * ( - - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2853
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE ( + col1 ) BETWEEN NULL AND col1 * ( - - col2 )
----
0

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 AS cor0 WHERE col0 NOT IN ( col1 )
----
-23
-40
-58

query II rowsort
SELECT + 34 AS col1, - 90 AS col2 FROM tab0
----
34
-90
34
-90
34
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2856
SELECT + 79 FROM tab1 WHERE NOT + - col2 + + - col1 * col1 <= + + CAST( NULL AS SIGNED ) * + col1 * - col0 / col0
----

skipif mysql # not compatible
query I rowsort label-2856
SELECT + 79 FROM tab1 WHERE NOT + - col2 + + - col1 * col1 <= + + CAST ( NULL AS INTEGER ) * + col1 * - col0 / col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 69 IN ( + col0, ( 65 ) / - - 10 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( 11 ) * - 98 FROM tab0
----
-1078
-1078
-1078

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( col1, - 54 * col1 * - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2860
SELECT DISTINCT + col2 DIV + 67 * - col1 * col1 col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2860
SELECT DISTINCT + col2 / + 67 * - col1 * col1 col2 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 88 col0 FROM tab0 AS cor0
----
-88
-88
-88

query II rowsort
SELECT - + col2, - ( + 83 ) AS col0 FROM tab0 cor0
----
-10
-83
-47
-83
-99
-83

query I rowsort
SELECT DISTINCT ( 37 ) * - ( 47 ) + - col2 + - col2 * - col1 FROM tab0
----
-1539
-1739
2021

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 < - 41 + + col1 + + + 30
----
87
21
10
97
1
99

query III rowsort
SELECT * FROM tab1 WHERE NULL > 24 * col2
----

query I rowsort
SELECT ALL 9 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2867
SELECT ALL CAST( + 26 AS SIGNED ) * + col1 FROM tab0 AS cor0
----
2106
26
546

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL CAST ( + 26 AS INTEGER ) * + col1 FROM tab0 AS cor0
----
2106
26
546

query II rowsort
SELECT 32, - col1 AS col2 FROM tab2 AS cor0
----
32
-51
32
-67
32
-77

query I rowsort
SELECT col0 * - col2 + - - 48 AS col0 FROM tab1 AS cor0
----
-4848
-4967
-6140

query I rowsort
SELECT - col1 * - + col0 + + ( - 46 ) FROM tab2 AS cor0
----
2300
4882
4979

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2871
SELECT + CAST( NULL AS SIGNED ) / + col1 + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2871
SELECT + CAST ( NULL AS INTEGER ) / + col1 + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 69 + - 65 FROM tab2 AS cor0
----
-134
-134
-134

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 NOT IN ( - 58 / - - 3, ( + - ( - col0 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2874
SELECT DISTINCT + 0 + MIN( ALL - col2 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-2874
SELECT DISTINCT + 0 + MIN ( ALL - col2 ) FROM tab1
----
-96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col2 = - + col2 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT DISTINCT + COUNT( * ) + + + COUNT( * ) AS col0 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-2876
SELECT DISTINCT + COUNT ( * ) + + + COUNT ( * ) AS col0 FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT ALL 73 + + COUNT( ALL + col2 ) AS col0 FROM tab2
----
76

skipif mysql # not compatible
query I rowsort label-2877
SELECT ALL 73 + + COUNT ( ALL + col2 ) AS col0 FROM tab2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2878
SELECT DISTINCT ( + - 62 ) / - MAX( ALL + col2 ) AS col0 FROM tab0 AS cor0 WHERE - 99 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2878
SELECT DISTINCT ( + - 62 ) / - MAX ( ALL + col2 ) AS col0 FROM tab0 AS cor0 WHERE - 99 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT ALL - MIN( + - col0 ) FROM tab2 AS cor0 WHERE ( col1 ) IS NOT NULL
----
75

skipif mysql # not compatible
query I rowsort label-2879
SELECT ALL - MIN ( + - col0 ) FROM tab2 AS cor0 WHERE ( col1 ) IS NOT NULL
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT DISTINCT + + COUNT( * ) * 42 AS col0 FROM tab0 cor0
----
126

skipif mysql # not compatible
query I rowsort label-2880
SELECT DISTINCT + + COUNT ( * ) * 42 AS col0 FROM tab0 cor0
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2881
SELECT DISTINCT ( - CAST( - ( + - ( + col0 ) ) AS SIGNED ) ) FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2881
SELECT DISTINCT ( - CAST ( - ( + - ( + col0 ) ) AS INTEGER ) ) FROM tab1 AS cor0
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col2, col1 + + col1 AS col1 FROM tab0 AS cor0
----
1
2
21
42
81
162

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT ALL MIN( + 93 ) FROM tab0 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-2883
SELECT ALL MIN ( + 93 ) FROM tab0 AS cor0
----
93

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = + 14 / - + 99
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT DISTINCT + - COUNT( * ) - - 94 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
91

skipif mysql # not compatible
query I rowsort label-2885
SELECT DISTINCT + - COUNT ( * ) - - 94 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
91

query I rowsort
SELECT ALL + col2 * - 9 FROM tab2 AS cor0
----
-207
-360
-522

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT + MIN( DISTINCT - 26 ) AS col0 FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-2888
SELECT + MIN ( DISTINCT - 26 ) AS col0 FROM tab2 AS cor0
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2889
SELECT * FROM tab1 WHERE NOT + 40 + - + col0 + col0 = ( + - col0 + ( - - CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-2889
SELECT * FROM tab1 WHERE NOT + 40 + - + col0 + col0 = ( + - col0 + ( - - CAST ( NULL AS INTEGER ) ) )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = - - 41
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2891
SELECT ALL CAST( NULL AS SIGNED ) * col2 AS col2, 93 AS col2 FROM tab1
----
NULL
93
NULL
93
NULL
93

skipif mysql # not compatible
query II rowsort label-2891
SELECT ALL CAST ( NULL AS INTEGER ) * col2 AS col2, 93 AS col2 FROM tab1
----
NULL
93
NULL
93
NULL
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT SUM( ALL - + 85 ) AS col2 FROM tab2
----
-255

skipif mysql # not compatible
query I rowsort label-2892
SELECT SUM ( ALL - + 85 ) AS col2 FROM tab2
----
-255

query III rowsort
SELECT * FROM tab2 WHERE NOT - 83 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2894
SELECT - 10 * - + MIN( - col0 ) AS col1 FROM tab0
----
-970

skipif mysql # not compatible
query I rowsort label-2894
SELECT - 10 * - + MIN ( - col0 ) AS col1 FROM tab0
----
-970

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2895
SELECT + CAST( col0 AS SIGNED ) * 30 col2 FROM tab1
----
1530
2550
2730

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2895
SELECT + CAST ( col0 AS INTEGER ) * 30 col2 FROM tab1
----
1530
2550
2730

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT - 77 * COUNT( * ) AS col1 FROM tab0
----
-231

skipif mysql # not compatible
query I rowsort label-2896
SELECT - 77 * COUNT ( * ) AS col1 FROM tab0
----
-231

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2897
SELECT CAST( + col1 AS SIGNED ) DIV - 17 FROM tab2
----
-3
-3
-4

skipif mysql # not compatible
query I rowsort label-2897
SELECT CAST ( + col1 AS INTEGER ) / - 17 FROM tab2
----
-3
-3
-4

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( col0 - + col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2899
SELECT DISTINCT - MIN( DISTINCT + col2 ) FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2899
SELECT DISTINCT - MIN ( DISTINCT + col2 ) FROM tab0 cor0
----
-10

query I rowsort
SELECT DISTINCT - + col1 + - + 0 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2901
SELECT ( + COUNT( * ) ) * - AVG ( DISTINCT + col0 ) AS col2 FROM tab1 WHERE - ( - + col0 ) IN ( - + col1 * col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2901
SELECT ( + COUNT ( * ) ) * - AVG ( DISTINCT + col0 ) AS col2 FROM tab1 WHERE - ( - + col0 ) IN ( - + col1 * col2 )
----
NULL

query I rowsort
SELECT DISTINCT + - col2 * - col1 - - 11 * - - col2 AS col1 FROM tab1 AS cor0
----
2400
3944
944

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - col1 AND ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT ALL COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2904
SELECT ALL COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2905
SELECT ALL - MAX( DISTINCT - col2 ) FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-2905
SELECT ALL - MAX ( DISTINCT - col2 ) FROM tab1 cor0
----
59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2906
SELECT DISTINCT CAST( NULL AS DECIMAL ) + 2 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2906
SELECT DISTINCT CAST ( NULL AS REAL ) + 2 AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT - COUNT( * ) * + + COUNT( * ) col2 FROM tab2
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2907
SELECT - COUNT ( * ) * + + COUNT ( * ) col2 FROM tab2
----
-9

query I rowsort
SELECT DISTINCT col2 * + 26 FROM tab2
----
1040
1508
598

onlyif mysql # DIV for integer division: 
query I rowsort label-2909
SELECT DISTINCT 29 + - - col1 DIV - col1 AS col0 FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-2909
SELECT DISTINCT 29 + - - col1 / - col1 AS col0 FROM tab1
----
28

query I rowsort
SELECT - 30 - + - col2 FROM tab2
----
-7
10
28

onlyif mysql # DIV for integer division: 
query I rowsort label-2911
SELECT DISTINCT col0 DIV + - ( + + 8 ) + col2 FROM tab0
----
0
46
87

skipif mysql # not compatible
query I rowsort label-2911
SELECT DISTINCT col0 / + - ( + + 8 ) + col2 FROM tab0
----
0
46
87

query II rowsort
SELECT DISTINCT + 42 * - col0 - + col2 * col0, - col2 AS col2 FROM tab2
----
-2990
-23
-5248
-40
-7500
-58

query I rowsort
SELECT DISTINCT - col2 + + col2 * + - col0 + - col2 FROM tab2 cor0
----
-1104
-2640
-4466

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2914
SELECT DISTINCT - + CAST( - 11 AS SIGNED ) - - 61 AS col1 FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-2914
SELECT DISTINCT - + CAST ( - 11 AS INTEGER ) - - 61 AS col1 FROM tab1 AS cor0
----
72

query II rowsort
SELECT DISTINCT - col1 AS col0, col0 * - col1 AS col1 FROM tab2 AS cor0
----
-51
-2346
-67
-5025
-77
-4928

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT DISTINCT - ( + - MAX( - - col0 ) ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-2916
SELECT DISTINCT - ( + - MAX ( - - col0 ) ) FROM tab1
----
91

query I rowsort
SELECT DISTINCT - col2 * - col2 + col2 AS col1 FROM tab1 AS cor0 WHERE col1 / col1 * col0 NOT BETWEEN - ( - - 1 ) * 40 AND + - col1
----
3540
4692
9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 19 * - + 2 * + 95 col2 FROM tab0 AS cor0
----
3610

query I rowsort
SELECT + col0 * - + col0 * 64 AS col0 FROM tab1 AS cor0
----
-166464
-462400
-529984

query I rowsort
SELECT ALL - col0 * - ( 83 ) AS col1 FROM tab2 AS cor0
----
3818
5312
6225

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT + COUNT( ALL + - 43 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2921
SELECT + COUNT ( ALL + - 43 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - 6 * + - col0 FROM tab2
----
276
384
450

query I rowsort
SELECT ALL + ( - 42 ) * col2 + 54 AS col2 FROM tab2
----
-1626
-2382
-912

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( ( NULL ) >= NULL )
----

query II rowsort
SELECT DISTINCT - col2 AS col1, - 24 AS col1 FROM tab1
----
-59
-24
-68
-24
-96
-24

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 / - col0 NOT BETWEEN col2 + + + 12 AND + col1 + 78 + + - col1
----

query I rowsort
SELECT + col0 / - col0 AS col0 FROM tab0 AS cor0 WHERE NULL = col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2928
SELECT - COUNT( * ) + 1 AS col1 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-2928
SELECT - COUNT ( * ) + 1 AS col1 FROM tab2 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT DISTINCT - SUM( ALL + - 98 ) * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
882

skipif mysql # not compatible
query I rowsort label-2929
SELECT DISTINCT - SUM ( ALL + - 98 ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
882

query I rowsort
SELECT ALL - col1 * + - col0 AS col2 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2931
SELECT DISTINCT - col2 * + + CAST( + col1 AS SIGNED ) AS col1 FROM tab1
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-2931
SELECT DISTINCT - col2 * + + CAST ( + col1 AS INTEGER ) AS col1 FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT ALL MIN( col2 ) + - 47 AS col2 FROM tab0
----
-37

skipif mysql # not compatible
query I rowsort label-2932
SELECT ALL MIN ( col2 ) + - 47 AS col2 FROM tab0
----
-37

query II rowsort
SELECT DISTINCT + col0 + - col1 * + 69 * - 88 AS col0, col1 + + col2 FROM tab1
----
285475
115
30445
64
85059
110

onlyif mysql # aggregate syntax: 
query I rowsort label-2934
SELECT DISTINCT MAX( ALL col2 ) - - COUNT( ALL - + col1 ) FROM tab2 cor0
----
61

skipif mysql # not compatible
query I rowsort label-2934
SELECT DISTINCT MAX ( ALL col2 ) - - COUNT ( ALL - + col1 ) FROM tab2 cor0
----
61

query I rowsort
SELECT - + col2 - + - col1 AS col2 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT DISTINCT + 57 + + + col1 * + - col1 FROM tab2 AS cor0
----
-2544
-4432
-5872

query I rowsort
SELECT + - 18 + col1 FROM tab1 AS cor0
----
-13
-4
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 9 + - - col2 + col2 col1 FROM tab1 AS cor0
----
127
145
201

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT + + MAX( - - col1 ) + + + 14 FROM tab2 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2939
SELECT + + MAX ( - - col1 ) + + + 14 FROM tab2 AS cor0
----
91

query I rowsort
SELECT - 81 + col2 FROM tab2 AS cor0
----
-23
-41
-58

query I rowsort
SELECT 40 + + + 80 + 22 FROM tab2 AS cor0
----
142
142
142

query I rowsort
SELECT + ( + - col1 ) + - + col0 + + 70 * col0 FROM tab1 AS cor0
----
3505
5860
6232

query I rowsort
SELECT - col1 + + + ( + ( 90 ) ) AS col0 FROM tab2
----
13
23
39

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col0 * + col0 + + col0 + + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 66 - 60 AS col0 FROM tab1
----
-126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2947
SELECT ALL col2 + CAST( NULL AS SIGNED ) + - - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2947
SELECT ALL col2 + CAST ( NULL AS INTEGER ) + - - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2948
SELECT COUNT( * ) DIV + - 29 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2948
SELECT COUNT ( * ) / + - 29 AS col2 FROM tab0
----
0

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT - MAX( ALL + 31 ) * - 49 + + COUNT( * ) FROM tab0
----
1522

skipif mysql # not compatible
query I rowsort label-2950
SELECT - MAX ( ALL + 31 ) * - 49 + + COUNT ( * ) FROM tab0
----
1522

onlyif mysql # aggregate syntax: 
query I rowsort label-2951
SELECT + ( COUNT( - + col1 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2951
SELECT + ( COUNT ( - + col1 ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2952
SELECT MAX( ALL - + col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-2952
SELECT MAX ( ALL - + col1 ) FROM tab1
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col0, + 78 * + - col1 * col0 col1 FROM tab1
----
14
-55692
47
-333606
5
-33150

query I rowsort
SELECT ALL + ( + - col1 ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT + col0 * - 65 AS col1 FROM tab0 AS cor0
----
-5655
-6305
-975

query II rowsort
SELECT + + col1 AS col0, 11 + - col1 FROM tab1 AS cor0
----
14
-3
47
-36
5
6

onlyif mysql # aggregate syntax: 
query II rowsort label-2957
SELECT DISTINCT 5 AS col0, + COUNT( * ) AS col2 FROM tab0 AS cor0
----
5
3

skipif mysql # not compatible
query II rowsort label-2957
SELECT DISTINCT 5 AS col0, + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
5
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT MIN( DISTINCT + col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-2958
SELECT MIN ( DISTINCT + col2 ) FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 cor0 WHERE ( - 48 ) <> col1 * + + col0
----
3

skipif mysql # not compatible
query I rowsort label-2959
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 cor0 WHERE ( - 48 ) <> col1 * + + col0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 49 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2961
SELECT ALL CAST( NULL AS SIGNED ) * + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2961
SELECT ALL CAST ( NULL AS INTEGER ) * + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2962
SELECT DISTINCT CAST( NULL AS SIGNED ) - - CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0 WHERE col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2962
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0 WHERE col2 IS NOT NULL
----
NULL

query I rowsort
SELECT col1 * + 20 FROM tab2
----
1020
1340
1540

query I rowsort
SELECT ALL + 71 + col2 FROM tab2
----
111
129
94

query I rowsort
SELECT + + col0 FROM tab2 WHERE NOT + - col2 IS NOT NULL
----

query II rowsort
SELECT ALL - 45 + + 10, - col1 AS col2 FROM tab1
----
-35
-14
-35
-47
-35
-5

query I rowsort
SELECT DISTINCT col0 * - 2 AS col1 FROM tab2
----
-128
-150
-92

query II rowsort
SELECT 63 * 88 AS col1, - col1 * + col0 AS col2 FROM tab0
----
5544
-1215
5544
-1827
5544
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2969
SELECT ALL - ( - col1 ) AS col0, + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-2969
SELECT ALL - ( - col1 ) AS col0, + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2970
SELECT DISTINCT MAX( ALL 6 ) * + - MAX( - col1 ) - - 19 + + COUNT( * ) FROM tab0 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-2970
SELECT DISTINCT MAX ( ALL 6 ) * + - MAX ( - col1 ) - - 19 + + COUNT ( * ) FROM tab0 AS cor0
----
28

query I rowsort
SELECT DISTINCT - 61 * + - col2 AS col2 FROM tab0 AS cor0
----
2867
6039
610

query I rowsort
SELECT DISTINCT - - col0 FROM tab1 WHERE + col1 <= + + 71
----
51
85
91

query I rowsort
SELECT + + col1 AS col2 FROM tab2 WHERE - col2 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT - 4 + COUNT( * ) col1 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2974
SELECT - 4 + COUNT ( * ) col1 FROM tab0
----
-1

query I rowsort
SELECT DISTINCT - col2 + - col2 - + + 69 + + col0 AS col1 FROM tab2
----
-110
-69
-85

query I rowsort
SELECT ALL + col2 * col1 * + ( - + col2 ) + col0 - 80 + - col2 * + + 92 * col1 FROM tab2
----
-134929
-406576
-582905

query I rowsort
SELECT DISTINCT + 34 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
34

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + ( 53 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT ALL + + SUM( DISTINCT + col0 ) * + + COUNT( ALL + col0 ) - - COUNT( * ) col1 FROM tab0 AS cor0
----
600

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2979
SELECT ALL + + SUM ( DISTINCT + col0 ) * + + COUNT ( ALL + col0 ) - - COUNT ( * ) col1 FROM tab0 AS cor0
----
600

query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + ( - 13 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2981
SELECT ALL + - 92 DIV + col0 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-2981
SELECT ALL + - 92 / + col0 FROM tab2 AS cor0
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-2982
SELECT ALL + COUNT( * ) AS col1, + 24 FROM tab1 AS cor0
----
3
24

skipif mysql # not compatible
query II rowsort label-2982
SELECT ALL + COUNT ( * ) AS col1, + 24 FROM tab1 AS cor0
----
3
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2983
SELECT DISTINCT + - SUM( - + col1 ) DIV 86 col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2983
SELECT DISTINCT + - SUM ( - + col1 ) / 86 col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT col1 * 96 - - 75 FROM tab2
----
4971
6507
7467

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2985
SELECT + col2 - + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2985
SELECT + col2 - + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT DISTINCT COUNT( DISTINCT + col2 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2986
SELECT DISTINCT COUNT ( DISTINCT + col2 ) AS col2 FROM tab2
----
3

query II rowsort
SELECT DISTINCT 75 * - col0 AS col0, col0 + + - 4 AS col1 FROM tab2
----
-3450
42
-4800
60
-5625
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT + MAX( - - col2 ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2988
SELECT + MAX ( - - col2 ) AS col0 FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT + MAX( ALL + 26 ) AS col1 FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-2989
SELECT + MAX ( ALL + 26 ) AS col1 FROM tab2 AS cor0
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-2990
SELECT + 61, COUNT( DISTINCT + col2 ) AS col2 FROM tab0
----
61
3

skipif mysql # not compatible
query II rowsort label-2990
SELECT + 61, COUNT ( DISTINCT + col2 ) AS col2 FROM tab0
----
61
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 89 col2 FROM tab0
----
-89

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT 36 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
36
36
36

query I rowsort
SELECT DISTINCT + 40 + 90 FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT ( - + col1 * + 71 >= - col2 ) ) )
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT - ( + + COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2995
SELECT - ( + + COUNT ( * ) ) FROM tab0 AS cor0
----
-3

query II rowsort
SELECT DISTINCT 23, col1 AS col1 FROM tab2
----
23
51
23
67
23
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT + MAX( DISTINCT + + col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-2997
SELECT + MAX ( DISTINCT + + col2 ) FROM tab1
----
96

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) IS NOT NULL OR NOT - ( col0 ) + - col0 NOT BETWEEN 85 - 51 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 90 + + col2 col0 FROM tab1 WHERE + + ( - col1 ) + - 49 + + col1 > NULL
----

query I rowsort
SELECT DISTINCT col1 + + 93 * - col2 + - - col1 * + col0 * + - col0 AS col2 FROM tab0
----
-159858
-18615
-22515

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3001
SELECT * FROM tab1 WHERE + - CAST( NULL AS DECIMAL ) * + col1 <= NULL
----

skipif mysql # not compatible
query III rowsort label-3001
SELECT * FROM tab1 WHERE + - CAST ( NULL AS REAL ) * + col1 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3002
SELECT ALL col2 + + CAST( NULL AS SIGNED ) - - + col2 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3002
SELECT ALL col2 + + CAST ( NULL AS INTEGER ) - - + col2 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3003
SELECT + CAST( NULL AS SIGNED ) * col1 AS col2, - col1 FROM tab2 AS cor0
----
NULL
-51
NULL
-67
NULL
-77

skipif mysql # not compatible
query II rowsort label-3003
SELECT + CAST ( NULL AS INTEGER ) * col1 AS col2, - col1 FROM tab2 AS cor0
----
NULL
-51
NULL
-67
NULL
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT + COUNT( * ) * - 51 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-459

skipif mysql # not compatible
query I rowsort label-3004
SELECT + COUNT ( * ) * - 51 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-459

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT - + 67 + - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-76

skipif mysql # not compatible
query I rowsort label-3005
SELECT - + 67 + - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-76

query I rowsort
SELECT - - 37 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT col2 + + 34 * - col1 AS col2 FROM tab2 AS cor0
----
-1711
-2220
-2578

query I rowsort
SELECT DISTINCT + 43 * - - 37 + - col1 - - - 43 + 27 AS col0 FROM tab0 cor0
----
1494
1554
1574

query I rowsort
SELECT ALL - + col2 - + 34 AS col1 FROM tab0 AS cor0
----
-133
-44
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-3010
SELECT 40 * + + col1 * + + col1 + col1 DIV - ( col2 ) + + 34, col2 AS col2 FROM tab2 AS cor0
----
104072
23
179593
58
237193
40

skipif mysql # not compatible
query II rowsort label-3010
SELECT 40 * + + col1 * + + col1 + col1 / - ( col2 ) + + 34, col2 AS col2 FROM tab2 AS cor0
----
104072
23
179593
58
237193
40

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 41 col0 FROM tab1
----
41

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NOT + col2 <> 17
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 28 * - 71 col2 FROM tab0
----
1988

query III rowsort
SELECT * FROM tab1 WHERE + 37 IS NOT NULL AND ( NULL ) NOT BETWEEN ( col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT DISTINCT ( + COUNT( * ) ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3016
SELECT DISTINCT ( + COUNT ( * ) ) col1 FROM tab2
----
3

query II rowsort
SELECT col1 AS col1, col1 * - col0 FROM tab1
----
14
-714
47
-4277
5
-425

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col2 + - 89 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-3019
SELECT ALL - COUNT( * ), - MIN( col2 ) + - - 17 AS col2 FROM tab2 AS cor0
----
-3
-6

skipif mysql # not compatible
query II rowsort label-3019
SELECT ALL - COUNT ( * ), - MIN ( col2 ) + - - 17 AS col2 FROM tab2 AS cor0
----
-3
-6

query II rowsort
SELECT col2 AS col2, ( + col2 ) FROM tab2 AS cor0
----
23
23
40
40
58
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3021
SELECT ALL - CAST( - + MIN( - col1 ) AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT ( + 65 IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3021
SELECT ALL - CAST ( - + MIN ( - col1 ) AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT ( + 65 IS NOT NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT - MAX( DISTINCT + col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3022
SELECT - MAX ( DISTINCT + col0 ) FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3023
SELECT ALL - SUM( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-3023
SELECT ALL - SUM ( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT DISTINCT 39 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
39

query I rowsort
SELECT + - col1 + - + 21 FROM tab0 AS cor0
----
-102
-22
-42

query I rowsort
SELECT - 65 + - col1 AS col2 FROM tab0 AS cor0
----
-146
-66
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3027
SELECT ALL COUNT( * ) DIV - COUNT( * ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3027
SELECT ALL COUNT ( * ) / - COUNT ( * ) FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT DISTINCT + MAX( ALL - col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3028
SELECT DISTINCT + MAX ( ALL - col1 ) FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3029
SELECT + COUNT( * ) + ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3029
SELECT + COUNT ( * ) + ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3030
SELECT ALL ( - COUNT( * ) ), 21 col2 FROM tab1 AS cor0
----
-3
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3030
SELECT ALL ( - COUNT ( * ) ), 21 col2 FROM tab1 AS cor0
----
-3
21

query I rowsort
SELECT ALL + 26 AS col0 FROM tab1 cor0
----
26
26
26

query III rowsort
SELECT * FROM tab0 WHERE - col1 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 38 < - col0
----

query I rowsort
SELECT - col0 * - 60 AS col0 FROM tab2
----
2760
3840
4500

query I rowsort
SELECT DISTINCT - col0 * - 12 * 93 + 29 AS col1 FROM tab0
----
108281
16769
97121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + col1 col1 FROM tab1
----
0
0
0

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE ( NULL ) IN ( - 28, - 74 / + col0 * 93 * - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3038
SELECT DISTINCT - CAST( 87 AS SIGNED ) + - col2 + + col1 + + - col0 * 63 * - col0 - - - CAST( + 0 AS SIGNED ) / + - 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-3038
SELECT DISTINCT - CAST ( 87 AS INTEGER ) + - col2 + + col1 + + - col0 * 63 * - col0 - - - CAST ( + 0 AS INTEGER ) / + - CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3039
SELECT CAST( - + COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3039
SELECT CAST ( - + COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT DISTINCT + 88 * + COUNT( * ) - + 44 AS col2 FROM tab1 AS cor0
----
220

skipif mysql # not compatible
query I rowsort label-3040
SELECT DISTINCT + 88 * + COUNT ( * ) - + 44 AS col2 FROM tab1 AS cor0
----
220

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT ALL - 82 + COUNT( * ) FROM tab1 cor0
----
-79

skipif mysql # not compatible
query I rowsort label-3041
SELECT ALL - 82 + COUNT ( * ) FROM tab1 cor0
----
-79

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col2 <> + col2 + 66
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 66 + + col0 AS col1 FROM tab0
----
-51
21
31

query I rowsort
SELECT 84 * - col0 FROM tab2 WHERE + - col0 = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3045
SELECT ALL * FROM tab1 WHERE NOT - + CAST( NULL AS SIGNED ) NOT IN ( + col1 + + col2 * - col2 * col1 )
----

skipif mysql # not compatible
query III rowsort label-3045
SELECT ALL * FROM tab1 WHERE NOT - + CAST ( NULL AS INTEGER ) NOT IN ( + col1 + + col2 * - col2 * col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 8 IS NULL
----

query II rowsort
SELECT ALL col0 AS col2, - 81 AS col2 FROM tab1 AS cor0
----
51
-81
85
-81
91
-81

query II rowsort
SELECT ALL - 70, + col2 AS col2 FROM tab1 cor0
----
-70
59
-70
68
-70
96

query I rowsort
SELECT ALL - 67 * col0 FROM tab2
----
-3082
-4288
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-3050
SELECT COUNT( * ) * 54 AS col2 FROM tab0
----
162

skipif mysql # not compatible
query I rowsort label-3050
SELECT COUNT ( * ) * 54 AS col2 FROM tab0
----
162

query I rowsort
SELECT col1 * 37 FROM tab1
----
1739
185
518

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3052
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col0 col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3052
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col0 col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT COUNT( * ) * - + ( 71 ) FROM tab1
----
-213

skipif mysql # not compatible
query I rowsort label-3053
SELECT COUNT ( * ) * - + ( 71 ) FROM tab1
----
-213

query I rowsort
SELECT ALL col1 * + 34 AS col0 FROM tab0
----
2754
34
714

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT - SUM( ALL - col2 ) + - 92 FROM tab1 WHERE NOT - 10 IS NULL
----
131

skipif mysql # not compatible
query I rowsort label-3055
SELECT - SUM ( ALL - col2 ) + - 92 FROM tab1 WHERE NOT - 10 IS NULL
----
131

query I rowsort
SELECT DISTINCT 27 * + ( - 52 ) AS col2 FROM tab2
----
-1404

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3057
SELECT ALL + COUNT( * ) DIV + - 93 * 23 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL + COUNT ( * ) / + - 93 * 23 FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 - + col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 * ( - col2 ) * - col2 / - + col1 < + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-3060
SELECT ALL COUNT( + 93 ), 74 AS col1 FROM tab0 cor0
----
3
74

skipif mysql # not compatible
query II rowsort label-3060
SELECT ALL COUNT ( + 93 ), 74 AS col1 FROM tab0 cor0
----
3
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3061
SELECT ALL - MAX( ( - - col2 ) ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3061
SELECT ALL - MAX ( ( - - col2 ) ) FROM tab1 AS cor0
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-3062
SELECT + - col1 * - col0 DIV col0 - col0 FROM tab2 AS cor0
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-3062
SELECT + - col1 * - col0 / col0 - col0 FROM tab2 AS cor0
----
-8
13
5

query II rowsort
SELECT DISTINCT 40 * + col1 AS col0, + col2 + - 30 FROM tab0 AS cor0
----
3240
17
40
69
840
-20

query I rowsort
SELECT DISTINCT + col1 * + ( - col0 ) FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT + 66 * + 98 FROM tab2 WHERE NULL IS NULL
----
6468

onlyif mysql # DIV for integer division: 
query I rowsort label-3066
SELECT - col2 DIV + + 21 AS col1 FROM tab0 AS cor0
----
-2
-4
0

skipif mysql # not compatible
query I rowsort label-3066
SELECT - col2 / + + 21 AS col1 FROM tab0 AS cor0
----
-2
-4
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3067
SELECT ALL - COUNT( * ) + + - 44 AS col1 FROM tab1 AS cor0 WHERE NOT 60 * + col0 - + col2 * - - col1 * + col1 IS NULL
----
-47

skipif mysql # not compatible
query I rowsort label-3067
SELECT ALL - COUNT ( * ) + + - 44 AS col1 FROM tab1 AS cor0 WHERE NOT 60 * + col0 - + col2 * - - col1 * + col1 IS NULL
----
-47

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= - + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3069
SELECT - CAST( NULL AS DECIMAL ) / - col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3069
SELECT - CAST ( NULL AS REAL ) / - col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3070
SELECT - COUNT( * ), COUNT( * ) AS col1 FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-3070
SELECT - COUNT ( * ), COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-3
3

query I rowsort
SELECT - - 64 * 22 AS col0 FROM tab2 AS cor0
----
1408
1408
1408

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 64 BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT + + col1, + col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

query I rowsort
SELECT - col0 + - - col1 + col2 - - 78 * + 71 * + col1 + col0 * col1 FROM tab1
----
264587
28094
78305

query II rowsort
SELECT col0 + - col1 AS col1, + 1 FROM tab1
----
37
1
44
1
80
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT - COUNT( * ) + 38 FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-3076
SELECT - COUNT ( * ) + 38 FROM tab0
----
35

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3077
SELECT 93 FROM tab0 WHERE ( - + CAST( NULL AS DECIMAL ) + + 15 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3077
SELECT 93 FROM tab0 WHERE ( - + CAST ( NULL AS REAL ) + + 15 ) IS NOT NULL
----

query I rowsort
SELECT ALL 0 + + - 91 AS col1 FROM tab2
----
-91
-91
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT ALL - 27 + + COUNT( * ) + - + 34 FROM tab1
----
-58

skipif mysql # not compatible
query I rowsort label-3079
SELECT ALL - 27 + + COUNT ( * ) + - + 34 FROM tab1
----
-58

query III rowsort
SELECT * FROM tab1 WHERE 80 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 79 > + col1 - + col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 46 <= + col1 - + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3083
SELECT DISTINCT - COUNT( * ) - - + 7 AS col1, + COUNT( * ) AS col2 FROM tab0
----
4
3

skipif mysql # not compatible
query II rowsort label-3083
SELECT DISTINCT - COUNT ( * ) - - + 7 AS col1, + COUNT ( * ) AS col2 FROM tab0
----
4
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3084
SELECT - - 49 * - CAST( NULL AS SIGNED ) * - - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3084
SELECT - - 49 * - CAST ( NULL AS INTEGER ) * - - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3085
SELECT DISTINCT col0 * + CAST( NULL AS SIGNED ) - 79 AS col0, ( + col1 ) + + + ( + + col0 ) * - col1 col2 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3085
SELECT DISTINCT col0 * + CAST ( NULL AS INTEGER ) - 79 AS col0, ( + col1 ) + + + ( + + col0 ) * - col1 col2 FROM tab0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col1, + 56 FROM tab2
----
51
56
67
56
77
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT DISTINCT - SUM( col0 ) FROM tab1 cor0
----
-227

skipif mysql # not compatible
query I rowsort label-3087
SELECT DISTINCT - SUM ( col0 ) FROM tab1 cor0
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT + - COUNT( ALL - col2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3088
SELECT + - COUNT ( ALL - col2 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - col1 * - ( + 64 ) AS col0 FROM tab1 cor0
----
3008
320
896

query II rowsort
SELECT DISTINCT + ( ( + + col1 ) ), 72 AS col0 FROM tab2 AS cor0
----
51
72
67
72
77
72

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= - 15
----

query I rowsort
SELECT ALL - - 31 * + col1 AS col1 FROM tab1 AS cor0
----
1457
155
434

query I rowsort
SELECT ALL + col2 * - col1 * - col1 - col1 FROM tab0 AS cor0
----
308286
4389
98

query I rowsort
SELECT DISTINCT - 46 * col1 FROM tab0 cor0
----
-3726
-46
-966

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT ALL + COUNT( + col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3095
SELECT ALL + COUNT ( + col2 ) FROM tab0
----
3

query I rowsort
SELECT - 78 FROM tab1 WHERE NOT NULL BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT ALL SUM( DISTINCT - - col1 ) AS col2 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-3097
SELECT ALL SUM ( DISTINCT - - col1 ) AS col2 FROM tab2
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3098
SELECT DISTINCT * FROM tab1 WHERE NOT ( ( NOT - CAST( NULL AS SIGNED ) IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3098
SELECT DISTINCT * FROM tab1 WHERE NOT ( ( NOT - CAST ( NULL AS INTEGER ) IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT 91 * col1, + 67 AS col2 FROM tab1
----
1274
67
4277
67
455
67

query I rowsort
SELECT ALL - 94 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT - COUNT( DISTINCT - 41 ) col0 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3101
SELECT - COUNT ( DISTINCT - 41 ) col0 FROM tab0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 78 col2, col2 * + col1 AS col0 FROM tab0
----
78
210
78
3807
78
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3103
SELECT + COUNT( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3103
SELECT + COUNT ( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3104
SELECT DISTINCT - - COUNT( * ) * 11 - 57 FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-3104
SELECT DISTINCT - - COUNT ( * ) * 11 - 57 FROM tab1 AS cor0
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-3105
SELECT ALL + col0 + + - ( - + col1 ) DIV + - col1 + + - 71 AS col2 FROM tab1
----
-21
13
19

skipif mysql # not compatible
query I rowsort label-3105
SELECT ALL + col0 + + - ( - + col1 ) / + - col1 + + - 71 AS col2 FROM tab1
----
-21
13
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 65 col2 FROM tab1
----
124
133
161

query I rowsort
SELECT DISTINCT + col0 + - 44 + 3 FROM tab1
----
10
44
50

query I rowsort
SELECT + + ( - 35 ) + - col1 FROM tab0 cor0
----
-116
-36
-56

query I rowsort
SELECT + col2 + + col1 + - 59 AS col2 FROM tab2 AS cor0
----
15
58
66

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE ( NOT - + 99 + - + col0 + ( - 82 ) IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + col1 + + col1 + - + 43 AS col0 FROM tab2 AS cor0 WHERE NOT NULL < col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3112
SELECT DISTINCT + col0 DIV + - col1 FROM tab1 AS cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-3112
SELECT DISTINCT + col0 / + - col1 FROM tab1 AS cor0
----
-1
-17
-3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3113
SELECT - col0 DIV 56, 99 * + + CAST( NULL AS SIGNED ) DIV - col0 AS col1 FROM tab0 AS cor0
----
-1
NULL
-1
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-3113
SELECT - col0 / 56, 99 * + + CAST ( NULL AS INTEGER ) / - col0 AS col1 FROM tab0 AS cor0
----
-1
NULL
-1
NULL
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3114
SELECT ALL - - SUM( DISTINCT - col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3114
SELECT ALL - - SUM ( DISTINCT - col1 ) FROM tab1 AS cor0
----
-66

query II rowsort
SELECT + 74, col2 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
74
59
74
68
74
96

query I rowsort
SELECT + 51 FROM tab2 AS cor0 WHERE ( NOT NULL <> NULL )
----

query I rowsort
SELECT DISTINCT 16 + - col1 AS col0 FROM tab0
----
-5
-65
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3118
SELECT + COUNT( * ) DIV - + 96 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3118
SELECT + COUNT ( * ) / - + 96 FROM tab0
----
0

query I rowsort
SELECT col1 * col0 * - col2 AS col0 FROM tab2
----
-197120
-291450
-53958

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT ALL - + MIN( col0 ) FROM tab0 WHERE - 68 * + ( + col1 ) / col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3120
SELECT ALL - + MIN ( col0 ) FROM tab0 WHERE - 68 * + ( + col1 ) / col0 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - col2 * + col0 + col0 * - col0 * 83 * - col2 AS col0 FROM tab0
----
6281400
77304150
877020

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3122
SELECT - CAST( NULL AS SIGNED ) / col2 - - - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3122
SELECT - CAST ( NULL AS INTEGER ) / col2 - - - col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 34 + + + col1 FROM tab1 WHERE - - col2 <= - - ( - 22 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT - COUNT( * ) - COUNT( * ) * + - ( - ( - 6 ) ) AS col1 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-3124
SELECT - COUNT ( * ) - COUNT ( * ) * + - ( - ( - 6 ) ) AS col1 FROM tab2
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-3125
SELECT ALL - + 35 DIV col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3125
SELECT ALL - + 35 / col0 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT ALL + MAX( DISTINCT + col2 ) AS col1 FROM tab2 WHERE NOT NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3126
SELECT ALL + MAX ( DISTINCT + col2 ) AS col1 FROM tab2 WHERE NOT NULL <> NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + - 71
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3128
SELECT * FROM tab1 AS cor0 WHERE NOT ( - + col0 ) * CAST( NULL AS SIGNED ) = - col0 + col1 + col2
----

skipif mysql # not compatible
query III rowsort label-3128
SELECT * FROM tab1 AS cor0 WHERE NOT ( - + col0 ) * CAST ( NULL AS INTEGER ) = - col0 + col1 + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3129
SELECT DISTINCT - + CAST( - - col1 AS SIGNED ) FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-3129
SELECT DISTINCT - + CAST ( - - col1 AS INTEGER ) FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3130
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( + + col2 AS SIGNED ) + - + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3130
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( + + col2 AS INTEGER ) + - + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 * + + col1 AS col2 FROM tab1
----
196
2209
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3132
SELECT DISTINCT CAST( - 46 AS SIGNED ) col2 FROM tab1
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3132
SELECT DISTINCT CAST ( - 46 AS INTEGER ) col2 FROM tab1
----
-46

query II rowsort
SELECT + col1, col2 AS col0 FROM tab2
----
51
23
67
58
77
40

query I rowsort
SELECT + col1 * - - col1 * + + ( + col1 ) FROM tab0
----
1
531441
9261

query II rowsort
SELECT - col1 AS col1, col2 FROM tab2
----
-51
23
-67
58
-77
40

query I rowsort
SELECT ALL ( 84 ) * - ( - col1 ) FROM tab1
----
1176
3948
420

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT - 50 + + - 64 * - COUNT( ALL + - 95 ) FROM tab0 AS cor0
----
142

skipif mysql # not compatible
query I rowsort label-3138
SELECT - 50 + + - 64 * - COUNT ( ALL + - 95 ) FROM tab0 AS cor0
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT COUNT( * ) FROM tab0 WHERE col1 + 31 + col1 >= 19
----
3

skipif mysql # not compatible
query I rowsort label-3139
SELECT COUNT ( * ) FROM tab0 WHERE col1 + 31 + col1 >= 19
----
3

query I rowsort
SELECT - + 46 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT + COUNT( * ) + + COUNT( * ) FROM tab2 cor0 WHERE + col1 + + + col0 BETWEEN - col2 + + col1 AND - col2
----
0

skipif mysql # not compatible
query I rowsort label-3141
SELECT + COUNT ( * ) + + COUNT ( * ) FROM tab2 cor0 WHERE + col1 + + + col0 BETWEEN - col2 + + col1 AND - col2
----
0

query I rowsort
SELECT + + col0 + ( + 96 ) AS col1 FROM tab0 AS cor0
----
111
183
193

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - + 54 * col2 col1 FROM tab0 AS cor0
----
-2585
-5445
-550

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3144
SELECT - + 75 * CAST( NULL AS DECIMAL ) - - + COUNT( * ) + - 42 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3144
SELECT - + 75 * CAST ( NULL AS REAL ) - - + COUNT ( * ) + - 42 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT - ( + MIN( + - col2 ) ) FROM tab1 WHERE ( ( NOT col1 IS NULL ) )
----
96

skipif mysql # not compatible
query I rowsort label-3145
SELECT - ( + MIN ( + - col2 ) ) FROM tab1 WHERE ( ( NOT col1 IS NULL ) )
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3146
SELECT col2 + + CAST( NULL AS SIGNED ) AS col0, 41 AS col2 FROM tab2
----
NULL
41
NULL
41
NULL
41

skipif mysql # not compatible
query II rowsort label-3146
SELECT col2 + + CAST ( NULL AS INTEGER ) AS col0, 41 AS col2 FROM tab2
----
NULL
41
NULL
41
NULL
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT DISTINCT - COUNT( * ) + 77 FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-3147
SELECT DISTINCT - COUNT ( * ) + 77 FROM tab2
----
74

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT DISTINCT COUNT( * ) + - SUM( col1 ) AS col2 FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-3149
SELECT DISTINCT COUNT ( * ) + - SUM ( col1 ) AS col2 FROM tab1
----
-63

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 WHERE + 55 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - col2 * + col2 BETWEEN + ( - col2 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3152
SELECT - COUNT( ALL col0 ) FROM tab0 AS cor0 WHERE + ( ( - - CAST( + + col0 AS SIGNED ) ) ) + + ( + col0 ) BETWEEN 66 - - + col1 * + col1 + - ( ( col1 ) ) AND + col2
----
0

skipif mysql # not compatible
query I rowsort label-3152
SELECT - COUNT ( ALL col0 ) FROM tab0 AS cor0 WHERE + ( ( - - CAST ( + + col0 AS INTEGER ) ) ) + + ( + col0 ) BETWEEN 66 - - + col1 * + col1 + - ( ( col1 ) ) AND + col2
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col2, 1, + col2 - - + 52, + - col0, + col1 )
----

query I rowsort
SELECT ALL 79 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query II rowsort
SELECT - col1 AS col1, - col2 FROM tab2 cor0
----
-51
-23
-67
-58
-77
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3156
SELECT - - CAST( - - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3156
SELECT - - CAST ( - - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT ALL - SUM( DISTINCT + 48 ) AS col1 FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-3157
SELECT ALL - SUM ( DISTINCT + 48 ) AS col1 FROM tab2 AS cor0
----
-48

query II rowsort
SELECT DISTINCT + - col0, col1 + col1 AS col1 FROM tab0 AS cor0
----
-15
162
-87
42
-97
2

query I rowsort
SELECT - 80 * + - 47 * + 37 FROM tab1 AS cor0
----
139120
139120
139120

query II rowsort
SELECT col0, - ( - col0 ) FROM tab0 cor0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3161
SELECT + + COUNT( + col2 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3161
SELECT + + COUNT ( + col2 ) FROM tab2 cor0
----
3

query I rowsort
SELECT 81 AS col1 FROM tab2 AS cor0 WHERE NOT 90 + + - col1 * - 80 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 + + 30 FROM tab2
----
105
76
94

query I rowsort
SELECT + + col2 * + col1 + - col1 AS col0 FROM tab1 WHERE NOT - + col1 IS NOT NULL
----

query I rowsort
SELECT + col1 * + 91 * - + 31 AS col1 FROM tab2
----
-143871
-189007
-217217

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * + - col1 col2, col2 FROM tab0
----
-1
99
-441
10
-6561
47

query I rowsort
SELECT + - 66 AS col1 FROM tab2 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3168
SELECT DISTINCT - 96 / 36 * - CAST( NULL AS SIGNED ) + col2 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3168
SELECT DISTINCT - 96 / 36 * - CAST ( NULL AS INTEGER ) + col2 AS col1 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3169
SELECT - ( - col1 ) DIV - + col2 + 73 + + col0 FROM tab1
----
124
158
164

skipif mysql # not compatible
query I rowsort label-3169
SELECT - ( - col1 ) / - + col2 + 73 + + col0 FROM tab1
----
124
158
164

onlyif mysql # aggregate syntax: 
query I rowsort label-3170
SELECT - 88 + + MAX( + 70 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-3170
SELECT - 88 + + MAX ( + 70 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3171
SELECT DISTINCT - MAX( - - col0 ) + - COUNT( * ) FROM tab0 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-3171
SELECT DISTINCT - MAX ( - - col0 ) + - COUNT ( * ) FROM tab0 AS cor0
----
-100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3172
SELECT ALL + 41 - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3172
SELECT ALL + 41 - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 18 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col1, - col2 AS col1 FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

query II rowsort
SELECT - + col0 AS col2, + col1 AS col0 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3176
SELECT col2 - CAST( NULL AS SIGNED ) + 99 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3176
SELECT col2 - CAST ( NULL AS INTEGER ) + 99 AS col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT + 26 - col1, col1 * + + ( col0 ) AS col0 FROM tab2
----
-25
2346
-41
5025
-51
4928

query II rowsort
SELECT ALL 77 AS col1, ( - col1 ) FROM tab1
----
77
-14
77
-47
77
-5

query I rowsort
SELECT DISTINCT col0 + + 11 * + 87 FROM tab0
----
1044
1054
972

query I rowsort
SELECT ALL - 63 * - + col0 FROM tab0
----
5481
6111
945

query I rowsort
SELECT DISTINCT - ( - col1 ) * + 59 FROM tab0
----
1239
4779
59

query I rowsort
SELECT DISTINCT - 24 + + - col0 FROM tab1
----
-109
-115
-75

query I rowsort
SELECT - col0 - - + 35 FROM tab0
----
-52
-62
20

query I rowsort
SELECT DISTINCT - col0 + col1 + + col0 * col0 * 40 AS col2 FROM tab1
----
104003
288920
331196

query I rowsort
SELECT 36 * col2 + + - col0 * + col0 AS col2 FROM tab2
----
-1288
-2656
-3537

query I rowsort
SELECT 52 + - ( col2 ) FROM tab0
----
-47
42
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 65 col2 FROM tab0 AS cor0
----
-65
-65
-65

query II rowsort
SELECT + + col2, col1 AS col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3189
SELECT + COUNT( * ) col0, ( - COUNT( * ) ) AS col0 FROM ( tab0 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-3189
SELECT + COUNT ( * ) col0, ( - COUNT ( * ) ) AS col0 FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
9
-9

query III rowsort
SELECT + col1 * + col0 AS col2, 24 AS col0, - - col0 AS col1 FROM tab1
----
9 values hashing to 0f708877fe5efb8b895f076f4223f1d5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * 13 col0 FROM tab1 cor0
----
-182
-611
-65

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + col2 IS NOT NULL
----

query I rowsort
SELECT + + 37 FROM tab2 cor0
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT MAX( ALL - col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3194
SELECT MAX ( ALL - col1 ) FROM tab2 AS cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3195
SELECT CAST( + ( + - col1 ) AS SIGNED ) AS col0 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-3195
SELECT CAST ( + ( + - col1 ) AS INTEGER ) AS col0 FROM tab2
----
-51
-67
-77

query II rowsort
SELECT DISTINCT col2, - 91 AS col2 FROM tab2
----
23
-91
40
-91
58
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT ALL - 30 + COUNT( * ) AS col1 FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-3197
SELECT ALL - 30 + COUNT ( * ) AS col1 FROM tab2
----
-27

query I rowsort
SELECT 43 + - - 77 AS col1 FROM tab0
----
120
120
120

query I rowsort
SELECT DISTINCT 42 + - col1 * col1 FROM tab1
----
-154
-2167
17

query II rowsort
SELECT DISTINCT col2 AS col2, + col2 * - + col1 FROM tab0
----
10
-210
47
-3807
99
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3201
SELECT - 90 DIV + - MIN( + ( + + col0 ) ) AS col2 FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-3201
SELECT - 90 / + - MIN ( + ( + + col0 ) ) AS col2 FROM tab0 cor0
----
6

query I rowsort
SELECT - col1 * + - col1 FROM tab0 AS cor0
----
1
441
6561

query I rowsort
SELECT ALL - 81 * - ( + 68 ) FROM tab1
----
5508
5508
5508

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3204
SELECT - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT NULL = col2
----

skipif mysql # not compatible
query I rowsort label-3204
SELECT - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3205
SELECT ALL COUNT( * ) AS col2 FROM tab1 WHERE NOT ( + col0 ) NOT BETWEEN NULL AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3205
SELECT ALL COUNT ( * ) AS col2 FROM tab1 WHERE NOT ( + col0 ) NOT BETWEEN NULL AND ( NULL )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3206
SELECT 65 DIV + COUNT( * ) AS col2 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-3206
SELECT 65 / + COUNT ( * ) AS col2 FROM tab2
----
21

query I rowsort
SELECT col2 + - 62 FROM tab1
----
-3
34
6

onlyif mysql # DIV for integer division: 
query I rowsort label-3208
SELECT ( 54 ) DIV 57 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3208
SELECT ( 54 ) / 57 FROM tab1
----
0
0
0

query I rowsort
SELECT + 20 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 93 * 43 AS col0 FROM tab2
----
3999
3999
3999

onlyif mysql # DIV for integer division: 
query I rowsort label-3211
SELECT ALL 11 DIV col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3211
SELECT ALL 11 / col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3212
SELECT - 56 * + CAST( - col1 AS SIGNED ) col0 FROM tab0
----
1176
4536
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3212
SELECT - 56 * + CAST ( - col1 AS INTEGER ) col0 FROM tab0
----
1176
4536
56

query I rowsort
SELECT - 72 * + col1 AS col1 FROM tab1
----
-1008
-3384
-360

query I rowsort
SELECT + col2 * col0 - + col0 FROM tab2
----
1012
2496
4275

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 + + col2 * col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( 85 ) + col2 FROM tab1
----
144
153
181

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3217
SELECT - COUNT( * ) * CAST( NULL AS SIGNED ) - + ( + ( - MIN( ALL - col1 ) ) ) / 28 FROM tab0 WHERE 22 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3217
SELECT - COUNT ( * ) * CAST ( NULL AS INTEGER ) - + ( + ( - MIN ( ALL - col1 ) ) ) / 28 FROM tab0 WHERE 22 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab1 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col1 FROM tab2 WHERE NOT ( col2 ) IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT COUNT( * ) * + 21 AS col0 FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-3220
SELECT COUNT ( * ) * + 21 AS col0 FROM tab0
----
63

query I rowsort
SELECT col1 * 93 FROM tab2
----
4743
6231
7161

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT - ( + MIN( DISTINCT 8 ) ) FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-3222
SELECT - ( + MIN ( DISTINCT 8 ) ) FROM tab0
----
-8

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col2 * col2 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3224
SELECT * FROM tab1 WHERE NOT ( - col1 * + 65 - + col0 ) <> - 32 * - 4 - CAST( + 5 + - col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3224
SELECT * FROM tab1 WHERE NOT ( - col1 * + 65 - + col0 ) <> - 32 * - 4 - CAST ( + 5 + - col1 AS INTEGER )
----

query I rowsort
SELECT ALL + ( 13 ) AS col0 FROM tab1
----
13
13
13

query I rowsort
SELECT DISTINCT + 17 + + col0 AS col0 FROM tab0 WHERE NOT col0 NOT IN ( + 55 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3227
SELECT + col0 + CAST( - col0 AS SIGNED ) * - col1 FROM tab2
----
2392
4992
5100

skipif mysql # not compatible
query I rowsort label-3227
SELECT + col0 + CAST ( - col0 AS INTEGER ) * - col1 FROM tab2
----
2392
4992
5100

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3228
SELECT MAX( CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3228
SELECT MAX ( CAST ( NULL AS REAL ) ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3229
SELECT ALL - ( + COUNT( col2 ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3229
SELECT ALL - ( + COUNT ( col2 ) ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT ALL col0 * col1 AS col0 FROM tab1 WHERE NULL IS NULL
----
425
4277
714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3231
SELECT ALL ( 15 ) * + CAST( NULL AS SIGNED ) + col0 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3231
SELECT ALL ( 15 ) * + CAST ( NULL AS INTEGER ) + col0 col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + 4 ) AS col0 FROM tab2 AS cor0
----
4
4
4

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 77 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 * col2 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN - 6 AND ( + col2 - - col1 )
----

query I rowsort
SELECT - col1 + col0 AS col2 FROM tab0 WHERE NOT col1 + + 74 NOT BETWEEN col2 * col2 AND col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3236
SELECT COUNT( * ) DIV - 75 col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3236
SELECT COUNT ( * ) / - 75 col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT - COUNT( * ) * COUNT( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3237
SELECT - COUNT ( * ) * COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab0
----
-81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 + + col2 NOT BETWEEN - col2 * col2 AND ( col1 * + 88 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT COUNT( * ) + - COUNT( col2 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3239
SELECT COUNT ( * ) + - COUNT ( col2 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab2 cor0 WHERE NOT col0 * col1 + 87 * + 99 <> ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3241
SELECT 10 DIV - 63 + + col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3241
SELECT 10 / - 63 + + col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT col1 * 15 + - col1 FROM tab1 AS cor0
----
196
658
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT MIN( ALL col1 ) + 87 AS col1 FROM tab0 cor0
----
88

skipif mysql # not compatible
query I rowsort label-3243
SELECT MIN ( ALL col1 ) + 87 AS col1 FROM tab0 cor0
----
88

query I rowsort
SELECT DISTINCT + 42 * + 73 AS col0 FROM tab0 AS cor0
----
3066

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3245
SELECT DISTINCT 17 DIV + COUNT( * ) FROM tab2 cor0
----
5

skipif mysql # not compatible
query I rowsort label-3245
SELECT DISTINCT 17 / + COUNT ( * ) FROM tab2 cor0
----
5

query I rowsort
SELECT ALL + ( 2 ) FROM tab0 cor0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3247
SELECT + COUNT( * ) FROM tab2 WHERE 95 + - col1 < + col2
----
2

skipif mysql # not compatible
query I rowsort label-3247
SELECT + COUNT ( * ) FROM tab2 WHERE 95 + - col1 < + col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3248
SELECT DISTINCT 39 * + ( COUNT( * ) ) - 61 col2 FROM tab2 WHERE NOT NULL > - 44
----
-61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3248
SELECT DISTINCT 39 * + ( COUNT ( * ) ) - 61 col2 FROM tab2 WHERE NOT NULL > - 44
----
-61

query I rowsort
SELECT - ( 33 ) AS col2 FROM tab0
----
-33
-33
-33

query I rowsort
SELECT + 72 * - + 88 AS col0 FROM tab2
----
-6336
-6336
-6336

query I rowsort
SELECT DISTINCT - ( 92 ) * + col2 AS col1 FROM tab2 WHERE 68 * col1 + col0 / col0 NOT BETWEEN - 45 AND - 0 / col0
----
-2116
-3680
-5336

query I rowsort
SELECT DISTINCT col0 + 36 FROM tab1
----
121
127
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT - ( MAX( DISTINCT 84 ) ) AS col2 FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-3253
SELECT - ( MAX ( DISTINCT 84 ) ) AS col2 FROM tab1
----
-84

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3254
SELECT DISTINCT + CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3254
SELECT DISTINCT + CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3255
SELECT DISTINCT - - 0 DIV + - ( COUNT( * ) ) - COUNT( * ) + 65 * - COUNT( * ) col1 FROM tab0 AS cor0
----
-198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3255
SELECT DISTINCT - - 0 / + - ( COUNT ( * ) ) - COUNT ( * ) + 65 * - COUNT ( * ) col1 FROM tab0 AS cor0
----
-198

onlyif mysql # DIV for integer division: 
query I rowsort label-3256
SELECT DISTINCT - - col0 * col1 DIV - col2 + - 80 FROM tab1 cor0
----
-142
-87

skipif mysql # not compatible
query I rowsort label-3256
SELECT DISTINCT - - col0 * col1 / - col2 + - 80 FROM tab1 cor0
----
-142
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3257
SELECT ALL - ( - COUNT( + 20 ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3257
SELECT ALL - ( - COUNT ( + 20 ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3258
SELECT ALL + 87 - - - CAST( - - COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-3258
SELECT ALL + 87 - - - CAST ( - - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - - 84 * - - col1 * col2 col1 FROM tab1 AS cor0
----
112882
24775
268417

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 22 IN ( - col2 * ( col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3261
SELECT + col0 + - ( - col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( + 94 - - 75 ) AND ( CAST( + 71 AS SIGNED ) * col2 )
----

skipif mysql # not compatible
query I rowsort label-3261
SELECT + col0 + - ( - col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( + 94 - - 75 ) AND ( CAST ( + 71 AS INTEGER ) * col2 )
----

query I rowsort
SELECT ALL - 15 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-15
-15
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT ALL - + COUNT( DISTINCT ( + - col0 ) ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3263
SELECT ALL - + COUNT ( DISTINCT ( + - col0 ) ) FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3264
SELECT DISTINCT CAST( + 41 AS SIGNED ) AS col1 FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-3264
SELECT DISTINCT CAST ( + 41 AS INTEGER ) AS col1 FROM tab0
----
41

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > ( + col2 )
----

query I rowsort
SELECT - 44 * + 6 * 91 * - 28 FROM tab1
----
672672
672672
672672

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - - 9 col1 FROM tab0
----
-135
-783
-873

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3268
SELECT - CAST( 84 AS SIGNED ) AS col2, ( - + ( - 67 ) ) FROM tab1
----
-84
67
-84
67
-84
67

skipif mysql # not compatible
query II rowsort label-3268
SELECT - CAST ( 84 AS INTEGER ) AS col2, ( - + ( - 67 ) ) FROM tab1
----
-84
67
-84
67
-84
67

query I rowsort
SELECT DISTINCT - ( - + col2 ) * - col1 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT ALL - COUNT( 66 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3270
SELECT ALL - COUNT ( 66 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT - COUNT( * ) * + + 79 * - - MAX( + + col2 ) col2 FROM tab1
----
-22752

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3271
SELECT - COUNT ( * ) * + + 79 * - - MAX ( + + col2 ) col2 FROM tab1
----
-22752

query I rowsort
SELECT ALL - - col1 AS col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND 42
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <> ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3274
SELECT DISTINCT SUM( ALL + + 6 ) FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-3274
SELECT DISTINCT SUM ( ALL + + 6 ) FROM tab1 AS cor0
----
18

query I rowsort
SELECT ALL + ( + 9 ) AS col1 FROM tab0 AS cor0
----
9
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3276
SELECT ALL MIN( ALL - 80 ) FROM tab0 AS cor0 WHERE NOT 76 * ( - col1 ) IS NULL
----
-80

skipif mysql # not compatible
query I rowsort label-3276
SELECT ALL MIN ( ALL - 80 ) FROM tab0 AS cor0 WHERE NOT 76 * ( - col1 ) IS NULL
----
-80

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 13 * - - col2 ) >= + 85 * + col0 * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> - col1 * + - col2 + + 58
----

query II rowsort
SELECT ALL col0 * + ( col1 ), col0 FROM tab1 AS cor0
----
425
85
4277
91
714
51

query I rowsort
SELECT ALL 89 + - - col0 AS col1 FROM tab0 AS cor0
----
104
176
186

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT + MAX( ALL - col2 ) AS col0 FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3281
SELECT + MAX ( ALL - col2 ) AS col0 FROM tab1 cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT - 59 + + COUNT( * ) FROM tab2 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-3282
SELECT - 59 + + COUNT ( * ) FROM tab2 AS cor0
----
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col2 * + + col1 col2 FROM tab2 AS cor0
----
1196
3120
3944

query I rowsort
SELECT + col1 * + col1 + - col1 AS col1 FROM tab1 AS cor0
----
182
20
2162

query I rowsort
SELECT ALL + col0 * - 21 FROM tab2
----
-1344
-1575
-966

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE ( ( col1 + - 68 ) NOT BETWEEN - col1 - + col1 * + col0 AND ( - col0 ) )
----
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT DISTINCT - COUNT( * ) - MIN( DISTINCT col0 ) FROM tab1 WHERE NULL NOT IN ( + col1, col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3287
SELECT DISTINCT - COUNT ( * ) - MIN ( DISTINCT col0 ) FROM tab1 WHERE NULL NOT IN ( + col1, col2 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT col1 * - col2 + + + col0 AS col1 FROM tab1
----
-1293
-210
-3105

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE ( NOT ( col0 ) NOT IN ( - 13 / - 85 * col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3291
SELECT DISTINCT * FROM tab2 WHERE ( - CAST( col2 AS SIGNED ) * + col2 ) NOT IN ( 12 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3291
SELECT DISTINCT * FROM tab2 WHERE ( - CAST ( col2 AS INTEGER ) * + col2 ) NOT IN ( 12 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 45 - - + 91 AS col0, 50 - + col0 col1 FROM tab1 AS cor0
----
136
-1
136
-35
136
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3293
SELECT ALL CAST( col0 AS SIGNED ) * - col2 - col1 AS col2 FROM tab0 AS cor0
----
-786
-891
-9604

skipif mysql # not compatible
query I rowsort label-3293
SELECT ALL CAST ( col0 AS INTEGER ) * - col2 - col1 AS col2 FROM tab0 AS cor0
----
-786
-891
-9604

query I rowsort
SELECT 63 * - col0 AS col2 FROM tab2
----
-2898
-4032
-4725

query I rowsort
SELECT ALL col0 - 16 FROM tab2 AS cor0
----
30
48
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3296
SELECT ( - - CAST( ( + 48 ) AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
48
48
48

skipif mysql # not compatible
query I rowsort label-3296
SELECT ( - - CAST ( ( + 48 ) AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
48
48
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 68 * - 91 col2 FROM tab0 AS cor0
----
6188
6188
6188

query I rowsort
SELECT DISTINCT - - col0 * ( - + col2 ) * col2 AS col1 FROM tab0 AS cor0 WHERE - ( - col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - col2 * - + col2 IS NULL )
----

query II rowsort
SELECT DISTINCT 13, col0 AS col2 FROM tab2
----
13
46
13
64
13
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT - - 10 + - - 16 + - COUNT( * ) + - + SUM( 96 ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-265

skipif mysql # not compatible
query I rowsort label-3301
SELECT - - 10 + - - 16 + - COUNT ( * ) + - + SUM ( 96 ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-265

query I rowsort
SELECT 39 * - col0 FROM tab2
----
-1794
-2496
-2925

query I rowsort
SELECT ALL + 78 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND 33 - - 24
----

query I rowsort
SELECT ( 61 ) AS col1 FROM tab1
----
61
61
61

query I rowsort
SELECT DISTINCT + 3 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
3

query I rowsort
SELECT DISTINCT col2 * + 91 FROM tab2
----
2093
3640
5278

query I rowsort
SELECT 64 FROM tab2 AS cor0 WHERE 7 > NULL
----

query I rowsort
SELECT DISTINCT + + 9 + + 19 FROM tab2 AS cor0
----
28

query I rowsort
SELECT ALL + - 86 + - 6 * col2 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 IN ( col0, col2 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3310
SELECT + + col1 * ( + CAST( + col1 AS SIGNED ) ) DIV + col1 + + col0 FROM tab0 AS cor0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-3310
SELECT + + col1 * ( + CAST ( + col1 AS INTEGER ) ) / + col1 + + col0 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3311
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col1 * + - CAST( + col2 AS SIGNED ) * col1 AND - - 74 + - - 98
----

skipif mysql # not compatible
query III rowsort label-3311
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col1 * + - CAST ( + col2 AS INTEGER ) * col1 AND - - 74 + - - 98
----

query I rowsort
SELECT - - 76 + 7 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
83
83
83

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 / 4 IS NULL
----

query I rowsort
SELECT + col0 * col2 * + + col2 FROM tab1 AS cor0
----
295885
420784
470016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 85 col0 FROM tab1 cor0
----
-85
-85
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3316
SELECT ALL + ( + COUNT( * ) ) * - MAX( ALL - - ( + 22 ) ) + - 22 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE 34 * col0 + - 8 >= + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3316
SELECT ALL + ( + COUNT ( * ) ) * - MAX ( ALL - - ( + 22 ) ) + - 22 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE 34 * col0 + - 8 >= + col0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, 33 AS col2 FROM tab1
----
14
33
47
33
5
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3318
SELECT ALL + CAST( - 54 AS SIGNED ) - + 31 AS col0 FROM tab0
----
-85
-85
-85

skipif mysql # not compatible
query I rowsort label-3318
SELECT ALL + CAST ( - 54 AS INTEGER ) - + 31 AS col0 FROM tab0
----
-85
-85
-85

query I rowsort
SELECT 79 - - 8 * + col1 AS col0 FROM tab0
----
247
727
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT ALL 51 * - 46 + - 75 * - - COUNT( * ) FROM tab1
----
-2571

skipif mysql # not compatible
query I rowsort label-3320
SELECT ALL 51 * - 46 + - 75 * - - COUNT ( * ) FROM tab1
----
-2571

query I rowsort
SELECT DISTINCT - col0 + - 98 AS col2 FROM tab0 AS cor0
----
-113
-185
-195

query I rowsort
SELECT DISTINCT + ( + col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) + + + col1 + + + 0 - + - ( + col2 ) * - + 86 col2 FROM tab2 cor0
----
-1950
-3403
-4979

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE - col0 + 62 + - - 96 * + col2 * - col2 + + 52 + + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3325
SELECT DISTINCT + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3325
SELECT DISTINCT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT ( - 24 ) AS col0 FROM tab2
----
-24
-24
-24

query I rowsort
SELECT DISTINCT + 63 * + col0 AS col1 FROM tab2
----
2898
4032
4725

query II rowsort
SELECT ALL col2 AS col2, 46 FROM tab1 AS cor0
----
59
46
68
46
96
46

onlyif mysql # DIV for integer division: 
query II rowsort label-3329
SELECT + col1 AS col0, col1 DIV col2 FROM tab1 AS cor0
----
14
0
47
0
5
0

skipif mysql # not compatible
query II rowsort label-3329
SELECT + col1 AS col0, col1 / col2 FROM tab1 AS cor0
----
14
0
47
0
5
0

query I rowsort
SELECT - ( + 82 ) AS col0 FROM tab0 AS cor0
----
-82
-82
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT + MIN( + col1 ) FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-3331
SELECT + MIN ( + col1 ) FROM tab1 cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3332
SELECT - CAST( - + AVG ( DISTINCT + col2 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-3332
SELECT - CAST ( - + AVG ( DISTINCT + col2 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT - SUM( ALL + 6 ) AS col1 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-3333
SELECT - SUM ( ALL + 6 ) AS col1 FROM tab2
----
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 * col1 col1 FROM tab1
----
126
423
45

onlyif mysql # DIV for integer division: 
query I rowsort label-3335
SELECT + 38 DIV - - col0 * col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3335
SELECT + 38 / - - col0 * col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * 57 * + 46 * - - col2 FROM tab0
----
25698222
262200
5791998

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + - col0 AND - - col1 / col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3338
SELECT DISTINCT MAX( DISTINCT + - col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3338
SELECT DISTINCT MAX ( DISTINCT + - col0 ) FROM tab1 AS cor0
----
-51

query I rowsort
SELECT - col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + 6 + + col1 FROM tab1 AS cor0
----
11
20
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 6 AS col0, col2 col2 FROM tab1
----
-6
59
-6
68
-6
96

query I rowsort
SELECT + ( 45 ) FROM tab0
----
45
45
45

query I rowsort
SELECT ALL 76 + - + col2 AS col2 FROM tab1
----
-20
17
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3344
SELECT - CAST( NULL AS SIGNED ) * - - CAST( col0 AS SIGNED ) + + col1 AS col2 FROM tab1 WHERE 22 BETWEEN NULL AND + - col0
----

skipif mysql # not compatible
query I rowsort label-3344
SELECT - CAST ( NULL AS INTEGER ) * - - CAST ( col0 AS INTEGER ) + + col1 AS col2 FROM tab1 WHERE 22 BETWEEN NULL AND + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col0 col1, 2 AS col0 FROM tab1 AS cor0
----
51
2
85
2
91
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 54 + + col1 + + col2 col0, + col2 * - - col1 FROM tab2 cor0
----
128
1173
171
3080
179
3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 * + 82 + + ( col1 ) col2 FROM tab1
----
907
916
949

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 65 * + col2 + + col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3349
SELECT DISTINCT - MIN( ALL - - 92 ) + 84 FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-3349
SELECT DISTINCT - MIN ( ALL - - 92 ) + 84 FROM tab0
----
-8

query I rowsort
SELECT DISTINCT - col0 + - 0 FROM tab0
----
-15
-87
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3351
SELECT DISTINCT COUNT( * ) - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3351
SELECT DISTINCT COUNT ( * ) - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3352
SELECT - ( + CAST( NULL AS SIGNED ) ) * - 36 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3352
SELECT - ( + CAST ( NULL AS INTEGER ) ) * - 36 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 3 * + 93 - - 8 FROM tab2 AS cor0
----
287
287
287

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3354
SELECT ALL - CAST( NULL AS SIGNED ) AS col1, COUNT( * ) * + - SUM( - 46 ) AS col1 FROM tab2
----
NULL
414

skipif mysql # not compatible
query II rowsort label-3354
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) * + - SUM ( - 46 ) AS col1 FROM tab2
----
NULL
414

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3355
SELECT ALL + CAST( NULL AS SIGNED ) * + col1 * col1 * + 4 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3355
SELECT ALL + CAST ( NULL AS INTEGER ) * + col1 * col1 * + 4 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3356
SELECT DISTINCT 10 DIV 39 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3356
SELECT DISTINCT 10 / 39 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3357
SELECT DISTINCT + 52 DIV - col1 col0 FROM tab0
----
-2
-52
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3357
SELECT DISTINCT + 52 / - col1 col0 FROM tab0
----
-2
-52
0

query I rowsort
SELECT ALL + col2 * + ( + col1 ) FROM tab1 cor0 WHERE - col2 + - col2 IS NOT NULL
----
1344
295
3196

query I rowsort
SELECT ( 79 ) FROM tab0 AS cor0
----
79
79
79

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3360
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + col0 + ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3360
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + col0 + ( + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3361
SELECT + - CAST( 45 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-45
-45
-45

skipif mysql # not compatible
query I rowsort label-3361
SELECT + - CAST ( 45 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-45
-45
-45

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-3362
SELECT * FROM tab0 AS cor0 WHERE NOT + 86 + - CAST( NULL AS DECIMAL ) + - col0 - + CAST( - - col2 AS SIGNED ) = + col0
----

skipif mysql # not compatible
query III rowsort label-3362
SELECT * FROM tab0 AS cor0 WHERE NOT + 86 + - CAST ( NULL AS REAL ) + - col0 - + CAST ( - - col2 AS INTEGER ) = + col0
----

query I rowsort
SELECT DISTINCT + + ( - col1 ) * + - 86 AS col0 FROM tab2 AS cor0
----
4386
5762
6622

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab2 AS cor0 WHERE NOT NULL <= ( - col2 )
----

query I rowsort
SELECT ALL - ( - 83 ) * col1 * - 8 * + + col2 FROM tab2
----
-2045120
-2580304
-778872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3366
SELECT ALL CAST( NULL AS SIGNED ) * MAX( DISTINCT - 25 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3366
SELECT ALL CAST ( NULL AS INTEGER ) * MAX ( DISTINCT - 25 ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3367
SELECT ALL COUNT( * ) * + COUNT( * ) * + 10 AS col1 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-3367
SELECT ALL COUNT ( * ) * + COUNT ( * ) * + 10 AS col1 FROM tab2
----
90

query I rowsort
SELECT 39 * - col1 FROM tab1
----
-1833
-195
-546

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( + + col2 ) = + + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3370
SELECT ALL + ( col0 ) DIV - - col2 AS col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3370
SELECT ALL + ( col0 ) / - - col2 AS col0 FROM tab1
----
0
1
1

query I rowsort
SELECT col0 * + - col1 * - + col1 FROM tab1
----
201019
2125
9996

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - ( + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3373
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * 42 NOT BETWEEN + CAST( NULL AS SIGNED ) + - - 27 + 24 AND - col1 + - col0
----

skipif mysql # not compatible
query III rowsort label-3373
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * 42 NOT BETWEEN + CAST ( NULL AS INTEGER ) + - - 27 + 24 AND - col1 + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 99 ) col2 FROM tab2 AS cor0
----
-99
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT ALL + SUM( DISTINCT col2 ) FROM tab2 AS cor0 WHERE - ( - 56 ) BETWEEN + + col0 AND - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-3375
SELECT ALL + SUM ( DISTINCT col2 ) FROM tab2 AS cor0 WHERE - ( - 56 ) BETWEEN + + col0 AND - 15
----
NULL

query I rowsort
SELECT ALL + 46 + - 24 FROM tab1
----
22
22
22

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) = 12 - - col2 * + + 94
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT + + MAX( ALL - 29 ) AS col2 FROM tab1 WHERE col0 + - 88 + - 43 IS NOT NULL
----
-29

skipif mysql # not compatible
query I rowsort label-3378
SELECT + + MAX ( ALL - 29 ) AS col2 FROM tab1 WHERE col0 + - 88 + - 43 IS NOT NULL
----
-29

query I rowsort
SELECT ALL + + 17 AS col0 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
17
17
17

query I rowsort
SELECT DISTINCT + col0 * + - col2 * - + col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col2 > 69 - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT DISTINCT MIN( DISTINCT - col0 ) AS col0 FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3382
SELECT DISTINCT MIN ( DISTINCT - col0 ) AS col0 FROM tab1 cor0
----
-91

query I rowsort
SELECT 78 * + col2 * ( - 53 ) FROM tab0 cor0
----
-194298
-409266
-41340

query I rowsort
SELECT DISTINCT col0 * col1 + + col1 FROM tab2
----
2397
5005
5092

query III rowsort
SELECT * FROM tab0 WHERE + - col2 + + 2 + + 35 + - col1 * + - col2 + + - col1 + - col0 >= + + col1 + + col2
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT ALL - SUM( DISTINCT + col1 ) + - + COUNT( * ) AS col0 FROM tab2
----
-198

skipif mysql # not compatible
query I rowsort label-3386
SELECT ALL - SUM ( DISTINCT + col1 ) + - + COUNT ( * ) AS col0 FROM tab2
----
-198

query I rowsort
SELECT + ( col2 ) * + - col1 + + - col0 AS col1 FROM tab0
----
-196
-297
-3822

query I rowsort
SELECT ALL ( - - col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
67
77

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN 79 * + 69 + + - ( 62 ) AND + 4 + - 45
----

query I rowsort
SELECT 43 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 81 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT ALL - 35 * + ( - COUNT( * ) ) + - COUNT( * ) FROM tab1 cor0
----
102

skipif mysql # not compatible
query I rowsort label-3392
SELECT ALL - 35 * + ( - COUNT ( * ) ) + - COUNT ( * ) FROM tab1 cor0
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-3393
SELECT DISTINCT - - COUNT( * ) * ( COUNT( * ) ), 29 AS col2 FROM tab0 AS cor0 WHERE ( NOT + col0 NOT BETWEEN col0 * + col2 + + col1 AND + col2 * + 6 )
----
0
29

skipif mysql # not compatible
query II rowsort label-3393
SELECT DISTINCT - - COUNT ( * ) * ( COUNT ( * ) ), 29 AS col2 FROM tab0 AS cor0 WHERE ( NOT + col0 NOT BETWEEN col0 * + col2 + + col1 AND + col2 * + 6 )
----
0
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT ALL - - ( + COUNT( * ) ) * MIN( ALL - col1 ) FROM tab0 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-3394
SELECT ALL - - ( + COUNT ( * ) ) * MIN ( ALL - col1 ) FROM tab0 AS cor0
----
-243

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - 84 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3396
SELECT ALL 11 + - + COUNT( ALL 55 ) AS col1 FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-3396
SELECT ALL 11 + - + COUNT ( ALL 55 ) AS col1 FROM tab1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT ALL - 96 * + COUNT( * ) AS col0 FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-3397
SELECT ALL - 96 * + COUNT ( * ) AS col0 FROM tab1
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT DISTINCT - MAX( DISTINCT - 60 ) AS col2 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-3398
SELECT DISTINCT - MAX ( DISTINCT - 60 ) AS col2 FROM tab0
----
60

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + - col1 col0 FROM tab1
----
21
54
82

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 * - col2 IS NULL OR - col2 * - + 34 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 42 + + - col0 FROM tab0 AS cor0
----
-45
-55
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT COUNT( - + col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3403
SELECT COUNT ( - + col2 ) FROM tab0 AS cor0
----
3

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 81 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + + 79 col0 FROM tab0
----
126
178
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3406
SELECT DISTINCT + + COUNT( + 80 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3406
SELECT DISTINCT + + COUNT ( + 80 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT - col2 + - - col1 AS col2 FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3408
SELECT + 63 + + - CAST( 52 AS SIGNED ) FROM tab1
----
11
11
11

skipif mysql # not compatible
query I rowsort label-3408
SELECT + 63 + + - CAST ( 52 AS INTEGER ) FROM tab1
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3409
SELECT DISTINCT - COUNT( * ) * + - COUNT( * ) + - - ( - - 64 ) FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-3409
SELECT DISTINCT - COUNT ( * ) * + - COUNT ( * ) + - - ( - - 64 ) FROM tab2
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-3410
SELECT ALL ( + MAX( + col1 ) ), + 25 AS col0 FROM tab0
----
81
25

skipif mysql # not compatible
query II rowsort label-3410
SELECT ALL ( + MAX ( + col1 ) ), + 25 AS col0 FROM tab0
----
81
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3411
SELECT + ( - col1 ) AS col2 FROM tab0 WHERE + CAST( - + 86 AS SIGNED ) BETWEEN col0 + + + col0 * col0 AND + - col2 * 74 + col1
----

skipif mysql # not compatible
query I rowsort label-3411
SELECT + ( - col1 ) AS col2 FROM tab0 WHERE + CAST ( - + 86 AS INTEGER ) BETWEEN col0 + + + col0 * col0 AND + - col2 * 74 + col1
----

query III rowsort
SELECT * FROM tab0 WHERE - col0 + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 * - col2 + - col1 * - 64 * + col1 AS col0 FROM tab1
----
146000
21760
5081

query II rowsort
SELECT DISTINCT - col1, col0 AS col1 FROM tab1
----
-14
51
-47
91
-5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT ALL 25 + + COUNT( * ) + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
43

skipif mysql # not compatible
query I rowsort label-3415
SELECT ALL 25 + + COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT ALL SUM( + 94 ) AS col2 FROM tab1
----
282

skipif mysql # not compatible
query I rowsort label-3416
SELECT ALL SUM ( + 94 ) AS col2 FROM tab1
----
282

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT DISTINCT - ( + COUNT( * ) ) * - COUNT( * ) * - COUNT( * ) * - 13 AS col2 FROM tab0 AS cor0
----
351

skipif mysql # not compatible
query I rowsort label-3417
SELECT DISTINCT - ( + COUNT ( * ) ) * - COUNT ( * ) * - COUNT ( * ) * - 13 AS col2 FROM tab0 AS cor0
----
351

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT ALL - - SUM( + col2 ) * + COUNT( DISTINCT - col1 ) FROM tab2 AS cor0
----
363

skipif mysql # not compatible
query I rowsort label-3418
SELECT ALL - - SUM ( + col2 ) * + COUNT ( DISTINCT - col1 ) FROM tab2 AS cor0
----
363

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - 19 col2 FROM tab2 AS cor0
----
-1216
-1425
-874

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3420
SELECT + - COUNT( * ) DIV - COUNT( * ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3420
SELECT + - COUNT ( * ) / - COUNT ( * ) FROM tab0 AS cor0
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL AND NULL IS NOT NULL
----

query I rowsort
SELECT ALL col2 * + col2 FROM tab2 WHERE - col2 IS NOT NULL
----
1600
3364
529

query I rowsort
SELECT DISTINCT + + col1 * col0 AS col2 FROM tab1 WHERE NOT + - col2 * + col0 IS NULL
----
425
4277
714

query I rowsort
SELECT + 75 * 13 AS col2 FROM tab1
----
975
975
975

query I rowsort
SELECT ALL col0 * + col2 * + 72 AS col2 FROM tab2
----
184320
313200
76176

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 44 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT - ( + COUNT( * ) ) * + COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-3427
SELECT - ( + COUNT ( * ) ) * + COUNT ( * ) FROM tab2
----
-9

query I rowsort
SELECT ALL - 42 * + + col1 FROM tab0 AS cor0
----
-3402
-42
-882

onlyif mysql # DIV for integer division: 
query I rowsort label-3429
SELECT DISTINCT + ( + - col2 ) DIV + col1 AS col1 FROM tab0 AS cor0
----
-99
0

skipif mysql # not compatible
query I rowsort label-3429
SELECT DISTINCT + ( + - col2 ) / + col1 AS col1 FROM tab0 AS cor0
----
-99
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3430
SELECT - 38 FROM tab2 AS cor0 WHERE + CAST( col2 AS SIGNED ) * - + 81 - + 65 BETWEEN - - CAST( - + col0 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-3430
SELECT - 38 FROM tab2 AS cor0 WHERE + CAST ( col2 AS INTEGER ) * - + 81 - + 65 BETWEEN - - CAST ( - + col0 AS INTEGER ) AND NULL
----

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT ALL + + 20 - - 16 * - 70 FROM tab1 AS cor0
----
-1100
-1100
-1100

query I rowsort
SELECT DISTINCT + - ( + 2 ) AS col1 FROM tab0 AS cor0
----
-2

query II rowsort
SELECT DISTINCT 47 AS col0, col2 + + - col2 * - col0 * - col1 + + + 45 FROM tab2 AS cor0
----
47
-197035
47
-291347
47
-53890

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3435
SELECT 2 * 11 * + CAST( + COUNT( + col2 ) AS SIGNED ) - + MIN( DISTINCT - col2 ) FROM tab1
----
162

skipif mysql # not compatible
query I rowsort label-3435
SELECT 2 * 11 * + CAST ( + COUNT ( + col2 ) AS INTEGER ) - + MIN ( DISTINCT - col2 ) FROM tab1
----
162

query I rowsort
SELECT - col2 AS col0 FROM tab1 WHERE NULL IS NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3437
SELECT DISTINCT + COUNT( DISTINCT - - col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3437
SELECT DISTINCT + COUNT ( DISTINCT - - col1 ) FROM tab2
----
3

query II rowsort
SELECT ALL col1 AS col0, col0 * + col2 AS col2 FROM tab1
----
14
4896
47
6188
5
5015

query I rowsort
SELECT + - col2 - + + ( - - 91 ) AS col0 FROM tab0 WHERE NOT - + 24 + - col1 * col0 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3440
SELECT 2 DIV - col1 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-3440
SELECT 2 / - col1 FROM tab0
----
-2
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3441
SELECT ( + MIN( ALL ( 64 ) ) ) AS col1 FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-3441
SELECT ( + MIN ( ALL ( 64 ) ) ) AS col1 FROM tab2
----
64

query I rowsort
SELECT ALL - 45 * + + col2 FROM tab2
----
-1035
-1800
-2610

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3443
SELECT + COUNT( * ) DIV - COUNT( * ), + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-3443
SELECT + COUNT ( * ) / - COUNT ( * ), + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
-1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3444
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3444
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL - col1 * col2 - - - col2 FROM tab1 cor0
----
-1440
-3264
-354

query I rowsort
SELECT DISTINCT 58 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
58

query I rowsort
SELECT ALL - + 4 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query I rowsort
SELECT ALL 20 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
20
20
20

query I rowsort
SELECT DISTINCT - + col0 * - - col0 AS col1 FROM tab2 AS cor0
----
-2116
-4096
-5625

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3450
SELECT * FROM tab2 AS cor0 WHERE NOT ( CAST( - + col0 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3450
SELECT * FROM tab2 AS cor0 WHERE NOT ( CAST ( - + col0 AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT DISTINCT - - MAX( - 29 ) / - 87 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3451
SELECT DISTINCT - - MAX ( - 29 ) / - 87 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 46 col0 FROM tab1 AS cor0
----
46

query I rowsort
SELECT + 72 AS col2 FROM tab2 AS cor0 WHERE NOT - col0 NOT IN ( + col0 * + + col1 * + col1, - col1 + + + 13 )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT DISTINCT + 65 + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-3454
SELECT DISTINCT + 65 + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
68

onlyif mysql # DIV for integer division: 
query II rowsort label-3455
SELECT + 50 * - 21, - col0 DIV col2 + + 46 AS col2 FROM tab1 cor0
----
-1050
45
-1050
45
-1050
46

skipif mysql # not compatible
query II rowsort label-3455
SELECT + 50 * - 21, - col0 / col2 + + 46 AS col2 FROM tab1 cor0
----
-1050
45
-1050
45
-1050
46

query I rowsort
SELECT ALL - + 86 AS col2 FROM tab0 AS cor0 WHERE NOT - col0 < + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3457
SELECT + + col1 DIV 73 AS col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3457
SELECT + + col1 / 73 AS col2 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL - - col2 * - + col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # DIV for integer division: 
query I rowsort label-3459
SELECT + col1 DIV col0 + + col2 col2 FROM tab2
----
24
41
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3459
SELECT + col1 / col0 + + col2 col2 FROM tab2
----
24
41
58

onlyif mysql # aggregate syntax: 
query II rowsort label-3460
SELECT COUNT( - + col1 ) + - + 94 AS col1, 31 FROM tab0
----
-91
31

skipif mysql # not compatible
query II rowsort label-3460
SELECT COUNT ( - + col1 ) + - + 94 AS col1, 31 FROM tab0
----
-91
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT DISTINCT MAX( ALL col0 ) + 36 FROM tab2
----
111

skipif mysql # not compatible
query I rowsort label-3461
SELECT DISTINCT MAX ( ALL col0 ) + 36 FROM tab2
----
111

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + 89 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 11 col2 FROM tab1
----
16
25
58

query I rowsort
SELECT ALL col0 + + ( + col2 ) - + ( + + col1 ) AS col0 FROM tab1
----
112
133
139

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN - - ( - col1 ) * - + col1 + + - col1 AND - 50 * + + col1 * + 28
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN + col1 * + ( col2 ) AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT COUNT( * ) + - - 13 FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-3467
SELECT COUNT ( * ) + - - 13 FROM tab0
----
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - 63 * - ( + - col2 ) col1 FROM tab2 AS cor0
----
194040
244818
73899

onlyif mysql # DIV for integer division: 
query I rowsort label-3469
SELECT + col0 DIV + col0 AS col1 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3469
SELECT + col0 / + col0 AS col1 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + + 29 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT - MAX( ALL col1 ) + COUNT( DISTINCT - col1 ) AS col0 FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-3472
SELECT - MAX ( ALL col1 ) + COUNT ( DISTINCT - col1 ) AS col0 FROM tab2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT + - MAX( - col1 ) + - - 86 FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-3473
SELECT + - MAX ( - col1 ) + - - 86 FROM tab1 cor0
----
91

query I rowsort
SELECT - col0 + + 60 + col0 AS col0 FROM tab2 AS cor0
----
60
60
60

query I rowsort
SELECT - + col0 + - 26 AS col1 FROM tab2 AS cor0
----
-101
-72
-90

query II rowsort
SELECT 75 * - col1 AS col0, col0 * + 38 AS col0 FROM tab0 AS cor0
----
-1575
3306
-6075
570
-75
3686

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3477
SELECT ALL col1 * col1 * - + ( - CAST( NULL AS SIGNED ) ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3477
SELECT ALL col1 * col1 * - + ( - CAST ( NULL AS INTEGER ) ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 + - - col1 * + ( + col0 ) < + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + 57 FROM tab2 cor0
----
-57
-57
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 * - 76 + + col1 col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-6383
-6393
-6409

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT DISTINCT + MAX( DISTINCT - 76 ) AS col0 FROM tab0 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-3481
SELECT DISTINCT + MAX ( DISTINCT - 76 ) AS col0 FROM tab0 AS cor0
----
-76

query II rowsort
SELECT DISTINCT + - col0, col0 AS col1 FROM tab2 AS cor0 WHERE - col1 * + + 29 + + + 3 BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL col0, 28 AS col1 FROM tab1
----
51
28
85
28
91
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3484
SELECT ALL - CAST( NULL AS SIGNED ) / 69 * COUNT( * ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3484
SELECT ALL - CAST ( NULL AS INTEGER ) / 69 * COUNT ( * ) col0 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 31 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col0, 72 FROM tab0 AS cor0
----
1
72
21
72
81
72

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col2 ) BETWEEN ( NULL ) AND col2 + + + col2 + col2 + ( - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, col0 AS col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT - SUM( DISTINCT + col1 ) * 42 AS col0 FROM tab2 AS cor0
----
-8190

skipif mysql # not compatible
query I rowsort label-3489
SELECT - SUM ( DISTINCT + col1 ) * 42 AS col0 FROM tab2 AS cor0
----
-8190

query I rowsort
SELECT - ( ( + col2 ) ) AS col2 FROM tab1 AS cor0 WHERE ( 30 > NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3491
SELECT - - col1 DIV - + col2 - - col2 AS col1 FROM tab2 AS cor0
----
21
39
57

skipif mysql # not compatible
query I rowsort label-3491
SELECT - - col1 / - + col2 - - col2 AS col1 FROM tab2 AS cor0
----
21
39
57

query II rowsort
SELECT DISTINCT col2 AS col0, + col1 - + col0 AS col2 FROM tab0 AS cor0
----
10
-66
47
66
99
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3493
SELECT - SUM( ALL + 57 ) AS col0 FROM tab2
----
-171

skipif mysql # not compatible
query I rowsort label-3493
SELECT - SUM ( ALL + 57 ) AS col0 FROM tab2
----
-171

query III rowsort
SELECT * FROM tab2 WHERE - - 49 = 20
----

query II rowsort
SELECT ( - 6 ) AS col1, col0 FROM tab0
----
-6
15
-6
87
-6
97

onlyif mysql # aggregate syntax: 
query II rowsort label-3496
SELECT DISTINCT 16 * + - 71 AS col0, + COUNT( * ) FROM tab2
----
-1136
3

skipif mysql # not compatible
query II rowsort label-3496
SELECT DISTINCT 16 * + - 71 AS col0, + COUNT ( * ) FROM tab2
----
-1136
3

query I rowsort
SELECT 77 - - col1 FROM tab0
----
158
78
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * + + 51 + - - col2 AS col2, - 75 col2 FROM tab0 cor0
----
-2350
-75
-4950
-75
-500
-75

query I rowsort
SELECT 41 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT DISTINCT - + 76 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3501
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3501
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3502
SELECT DISTINCT - 84 * + COUNT( * ) + + 92 FROM tab0 cor0
----
-160

skipif mysql # not compatible
query I rowsort label-3502
SELECT DISTINCT - 84 * + COUNT ( * ) + + 92 FROM tab0 cor0
----
-160

query I rowsort
SELECT 89 AS col0 FROM tab0 AS cor0 WHERE NOT NULL < col2 / + col2 + + col2 + - - col2 * + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3504
SELECT DISTINCT - SUM( 60 ) col0 FROM tab2 AS cor0
----
-180

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3504
SELECT DISTINCT - SUM ( 60 ) col0 FROM tab2 AS cor0
----
-180

query I rowsort
SELECT DISTINCT + + 78 * - 3 AS col1 FROM tab1 AS cor0
----
-234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3506
SELECT DISTINCT - 18 * + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3506
SELECT DISTINCT - 18 * + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT 69 * + - ( - col1 ) AS col1 FROM tab0
----
1449
5589
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col0 col0 FROM tab2
----
2346
4928
5025

onlyif mysql # DIV for integer division: 
query I rowsort label-3509
SELECT col0 DIV + + col2 AS col1 FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-3509
SELECT col0 / + + col2 AS col1 FROM tab0
----
0
0
8

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 <= ( - + col1 ) + + 87 + - col0 - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3511
SELECT DISTINCT + + ( + col0 ), CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

skipif mysql # not compatible
query II rowsort label-3511
SELECT DISTINCT + + ( + col0 ), CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

query I rowsort
SELECT ALL - + col0 * - - col2 * - + 16 FROM tab0 AS cor0
----
11280
13920
153648

query I rowsort
SELECT ALL 46 * + col1 * col0 AS col1 FROM tab0 AS cor0
----
4462
55890
84042

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 78 ) * col0 - + - col1 / + col2 * - col1 <= col2 OR NOT NULL IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 11 * - + 82 * col2 + col0 AS col1 FROM tab2 AS cor0
----
20792
36144
52391

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT ALL + 65 * + 9 - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) = + col2 + - col0 + - 26
----
585

skipif mysql # not compatible
query I rowsort label-3517
SELECT ALL + 65 * + 9 - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) = + col2 + - col0 + - 26
----
585

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col0 ) col1 FROM tab0 cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT DISTINCT - - COUNT( + col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3519
SELECT DISTINCT - - COUNT ( + col2 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT - - col0 + + + col0 + + + col1 FROM tab1 AS cor0
----
116
175
229

onlyif mysql # aggregate syntax: 
query I rowsort label-3521
SELECT - SUM( ALL + - col2 ) + - ( + + MIN( ALL + 53 ) ) col0 FROM tab2 AS cor0
----
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3521
SELECT - SUM ( ALL + - col2 ) + - ( + + MIN ( ALL + 53 ) ) col0 FROM tab2 AS cor0
----
68

query I rowsort
SELECT ALL - - 90 * + - col2 FROM tab1 AS cor0
----
-5310
-6120
-8640

query I rowsort
SELECT DISTINCT col0 + 77 + col2 * col1 FROM tab0
----
273
374
3899

query I rowsort
SELECT + col2 + - + col0 FROM tab0
----
-77
2
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + 77 + col1 col1 FROM tab2
----
151
194
202

query I rowsort
SELECT col0 + + + 95 FROM tab2
----
141
159
170

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT DISTINCT COUNT( * ) + + + 91 * 73 AS col0 FROM tab2
----
6646

skipif mysql # not compatible
query I rowsort label-3527
SELECT DISTINCT COUNT ( * ) + + + 91 * 73 AS col0 FROM tab2
----
6646

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT COUNT( * ) * COUNT( * ) AS col1 FROM tab1, tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3528
SELECT COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1, tab2 AS cor0
----
81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT + col1 IS NOT NULL )
----

query II rowsort
SELECT DISTINCT + ( - + 47 ) AS col0, ( 34 ) * + ( - ( + 92 ) ) AS col2 FROM tab0 AS cor0
----
-47
-3128

query I rowsort
SELECT col0 * - col1 - + col0 * - col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3532
SELECT COUNT( * ) - + - 62 AS col2 FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-3532
SELECT COUNT ( * ) - + - 62 AS col2 FROM tab1 AS cor0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3533
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + + col2 ) * + - CAST( + 27 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3533
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + + col2 ) * + - CAST ( + 27 AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3534
SELECT DISTINCT - AVG ( - 33 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3534
SELECT DISTINCT - AVG ( - 33 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT - SUM( DISTINCT - - col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
-66

skipif mysql # not compatible
query I rowsort label-3535
SELECT - SUM ( DISTINCT - - col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3536
SELECT - + SUM( ALL + col2 ) AS col2 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-3536
SELECT - + SUM ( ALL + col2 ) AS col2 FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT DISTINCT - ( - COUNT( * ) ) * COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3537
SELECT DISTINCT - ( - COUNT ( * ) ) * COUNT ( * ) FROM tab1 AS cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 + - 8 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + 98 NOT BETWEEN NULL AND NULL )
----

query I rowsort
SELECT ALL 17 * col1 AS col1 FROM tab2
----
1139
1309
867

query I rowsort
SELECT ALL 83 * - + col1 AS col1 FROM tab2
----
-4233
-5561
-6391

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT COUNT( DISTINCT + - 11 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3542
SELECT COUNT ( DISTINCT + - 11 ) FROM tab2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3543
SELECT ALL col2 DIV ( - ( + col0 ) ) FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-3543
SELECT ALL col2 / ( - ( + col0 ) ) FROM tab0
----
-1
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT + SUM( - col2 ) * COUNT( + - col2 ) FROM tab2
----
-363

skipif mysql # not compatible
query I rowsort label-3544
SELECT + SUM ( - col2 ) * COUNT ( + - col2 ) FROM tab2
----
-363

query II rowsort
SELECT ALL col0 AS col1, col2 AS col1 FROM tab1 AS cor0
----
51
96
85
59
91
68

query I rowsort
SELECT DISTINCT + - col1 * + + col1 + + + col1 + - ( - + col2 ) + + col2 + - col0 - col1 FROM tab2 AS cor0
----
-2601
-4448
-5913

onlyif mysql # aggregate syntax: 
query I rowsort label-3547
SELECT + - 3 * + COUNT( * ) * ( COUNT( * ) ) FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-3547
SELECT + - 3 * + COUNT ( * ) * ( COUNT ( * ) ) FROM tab0 AS cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT COUNT( + 87 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3548
SELECT COUNT ( + 87 ) FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3549
SELECT DISTINCT + + col1 DIV col2 + - col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-3549
SELECT DISTINCT + + col1 / col2 + - col1 FROM tab1 AS cor0
----
-14
-47
-5

query II rowsort
SELECT ALL + col1 * - - col1 - + + col1 AS col1, + col0 AS col1 FROM tab1 AS cor0
----
182
51
20
85
2162
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3551
SELECT DISTINCT 49 DIV COUNT( * ) FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-3551
SELECT DISTINCT 49 / COUNT ( * ) FROM tab1
----
16

query I rowsort
SELECT + 55 + - 8 FROM tab0
----
47
47
47

onlyif mysql # DIV for integer division: 
query I rowsort label-3553
SELECT DISTINCT - 35 + 69 DIV + col2 AS col0 FROM tab2
----
-32
-34

skipif mysql # not compatible
query I rowsort label-3553
SELECT DISTINCT - 35 + 69 / + col2 AS col0 FROM tab2
----
-32
-34

query I rowsort
SELECT col0 * ( + ( + col0 ) ) + + + ( + 2 ) * - col1 AS col2 FROM tab1
----
2573
7215
8187

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT ALL - + COUNT( * ) + - COUNT( DISTINCT - - 82 ) FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-3555
SELECT ALL - + COUNT ( * ) + - COUNT ( DISTINCT - - 82 ) FROM tab2 AS cor0
----
-4

query III rowsort
SELECT * FROM tab1 cor0 WHERE 1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - ( + col0 ) * - 7 AS col0 FROM tab0 cor0
----
105
609
679

query III rowsort
SELECT * FROM tab1 WHERE - - col2 + - 10 - - + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 NOT IN ( + ( + col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3560
SELECT DISTINCT 74 + + + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3560
SELECT DISTINCT 74 + + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT 21 - + COUNT( * ) AS col0 FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-3561
SELECT 21 - + COUNT ( * ) AS col0 FROM tab2
----
18

query I rowsort
SELECT ALL 59 AS col1 FROM tab1 AS cor0 WHERE NOT col1 <= + 6
----
59
59

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT - 96 < + + col2 * - 8 * col0
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3564
SELECT ALL COUNT( * ) * + COUNT( * ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3564
SELECT ALL COUNT ( * ) * + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query II rowsort
SELECT DISTINCT + col1, col2 AS col0 FROM tab2
----
51
23
67
58
77
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( col2 ) col0, + col1 AS col1 FROM tab1
----
59
5
68
47
96
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + - col0 col1 FROM tab0
----
-705
-870
-9603

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3569
SELECT + + col1 AS col1, col0 * + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-3569
SELECT + + col1 AS col1, col0 * + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

query II rowsort
SELECT DISTINCT - - 60 AS col0, col1 * - 48 + + - 7 FROM tab1 AS cor0
----
60
-2263
60
-247
60
-679

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col1
----

query II rowsort
SELECT ALL 27 AS col2, - col2 FROM tab0 AS cor0
----
27
-10
27
-47
27
-99

query I rowsort
SELECT ALL 14 * + - 89 FROM tab0
----
-1246
-1246
-1246

query I rowsort
SELECT ALL - 61 AS col0 FROM tab2 cor0
----
-61
-61
-61

query I rowsort
SELECT - 79 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 12 / col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3577
SELECT + col2, CAST( - + 83 AS SIGNED ) FROM tab1
----
59
-83
68
-83
96
-83

skipif mysql # not compatible
query II rowsort label-3577
SELECT + col2, CAST ( - + 83 AS INTEGER ) FROM tab1
----
59
-83
68
-83
96
-83

query I rowsort
SELECT col0 FROM tab2 cor0 WHERE col0 + - - 70 + 28 * col2 <= NULL
----

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE + col2 - + col2 BETWEEN col1 / 2 + - 12 / 84 AND NULL
----

query I rowsort
SELECT ALL - col0 * - 19 AS col2 FROM tab2 AS cor0
----
1216
1425
874

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3581
SELECT - 46 + - CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
-133
-143
-61

skipif mysql # not compatible
query I rowsort label-3581
SELECT - 46 + - CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
-133
-143
-61

query I rowsort
SELECT 13 * + 32 + - - 84 + + col0 + + col1 FROM tab2 AS cor0
----
597
641
642

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3583
SELECT ALL + + ( + CAST( NULL AS SIGNED ) ) / + - 30 * + col0 / col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3583
SELECT ALL + + ( + CAST ( NULL AS INTEGER ) ) / + - 30 * + col0 / col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + col0 * - col1 * + + col0 FROM tab2
----
-107962
-315456
-376950

query I rowsort
SELECT + 97 * - 24 FROM tab2
----
-2328
-2328
-2328

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT ALL - SUM( ( col1 ) ) + + ( - 90 ) FROM tab0
----
-193

skipif mysql # not compatible
query I rowsort label-3586
SELECT ALL - SUM ( ( col1 ) ) + + ( - 90 ) FROM tab0
----
-193

query I rowsort
SELECT - ( - ( 5 ) ) FROM tab1
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3588
SELECT ALL - SUM( ALL + - col0 ) * SUM( ALL - col2 ) FROM tab2 cor0 WHERE NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3588
SELECT ALL - SUM ( ALL + - col0 ) * SUM ( ALL - col2 ) FROM tab2 cor0 WHERE NULL = NULL
----
NULL

query I rowsort
SELECT - + 72 - + col1 + + ( 68 ) FROM tab2 cor0
----
-55
-71
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT - + 18 * - COUNT( col0 ) FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-3590
SELECT - + 18 * - COUNT ( col0 ) FROM tab0 AS cor0
----
54

query I rowsort
SELECT - 70 * + + 12 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ae1ed355f5eb77fb056b0dec721c225e

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT DISTINCT + - MAX( + - 73 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
73

skipif mysql # not compatible
query I rowsort label-3592
SELECT DISTINCT + - MAX ( + - 73 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
73

query III rowsort
SELECT * FROM tab1 WHERE NOT 16 < - 5
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 0 NOT BETWEEN + col1 AND ( + ( col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT DISTINCT - SUM( DISTINCT - col1 ) * - + 29 AS col0 FROM tab0 AS cor0
----
-2987

skipif mysql # not compatible
query I rowsort label-3595
SELECT DISTINCT - SUM ( DISTINCT - col1 ) * - + 29 AS col0 FROM tab0 AS cor0
----
-2987

onlyif mysql # DIV for integer division: 
query I rowsort label-3596
SELECT DISTINCT + 27 DIV - 46 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3596
SELECT DISTINCT + 27 / - 46 FROM tab2 AS cor0
----
0

query II rowsort
SELECT ALL col2, col0 AS col1 FROM tab2 AS cor0
----
23
46
40
64
58
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3598
SELECT col0 * CAST( NULL AS SIGNED ) + - col0, 86 AS col1 FROM tab2 AS cor0
----
NULL
86
NULL
86
NULL
86

skipif mysql # not compatible
query II rowsort label-3598
SELECT col0 * CAST ( NULL AS INTEGER ) + - col0, 86 AS col1 FROM tab2 AS cor0
----
NULL
86
NULL
86
NULL
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT ALL + SUM( + ( - col1 ) ) AS col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3599
SELECT ALL + SUM ( + ( - col1 ) ) AS col2 FROM tab1 AS cor0
----
-66

query II rowsort
SELECT 13 AS col1, - 3 AS col0 FROM tab0 cor0
----
13
-3
13
-3
13
-3

query I rowsort
SELECT - col2 AS col0 FROM tab2 AS cor0 WHERE NOT 8 + + ( col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3602
SELECT DISTINCT - MAX( - + 34 ) FROM tab2 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-3602
SELECT DISTINCT - MAX ( - + 34 ) FROM tab2 AS cor0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT DISTINCT + MAX( + col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-3603
SELECT DISTINCT + MAX ( + col1 ) FROM tab2 AS cor0
----
77

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) IS NULL AND + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 8 AS col2 FROM tab0 WHERE NOT - 38 NOT IN ( col0 / - col2 + - col0 - - + 0, - col2, 10, 21 * col0 / + 55, - - ( - 21 ) * 94, + + col2 )
----

query I rowsort
SELECT ALL - ( - 47 ) AS col1 FROM tab1
----
47
47
47

query II rowsort
SELECT 4 * + 29, - col0 + - col1 + + + col1 AS col1 FROM tab0
----
116
-15
116
-87
116
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3608
SELECT DISTINCT - 21 / - CAST( - - col0 AS SIGNED ) * 94 + + col0 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3608
SELECT DISTINCT - 21 / - CAST ( - - col0 AS INTEGER ) * 94 + + col0 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT ALL + COUNT( * ) + - 64 FROM tab2
----
-61

skipif mysql # not compatible
query I rowsort label-3609
SELECT ALL + COUNT ( * ) + - 64 FROM tab2
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3610
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3610
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT MIN( - 83 ) AS col1 FROM tab0 cor0
----
-83

skipif mysql # not compatible
query I rowsort label-3611
SELECT MIN ( - 83 ) AS col1 FROM tab0 cor0
----
-83

query I rowsort
SELECT 28 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3613
SELECT DISTINCT 26 DIV + 5 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
5

skipif mysql # not compatible
query I rowsort label-3613
SELECT DISTINCT 26 / + 5 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
5

query I rowsort
SELECT ALL - 51 * col0 FROM tab1
----
-2601
-4335
-4641

query I rowsort
SELECT DISTINCT 25 + col2 AS col2 FROM tab2 AS cor0
----
48
65
83

query I rowsort
SELECT - + 37 AS col1 FROM tab2 cor0
----
-37
-37
-37

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col1 ) NOT BETWEEN NULL AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3618
SELECT + COUNT( * ) AS col2, + 4 FROM tab2 AS cor0 WHERE col2 * - col1 + 78 IS NULL
----
0
4

skipif mysql # not compatible
query II rowsort label-3618
SELECT + COUNT ( * ) AS col2, + 4 FROM tab2 AS cor0 WHERE col2 * - col1 + 78 IS NULL
----
0
4

query II rowsort
SELECT DISTINCT col2 - col2 AS col1, col1 * - + col2 FROM tab0 cor0
----
0
-210
0
-3807
0
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3620
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN CAST( + - ( - col2 ) AS SIGNED ) * + col2 * + + col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3620
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN CAST ( + - ( - col2 ) AS INTEGER ) * + col2 * + + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT - - 56 - 44 + + COUNT( * ) * - 79 * + SUM( DISTINCT - ( + + 89 ) ) + - 43 col2 FROM tab0 cor0
----
21062

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3621
SELECT - - 56 - 44 + + COUNT ( * ) * - 79 * + SUM ( DISTINCT - ( + + 89 ) ) + - 43 col2 FROM tab0 cor0
----
21062

query I rowsort
SELECT - col1 * - - ( + col2 ) * col0 * - 49 - + col1 FROM tab1 AS cor0
----
1228670
14250917
3358642

query I rowsort
SELECT DISTINCT - + 71 FROM tab0 WHERE NOT ( - col1 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT 14 + + col0 FROM tab0
----
101
111
29

query I rowsort
SELECT DISTINCT + 80 + - 70 * - - 94 AS col1 FROM tab2
----
-6500

query I rowsort
SELECT ALL - 81 FROM tab2 WHERE NOT NULL > - - 68
----

query I rowsort
SELECT DISTINCT - col0 * + + col1 AS col1 FROM tab2
----
-2346
-4928
-5025

query II rowsort
SELECT col0 AS col0, + col0 * 57 * - + col2 FROM tab2 AS cor0
----
46
-60306
64
-145920
75
-247950

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT ALL + - MIN( ALL - 48 ) AS col1 FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-3629
SELECT ALL + - MIN ( ALL - 48 ) AS col1 FROM tab2 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-3630
SELECT - - 43 AS col0, COUNT( * ) FROM tab1 AS cor0
----
43
3

skipif mysql # not compatible
query II rowsort label-3630
SELECT - - 43 AS col0, COUNT ( * ) FROM tab1 AS cor0
----
43
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT + ( - COUNT( * ) ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3631
SELECT + ( - COUNT ( * ) ) AS col1 FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-3632
SELECT + + 59, - 85 * 12 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
59
-1017

skipif mysql # not compatible
query II rowsort label-3632
SELECT + + 59, - 85 * 12 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
59
-1017

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 79 = NULL
----

query I rowsort
SELECT col2 + - 61 AS col1 FROM tab1
----
-2
35
7

query I rowsort
SELECT + 11 + + ( - col1 - - col0 ) FROM tab0
----
-55
107
77

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col1 / - col1 ) = + 71
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3637
SELECT ALL + SUM( ALL - col1 ) * MIN( DISTINCT - 99 * CAST( NULL AS SIGNED ) + + 65 ) + + MAX( + 33 + + col2 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3637
SELECT ALL + SUM ( ALL - col1 ) * MIN ( DISTINCT - 99 * CAST ( NULL AS INTEGER ) + + 65 ) + + MAX ( + 33 + + col2 ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT - MIN( DISTINCT col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-3638
SELECT - MIN ( DISTINCT col0 ) FROM tab1
----
-51

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 NOT IN ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3640
SELECT MAX( 76 ) AS col2 FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-3640
SELECT MAX ( 76 ) AS col2 FROM tab0
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3641
SELECT DISTINCT - CAST( + AVG ( + 94 ) AS SIGNED ) FROM tab2
----
-94

skipif mysql # not compatible
query I rowsort label-3641
SELECT DISTINCT - CAST ( + AVG ( + 94 ) AS INTEGER ) FROM tab2
----
-94

query I rowsort
SELECT + col0 - 47 FROM tab0
----
-32
40
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3643
SELECT + CAST( NULL AS SIGNED ) + - col0 FROM tab2 WHERE NOT - col2 <> NULL
----

skipif mysql # not compatible
query I rowsort label-3643
SELECT + CAST ( NULL AS INTEGER ) + - col0 FROM tab2 WHERE NOT - col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT ALL COUNT( ALL col0 ) * ( + COUNT( * ) ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-3644
SELECT ALL COUNT ( ALL col0 ) * ( + COUNT ( * ) ) FROM tab0
----
9

query I rowsort
SELECT + 91 AS col0 FROM tab0 WHERE ( - col1 + ( - col2 ) ) BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT ( + MAX( 88 ) ) * COUNT( * ) AS col2 FROM tab0
----
264

skipif mysql # not compatible
query I rowsort label-3646
SELECT ( + MAX ( 88 ) ) * COUNT ( * ) AS col2 FROM tab0
----
264

query I rowsort
SELECT ALL + 91 * + 24 AS col1 FROM tab1 WHERE ( col0 + + 18 ) IS NULL
----

query I rowsort
SELECT 29 * + 82 FROM tab0
----
2378
2378
2378

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) >= + col1
----

query I rowsort
SELECT 35 * ( 82 ) AS col2 FROM tab2
----
2870
2870
2870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3651
SELECT ALL CAST( NULL AS SIGNED ) - - COUNT( * ) * COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3651
SELECT ALL CAST ( NULL AS INTEGER ) - - COUNT ( * ) * COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT ( col2 ) * + 62 FROM tab0
----
2914
6138
620

query I rowsort
SELECT col2 + + 84 FROM tab2
----
107
124
142

query I rowsort
SELECT + col2 * 18 + - col0 AS col1 FROM tab0
----
1685
831
93

query I rowsort
SELECT ALL + col1 + col0 * col0 AS col2 FROM tab2 cor0
----
2167
4173
5692

query I rowsort
SELECT DISTINCT + ( col2 ) + col1 * + col0 FROM tab1 cor0 WHERE NOT col0 <> NULL
----

query I rowsort
SELECT ALL 54 AS col2 FROM tab0 cor0
----
54
54
54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3658
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 = CAST( NULL AS SIGNED ) * col1
----

skipif mysql # not compatible
query III rowsort label-3658
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 = CAST ( NULL AS INTEGER ) * col1
----

query I rowsort
SELECT DISTINCT 5 + col2 AS col1 FROM tab2 cor0 WHERE NOT col2 BETWEEN 42 + - col0 AND + 70 - - col0 * + col2
----

query I rowsort
SELECT col0 * ( 23 ) FROM tab0 AS cor0
----
2001
2231
345

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 WHERE NOT NULL IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT - 19 - + col1 AS col2 FROM tab0
----
-100
-20
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3663
SELECT ALL 29 DIV 36 + + MAX( ALL 84 ) FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-3663
SELECT ALL 29 / 36 + + MAX ( ALL 84 ) FROM tab1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
SELECT + COUNT( DISTINCT col1 ) + + 74 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-3664
SELECT + COUNT ( DISTINCT col1 ) + + 74 FROM tab1 AS cor0
----
77

query I rowsort
SELECT DISTINCT - col2 - - col2 * + col2 AS col0 FROM tab1 AS cor0
----
3422
4556
9120

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3666
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND - col0 * col2
----

skipif mysql # not compatible
query III rowsort label-3666
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND - col0 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT COUNT( col0 ) + + 89 * COUNT( * ) FROM tab1 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-3667
SELECT COUNT ( col0 ) + + 89 * COUNT ( * ) FROM tab1 AS cor0
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT ALL - MIN( DISTINCT - 76 ) AS col2 FROM tab0 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-3668
SELECT ALL - MIN ( DISTINCT - 76 ) AS col2 FROM tab0 AS cor0
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-3669
SELECT + - col2 + - col0 DIV + 59 AS col0 FROM tab1 AS cor0
----
-60
-69
-96

skipif mysql # not compatible
query I rowsort label-3669
SELECT + - col2 + - col0 / + 59 AS col0 FROM tab1 AS cor0
----
-60
-69
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3670
SELECT COUNT( * ) DIV + 52 FROM tab2 AS cor0 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3670
SELECT COUNT ( * ) / + 52 FROM tab2 AS cor0 WHERE NULL < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT ALL COUNT( * ) FROM tab0 cor0 WHERE NOT ( - col1 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3671
SELECT ALL COUNT ( * ) FROM tab0 cor0 WHERE NOT ( - col1 ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT 57 * - SUM( ALL - col1 ) * + 54 AS col0 FROM tab1
----
203148

skipif mysql # not compatible
query I rowsort label-3672
SELECT 57 * - SUM ( ALL - col1 ) * + 54 AS col0 FROM tab1
----
203148

onlyif mysql # DIV for integer division: 
query I rowsort label-3673
SELECT - col0 DIV + + col1 AS col1 FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-3673
SELECT - col0 / + + col1 AS col1 FROM tab0
----
-4
-97
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3674
SELECT 18 FROM tab1 WHERE NOT CAST( col2 AS SIGNED ) / col0 + - 17 = + col2
----
18
18
18

skipif mysql # not compatible
query I rowsort label-3674
SELECT 18 FROM tab1 WHERE NOT CAST ( col2 AS INTEGER ) / col0 + - 17 = + col2
----
18
18
18

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( col0 + - 37 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IS NULL OR NOT NULL NOT IN ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 * + - col1 FROM tab0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT DISTINCT 4 * MIN( - col2 ) + MAX( col0 ) FROM tab1 WHERE NOT NULL > + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3678
SELECT DISTINCT 4 * MIN ( - col2 ) + MAX ( col0 ) FROM tab1 WHERE NOT NULL > + col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT DISTINCT MAX( + - 51 ) col1 FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3679
SELECT DISTINCT MAX ( + - 51 ) col1 FROM tab0 AS cor0
----
-51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = + 8
----

query I rowsort
SELECT ALL + col1 + col1 * 5 FROM tab2 WHERE NOT ( NULL IS NOT NULL )
----
306
402
462

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3682
SELECT ALL CAST( NULL AS SIGNED ) + 57 FROM tab0 WHERE NOT ( NULL ) NOT IN ( - 79 + - CAST( + 11 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3682
SELECT ALL CAST ( NULL AS INTEGER ) + 57 FROM tab0 WHERE NOT ( NULL ) NOT IN ( - 79 + - CAST ( + 11 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT - 13 - COUNT( col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( 25 ) IN ( - col2 * 75 )
----
-16

skipif mysql # not compatible
query I rowsort label-3683
SELECT - 13 - COUNT ( col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( 25 ) IN ( - col2 * 75 )
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3684
SELECT - + 8 + - CAST( NULL AS SIGNED ) * - + MAX( + 53 ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3684
SELECT - + 8 + - CAST ( NULL AS INTEGER ) * - + MAX ( + 53 ) AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 29 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + col0 AS col0, + col2 - col2 AS col1 FROM tab1 AS cor0
----
51
0
85
0
91
0

query I rowsort
SELECT + + col1 * - + col0 AS col2 FROM tab2 cor0
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3688
SELECT ALL - 85 AS col1, CAST( NULL AS SIGNED ) * 71 + col0 AS col2 FROM tab0 AS cor0
----
-85
NULL
-85
NULL
-85
NULL

skipif mysql # not compatible
query II rowsort label-3688
SELECT ALL - 85 AS col1, CAST ( NULL AS INTEGER ) * 71 + col0 AS col2 FROM tab0 AS cor0
----
-85
NULL
-85
NULL
-85
NULL

query I rowsort
SELECT ALL - + col2 * + col1 * + col0 + ( col1 + 10 ) * 5 FROM tab2 AS cor0
----
-196685
-291065
-53653

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( - col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3690
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( - col2 ) IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col1 * col0 ) IS NULL
----

query I rowsort
SELECT - 71 AS col0 FROM tab0 WHERE ( NULL ) < 74 + - - ( + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3693
SELECT ALL ( - - COUNT( * ) ) AS col2, CAST( 55 AS SIGNED ) + 46 FROM tab1
----
3
101

skipif mysql # not compatible
query II rowsort label-3693
SELECT ALL ( - - COUNT ( * ) ) AS col2, CAST ( 55 AS INTEGER ) + 46 FROM tab1
----
3
101

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 51 > NULL
----

query I rowsort
SELECT DISTINCT col0 + 33 * col1 AS col0 FROM tab2
----
1729
2286
2605

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT - MIN( col2 ) AS col0 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-3696
SELECT - MIN ( col2 ) AS col0 FROM tab0
----
-10

query II rowsort
SELECT ALL + 26 + - 75 AS col0, ( + - col0 ) FROM tab1
----
-49
-51
-49
-85
-49
-91

query I rowsort
SELECT col0 * - + col0 + - - 78 + col0 FROM tab1 AS cor0
----
-2472
-7062
-8112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 58 * + col1 * 84 col0 FROM tab0 AS cor0
----
102322
394679
4971

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * col2 NOT BETWEEN - + col2 * col1 + col2 AND NULL
----

query I rowsort
SELECT ALL - 85 FROM tab2 AS cor0 WHERE ( - - col2 + 68 / col2 IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 91 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT ALL + MIN( DISTINCT col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-3703
SELECT ALL + MIN ( DISTINCT col0 ) FROM tab1
----
51

query I rowsort
SELECT ALL + col0 + + ( + col1 ) AS col2 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3705
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE + 98 BETWEEN NULL AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3705
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE + 98 BETWEEN NULL AND ( NULL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 col2 FROM tab0 AS cor0
----
-4
-4
-4

query I rowsort
SELECT + + col2 - + - col2 FROM tab0 AS cor0
----
198
20
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3708
SELECT DISTINCT + CAST( - + col2 AS SIGNED ) FROM tab1 cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-3708
SELECT DISTINCT + CAST ( - + col2 AS INTEGER ) FROM tab1 cor0
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-3709
SELECT + col0 DIV col1 * 33 AS col0 FROM tab0
----
0
132
3201

skipif mysql # not compatible
query I rowsort label-3709
SELECT + col0 / col1 * 33 AS col0 FROM tab0
----
0
132
3201

query I rowsort
SELECT 26 * + - col2 AS col0 FROM tab1
----
-1534
-1768
-2496

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT + COUNT( - - 18 ) * + - 54 FROM tab0
----
-162

skipif mysql # not compatible
query I rowsort label-3711
SELECT + COUNT ( - - 18 ) * + - 54 FROM tab0
----
-162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3712
SELECT 34 * + CAST( NULL AS SIGNED ) * + AVG ( ALL - col0 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3712
SELECT 34 * + CAST ( NULL AS INTEGER ) * + AVG ( ALL - col0 ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3713
SELECT DISTINCT col2 col0, col0 DIV + col0 col0 FROM tab0
----
10
1
47
1
99
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3713
SELECT DISTINCT col2 col0, col0 / + col0 col0 FROM tab0
----
10
1
47
1
99
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 92 * col0 * - - 31 >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 > col0
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3716
SELECT MIN( - 33 ) FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-3716
SELECT MIN ( - 33 ) FROM tab2 AS cor0
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3717
SELECT - 93 FROM tab1 AS cor0 WHERE NOT ( CAST( + ( col1 ) AS SIGNED ) ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-3717
SELECT - 93 FROM tab1 AS cor0 WHERE NOT ( CAST ( + ( col1 ) AS INTEGER ) ) >= NULL
----

query I rowsort
SELECT ALL + - col2 * - + col2 * - ( + - col0 ) AS col1 FROM tab2 AS cor0
----
102400
24334
252300

onlyif mysql # DIV for integer division: 
query I rowsort label-3719
SELECT DISTINCT - col1 DIV - 32 AS col1 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3719
SELECT DISTINCT - col1 / - 32 AS col1 FROM tab1 AS cor0
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3720
SELECT * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN + col0 AND ( + - 94 )
----

skipif mysql # not compatible
query III rowsort label-3720
SELECT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN + col0 AND ( + - 94 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3721
SELECT col0 * + col0 / - CAST( NULL AS SIGNED ) AS col2, - 48 AS col1 FROM tab2
----
NULL
-48
NULL
-48
NULL
-48

skipif mysql # not compatible
query II rowsort label-3721
SELECT col0 * + col0 / - CAST ( NULL AS INTEGER ) AS col2, - 48 AS col1 FROM tab2
----
NULL
-48
NULL
-48
NULL
-48

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NULL NOT BETWEEN - - col1 AND - 65
----

query II rowsort
SELECT ALL - 81 * 77 * - 86 AS col1, col2 + - + col1 FROM tab0
----
536382
-11
536382
-34
536382
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 col1 FROM tab0 AS cor0 WHERE NOT ( ( NULL BETWEEN ( - 29 * - - 87 ) AND + 21 + col2 * + col1 ) )
----

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3726
SELECT ALL + COUNT( * ) + + 30 DIV + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NOT ( + col1 ) IS NOT NULL )
----
13

skipif mysql # not compatible
query I rowsort label-3726
SELECT ALL + COUNT ( * ) + + 30 / + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NOT ( + col1 ) IS NOT NULL )
----
13

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 NOT IN ( + col1 + ( + 26 ) )
----

query I rowsort
SELECT + 42 AS col1 FROM tab1 AS cor0 WHERE - ( - col0 ) * + + 28 > - - col1
----
42
42
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT - SUM( ALL + 44 ) + 89 AS col0 FROM tab2 AS cor0 WHERE col1 > ( + col2 + - + col2 * + col1 )
----
-43

skipif mysql # not compatible
query I rowsort label-3729
SELECT - SUM ( ALL + 44 ) + 89 AS col0 FROM tab2 AS cor0 WHERE col1 > ( + col2 + - + col2 * + col1 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT DISTINCT - COUNT( * ) + + 88 AS col0 FROM tab0 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-3730
SELECT DISTINCT - COUNT ( * ) + + 88 AS col0 FROM tab0 AS cor0
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3731
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 = + + col0 * + ( + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3731
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 = + + col0 * + ( + - CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 52 + 98 col0, 98 FROM tab0 cor0
----
46
98
46
98
46
98

query I rowsort
SELECT - 80 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-80
-80
-80

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 18 < NULL
----

query I rowsort
SELECT - 65 + + 24 + + ( 97 ) AS col1 FROM tab0 AS cor0
----
56
56
56

query I rowsort
SELECT col0 + 21 * col1 FROM tab2
----
1117
1482
1681

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3737
SELECT ALL - 92 DIV - + ( + COUNT( * ) ) AS col1 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-3737
SELECT ALL - 92 / - + ( + COUNT ( * ) ) AS col1 FROM tab2
----
30

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3738
SELECT * FROM tab1 WHERE - CAST( col2 AS DECIMAL ) * + 54 * + ( + col2 ) + - col0 - col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3738
SELECT * FROM tab1 WHERE - CAST ( col2 AS REAL ) * + 54 * + ( + col2 ) + - col0 - col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - + 75 + - col0 + + 65 * 81 - - + col0 / + col2 * ( col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 10 + col2 AS col1 FROM tab0
----
109
20
57

query I rowsort
SELECT ALL 73 * + col0 AS col2 FROM tab0 WHERE 50 / 15 IS NULL
----

query I rowsort
SELECT ALL 80 + + col1 FROM tab2
----
131
147
157

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, col0 col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT + 2 * + 65 AS col0 FROM tab2 cor0
----
130
130
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3746
SELECT - col1 - - ( + CAST( - + col2 AS SIGNED ) ) FROM tab0 AS cor0
----
-100
-128
-31

skipif mysql # not compatible
query I rowsort label-3746
SELECT - col1 - - ( + CAST ( - + col2 AS INTEGER ) ) FROM tab0 AS cor0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT ALL MAX( 91 ) * + MAX( + - 93 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-8463

skipif mysql # not compatible
query I rowsort label-3747
SELECT ALL MAX ( 91 ) * + MAX ( + - 93 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-8463

query III rowsort
SELECT * FROM tab2 WHERE - 42 * + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT + - MIN( DISTINCT 90 ) FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-3749
SELECT + - MIN ( DISTINCT 90 ) FROM tab0 AS cor0
----
-90

query I rowsort
SELECT DISTINCT + + 68 * - col2 FROM tab2 AS cor0
----
-1564
-2720
-3944

onlyif mysql # DIV for integer division: 
query I rowsort label-3751
SELECT ALL + col0 DIV - - col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3751
SELECT ALL + col0 / - - col2 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3752
SELECT - CAST( + COUNT( col2 ) AS SIGNED ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3752
SELECT - CAST ( + COUNT ( col2 ) AS INTEGER ) FROM tab2 cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN 68 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT SUM( ALL + col2 ) FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-3754
SELECT SUM ( ALL + col2 ) FROM tab2 cor0
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3755
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 NOT IN ( - CAST( NULL AS SIGNED ), col2 + - 58 * + + 1 * col0 * - - ( + col0 ) )
----

skipif mysql # not compatible
query III rowsort label-3755
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 NOT IN ( - CAST ( NULL AS INTEGER ), col2 + - 58 * + + 1 * col0 * - - ( + col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 0 col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 29 AS col0 FROM tab0 AS cor0 WHERE + 59 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT DISTINCT - SUM( DISTINCT - + col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-3758
SELECT DISTINCT - SUM ( DISTINCT - + col2 ) FROM tab1 AS cor0
----
223

query I rowsort
SELECT - 32 * - col0 * + - col0 AS col2 FROM tab1 AS cor0
----
-231200
-264992
-83232

query I rowsort
SELECT ALL - col0 AS col2 FROM tab0 WHERE - col0 IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 WHERE NOT 71 IS NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3762
SELECT DISTINCT - col0, CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-3762
SELECT DISTINCT - col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

query I rowsort
SELECT col1 * 58 AS col1 FROM tab1 AS cor0
----
2726
290
812

query I rowsort
SELECT ALL + 59 * - + col0 FROM tab2 AS cor0
----
-2714
-3776
-4425

query II rowsort
SELECT col2 AS col2, col2 * col1 FROM tab1 AS cor0
----
59
295
68
3196
96
1344

query I rowsort
SELECT ( - col2 ) + + 17 - + col2 FROM tab2
----
-29
-63
-99

query I rowsort
SELECT DISTINCT - col2 * + - col2 AS col1 FROM tab1
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT ALL - + SUM( - - col0 ) * + 61 FROM tab1 AS cor0
----
-13847

skipif mysql # not compatible
query I rowsort label-3768
SELECT ALL - + SUM ( - - col0 ) * + 61 FROM tab1 AS cor0
----
-13847

query I rowsort
SELECT col0 * - col1 * col2 FROM tab2 AS cor0
----
-197120
-291450
-53958

query I rowsort
SELECT - 39 * - + ( - 49 ) FROM tab1 AS cor0
----
-1911
-1911
-1911

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3771
SELECT ALL col0 * - 10 + + CAST( + - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-506
-704
-825

skipif mysql # not compatible
query I rowsort label-3771
SELECT ALL col0 * - 10 + + CAST ( + - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-506
-704
-825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * + 71 * col2 col2 FROM tab2 cor0
----
218680
275906
83283

query I rowsort
SELECT DISTINCT - 5 * col0 AS col0 FROM tab2 AS cor0
----
-230
-320
-375

query I rowsort
SELECT + - 8 AS col2 FROM tab1 AS cor0 WHERE + 10 IS NOT NULL
----
-8
-8
-8

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col2 / - 56 < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col1, + ( - 13 ) col0 FROM tab1 AS cor0
----
51
-13
85
-13
91
-13

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE + 61 NOT IN ( - + 73 + 1 )
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3778
SELECT ALL + col2 DIV - ( - + 49 ) FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3778
SELECT ALL + col2 / - ( - + 49 ) FROM tab1
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 73 IS NULL
----

query I rowsort
SELECT + col1 - + + ( - - 86 ) FROM tab1
----
-39
-72
-81

query II rowsort
SELECT DISTINCT - col0 + - - col0 AS col0, col1 AS col0 FROM tab1
----
0
14
0
47
0
5

query I rowsort
SELECT - col2 * - + col1 - col2 FROM tab2
----
1150
3040
3828

query I rowsort
SELECT - 23 - + col2 + - + col2 AS col2 FROM tab2
----
-103
-139
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3784
SELECT CAST( NULL AS SIGNED ) + - + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3784
SELECT CAST ( NULL AS INTEGER ) + - + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + + + ( + col1 ) FROM tab0
----
108
96
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3786
SELECT ALL - ( + - col2 ) + CAST( NULL AS SIGNED ) / - + col0 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-3786
SELECT ALL - ( + - col2 ) + CAST ( NULL AS INTEGER ) / - + col0 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + - col1 - - col0 * + 49, + 27 AS col0 FROM tab2 AS cor0
----
2203
27
3059
27
3608
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3788
SELECT ALL MAX( ALL col1 ) col1 FROM tab0 cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3788
SELECT ALL MAX ( ALL col1 ) col1 FROM tab0 cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT DISTINCT MIN( 17 ) FROM tab1 cor0
----
17

skipif mysql # not compatible
query I rowsort label-3789
SELECT DISTINCT MIN ( 17 ) FROM tab1 cor0
----
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, + 8 * 29 FROM tab1 AS cor0
----
14
232
47
232
5
232

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 40 * - col1 * 25 col1, col2 FROM tab0 AS cor0
----
1000
99
21000
10
81000
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col2 col0, + 12 + - 45 + - + col1 AS col1 FROM tab2 AS cor0
----
23
-84
40
-110
58
-100

onlyif mysql # DIV for integer division: 
query I rowsort label-3793
SELECT DISTINCT - col0 DIV + - 36 AS col2 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-3793
SELECT DISTINCT - col0 / + - 36 AS col2 FROM tab2 AS cor0
----
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3794
SELECT CAST( NULL AS SIGNED ) FROM tab2 cor0 WHERE NOT 53 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3794
SELECT CAST ( NULL AS INTEGER ) FROM tab2 cor0 WHERE NOT 53 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + + 88 AS col1 FROM tab0 AS cor0
----
88
88
88

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3796
SELECT + col1 * + col1, - CAST( NULL AS DECIMAL ) * + col0 col0 FROM tab2
----
2601
NULL
4489
NULL
5929
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3796
SELECT + col1 * + col1, - CAST ( NULL AS REAL ) * + col0 col0 FROM tab2
----
2601
NULL
4489
NULL
5929
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - 99 - - col1 + - + 23
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT DISTINCT - SUM( DISTINCT 79 ) AS col2 FROM tab1
----
-79

skipif mysql # not compatible
query I rowsort label-3798
SELECT DISTINCT - SUM ( DISTINCT 79 ) AS col2 FROM tab1
----
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 41 col2 FROM tab0
----
-3567
-3977
-615

query I rowsort
SELECT 84 AS col1 FROM tab0 WHERE NOT + + col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT + 76 * MIN( ALL + - col2 ) FROM tab0
----
-7524

skipif mysql # not compatible
query I rowsort label-3801
SELECT + 76 * MIN ( ALL + - col2 ) FROM tab0
----
-7524

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT COUNT( ALL - 77 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3802
SELECT COUNT ( ALL - 77 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3803
SELECT ALL SUM( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3803
SELECT ALL SUM ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - - 12 AS col0 FROM tab1 cor0
----
12
12
12

query I rowsort
SELECT - + 46 AS col2 FROM tab2 AS cor0
----
-46
-46
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT - MAX( ALL + col1 ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3806
SELECT - MAX ( ALL + col1 ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col1 * - col0 NOT BETWEEN NULL AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT ALL - 96 + - COUNT( * ) FROM tab2 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3808
SELECT ALL - 96 + - COUNT ( * ) FROM tab2 cor0
----
-99

query I rowsort
SELECT col0 * + + col1 + - ( - + col1 ) AS col0 FROM tab0 AS cor0
----
1296
1848
98

query I rowsort
SELECT - + 37 FROM tab0 AS cor0 WHERE NULL BETWEEN + col0 AND NULL
----

query I rowsort
SELECT + + col2 + - + col0 FROM tab1 AS cor0
----
-23
-26
45

query I rowsort
SELECT 38 * - col1 + + - col1 + + col2 FROM tab0 AS cor0
----
-3112
-809
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3813
SELECT - ( - ( CAST( 15 AS SIGNED ) ) ) + ( + col1 ) + - col0 AS col1 FROM tab2 AS cor0
----
20
28
7

skipif mysql # not compatible
query I rowsort label-3813
SELECT - ( - ( CAST ( 15 AS INTEGER ) ) ) + ( + col1 ) + - col0 AS col1 FROM tab2 AS cor0
----
20
28
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT DISTINCT MAX( - 27 ) AS col2 FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-3814
SELECT DISTINCT MAX ( - 27 ) AS col2 FROM tab2 AS cor0
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3815
SELECT col0 + - CAST( NULL AS SIGNED ) * + col2 - 37 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3815
SELECT col0 + - CAST ( NULL AS INTEGER ) * + col2 - 37 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3817
SELECT - + ( - col1 ) / + + CAST( NULL AS SIGNED ) + col2 - + ( 92 ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3817
SELECT - + ( - col1 ) / + + CAST ( NULL AS INTEGER ) + col2 - + ( 92 ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * - col2 + + ( + + col1 ) AS col2 FROM tab2
----
-1007
-2483
-4283

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col2, col2 col0 FROM tab1
----
51
96
85
59
91
68

onlyif mysql # DIV for integer division: 
query I rowsort label-3820
SELECT + 95 DIV - col2 + - - col2 * - + 17 AS col0 FROM tab0
----
-1683
-179
-801

skipif mysql # not compatible
query I rowsort label-3820
SELECT + 95 / - col2 + - - col2 * - + 17 AS col0 FROM tab0
----
-1683
-179
-801

query I rowsort
SELECT - col0 * - 66 - + col0 FROM tab2 AS cor0 WHERE 60 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3822
SELECT ALL 60 DIV + 35 - + 23 FROM tab0 AS cor0
----
-22
-22
-22

skipif mysql # not compatible
query I rowsort label-3822
SELECT ALL 60 / + 35 - + 23 FROM tab0 AS cor0
----
-22
-22
-22

query I rowsort
SELECT - - col1 - + col1 + 50 AS col1 FROM tab1 AS cor0
----
50
50
50

query I rowsort
SELECT + col1 + + - 0 FROM tab1 AS cor0 WHERE - 0 IS NULL
----

query II rowsort
SELECT ALL + - ( + col2 ) - 13 * col2 * + - 18 * col2, col1 FROM tab2 AS cor0
----
123763
51
374360
77
787118
67

query II rowsort
SELECT DISTINCT + col1 AS col2, 66 AS col1 FROM tab0 AS cor0
----
1
66
21
66
81
66

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 45 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + col0 * col2 * - col1 + 22 FROM tab2 AS cor0
----
197142
291472
53980

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 5 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < - ( + - col2 ) + - - col1
----

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT + col0 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3832
SELECT DISTINCT - - col0 DIV - - col0 + + col1 AS col2 FROM tab1 AS cor0
----
15
48
6

skipif mysql # not compatible
query I rowsort label-3832
SELECT DISTINCT - - col0 / - - col0 + + col1 AS col2 FROM tab1 AS cor0
----
15
48
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3833
SELECT + MIN( col0 ) DIV - COUNT( * ) FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3833
SELECT + MIN ( col0 ) / - COUNT ( * ) FROM tab0 AS cor0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-3834
SELECT ALL - 54 DIV col0 * + col1 FROM tab0 AS cor0
----
-243
0
0

skipif mysql # not compatible
query I rowsort label-3834
SELECT ALL - 54 / col0 * + col1 FROM tab0 AS cor0
----
-243
0
0

query II rowsort
SELECT ALL 59 / + col1 AS col2, 41 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3836
SELECT + - CAST( - col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3836
SELECT + - CAST ( - col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT + + 93 AS col2 FROM tab1 AS cor0
----
93
93
93

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 + + 86 >= NULL
----

query I rowsort
SELECT ( 97 ) AS col0 FROM tab2 AS cor0
----
97
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT ALL MAX( - + 98 ) FROM tab0, tab1 cor0
----
-98

skipif mysql # not compatible
query I rowsort label-3840
SELECT ALL MAX ( - + 98 ) FROM tab0, tab1 cor0
----
-98

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 <> - 84
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3842
SELECT DISTINCT * FROM tab1 WHERE NOT - - CAST( NULL AS DECIMAL ) = NULL
----

skipif mysql # not compatible
query III rowsort label-3842
SELECT DISTINCT * FROM tab1 WHERE NOT - - CAST ( NULL AS REAL ) = NULL
----

query I rowsort
SELECT ALL ( + + col0 ) AS col1 FROM tab0
----
15
87
97

query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3845
SELECT ALL + 59 DIV - 31 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3845
SELECT ALL + 59 / - 31 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3846
SELECT DISTINCT CAST( 40 AS SIGNED ) FROM tab0 cor0
----
40

skipif mysql # not compatible
query I rowsort label-3846
SELECT DISTINCT CAST ( 40 AS INTEGER ) FROM tab0 cor0
----
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 col2 FROM tab0 WHERE NULL IS NULL
----
-1
-21
-81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL >= + col0
----

query II rowsort
SELECT + - col0 * col2, - col1 AS col0 FROM tab1 cor0
----
-4896
-14
-5015
-5
-6188
-47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 * col2 + + + col1 * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 10 - + + 87 FROM tab2 AS cor0
----
-97
-97
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 41 * + + col1 col2 FROM tab2 AS cor0
----
-2091
-2747
-3157

query I rowsort
SELECT ALL 30 + - 63 FROM tab1
----
-33
-33
-33

query I rowsort
SELECT - col0 - col1 - - - 73 + - col2 AS col2 FROM tab2
----
-193
-254
-273

query II rowsort
SELECT DISTINCT col2 * - 9 + + 98 AS col2, - col2 FROM tab1
----
-433
-59
-514
-68
-766
-96

query I rowsort
SELECT DISTINCT - 21 + + 92 - + - 6 FROM tab2
----
77

query I rowsort
SELECT ALL + 78 FROM tab2 WHERE + - col1 IS NOT NULL
----
78
78
78

onlyif mysql # DIV for integer division: 
query II rowsort label-3858
SELECT ALL 87 - + + 78 DIV - 22, col0 AS col0 FROM tab2 WHERE NOT ( - col2 ) IS NULL
----
90
46
90
64
90
75

skipif mysql # not compatible
query II rowsort label-3858
SELECT ALL 87 - + + 78 / - 22, col0 AS col0 FROM tab2 WHERE NOT ( - col2 ) IS NULL
----
90
46
90
64
90
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT DISTINCT - COUNT( DISTINCT col0 ) - - 73 FROM tab1
----
70

skipif mysql # not compatible
query I rowsort label-3859
SELECT DISTINCT - COUNT ( DISTINCT col0 ) - - 73 FROM tab1
----
70

query I rowsort
SELECT ALL - - 26 AS col0 FROM tab2 cor0
----
26
26
26

query I rowsort
SELECT + 11 * - 44 AS col1 FROM tab1 cor0
----
-484
-484
-484

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND + ( - + col0 ) * + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3863
SELECT DISTINCT - + SUM( + CAST( NULL AS SIGNED ) ) * 76 / COUNT( * ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3863
SELECT DISTINCT - + SUM ( + CAST ( NULL AS INTEGER ) ) * 76 / COUNT ( * ) FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT ALL COUNT( * ) * 83 col1 FROM tab0
----
249

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3864
SELECT ALL COUNT ( * ) * 83 col1 FROM tab0
----
249

onlyif mysql # aggregate syntax: 
query II rowsort label-3865
SELECT 48, SUM( ALL col2 ) AS col1 FROM tab0
----
48
156

skipif mysql # not compatible
query II rowsort label-3865
SELECT 48, SUM ( ALL col2 ) AS col1 FROM tab0
----
48
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3866
SELECT ( + - CAST( NULL AS SIGNED ) ) * + - 80 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3866
SELECT ( + - CAST ( NULL AS INTEGER ) ) * + - 80 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3867
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3867
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3868
SELECT ALL COUNT( * ), CAST( 20 AS SIGNED ) col2 FROM tab0
----
3
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3868
SELECT ALL COUNT ( * ), CAST ( 20 AS INTEGER ) col2 FROM tab0
----
3
20

query II rowsort
SELECT DISTINCT - 62, 13 + - col0 AS col1 FROM tab2 cor0
----
-62
-33
-62
-51
-62
-62

query I rowsort
SELECT ALL + + col1 * + + col1 FROM tab1 AS cor0
----
196
2209
25

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 9 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL 47 AS col0, 98 FROM tab0 cor0
----
47
98
47
98
47
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3873
SELECT ( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3873
SELECT ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3874
SELECT DISTINCT + ( + CAST( + + COUNT( * ) AS SIGNED ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3874
SELECT DISTINCT + ( + CAST ( + + COUNT ( * ) AS INTEGER ) ) AS col0 FROM tab0
----
3

query I rowsort
SELECT col1 * 71 FROM tab1
----
3337
355
994

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col0 * - col2 col2 FROM tab0
----
-690
-783
-9506

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT ALL MIN( ALL col1 ) FROM tab2 WHERE NOT - ( col1 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3877
SELECT ALL MIN ( ALL col1 ) FROM tab2 WHERE NOT - ( col1 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT COUNT( * ) + - 49 + + COUNT( * ) FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-3878
SELECT COUNT ( * ) + - 49 + + COUNT ( * ) FROM tab2
----
-43

query II rowsort
SELECT col2 + + col1 AS col1, - 74 FROM tab0
----
100
-74
128
-74
31
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 18 col1 FROM tab0 cor0
----
-18
-18
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3881
SELECT CAST( + + col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3881
SELECT CAST ( + + col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT + - col0 * - col2 * + col0 * + col0 AS col0 FROM tab0 cor0
----
158625
6585030
90354627

query I rowsort
SELECT ALL - col2 * + 54 AS col0 FROM tab2
----
-1242
-2160
-3132

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT ALL 21 + + + COUNT( * ) AS col0 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-3884
SELECT ALL 21 + + + COUNT ( * ) AS col0 FROM tab0
----
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col0, - 39 col0 FROM tab1 AS cor0
----
14
-39
47
-39
5
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-3886
SELECT ALL col0 + + + 14 + - 16 DIV ( + 96 ) AS col0 FROM tab1 AS cor0
----
105
65
99

skipif mysql # not compatible
query I rowsort label-3886
SELECT ALL col0 + + + 14 + - 16 / ( + 96 ) AS col0 FROM tab1 AS cor0
----
105
65
99

query I rowsort
SELECT + + 98 + + col1 FROM tab1 AS cor0
----
103
112
145

query II rowsort
SELECT + + 84 + + + 38 + 53, 9 AS col0 FROM tab0 AS cor0
----
175
9
175
9
175
9

query I rowsort
SELECT + + col0 + + 54 FROM tab1 AS cor0
----
105
139
145

query II rowsort
SELECT 47, col1 FROM tab1 AS cor0
----
47
14
47
47
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT ALL ( + MIN( + col0 ) ) AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-3891
SELECT ALL ( + MIN ( + col0 ) ) AS col2 FROM tab1
----
51

query I rowsort
SELECT ALL col1 + + col0 - + col1 + + col0 * + col2 * col0 FROM tab2
----
163904
326325
48714

query I rowsort
SELECT ALL - 45 + + 37 FROM tab1, tab0 AS cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT - MAX( - - 84 ) AS col1 FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-3894
SELECT - MAX ( - - 84 ) AS col1 FROM tab0 AS cor0
----
-84

query I rowsort
SELECT DISTINCT ( ( ( - col2 ) ) ) * 76 * - + col2 AS col0 FROM tab0
----
167884
744876
7600

query II rowsort
SELECT ALL + col0 AS col2, - col2 AS col2 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, col1 + col1 col2 FROM tab1 AS cor0
----
-59
10
-68
94
-96
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT MAX( - ( + col0 ) ) * - 15 AS col1 FROM tab1 AS cor0
----
765

skipif mysql # not compatible
query I rowsort label-3898
SELECT MAX ( - ( + col0 ) ) * - 15 AS col1 FROM tab1 AS cor0
----
765

query I rowsort
SELECT - 69 + 46 + - - col1 * - col1 / + col2 FROM tab0 AS cor0 WHERE NOT col0 > ( NULL )
----

query I rowsort
SELECT + 29 AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col1 AND ( 97 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3901
SELECT - + 10 DIV - - 8 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3901
SELECT - + 10 / - - 8 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3902
SELECT ALL + CAST( + + 10 AS SIGNED ) FROM tab2 AS cor0
----
10
10
10

skipif mysql # not compatible
query I rowsort label-3902
SELECT ALL + CAST ( + + 10 AS INTEGER ) FROM tab2 AS cor0
----
10
10
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3903
SELECT ALL - MAX( - col2 ) * - CAST( + 98 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-5782

skipif mysql # not compatible
query I rowsort label-3903
SELECT ALL - MAX ( - col2 ) * - CAST ( + 98 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-5782

query III rowsort
SELECT * FROM tab0 WHERE NOT 15 + - + col2 - + 34 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3905
SELECT ALL 29 DIV + + col2 + col2 + - col2 * - col0 * col1 FROM tab1
----
25134
290904
68640

skipif mysql # not compatible
query I rowsort label-3905
SELECT ALL 29 / + + col2 + col2 + - col2 * - col0 * col1 FROM tab1
----
25134
290904
68640

onlyif mysql # DIV for integer division: 
query II rowsort label-3906
SELECT + 60 col0, + col2 DIV ( - col2 ) AS col0 FROM tab1
----
60
-1
60
-1
60
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3906
SELECT + 60 col0, + col2 / ( - col2 ) AS col0 FROM tab1
----
60
-1
60
-1
60
-1

query I rowsort
SELECT ALL + ( 99 ) + + 35 * - 66 FROM tab0
----
-2211
-2211
-2211

query I rowsort
SELECT ALL ( - ( - col0 ) ) AS col0 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT ALL + 92 + - COUNT( + - col0 ) FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-3909
SELECT ALL + 92 + - COUNT ( + - col0 ) FROM tab0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3910
SELECT DISTINCT * FROM tab0 WHERE col2 / - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3910
SELECT DISTINCT * FROM tab0 WHERE col2 / - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 13 * + 87 AS col0 FROM tab1
----
1131

query I rowsort
SELECT 95 * + - col0 * - ( + - col2 ) FROM tab1
----
-465120
-476425
-587860

query I rowsort
SELECT DISTINCT + 59 + - col0 FROM tab2
----
-16
-5
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3914
SELECT col0 * + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3914
SELECT col0 * + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3915
SELECT + + 0 + + - CAST( NULL AS SIGNED ) col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3915
SELECT + + 0 + + - CAST ( NULL AS INTEGER ) col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( - col2 ) + col0 AS col2 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT - - 46 + col2 FROM tab0 AS cor0
----
145
56
93

query I rowsort
SELECT ALL - col1 * - - 36 AS col2 FROM tab2 AS cor0
----
-1836
-2412
-2772

query I rowsort
SELECT ALL 37 * - 7 + - 17 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 867465b304f7084f4b30d734270d73ca

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT + COUNT( * ) FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3920
SELECT + COUNT ( * ) FROM tab1 WHERE NULL IS NULL
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 * col0 <= + col1 + - ( col1 )
----

query I rowsort
SELECT DISTINCT 79 AS col1 FROM tab1 AS cor0 WHERE NOT + col2 - + col2 + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * + - 74 col1, 36 FROM tab1 AS cor0
----
-3774
36
-6290
36
-6734
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3924
SELECT col0 - - col0 - + - col0 * - col2 * + CAST( - + 64 AS SIGNED ) FROM tab1 AS cor0
----
313446
321130
396214

skipif mysql # not compatible
query I rowsort label-3924
SELECT col0 - - col0 - + - col0 * - col2 * + CAST ( - + 64 AS INTEGER ) FROM tab1 AS cor0
----
313446
321130
396214

query I rowsort
SELECT DISTINCT + col2 * col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1600
3364
529

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3926
SELECT * FROM tab0 WHERE NOT col0 * - - CAST( 27 AS SIGNED ) + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3926
SELECT * FROM tab0 WHERE NOT col0 * - - CAST ( 27 AS INTEGER ) + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col2 * - col2 + 85 NOT BETWEEN NULL AND + 65 + 53
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT ( - + SUM( - col1 ) ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-3928
SELECT ( - + SUM ( - col1 ) ) FROM tab2
----
195

query I rowsort
SELECT ALL - + col2 + 45 AS col1 FROM tab1 WHERE - 15 IS NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT + 42 * - - col0 * - col1 FROM tab1
----
-17850
-179634
-29988

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) = - col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 < + - ( + + col2 )
----

query I rowsort
SELECT - 27 + - 92 * + col2 AS col0 FROM tab2 AS cor0
----
-2143
-3707
-5363

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT - COUNT( * ) * - 96 * + 83 * COUNT( DISTINCT - 89 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
23904

skipif mysql # not compatible
query I rowsort label-3935
SELECT - COUNT ( * ) * - 96 * + 83 * COUNT ( DISTINCT - 89 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
23904

query I rowsort
SELECT col1 * 54 + 3 AS col2 FROM tab1
----
2541
273
759

query I rowsort
SELECT ALL 41 + - 12 AS col1 FROM tab2
----
29
29
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3938
SELECT - CAST( NULL AS SIGNED ) + + 99 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3938
SELECT - CAST ( NULL AS INTEGER ) + + 99 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3939
SELECT + 65 AS col2, - col0 AS col0 FROM tab0 WHERE NULL NOT BETWEEN + - CAST( NULL AS SIGNED ) AND + CAST( NULL AS SIGNED ) * 1
----

skipif mysql # not compatible
query II rowsort label-3939
SELECT + 65 AS col2, - col0 AS col0 FROM tab0 WHERE NULL NOT BETWEEN + - CAST ( NULL AS INTEGER ) AND + CAST ( NULL AS INTEGER ) * 1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 30 * + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 - - col0 AS col1 FROM tab2 WHERE NULL = - col2
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( + 14 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 14 - - 89 FROM tab1
----
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 BETWEEN NULL AND + - 96
----

query I rowsort
SELECT 69 + col0 FROM tab2 AS cor0
----
115
133
144

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 14 BETWEEN NULL AND - col1 / - - col1
----

query I rowsort
SELECT ALL - 44 + + col0 AS col1 FROM tab0 AS cor0
----
-29
43
53

onlyif mysql # DIV for integer division: 
query I rowsort label-3948
SELECT DISTINCT - + col0 DIV - 11 AS col2 FROM tab2 AS cor0
----
4
5
6

skipif mysql # not compatible
query I rowsort label-3948
SELECT DISTINCT - + col0 / - 11 AS col2 FROM tab2 AS cor0
----
4
5
6

query I rowsort
SELECT ALL - ( 45 ) AS col2 FROM tab1 AS cor0
----
-45
-45
-45

query II rowsort
SELECT + + col0 AS col0, col1 AS col0 FROM tab1 AS cor0
----
51
14
85
5
91
47

query I rowsort
SELECT ALL 14 * 7 * 11 FROM tab2
----
1078
1078
1078

query I rowsort
SELECT ALL + 43 * + col0 FROM tab1
----
2193
3655
3913

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col0 ) >= + 49
----

query I rowsort
SELECT DISTINCT - ( + - ( + - col0 ) ) AS col0 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT ALL - 29 AS col0 FROM tab0
----
-29
-29
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT ( + ( COUNT( * ) ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3956
SELECT ( + ( COUNT ( * ) ) ) AS col2 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3957
SELECT DISTINCT AVG ( DISTINCT + col1 ) FROM tab1 AS cor0 WHERE NULL BETWEEN ( 22 + + CAST( NULL AS SIGNED ) ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3957
SELECT DISTINCT AVG ( DISTINCT + col1 ) FROM tab1 AS cor0 WHERE NULL BETWEEN ( 22 + + CAST ( NULL AS INTEGER ) ) AND NULL
----
NULL

query I rowsort
SELECT DISTINCT + col1 * - - col2 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT DISTINCT + ( + - 60 ) FROM tab0 AS cor0
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3960
SELECT DISTINCT + CAST( - + 65 AS SIGNED ) FROM tab2 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-3960
SELECT DISTINCT + CAST ( - + 65 AS INTEGER ) FROM tab2 AS cor0
----
-65

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN + 10 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 > - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3963
SELECT * FROM tab1 WHERE NOT + col2 BETWEEN ( - + 93 ) AND - + CAST( + col0 AS SIGNED ) - col2 + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3963
SELECT * FROM tab1 WHERE NOT + col2 BETWEEN ( - + 93 ) AND - + CAST ( + col0 AS INTEGER ) - col2 + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3964
SELECT CAST( NULL AS DECIMAL ) * col0 + - col0 + - - col2 / + - 67 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3964
SELECT CAST ( NULL AS REAL ) * col0 + - col0 + - - col2 / + - 67 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT - MAX( col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3965
SELECT - MAX ( col0 ) FROM tab2 AS cor0
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-3966
SELECT - col1 DIV - col2 AS col0 FROM tab0 cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3966
SELECT - col1 / - col2 AS col0 FROM tab0 cor0
----
0
1
2

query I rowsort
SELECT ALL - - 13 AS col1 FROM tab1 AS cor0
----
13
13
13

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 40 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 67 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 + - 10 FROM tab2 AS cor0
----
-56
-74
-85

query II rowsort
SELECT DISTINCT col0, + col0 * - + col0 FROM tab0 AS cor0
----
15
-225
87
-7569
97
-9409

query III rowsort
SELECT * FROM tab1 WHERE NULL >= + 19 / + col1
----

query I rowsort
SELECT col2 * ( - - col1 ) FROM tab0
----
210
3807
99

query I rowsort
SELECT ALL - 67 AS col0 FROM tab1 WHERE NULL IS NULL
----
-67
-67
-67

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 85 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL 38 + col2 AS col1, + col1 AS col2 FROM tab0
----
137
1
48
21
85
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3977
SELECT ALL + col0 * - + CAST( + + 41 AS SIGNED ) AS col1 FROM tab1
----
-2091
-3485
-3731

skipif mysql # not compatible
query I rowsort label-3977
SELECT ALL + col0 * - + CAST ( + + 41 AS INTEGER ) AS col1 FROM tab1
----
-2091
-3485
-3731

onlyif mysql # DIV for integer division: 
query I rowsort label-3978
SELECT col0 + 49 - col0 DIV - 93 * col0 col0 FROM tab2
----
113
124
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3978
SELECT col0 + 49 - col0 / - 93 * col0 col0 FROM tab2
----
113
124
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT SUM( + 44 ) + + COUNT( * ) AS col0 FROM tab2
----
135

skipif mysql # not compatible
query I rowsort label-3979
SELECT SUM ( + 44 ) + + COUNT ( * ) AS col0 FROM tab2
----
135

query I rowsort
SELECT - col1 * - + 81 + - 29 AS col1 FROM tab0
----
1672
52
6532

query I rowsort
SELECT DISTINCT + ( - + col2 ) - 85 FROM tab0 AS cor0
----
-132
-184
-95

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3982
SELECT * FROM tab2 WHERE + + col0 * - 10 - - col2 - - col1 NOT BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3982
SELECT * FROM tab2 WHERE + + col0 * - 10 - - col2 - - col1 NOT BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - 4 - - + col0 AS col0 FROM tab2
----
42
60
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT SUM( + - col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-3984
SELECT SUM ( + - col1 ) FROM tab0
----
-103

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 AS cor0 WHERE col1 + - 83 IS NOT NULL
----
51
85
91

query I rowsort
SELECT ALL - col1 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT - - MIN( + col0 ) AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3987
SELECT - - MIN ( + col0 ) AS col2 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT ALL - MAX( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-3988
SELECT ALL - MAX ( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
10

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + ( + 33 ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 39 col1 FROM tab1 AS cor0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3991
SELECT MIN( DISTINCT - 25 ) AS col2 FROM tab2 cor0
----
-25

skipif mysql # not compatible
query I rowsort label-3991
SELECT MIN ( DISTINCT - 25 ) AS col2 FROM tab2 cor0
----
-25

query II rowsort
SELECT - col0 * col2 AS col0, 46 * 37 AS col1 FROM tab1
----
-4896
1702
-5015
1702
-6188
1702

query II rowsort
SELECT DISTINCT col1, + 76 FROM tab1
----
14
76
47
76
5
76

query I rowsort
SELECT + - col0 AS col0 FROM tab2 WHERE NOT ( NOT col2 IS NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3995
SELECT ALL col2 DIV col1 AS col0, col1 AS col1 FROM tab2
----
0
51
0
67
0
77

skipif mysql # not compatible
query II rowsort label-3995
SELECT ALL col2 / col1 AS col0, col1 AS col1 FROM tab2
----
0
51
0
67
0
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3996
SELECT CAST( col1 AS SIGNED ) * ( - - col0 ) FROM tab1
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-3996
SELECT CAST ( col1 AS INTEGER ) * ( - - col0 ) FROM tab1
----
425
4277
714

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3997
SELECT + 77 DIV - COUNT( * ) AS col2 FROM tab1
----
-25

skipif mysql # not compatible
query I rowsort label-3997
SELECT + 77 / - COUNT ( * ) AS col2 FROM tab1
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3998
SELECT ALL + COUNT( ALL - 43 ) DIV - SUM( DISTINCT col1 ) * - - MAX( ALL - ( 28 ) ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3998
SELECT ALL + COUNT ( ALL - 43 ) / - SUM ( DISTINCT col1 ) * - - MAX ( ALL - ( 28 ) ) AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3999
SELECT DISTINCT - 57 AS col0, COUNT( DISTINCT - col1 ) + 48 + + COUNT( * ) FROM tab1
----
-57
54

skipif mysql # not compatible
query II rowsort label-3999
SELECT DISTINCT - 57 AS col0, COUNT ( DISTINCT - col1 ) + 48 + + COUNT ( * ) FROM tab1
----
-57
54

query II rowsort
SELECT ALL col2 AS col0, + col0 * col2 FROM tab1
----
59
5015
68
6188
96
4896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4001
SELECT CAST( NULL AS SIGNED ) * - 64 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4001
SELECT CAST ( NULL AS INTEGER ) * - 64 col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4002
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 83 > - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4002
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 83 > - - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT DISTINCT - + SUM( ALL - - ( - col1 ) ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-4003
SELECT DISTINCT - + SUM ( ALL - - ( - col1 ) ) FROM tab2 AS cor0
----
195

query I rowsort
SELECT - - 65 AS col1 FROM tab2 AS cor0
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT + + SUM( - + 76 ) FROM tab2 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-4005
SELECT + + SUM ( - + 76 ) FROM tab2 AS cor0
----
-228

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 50 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT ALL - ( + ( + - COUNT( col0 ) ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4007
SELECT ALL - ( + ( + - COUNT ( col0 ) ) ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4008
SELECT ALL - CAST( - 41 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
41
41
41

skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL - CAST ( - 41 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
41
41
41

query II rowsort
SELECT + 62 + - col1 AS col2, col1 * - col1 FROM tab0 cor0
----
-19
-6561
41
-441
61
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT - + 75 + - SUM( + - ( + 22 ) ) col1 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4010
SELECT - + 75 + - SUM ( + - ( + 22 ) ) col1 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT 82 + + col0 AS col2 FROM tab1
----
133
167
173

query I rowsort
SELECT - col0 + col1 + col2 AS col1 FROM tab0
----
-56
113
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * 43 * col0 + + + col2 * - 59 + - 87 + - - col0 col1 FROM tab2
----
-112463
-190484
-46892

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4014
SELECT COUNT( DISTINCT + + 88 ) + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4014
SELECT COUNT ( DISTINCT + + 88 ) + CAST ( NULL AS REAL ) FROM tab2
----
NULL

query I rowsort
SELECT + col1 + - ( - 94 ) + - + col0 * - + col2 AS col2 FROM tab0
----
880
9698
985

onlyif mysql # DIV for integer division: 
query I rowsort label-4016
SELECT ALL col0 DIV - - 17 - + col1 + col2 FROM tab0
----
-34
-6
103

skipif mysql # not compatible
query I rowsort label-4016
SELECT ALL col0 / - - 17 - + col1 + col2 FROM tab0
----
-34
-6
103

query I rowsort
SELECT - - ( col1 ) AS col1 FROM tab2 WHERE col2 * + + col1 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT DISTINCT + SUM( - col0 ) + - - COUNT( * ) * - + 79 AS col0 FROM tab2
----
-422

skipif mysql # not compatible
query I rowsort label-4018
SELECT DISTINCT + SUM ( - col0 ) + - - COUNT ( * ) * - + 79 AS col0 FROM tab2
----
-422

query I rowsort
SELECT DISTINCT + col1 + + 19 AS col1 FROM tab2 cor0
----
70
86
96

query I rowsort
SELECT + + col2 - - + col1 AS col1 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # aggregate syntax: 
query II rowsort label-4021
SELECT DISTINCT - 73 + COUNT( * ) AS col1, + ( - 98 ) AS col2 FROM tab0
----
-70
-98

skipif mysql # not compatible
query II rowsort label-4021
SELECT DISTINCT - 73 + COUNT ( * ) AS col1, + ( - 98 ) AS col2 FROM tab0
----
-70
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT - COUNT( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4022
SELECT - COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT SUM( ALL - col2 ) col2 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4023
SELECT SUM ( ALL - col2 ) col2 FROM tab2 AS cor0
----
-121

query II rowsort
SELECT DISTINCT + + ( + col2 ) * ( - 89 ) AS col0, + 7 AS col0 FROM tab0 AS cor0
----
-4183
7
-8811
7
-890
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT ALL + COUNT( * ) * - + 92 FROM tab2
----
-276

skipif mysql # not compatible
query I rowsort label-4025
SELECT ALL + COUNT ( * ) * - + 92 FROM tab2
----
-276

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 19 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4027
SELECT CAST( NULL AS SIGNED ) AS col2, + 33 col2 FROM tab0
----
NULL
33
NULL
33
NULL
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4027
SELECT CAST ( NULL AS INTEGER ) AS col2, + 33 col2 FROM tab0
----
NULL
33
NULL
33
NULL
33

query III rowsort
SELECT * FROM tab1 WHERE NOT + 58 * col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 96 + - - ( - + 30 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4030
SELECT + col1 DIV col2 * + + col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4030
SELECT + col1 / col2 * + + col2 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - 21 * 40 FROM tab2
----
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT DISTINCT SUM( - + col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-4032
SELECT DISTINCT SUM ( - + col2 ) FROM tab1
----
-223

onlyif mysql # DIV for integer division: 
query I rowsort label-4033
SELECT - 95 DIV - - col0 AS col0 FROM tab0 AS cor0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-4033
SELECT - 95 / - - col0 AS col0 FROM tab0 AS cor0
----
-1
-6
0

query I rowsort
SELECT - 13 + - - 13 AS col2 FROM tab2 cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE 80 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 2 AS col0 FROM tab2 WHERE + ( - - col2 ) IS NOT NULL
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4037
SELECT - CAST( NULL AS SIGNED ) + + - ( + COUNT( * ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4037
SELECT - CAST ( NULL AS INTEGER ) + + - ( + COUNT ( * ) ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT ALL + + COUNT( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-4038
SELECT ALL + + COUNT ( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-4039
SELECT - + COUNT( * ) AS col0, - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-4039
SELECT - + COUNT ( * ) AS col0, - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4040
SELECT ALL - col1 * - - col0 + + col2 + - col2 * - - CAST( + + 87 AS SIGNED ) FROM tab1 AS cor0
----
-10125
-5499
-8970

skipif mysql # not compatible
query I rowsort label-4040
SELECT ALL - col1 * - - col0 + + col2 + - col2 * - - CAST ( + + 87 AS INTEGER ) FROM tab1 AS cor0
----
-10125
-5499
-8970

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 < - 77
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - ( + col1 ) AS col1, + col0 + - col1 FROM tab2 cor0
----
-51
-5
-67
8
-77
-13

query I rowsort
SELECT ALL + + col2 * + ( - col2 ) FROM tab0 AS cor0
----
-100
-2209
-9801

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * - ( + + 70 ) <= - 98
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 50 * + - col2 + + col0 FROM tab0 AS cor0
----
-2335
-413
-4853

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 80 * + + col2 >= NULL
----

query I rowsort
SELECT ALL + ( - 97 ) FROM tab1
----
-97
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT - ( COUNT( * ) ) AS col1 FROM tab0, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4048
SELECT - ( COUNT ( * ) ) AS col1 FROM tab0, tab2 AS cor0
----
-9

query I rowsort
SELECT ALL + 73 + 1 FROM tab0
----
74
74
74

query I rowsort
SELECT 34 * col0 - col2 AS col0 FROM tab2
----
1541
2136
2492

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4051
SELECT + CAST( col0 AS SIGNED ) + - - col0 * - + col2 * - + ( - col1 ) FROM tab1
----
-24990
-290745
-68493

skipif mysql # not compatible
query I rowsort label-4051
SELECT + CAST ( col0 AS INTEGER ) + - - col0 * - + col2 * - + ( - col1 ) FROM tab1
----
-24990
-290745
-68493

query I rowsort
SELECT DISTINCT - 72 * - 13 * - + col2 + - - 93 - 84 * - col0 AS col2 FROM tab1
----
-47991
-55911
-85479

onlyif mysql # DIV for integer division: 
query I rowsort label-4053
SELECT col0 + col2 DIV - ( - - col1 ) AS col2 FROM tab0
----
-2
15
87

skipif mysql # not compatible
query I rowsort label-4053
SELECT col0 + col2 / - ( - - col1 ) AS col2 FROM tab0
----
-2
15
87

query II rowsort
SELECT ALL 45 - col0, col2 FROM tab0
----
-42
10
-52
99
30
47

query I rowsort
SELECT col1 * + 33 + + col2 AS col0 FROM tab2
----
1706
2269
2581

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT DISTINCT - COUNT( DISTINCT - col0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4056
SELECT DISTINCT - COUNT ( DISTINCT - col0 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL ( col2 ) - + + 38 * - col1 + + ( + - col0 ) AS col1 FROM tab1 AS cor0
----
164
1763
577

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4058
SELECT DISTINCT - col0 * + - ( CAST( 44 AS SIGNED ) ) FROM tab0 cor0
----
3828
4268
660

skipif mysql # not compatible
query I rowsort label-4058
SELECT DISTINCT - col0 * + - ( CAST ( 44 AS INTEGER ) ) FROM tab0 cor0
----
3828
4268
660

query I rowsort
SELECT 77 * ( col1 ) * - - 82 AS col2 FROM tab0 cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT 41 + col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
100
109
137

onlyif mysql # aggregate syntax: 
query I rowsort label-4061
SELECT + 13 * + COUNT( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
117

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4061
SELECT + 13 * + COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT ALL MAX( ALL col2 ) col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4062
SELECT ALL MAX ( ALL col2 ) col2 FROM tab0 AS cor0
----
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4065
SELECT DISTINCT - 98 * - CAST( col1 AS SIGNED ), + col0 AS col0 FROM tab1 AS cor0
----
1372
51
4606
91
490
85

skipif mysql # not compatible
query II rowsort label-4065
SELECT DISTINCT - 98 * - CAST ( col1 AS INTEGER ), + col0 AS col0 FROM tab1 AS cor0
----
1372
51
4606
91
490
85

query I rowsort
SELECT col2 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, - 38 + + 34 + - 92 * - col2 AS col1 FROM tab0 AS cor0
----
10
916
47
4320
99
9104

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4068
SELECT - 66 / - + col2, - 63 AS col2 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-4068
SELECT - 66 / - + col2, - 63 AS col2 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4069
SELECT + ( - col1 ) AS col2, + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-4069
SELECT + ( - col1 ) AS col2, + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
-14
NULL
-47
NULL
-5
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4070
SELECT DISTINCT CAST( NULL AS SIGNED ) / - 2 * - - col0 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4070
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - 2 * - - col0 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT - 72 * - - col1 AS col1 FROM tab0
----
-1512
-5832
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-4072
SELECT + 38 * + COUNT( * ) AS col0, - MAX( ALL + + col2 ) AS col2 FROM tab1
----
114
-96

skipif mysql # not compatible
query II rowsort label-4072
SELECT + 38 * + COUNT ( * ) AS col0, - MAX ( ALL + + col2 ) AS col2 FROM tab1
----
114
-96

query I rowsort
SELECT ALL col1 * col2 + 76 FROM tab2
----
1249
3156
3962

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT DISTINCT + MIN( ALL + + col1 ) col2 FROM tab1
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4074
SELECT DISTINCT + MIN ( ALL + + col1 ) col2 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4075
SELECT ALL COUNT( ALL 11 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4075
SELECT ALL COUNT ( ALL 11 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4076
SELECT ALL + ( - 6 ) * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4076
SELECT ALL + ( - 6 ) * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4077
SELECT CAST( NULL AS DECIMAL ) * + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4077
SELECT CAST ( NULL AS REAL ) * + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT - MAX( DISTINCT + - col1 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4078
SELECT - MAX ( DISTINCT + - col1 ) AS col0 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT + ( - - MAX( DISTINCT - col0 ) ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-4079
SELECT + ( - - MAX ( DISTINCT - col0 ) ) FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT - MAX( - - col1 ) AS col2 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-4080
SELECT - MAX ( - - col1 ) AS col2 FROM tab2
----
-77

query II rowsort
SELECT 50 + + col0, - 2 AS col1 FROM tab1 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4082
SELECT DISTINCT - COUNT( * ) + + 69 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-4082
SELECT DISTINCT - COUNT ( * ) + + 69 FROM tab0 AS cor0
----
66

onlyif mysql # DIV for integer division: 
query II rowsort label-4083
SELECT + 61 + 85 - - col1 DIV - col0 + - 93 AS col1, col1 FROM tab2 AS cor0 WHERE + 64 DIV - col0 BETWEEN - 40 AND ( + ( - 25 ) + + col0 + + + 88 )
----
52
51
52
77
53
67

skipif mysql # not compatible
query II rowsort label-4083
SELECT + 61 + 85 - - col1 / - col0 + - 93 AS col1, col1 FROM tab2 AS cor0 WHERE + 64 / - col0 BETWEEN - 40 AND ( + ( - 25 ) + + col0 + + + 88 )
----
52
51
52
77
53
67

query I rowsort
SELECT ALL ( - - ( - col0 ) ) * col1 AS col1 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4085
SELECT - 46 + - COUNT( * ) DIV + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-4085
SELECT - 46 + - COUNT ( * ) / + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-47

query I rowsort
SELECT DISTINCT col2 * col1 - + col2 FROM tab2 AS cor0
----
1150
3040
3828

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + ( - - 15 ) col2 FROM tab1 cor0
----
20
29
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4088
SELECT - CAST( - - col0 AS SIGNED ) + + col2 * col1 FROM tab1 AS cor0
----
1293
210
3105

skipif mysql # not compatible
query I rowsort label-4088
SELECT - CAST ( - - col0 AS INTEGER ) + + col2 * col1 FROM tab1 AS cor0
----
1293
210
3105

onlyif mysql # DIV for integer division: 
query I rowsort label-4089
SELECT DISTINCT - 85 DIV col0 AS col0 FROM tab0 AS cor0
----
-5
0

skipif mysql # not compatible
query I rowsort label-4089
SELECT DISTINCT - 85 / col0 AS col0 FROM tab0 AS cor0
----
-5
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4090
SELECT 8, CAST( + - 78 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
8
-78
8
-78
8
-78

skipif mysql # not compatible
query II rowsort label-4090
SELECT 8, CAST ( + - 78 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
8
-78
8
-78
8
-78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4091
SELECT + 57 * + + ( - col0 ), - 53 * + col2 FROM tab0 AS cor0 WHERE - ( + 96 ) + + ( + + CAST( NULL AS SIGNED ) ) BETWEEN + 75 AND - col0
----

skipif mysql # not compatible
query II rowsort label-4091
SELECT + 57 * + + ( - col0 ), - 53 * + col2 FROM tab0 AS cor0 WHERE - ( + 96 ) + + ( + + CAST ( NULL AS INTEGER ) ) BETWEEN + 75 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT 82 * COUNT( * ) col2 FROM tab0
----
246

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4092
SELECT 82 * COUNT ( * ) col2 FROM tab0
----
246

query II rowsort
SELECT DISTINCT 35 AS col0, + col2 FROM tab1
----
35
59
35
68
35
96

query I rowsort
SELECT DISTINCT 22 + - 35 FROM tab0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT MIN( - + col1 ) col2 FROM tab1
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4095
SELECT MIN ( - + col1 ) col2 FROM tab1
----
-47

query I rowsort
SELECT ALL col2 * + 22 + + - col2 - - col0 FROM tab1 AS cor0
----
1324
1519
2067

onlyif mysql # aggregate syntax: 
query II rowsort label-4097
SELECT + 3 AS col1, MAX( ALL - + 48 ) col2 FROM tab1 cor0
----
3
-48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4097
SELECT + 3 AS col1, MAX ( ALL - + 48 ) col2 FROM tab1 cor0
----
3
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, col1 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

query I rowsort
SELECT DISTINCT - + col1 FROM tab1 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4100
SELECT col1 * - CAST( NULL AS SIGNED ), col2 + + col1 AS col0 FROM tab1
----
NULL
110
NULL
115
NULL
64

skipif mysql # not compatible
query II rowsort label-4100
SELECT col1 * - CAST ( NULL AS INTEGER ), col2 + + col1 AS col0 FROM tab1
----
NULL
110
NULL
115
NULL
64

query I rowsort
SELECT - col1 * + + col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + 59 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT MIN( + + col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4102
SELECT MIN ( + + col1 ) FROM tab1 AS cor0
----
5

query I rowsort
SELECT DISTINCT 18 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT ( 95 ) AS col2 FROM tab0 AS cor0
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT ALL + COUNT( - 32 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL + COUNT ( - 32 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4106
SELECT - + CAST( + + 65 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-65
-65
-65

skipif mysql # not compatible
query I rowsort label-4106
SELECT - + CAST ( + + 65 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-65
-65
-65

query I rowsort
SELECT - 93 * - col2 * - 46 + col2 AS col2 FROM tab0 WHERE NOT + 8 / ( + - col0 ) IS NULL
----
-201019
-423423
-42770

query II rowsort
SELECT - col0 AS col2, - col2 FROM tab1
----
-51
-96
-85
-59
-91
-68

query I rowsort
SELECT DISTINCT + ( + col1 ) + + + 81 FROM tab2
----
132
148
158

query I rowsort
SELECT + col1 * - + ( - - col1 ) FROM tab0
----
-1
-441
-6561

query I rowsort
SELECT - 83 * + - col0 AS col0 FROM tab1 AS cor0
----
4233
7055
7553

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 8 * - col1 FROM tab1
----
112
376
40

query I rowsort
SELECT - col1 * - col0 FROM tab1 WHERE NOT + col1 NOT IN ( col1 )
----
425
4277
714

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN 40 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT ALL + 72 * + COUNT( * ) AS col2 FROM tab0
----
216

skipif mysql # not compatible
query I rowsort label-4116
SELECT ALL + 72 * + COUNT ( * ) AS col2 FROM tab0
----
216

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col0 ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4118
SELECT ALL 61 DIV - 77 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4118
SELECT ALL 61 / - 77 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT ( - 10 ) * - col1 AS col2 FROM tab2
----
510
670
770

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 + col1 * 83 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 12 NOT IN ( col1 * + 10 - - col0 )
----

query I rowsort
SELECT - col1 - 82 * + col0 AS col2 FROM tab0
----
-1311
-7155
-7955

onlyif mysql # DIV for integer division: 
query I rowsort label-4123
SELECT - 30 DIV 3 AS col0 FROM tab1
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-4123
SELECT - 30 / 3 AS col0 FROM tab1
----
-10
-10
-10

query I rowsort
SELECT + col1 - - 19 FROM tab2
----
70
86
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4125
SELECT DISTINCT col2 DIV - 61 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4125
SELECT DISTINCT col2 / - 61 AS col0 FROM tab2
----
0

query I rowsort
SELECT ALL + col2 * 89 + col0 * + col0 FROM tab2
----
10787
4163
7656

query I rowsort
SELECT ALL ( - col1 ) AS col2 FROM tab1 WHERE - ( - 64 ) + 75 IS NOT NULL
----
-14
-47
-5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 14 * col1 = col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4129
SELECT - 20 DIV - COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-4129
SELECT - 20 / - COUNT ( * ) FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4130
SELECT + COUNT( * ) FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4130
SELECT + COUNT ( * ) FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT COUNT( * ) * - 52 AS col0 FROM tab1
----
-156

skipif mysql # not compatible
query I rowsort label-4131
SELECT COUNT ( * ) * - 52 AS col0 FROM tab1
----
-156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4132
SELECT ALL - 61 + - 85 DIV + COUNT( * ) FROM tab2
----
-89

skipif mysql # not compatible
query I rowsort label-4132
SELECT ALL - 61 + - 85 / + COUNT ( * ) FROM tab2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4133
SELECT - ( - ( COUNT( * ) ) ) * + 32 col1 FROM tab2
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4133
SELECT - ( - ( COUNT ( * ) ) ) * + 32 col1 FROM tab2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NULL NOT BETWEEN col0 AND + col2 * 0 - 53
----
0

skipif mysql # not compatible
query I rowsort label-4134
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NULL NOT BETWEEN col0 AND + col2 * 0 - 53
----
0

query III rowsort
SELECT * FROM tab1 WHERE NULL <> + col0 * + 72
----

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 WHERE NOT col1 + + ( + col0 ) * col0 >= - 42 * col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 4 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4138
SELECT ALL - COUNT( * ) DIV - COUNT( * ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4138
SELECT ALL - COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT DISTINCT SUM( 65 ) * + COUNT( * ) FROM tab2 AS cor0
----
585

skipif mysql # not compatible
query I rowsort label-4139
SELECT DISTINCT SUM ( 65 ) * + COUNT ( * ) FROM tab2 AS cor0
----
585

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( - col1 ) IS NULL
----
1
21
81

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 = + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT + ( + COUNT( + 54 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4142
SELECT + ( + COUNT ( + 54 ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT SUM( ALL + col1 ) * 41 AS col0 FROM tab1
----
2706

skipif mysql # not compatible
query I rowsort label-4143
SELECT SUM ( ALL + col1 ) * 41 AS col0 FROM tab1
----
2706

query I rowsort
SELECT col1 * 62 AS col1 FROM tab2
----
3162
4154
4774

onlyif mysql # DIV for integer division: 
query I rowsort label-4145
SELECT + col2 DIV 25 FROM tab1
----
2
2
3

skipif mysql # not compatible
query I rowsort label-4145
SELECT + col2 / 25 FROM tab1
----
2
2
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4146
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col0 ) NOT IN ( + col0 * CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-4146
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col0 ) NOT IN ( + col0 * CAST ( NULL AS REAL ) )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + col2 + + 55 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT ALL + MIN( col2 ) FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-4148
SELECT ALL + MIN ( col2 ) FROM tab2 cor0
----
23

query I rowsort
SELECT - col0 * ( col0 ) AS col2 FROM tab2 AS cor0
----
-2116
-4096
-5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab1 AS cor0 WHERE NOT - col1 / - col1 + 10 = ( - col0 )
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT DISTINCT + - SUM( col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-4151
SELECT DISTINCT + - SUM ( col0 ) FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-4152
SELECT MAX( DISTINCT ( col0 ) ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4152
SELECT MAX ( DISTINCT ( col0 ) ) FROM tab2 AS cor0
----
75

query I rowsort
SELECT ( col2 ) FROM tab0 AS cor0 WHERE NOT + 60 >= 24 + + col2
----
47
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4154
SELECT - COUNT( * ) + ( - 67 ) DIV SUM( - col0 * - ( col0 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4154
SELECT - COUNT ( * ) + ( - 67 ) / SUM ( - col0 * - ( col0 ) ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4155
SELECT - COUNT( * ) + + - ( ( - ( - CAST( NULL AS SIGNED ) ) ) ) / + 6 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4155
SELECT - COUNT ( * ) + + - ( ( - ( - CAST ( NULL AS INTEGER ) ) ) ) / + 6 AS col2 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 * 90 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT + 92 + + COUNT( * ) FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-4157
SELECT + 92 + + COUNT ( * ) FROM tab0
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-4158
SELECT ALL - col0 + + col1 DIV - col2 FROM tab0
----
-16
-89
-97

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL - col0 + + col1 / - col2 FROM tab0
----
-16
-89
-97

query I rowsort
SELECT - ( + col0 ) + + 61 AS col2 FROM tab1
----
-24
-30
10

query III rowsort
SELECT * FROM tab0 WHERE - col2 * col2 IN ( col1 )
----

query I rowsort
SELECT ALL 97 * + 91 FROM tab2
----
8827
8827
8827

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col0 * + col2 ) >= ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 17 + + + 17 FROM tab0
----
0

query I rowsort
SELECT ALL + 39 + + col2 + 76 FROM tab1 AS cor0
----
174
183
211

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT ALL SUM( DISTINCT - - 59 ) AS col2 FROM tab0 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-4165
SELECT ALL SUM ( DISTINCT - - 59 ) AS col2 FROM tab0 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT ALL + + MAX( + - ( - 88 ) ) FROM tab2 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-4166
SELECT ALL + + MAX ( + - ( - 88 ) ) FROM tab2 AS cor0
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-4167
SELECT + - 45 DIV + col0 FROM tab0 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-4167
SELECT + - 45 / + col0 FROM tab0 AS cor0
----
-3
0
0

query I rowsort
SELECT - 13 * + col2 * - col2 AS col2 FROM tab2 cor0
----
20800
43732
6877

query I rowsort
SELECT 36 - col2 AS col0 FROM tab2
----
-22
-4
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4170
SELECT CAST( NULL AS SIGNED ) - + CAST( NULL AS SIGNED ) * + + 33 / - COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4170
SELECT CAST ( NULL AS INTEGER ) - + CAST ( NULL AS INTEGER ) * + + 33 / - COUNT ( * ) AS col2 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE 53 NOT IN ( + 91 + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 - + 95 FROM tab2 AS cor0
----
-146
-162
-172

query I rowsort
SELECT DISTINCT ( col0 ) * + col2 FROM tab2 AS cor0 WHERE ( - col2 ) > ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND ( col0 + col2 )
----

query I rowsort
SELECT DISTINCT 2 + + 51 FROM tab2 cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT ALL - COUNT( col1 ) * + 9 - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-4176
SELECT ALL - COUNT ( col1 ) * + 9 - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-30

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 = ( 96 / + col0 - - 60 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 74 IS NOT NULL
----

query I rowsort
SELECT + col2 * + + col0 AS col1 FROM tab2 cor0
----
1058
2560
4350

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 34 BETWEEN NULL AND + col2 * + 80
----

query I rowsort
SELECT DISTINCT + col2 * + 99 + + 82 FROM tab1 AS cor0
----
5923
6814
9586

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT - + MIN( DISTINCT + + col2 ) AS col1 FROM tab1 WHERE NOT NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4182
SELECT - + MIN ( DISTINCT + + col2 ) AS col1 FROM tab1 WHERE NOT NULL = NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN col1 * - 62 + - col2 AND - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - 50 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 11 * 60 AS col2 FROM tab0
----
660
660
660

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4186
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( - col1 / - col1 ) AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4186
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( - col1 / - col1 ) AND + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 IN ( - + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4188
SELECT ALL - 84 DIV col2 FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-4188
SELECT ALL - 84 / col2 FROM tab2
----
-1
-2
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT + COUNT( * ) * ( + + 46 ) AS col0 FROM tab0
----
138

skipif mysql # not compatible
query I rowsort label-4189
SELECT + COUNT ( * ) * ( + + 46 ) AS col0 FROM tab0
----
138

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 >= ( + + 31 / 67 + + 54 / col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 11 - + + ( col1 ) * col1 BETWEEN - col1 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4192
SELECT - CAST( - 39 AS SIGNED ) DIV + col1 FROM tab0 AS cor0
----
0
1
39

skipif mysql # not compatible
query I rowsort label-4192
SELECT - CAST ( - 39 AS INTEGER ) / + col1 FROM tab0 AS cor0
----
0
1
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT DISTINCT + - MIN( DISTINCT 85 ) AS col0 FROM tab2 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-4193
SELECT DISTINCT + - MIN ( DISTINCT 85 ) AS col0 FROM tab2 AS cor0
----
-85

query I rowsort
SELECT 79 AS col2 FROM tab0 cor0
----
79
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT - + SUM( - 93 ) AS col2 FROM tab1 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-4195
SELECT - + SUM ( - 93 ) AS col2 FROM tab1 AS cor0
----
279

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4196
SELECT DISTINCT - CAST( - COUNT( DISTINCT col0 ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4196
SELECT DISTINCT - CAST ( - COUNT ( DISTINCT col0 ) AS INTEGER ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col2 * col1 * + - col0 * col1 FROM tab2
----
15178240
19527150
2751858

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) > + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT ALL ( ( - SUM( ALL + + 93 ) ) ) FROM tab0
----
-279

skipif mysql # not compatible
query I rowsort label-4199
SELECT ALL ( ( - SUM ( ALL + + 93 ) ) ) FROM tab0
----
-279

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 - + col2 NOT IN ( - + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - 47 + 87 AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3ceb25f3d86505c05ae8b32388dc5c47

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 33 ) NOT IN ( 69 )
----

query I rowsort
SELECT 50 * - col2 + - col0 + + col2 FROM tab0 AS cor0
----
-2318
-4948
-577

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT + COUNT( * ) * + + 44 FROM tab0 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-4204
SELECT + COUNT ( * ) * + + 44 FROM tab0 AS cor0
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT - - MIN( + + col1 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4205
SELECT - - MIN ( + + col1 ) AS col2 FROM tab2 AS cor0
----
51

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE col2 + - 15 >= NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - - 80 * col0 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4208
SELECT * FROM tab0 WHERE NULL IN ( - 70 / - col1 + + col1 + CAST( NULL AS SIGNED ) * col0 )
----

skipif mysql # not compatible
query III rowsort label-4208
SELECT * FROM tab0 WHERE NULL IN ( - 70 / - col1 + + col1 + CAST ( NULL AS INTEGER ) * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT SUM( DISTINCT col2 ) * - 82 AS col0 FROM tab2
----
-9922

skipif mysql # not compatible
query I rowsort label-4209
SELECT SUM ( DISTINCT col2 ) * - 82 AS col0 FROM tab2
----
-9922

query I rowsort
SELECT DISTINCT col2 + - + col1 AS col2 FROM tab1
----
21
54
82

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 * + col0 / - col1 NOT BETWEEN NULL AND - - ( + - col0 ) * 59
----

query I rowsort
SELECT - col2 + + - col2 FROM tab1 AS cor0
----
-118
-136
-192

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 NOT IN ( + col0 * col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4214
SELECT - 61 - - + CAST( + 52 AS SIGNED ) * + col2 FROM tab1 AS cor0
----
3007
3475
4931

skipif mysql # not compatible
query I rowsort label-4214
SELECT - 61 - - + CAST ( + 52 AS INTEGER ) * + col2 FROM tab1 AS cor0
----
3007
3475
4931

onlyif mysql # DIV for integer division: 
query II rowsort label-4215
SELECT ALL + + col1 - + col1 AS col0, 8 DIV - col0 * + + 95 AS col1 FROM tab0 AS cor0
----
0
0
0
0
0
0

skipif mysql # not compatible
query II rowsort label-4215
SELECT ALL + + col1 - + col1 AS col0, 8 / - col0 * + + 95 AS col1 FROM tab0 AS cor0
----
0
0
0
0
0
0

query I rowsort
SELECT DISTINCT + 48 + - - col1 FROM tab2 cor0 WHERE NULL > NULL
----

query I rowsort
SELECT ALL - 55 AS col0 FROM tab2 AS cor0
----
-55
-55
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 col2 FROM tab2 AS cor0
----
51
51
51

query I rowsort
SELECT - col1 + col0 + - + col2 FROM tab2 WHERE NOT col0 IS NULL
----
-28
-50
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT COUNT( ALL + 64 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4220
SELECT COUNT ( ALL + 64 ) FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - 44 + - + col2 ) NOT BETWEEN ( NULL ) AND + - 35
----

query II rowsort
SELECT + col1, - 77 AS col0 FROM tab2
----
51
-77
67
-77
77
-77

query II rowsort
SELECT col2 AS col2, col0 AS col0 FROM tab0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4224
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 WHERE NOT col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4224
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 WHERE NOT col0 IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( - col0, col1, 25, - col0 * 41 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4226
SELECT DISTINCT + COUNT( * ) * + + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4226
SELECT DISTINCT + COUNT ( * ) * + + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + col1, 42 / - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT DISTINCT + ( + COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( + 79 ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4228
SELECT DISTINCT + ( + COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( + 79 ) < NULL
----
0

query I rowsort
SELECT DISTINCT - col2 * - + col2 * - col0 AS col0 FROM tab0
----
-33135
-8700
-950697

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4230
SELECT * FROM tab0 WHERE NOT + - col2 * + ( - 50 ) BETWEEN + + col2 * + 47 AND + col0 / CAST( col1 AS DECIMAL ) + col0 * col0
----
15
81
47

skipif mysql # not compatible
query III rowsort label-4230
SELECT * FROM tab0 WHERE NOT + - col2 * + ( - 50 ) BETWEEN + + col2 * + 47 AND + col0 / CAST ( col1 AS REAL ) + col0 * col0
----
15
81
47

query I rowsort
SELECT ALL + ( + 59 ) + - + ( + col2 ) * - + col2 AS col2 FROM tab2
----
1659
3423
588

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 78 + + col2 + col2 col1 FROM tab2
----
-32
2
38

query II rowsort
SELECT DISTINCT - - ( + + col2 ), - ( col1 ) AS col1 FROM tab2 cor0
----
23
-51
40
-77
58
-67

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 * + - col0 <> ( + - col2 - + 6 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT + - COUNT( * ) FROM tab2 AS cor0 WHERE NULL >= ( - col0 ) + - 80
----
0

skipif mysql # not compatible
query I rowsort label-4235
SELECT + - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL >= ( - col0 ) + - 80
----
0

query I rowsort
SELECT ALL col1 * + col2 + + + col0 FROM tab1 AS cor0
----
1395
3287
380

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT DISTINCT + - 84 * + SUM( DISTINCT - ( + + col0 ) ) FROM tab0 AS cor0
----
16716

skipif mysql # not compatible
query I rowsort label-4237
SELECT DISTINCT + - 84 * + SUM ( DISTINCT - ( + + col0 ) ) FROM tab0 AS cor0
----
16716

query I rowsort
SELECT - + col2 + - 33 AS col0 FROM tab2 cor0
----
-56
-73
-91

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= 95
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= + 9
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT DISTINCT - 85 * + COUNT( * ) col2 FROM tab0 AS cor0
----
-255

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4241
SELECT DISTINCT - 85 * + COUNT ( * ) col2 FROM tab0 AS cor0
----
-255

query I rowsort
SELECT - 17 + + col2 FROM tab1
----
42
51
79

query I rowsort
SELECT ( - + col0 ) * 88 + - 54 FROM tab2
----
-4102
-5686
-6654

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4244
SELECT DISTINCT * FROM tab1 WHERE ( + + 38 + - col0 ) >= ( col2 / + col0 + - 85 / + + CAST( - col0 AS SIGNED ) + - 46 )
----
51
14
96

skipif mysql # not compatible
query III rowsort label-4244
SELECT DISTINCT * FROM tab1 WHERE ( + + 38 + - col0 ) >= ( col2 / + col0 + - 85 / + + CAST ( - col0 AS INTEGER ) + - 46 )
----
51
14
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4245
SELECT + CAST( col2 AS SIGNED ) + - + 77 FROM tab2
----
-19
-37
-54

skipif mysql # not compatible
query I rowsort label-4245
SELECT + CAST ( col2 AS INTEGER ) + - + 77 FROM tab2
----
-19
-37
-54

query I rowsort
SELECT ALL + col1 AS col2 FROM tab0 WHERE - 72 / 94 IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT + col0 + 70 FROM tab0
----
157
167
85

query I rowsort
SELECT DISTINCT - + col1 FROM tab2 WHERE + col1 IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT ALL - 22 + - - col2 FROM tab2
----
1
18
36

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 31 >= - col2 * - + 95 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT + - COUNT( * ) col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4251
SELECT + - COUNT ( * ) col2 FROM tab0 cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( ( + 27 * + col2 ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT DISTINCT - - COUNT( * ) * ( - 17 ) AS col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4253
SELECT DISTINCT - - COUNT ( * ) * ( - 17 ) AS col1 FROM tab1 AS cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * + - col0 - 84 col0 FROM tab2 AS cor0
----
-1142
-2644
-4434

query I rowsort
SELECT - 50 + - - col1 FROM tab1
----
-3
-36
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT - - ( - COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT NULL < 68
----
0

skipif mysql # not compatible
query I rowsort label-4256
SELECT - - ( - COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT NULL < 68
----
0

query II rowsort
SELECT ALL - col1 AS col0, + col0 AS col1 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4258
SELECT + 40 * + - 17 + SUM( + col1 ) FROM tab1 AS cor0
----
-614

skipif mysql # not compatible
query I rowsort label-4258
SELECT + 40 * + - 17 + SUM ( + col1 ) FROM tab1 AS cor0
----
-614

query II rowsort
SELECT ALL + 98, - col0 AS col0 FROM tab0 AS cor0
----
98
-15
98
-87
98
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col1, col2 AS col1 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4261
SELECT + CAST( - - 62 AS SIGNED ) FROM tab0 AS cor0
----
62
62
62

skipif mysql # not compatible
query I rowsort label-4261
SELECT + CAST ( - - 62 AS INTEGER ) FROM tab0 AS cor0
----
62
62
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT ( COUNT( * ) ) * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4262
SELECT ( COUNT ( * ) ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT ALL - 40 AS col1 FROM tab2 AS cor0 WHERE NOT col2 - - col1 IS NULL
----
-40
-40
-40

query I rowsort
SELECT + - 51 * + 65 AS col0 FROM tab2 AS cor0
----
-3315
-3315
-3315

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4265
SELECT DISTINCT 89 * + col2 + + CAST( + + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
5310
6120
8640

skipif mysql # not compatible
query I rowsort label-4265
SELECT DISTINCT 89 * + col2 + + CAST ( + + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
5310
6120
8640

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 >= col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4267
SELECT DISTINCT + CAST( COUNT( DISTINCT 23 ) AS SIGNED ) * + + 97 AS col2 FROM tab2 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4267
SELECT DISTINCT + CAST ( COUNT ( DISTINCT 23 ) AS INTEGER ) * + + 97 AS col2 FROM tab2 AS cor0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4268
SELECT ALL + col1 * CAST( NULL AS SIGNED ) / + 85 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4268
SELECT ALL + col1 * CAST ( NULL AS INTEGER ) / + 85 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 BETWEEN - 76 AND ( + - 11 ) )
----

query I rowsort
SELECT DISTINCT 24 + col1 AS col1 FROM tab0 AS cor0
----
105
25
45

query I rowsort
SELECT - col1 * 22 * 80 * col2 - - - 13 FROM tab0
----
-174253
-369613
-6700333

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4272
SELECT ALL * FROM tab1 WHERE col0 NOT BETWEEN ( - + CAST( NULL AS DECIMAL ) ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4272
SELECT ALL * FROM tab1 WHERE col0 NOT BETWEEN ( - + CAST ( NULL AS REAL ) ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4273
SELECT col2 + + col1 - - col1 * col0 * CAST( col0 AS SIGNED ) AS col0 FROM tab0
----
158980
18353
9509

skipif mysql # not compatible
query I rowsort label-4273
SELECT col2 + + col1 - - col1 * col0 * CAST ( col0 AS INTEGER ) AS col0 FROM tab0
----
158980
18353
9509

query I rowsort
SELECT + col1 + - col1 + - - col2 * col0 * - 60 FROM tab2
----
-153600
-261000
-63480

query I rowsort
SELECT + col2 + col0 - + - 24 - + 47 * - 80 FROM tab2
----
3853
3888
3917

query I rowsort
SELECT DISTINCT + ( + 36 ) FROM tab1 cor0
----
36

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 + - - 17 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4278
SELECT COUNT( DISTINCT - + col0 ) DIV SUM( + - 92 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4278
SELECT COUNT ( DISTINCT - + col0 ) / SUM ( + - 92 ) AS col0 FROM tab1
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + 8 <= ( + ( - - col0 ) ) + - 85 * - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 91 FROM tab2 AS cor0 WHERE NULL IS NULL
----
91

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 23 * + - 25 IS NOT NULL
----

query II rowsort
SELECT ALL - + 12, col0 + + + col0 AS col0 FROM tab2 AS cor0
----
-12
128
-12
150
-12
92

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 3 IN ( col2 * + 51 * 82 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT DISTINCT - MAX( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4284
SELECT DISTINCT - MAX ( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4285
SELECT DISTINCT + ( + + SUM( + - CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4285
SELECT DISTINCT + ( + + SUM ( + - CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 92 AS col0, + col0 col2 FROM tab0
----
-92
15
-92
87
-92
97

query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 WHERE NOT - 37 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 33 col0 FROM tab2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT 50 * + COUNT( ALL col2 ) AS col1 FROM tab2
----
150

skipif mysql # not compatible
query I rowsort label-4289
SELECT 50 * + COUNT ( ALL col2 ) AS col1 FROM tab2
----
150

query II rowsort
SELECT ALL col2 AS col1, - col0 AS col1 FROM tab2
----
23
-46
40
-64
58
-75

query I rowsort
SELECT ALL - 40 * - col0 FROM tab0
----
3480
3880
600

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT DISTINCT + MIN( col0 ) FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-4292
SELECT DISTINCT + MIN ( col0 ) FROM tab1 cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT DISTINCT - MIN( ( + - 86 ) ) col0 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4293
SELECT DISTINCT - MIN ( ( + - 86 ) ) col0 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4294
SELECT ALL SUM( + col1 ), - 15 AS col2 FROM tab1 AS cor0
----
66
-15

skipif mysql # not compatible
query II rowsort label-4294
SELECT ALL SUM ( + col1 ), - 15 AS col2 FROM tab1 AS cor0
----
66
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, + col0 col1 FROM tab2 AS cor0
----
51
46
67
75
77
64

query II rowsort
SELECT + col1, 29 FROM tab1 AS cor0
----
14
29
47
29
5
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT - MAX( DISTINCT + 67 ) FROM tab1
----
-67

skipif mysql # not compatible
query I rowsort label-4297
SELECT - MAX ( DISTINCT + 67 ) FROM tab1
----
-67

query I rowsort
SELECT + 3 + + 50 + + col2 + - 10 + + 53 AS col2 FROM tab1 cor0
----
155
164
192

onlyif mysql # aggregate syntax: 
query I rowsort label-4299
SELECT - SUM( DISTINCT - - col2 ) col2 FROM tab2 AS cor0 WHERE ( - col2 ) IS NOT NULL
----
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4299
SELECT - SUM ( DISTINCT - - col2 ) col2 FROM tab2 AS cor0 WHERE ( - col2 ) IS NOT NULL
----
-121

query I rowsort
SELECT - 78 * - 62 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4301
SELECT - + col2 + + col0 DIV + - col2 FROM tab1 AS cor0
----
-60
-69
-96

skipif mysql # not compatible
query I rowsort label-4301
SELECT - + col2 + + col0 / + - col2 FROM tab1 AS cor0
----
-60
-69
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT ALL + MIN( DISTINCT + col0 ) + - 86 AS col0 FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-4302
SELECT ALL + MIN ( DISTINCT + col0 ) + - 86 AS col0 FROM tab2
----
-40

query I rowsort
SELECT ALL - 42 * - ( + + col1 ) - + 43 + col2 AS col0 FROM tab2 AS cor0
----
2122
2829
3231

query I rowsort
SELECT - - 40 - - - 87 AS col2 FROM tab0 AS cor0
----
-47
-47
-47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 85 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * - 45 * - 58 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + col1 * - + ( + col0 ) AS col2, + col1 AS col0 FROM tab1 AS cor0
----
-425
5
-4277
47
-714
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4308
SELECT + col1 AS col2 FROM tab2 WHERE NOT NULL BETWEEN NULL AND ( + CAST( - col0 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4308
SELECT + col1 AS col2 FROM tab2 WHERE NOT NULL BETWEEN NULL AND ( + CAST ( - col0 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4309
SELECT MAX( DISTINCT - + col1 ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4309
SELECT MAX ( DISTINCT - + col1 ) AS col1 FROM tab0
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4310
SELECT DISTINCT + CAST( NULL AS DECIMAL ) / 66 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4310
SELECT DISTINCT + CAST ( NULL AS REAL ) / 66 FROM tab1
----
NULL

query I rowsort
SELECT - ( + + 48 ) FROM tab0
----
-48
-48
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4312
SELECT - MIN( DISTINCT - - 69 ) DIV SUM( col0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4312
SELECT - MIN ( DISTINCT - - 69 ) / SUM ( col0 ) FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4313
SELECT CAST( NULL AS SIGNED ) * - + 62 + - col2 + - + col1 AS col1 FROM tab1 AS cor0 WHERE NOT 9 * + col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4313
SELECT CAST ( NULL AS INTEGER ) * - + 62 + - col2 + - + col1 AS col1 FROM tab1 AS cor0 WHERE NOT 9 * + col1 IS NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4314
SELECT DISTINCT col2 DIV - - col1 * 77 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4314
SELECT DISTINCT col2 / - - col1 * 77 AS col1 FROM tab2 AS cor0
----
0

query II rowsort
SELECT ALL ( col2 ) AS col0, + col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - 29 IS NULL
----

query I rowsort
SELECT - + 73 AS col2 FROM tab1 cor0
----
-73
-73
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT COUNT( ALL col1 ) col2 FROM tab0 WHERE NOT col1 + + 40 >= + + col2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4318
SELECT COUNT ( ALL col1 ) col2 FROM tab0 WHERE NOT col1 + + 40 >= + + col2
----
1

query II rowsort
SELECT col0 AS col2, - col0 * ( - ( 45 ) ) FROM tab0
----
15
675
87
3915
97
4365

onlyif mysql # aggregate syntax: 
query I rowsort label-4320
SELECT 12 * + - COUNT( * ) FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-4320
SELECT 12 * + - COUNT ( * ) FROM tab1
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4321
SELECT ALL CAST( NULL AS SIGNED ) * ( 80 ) AS col0, col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-4321
SELECT ALL CAST ( NULL AS INTEGER ) * ( 80 ) AS col0, col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 60 + + 1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4323
SELECT + col0 DIV - 46 + - + col2 + - col0 FROM tab0 AS cor0
----
-198
-62
-98

skipif mysql # not compatible
query I rowsort label-4323
SELECT + col0 / - 46 + - + col2 + - col0 FROM tab0 AS cor0
----
-198
-62
-98

query I rowsort
SELECT ALL 15 + - 84 + 16 AS col2 FROM tab1
----
-53
-53
-53

query I rowsort
SELECT - col0 * + + col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT - COUNT( * ) * + 27 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4326
SELECT - COUNT ( * ) * + 27 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT - 29 FROM tab1 AS cor0 WHERE 16 < + col0
----
-29
-29
-29

query III rowsort
SELECT * FROM tab1 WHERE - col2 < + ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - col2 FROM tab0 WHERE NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 62 - + 11 AS col1, - 61 col0 FROM tab1
----
51
-61
51
-61
51
-61

query I rowsort
SELECT ( + col1 ) + + - 35 AS col2 FROM tab1
----
-21
-30
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT DISTINCT + - SUM( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-4332
SELECT DISTINCT + - SUM ( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - - ( + - col2 ) col2 FROM tab0 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4334
SELECT + + 80 - + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
71

skipif mysql # not compatible
query I rowsort label-4334
SELECT + + 80 - + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
71

query I rowsort
SELECT ALL + 60 AS col1 FROM tab1 cor0
----
60
60
60

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + col1 )
----

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT - 20 + col2 < + col0
----

query I rowsort
SELECT ALL - 96 + + 19 - col2 * col2 FROM tab1 AS cor0
----
-3558
-4701
-9293

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT DISTINCT - - SUM( DISTINCT - col1 ) * MIN( DISTINCT col2 ) FROM tab1 AS cor0
----
-3894

skipif mysql # not compatible
query I rowsort label-4339
SELECT DISTINCT - - SUM ( DISTINCT - col1 ) * MIN ( DISTINCT col2 ) FROM tab1 AS cor0
----
-3894

query I rowsort
SELECT 84 + + col1 * + 97 + - 28 AS col1 FROM tab1
----
1414
4615
541

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT DISTINCT + MAX( 52 ) + 39 FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-4341
SELECT DISTINCT + MAX ( 52 ) + 39 FROM tab0
----
91

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NOT ( NOT ( NULL ) NOT IN ( + - 28 ) )
----

query I rowsort
SELECT + 74 + + 0 AS col1 FROM tab2
----
74
74
74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4344
SELECT DISTINCT * FROM tab1 WHERE NOT col1 BETWEEN NULL AND + - col0 * 85 * - 50 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4344
SELECT DISTINCT * FROM tab1 WHERE NOT col1 BETWEEN NULL AND + - col0 * 85 * - 50 + + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4345
SELECT + 92 + COUNT( * ) FROM tab1
----
95

skipif mysql # not compatible
query I rowsort label-4345
SELECT + 92 + COUNT ( * ) FROM tab1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT + + COUNT( * ) * + SUM( DISTINCT + + ( - - 48 ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
432

skipif mysql # not compatible
query I rowsort label-4346
SELECT + + COUNT ( * ) * + SUM ( DISTINCT + + ( - - 48 ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
432

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 16 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT ALL + MAX( - 44 ) + - 1 col2 FROM tab1 cor0
----
-45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4348
SELECT ALL + MAX ( - 44 ) + - 1 col2 FROM tab1 cor0
----
-45

query I rowsort
SELECT ALL + + col0 * 45 FROM tab0 AS cor0
----
3915
4365
675

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT + ( SUM( + col0 ) ) + - 76 AS col2 FROM tab2 AS cor0
----
109

skipif mysql # not compatible
query I rowsort label-4350
SELECT + ( SUM ( + col0 ) ) + - 76 AS col2 FROM tab2 AS cor0
----
109

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 + 42 IS NULL
----

query I rowsort
SELECT DISTINCT 67 - col0 FROM tab0 AS cor0
----
-20
-30
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + - col0 + + 21, 77 col2 FROM tab1 AS cor0
----
21
77
21
77
21
77

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NULL >= + col1 / col0
----

query I rowsort
SELECT ALL + - 43 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-43
-43
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT DISTINCT COUNT( * ) - 96 FROM tab2 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-4356
SELECT DISTINCT COUNT ( * ) - 96 FROM tab2 AS cor0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT DISTINCT - COUNT( ALL 29 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4357
SELECT DISTINCT - COUNT ( ALL 29 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4358
SELECT ALL - 62 + MAX( DISTINCT - col1 ) FROM tab0 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-4358
SELECT ALL - 62 + MAX ( DISTINCT - col1 ) FROM tab0 AS cor0
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4359
SELECT + CAST( MIN( - col1 ) AS SIGNED ) FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-4359
SELECT + CAST ( MIN ( - col1 ) AS INTEGER ) FROM tab2 cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT - SUM( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4360
SELECT - SUM ( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4361
SELECT CAST( - COUNT( * ) AS SIGNED ) * + 83 FROM tab1 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-4361
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * + 83 FROM tab1 AS cor0
----
-249

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT + COUNT( * ) * + COUNT( * ) col1 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4362
SELECT + COUNT ( * ) * + COUNT ( * ) col1 FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT COUNT( 3 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4363
SELECT COUNT ( 3 ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 WHERE + - col1 + - 51 IN ( + col0, col0, 72 * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT ALL - COUNT( DISTINCT + + 48 ) * COUNT( ALL col0 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4365
SELECT ALL - COUNT ( DISTINCT + + 48 ) * COUNT ( ALL col0 ) FROM tab0
----
-3

query I rowsort
SELECT ( ( - - 64 ) ) FROM tab1
----
64
64
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT ALL + 72 + COUNT( * ) AS col0 FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-4367
SELECT ALL + 72 + COUNT ( * ) AS col0 FROM tab1
----
75

query II rowsort
SELECT DISTINCT col1, - 52 - - col0 FROM tab1
----
14
-1
47
39
5
33

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 * col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( + 67 ) AS col2 FROM tab0 WHERE NULL IS NULL
----
67

query II rowsort
SELECT ALL ( - + col0 ) AS col1, col1 FROM tab1
----
-51
14
-85
5
-91
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 51 col2, + col2 * col1 AS col1 FROM tab0 cor0
----
51
210
51
3807
51
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4373
SELECT 8 * - COUNT( * ) FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-4373
SELECT 8 * - COUNT ( * ) FROM tab1 AS cor0
----
-24

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT NULL <> col1
----

query II rowsort
SELECT ALL + 9 AS col2, - 60 * - col2 FROM tab2 AS cor0
----
9
1380
9
2400
9
3480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4376
SELECT - - 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-4376
SELECT - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col0 * - col2 + - - 18 FROM tab2 AS cor0
----
-1040
-2542
-4332

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 + + col0 <= 69 * col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 36 col1 FROM tab2 AS cor0
----
-36
-36
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4380
SELECT - CAST( - 88 AS SIGNED ) FROM tab1 AS cor0
----
88
88
88

skipif mysql # not compatible
query I rowsort label-4380
SELECT - CAST ( - 88 AS INTEGER ) FROM tab1 AS cor0
----
88
88
88

query I rowsort
SELECT + + col1 * + - 80 AS col0 FROM tab0 AS cor0
----
-1680
-6480
-80

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col2, + col1 + 36 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4383
SELECT DISTINCT + 78 * + CAST( NULL AS SIGNED ), + ( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4383
SELECT DISTINCT + 78 * + CAST ( NULL AS INTEGER ), + ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 96 col0 FROM tab2 AS cor0
----
-96
-96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT + - MAX( col1 ) * + 23 FROM tab2 WHERE NULL IS NULL
----
-1771

skipif mysql # not compatible
query I rowsort label-4385
SELECT + - MAX ( col1 ) * + 23 FROM tab2 WHERE NULL IS NULL
----
-1771

query I rowsort
SELECT DISTINCT + - 76 * - col1 FROM tab1 WHERE col0 >= + col0
----
1064
3572
380

query I rowsort
SELECT + 80 AS col2 FROM tab2 WHERE - ( - + ( + 22 ) ) IS NOT NULL
----
80
80
80

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE + + 7 <> + col1
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT - ( - 97 ) * + COUNT( * ) AS col2 FROM tab1
----
291

skipif mysql # not compatible
query I rowsort label-4389
SELECT - ( - 97 ) * + COUNT ( * ) AS col2 FROM tab1
----
291

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT - 10 * - - MIN( ALL - 47 ) FROM tab1
----
470

skipif mysql # not compatible
query I rowsort label-4390
SELECT - 10 * - - MIN ( ALL - 47 ) FROM tab1
----
470

query I rowsort
SELECT + col1 + - + 69 AS col0 FROM tab2
----
-18
-2
8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4392
SELECT ALL CAST( NULL AS DECIMAL ) * col2 / - + 22 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4392
SELECT ALL CAST ( NULL AS REAL ) * col2 / - + 22 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 50 BETWEEN - col2 * - col2 AND - 18
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT DISTINCT - 28 + + COUNT( * ) FROM tab1 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-4394
SELECT DISTINCT - 28 + + COUNT ( * ) FROM tab1 AS cor0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT ALL - MIN( ( - 19 ) ) FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-4395
SELECT ALL - MIN ( ( - 19 ) ) FROM tab0 AS cor0
----
19

query I rowsort
SELECT DISTINCT + ( - col2 ) * + col0 FROM tab1 AS cor0 WHERE NOT + col1 <> - - 44 + + col2
----

query I rowsort
SELECT - ( - 80 ) FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT DISTINCT + col1 + - 92 AS col1 FROM tab1
----
-45
-78
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4399
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - SUM( - 7 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4399
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - SUM ( - 7 ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( + + col1 ) col1, + 45 * - col2 + + - col2 + + col0 col2 FROM tab1 AS cor0
----
14
-4365
47
-3037
5
-2629

onlyif mysql # DIV for integer division: 
query I rowsort label-4401
SELECT col0 DIV + - col2 - + col0 * + 6 * - - col1 + col1 DIV - col0 AS col1 FROM tab0 AS cor0
----
-10970
-582
-7295

skipif mysql # not compatible
query I rowsort label-4401
SELECT col0 / + - col2 - + col0 * + 6 * - - col1 + col1 / - col0 AS col1 FROM tab0 AS cor0
----
-10970
-582
-7295

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND + 82 AND NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT ALL ( + COUNT( * ) ) * 60 FROM tab2 AS cor0 WHERE NOT col2 * col1 + - col2 > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4403
SELECT ALL ( + COUNT ( * ) ) * 60 FROM tab2 AS cor0 WHERE NOT col2 * col1 + - col2 > ( NULL )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( - col2 ) = - 25
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT DISTINCT + MAX( + 47 ) AS col1 FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-4405
SELECT DISTINCT + MAX ( + 47 ) AS col1 FROM tab0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT + 16 * + 31 * - - MIN( 76 ) AS col0 FROM tab0
----
37696

skipif mysql # not compatible
query I rowsort label-4406
SELECT + 16 * + 31 * - - MIN ( 76 ) AS col0 FROM tab0
----
37696

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT DISTINCT SUM( DISTINCT col0 ) AS col1 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-4407
SELECT DISTINCT SUM ( DISTINCT col0 ) AS col1 FROM tab2
----
185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4408
SELECT CAST( NULL AS SIGNED ) / 6 / COUNT( * ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4408
SELECT CAST ( NULL AS INTEGER ) / 6 / COUNT ( * ) AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4409
SELECT DISTINCT * FROM tab2 WHERE NOT col2 * + 85 + - CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-4409
SELECT DISTINCT * FROM tab2 WHERE NOT col2 * + 85 + - CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT 34 * 82 AS col0 FROM tab1
----
2788
2788
2788

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT DISTINCT + MAX( col1 ) col1 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4411
SELECT DISTINCT + MAX ( col1 ) col1 FROM tab2 AS cor0
----
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4412
SELECT - col0 + CAST( + 72 AS DECIMAL ) FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN col0 * - col2 AND + + col0
----

skipif mysql # not compatible
query I rowsort label-4412
SELECT - col0 + CAST ( + 72 AS REAL ) FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN col0 * - col2 AND + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4413
SELECT DISTINCT * FROM tab1 WHERE NOT + + col1 IN ( + ( + + col2 ), - 92 * + + col0, + 70, + 47 * - - col1 - - CAST( NULL AS SIGNED ), + col0, + col0 )
----

skipif mysql # not compatible
query III rowsort label-4413
SELECT DISTINCT * FROM tab1 WHERE NOT + + col1 IN ( + ( + + col2 ), - 92 * + + col0, + 70, + 47 * - - col1 - - CAST ( NULL AS INTEGER ), + col0, + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 20 col0, 62 * + col1 * 73 AS col0 FROM tab2
----
-20
230826
-20
303242
-20
348502

query II rowsort
SELECT col1 * + 37 AS col1, - col0 AS col1 FROM tab1
----
1739
-91
185
-85
518
-51

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 + - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4417
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 7 AND CAST( NULL AS SIGNED ) / + + col0 + - col1 + - col0
----

skipif mysql # not compatible
query III rowsort label-4417
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 7 AND CAST ( NULL AS INTEGER ) / + + col0 + - col1 + - col0
----

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NOT 48 * - col2 - - 94 * + col2 IS NULL
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 <> - 48
----

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT + col2 + + ( + 12 ) IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT DISTINCT - + 24 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-4421
SELECT DISTINCT - + 24 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-72

query I rowsort
SELECT 27 - - - col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-32
-41
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-4423
SELECT ALL - + col0 DIV + 48 + col2 FROM tab1 AS cor0
----
58
67
95

skipif mysql # not compatible
query I rowsort label-4423
SELECT ALL - + col0 / + 48 + col2 FROM tab1 AS cor0
----
58
67
95

query I rowsort
SELECT + + 41 + - + col0 FROM tab0 AS cor0
----
-46
-56
26

query I rowsort
SELECT DISTINCT + 77 + + col1 FROM tab0 AS cor0
----
158
78
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 83 * + col2 col0 FROM tab1
----
-4897
-5644
-7968

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4427
SELECT ALL CAST( NULL AS SIGNED ) + + - col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4427
SELECT ALL CAST ( NULL AS INTEGER ) + + - col2 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 20 + - 50 + - col0 AS col1 FROM tab0
----
-117
-127
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-4429
SELECT - - col0 - - - col1 DIV - col1 AS col1 FROM tab2 AS cor0
----
47
65
76

skipif mysql # not compatible
query I rowsort label-4429
SELECT - - col0 - - - col1 / - col1 AS col1 FROM tab2 AS cor0
----
47
65
76

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 88 NOT BETWEEN NULL AND + 21 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT MAX( ( + 18 ) ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4431
SELECT MAX ( ( + 18 ) ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
18

query I rowsort
SELECT DISTINCT 51 - 97 FROM tab1
----
-46

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 7 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * - col0 / 58 / - + 2 AS col0 FROM tab0 AS cor0 WHERE - col2 * - col0 IS NULL
----

query I rowsort
SELECT + ( + + 45 ) FROM tab0 cor0 WHERE - col2 BETWEEN + col0 AND + 55 + + + col0
----

query I rowsort
SELECT - col1 + - - 57 - - - col1 FROM tab0 AS cor0
----
-105
15
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT MAX( + col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-4437
SELECT MAX ( + col1 ) FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT ALL + - MIN( ALL + 88 ) FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-4438
SELECT ALL + - MIN ( ALL + 88 ) FROM tab1 AS cor0
----
-88

query I rowsort
SELECT + col2 * col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 * + col0 + - + ( col1 ) AND + 42
----

query I rowsort
SELECT + ( - + col2 ) * col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT - - MIN( DISTINCT - + col1 ) AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4441
SELECT - - MIN ( DISTINCT - + col1 ) AS col2 FROM tab0 AS cor0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4442
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL NOT IN ( 69 + - 66 + ( + col0 ) / CAST( col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4442
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL NOT IN ( 69 + - 66 + ( + col0 ) / CAST ( col2 AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 0 col2, - 59 FROM tab0 AS cor0
----
0
-59
0
-59
0
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-4444
SELECT - MIN( DISTINCT + - col2 ) AS col2, COUNT( * ) AS col0 FROM tab2
----
58
3

skipif mysql # not compatible
query II rowsort label-4444
SELECT - MIN ( DISTINCT + - col2 ) AS col2, COUNT ( * ) AS col0 FROM tab2
----
58
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( - 28 * + 55 + - col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4446
SELECT ( + ( + 85 ) ) DIV - MIN( 67 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-4446
SELECT ( + ( + 85 ) ) / - MIN ( 67 ) FROM tab1
----
-1

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 62 + - ( + + col1 ) / + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + ( - + col1 ) * 57 + - - col1 <= - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT DISTINCT - + COUNT( * ) * - COUNT( - - col1 ) FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-4449
SELECT DISTINCT - + COUNT ( * ) * - COUNT ( - - col1 ) FROM tab2 cor0
----
9

query I rowsort
SELECT DISTINCT + 18 * 53 FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN NULL AND - 64
----
954

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT DISTINCT + COUNT( * ) + - 49 + - 77 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-123

skipif mysql # not compatible
query I rowsort label-4451
SELECT DISTINCT + COUNT ( * ) + - 49 + - 77 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT + 78 + + + COUNT( * ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-4452
SELECT + 78 + + + COUNT ( * ) FROM tab0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4453
SELECT col2 DIV + + col2 + + 17 FROM tab2 AS cor0
----
18
18
18

skipif mysql # not compatible
query I rowsort label-4453
SELECT col2 / + + col2 + + 17 FROM tab2 AS cor0
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT - MAX( DISTINCT - + 41 ) AS col1 FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-4454
SELECT - MAX ( DISTINCT - + 41 ) AS col1 FROM tab2 AS cor0
----
41

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 BETWEEN + col0 + - col0 AND NULL
----

query II rowsort
SELECT 39 AS col0, 26 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
39
26
39
26
39
26

query I rowsort
SELECT ALL - col2 * 69 FROM tab1 AS cor0
----
-4071
-4692
-6624

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT 44 * + + COUNT( * ) col2 FROM tab0 AS cor0
----
132

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4458
SELECT 44 * + + COUNT ( * ) col2 FROM tab0 AS cor0
----
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4459
SELECT ALL - + ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4459
SELECT ALL - + ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 28 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + - 49 col1 FROM tab2 AS cor0
----
-113
-124
-95

query I rowsort
SELECT - 93 * + col1 AS col2 FROM tab0 AS cor0
----
-1953
-7533
-93

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 28 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE col0 > - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 76 - - col2 AS col0 FROM tab0
----
123
175
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4466
SELECT DISTINCT - - ( + 67 ) DIV - 18 - + CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab2 WHERE - + col1 > - - 64
----
-3

skipif mysql # not compatible
query I rowsort label-4466
SELECT DISTINCT - - ( + 67 ) / - 18 - + CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 WHERE - + col1 > - - 64
----
-3

query I rowsort
SELECT DISTINCT 84 + col2 FROM tab2
----
107
124
142

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT DISTINCT COUNT( * ) FROM tab2, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4468
SELECT DISTINCT COUNT ( * ) FROM tab2, tab2 AS cor0
----
9

query I rowsort
SELECT ALL - col1 * - + col1 + - + 35 AS col1 FROM tab2
----
2566
4454
5894

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4470
SELECT - COUNT( - 17 ) DIV + 20 FROM tab0, tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4470
SELECT - COUNT ( - 17 ) / + 20 FROM tab0, tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4471
SELECT DISTINCT col1 AS col1, - col2 * + 10 + - col0 DIV - 53 + - 64 col1 FROM tab0
----
1
-1053
21
-163
81
-534

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4471
SELECT DISTINCT col1 AS col1, - col2 * + 10 + - col0 / - 53 + - 64 col1 FROM tab0
----
1
-1053
21
-163
81
-534

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( 12 * - + 11 + col2 )
----

query I rowsort
SELECT - col2 + 16 AS col0 FROM tab2 AS cor0
----
-24
-42
-7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 - + 78 FROM tab2
----
-20
-38
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-4476
SELECT - ( 33 ), ( - COUNT( DISTINCT - col0 ) ) * ( - + 42 ) * - 29 AS col0 FROM tab1 AS cor0
----
-33
-3654

skipif mysql # not compatible
query II rowsort label-4476
SELECT - ( 33 ), ( - COUNT ( DISTINCT - col0 ) ) * ( - + 42 ) * - 29 AS col0 FROM tab1 AS cor0
----
-33
-3654

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT DISTINCT SUM( col0 ) AS col1 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-4477
SELECT DISTINCT SUM ( col0 ) AS col1 FROM tab2 AS cor0
----
185

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 18 + - - 2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 4 NOT BETWEEN - col1 * - col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 <= 97
----

query I rowsort
SELECT - col2 * + + col0 AS col1 FROM tab2
----
-1058
-2560
-4350

query II rowsort
SELECT col2, + 45 - + 84 - + col0 AS col1 FROM tab2
----
23
-85
40
-103
58
-114

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4483
SELECT col0 AS col1, CAST( - 68 AS SIGNED ) FROM tab0
----
15
-68
87
-68
97
-68

skipif mysql # not compatible
query II rowsort label-4483
SELECT col0 AS col1, CAST ( - 68 AS INTEGER ) FROM tab0
----
15
-68
87
-68
97
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4484
SELECT DISTINCT + + 51 * - col2 FROM tab0 WHERE NOT 26 + + CAST( NULL AS SIGNED ) < - ( + - col0 )
----

skipif mysql # not compatible
query I rowsort label-4484
SELECT DISTINCT + + 51 * - col2 FROM tab0 WHERE NOT 26 + + CAST ( NULL AS INTEGER ) < - ( + - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4485
SELECT 23 DIV - col2 col1 FROM tab0
----
-2
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4485
SELECT 23 / - col2 col1 FROM tab0
----
-2
0
0

query I rowsort
SELECT + - 79 * + col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3634
-5056
-5925

query I rowsort
SELECT DISTINCT 13 AS col1 FROM tab1 cor0
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4488
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4488
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT DISTINCT - + COUNT( DISTINCT + col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4489
SELECT DISTINCT - + COUNT ( DISTINCT + col2 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4490
SELECT - 54, - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-54
-3

skipif mysql # not compatible
query II rowsort label-4490
SELECT - 54, - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-54
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4491
SELECT - - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4491
SELECT - - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT DISTINCT + 65 + + col0 * - - col2 AS col2 FROM tab1 AS cor0
----
4961
5080
6253

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 46 col0 FROM tab2 cor0
----
46

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - - 57 ) * + + ( + col2 ) IS NOT NULL
----

query I rowsort
SELECT ( + col0 ) + + col2 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT + col0 * + 44 + - + 94 AS col1 FROM tab1 cor0
----
2150
3646
3910

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 6 + ( - + col2 ) IS NOT NULL
----

query I rowsort
SELECT + 34 + - - 32 AS col2 FROM tab2 AS cor0
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT COUNT( * ) + MAX( + + 86 ) AS col1 FROM tab1
----
89

skipif mysql # not compatible
query I rowsort label-4499
SELECT COUNT ( * ) + MAX ( + + 86 ) AS col1 FROM tab1
----
89

query I rowsort
SELECT DISTINCT - col2 * + col0 + col0 AS col0 FROM tab2
----
-1012
-2496
-4275

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT DISTINCT MIN( DISTINCT - col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-4501
SELECT DISTINCT MIN ( DISTINCT - col1 ) FROM tab2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT + - ( + - MIN( - 44 ) ) col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4502
SELECT + - ( + - MIN ( - 44 ) ) col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4503
SELECT DISTINCT * FROM tab2 WHERE 89 + col0 + CAST( - - 26 AS SIGNED ) NOT IN ( + col1 * col0 * + - 34 * + col2, 71, - 9, - 41 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4503
SELECT DISTINCT * FROM tab2 WHERE 89 + col0 + CAST ( - - 26 AS INTEGER ) NOT IN ( + col1 * col0 * + - 34 * + col2, 71, - 9, - 41 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4504
SELECT DISTINCT - - col0 - - col0 DIV + + 61 AS col0 FROM tab1 AS cor0
----
51
86
92

skipif mysql # not compatible
query I rowsort label-4504
SELECT DISTINCT - - col0 - - col0 / + + 61 AS col0 FROM tab1 AS cor0
----
51
86
92

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <> + 30
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4506
SELECT + - ( COUNT( * ) ) - + COUNT( * ) AS col1 FROM tab1 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4506
SELECT + - ( COUNT ( * ) ) - + COUNT ( * ) AS col1 FROM tab1 cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT ALL - - COUNT( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4507
SELECT ALL - - COUNT ( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IS NULL OR NOT ( NULL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT DISTINCT 12 * + COUNT( * ) col0 FROM tab1
----
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4509
SELECT DISTINCT 12 * + COUNT ( * ) col0 FROM tab1
----
36

query I rowsort
SELECT DISTINCT + - ( + col2 ) FROM tab2 cor0
----
-23
-40
-58

query I rowsort
SELECT + 65 * ( + col1 ) + 3 + + - col1 * - ( + col2 ) FROM tab0 AS cor0
----
1578
167
9075

query II rowsort
SELECT ALL - + 44, col2 FROM tab1 AS cor0
----
-44
59
-44
68
-44
96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 >= - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col2 AS col2, col0 AS col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 57 col2 FROM tab0 AS cor0
----
-57
-57
-57

query I rowsort
SELECT ALL - 39 * - col1 - - 34 AS col0 FROM tab2 AS cor0
----
2023
2647
3037

query I rowsort
SELECT DISTINCT - + col2 * + col0 AS col0 FROM tab2 cor0
----
-1058
-2560
-4350

onlyif mysql # DIV for integer division: 
query I rowsort label-4518
SELECT ALL col0 DIV + + col2 AS col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4518
SELECT ALL col0 / + + col2 AS col2 FROM tab1
----
0
1
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 52 - + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4520
SELECT DISTINCT + COUNT( * ) + + CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4520
SELECT DISTINCT + COUNT ( * ) + + CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= col2 * + - 28 * - col1
----

query I rowsort
SELECT ALL + col0 + - 88 FROM tab1
----
-3
-37
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4523
SELECT - COUNT( * ) * - + COUNT( * ) + + + MIN( col1 ) AS col1, - CAST( - COUNT( * ) AS SIGNED ) + 61 FROM tab1 AS cor0
----
14
64

skipif mysql # not compatible
query II rowsort label-4523
SELECT - COUNT ( * ) * - + COUNT ( * ) + + + MIN ( col1 ) AS col1, - CAST ( - COUNT ( * ) AS INTEGER ) + 61 FROM tab1 AS cor0
----
14
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT ALL + COUNT( * ) + - 37 col1 FROM tab2 AS cor0
----
-34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4524
SELECT ALL + COUNT ( * ) + - 37 col1 FROM tab2 AS cor0
----
-34

query I rowsort
SELECT - 35 * - + col2 FROM tab2 AS cor0
----
1400
2030
805

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT ALL + COUNT( * ) * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4526
SELECT ALL + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4527
SELECT CAST( NULL AS SIGNED ) / - AVG ( + col2 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4527
SELECT CAST ( NULL AS INTEGER ) / - AVG ( + col2 ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 38 FROM tab1 AS cor0 WHERE ( NULL ) <> - col2 * - - 49 * + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4529
SELECT ALL + 17 AS col2, COUNT( * ) AS col0 FROM tab0 AS cor0
----
17
3

skipif mysql # not compatible
query II rowsort label-4529
SELECT ALL + 17 AS col2, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
17
3

query I rowsort
SELECT ALL + + col1 FROM tab1 AS cor0 WHERE ( + + col2 < - + col2 )
----

query I rowsort
SELECT ALL + - ( - col1 ) AS col0 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT DISTINCT + ( + - ( col0 ) ) * - + 57 + - + col0 FROM tab0
----
4872
5432
840

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - - col2 + + col1 + ( - 60 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT - COUNT( * ) * - COUNT( * ) + + COUNT( * ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-4534
SELECT - COUNT ( * ) * - COUNT ( * ) + + COUNT ( * ) FROM tab0
----
12

query I rowsort
SELECT + 71 + + col2 * 26 FROM tab1
----
1605
1839
2567

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT ALL ( - - MAX( - col2 ) ) - + 70 AS col1 FROM tab1
----
-129

skipif mysql # not compatible
query I rowsort label-4536
SELECT ALL ( - - MAX ( - col2 ) ) - + 70 AS col1 FROM tab1
----
-129

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 65 + + 44 * ( + col1 ) <> - col1 + + - ( - - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT - 37 + - COUNT( * ) FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-4538
SELECT - 37 + - COUNT ( * ) FROM tab2
----
-40

query II rowsort
SELECT + col1 + + 49 AS col2, col2 AS col1 FROM tab1
----
54
59
63
96
96
68

query I rowsort
SELECT ( - - 25 ) + col0 FROM tab0
----
112
122
40

query I rowsort
SELECT + col0 * + + col0 + + col0 FROM tab1
----
2652
7310
8372

query I rowsort
SELECT col2 * + + col2 * - col0 + - col2 AS col0 FROM tab0
----
-33182
-8710
-950796

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4543
SELECT ALL + + 72 * + + col2 + - + CAST( - + col0 AS SIGNED ) + - col1 * ( + - 57 ) * + - 52 * + ( + col1 ) * + + 7 AS col1 FROM tab0 AS cor0
----
-13523
-136124229
-9149061

skipif mysql # not compatible
query I rowsort label-4543
SELECT ALL + + 72 * + + col2 + - + CAST ( - + col0 AS INTEGER ) + - col1 * ( + - 57 ) * + - 52 * + ( + col1 ) * + + 7 AS col1 FROM tab0 AS cor0
----
-13523
-136124229
-9149061

query I rowsort
SELECT - col0 + - col2 * col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT - 67 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query I rowsort
SELECT 43 * + - 71 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1da6a0d71dac8b051e092916580e7a23

query I rowsort
SELECT DISTINCT + 33 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
33

query I rowsort
SELECT - col0 * - ( 41 ) AS col2 FROM tab1
----
2091
3485
3731

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT - COUNT( - col0 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4549
SELECT - COUNT ( - col0 ) AS col0 FROM tab1
----
-3

query II rowsort
SELECT col1, - 46 FROM tab1 AS cor0
----
14
-46
47
-46
5
-46

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 IN ( + col1 * + col0, - ( col1 ) + - 7 / col1, + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT DISTINCT - 21 * 22 * - COUNT( * ) FROM tab1 AS cor0
----
1386

skipif mysql # not compatible
query I rowsort label-4552
SELECT DISTINCT - 21 * 22 * - COUNT ( * ) FROM tab1 AS cor0
----
1386

query I rowsort
SELECT DISTINCT col0 * - col2 - - 79 AS col1 FROM tab0 cor0
----
-626
-791
-9524

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 col0 FROM tab0 cor0
----
3
3
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT DISTINCT + + col1 AS col2 FROM tab2 WHERE - + 68 * + col0 + + col0 < + - 17
----
51
67
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4557
SELECT DISTINCT COUNT( * ) + - COUNT( DISTINCT + + ( + + col2 ) ) + + COUNT( * ) DIV + COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4557
SELECT DISTINCT COUNT ( * ) + - COUNT ( DISTINCT + + ( + + col2 ) ) + + COUNT ( * ) / + COUNT ( * ) FROM tab1
----
1

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT col0 IS NULL
----
51
67
77

query II rowsort
SELECT DISTINCT col0 AS col1, + ( - col0 ) + + 99 * + col0 - - - 65 FROM tab2
----
46
4443
64
6207
75
7285

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN + + col0 + + - col0 AND + 69
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4561
SELECT + ( - 26 ) / - - 27 / - - CAST( NULL AS DECIMAL ) * 56 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4561
SELECT + ( - 26 ) / - - 27 / - - CAST ( NULL AS REAL ) * 56 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4562
SELECT DISTINCT - COUNT( * ) AS col1, - 0 AS col0 FROM tab0 AS cor0
----
-3
0

skipif mysql # not compatible
query II rowsort label-4562
SELECT DISTINCT - COUNT ( * ) AS col1, - 0 AS col0 FROM tab0 AS cor0
----
-3
0

query I rowsort
SELECT 71 FROM tab0 AS cor0 WHERE NULL > ( col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT ( ( + col1 + + 28 ) BETWEEN col0 AND NULL ) )
----

query I rowsort
SELECT + 86 FROM tab0 AS cor0 WHERE 69 IS NOT NULL
----
86
86
86

query II rowsort
SELECT + col1, - col1 AS col0 FROM tab2 AS cor0
----
51
-51
67
-67
77
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 67 + - - col1 col2 FROM tab2
----
118
134
144

query III rowsort
SELECT * FROM tab1 WHERE + col2 + - - col1 * + col2 * + col1 * + col0 + + 60 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4569
SELECT DISTINCT 14 + + CAST( + - MAX( DISTINCT + col2 ) AS SIGNED ) FROM tab1
----
-82

skipif mysql # not compatible
query I rowsort label-4569
SELECT DISTINCT 14 + + CAST ( + - MAX ( DISTINCT + col2 ) AS INTEGER ) FROM tab1
----
-82

query I rowsort
SELECT ALL - 6 - - col2 AS col0 FROM tab2 AS cor0
----
17
34
52

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4571
SELECT ALL + col2 * - - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4571
SELECT ALL + col2 * - - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 <= col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + 61 - 96 AS col0 FROM tab2 AS cor0
----
-35
-35
-35

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = 25 + col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col0 AND NULL
----

query I rowsort
SELECT ( + col1 ) * - + col0 + + + col1 FROM tab0 AS cor0 WHERE - 46 IS NOT NULL
----
-1134
-1806
-96

query I rowsort
SELECT + - 83 * - col2 FROM tab1 AS cor0
----
4897
5644
7968

query I rowsort
SELECT ALL + - col0 * col1 * + col0 FROM tab0 AS cor0
----
-158949
-18225
-9409

onlyif mysql # DIV for integer division: 
query II rowsort label-4579
SELECT - col2 AS col1, col0 DIV - col0 - + + col0 - col2 AS col1 FROM tab2
----
-23
-70
-40
-105
-58
-134

skipif mysql # not compatible
query II rowsort label-4579
SELECT - col2 AS col1, col0 / - col0 - + + col0 - col2 AS col1 FROM tab2
----
-23
-70
-40
-105
-58
-134

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + 50 + col0 + - - col2 col2 FROM tab1
----
3094
3559
4947

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4581
SELECT - 15 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4581
SELECT - 15 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4582
SELECT DISTINCT - ( - - COUNT( ALL - 90 ) ) - - + SUM( DISTINCT 84 ) FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-4582
SELECT DISTINCT - ( - - COUNT ( ALL - 90 ) ) - - + SUM ( DISTINCT 84 ) FROM tab2
----
81

query I rowsort
SELECT ALL col2 * + 5 + + + 34 - + col0 * col2 FROM tab2
----
-2326
-4026
-909

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1, - col1 + col2 col1 FROM tab0 AS cor0
----
-1
98
-21
-11
-81
-34

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 10 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4586
SELECT + CAST( NULL AS SIGNED ) * - col2 - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4586
SELECT + CAST ( NULL AS INTEGER ) * - col2 - col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * 98 - + col1 AS col2 FROM tab0
----
1389
8505
9505

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 NOT IN ( col1 )
----

query I rowsort
SELECT - ( 12 ) AS col1 FROM tab1
----
-12
-12
-12

query I rowsort
SELECT DISTINCT + col0 * + 84 AS col1 FROM tab2 WHERE NOT ( col2 ) BETWEEN ( NULL ) AND + 69
----

query I rowsort
SELECT col0 - 21 * col2 FROM tab0
----
-123
-1982
-972

onlyif mysql # aggregate syntax: 
query I rowsort label-4592
SELECT ALL - COUNT( * ) * SUM( ALL + col2 * - 40 ) + SUM( + ( - ( col0 ) ) ) * + 32 AS col0 FROM tab2
----
8600

skipif mysql # not compatible
query I rowsort label-4592
SELECT ALL - COUNT ( * ) * SUM ( ALL + col2 * - 40 ) + SUM ( + ( - ( col0 ) ) ) * + 32 AS col0 FROM tab2
----
8600

onlyif mysql # DIV for integer division: 
query I rowsort label-4593
SELECT 31 DIV col0 - + ( col1 ) FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-4593
SELECT 31 / col0 - + ( col1 ) FROM tab2
----
-51
-67
-77

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE NOT NULL <= col1 * - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4595
SELECT CAST( NULL AS SIGNED ) * + ( + col1 ) - + col1 FROM tab2 WHERE NOT NULL > + col0
----

skipif mysql # not compatible
query I rowsort label-4595
SELECT CAST ( NULL AS INTEGER ) * + ( + col1 ) - + col1 FROM tab2 WHERE NOT NULL > + col0
----

query I rowsort
SELECT DISTINCT 89 + + col0 * - col0 FROM tab2
----
-2027
-4007
-5536

query I rowsort
SELECT ALL - col2 + - ( col2 ) FROM tab2
----
-116
-46
-80

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL < + col2 + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4599
SELECT * FROM tab1 WHERE ( - col2 + 31 ) IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4599
SELECT * FROM tab1 WHERE ( - col2 + 31 ) IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4600
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN ( col1 ) AND ( 34 + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4600
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN ( col1 ) AND ( 34 + + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4601
SELECT * FROM tab1 WHERE ( NULL ) BETWEEN NULL AND + CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4601
SELECT * FROM tab1 WHERE ( NULL ) BETWEEN NULL AND + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----

query I rowsort
SELECT - col1 AS col0 FROM tab2 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 WHERE NOT + col0 IN ( col2 * + 40 + 50 )
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT ALL MIN( col1 ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-4604
SELECT ALL MIN ( col1 ) AS col2 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT + COUNT( DISTINCT + col1 ) + - 4 col2 FROM tab2
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4605
SELECT + COUNT ( DISTINCT + col1 ) + - 4 col2 FROM tab2
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 * + col0 col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col2 + col2 AS col0 FROM tab0 WHERE - ( col2 ) + - col2 IS NOT NULL
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT COUNT( * ) AS col1 FROM tab2 WHERE NOT 42 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4608
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE NOT 42 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT + 44 + COUNT( * ) * 11 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4609
SELECT + 44 + COUNT ( * ) * 11 FROM tab2 AS cor0
----
77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 75 ) * - col2 IN ( + 34 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4611
SELECT DISTINCT + 14 DIV col0 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4611
SELECT DISTINCT + 14 / col0 AS col2 FROM tab2
----
0

query I rowsort
SELECT ALL - 10 + col0 FROM tab1 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT DISTINCT COUNT( * ) - - COUNT( * ) * - SUM( col1 * + col2 + - 86 ) FROM tab1
----
-13728

skipif mysql # not compatible
query I rowsort label-4613
SELECT DISTINCT COUNT ( * ) - - COUNT ( * ) * - SUM ( col1 * + col2 + - 86 ) FROM tab1
----
-13728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4614
SELECT DISTINCT col2 + - CAST( + 42 AS SIGNED ) AS col2 FROM tab2
----
-19
-2
16

skipif mysql # not compatible
query I rowsort label-4614
SELECT DISTINCT col2 + - CAST ( + 42 AS INTEGER ) AS col2 FROM tab2
----
-19
-2
16

query I rowsort
SELECT ALL + 43 FROM tab1 WHERE + 31 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 NOT IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( - ( - col2 ) ) FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT ALL 1 - + col2 FROM tab0 AS cor0
----
-46
-9
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT - SUM( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-4619
SELECT - SUM ( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
-227

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN col1 + col2 AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4622
SELECT col0 * - col0 AS col0 FROM tab1 AS cor0 WHERE 90 NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4622
SELECT col0 * - col0 AS col0 FROM tab1 AS cor0 WHERE 90 NOT IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT MAX( ALL - col1 ) FROM tab2 cor0 WHERE col1 * - 26 + + col0 IS NOT NULL
----
-51

skipif mysql # not compatible
query I rowsort label-4623
SELECT MAX ( ALL - col1 ) FROM tab2 cor0 WHERE col1 * - 26 + + col0 IS NOT NULL
----
-51

query I rowsort
SELECT - col1 AS col1 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4625
SELECT + col1 * 36 + CAST( NULL AS SIGNED ) * - col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4625
SELECT + col1 * 36 + CAST ( NULL AS INTEGER ) * - col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4626
SELECT DISTINCT 96 + - + 64 + CAST( + col0 AS SIGNED ) FROM tab2
----
107
78
96

skipif mysql # not compatible
query I rowsort label-4626
SELECT DISTINCT 96 + - + 64 + CAST ( + col0 AS INTEGER ) FROM tab2
----
107
78
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4627
SELECT ALL col2 AS col1 FROM tab2 WHERE NOT + 41 * - 19 + 8 * - 77 NOT IN ( 1 + CAST( - col0 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4627
SELECT ALL col2 AS col1 FROM tab2 WHERE NOT + 41 * - 19 + 8 * - 77 NOT IN ( 1 + CAST ( - col0 AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + ( - col0 ) * col2 IS NOT NULL OR NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 96 * + col1 * + col0 AS col2 FROM tab2
----
225216
473088
482400

onlyif mysql # DIV for integer division: 
query I rowsort label-4630
SELECT DISTINCT + col1 DIV - ( 85 ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4630
SELECT DISTINCT + col1 / - ( 85 ) FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT - 57 * COUNT( * ) col1 FROM tab2 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-4631
SELECT - 57 * COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4632
SELECT ALL + col1 DIV col0 * col1 AS col1 FROM tab0 AS cor0
----
0
0
405

skipif mysql # not compatible
query I rowsort label-4632
SELECT ALL + col1 / col0 * col1 AS col1 FROM tab0 AS cor0
----
0
0
405

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = - col2 AND ( - 43 / + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT + - SUM( - + col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-4634
SELECT + - SUM ( - + col2 ) FROM tab0 AS cor0
----
156

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 - - col1 NOT BETWEEN NULL AND 94
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT ALL 52 * + 48 + - ( + SUM( + ( ( col0 ) ) ) ) FROM tab0 WHERE NOT - + ( + 25 ) IN ( col2 + - col2 )
----
2297

skipif mysql # not compatible
query I rowsort label-4636
SELECT ALL 52 * + 48 + - ( + SUM ( + ( ( col0 ) ) ) ) FROM tab0 WHERE NOT - + ( + 25 ) IN ( col2 + - col2 )
----
2297

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT ALL MIN( ALL + - 24 ) * COUNT( * ) FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-4637
SELECT ALL MIN ( ALL + - 24 ) * COUNT ( * ) FROM tab2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT DISTINCT MIN( DISTINCT col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-4638
SELECT DISTINCT MIN ( DISTINCT col2 ) FROM tab1
----
59

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 45 IN ( col1 * col2 + 66 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT + + MIN( ALL - 74 ) FROM tab1 cor0
----
-74

skipif mysql # not compatible
query I rowsort label-4640
SELECT + + MIN ( ALL - 74 ) FROM tab1 cor0
----
-74

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( + col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - col2 AS col1, 44 - - col1 AS col1 FROM tab1 AS cor0
----
-59
49
-68
91
-96
58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 - 60 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + 63 FROM tab0 cor0
----
-63
-63
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-4645
SELECT + ( + col2 ) DIV - 52 + 42 AS col2 FROM tab1 AS cor0
----
41
41
41

skipif mysql # not compatible
query I rowsort label-4645
SELECT + ( + col2 ) / - 52 + 42 AS col2 FROM tab1 AS cor0
----
41
41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT 18 + + + COUNT( * ) FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-4646
SELECT 18 + + + COUNT ( * ) FROM tab1
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4647
SELECT DISTINCT - 2 + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4647
SELECT DISTINCT - 2 + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT - col1 * col0 + col0 * - 96 + + 68 AS col0 FROM tab1
----
-12945
-5542
-8517

query I rowsort
SELECT 59 + 0 FROM tab1
----
59
59
59

query I rowsort
SELECT ( col2 ) + - - col2 + - + col1 - ( + col0 ) FROM tab1
----
-2
127
28

query I rowsort
SELECT DISTINCT - ( 18 ) * col0 * + - col1 + - ( - col1 ) * + 94 FROM tab0
----
1840
29484
34860

query I rowsort
SELECT ALL 30 AS col2 FROM tab2 WHERE ( - col0 ) NOT IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT + + SUM( DISTINCT ( - - col2 ) ) AS col0 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-4653
SELECT + + SUM ( DISTINCT ( - - col2 ) ) AS col0 FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT DISTINCT - - COUNT( * ) + - SUM( DISTINCT - col2 ) / + 83 AS col0 FROM tab0 AS cor0 WHERE col2 - - - col1 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4654
SELECT DISTINCT - - COUNT ( * ) + - SUM ( DISTINCT - col2 ) / + 83 AS col0 FROM tab0 AS cor0 WHERE col2 - - - col1 < NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * 11 col0 FROM tab1 AS cor0
----
-1001
-561
-935

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4656
SELECT + - ( - + 35 ) DIV - 51 - + COUNT( ALL + col0 ) + + COUNT( ALL col2 - 8 ) AS col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4656
SELECT + - ( - + 35 ) / - 51 - + COUNT ( ALL + col0 ) + + COUNT ( ALL col2 - 8 ) AS col1 FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT + + COUNT( * ) - 53 FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-4657
SELECT + + COUNT ( * ) - 53 FROM tab1 AS cor0
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4658
SELECT ALL - 49 + + MAX( - col0 ) DIV - - COUNT( - col2 ) - + 61 AS col2 FROM tab0 AS cor0
----
-115

skipif mysql # not compatible
query I rowsort label-4658
SELECT ALL - 49 + + MAX ( - col0 ) / - - COUNT ( - col2 ) - + 61 AS col2 FROM tab0 AS cor0
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT 7 + + 85 + + + MIN( ALL + 84 ) * - 42 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-3436

skipif mysql # not compatible
query I rowsort label-4659
SELECT 7 + + 85 + + + MIN ( ALL + 84 ) * - 42 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-3436

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT - 34 - COUNT( * ) * - 89 AS col0 FROM tab0
----
233

skipif mysql # not compatible
query I rowsort label-4660
SELECT - 34 - COUNT ( * ) * - 89 AS col0 FROM tab0
----
233

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 75 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 26 * - + 61 * + 39 + col0 * - col0 AS col0 FROM tab1
----
53573
54629
59253

query III rowsort
SELECT * FROM tab1 WHERE - col1 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT ALL MAX( - 20 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4664
SELECT ALL MAX ( - 20 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col1 * + - col0 ) BETWEEN col0 AND + 85
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE - 53 * + col0 + - col2 + + ( col0 ) * col2 * - 26 IS NOT NULL
----
51
85
91

query I rowsort
SELECT ALL - 78 - + + 35 AS col1 FROM tab0 AS cor0
----
-113
-113
-113

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4668
SELECT * FROM tab0 AS cor0 WHERE ( + CAST( + 58 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4668
SELECT * FROM tab0 AS cor0 WHERE ( + CAST ( + 58 AS INTEGER ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 = ( - col1 )
----
3

skipif mysql # not compatible
query I rowsort label-4669
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 = ( - col1 )
----
3

query I rowsort
SELECT col2 * - col0 * + 46 FROM tab1 cor0
----
-225216
-230690
-284648

query I rowsort
SELECT 14 AS col0 FROM tab2 cor0 WHERE NOT NULL = ( col2 + col0 * - + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT ALL + SUM( - col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-4672
SELECT ALL + SUM ( - col1 ) FROM tab1
----
-66

query I rowsort
SELECT - + col2 - col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + + col2 + - col2
----

query I rowsort
SELECT ALL 27 * + - 68 AS col2 FROM tab1
----
-1836
-1836
-1836

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 * - ( + col1 ) * 49 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col2 + col2 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col0 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - 31 AND - 82
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4678
SELECT + + MAX( + + 88 ) AS col2 FROM tab2 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-4678
SELECT + + MAX ( + + 88 ) AS col2 FROM tab2 AS cor0
----
88

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 83 + 7 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 + - - ( 45 ) AS col0 FROM tab1
----
130
136
96

query I rowsort
SELECT ALL - + 51 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4682
SELECT ( + CAST( - COUNT( DISTINCT + + col2 ) AS SIGNED ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4682
SELECT ( + CAST ( - COUNT ( DISTINCT + + col2 ) AS INTEGER ) ) FROM tab0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4683
SELECT - - col0 DIV 79 + - - col1 DIV - col0 FROM tab0 cor0
----
-5
1
1

skipif mysql # not compatible
query I rowsort label-4683
SELECT - - col0 / 79 + - - col1 / - col0 FROM tab0 cor0
----
-5
1
1

query I rowsort
SELECT + col2 * + col2 AS col1 FROM tab2 AS cor0 WHERE NOT + ( + 60 ) + - col0 / - col1 + + col0 IS NULL
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query II rowsort label-4685
SELECT DISTINCT MAX( col2 ) AS col2, COUNT( * ) AS col1 FROM tab1 AS cor0
----
96
3

skipif mysql # not compatible
query II rowsort label-4685
SELECT DISTINCT MAX ( col2 ) AS col2, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
96
3

query I rowsort
SELECT + 42 - col2 AS col1 FROM tab2 WHERE NULL >= ( NULL )
----

query II rowsort
SELECT DISTINCT ( + - col2 ) + - + col2, col1 - - 86 AS col1 FROM tab1
----
-118
91
-136
133
-192
100

query I rowsort
SELECT DISTINCT - ( + 44 ) + + col2 * - 74 * + 12 AS col2 FROM tab2
----
-20468
-35564
-51548

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4689
SELECT ALL * FROM tab0 WHERE NOT - + col1 + - CAST( + - col0 AS SIGNED ) IN ( - col2 + 97 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4689
SELECT ALL * FROM tab0 WHERE NOT - + col1 + - CAST ( + - col0 AS INTEGER ) IN ( - col2 + 97 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4690
SELECT * FROM tab2 WHERE - + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4690
SELECT * FROM tab2 WHERE - + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 41 + - 79 AS col1 FROM tab0
----
-120

query I rowsort
SELECT + col0 * col1 + col2 + col2 AS col1 FROM tab2
----
2392
5008
5141

query II rowsort
SELECT ALL + col2, ( col1 ) FROM tab2
----
23
51
40
77
58
67

query I rowsort
SELECT - col2 + - 89 FROM tab0 AS cor0
----
-136
-188
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT DISTINCT + SUM( DISTINCT + col2 ) col1 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4695
SELECT DISTINCT + SUM ( DISTINCT + col2 ) col1 FROM tab2 AS cor0
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4696
SELECT + - 88 * + + CAST( NULL AS SIGNED ) - + + 79 * + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4696
SELECT + - 88 * + + CAST ( NULL AS INTEGER ) - + + 79 * + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
NULL

query I rowsort
SELECT - 68 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT DISTINCT COUNT( * ) + + - COUNT( * ) col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4698
SELECT DISTINCT COUNT ( * ) + + - COUNT ( * ) col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
0

query I rowsort
SELECT DISTINCT + ( + - col0 ) + + 24 + + 26 * - - col0 FROM tab1
----
1299
2149
2299

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT DISTINCT - MIN( 33 ) + + COUNT( * ) - 75 AS col0 FROM tab2 AS cor0 WHERE + ( + col2 ) <> + 53
----
-105

skipif mysql # not compatible
query I rowsort label-4700
SELECT DISTINCT - MIN ( 33 ) + + COUNT ( * ) - 75 AS col0 FROM tab2 AS cor0 WHERE + ( + col2 ) <> + 53
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT ALL + - ( + + COUNT( * ) ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4701
SELECT ALL + - ( + + COUNT ( * ) ) col2 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 52 col1 FROM tab0 cor0
----
-52
-52
-52

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 0 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 36 AND - + col1 * - col1 + 76 + col1 / 58
----
0

skipif mysql # not compatible
query I rowsort label-4704
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 36 AND - + col1 * - col1 + 76 + col1 / 58
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 * - + ( + col1 ) < - 59
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT DISTINCT MIN( + + col2 ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-4706
SELECT DISTINCT MIN ( + + col2 ) AS col2 FROM tab2
----
23

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 * + col2 - col1 * + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT DISTINCT SUM( + 34 ) FROM tab2
----
102

skipif mysql # not compatible
query I rowsort label-4708
SELECT DISTINCT SUM ( + 34 ) FROM tab2
----
102

query I rowsort
SELECT + col2 * + 83 FROM tab0
----
3901
8217
830

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 * + 15 * 87 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= ( - 52 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT - - MIN( + + col0 ) AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4712
SELECT - - MIN ( + + col0 ) AS col2 FROM tab1 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4713
SELECT * FROM tab2 WHERE NOT - CAST( - - col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4713
SELECT * FROM tab2 WHERE NOT - CAST ( - - col0 AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4714
SELECT DISTINCT 90 DIV - + 92 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4714
SELECT DISTINCT 90 / - + 92 AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4715
SELECT ALL col2 + 17 * + CAST( NULL AS SIGNED ) - + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4715
SELECT ALL col2 + 17 * + CAST ( NULL AS INTEGER ) - + col1 FROM tab1
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 JOIN tab1 AS cor1 ON NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 37 + + col1 * + col2 FROM tab1
----
1381
3233
332

query II rowsort
SELECT ALL + col0 AS col2, col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4719
SELECT ALL CAST( NULL AS DECIMAL ) * + + 70 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4719
SELECT ALL CAST ( NULL AS REAL ) * + + 70 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 AS col0 FROM tab1 AS cor0 WHERE + ( + col2 ) - + - col0 >= - col1 * - + 51
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT 97 + - COUNT( * ) + - + 59 FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-4721
SELECT 97 + - COUNT ( * ) + - + 59 FROM tab0 AS cor0
----
35

query I rowsort
SELECT + col1 AS col2 FROM tab0 AS cor0 WHERE NULL <= col1
----

query I rowsort
SELECT col1 + - col2 - - + 5 AS col0 FROM tab1 AS cor0
----
-16
-49
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-4724
SELECT - COUNT( * ) + COUNT( * ) AS col2, COUNT( * ) AS col1 FROM tab0
----
0
3

skipif mysql # not compatible
query II rowsort label-4724
SELECT - COUNT ( * ) + COUNT ( * ) AS col2, COUNT ( * ) AS col1 FROM tab0
----
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 7 + - - col0, col2 * + col1 + + - 23 col1 FROM tab1
----
58
1321
92
272
98
3173

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT - MAX( ALL - - 59 ) AS col1 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-4726
SELECT - MAX ( ALL - - 59 ) AS col1 FROM tab1
----
-59

query III rowsort
SELECT * FROM tab2 WHERE - col1 + 72 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 80 + - 14 FROM tab2
----
-94
-94
-94

query I rowsort
SELECT ALL col0 - - - 69 AS col0 FROM tab0 WHERE NOT + 45 + col1 / - - 17 BETWEEN - col1 / - col0 + + col1 + + 19 AND NULL
----
-54

query I rowsort
SELECT DISTINCT 60 AS col0 FROM tab1 WHERE - 71 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4731
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> + CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4731
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> + CAST ( col2 AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 = + col2 * - 63
----

query I rowsort
SELECT + - ( + col0 ) - col0 FROM tab0 AS cor0
----
-174
-194
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-4734
SELECT - + col1 - + col1 DIV + col0 AS col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-4734
SELECT - + col1 - + col1 / + col0 AS col1 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT DISTINCT ( - 20 ) AS col0 FROM tab2
----
-20

query I rowsort
SELECT ALL 14 * col1 FROM tab1
----
196
658
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 61 col0, - col1 * + col0 FROM tab0 AS cor0 WHERE NOT + col2 <= - col1
----
-61
-1215
-61
-1827
-61
-97

query II rowsort
SELECT ALL col1 AS col0, + 43 FROM tab2 AS cor0
----
51
43
67
43
77
43

query II rowsort
SELECT ALL col2 AS col0, + ( + col2 ) AS col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

query I rowsort
SELECT DISTINCT - - 1 AS col0 FROM tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( + col2 ) col1 FROM tab2 cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4742
SELECT ALL - AVG ( ALL + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4742
SELECT ALL - AVG ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 72 * + + ( + col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 <> + col0
----
3384
7128
720

query I rowsort
SELECT DISTINCT + col1 FROM tab2 cor0 WHERE ( NOT + - col2 <> col2 - - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col2, col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

query II rowsort
SELECT ALL - col2, col0 AS col1 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

onlyif mysql # aggregate syntax: 
query II rowsort label-4747
SELECT MAX( DISTINCT + 43 ) AS col1, - 84 FROM tab0
----
43
-84

skipif mysql # not compatible
query II rowsort label-4747
SELECT MAX ( DISTINCT + 43 ) AS col1, - 84 FROM tab0
----
43
-84

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 79 * - + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4749
SELECT + ( - ( CAST( - 61 AS SIGNED ) ) ) * - - col0 * + col2 DIV col2 FROM tab1
----
3111
5185
5551

skipif mysql # not compatible
query I rowsort label-4749
SELECT + ( - ( CAST ( - 61 AS INTEGER ) ) ) * - - col0 * + col2 / col2 FROM tab1
----
3111
5185
5551

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4750
SELECT - COUNT( * ) DIV 92 * - 57 * 51 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4750
SELECT - COUNT ( * ) / 92 * - 57 * 51 AS col2 FROM tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 38 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4752
SELECT DISTINCT 46 * col0 DIV + 74 FROM tab2 AS cor0
----
28
39
46

skipif mysql # not compatible
query I rowsort label-4752
SELECT DISTINCT 46 * col0 / + 74 FROM tab2 AS cor0
----
28
39
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4753
SELECT col0 + + + CAST( - - 22 AS SIGNED ) + - col0 * + CAST( col2 AS SIGNED ) + + - col0 col0 FROM tab0 AS cor0
----
-683
-848
-9581

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4753
SELECT col0 + + + CAST ( - - 22 AS INTEGER ) + - col0 * + CAST ( col2 AS INTEGER ) + + - col0 col0 FROM tab0 AS cor0
----
-683
-848
-9581

onlyif mysql # DIV for integer division: 
query I rowsort label-4754
SELECT ALL - 42 DIV + - col1 FROM tab1
----
0
3
8

skipif mysql # not compatible
query I rowsort label-4754
SELECT ALL - 42 / + - col1 FROM tab1
----
0
3
8

query I rowsort
SELECT ALL - 60 AS col1 FROM tab0 WHERE - col1 - col1 * - ( col0 ) = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT DISTINCT + 68 + - COUNT( * ) FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-4756
SELECT DISTINCT + 68 + - COUNT ( * ) FROM tab2
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4757
SELECT ALL ( + - col1 ) + + CAST( + col2 AS SIGNED ) AS col0 FROM tab1
----
21
54
82

skipif mysql # not compatible
query I rowsort label-4757
SELECT ALL ( + - col1 ) + + CAST ( + col2 AS INTEGER ) AS col0 FROM tab1
----
21
54
82

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 81 / 61 + + 33 < + 78 * - + 76 * col2 + + ( - col2 ) + - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4759
SELECT DISTINCT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT - CAST( - ( - col2 ) AS SIGNED ) * - col2 + col1 IS NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-4759
SELECT DISTINCT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT - CAST ( - ( - col2 ) AS INTEGER ) * - col2 + col1 IS NULL
----
10
47
99

query I rowsort
SELECT DISTINCT - 49 * - - col2 FROM tab0 AS cor0
----
-2303
-4851
-490

query I rowsort
SELECT DISTINCT - - 72 * + 78 * - - col1 AS col2 FROM tab2 AS cor0
----
286416
376272
432432

query I rowsort
SELECT ALL - col1 * + - col0 + col1 + + - col1 + + + 41 + + 26 FROM tab2 AS cor0
----
2413
4995
5092

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4763
SELECT DISTINCT - col1 * + CAST( NULL AS SIGNED ), - CAST( col2 AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 + + col2 IS NULL
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
query II rowsort label-4763
SELECT DISTINCT - col1 * + CAST ( NULL AS INTEGER ), - CAST ( col2 AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 + + col2 IS NULL
----
NULL
-59
NULL
-68
NULL
-96

query I rowsort
SELECT ALL - col0 * - 55 * + col0 AS col2 FROM tab0 AS cor0
----
12375
416295
517495

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT ( + MIN( DISTINCT + 39 ) ) AS col0 FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-4765
SELECT ( + MIN ( DISTINCT + 39 ) ) AS col0 FROM tab0 AS cor0
----
39

query I rowsort
SELECT - 7 - + + col1 FROM tab1
----
-12
-21
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT ( - + COUNT( * ) ) FROM tab1 WHERE NULL IN ( col1 ) AND ( + + 17 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4767
SELECT ( - + COUNT ( * ) ) FROM tab1 WHERE NULL IN ( col1 ) AND ( + + 17 ) IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4768
SELECT DISTINCT + 31 - col1 DIV - 85 * - col2 AS col0 FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-4768
SELECT DISTINCT + 31 - col1 / - 85 * - col2 AS col0 FROM tab2
----
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 41 col2 FROM tab1
----
126
132
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT ALL 6 + - + COUNT( * ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4770
SELECT ALL 6 + - + COUNT ( * ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4771
SELECT ALL col2 - + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4771
SELECT ALL col2 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + - 12 + + col0 AS col0 FROM tab2 cor0
----
121
57
92

query I rowsort
SELECT 90 + col2 AS col0 FROM tab2 AS cor0
----
113
130
148

query I rowsort
SELECT ALL + col0 * + + 63 * 40 - ( - 95 ) AS col1 FROM tab0 AS cor0
----
219335
244535
37895

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4775
SELECT DISTINCT - - 43 * + 4 - + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4775
SELECT DISTINCT - - 43 * + 4 - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * + + 35, - ( 63 ) * 37 col2 FROM tab1 cor0
----
2065
-2331
2380
-2331
3360
-2331

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4777
SELECT DISTINCT 39 + - + CAST( - - 50 AS SIGNED ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-11

skipif mysql # not compatible
query I rowsort label-4777
SELECT DISTINCT 39 + - + CAST ( - - 50 AS INTEGER ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-11

query I rowsort
SELECT ALL - 86 AS col1 FROM tab1
----
-86
-86
-86

query I rowsort
SELECT - 5 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 8 >= - col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4781
SELECT + - CAST( NULL AS DECIMAL ) / col1 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4781
SELECT + - CAST ( NULL AS REAL ) / col1 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( - col2 ) * 86 * - col2 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4784
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 * - 48 / CAST( NULL AS SIGNED ) + + 78 IS NOT NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4784
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 * - 48 / CAST ( NULL AS INTEGER ) + + 78 IS NOT NULL
----
15
87
97

onlyif mysql # DIV for integer division: 
query II rowsort label-4785
SELECT DISTINCT + ( - ( + - 1 ) ), col0 DIV + col2 AS col2 FROM tab1
----
1
0
1
1

skipif mysql # not compatible
query II rowsort label-4785
SELECT DISTINCT + ( - ( + - 1 ) ), col0 / + col2 AS col2 FROM tab1
----
1
0
1
1

query II rowsort
SELECT ALL + 75 AS col0, + ( + + col1 ) FROM tab0
----
75
1
75
21
75
81

query I rowsort
SELECT - 92 * AVG ( ( + - 31 ) ) FROM tab1 WHERE NOT NULL > 27 - + col0 * - 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT + 78 * COUNT( * ) FROM tab2
----
234

skipif mysql # not compatible
query I rowsort label-4788
SELECT + 78 * COUNT ( * ) FROM tab2
----
234

query I rowsort
SELECT ALL + ( + 8 ) AS col2 FROM tab0
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE NOT - ( + col2 ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4790
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE NOT - ( + col2 ) IS NULL
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT - + ( + 24 ) BETWEEN ( + - 51 * ( - col2 ) * col1 ) AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( 81 ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query I rowsort
SELECT DISTINCT + 21 * col0 + + - col2 * - 3 + 33 * - col1 FROM tab2
----
-1077
-462
-648

query I rowsort
SELECT ALL - + col2 + - ( - 15 ) * 53 FROM tab1 AS cor0
----
699
727
736

onlyif mysql # DIV for integer division: 
query I rowsort label-4795
SELECT ALL - ( + 84 ) DIV + col0 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-4795
SELECT ALL - ( + 84 ) / + col0 FROM tab0 AS cor0
----
-5
0
0

query I rowsort
SELECT + + ( - 38 ) FROM tab0 AS cor0 WHERE ( + + col0 - - col1 >= - + col1 )
----
-38
-38
-38

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col2 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4798
SELECT - col1 * col1 * + CAST( NULL AS SIGNED ) + + + 56 + - + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4798
SELECT - col1 * col1 * + CAST ( NULL AS INTEGER ) + + + 56 + - + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT DISTINCT - - MAX( DISTINCT + - col0 ) AS col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4799
SELECT DISTINCT - - MAX ( DISTINCT + - col0 ) AS col1 FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-4800
SELECT + 68 + - 41 AS col0, SUM( ALL - col2 ) FROM tab2 AS cor0 WHERE col1 IS NULL
----
27
NULL

skipif mysql # not compatible
query II rowsort label-4800
SELECT + 68 + - 41 AS col0, SUM ( ALL - col2 ) FROM tab2 AS cor0 WHERE col1 IS NULL
----
27
NULL

query I rowsort
SELECT + - col0 + - + col1 FROM tab2 AS cor0
----
-141
-142
-97

query I rowsort
SELECT - col1 * + + 18 + + + col1 FROM tab0 cor0
----
-1377
-17
-357

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT COUNT( DISTINCT + 57 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4803
SELECT COUNT ( DISTINCT + 57 ) AS col1 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT SUM( + + 19 ) AS col2 FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-4804
SELECT SUM ( + + 19 ) AS col2 FROM tab0
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-4805
SELECT - col0 DIV - - col1 col2 FROM tab1
----
-1
-17
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4805
SELECT - col0 / - - col1 col2 FROM tab1
----
-1
-17
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - 45 - - col0 col0 FROM tab0
----
-2100
-363
-4358

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT ALL - 35 + - ( + ( + COUNT( * ) ) ) FROM tab0
----
-38

skipif mysql # not compatible
query I rowsort label-4807
SELECT ALL - 35 + - ( + ( + COUNT ( * ) ) ) FROM tab0
----
-38

query I rowsort
SELECT ALL col0 - + + col2 AS col2 FROM tab2
----
17
23
24

query I rowsort
SELECT DISTINCT + col0 + - + col1 * - col2 FROM tab0
----
196
297
3822

query I rowsort
SELECT DISTINCT - 17 - + col2 + + - col0 FROM tab2 AS cor0
----
-121
-150
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT - MAX( - - 98 ) FROM tab1 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-4811
SELECT - MAX ( - - 98 ) FROM tab1 AS cor0
----
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 10 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 55 IS NULL
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col1 IS NOT NULL )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( 41 ) IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT - ( ( - col0 ) ) FROM tab2 AS cor0
----
46
64
75

query II rowsort
SELECT + 91, col2 AS col1 FROM tab2 cor0
----
91
23
91
40
91
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4817
SELECT + 71 DIV - 84 AS col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4817
SELECT + 71 / - 84 AS col1 FROM tab1 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4818
SELECT - 26, + col2 * CAST( 82 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-26
1886
-26
3280
-26
4756

skipif mysql # not compatible
query II rowsort label-4818
SELECT - 26, + col2 * CAST ( 82 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-26
1886
-26
3280
-26
4756

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT ALL SUM( - + col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-4819
SELECT ALL SUM ( - + col0 ) FROM tab2 AS cor0
----
-185

onlyif mysql # DIV for integer division: 
query I rowsort label-4820
SELECT DISTINCT + col1 DIV col2 - - + col1 FROM tab2 AS cor0
----
53
68
78

skipif mysql # not compatible
query I rowsort label-4820
SELECT DISTINCT + col1 / col2 - - + col1 FROM tab2 AS cor0
----
53
68
78

query II rowsort
SELECT + 90 AS col2, - col1 FROM tab1 cor0
----
90
-14
90
-47
90
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT - + MAX( col2 ) AS col0 FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-4822
SELECT - + MAX ( col2 ) AS col0 FROM tab2 cor0
----
-58

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 99 * ( + col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( + 16 ) AS col2 FROM tab2
----
-16

query I rowsort
SELECT ALL - - col0 * col1 * + - col2 FROM tab0 AS cor0
----
-18270
-57105
-9603

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> col1 + + ( - 44 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT ALL + SUM( + - ( + col0 ) ) AS col1 FROM tab2 AS cor0 WHERE 19 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4827
SELECT ALL + SUM ( + - ( + col0 ) ) AS col1 FROM tab2 AS cor0 WHERE 19 = NULL
----
NULL

query II rowsort
SELECT ALL + + col0, - col1 + + 76 + - col2 FROM tab1 AS cor0
----
51
-34
85
12
91
-39

query I rowsort
SELECT - + col0 - 16 + - + col1 AS col1 FROM tab2 AS cor0
----
-113
-157
-158

query I rowsort
SELECT - + col1 - + - col2 - + 58 + - + 44 FROM tab2 AS cor0
----
-111
-130
-139

query I rowsort
SELECT col2 + ( col2 ) AS col1 FROM tab1
----
118
136
192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4832
SELECT CAST( NULL AS SIGNED ) + col1 * + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4832
SELECT CAST ( NULL AS INTEGER ) + col1 * + col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4833
SELECT ALL col0 + - col2 AS col0, + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
17
NULL
23
NULL
24
NULL

skipif mysql # not compatible
query II rowsort label-4833
SELECT ALL col0 + - col2 AS col0, + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
17
NULL
23
NULL
24
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4834
SELECT DISTINCT - 69 + - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4834
SELECT DISTINCT - 69 + - CAST ( NULL AS REAL ) FROM tab2
----
NULL

query I rowsort
SELECT 58 + + col0 FROM tab0
----
145
155
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT ALL + 36 * - COUNT( ALL col0 ) col1 FROM tab1
----
-108

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4836
SELECT ALL + 36 * - COUNT ( ALL col0 ) col1 FROM tab1
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT DISTINCT + - COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4837
SELECT DISTINCT + - COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 83 col2 FROM tab2 AS cor0
----
83

query I rowsort
SELECT ALL col0 / - col2 + + 2 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4840
SELECT ALL CAST( NULL AS SIGNED ) * - - COUNT( * ) AS col2, - ( - + 9 ) * COUNT( * ) FROM tab0 cor0
----
NULL
27

skipif mysql # not compatible
query II rowsort label-4840
SELECT ALL CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col2, - ( - + 9 ) * COUNT ( * ) FROM tab0 cor0
----
NULL
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 72 col1, + col2 + col1 AS col2 FROM tab0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT 55 * 34 FROM tab1
----
1870
1870
1870

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col0 NOT BETWEEN + col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 * 63 AS col0 FROM tab1
----
3717
4284
6048

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT ALL - MAX( + 27 ) AS col1 FROM tab1 cor0
----
-27

skipif mysql # not compatible
query I rowsort label-4845
SELECT ALL - MAX ( + 27 ) AS col1 FROM tab1 cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT MIN( ALL - 29 ) AS col1 FROM tab2 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-4846
SELECT MIN ( ALL - 29 ) AS col1 FROM tab2 AS cor0
----
-29

query II rowsort
SELECT - col2 * + 71 + + - col1 AS col1, col0 + + + 89 + - + 12 * + - 79 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
-4194
1122
-4875
1128
-6830
1088

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4848
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * + + col0 + + CAST( NULL AS SIGNED ) * col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4848
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * + + col0 + + CAST ( NULL AS INTEGER ) * col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 + + - col2 + - col2 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT + ( - 13 ) + ( - ( - 75 ) ) AS col2 FROM tab0 AS cor0
----
62
62
62

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 + - 3 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT COUNT( + 28 ) + - + COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4852
SELECT COUNT ( + 28 ) + - + COUNT ( * ) FROM tab2
----
0

query I rowsort
SELECT ALL - col1 + - 41 FROM tab0
----
-122
-42
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-4854
SELECT ALL - 30 DIV - + col1 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4854
SELECT ALL - 30 / - + col1 AS col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4855
SELECT DISTINCT + col1 * + CAST( - + 70 AS SIGNED ) + - col2 FROM tab2
----
-3593
-4748
-5430

skipif mysql # not compatible
query I rowsort label-4855
SELECT DISTINCT + col1 * + CAST ( - + 70 AS INTEGER ) + - col2 FROM tab2
----
-3593
-4748
-5430

query I rowsort
SELECT 50 + col0 * + 10 FROM tab0
----
1020
200
920

query I rowsort
SELECT - col1 AS col2 FROM tab1 WHERE - col0 IS NULL
----

query I rowsort
SELECT 73 * + 98 FROM tab2
----
7154
7154
7154

query I rowsort
SELECT ALL col2 + + 20 AS col0 FROM tab1
----
116
79
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT ALL - ( - ( - COUNT( * ) ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4860
SELECT ALL - ( - ( - COUNT ( * ) ) ) FROM tab2
----
-3

query II rowsort
SELECT DISTINCT 27, col0 AS col1 FROM tab2 AS cor0
----
27
46
27
64
27
75

query II rowsort
SELECT ALL col1, + 98 AS col2 FROM tab2 cor0
----
51
98
67
98
77
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 94 col2 FROM tab1 AS cor0
----
94

query I rowsort
SELECT ALL + - col2 * 0 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4865
SELECT ALL col2, col1 DIV - - col1 col2 FROM tab1 AS cor0
----
59
1
68
1
96
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4865
SELECT ALL col2, col1 / - - col1 col2 FROM tab1 AS cor0
----
59
1
68
1
96
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4866
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4866
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4867
SELECT col1, 19 DIV + col2 + - col0 DIV + col1 AS col0 FROM tab2 AS cor0
----
51
0
67
-1
77
0

skipif mysql # not compatible
query II rowsort label-4867
SELECT col1, 19 / + col2 + - col0 / + col1 AS col0 FROM tab2 AS cor0
----
51
0
67
-1
77
0

query II rowsort
SELECT col1, - col2 + 84 AS col2 FROM tab1 AS cor0
----
14
-12
47
16
5
25

query I rowsort
SELECT DISTINCT 30 - + + col0 * + 22 * - + 3 FROM tab0 AS cor0
----
1020
5772
6432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4870
SELECT - col2 + - + 88 + - col2 + - + 96 * col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4870
SELECT - col2 + - + 88 + - col2 + - + 96 * col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4872
SELECT DISTINCT ( - col1 ) - + + col0 - - 24 DIV 63 AS col0 FROM tab0 AS cor0
----
-108
-96
-98

skipif mysql # not compatible
query I rowsort label-4872
SELECT DISTINCT ( - col1 ) - + + col0 - - 24 / 63 AS col0 FROM tab0 AS cor0
----
-108
-96
-98

query I rowsort
SELECT ALL - 54 - + col0 AS col2 FROM tab2 AS cor0
----
-100
-118
-129

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IS NOT NULL OR NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 25 * - col1 * - col2 FROM tab2 AS cor0
----
-29325
-77000
-97150

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * col1 NOT BETWEEN NULL AND + col1 * col1 * col0 + - + col2 + + - col2 * + col2 - - + col0 - - col1
----

query I rowsort
SELECT - col1 * 37 * - 32 + + 74 + + - col2 AS col2 FROM tab2 cor0 WHERE NULL >= - col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - - col2 ) * col1 * + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT ALL + MIN( + 31 ) FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-4879
SELECT ALL + MIN ( + 31 ) FROM tab0
----
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * 6 * - + col1 col1 FROM tab0 WHERE + 59 IN ( - + col0 * 16 * + 86 - + col0, col1 * col2 + + col2, + col1 / 15, col2 * - col1, - 29 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 / 95 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col0 AS col2, + col0 AS col0 FROM tab2
----
46
46
64
64
75
75

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + - col0 * - col1 AND + col0 - + 33
----

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 WHERE NOT + - ( - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT ALL COUNT( * ) FROM tab2 WHERE + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4885
SELECT ALL COUNT ( * ) FROM tab2 WHERE + col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT ALL + - 99 * - - COUNT( * ) FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-4886
SELECT ALL + - 99 * - - COUNT ( * ) FROM tab0 AS cor0
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT ALL - SUM( + col1 ) AS col2 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-4887
SELECT ALL - SUM ( + col1 ) AS col2 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT DISTINCT + + 70 AS col0 FROM tab2 AS cor0
----
70

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 25 NOT BETWEEN - col1 * + - col2 AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4890
SELECT DISTINCT - + CAST( + col0 AS SIGNED ) * - - 30 FROM tab2 AS cor0
----
-1380
-1920
-2250

skipif mysql # not compatible
query I rowsort label-4890
SELECT DISTINCT - + CAST ( + col0 AS INTEGER ) * - - 30 FROM tab2 AS cor0
----
-1380
-1920
-2250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4891
SELECT + col2 / + 39 + + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4891
SELECT + col2 / + 39 + + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 10 * + + 99 + + col1 AS col0 FROM tab1 AS cor0
----
-943
-976
-985

query I rowsort
SELECT 15 FROM tab1 AS cor0 WHERE NOT - col2 <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL NOT BETWEEN + col0 + + - 45 + - - 55 AND - col0
----

query I rowsort
SELECT DISTINCT col2 * - col0 + col1 FROM tab2 cor0
----
-1007
-2483
-4283

onlyif mysql # DIV for integer division: 
query II rowsort label-4896
SELECT DISTINCT - col0 + col0 + + col0, col1 DIV col1 AS col2 FROM tab1
----
51
1
85
1
91
1

skipif mysql # not compatible
query II rowsort label-4896
SELECT DISTINCT - col0 + col0 + + col0, col1 / col1 AS col2 FROM tab1
----
51
1
85
1
91
1

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE + 36 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT - col2 FROM tab0 WHERE + 94 IN ( - 66 )
----

query I rowsort
SELECT 1 * - 95 FROM tab2
----
-95
-95
-95

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - 77 ) * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4901
SELECT - MIN( ALL + 19 ) * MIN( col2 ) + - COUNT( * ) + + + COUNT( * ) col2 FROM tab0 cor0
----
-190

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4901
SELECT - MIN ( ALL + 19 ) * MIN ( col2 ) + - COUNT ( * ) + + + COUNT ( * ) col2 FROM tab0 cor0
----
-190

query I rowsort
SELECT - 57 + - 33 AS col0 FROM tab2 AS cor0
----
-90
-90
-90

query I rowsort
SELECT - 61 + col0 - + col2 FROM tab1 AS cor0
----
-106
-35
-38

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= + + col1
----

query III rowsort
SELECT * FROM tab2 WHERE 76 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * 14 AS col0 FROM tab0
----
1386
140
658

query I rowsort
SELECT ALL + 79 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + + 99 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 + - - col2 < NULL
----

query I rowsort
SELECT 4 - + col1 FROM tab2 AS cor0
----
-47
-63
-73

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL >= 72 / 81
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT ALL + ( - ( - COUNT( * ) ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4912
SELECT ALL + ( - ( - COUNT ( * ) ) ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4913
SELECT col0 - col1 * ( + ( CAST( + 74 AS SIGNED ) ) ) AS col1, - col1 + - col1 AS col1 FROM tab2 AS cor0
----
-3728
-102
-4883
-134
-5634
-154

skipif mysql # not compatible
query II rowsort label-4913
SELECT col0 - col1 * ( + ( CAST ( + 74 AS INTEGER ) ) ) AS col1, - col1 + - col1 AS col1 FROM tab2 AS cor0
----
-3728
-102
-4883
-134
-5634
-154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4914
SELECT ALL CAST( - 37 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-37
-37
-37

skipif mysql # not compatible
query I rowsort label-4914
SELECT ALL CAST ( - 37 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-37
-37
-37

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 WHERE NOT 5 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4916
SELECT + COUNT( * ) DIV 38 DIV - - ( - 78 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4916
SELECT + COUNT ( * ) / 38 / - - ( - 78 ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT DISTINCT MAX( - 5 ) AS col2 FROM tab0
----
-5

skipif mysql # not compatible
query I rowsort label-4917
SELECT DISTINCT MAX ( - 5 ) AS col2 FROM tab0
----
-5

query I rowsort
SELECT DISTINCT 44 * + 21 - col0 * + ( - 32 ) FROM tab2 AS cor0
----
2396
2972
3324

query I rowsort
SELECT ALL + 65 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4920
SELECT + CAST( - + col2 AS SIGNED ) * col0 AS col1 FROM tab0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-4920
SELECT + CAST ( - + col2 AS INTEGER ) * col0 AS col1 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT ALL + - 79 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

query I rowsort
SELECT DISTINCT - col0 * + ( - + col0 ) * + - col2 + + col0 FROM tab0 AS cor0
----
-10560
-75603
-931394

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT 67 + + 56 + - - COUNT( * ) FROM tab1 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-4923
SELECT 67 + + 56 + - - COUNT ( * ) FROM tab1 AS cor0
----
126

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 49 * + ( col2 ) + - 53 FROM tab0 AS cor0
----
2250
437
4798

query I rowsort
SELECT - + col2 + - 50 AS col1 FROM tab1 AS cor0
----
-109
-118
-146

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + 37 ) + - + col0 col2 FROM tab0
----
-124
-134
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-4928
SELECT - COUNT( * ), - 33 AS col2 FROM tab1 WHERE - col0 IS NOT NULL
----
-3
-33

skipif mysql # not compatible
query II rowsort label-4928
SELECT - COUNT ( * ), - 33 AS col2 FROM tab1 WHERE - col0 IS NOT NULL
----
-3
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT 31 * + COUNT( * ) + + + COUNT( * ) FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-4929
SELECT 31 * + COUNT ( * ) + + + COUNT ( * ) FROM tab2
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + 22 + + + col1 + + col1 * + - 84 - + col2 col1 FROM tab2
----
-5378
-7093
-8125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4931
SELECT - 5 * - + ( + 87 ) * - - 32 + - ( + 62 ) * 43 DIV + COUNT( * ) + + 53 FROM tab2
----
13085

skipif mysql # not compatible
query I rowsort label-4931
SELECT - 5 * - + ( + 87 ) * - - 32 + - ( + 62 ) * 43 / + COUNT ( * ) + + 53 FROM tab2
----
13085

query I rowsort
SELECT DISTINCT + col1 + - col1 + - col2 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT ALL col2 + + 32 AS col2 FROM tab1
----
100
128
91

onlyif mysql # aggregate syntax: 
query II rowsort label-4934
SELECT - MIN( DISTINCT + - col1 ), 98 AS col1 FROM tab0
----
81
98

skipif mysql # not compatible
query II rowsort label-4934
SELECT - MIN ( DISTINCT + - col1 ), 98 AS col1 FROM tab0
----
81
98

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 37 + 77 * col1 + 57 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col1 + - 23 + - + 22 - + col2 + - - 65 * - 39 * 4 AS col1 FROM tab2
----
-10148
-10157
-10176

onlyif mysql # DIV for integer division: 
query I rowsort label-4937
SELECT ALL + + 41 * - - col0 DIV col0 FROM tab0 AS cor0
----
41
41
41

skipif mysql # not compatible
query I rowsort label-4937
SELECT ALL + + 41 * - - col0 / col0 FROM tab0 AS cor0
----
41
41
41

onlyif mysql # DIV for integer division: 
query I rowsort label-4938
SELECT DISTINCT + + 50 DIV - col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4938
SELECT DISTINCT + + 50 / - col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4939
SELECT ALL COUNT( * ) + - - COUNT( * ) col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4939
SELECT ALL COUNT ( * ) + - - COUNT ( * ) col0 FROM tab1 AS cor0
----
6

query I rowsort
SELECT DISTINCT 16 + - + col0 * - - col0 FROM tab2
----
-2100
-4080
-5609

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4941
SELECT col1 / CAST( NULL AS SIGNED ) + - col0, + col0 AS col2 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-4941
SELECT col1 / CAST ( NULL AS INTEGER ) + - col0, + col0 AS col2 FROM tab0
----
NULL
15
NULL
87
NULL
97

query III rowsort
SELECT * FROM tab0 WHERE col1 * - - 91 + 68 = col1 * - col0 / col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4943
SELECT 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-4943
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4944
SELECT DISTINCT + col1 * 8 DIV + 72 + + + 33 FROM tab1 AS cor0
----
33
34
38

skipif mysql # not compatible
query I rowsort label-4944
SELECT DISTINCT + col1 * 8 / + 72 + + + 33 FROM tab1 AS cor0
----
33
34
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4945
SELECT DISTINCT - - col0 FROM tab0 AS cor0 WHERE NOT + 51 NOT BETWEEN NULL AND + + 86 * CAST( NULL AS SIGNED ) + + col1 + 9
----

skipif mysql # not compatible
query I rowsort label-4945
SELECT DISTINCT - - col0 FROM tab0 AS cor0 WHERE NOT + 51 NOT BETWEEN NULL AND + + 86 * CAST ( NULL AS INTEGER ) + + col1 + 9
----

query I rowsort
SELECT ALL + + 84 AS col1 FROM tab0 AS cor0
----
84
84
84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4947
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL >= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4947
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL >= - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT + + MIN( DISTINCT + col0 ) AS col2 FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-4948
SELECT + + MIN ( DISTINCT + col0 ) AS col2 FROM tab1 cor0
----
51

query II rowsort
SELECT DISTINCT + col1, 10 FROM tab2
----
51
10
67
10
77
10

query I rowsort
SELECT 51 FROM tab0, tab1 AS cor0 WHERE NULL <> NULL
----

query II rowsort
SELECT ALL - + 45, col0 AS col0 FROM tab1 AS cor0
----
-45
51
-45
85
-45
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4952
SELECT ( + ( - COUNT( * ) ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4952
SELECT ( + ( - COUNT ( * ) ) ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4953
SELECT col0 * col1 * + CAST( + - col0 AS SIGNED ), - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-36125
NULL
-36414
NULL
-389207
NULL

skipif mysql # not compatible
query II rowsort label-4953
SELECT col0 * col1 * + CAST ( + - col0 AS INTEGER ), - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-36125
NULL
-36414
NULL
-389207
NULL

query II rowsort
SELECT + col0 AS col1, 38 FROM tab0 AS cor0
----
15
38
87
38
97
38

onlyif mysql # DIV for integer division: 
query I rowsort label-4955
SELECT - ( + - col0 ) DIV 74 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4955
SELECT - ( + - col0 ) / 74 FROM tab0 AS cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT - SUM( ALL 52 ) + + COUNT( * ) - COUNT( - 77 ) AS col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-4956
SELECT - SUM ( ALL 52 ) + + COUNT ( * ) - COUNT ( - 77 ) AS col2 FROM tab0 AS cor0
----
-156

query III rowsort
SELECT * FROM tab0 WHERE NOT 23 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( col1 ) + col0 + - col2 * - 99 AS col2 FROM tab0
----
1056
4587
9897

query I rowsort
SELECT col2 * - col2 * + col1 * - + col2 AS col0 FROM tab0
----
21000
8409663
970299

query I rowsort
SELECT + + 45 * col1 FROM tab0 AS cor0
----
3645
45
945

onlyif mysql # DIV for integer division: 
query I rowsort label-4961
SELECT - col0 DIV - + col1 AS col1 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-4961
SELECT - col0 / - + col1 AS col1 FROM tab0 AS cor0
----
0
4
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4962
SELECT - 56 DIV - 80 + + + COUNT( * ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4962
SELECT - 56 / - 80 + + + COUNT ( * ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 84 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4964
SELECT - - SUM( 40 ) * COUNT( * ) FROM tab2 AS cor0
----
360

skipif mysql # not compatible
query I rowsort label-4964
SELECT - - SUM ( 40 ) * COUNT ( * ) FROM tab2 AS cor0
----
360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 + + - col1 col1 FROM tab2 WHERE ( NULL ) IS NULL
----
-127
-143
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT + COUNT( ALL + + col2 ) + SUM( - col1 ) FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-4966
SELECT + COUNT ( ALL + + col2 ) + SUM ( - col1 ) FROM tab1
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4967
SELECT ALL + 97 + + CAST( - col2 AS SIGNED ) FROM tab1
----
1
29
38

skipif mysql # not compatible
query I rowsort label-4967
SELECT ALL + 97 + + CAST ( - col2 AS INTEGER ) FROM tab1
----
1
29
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + + col2 * + ( - 56 ), - col2 + col1 col1 FROM tab0
----
-2617
34
-473
11
-5447
-98

query I rowsort
SELECT + col1 + + + col0 AS col2 FROM tab0
----
108
96
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 + - 49 * + col1 col0 FROM tab0
----
-1029
-3969
-49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <> 13
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4972
SELECT ALL + + CAST( NULL AS SIGNED ) + + 90 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4972
SELECT ALL + + CAST ( NULL AS INTEGER ) + + 90 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT - COUNT( * ) * - COUNT( * ) * + 92 FROM tab1
----
828

skipif mysql # not compatible
query I rowsort label-4973
SELECT - COUNT ( * ) * - COUNT ( * ) * + 92 FROM tab1
----
828

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT ( + + 57 ) IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT + MIN( DISTINCT 38 ) * 17 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
646

skipif mysql # not compatible
query I rowsort label-4975
SELECT + MIN ( DISTINCT 38 ) * 17 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
646

onlyif mysql # aggregate syntax: 
query I rowsort label-4976
SELECT COUNT( * ) + + ( - 28 ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-19

skipif mysql # not compatible
query I rowsort label-4976
SELECT COUNT ( * ) + + ( - 28 ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4977
SELECT ALL + - CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4977
SELECT ALL + - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL col1 * - - ( + col0 ) AS col2 FROM tab1 AS cor0 WHERE - col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4979
SELECT DISTINCT - + ( + col0 ) DIV + col2 + + + 45 + - + col0 FROM tab2 AS cor0
----
-20
-3
-31

skipif mysql # not compatible
query I rowsort label-4979
SELECT DISTINCT - + ( + col0 ) / + col2 + + + 45 + - + col0 FROM tab2 AS cor0
----
-20
-3
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT - + SUM( ALL - 96 ) AS col0 FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-4980
SELECT - + SUM ( ALL - 96 ) AS col0 FROM tab1 AS cor0
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT ( + + MIN( col1 ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4981
SELECT ( + + MIN ( col1 ) ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT SUM( ALL + 78 ) AS col2 FROM tab0
----
234

skipif mysql # not compatible
query I rowsort label-4982
SELECT SUM ( ALL + 78 ) AS col2 FROM tab0
----
234

query I rowsort
SELECT DISTINCT 13 * col1 AS col2 FROM tab0
----
1053
13
273

onlyif mysql # DIV for integer division: 
query I rowsort label-4984
SELECT DISTINCT col2 DIV + 95 * - ( 91 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4984
SELECT DISTINCT col2 / + 95 * - ( 91 ) AS col2 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4985
SELECT * FROM tab1 cor0 WHERE NOT + col0 + col0 * - 16 < + col0 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4985
SELECT * FROM tab1 cor0 WHERE NOT + col0 + col0 * - 16 < + col0 + + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4986
SELECT ALL 83 + - 78 DIV CAST( - 87 AS SIGNED ) FROM tab1 AS cor0
----
83
83
83

skipif mysql # not compatible
query I rowsort label-4986
SELECT ALL 83 + - 78 / CAST ( - 87 AS INTEGER ) FROM tab1 AS cor0
----
83
83
83

onlyif mysql # DIV for integer division: 
query II rowsort label-4987
SELECT - col2 AS col2, col0 DIV col1 FROM tab0 cor0
----
-10
4
-47
0
-99
97

skipif mysql # not compatible
query II rowsort label-4987
SELECT - col2 AS col2, col0 / col1 FROM tab0 cor0
----
-10
4
-47
0
-99
97

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 col2 FROM tab2
----
50
50
50

query I rowsort
SELECT - ( + 60 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

query I rowsort
SELECT DISTINCT 39 + - + ( + - 59 ) + + 12 * - 43 AS col2 FROM tab0 AS cor0
----
-418

query I rowsort
SELECT - 83 * + - 29 + + - col0 FROM tab0 AS cor0
----
2310
2320
2392

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4993
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 61 BETWEEN + 23 - + + CAST( - - col2 AS SIGNED ) * + + col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-4993
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 61 BETWEEN + 23 - + + CAST ( - - col2 AS INTEGER ) * + + col2 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * + 9 / + col2 * - 84 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 + + + 45 + + ( col1 ) FROM tab0 AS cor0
----
-53
56
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 45 + - + 88 * - + 70 col2 FROM tab2 AS cor0
----
6115
6115
6115

query I rowsort
SELECT DISTINCT + col2 + - 11 AS col0 FROM tab2 AS cor0
----
12
29
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4998
SELECT ALL 30 + - + col0 * + CAST( col0 AS SIGNED ) * col2 + + col0 AS col2 FROM tab1
----
-249615
-426160
-562987

skipif mysql # not compatible
query I rowsort label-4998
SELECT ALL 30 + - + col0 * + CAST ( col0 AS INTEGER ) * col2 + + col0 AS col2 FROM tab1
----
-249615
-426160
-562987

query I rowsort
SELECT + col2 * + ( col2 ) FROM tab0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT DISTINCT + SUM( ALL - 72 ) FROM tab1
----
-216

skipif mysql # not compatible
query I rowsort label-5000
SELECT DISTINCT + SUM ( ALL - 72 ) FROM tab1
----
-216

query I rowsort
SELECT DISTINCT + ( - col1 ) - + 1 FROM tab2
----
-52
-68
-78

query III rowsort
SELECT * FROM tab2 WHERE - 84 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col2 col2 FROM tab2
----
116
46
80

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 43 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 20 + + col1 < col0
----

query I rowsort
SELECT col0 - + ( + col0 ) * col2 AS col2 FROM tab0 AS cor0
----
-690
-783
-9506

query II rowsort
SELECT - 75 + 2 AS col1, - col2 FROM tab1 cor0
----
-73
-59
-73
-68
-73
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5008
SELECT - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT DISTINCT 2 * - col1 FROM tab0
----
-162
-2
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-5010
SELECT - COUNT( * ) AS col2, - ( - COUNT( * ) ) FROM tab0
----
-3
3

skipif mysql # not compatible
query II rowsort label-5010
SELECT - COUNT ( * ) AS col2, - ( - COUNT ( * ) ) FROM tab0
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT - COUNT( * ) * + 3 AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-5011
SELECT - COUNT ( * ) * + 3 AS col1 FROM tab0
----
-9

query II rowsort
SELECT - - col0, col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

query II rowsort
SELECT + - col1, + col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

query I rowsort
SELECT ALL + 41 * - col0 + + 67 - col0 AS col1 FROM tab2 AS cor0
----
-1865
-2621
-3083

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 AS col2, + 96 col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= + 2 + 49 + + - 87
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT ALL + + COUNT( + col2 ) * - COUNT( col2 ) AS col2 FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5016
SELECT ALL + + COUNT ( + col2 ) * - COUNT ( col2 ) AS col2 FROM tab2 cor0
----
-9

query I rowsort
SELECT ( - col0 ) AS col2 FROM tab1 cor0
----
-51
-85
-91

query I rowsort
SELECT ALL + 72 AS col2 FROM tab1 cor0
----
72
72
72

query III rowsort
SELECT ALL * FROM tab1 WHERE + - 16 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + 30 * - col1 AS col2, col2 FROM tab1
----
-1410
68
-150
59
-420
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT ALL COUNT( - 62 ) * + 35 AS col2 FROM tab0
----
105

skipif mysql # not compatible
query I rowsort label-5021
SELECT ALL COUNT ( - 62 ) * + 35 AS col2 FROM tab0
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-5022
SELECT DISTINCT 77 DIV col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5022
SELECT DISTINCT 77 / col0 FROM tab2
----
1

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col0 NOT BETWEEN + - 61 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5024
SELECT col1 DIV + 28 FROM tab2
----
1
2
2

skipif mysql # not compatible
query I rowsort label-5024
SELECT col1 / + 28 FROM tab2
----
1
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5025
SELECT DISTINCT CAST( - 78 AS SIGNED ) FROM tab1
----
-78

skipif mysql # not compatible
query I rowsort label-5025
SELECT DISTINCT CAST ( - 78 AS INTEGER ) FROM tab1
----
-78

query I rowsort
SELECT + col2 + + - 56 FROM tab1 AS cor0
----
12
3
40

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col1 NOT BETWEEN - - 26 + - col0 * + ( + col0 ) AND - - 16
----

query I rowsort
SELECT + + ( + + col0 ) AS col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT 9 * + + col2 * + 63 + 36 AS col0 FROM tab0 cor0
----
26685
56169
5706

query I rowsort
SELECT 27 - + + col2 AS col1 FROM tab1 AS cor0
----
-32
-41
-69

query I rowsort
SELECT DISTINCT - - col2 FROM tab2 AS cor0 WHERE NOT col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT ALL + ( + + MIN( DISTINCT 44 ) ) + + COUNT( * ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-5032
SELECT ALL + ( + + MIN ( DISTINCT 44 ) ) + + COUNT ( * ) FROM tab1
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5033
SELECT CAST( NULL AS SIGNED ) + - COUNT( * ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5033
SELECT CAST ( NULL AS INTEGER ) + - COUNT ( * ) col0 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - col0 col1 FROM tab0
----
-66
-96
66

query I rowsort
SELECT DISTINCT + 55 - - col2 AS col1 FROM tab2
----
113
78
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT DISTINCT - + ( COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5036
SELECT DISTINCT - + ( COUNT ( * ) ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 >= col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 14 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5039
SELECT DISTINCT - SUM( DISTINCT + 2 ) FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-5039
SELECT DISTINCT - SUM ( DISTINCT + 2 ) FROM tab0 AS cor0
----
-2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = 96
----

query I rowsort
SELECT 15 + - col2 AS col2 FROM tab2
----
-25
-43
-8

query I rowsort
SELECT col0 + - + col0 + + col0 * - col1 AS col2 FROM tab0
----
-1215
-1827
-97

query II rowsort
SELECT DISTINCT 71 AS col2, col1 + - col0 FROM tab0
----
71
-66
71
-96
71
66

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - 71 IS NULL )
----

query I rowsort
SELECT + 65 * + - 97 FROM tab2
----
-6305
-6305
-6305

query I rowsort
SELECT DISTINCT ( + col0 ) + + + col2 AS col0 FROM tab0
----
196
62
97

query I rowsort
SELECT DISTINCT col0 * + - col1 FROM tab2
----
-2346
-4928
-5025

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 <= + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5049
SELECT ALL + ( + - col1 ) * - CAST( NULL AS SIGNED ) AS col2, col0 AS col1 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-5049
SELECT ALL + ( + - col1 ) * - CAST ( NULL AS INTEGER ) AS col2, col0 AS col1 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

onlyif mysql # DIV for integer division: 
query II rowsort label-5050
SELECT - 36 * col2 + - - 33 AS col2, 99 DIV + + 88 FROM tab1 AS cor0
----
-2091
1
-2415
1
-3423
1

skipif mysql # not compatible
query II rowsort label-5050
SELECT - 36 * col2 + - - 33 AS col2, 99 / + + 88 FROM tab1 AS cor0
----
-2091
1
-2415
1
-3423
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5051
SELECT + COUNT( * ) AS col2, 32 FROM tab0 AS cor0
----
3
32

skipif mysql # not compatible
query II rowsort label-5051
SELECT + COUNT ( * ) AS col2, 32 FROM tab0 AS cor0
----
3
32

onlyif mysql # DIV for integer division: 
query I rowsort label-5052
SELECT DISTINCT col0 DIV - 10 AS col1 FROM tab1 AS cor0
----
-5
-8
-9

skipif mysql # not compatible
query I rowsort label-5052
SELECT DISTINCT col0 / - 10 AS col1 FROM tab1 AS cor0
----
-5
-8
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT COUNT( DISTINCT col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5053
SELECT COUNT ( DISTINCT col2 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5054
SELECT ALL * FROM tab0 WHERE NOT ( - col1 ) * - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5054
SELECT ALL * FROM tab0 WHERE NOT ( - col1 ) * - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 84 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT + 82 * + COUNT( * ) FROM tab2
----
246

skipif mysql # not compatible
query I rowsort label-5056
SELECT + 82 * + COUNT ( * ) FROM tab2
----
246

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT ALL COUNT( * ) - - ( 79 ) FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-5057
SELECT ALL COUNT ( * ) - - ( 79 ) FROM tab0
----
82

query I rowsort
SELECT DISTINCT col0 + 31 * + col2 FROM tab1
----
1914
2199
3027

query I rowsort
SELECT + col1 * 69 FROM tab1
----
3243
345
966

query I rowsort
SELECT - 72 + col0 FROM tab2
----
-26
-8
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5061
SELECT + COUNT( * ) + 98 FROM tab0
----
101

skipif mysql # not compatible
query I rowsort label-5061
SELECT + COUNT ( * ) + 98 FROM tab0
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT DISTINCT - 42 * MIN( DISTINCT + 70 ) AS col2 FROM tab1
----
-2940

skipif mysql # not compatible
query I rowsort label-5062
SELECT DISTINCT - 42 * MIN ( DISTINCT + 70 ) AS col2 FROM tab1
----
-2940

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT COUNT( * ) + 43 * + 45 FROM tab1
----
1938

skipif mysql # not compatible
query I rowsort label-5063
SELECT COUNT ( * ) + 43 * + 45 FROM tab1
----
1938

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( 74 ) ) NOT BETWEEN NULL AND - col1 / - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT COUNT( * ) * SUM( col0 ) FROM tab2
----
555

skipif mysql # not compatible
query I rowsort label-5065
SELECT COUNT ( * ) * SUM ( col0 ) FROM tab2
----
555

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 83 col2 FROM tab2 WHERE col0 * 95 <= 91
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5067
SELECT DISTINCT ( + col0 ) + + col1 DIV col1 AS col1 FROM tab2
----
47
65
76

skipif mysql # not compatible
query I rowsort label-5067
SELECT DISTINCT ( + col0 ) + + col1 / col1 AS col1 FROM tab2
----
47
65
76

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 WHERE col1 + + 7 * col2 < - 55
----

query I rowsort
SELECT - 86 - - 8 FROM tab0
----
-78
-78
-78

query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE - col1 * + col1 IS NOT NULL
----
10
47
99

query I rowsort
SELECT col2 * + 1 FROM tab2
----
23
40
58

query III rowsort
SELECT * FROM tab2 WHERE - col1 * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT DISTINCT + COUNT( DISTINCT + col1 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5073
SELECT DISTINCT + COUNT ( DISTINCT + col1 ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5074
SELECT DISTINCT 83 * COUNT( * ) AS col0 FROM tab0
----
249

skipif mysql # not compatible
query I rowsort label-5074
SELECT DISTINCT 83 * COUNT ( * ) AS col0 FROM tab0
----
249

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 + + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5076
SELECT + CAST( NULL AS SIGNED ) / 56 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5076
SELECT + CAST ( NULL AS INTEGER ) / 56 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5077
SELECT CAST( 71 AS SIGNED ) AS col0 FROM tab2
----
71
71
71

skipif mysql # not compatible
query I rowsort label-5077
SELECT CAST ( 71 AS INTEGER ) AS col0 FROM tab2
----
71
71
71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5078
SELECT + COUNT( - col0 ) col0 FROM tab2 WHERE NOT - CAST( + col0 AS DECIMAL ) * + col2 NOT BETWEEN ( + 1 ) AND - 52 / col2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5078
SELECT + COUNT ( - col0 ) col0 FROM tab2 WHERE NOT - CAST ( + col0 AS REAL ) * + col2 NOT BETWEEN ( + 1 ) AND - 52 / col2
----
0

query I rowsort
SELECT ALL ( - 86 ) AS col2 FROM tab2 AS cor0
----
-86
-86
-86

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NULL <= col2 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5081
SELECT DISTINCT MAX( + 20 ) AS col0 FROM tab1 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-5081
SELECT DISTINCT MAX ( + 20 ) AS col0 FROM tab1 AS cor0
----
20

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col1 * + col1 AS col0 FROM tab2 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT ALL MIN( DISTINCT ( - ( - 89 ) ) ) * - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0
----
-801

skipif mysql # not compatible
query I rowsort label-5084
SELECT ALL MIN ( DISTINCT ( - ( - 89 ) ) ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0
----
-801

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT ALL MIN( 27 ) FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-5085
SELECT ALL MIN ( 27 ) FROM tab2
----
27

query I rowsort
SELECT ALL 0 * + col1 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 44 * - 44 AS col0 FROM tab0 AS cor0
----
-1936
-1936
-1936

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5088
SELECT ALL - 43 FROM tab2 AS cor0 WHERE CAST( col1 AS SIGNED ) + 5 IN ( col2 )
----

skipif mysql # not compatible
query I rowsort label-5088
SELECT ALL - 43 FROM tab2 AS cor0 WHERE CAST ( col1 AS INTEGER ) + 5 IN ( col2 )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col0 * - col0 BETWEEN + col0 / 57 AND ( 18 * - 92 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT MIN( - col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-5090
SELECT MIN ( - col1 ) FROM tab1 AS cor0
----
-47

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 15 * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5092
SELECT DISTINCT - + MAX( DISTINCT 62 ) AS col1 FROM tab1 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-5092
SELECT DISTINCT - + MAX ( DISTINCT 62 ) AS col1 FROM tab1 AS cor0
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5093
SELECT DISTINCT - col1 AS col2 FROM tab0 AS cor0 WHERE ( - col1 ) IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5093
SELECT DISTINCT - col1 AS col2 FROM tab0 AS cor0 WHERE ( - col1 ) IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT ALL 67 + - SUM( DISTINCT - col0 ) FROM tab0 AS cor0
----
266

skipif mysql # not compatible
query I rowsort label-5094
SELECT ALL 67 + - SUM ( DISTINCT - col0 ) FROM tab0 AS cor0
----
266

query I rowsort
SELECT + col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL = 39
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - - col2 ) col1 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT ( ( - col1 ) ) * - 72 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT ALL + SUM( ALL + col2 ) + - COUNT( * ) col0 FROM tab1
----
220

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5099
SELECT ALL + SUM ( ALL + col2 ) + - COUNT ( * ) col0 FROM tab1
----
220

query I rowsort
SELECT DISTINCT 97 + + 56 AS col0 FROM tab0
----
153

query I rowsort
SELECT + col1 + + col0 * col0 AS col1 FROM tab2 AS cor0
----
2167
4173
5692

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT BETWEEN - col0 * + col0 AND ( + 57 + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT DISTINCT MIN( - col1 ) * - 66 col0 FROM tab2 cor0
----
5082

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5103
SELECT DISTINCT MIN ( - col1 ) * - 66 col0 FROM tab2 cor0
----
5082

query I rowsort
SELECT DISTINCT 18 * - ( ( - 11 ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
198

query I rowsort
SELECT DISTINCT 34 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
34

query II rowsort
SELECT - 26, 46 AS col1 FROM tab1
----
-26
46
-26
46
-26
46

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 WHERE ( ( NULL ) < ( NULL ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5108
SELECT + 60 * MAX( DISTINCT CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) BETWEEN 42 AND ( 12 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5108
SELECT + 60 * MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) BETWEEN 42 AND ( 12 )
----
NULL

query I rowsort
SELECT DISTINCT - + 49 - 15 FROM tab0 AS cor0
----
-64

query I rowsort
SELECT DISTINCT 44 FROM tab0 AS cor0 WHERE ( col0 ) > col0 * col1 + + 76 * - 37
----
44

query I rowsort
SELECT ALL + col1 - - col2 + col2 + + 41 * + ( col0 ) * + col1 AS col0 FROM tab2 AS cor0
----
202205
206208
96283

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 - 2 * - col2 col2 FROM tab0 AS cor0
----
101
175
279

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN NULL AND ( + - col0 * ( col0 ) )
----
14
47
5

query I rowsort
SELECT DISTINCT + col2 * - col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col0 + - + col2 * 77 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5115
SELECT DISTINCT - col1 / CAST( NULL AS SIGNED ) * + col0 + 82 * col1 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5115
SELECT DISTINCT - col1 / CAST ( NULL AS INTEGER ) * + col0 + 82 * col1 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5116
SELECT DISTINCT + 49 DIV + - col0 + - col2 col2 FROM tab2 cor0
----
-24
-40
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5116
SELECT DISTINCT + 49 / + - col0 + - col2 col2 FROM tab2 cor0
----
-24
-40
-58

query I rowsort
SELECT DISTINCT + ( + + col1 ) AS col0 FROM tab2
----
51
67
77

query I rowsort
SELECT + col1 * ( + + col1 ) * + col1 * col1 AS col1 FROM tab1
----
38416
4879681
625

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + + 78 ) * - 2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT ALL 21 * - + MAX( DISTINCT - 55 ) AS col0 FROM tab0
----
1155

skipif mysql # not compatible
query I rowsort label-5120
SELECT ALL 21 * - + MAX ( DISTINCT - 55 ) AS col0 FROM tab0
----
1155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5121
SELECT col0 / + + CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5121
SELECT col0 / + + CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5122
SELECT CAST( NULL AS SIGNED ) * - + 39 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5122
SELECT CAST ( NULL AS INTEGER ) * - + 39 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 88 * + col2 AS col2 FROM tab2
----
2024
3520
5104

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) = - col1 + + - col2 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT - ( SUM( + 42 ) ) + - 90 AS col0 FROM tab1 WHERE NOT 17 IN ( - 66 )
----
-216

skipif mysql # not compatible
query I rowsort label-5125
SELECT - ( SUM ( + 42 ) ) + - 90 AS col0 FROM tab1 WHERE NOT 17 IN ( - 66 )
----
-216

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( + + col2 ) = 0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-5127
SELECT ALL + 59 DIV col2, col1 FROM tab1
----
0
14
0
47
1
5

skipif mysql # not compatible
query II rowsort label-5127
SELECT ALL + 59 / col2, col1 FROM tab1
----
0
14
0
47
1
5

query I rowsort
SELECT DISTINCT 19 AS col0 FROM tab0 cor0
----
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 10 col0 FROM tab1 AS cor0 WHERE ( + col0 ) > - 85
----
510
850
910

query I rowsort
SELECT ALL + + 3 AS col2 FROM tab1 cor0
----
3
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5131
SELECT + CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 87 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5131
SELECT + CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 87 )
----

query I rowsort
SELECT DISTINCT - 56 * col1 AS col1 FROM tab2
----
-2856
-3752
-4312

query I rowsort
SELECT col1 * - ( - - col0 ) FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT + 34 * - - 8 + - col0 * + + col1 * - + col0 + col2 AS col0 FROM tab0 AS cor0
----
159231
18544
9780

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT DISTINCT + COUNT( col2 ) + COUNT( * ) + + 8 FROM tab1 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-5135
SELECT DISTINCT + COUNT ( col2 ) + COUNT ( * ) + + 8 FROM tab1 AS cor0
----
14

query I rowsort
SELECT DISTINCT 11 + + col1 - + col2 * + col2 * 1 AS col2 FROM tab1
----
-3465
-4566
-9191

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5137
SELECT DISTINCT - 15 col1, CAST( 98 AS SIGNED ) AS col1 FROM tab2
----
-15
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5137
SELECT DISTINCT - 15 col1, CAST ( 98 AS INTEGER ) AS col1 FROM tab2
----
-15
98

query III rowsort
SELECT * FROM tab2 WHERE - col1 + col1 >= - + 88
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 + + 42 AS col0 FROM tab1
----
127
133
93

query I rowsort
SELECT ALL + 32 + - - col0 FROM tab1
----
117
123
83

query III rowsort
SELECT * FROM tab0 WHERE ( NOT ( ( NULL ) >= ( + col1 * 7 + - col0 ) ) )
----

query II rowsort
SELECT DISTINCT 88 AS col2, col2 FROM tab1 cor0
----
88
59
88
68
88
96

query I rowsort
SELECT ALL - ( + col2 ) + - 54 AS col0 FROM tab1 AS cor0
----
-113
-122
-150

query I rowsort
SELECT - + 65 * + col0 AS col2 FROM tab1 AS cor0
----
-3315
-5525
-5915

onlyif mysql # aggregate syntax: 
query I rowsort label-5145
SELECT - COUNT( - col1 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5145
SELECT - COUNT ( - col1 ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT DISTINCT + + COUNT( * ) FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-5146
SELECT DISTINCT + + COUNT ( * ) FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-5147
SELECT ALL col0 DIV col0 + + col1 FROM tab0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-5147
SELECT ALL col0 / col0 + + col1 FROM tab0
----
2
22
82

query I rowsort
SELECT col0 + + 5 - + + 22 - + + col2 AS col2 FROM tab1
----
-62
6
9

query I rowsort
SELECT DISTINCT + ( col2 ) + + 40 AS col0 FROM tab1 cor0
----
108
136
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 7 + 83 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col2 * - col0 * - + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5151
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col2 * - col0 * - + col1 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5152
SELECT + CAST( - 26 AS SIGNED ) * + col1 FROM tab0 AS cor0
----
-2106
-26
-546

skipif mysql # not compatible
query I rowsort label-5152
SELECT + CAST ( - 26 AS INTEGER ) * + col1 FROM tab0 AS cor0
----
-2106
-26
-546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5153
SELECT ALL COUNT( DISTINCT - + col1 ) FROM tab1 AS cor0 WHERE NOT ( - ( - CAST( col2 AS SIGNED ) ) + - col2 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5153
SELECT ALL COUNT ( DISTINCT - + col1 ) FROM tab1 AS cor0 WHERE NOT ( - ( - CAST ( col2 AS INTEGER ) ) + - col2 ) IS NULL
----
3

query II rowsort
SELECT - + col1 * - 61, col2 + col1 AS col0 FROM tab2 AS cor0
----
3111
74
4087
125
4697
117

query I rowsort
SELECT DISTINCT - - 36 AS col2 FROM tab1 AS cor0
----
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2, - 66 col0 FROM tab0
----
-10
-66
-47
-66
-99
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-5157
SELECT ALL 67 col0, + COUNT( * ) FROM tab2
----
67
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5157
SELECT ALL 67 col0, + COUNT ( * ) FROM tab2
----
67
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - + col2 col0 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-5159
SELECT DISTINCT MIN( - col0 ) * + COUNT( * ) FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-5159
SELECT DISTINCT MIN ( - col0 ) * + COUNT ( * ) FROM tab1
----
-273

onlyif mysql # aggregate syntax: 
query II rowsort label-5160
SELECT ( - - ( - MIN( + 56 ) ) ) AS col0, COUNT( * ) AS col2 FROM tab0
----
-56
3

skipif mysql # not compatible
query II rowsort label-5160
SELECT ( - - ( - MIN ( + 56 ) ) ) AS col0, COUNT ( * ) AS col2 FROM tab0
----
-56
3

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND ( 79 )
----

query I rowsort
SELECT DISTINCT 3 * 54 AS col1 FROM tab0
----
162

query I rowsort
SELECT ALL - 1 FROM tab2 cor0
----
-1
-1
-1

query II rowsort
SELECT col0, col1 + + 28 FROM tab1 AS cor0
----
51
42
85
33
91
75

query II rowsort
SELECT DISTINCT 76 * 53 + - col0, col0 + col1 - 96 + col1 - + - col0 AS col0 FROM tab2 AS cor0
----
3953
188
3964
186
3982
98

query II rowsort
SELECT 89 * + + col0 AS col2, + col0 + + 18 AS col1 FROM tab2
----
4094
64
5696
82
6675
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT MAX( + + col2 ) * 85 * COUNT( * ) * + + COUNT( * ) FROM tab2
----
44370

skipif mysql # not compatible
query I rowsort label-5167
SELECT MAX ( + + col2 ) * 85 * COUNT ( * ) * + + COUNT ( * ) FROM tab2
----
44370

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 27 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 56 NOT BETWEEN NULL AND + - 90 OR NOT NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5170
SELECT + CAST( - + 81 AS SIGNED ) * - 5 * + 90, col1 FROM tab0 AS cor0
----
36450
1
36450
21
36450
81

skipif mysql # not compatible
query II rowsort label-5170
SELECT + CAST ( - + 81 AS INTEGER ) * - 5 * + 90, col1 FROM tab0 AS cor0
----
36450
1
36450
21
36450
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5171
SELECT + + CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5171
SELECT + + CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 39 * + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT - MAX( 87 ) AS col1 FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-5173
SELECT - MAX ( 87 ) AS col1 FROM tab0 AS cor0
----
-87

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 52 * + 66 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 96, 49 col1 FROM tab2
----
96
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5176
SELECT CAST( - 99 AS SIGNED ) + - col0 FROM tab1
----
-150
-184
-190

skipif mysql # not compatible
query I rowsort label-5176
SELECT CAST ( - 99 AS INTEGER ) + - col0 FROM tab1
----
-150
-184
-190

query I rowsort
SELECT + col1 + - col1 * + - 49 * + - 41 FROM tab0
----
-162648
-2008
-42168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 61 col1 FROM tab1
----
-14
-47
-56

query I rowsort
SELECT + 2 FROM tab2 WHERE - col0 IS NOT NULL
----
2
2
2

query I rowsort
SELECT 36 * + - col1 + + 85 FROM tab0
----
-2831
-671
49

query I rowsort
SELECT + 42 + - col2 AS col0 FROM tab0
----
-5
-57
32

onlyif mysql # DIV for integer division: 
query I rowsort label-5182
SELECT col1 DIV + 5 + + col1 FROM tab1 AS cor0 WHERE + ( col0 ) IS NOT NULL
----
16
56
6

skipif mysql # not compatible
query I rowsort label-5182
SELECT col1 / + 5 + + col1 FROM tab1 AS cor0 WHERE + ( col0 ) IS NOT NULL
----
16
56
6

query II rowsort
SELECT DISTINCT col1 AS col0, col2 + 37 FROM tab1
----
14
133
47
105
5
96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 46 * - 99 * - + 85 <> - 88
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5185
SELECT DISTINCT - 32, CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
-32
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5185
SELECT DISTINCT - 32, CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
-32
NULL

query II rowsort
SELECT - - col2 AS col2, 44 AS col0 FROM tab0 AS cor0
----
10
44
47
44
99
44

query I rowsort
SELECT DISTINCT + ( - ( + - 68 ) ) * + 6 FROM tab1
----
408

query I rowsort
SELECT + ( - - col1 ) * + col1 + - col0 FROM tab0
----
-96
354
6546

query I rowsort
SELECT ALL - 38 * - + 12 * + ( + col1 ) FROM tab0
----
36936
456
9576

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT DISTINCT - MAX( - col2 ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-5190
SELECT DISTINCT - MAX ( - col2 ) AS col2 FROM tab0 AS cor0
----
10

query I rowsort
SELECT DISTINCT + col1 * + col2 * - ( col2 ) AS col2 FROM tab0 WHERE + + col0 IS NOT NULL
----
-178929
-2100
-9801

query II rowsort
SELECT + 71 AS col1, col1 FROM tab0
----
71
1
71
21
71
81

query III rowsort
SELECT ALL * FROM tab1 WHERE 58 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + 62 + 97 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 99d564cc90dff23cb01696db1cdf1cf5

query III rowsort
SELECT * FROM tab0 WHERE - + 20 IS NULL
----

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NOT ( 69 ) BETWEEN ( col1 * - ( + + 89 ) + - 4 * - 2 ) AND ( 19 )
----
59
68
96

query I rowsort
SELECT + - col1 + - + col0 + - 66 + + 95 FROM tab2 AS cor0
----
-112
-113
-68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5198
SELECT * FROM tab1 AS cor0 WHERE 59 + + CAST( 62 AS SIGNED ) * - 81 + - + 48 BETWEEN NULL AND ( + col0 )
----

skipif mysql # not compatible
query III rowsort label-5198
SELECT * FROM tab1 AS cor0 WHERE 59 + + CAST ( 62 AS INTEGER ) * - 81 + - + 48 BETWEEN NULL AND ( + col0 )
----

query I rowsort
SELECT - - col2 + - 69 FROM tab0 AS cor0
----
-22
-59
30

query I rowsort
SELECT DISTINCT + 6 + + - 31 FROM tab0 cor0
----
-25

query I rowsort
SELECT - 0 + + 59 AS col1 FROM tab1 AS cor0
----
59
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT - - SUM( DISTINCT + col0 ) FROM tab1 AS cor0 WHERE ( NOT 47 - + + col2 IS NULL )
----
227

skipif mysql # not compatible
query I rowsort label-5202
SELECT - - SUM ( DISTINCT + col0 ) FROM tab1 AS cor0 WHERE ( NOT 47 - + + col2 IS NULL )
----
227

query I rowsort
SELECT - 89 * col0 + + 4 FROM tab0
----
-1331
-7739
-8629

onlyif mysql # DIV for integer division: 
query I rowsort label-5204
SELECT col0 DIV ( + ( col0 ) ) FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5204
SELECT col0 / ( + ( col0 ) ) FROM tab1
----
1
1
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5205
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + + - col0 col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5205
SELECT DISTINCT + CAST ( NULL AS REAL ) + + - col0 col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5206
SELECT COUNT( * ) DIV + 18 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5206
SELECT COUNT ( * ) / + 18 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5207
SELECT ALL + + 48 DIV col0 - - col1 * - col1 * - + 23 AS col2, 11 FROM tab2 AS cor0
----
103247
11
136367
11
59824
11

skipif mysql # not compatible
query II rowsort label-5207
SELECT ALL + + 48 / col0 - - col1 * - col1 * - + 23 AS col2, 11 FROM tab2 AS cor0
----
103247
11
136367
11
59824
11

query I rowsort
SELECT 48 - - - ( - col1 ) + + col0 FROM tab0 AS cor0
----
144
146
156

query I rowsort
SELECT + col0 + - 20 * + 48 FROM tab2 cor0
----
-885
-896
-914

query I rowsort
SELECT 99 + + col1 AS col1 FROM tab1 AS cor0
----
104
113
146

query I rowsort
SELECT - 18 + - 85 AS col1 FROM tab0
----
-103
-103
-103

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 67 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 89 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query IIIIII rowsort
SELECT ALL * FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE 58 <= NULL
----

query II rowsort
SELECT col0 AS col0, + col2 * - col2 + + - col0 * + - col1 FROM tab1 AS cor0
----
51
-8502
85
-3056
91
-347

onlyif mysql # aggregate syntax: 
query I rowsort label-5216
SELECT + MIN( + + col2 ) AS col0 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-5216
SELECT + MIN ( + + col2 ) AS col0 FROM tab1 AS cor0
----
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) col0 FROM tab0 cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT MAX( DISTINCT - - 45 ) FROM tab1 cor0
----
45

skipif mysql # not compatible
query I rowsort label-5218
SELECT MAX ( DISTINCT - - 45 ) FROM tab1 cor0
----
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 69 col1 FROM tab0 AS cor0
----
-69
-69
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT + SUM( ALL - col0 ) * - 28 FROM tab1 AS cor0
----
6356

skipif mysql # not compatible
query I rowsort label-5220
SELECT + SUM ( ALL - col0 ) * - 28 FROM tab1 AS cor0
----
6356

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 80 * col2 col0, - 26 + 52 + + ( 10 ) AS col2 FROM tab2
----
1840
36
3200
36
4640
36

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE NOT - col1 * + col2 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query II rowsort label-5223
SELECT DISTINCT 4 * 36 AS col0, COUNT( * ) FROM tab2
----
144
3

skipif mysql # not compatible
query II rowsort label-5223
SELECT DISTINCT 4 * 36 AS col0, COUNT ( * ) FROM tab2
----
144
3

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 WHERE NOT + ( + + 90 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 99 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT ALL + MIN( - - col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-5226
SELECT ALL + MIN ( - - col0 ) FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT MAX( + col0 ) * - MAX( + + 74 ) AS col1 FROM tab2
----
-5550

skipif mysql # not compatible
query I rowsort label-5227
SELECT MAX ( + col0 ) * - MAX ( + + 74 ) AS col1 FROM tab2
----
-5550

query II rowsort
SELECT DISTINCT 96 AS col2, + 1 AS col1 FROM tab0
----
96
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 74, + 66 col2 FROM tab2 AS cor0
----
-74
66
-74
66
-74
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT + - 42 * COUNT( * ) col0 FROM tab1 AS cor0
----
-126

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5230
SELECT + - 42 * COUNT ( * ) col0 FROM tab1 AS cor0
----
-126

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 39 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 2 + - 28 col0 FROM tab0 AS cor0
----
-30
-30
-30

query I rowsort
SELECT - 67 * + - col2 / - - 51 + - + 34 - + ( + 96 ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - - col1 * + col2 + - - col1 FROM tab2 AS cor0
----
1224
3157
3953

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT DISTINCT + 12 * COUNT( * ) FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-5235
SELECT DISTINCT + 12 * COUNT ( * ) FROM tab2 AS cor0
----
36

query II rowsort
SELECT + 3 * + col2, 80 AS col0 FROM tab2 AS cor0
----
120
80
174
80
69
80

query I rowsort
SELECT + col0 * - col2 + 5 FROM tab0 cor0
----
-700
-865
-9598

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 41 + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 98 FROM tab0 AS cor0 WHERE NOT + col1 = - + col2
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5240
SELECT DISTINCT + + CAST( NULL AS SIGNED ) / + - 9 + - - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5240
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) / + - 9 + - - COUNT ( * ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN 35 AND NULL
----

query I rowsort
SELECT 82 - + 27 AS col0 FROM tab2 AS cor0
----
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0, tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5243
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0, tab1 AS cor0
----
-9

query I rowsort
SELECT ALL + col0 * + - 58 + - 24 FROM tab0
----
-5070
-5650
-894

query I rowsort
SELECT DISTINCT - col2 * - - 92 FROM tab2 WHERE + 83 IS NULL
----

query I rowsort
SELECT col1 + - - col2 FROM tab1
----
110
115
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5247
SELECT ALL + col2 / + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5247
SELECT ALL + col2 / + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 BETWEEN - 78 AND NULL
----

query I rowsort
SELECT ALL 5 - col2 AS col1 FROM tab2 cor0
----
-18
-35
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5250
SELECT ALL MIN( + + ( CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5250
SELECT ALL MIN ( + + ( CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5251
SELECT DISTINCT + + COUNT( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5251
SELECT DISTINCT + + COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT 28 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT ALL + ( 38 ) AS col0 FROM tab2 AS cor0
----
38
38
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5254
SELECT ALL + COUNT( 7 ) * + COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5254
SELECT ALL + COUNT ( 7 ) * + COUNT ( * ) FROM tab1 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-5255
SELECT ALL - col1 DIV + 35 AS col2, col0 FROM tab0 AS cor0
----
-2
15
0
87
0
97

skipif mysql # not compatible
query II rowsort label-5255
SELECT ALL - col1 / + 35 AS col2, col0 FROM tab0 AS cor0
----
-2
15
0
87
0
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 = NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 68 * + 32 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( - col1 + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT MAX( - col0 ) * - + COUNT( * ) * - COUNT( * ) AS col1 FROM tab2
----
-414

skipif mysql # not compatible
query I rowsort label-5260
SELECT MAX ( - col0 ) * - + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2
----
-414

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5261
SELECT ( 81 ) * + COUNT( * ) + CAST( + 89 AS SIGNED ) AS col2 FROM tab0
----
332

skipif mysql # not compatible
query I rowsort label-5261
SELECT ( 81 ) * + COUNT ( * ) + CAST ( + 89 AS INTEGER ) AS col2 FROM tab0
----
332

onlyif mysql # aggregate syntax: 
query I rowsort label-5262
SELECT ALL SUM( DISTINCT + + col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-5262
SELECT ALL SUM ( DISTINCT + + col1 ) FROM tab0
----
103

query I rowsort
SELECT - col0 * + + 70 AS col2 FROM tab1
----
-3570
-5950
-6370

query I rowsort
SELECT DISTINCT - 62 + + + 25 + + + col1 - + 36 AS col2 FROM tab2
----
-22
-6
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT DISTINCT COUNT( DISTINCT 36 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5265
SELECT DISTINCT COUNT ( DISTINCT 36 ) AS col0 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT + 67 * COUNT( ALL - - 29 ) AS col2 FROM tab2
----
201

skipif mysql # not compatible
query I rowsort label-5266
SELECT + 67 * COUNT ( ALL - - 29 ) AS col2 FROM tab2
----
201

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT COUNT( DISTINCT - - col0 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5267
SELECT COUNT ( DISTINCT - - col0 ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5268
SELECT DISTINCT 56 + COUNT( - col0 ) AS col2 FROM tab1 WHERE 97 < + - col2
----
56

skipif mysql # not compatible
query I rowsort label-5268
SELECT DISTINCT 56 + COUNT ( - col0 ) AS col2 FROM tab1 WHERE 97 < + - col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT ALL MAX( DISTINCT col0 ) FROM tab0 WHERE NOT + col1 BETWEEN ( - 68 ) AND ( col2 )
----
87

skipif mysql # not compatible
query I rowsort label-5269
SELECT ALL MAX ( DISTINCT col0 ) FROM tab0 WHERE NOT + col1 BETWEEN ( - 68 ) AND ( col2 )
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-5270
SELECT ALL 61, - ( - + COUNT( * ) ) AS col0 FROM tab1
----
61
3

skipif mysql # not compatible
query II rowsort label-5270
SELECT ALL 61, - ( - + COUNT ( * ) ) AS col0 FROM tab1
----
61
3

query II rowsort
SELECT ALL col2 AS col0, 71 AS col0 FROM tab0
----
10
71
47
71
99
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5272
SELECT DISTINCT CAST( - MIN( - - col1 ) AS SIGNED ) col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5272
SELECT DISTINCT CAST ( - MIN ( - - col1 ) AS INTEGER ) col2 FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5273
SELECT + SUM( DISTINCT CAST( + col1 AS SIGNED ) ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-5273
SELECT + SUM ( DISTINCT CAST ( + col1 AS INTEGER ) ) FROM tab1 AS cor0
----
66

query II rowsort
SELECT - col1 AS col1, col0 FROM tab2
----
-51
46
-67
75
-77
64

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 / - col1 IS NOT NULL
----

query I rowsort
SELECT col2 + 36 AS col0 FROM tab1 AS cor0
----
104
132
95

query I rowsort
SELECT ALL + 71 * - col2 FROM tab2 cor0
----
-1633
-2840
-4118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1 col2, + col1 AS col1 FROM tab2 cor0
----
51
51
67
67
77
77

query I rowsort
SELECT DISTINCT + - col1 + + 18 AS col0 FROM tab0 AS cor0
----
-3
-63
17

query II rowsort
SELECT col0 * + 88 AS col0, + 54 FROM tab0
----
1320
54
7656
54
8536
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT ALL COUNT( * ) * + COUNT( * ) + + 55 FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL COUNT ( * ) * + COUNT ( * ) + + 55 FROM tab2
----
64

query I rowsort
SELECT DISTINCT + 60 + col0 - + 75 + + 13 + - 50 FROM tab0
----
-37
35
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT DISTINCT + 55 - - MAX( - col0 ) col2 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5283
SELECT DISTINCT + 55 - - MAX ( - col0 ) col2 FROM tab2
----
9

query I rowsort
SELECT ALL 73 * col2 + + col1 AS col2 FROM tab2
----
1730
2997
4301

query II rowsort
SELECT DISTINCT - col2 * - col1 AS col1, 86 + 83 FROM tab2 AS cor0
----
1173
169
3080
169
3886
169

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5286
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, 34 FROM tab1 AS cor0
----
NULL
34

skipif mysql # not compatible
query II rowsort label-5286
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, 34 FROM tab1 AS cor0
----
NULL
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 78 col2 FROM tab2 AS cor0
----
-78
-78
-78

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 33 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 21 / - col0 > + col1 + + 1 * col2 - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 56 col0 FROM tab1 AS cor0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5291
SELECT DISTINCT - - col0 AS col1, col2 * - col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-5291
SELECT DISTINCT - - col0 AS col1, col2 * - col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT - COUNT( * ) AS col2 FROM tab0 cor0 WHERE NOT ( col1 * + col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5292
SELECT - COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NOT ( col1 * + col2 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5293
SELECT + + MAX( + - 54 ) FROM tab2 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-5293
SELECT + + MAX ( + - 54 ) FROM tab2 AS cor0
----
-54

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 NOT BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT DISTINCT MIN( ALL - + col2 ) col0 FROM tab2
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5295
SELECT DISTINCT MIN ( ALL - + col2 ) col0 FROM tab2
----
-58

query II rowsort
SELECT + col1 * - col2 AS col2, 67 AS col2 FROM tab2
----
-1173
67
-3080
67
-3886
67

onlyif mysql # DIV for integer division: 
query I rowsort label-5297
SELECT + 83 * + col1 DIV + col1 + col0 * + 34 + - 36 + - col1 * - ( + 17 ) FROM tab2 AS cor0
----
2478
3532
3736

skipif mysql # not compatible
query I rowsort label-5297
SELECT + 83 * + col1 / + col1 + col0 * + 34 + - 36 + - col1 * - ( + 17 ) FROM tab2 AS cor0
----
2478
3532
3736

query I rowsort
SELECT col0 + + + 60 FROM tab0 AS cor0
----
147
157
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5299
SELECT ALL ( - COUNT( * ) ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5299
SELECT ALL ( - COUNT ( * ) ) AS col2 FROM tab0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-5300
SELECT ALL - 48 - col1 * - - ( + ( 0 ) ) AS col0, + 57 DIV + + col1 FROM tab0
----
-48
0
-48
2
-48
57

skipif mysql # not compatible
query II rowsort label-5300
SELECT ALL - 48 - col1 * - - ( + ( 0 ) ) AS col0, + 57 / + + col1 FROM tab0
----
-48
0
-48
2
-48
57

query II rowsort
SELECT col2 AS col2, - col0 * + col1 FROM tab0
----
10
-1827
47
-1215
99
-97

query I rowsort
SELECT DISTINCT + col2 * - col2 * - + col2 FROM tab2 AS cor0 WHERE NULL < - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5303
SELECT - 38 * + 17 - SUM( - col1 ) FROM tab0 AS cor0
----
-543

skipif mysql # not compatible
query I rowsort label-5303
SELECT - 38 * + 17 - SUM ( - col1 ) FROM tab0 AS cor0
----
-543

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT ALL COUNT( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5304
SELECT ALL COUNT ( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5305
SELECT DISTINCT - COUNT( * ) AS col1, - ( COUNT( * ) ) + + - COUNT( * ) FROM tab1
----
-3
-6

skipif mysql # not compatible
query II rowsort label-5305
SELECT DISTINCT - COUNT ( * ) AS col1, - ( COUNT ( * ) ) + + - COUNT ( * ) FROM tab1
----
-3
-6

query III rowsort
SELECT * FROM tab1 WHERE - - col1 BETWEEN + + col2 * - 91 - + col2 AND NULL
----

query I rowsort
SELECT DISTINCT col0 + + + col0 + 68 FROM tab0
----
242
262
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5308
SELECT + MAX( DISTINCT + - CAST( NULL AS SIGNED ) ) + + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5308
SELECT + MAX ( DISTINCT + - CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT ALL col2 * 49 + + col2 FROM tab2
----
1150
2000
2900

query II rowsort
SELECT ALL col2 * + col2 AS col2, col2 + - col1 AS col1 FROM tab2
----
1600
-37
3364
-9
529
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT DISTINCT - SUM( - 4 ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-5311
SELECT DISTINCT - SUM ( - 4 ) FROM tab0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5312
SELECT ALL COUNT( * ) * 38 AS col0 FROM tab1
----
114

skipif mysql # not compatible
query I rowsort label-5312
SELECT ALL COUNT ( * ) * 38 AS col0 FROM tab1
----
114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5313
SELECT DISTINCT COUNT( * ) DIV + 57 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5313
SELECT DISTINCT COUNT ( * ) / + 57 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT ALL 89 * COUNT( ALL + col2 ) - MIN( DISTINCT 10 ) FROM tab0 AS cor0
----
257

skipif mysql # not compatible
query I rowsort label-5314
SELECT ALL 89 * COUNT ( ALL + col2 ) - MIN ( DISTINCT 10 ) FROM tab0 AS cor0
----
257

onlyif mysql # aggregate syntax: 
query I rowsort label-5315
SELECT DISTINCT - MIN( DISTINCT - col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5315
SELECT DISTINCT - MIN ( DISTINCT - col1 ) FROM tab1 AS cor0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5316
SELECT - MIN( DISTINCT - col0 ) * AVG ( ALL + - ( - ( + CAST( NULL AS SIGNED ) ) ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5316
SELECT - MIN ( DISTINCT - col0 ) * AVG ( ALL + - ( - ( + CAST ( NULL AS INTEGER ) ) ) ) FROM tab2
----
NULL

query II rowsort
SELECT + 43 * + 21, col2 FROM tab0
----
903
10
903
47
903
99

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + 9 <= col1 + + - col1 - - col0
----

query I rowsort
SELECT DISTINCT + + 35 AS col2 FROM tab0 AS cor0
----
35

query I rowsort
SELECT + - 57 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5321
SELECT ALL ( + CAST( + col0 AS SIGNED ) ) / CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5321
SELECT ALL ( + CAST ( + col0 AS INTEGER ) ) / CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 96 + + col1 AS col0 FROM tab0 AS cor0
----
117
177
97

query I rowsort
SELECT ALL + 93 * - 77 AS col1 FROM tab0
----
-7161
-7161
-7161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5324
SELECT CAST( 54 AS SIGNED ) + + + 96 FROM tab1
----
150
150
150

skipif mysql # not compatible
query I rowsort label-5324
SELECT CAST ( 54 AS INTEGER ) + + + 96 FROM tab1
----
150
150
150

query I rowsort
SELECT ALL col2 + + 99 AS col0 FROM tab2
----
122
139
157

query I rowsort
SELECT ALL - col0 + 46 + + ( + + 91 ) FROM tab1
----
46
52
86

query I rowsort
SELECT + 75 + - 39 AS col1 FROM tab0
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) + + - SUM( + col2 ) AS col1 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-5328
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) + + - SUM ( + col2 ) AS col1 FROM tab2
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5329
SELECT ALL - 66 + + col1 + CAST( NULL AS SIGNED ) - + 35 - - col0 - - col2 * - + col2 + - col2 * ( col0 ) * - 50 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5329
SELECT ALL - 66 + + col1 + CAST ( NULL AS INTEGER ) - + 35 - - col0 - - col2 * - + col2 + - col2 * ( col0 ) * - 50 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 17 + + col0 AS col1 FROM tab1
----
34
68
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5331
SELECT + CAST( NULL AS SIGNED ) * col1 FROM tab2 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5331
SELECT + CAST ( NULL AS INTEGER ) * col1 FROM tab2 WHERE NULL IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 35 IS NOT NULL
----

query I rowsort
SELECT ( 8 ) FROM tab1 AS cor0
----
8
8
8

onlyif mysql # DIV for integer division: 
query I rowsort label-5334
SELECT col1 DIV + 54 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5334
SELECT col1 / + 54 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 - - 53 + col1 AS col1 FROM tab0
----
-45
64
87

query I rowsort
SELECT 28 * ( + col1 ) - - + col1 FROM tab0 AS cor0
----
2349
29
609

query I rowsort
SELECT 95 * - col2 + - 14 AS col1 FROM tab2 AS cor0
----
-2199
-3814
-5524

query I rowsort
SELECT col2 * - - col1 - - + 85 FROM tab1 AS cor0
----
1429
3281
380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5339
SELECT COUNT( * ) / - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5339
SELECT COUNT ( * ) / - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query II rowsort
SELECT col0 AS col2, - 41 * col2 FROM tab2
----
46
-943
64
-1640
75
-2378

query I rowsort
SELECT - + col1 + + col1 AS col0 FROM tab1 WHERE NOT + 26 IS NULL
----
0
0
0

query I rowsort
SELECT DISTINCT - - 28 * + 63 AS col2 FROM tab2 AS cor0
----
1764

query I rowsort
SELECT ALL - + 31 * + 54 + + col0 AS col0 FROM tab1 AS cor0
----
-1583
-1589
-1623

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col2 AND - 37
----

query II rowsort
SELECT col2, 13 AS col1 FROM tab2
----
23
13
40
13
58
13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5346
SELECT DISTINCT - col1, - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-5346
SELECT DISTINCT - col1, - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

query II rowsort
SELECT + col1, ( + 0 ) FROM tab1 AS cor0
----
14
0
47
0
5
0

query I rowsort
SELECT DISTINCT - - 1 FROM tab1 cor0
----
1

query II rowsort
SELECT + - 2 AS col0, - col2 FROM tab0 AS cor0
----
-2
-10
-2
-47
-2
-99

query I rowsort
SELECT ALL + col0 FROM tab2 cor0 WHERE NOT col2 + 27 BETWEEN + + col0 AND + + col1
----
75

query I rowsort
SELECT ALL + col2 * - col0 * col2 * - col1 AS col0 FROM tab1 AS cor0
----
1479425
19776848
6580224

onlyif mysql # DIV for integer division: 
query I rowsort label-5352
SELECT - - col0 DIV 55 * - + col0 + - col1 FROM tab1 AS cor0
----
-138
-14
-90

skipif mysql # not compatible
query I rowsort label-5352
SELECT - - col0 / 55 * - + col0 + - col1 FROM tab1 AS cor0
----
-138
-14
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT DISTINCT - MIN( ALL - 4 ) FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-5353
SELECT DISTINCT - MIN ( ALL - 4 ) FROM tab2 AS cor0
----
4

onlyif mysql # DIV for integer division: 
query II rowsort label-5354
SELECT col0 AS col2, 98 DIV + 52 FROM tab0 cor0
----
15
1
87
1
97
1

skipif mysql # not compatible
query II rowsort label-5354
SELECT col0 AS col2, 98 / + 52 FROM tab0 cor0
----
15
1
87
1
97
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5355
SELECT - COUNT( * ) AS col2, - 12 AS col0 FROM tab0 AS cor0
----
-3
-12

skipif mysql # not compatible
query II rowsort label-5355
SELECT - COUNT ( * ) AS col2, - 12 AS col0 FROM tab0 AS cor0
----
-3
-12

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5356
SELECT ALL * FROM tab2 cor0 WHERE NOT - col2 > CAST( - 99 AS SIGNED ) * col0 + - - 85
----

skipif mysql # not compatible
query III rowsort label-5356
SELECT ALL * FROM tab2 cor0 WHERE NOT - col2 > CAST ( - 99 AS INTEGER ) * col0 + - - 85
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 62 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - col0 AS col1 FROM tab0 WHERE NULL IS NULL
----
15
87
97

query I rowsort
SELECT ALL - - col0 / + col1 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 WHERE + 43 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5360
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 WHERE + 43 IS NULL
----
0

query I rowsort
SELECT ALL - 90 + + col0 FROM tab2
----
-15
-26
-44

query I rowsort
SELECT col0 * + 35 + + 53 - + col1 AS col2 FROM tab0
----
3077
3447
497

query III rowsort
SELECT * FROM tab1 WHERE + + col1 / col1 IS NULL
----

query I rowsort
SELECT ( - col0 ) + + - col2 AS col2 FROM tab0
----
-196
-62
-97

query I rowsort
SELECT - 52 + - - col2 AS col2 FROM tab1 AS cor0
----
16
44
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5366
SELECT + + COUNT( * ) DIV - + 92 + + + COUNT( * ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5366
SELECT + + COUNT ( * ) / - + 92 + + + COUNT ( * ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT 96 + - col1 * + col0 FROM tab2 cor0
----
-2250
-4832
-4929

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT DISTINCT + - ( - - COUNT( * ) ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5368
SELECT DISTINCT + - ( - - COUNT ( * ) ) FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT + - SUM( 98 ) - - 50 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-832

skipif mysql # not compatible
query I rowsort label-5369
SELECT + - SUM ( 98 ) - - 50 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-832

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT DISTINCT + COUNT( * ) * + 8 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
72

skipif mysql # not compatible
query I rowsort label-5370
SELECT DISTINCT + COUNT ( * ) * + 8 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
72

query I rowsort
SELECT DISTINCT col0 * - 93 AS col0 FROM tab0 WHERE col0 IS NOT NULL
----
-1395
-8091
-9021

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5372
SELECT + ( CAST( + col1 AS SIGNED ) ) AS col2, col2 AS col0 FROM tab2
----
51
23
67
58
77
40

skipif mysql # not compatible
query II rowsort label-5372
SELECT + ( CAST ( + col1 AS INTEGER ) ) AS col2, col2 AS col0 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5373
SELECT ALL + 17 * + - CAST( - ( - 10 ) AS SIGNED ) + + col2 FROM tab2 WHERE + col0 + + col0 IS NOT NULL
----
-112
-130
-147

skipif mysql # not compatible
query I rowsort label-5373
SELECT ALL + 17 * + - CAST ( - ( - 10 ) AS INTEGER ) + + col2 FROM tab2 WHERE + col0 + + col0 IS NOT NULL
----
-112
-130
-147

query I rowsort
SELECT - 24 - - + col1 AS col1 FROM tab2
----
27
43
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT - COUNT( * ) - COUNT( * ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-5375
SELECT - COUNT ( * ) - COUNT ( * ) FROM tab2
----
-6

query I rowsort
SELECT + col0 - + col2 + + - col1 + + col1 + - 73 + col2 * - col0 + - ( col1 ) * - col1 AS col2 FROM tab0 AS cor0
----
-425
-9677
5751

onlyif mysql # DIV for integer division: 
query I rowsort label-5377
SELECT ALL + col0 + + col2 DIV - ( col2 ) AS col1 FROM tab1 AS cor0
----
50
84
90

skipif mysql # not compatible
query I rowsort label-5377
SELECT ALL + col0 + + col2 / - ( col2 ) AS col1 FROM tab1 AS cor0
----
50
84
90

query I rowsort
SELECT ALL 13 - - - col2 FROM tab2 AS cor0
----
-10
-27
-45

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - - col1 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT + COUNT( * ) * 37 FROM tab0
----
111

skipif mysql # not compatible
query I rowsort label-5380
SELECT + COUNT ( * ) * 37 FROM tab0
----
111

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT col1 * + ( - col1 ) AS col1 FROM tab1
----
-196
-2209
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5383
SELECT - CAST( + ( + 32 ) AS SIGNED ) FROM tab1
----
-32
-32
-32

skipif mysql # not compatible
query I rowsort label-5383
SELECT - CAST ( + ( + 32 ) AS INTEGER ) FROM tab1
----
-32
-32
-32

query I rowsort
SELECT col2 * - col1 * 39 AS col1 FROM tab1
----
-11505
-124644
-52416

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5385
SELECT 50 DIV CAST( - ( + - 12 ) AS SIGNED ) AS col1 FROM tab0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-5385
SELECT 50 / CAST ( - ( + - 12 ) AS INTEGER ) AS col1 FROM tab0
----
4
4
4

query I rowsort
SELECT + + col2 AS col1 FROM tab1 WHERE NULL > - 85 + + 84 AND col2 IS NULL
----

query I rowsort
SELECT + + ( - + col2 ) FROM tab1 AS cor0 WHERE NOT col0 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5388
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( - col2 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5388
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( - col2 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * - 16 * - col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col2 * 39 AND - 29
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5390
SELECT COUNT( DISTINCT + - col0 ) * - COUNT( * ) * + 17 * - 19 FROM tab2 AS cor0
----
2907

skipif mysql # not compatible
query I rowsort label-5390
SELECT COUNT ( DISTINCT + - col0 ) * - COUNT ( * ) * + 17 * - 19 FROM tab2 AS cor0
----
2907

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT DISTINCT - COUNT( * ) * + - 91 FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-5391
SELECT DISTINCT - COUNT ( * ) * + - 91 FROM tab1
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-5392
SELECT MIN( - 55 ) FROM tab0
----
-55

skipif mysql # not compatible
query I rowsort label-5392
SELECT MIN ( - 55 ) FROM tab0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT + MIN( ALL - 71 ) FROM tab2
----
-71

skipif mysql # not compatible
query I rowsort label-5393
SELECT + MIN ( ALL - 71 ) FROM tab2
----
-71

query I rowsort
SELECT col2 * 0 FROM tab0
----
0
0
0

query I rowsort
SELECT col2 * + 16 AS col0 FROM tab1
----
1088
1536
944

query I rowsort
SELECT DISTINCT + 47 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
47

query I rowsort
SELECT + - 8 FROM tab0 cor0
----
-8
-8
-8

query II rowsort
SELECT - col1, col0 FROM tab0 AS cor0 WHERE NOT + ( 36 ) IS NULL AND NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 NOT IN ( 81 - - col2 + 79 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL BETWEEN NULL AND col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 - + 82 NOT IN ( col1, + ( + col2 ) * col0 - col0, - col2, - + col0 * col1, + - 38 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT - - COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5402
SELECT - - COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5403
SELECT 27 + MIN( DISTINCT + - 33 ) * - 18 FROM tab1 AS cor0
----
621

skipif mysql # not compatible
query I rowsort label-5403
SELECT 27 + MIN ( DISTINCT + - 33 ) * - 18 FROM tab1 AS cor0
----
621

query I rowsort
SELECT - ( + + col1 ) * - col0 - + col0 + col1 AS col2 FROM tab0 AS cor0
----
1
1281
1761

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5405
SELECT + 65 + col0 * - CAST( NULL AS DECIMAL ) + + - col0 * + 37 / + - 9 * col0 + + 14 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5405
SELECT + 65 + col0 * - CAST ( NULL AS REAL ) + + - col0 * + 37 / + - 9 * col0 + + 14 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5406
SELECT 63 + + - ( - ( MIN( - col0 ) ) ), - 64 AS col1 FROM tab0 AS cor0
----
-34
-64

skipif mysql # not compatible
query II rowsort label-5406
SELECT 63 + + - ( - ( MIN ( - col0 ) ) ), - 64 AS col1 FROM tab0 AS cor0
----
-34
-64

query I rowsort
SELECT - + col0 + - - ( - - 8 ) AS col1 FROM tab0 AS cor0
----
-7
-79
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-5408
SELECT DISTINCT + col1 DIV 95 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5408
SELECT DISTINCT + col1 / 95 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col1 <= NULL
----

query I rowsort
SELECT - col0 - - 82 + - - col1 + - 70 + col1 + col0 * 76 * - col1 AS col2 FROM tab1 AS cor0
----
-32363
-325037
-54275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5411
SELECT ALL - - MIN( DISTINCT col1 ) / + MAX( + col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 BETWEEN ( - col0 ) * + CAST( NULL AS SIGNED ) + - CAST( col2 AS SIGNED ) + + col2 - + + 22 + + col1 + + - col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5411
SELECT ALL - - MIN ( DISTINCT col1 ) / + MAX ( + col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 BETWEEN ( - col0 ) * + CAST ( NULL AS INTEGER ) + - CAST ( col2 AS INTEGER ) + + col2 - + + 22 + + col1 + + - col2 AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5412
SELECT + 86 + - 14 DIV 2 FROM tab1 cor0
----
79
79
79

skipif mysql # not compatible
query I rowsort label-5412
SELECT + 86 + - 14 / 2 FROM tab1 cor0
----
79
79
79

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) < NULL AND ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + - col1 FROM tab2 WHERE - col0 IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT ALL + 23 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT ALL + 18 FROM tab0 WHERE + 75 * col0 IS NULL
----

query I rowsort
SELECT + 30 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN NULL AND 54 * - col0 + + + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5418
SELECT ALL - ( + col2 ) DIV - + col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5418
SELECT ALL - ( + col2 ) / - + col2 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5419
SELECT ( - SUM( col0 ) ) AS col2, 77 * 58 col2 FROM tab1 AS cor0
----
-227
4466

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5419
SELECT ( - SUM ( col0 ) ) AS col2, 77 * 58 col2 FROM tab1 AS cor0
----
-227
4466

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT + SUM( - - col2 ) FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-5420
SELECT + SUM ( - - col2 ) FROM tab0 cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT DISTINCT MAX( col2 ) AS col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5421
SELECT DISTINCT MAX ( col2 ) AS col2 FROM tab2 AS cor0
----
58

query I rowsort
SELECT ALL col2 * - 97 FROM tab0
----
-4559
-9603
-970

query I rowsort
SELECT DISTINCT col0 * - col1 * col2 AS col1 FROM tab2
----
-197120
-291450
-53958

query I rowsort
SELECT ALL + ( + 14 ) AS col0 FROM tab0
----
14
14
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 45 col2, + 42 FROM tab2
----
45
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT - COUNT( + - 55 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5426
SELECT - COUNT ( + - 55 ) AS col1 FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 7, col2 col0 FROM tab1
----
7
59
7
68
7
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 86 col0 FROM tab1
----
86
86
86

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5429
SELECT ALL * FROM tab0 AS cor0 WHERE col2 * - col0 * + - 19 BETWEEN 47 + CAST( NULL AS DECIMAL ) AND - + CAST( col2 AS SIGNED ) + + + ( + col0 )
----

skipif mysql # not compatible
query III rowsort label-5429
SELECT ALL * FROM tab0 AS cor0 WHERE col2 * - col0 * + - 19 BETWEEN 47 + CAST ( NULL AS REAL ) AND - + CAST ( col2 AS INTEGER ) + + + ( + col0 )
----

query I rowsort
SELECT DISTINCT - 32 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-32

query I rowsort
SELECT + - 43 AS col1 FROM tab1 WHERE + col0 + + + col0 + + 81 <= NULL
----

query I rowsort
SELECT - ( 95 ) FROM tab2
----
-95
-95
-95

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5433
SELECT ALL * FROM tab2 WHERE - col2 * - CAST( col1 AS SIGNED ) * - col2 + 76 <= + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5433
SELECT ALL * FROM tab2 WHERE - col2 * - CAST ( col1 AS INTEGER ) * - col2 + 76 <= + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5434
SELECT - 67 * + + ( - + MAX( + col2 ) ) AS col1 FROM tab2 cor0
----
3886

skipif mysql # not compatible
query I rowsort label-5434
SELECT - 67 * + + ( - + MAX ( + col2 ) ) AS col1 FROM tab2 cor0
----
3886

onlyif mysql # DIV for integer division: 
query I rowsort label-5435
SELECT ( + 15 ) DIV + col1 FROM tab1 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-5435
SELECT ( + 15 ) / + col1 FROM tab1 AS cor0
----
0
1
3

query I rowsort
SELECT + col2 * - col0 + + + col2 AS col1 FROM tab0 AS cor0
----
-658
-860
-9504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5437
SELECT DISTINCT - MAX( ( + 72 ) ) * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5437
SELECT DISTINCT - MAX ( ( + 72 ) ) * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5438
SELECT MIN( ALL CAST( + + col2 AS SIGNED ) ) FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-5438
SELECT MIN ( ALL CAST ( + + col2 AS INTEGER ) ) FROM tab0 cor0
----
10

query I rowsort
SELECT DISTINCT ( + ( + - col1 ) ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT ( + col1 ) * + 84 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1176
3948
420

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT COUNT( * ) * + + 71 AS col0 FROM tab1 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-5441
SELECT COUNT ( * ) * + + 71 AS col0 FROM tab1 AS cor0
----
213

query I rowsort
SELECT col2 - - - col0 AS col1 FROM tab1 AS cor0
----
-23
-26
45

query I rowsort
SELECT DISTINCT 86 * - col1 + + col0 AS col1 FROM tab0
----
-1719
-6951
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5444
SELECT ALL - COUNT( * ) * CAST( ( + COUNT( * ) ) AS SIGNED ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5444
SELECT ALL - COUNT ( * ) * CAST ( ( + COUNT ( * ) ) AS INTEGER ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query II rowsort
SELECT - 48 * - col1 + - col0 AS col0, col2 FROM tab0
----
-49
99
3873
47
921
10

query I rowsort
SELECT - ( + - 43 ) + + - ( - 1 ) AS col1 FROM tab2
----
44
44
44

query I rowsort
SELECT ALL - col1 + - 70 FROM tab0
----
-151
-71
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5448
SELECT DISTINCT col0 - CAST( 47 AS SIGNED ) FROM tab2 AS cor0
----
-1
17
28

skipif mysql # not compatible
query I rowsort label-5448
SELECT DISTINCT col0 - CAST ( 47 AS INTEGER ) FROM tab2 AS cor0
----
-1
17
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT + - ( MAX( + 2 ) ) + COUNT( * ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5449
SELECT + - ( MAX ( + 2 ) ) + COUNT ( * ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5450
SELECT ( + MIN( + - col0 ) ) AS col1, COUNT( * ) FROM tab1 cor0
----
-91
3

skipif mysql # not compatible
query II rowsort label-5450
SELECT ( + MIN ( + - col0 ) ) AS col1, COUNT ( * ) FROM tab1 cor0
----
-91
3

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE NOT - 19 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 > col0
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT + col0 * + + col0 FROM tab0 AS cor0
----
225
7569
9409

onlyif mysql # DIV for integer division: 
query I rowsort label-5454
SELECT ALL + 90 DIV - 52 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5454
SELECT ALL + 90 / - 52 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT ALL MIN( - 49 ) FROM tab1 cor0
----
-49

skipif mysql # not compatible
query I rowsort label-5455
SELECT ALL MIN ( - 49 ) FROM tab1 cor0
----
-49

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE NOT 72 + col0 IS NULL
----
51
67
77

query II rowsort
SELECT DISTINCT 70 AS col0, + 91 + - col1 FROM tab0 AS cor0
----
70
10
70
70
70
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - - col0 * - col2 col2 FROM tab1
----
-25075
-290836
-68544

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col0 * - col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - - col2 AS col0 FROM tab1 WHERE NOT col2 IS NULL
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( ( NULL ) IS NULL )
----

query I rowsort
SELECT - col1 * - ( + - col0 ) AS col1 FROM tab1
----
-425
-4277
-714

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 <= - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT DISTINCT - MIN( + + ( + 63 ) ) FROM tab1 cor0
----
-63

skipif mysql # not compatible
query I rowsort label-5464
SELECT DISTINCT - MIN ( + + ( + 63 ) ) FROM tab1 cor0
----
-63

query I rowsort
SELECT ALL + 54 * + - col0 AS col2 FROM tab2 WHERE NULL <> - col1
----

query I rowsort
SELECT - 24 * + col0 * col2 FROM tab2
----
-104400
-25392
-61440

query I rowsort
SELECT col1 + - + col0 AS col0 FROM tab2
----
-8
13
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5468
SELECT ALL + CAST( - CAST( col0 AS SIGNED ) AS SIGNED ) FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-5468
SELECT ALL + CAST ( - CAST ( col0 AS INTEGER ) AS INTEGER ) FROM tab0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5469
SELECT ALL - + col2 AS col2, + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab1 cor0
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-5469
SELECT ALL - + col2 AS col2, + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab1 cor0
----
-59
NULL
-68
NULL
-96
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5470
SELECT DISTINCT + + col1 * ( + + 18 ) * col2 + - 88 + col1 DIV 52 + + col0 FROM tab2 cor0
----
21072
55417
69936

skipif mysql # not compatible
query I rowsort label-5470
SELECT DISTINCT + + col1 * ( + + 18 ) * col2 + - 88 + col1 / 52 + + col0 FROM tab2 cor0
----
21072
55417
69936

query II rowsort
SELECT ALL - 56 AS col1, col2 AS col0 FROM tab2 AS cor0
----
-56
23
-56
40
-56
58

query I rowsort
SELECT 31 * - ( 92 ) FROM tab1
----
-2852
-2852
-2852

query I rowsort
SELECT + ( - 17 ) AS col1 FROM tab0
----
-17
-17
-17

query I rowsort
SELECT ALL col2 + - 22 FROM tab0
----
-12
25
77

query I rowsort
SELECT DISTINCT col2 + + 60 * - - 16 FROM tab0
----
1007
1059
970

query II rowsort
SELECT ALL - col1 + - - col0 + + col2 * - - col2 AS col2, + col1 FROM tab2
----
1587
77
3372
67
524
51

query II rowsort
SELECT - col1 * + 90 - + 15 + + col1 AS col2, - col2 * + + col0 FROM tab0 AS cor0
----
-104
-9603
-1884
-870
-7224
-705

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 5 * - + col2 - - col0 * col0 col0 FROM tab0 AS cor0
----
-10
7519
8914

query I rowsort
SELECT - - col1 - - 45 * + 98 - + col0 + + 19 * + - col1 AS col1 FROM tab0 AS cor0
----
2937
3945
4295

query I rowsort
SELECT ALL + - col0 - + col1 FROM tab2 cor0
----
-141
-142
-97

query I rowsort
SELECT ALL + col0 * - 14 AS col1 FROM tab2
----
-1050
-644
-896

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5482
SELECT CAST( NULL AS SIGNED ) * col0 * - 1, - ( - + col2 ) - + col1 AS col1 FROM tab2
----
NULL
-28
NULL
-37
NULL
-9

skipif mysql # not compatible
query II rowsort label-5482
SELECT CAST ( NULL AS INTEGER ) * col0 * - 1, - ( - + col2 ) - + col1 AS col1 FROM tab2
----
NULL
-28
NULL
-37
NULL
-9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 30 * + ( - + col2 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 >= - ( + 57 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5485
SELECT DISTINCT - SUM( CAST( - col2 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-5485
SELECT DISTINCT - SUM ( CAST ( - col2 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
223

query II rowsort
SELECT ALL + col0 AS col1, col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT ( COUNT( * ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5487
SELECT ( COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5488
SELECT DISTINCT + SUM( ALL 52 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-5488
SELECT DISTINCT + SUM ( ALL 52 ) FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT - SUM( + + col1 ) AS col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5489
SELECT - SUM ( + + col1 ) AS col0 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT ALL + 28 * - - col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 11 col1 FROM tab2 AS cor0
----
11
11
11

onlyif mysql # aggregate syntax: 
query II rowsort label-5492
SELECT DISTINCT - COUNT( * ), 38 AS col1 FROM tab2 AS cor0
----
-3
38

skipif mysql # not compatible
query II rowsort label-5492
SELECT DISTINCT - COUNT ( * ), 38 AS col1 FROM tab2 AS cor0
----
-3
38

query I rowsort
SELECT ALL + 59 * - + col1 FROM tab1 cor0
----
-2773
-295
-826

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT + ( - MAX( DISTINCT + - 64 ) ) FROM tab2 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-5494
SELECT + ( - MAX ( DISTINCT + - 64 ) ) FROM tab2 AS cor0
----
64

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 BETWEEN - - 24 * - col2 AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5496
SELECT ALL - CAST( NULL AS SIGNED ), + col1 * + ( + col0 ) AS col0 FROM tab1
----
NULL
425
NULL
4277
NULL
714

skipif mysql # not compatible
query II rowsort label-5496
SELECT ALL - CAST ( NULL AS INTEGER ), + col1 * + ( + col0 ) AS col0 FROM tab1
----
NULL
425
NULL
4277
NULL
714

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5497
SELECT * FROM tab1 WHERE NOT - 83 / + CAST( NULL AS SIGNED ) + - col1 BETWEEN - col2 + + col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-5497
SELECT * FROM tab1 WHERE NOT - 83 / + CAST ( NULL AS INTEGER ) + - col1 BETWEEN - col2 + + col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5498
SELECT DISTINCT - ( + col0 ) DIV col1 * col0 AS col1 FROM tab2
----
-75
0

skipif mysql # not compatible
query I rowsort label-5498
SELECT DISTINCT - ( + col0 ) / col1 * col0 AS col1 FROM tab2
----
-75
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5499
SELECT + - CAST( - 19 AS SIGNED ) FROM tab2 WHERE NOT - + 4 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5499
SELECT + - CAST ( - 19 AS INTEGER ) FROM tab2 WHERE NOT - + 4 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( + + col1, col0 )
----

query II rowsort
SELECT ALL - col2, + col2 FROM tab0
----
-10
10
-47
47
-99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 33 * + col2 col2 FROM tab1
----
1947
2244
3168

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT ALL MIN( DISTINCT + 74 ) AS col2 FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-5503
SELECT ALL MIN ( DISTINCT + 74 ) AS col2 FROM tab1 AS cor0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT DISTINCT - COUNT( + + col1 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5504
SELECT DISTINCT - COUNT ( + + col1 ) AS col1 FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 * 4 + col2 col2 FROM tab2 AS cor0
----
-12280
-15486
-4669

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 84 * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 52 col1 FROM tab2 AS cor0
----
52
52
52

query I rowsort
SELECT - 52 AS col2 FROM tab0 cor0
----
-52
-52
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-5509
SELECT ALL - SUM( DISTINCT - col2 ) AS col0, 6 AS col1 FROM tab0 AS cor0
----
156
6

skipif mysql # not compatible
query II rowsort label-5509
SELECT ALL - SUM ( DISTINCT - col2 ) AS col0, 6 AS col1 FROM tab0 AS cor0
----
156
6

query II rowsort
SELECT 25 - + col0 AS col1, - col0 AS col1 FROM tab1 AS cor0
----
-26
-51
-60
-85
-66
-91

query I rowsort
SELECT DISTINCT col2 * - - col2 + + 38 + + col1 FROM tab1 AS cor0
----
3524
4709
9268

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT ALL + + MAX( - 10 ) FROM tab1 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-5512
SELECT ALL + + MAX ( - 10 ) FROM tab1 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5513
SELECT DISTINCT + MAX( ALL - col0 ) FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5513
SELECT DISTINCT + MAX ( ALL - col0 ) FROM tab1 cor0
----
-51

query I rowsort
SELECT DISTINCT 7 AS col0 FROM tab0
----
7

query I rowsort
SELECT 38 FROM tab2 WHERE NULL IN ( - 58, ( - col0 ) * + 90 - + col0 * col1, - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5516
SELECT - 90 + - + 46 + + 84 * + COUNT( * ) AS col2 FROM tab2
----
116

skipif mysql # not compatible
query I rowsort label-5516
SELECT - 90 + - + 46 + + 84 * + COUNT ( * ) AS col2 FROM tab2
----
116

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5517
SELECT ALL * FROM tab1 WHERE NOT - CAST( - 64 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5517
SELECT ALL * FROM tab1 WHERE NOT - CAST ( - 64 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-5518
SELECT DISTINCT - 18 + 4 * - 74 AS col0, - 68 - + - ( + - col2 ) + - col0 DIV - col1 FROM tab0
----
-314
-115
-314
-70
-314
-74

skipif mysql # not compatible
query II rowsort label-5518
SELECT DISTINCT - 18 + 4 * - 74 AS col0, - 68 - + - ( + - col2 ) + - col0 / - col1 FROM tab0
----
-314
-115
-314
-70
-314
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5519
SELECT ALL - COUNT( * ) - - 16 FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-5519
SELECT ALL - COUNT ( * ) - - 16 FROM tab2
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5520
SELECT + CAST( COUNT( * ) AS SIGNED ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5520
SELECT + CAST ( COUNT ( * ) AS INTEGER ) col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5521
SELECT - MAX( col1 ) col1 FROM tab0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5521
SELECT - MAX ( col1 ) col1 FROM tab0
----
-81

query I rowsort
SELECT DISTINCT - col2 + - col0 * - col2 * col0 * - 40 FROM tab2
----
-13050058
-1946743
-6553640

query I rowsort
SELECT ALL 48 + + - col2 + - col0 + + + 47 AS col1 FROM tab2 AS cor0
----
-38
-9
26

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= col1 * + col2 + 56
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5525
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5525
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 78 <> NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5527
SELECT DISTINCT * FROM tab2 WHERE NOT CAST( NULL AS DECIMAL ) NOT BETWEEN + ( - 23 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-5527
SELECT DISTINCT * FROM tab2 WHERE NOT CAST ( NULL AS REAL ) NOT BETWEEN + ( - 23 ) AND NULL
----

query I rowsort
SELECT ( + 1 ) AS col0 FROM tab1
----
1
1
1

query I rowsort
SELECT ( - 68 ) AS col0 FROM tab2
----
-68
-68
-68

query I rowsort
SELECT + col1 - col0 * + 94 FROM tab0
----
-1329
-8157
-9117

onlyif mysql # aggregate syntax: 
query I rowsort label-5531
SELECT + 67 - + MAX( DISTINCT col2 ) FROM tab1
----
-29

skipif mysql # not compatible
query I rowsort label-5531
SELECT + 67 - + MAX ( DISTINCT col2 ) FROM tab1
----
-29

query III rowsort
SELECT * FROM tab2 WHERE col1 + 44 = ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT ALL MIN( ALL + col1 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5533
SELECT ALL MIN ( ALL + col1 ) AS col1 FROM tab0
----
1

query III rowsort
SELECT * FROM tab0 WHERE ( + col1 ) NOT BETWEEN ( + col1 ) AND - col1 - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NOT ( - col1 - - col2 ) < NULL
----

query I rowsort
SELECT - ( 9 ) FROM tab2 WHERE NOT 56 + + col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5537
SELECT ( COUNT( * ) ) * - COUNT( * ) AS col0 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-5537
SELECT ( COUNT ( * ) ) * - COUNT ( * ) AS col0 FROM tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5538
SELECT ALL + COUNT( * ) + 61 * + 34 AS col2 FROM tab2
----
2077

skipif mysql # not compatible
query I rowsort label-5538
SELECT ALL + COUNT ( * ) + 61 * + 34 AS col2 FROM tab2
----
2077

onlyif mysql # DIV for integer division: 
query I rowsort label-5539
SELECT DISTINCT 42 + + col1 DIV col0 FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-5539
SELECT DISTINCT 42 + + col1 / col0 FROM tab1
----
42

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) IN ( + col0 )
----

query I rowsort
SELECT col2 + 65 FROM tab2 WHERE - col0 * - 94 NOT BETWEEN ( col2 ) AND ( - 47 )
----
105
123
88

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE NULL <> ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5543
SELECT - COUNT( - 0 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5543
SELECT - COUNT ( - 0 ) AS col0 FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5544
SELECT ALL + CAST( NULL AS SIGNED ) / - 31 + 63 * + col2 AS col1 FROM tab2 WHERE NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-5544
SELECT ALL + CAST ( NULL AS INTEGER ) / - 31 + 63 * + col2 AS col1 FROM tab2 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT - 29 + col0 AS col1 FROM tab1
----
22
56
62

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE col1 * + col2 > + 4
----
59
68
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5547
SELECT ALL COUNT( * ) DIV + 32 col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5547
SELECT ALL COUNT ( * ) / + 32 col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col1 * - 56 FROM tab1 AS cor0
----
-2632
-280
-784

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT - COUNT( * ) + 59 col2 FROM tab0
----
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5549
SELECT - COUNT ( * ) + 59 col2 FROM tab0
----
56

query I rowsort
SELECT DISTINCT + col0 * 71 + 57 AS col1 FROM tab1
----
3678
6092
6518

query I rowsort
SELECT ALL + - col2 - + col0 AS col2 FROM tab1 AS cor0
----
-144
-147
-159

query I rowsort
SELECT ALL col1 + 5 AS col0 FROM tab1 cor0
----
10
19
52

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col0 ) < NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL >= ( col0 )
----

query I rowsort
SELECT DISTINCT + col1 * - col0 - col0 FROM tab0 AS cor0
----
-1230
-1914
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT DISTINCT - ( COUNT( * ) ) * - 94 FROM tab2 AS cor0 WHERE NOT + ( col2 ) IN ( - col2 )
----
282

skipif mysql # not compatible
query I rowsort label-5556
SELECT DISTINCT - ( COUNT ( * ) ) * - 94 FROM tab2 AS cor0 WHERE NOT + ( col2 ) IN ( - col2 )
----
282

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * + col1 NOT IN ( + 63 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 55 + - 41 NOT BETWEEN ( NULL ) AND 60 / ( - col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5559
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NULL ) IN ( CAST( col1 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-5559
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NULL ) IN ( CAST ( col1 AS REAL ) )
----

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT ( - 77 ) <= - col1 * col0
----
15
87
97

query I rowsort
SELECT + col2 FROM tab0 cor0 WHERE + col2 - col0 NOT IN ( col1 )
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5562
SELECT - 16 DIV + 30 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5562
SELECT - 16 / + 30 FROM tab0
----
0
0
0

query I rowsort
SELECT 95 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col0 + - 92 IS NOT NULL OR NOT NULL IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 68 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 * ( + col0 ) AS col1 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT ALL col0 FROM tab1 WHERE ( col2 / - 50 ) NOT BETWEEN 64 AND NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT ( COUNT( * ) ) AS col2 FROM tab2 WHERE NOT ( - col1 + col2 ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5568
SELECT ( COUNT ( * ) ) AS col2 FROM tab2 WHERE NOT ( - col1 + col2 ) <= NULL
----
0

query I rowsort
SELECT DISTINCT + 86 * - 98 FROM tab1 AS cor0 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT 27 AS col0 FROM tab0 cor0
----
27
27
27

query I rowsort
SELECT DISTINCT + 59 * - col2 FROM tab0 AS cor0
----
-2773
-5841
-590

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 cor0 WHERE + 43 <> col0
----
3

skipif mysql # not compatible
query I rowsort label-5572
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 cor0 WHERE + 43 <> col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT + COUNT( * ) * - 1 AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5573
SELECT + COUNT ( * ) * - 1 AS col1 FROM tab1
----
-3

query I rowsort
SELECT + col0 * + + 2 + + 22 * 95 AS col0 FROM tab1 AS cor0
----
2192
2260
2272

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 10 < ( + col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * + + 80 NOT BETWEEN - col1 + ( col2 ) AND col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5577
SELECT 57 DIV - COUNT( * ) FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-5577
SELECT 57 / - COUNT ( * ) FROM tab1 AS cor0
----
-19

query I rowsort
SELECT - + 9 * - col2 AS col0 FROM tab0 cor0
----
423
891
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5579
SELECT DISTINCT - col0 * - 78 + - - ( CAST( NULL AS SIGNED ) ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5579
SELECT DISTINCT - col0 * - 78 + - - ( CAST ( NULL AS INTEGER ) ) col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 67 FROM tab1 cor0 WHERE NOT + 82 * 67 + - col2 IN ( col0 )
----
67
67
67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5581
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE NOT 18 IN ( - - CAST( NULL AS DECIMAL ) + - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-5581
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE NOT 18 IN ( - - CAST ( NULL AS REAL ) + - col0 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 = - 29
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5583
SELECT ALL MAX( + col2 ) AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-5583
SELECT ALL MAX ( + col2 ) AS col1 FROM tab0
----
99

query III rowsort
SELECT * FROM tab2 WHERE 18 * col1 * col0 + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5585
SELECT CAST( + col0 AS SIGNED ) + CAST( NULL AS SIGNED ) + + - 14 * col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5585
SELECT CAST ( + col0 AS INTEGER ) + CAST ( NULL AS INTEGER ) + + - 14 * col0 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT ALL - ( - MAX( ALL col0 ) ) + COUNT( * ) AS col0 FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-5586
SELECT ALL - ( - MAX ( ALL col0 ) ) + COUNT ( * ) AS col0 FROM tab0
----
100

query I rowsort
SELECT ALL - 17 * ( + col1 ) FROM tab2
----
-1139
-1309
-867

onlyif mysql # DIV for integer division: 
query I rowsort label-5588
SELECT - col0 + col1 DIV 99 * + 6 AS col2 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-5588
SELECT - col0 + col1 / 99 * + 6 AS col2 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT col2 + - col0 + - 49 AS col1 FROM tab0 AS cor0
----
-126
-17
-47

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 / + col2 IS NOT NULL
----

query I rowsort
SELECT ALL - - col0 * col0 * - col0 FROM tab1 AS cor0
----
-132651
-614125
-753571

query I rowsort
SELECT - ( - - col2 ) + - 94 FROM tab0 AS cor0
----
-104
-141
-193

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5593
SELECT ALL 77 + - col1 FROM tab1 cor0 WHERE NOT + CAST( - col1 AS SIGNED ) * CAST( col0 AS SIGNED ) BETWEEN - col2 AND - col1 / + 12
----
30
63
72

skipif mysql # not compatible
query I rowsort label-5593
SELECT ALL 77 + - col1 FROM tab1 cor0 WHERE NOT + CAST ( - col1 AS INTEGER ) * CAST ( col0 AS INTEGER ) BETWEEN - col2 AND - col1 / + 12
----
30
63
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5594
SELECT DISTINCT - - COUNT( * ) DIV - + 84 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5594
SELECT DISTINCT - - COUNT ( * ) / - + 84 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col2 * col2 + col0 + + col2 + + col1 AS col2 FROM tab1 cor0
----
3630
4830
9377

onlyif mysql # DIV for integer division: 
query I rowsort label-5596
SELECT - col1 DIV col0 AS col0 FROM tab0 AS cor0 WHERE ( ( NULL ) IS NULL )
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-5596
SELECT - col1 / col0 AS col0 FROM tab0 AS cor0 WHERE ( ( NULL ) IS NULL )
----
-5
0
0

query I rowsort
SELECT DISTINCT - + 84 * - - col0 AS col1 FROM tab2 cor0
----
-3864
-5376
-6300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 43 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT + - col2 - + - 42 AS col1 FROM tab0 cor0
----
-5
-57
32

query I rowsort
SELECT - + 55 - + col1 FROM tab1 AS cor0
----
-102
-60
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5601
SELECT ( 11 ) DIV - COUNT( ( col0 ) ) FROM tab1 AS cor0 WHERE + ( + 86 ) * - - 51 NOT BETWEEN NULL AND ( + 76 )
----
-3

skipif mysql # not compatible
query I rowsort label-5601
SELECT ( 11 ) / - COUNT ( ( col0 ) ) FROM tab1 AS cor0 WHERE + ( + 86 ) * - - 51 NOT BETWEEN NULL AND ( + 76 )
----
-3

query I rowsort
SELECT DISTINCT - col2 - + - col0 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT DISTINCT - 18 AS col2 FROM tab0 cor0
----
-18

query I rowsort
SELECT - 53 + col0 AS col2 FROM tab2 cor0
----
-7
11
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 35 col2 FROM tab2 AS cor0
----
-35

query I rowsort
SELECT - 65 * - + col1 FROM tab1
----
3055
325
910

query I rowsort
SELECT col2 * 87 FROM tab0
----
4089
8613
870

query I rowsort
SELECT ALL - + 64 FROM tab1 WHERE NOT + - col0 <= - col2
----
-64

query I rowsort
SELECT 74 * + - col0 FROM tab0
----
-1110
-6438
-7178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5610
SELECT + 19 + COUNT( * ) AS col1 FROM tab0 WHERE NOT ( - + 9 ) BETWEEN NULL AND ( - + col2 * - CAST( NULL AS SIGNED ) * col2 )
----
19

skipif mysql # not compatible
query I rowsort label-5610
SELECT + 19 + COUNT ( * ) AS col1 FROM tab0 WHERE NOT ( - + 9 ) BETWEEN NULL AND ( - + col2 * - CAST ( NULL AS INTEGER ) * col2 )
----
19

query I rowsort
SELECT 15 * + - col1 FROM tab0
----
-1215
-15
-315

onlyif mysql # aggregate syntax: 
query II rowsort label-5612
SELECT ALL + 66 col0, + ( - COUNT( * ) ) * + SUM( + - col0 ) FROM tab1
----
66
681

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5612
SELECT ALL + 66 col0, + ( - COUNT ( * ) ) * + SUM ( + - col0 ) FROM tab1
----
66
681

query I rowsort
SELECT - ( - - col1 ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5614
SELECT + SUM( + - 88 ) FROM tab1
----
-264

skipif mysql # not compatible
query I rowsort label-5614
SELECT + SUM ( + - 88 ) FROM tab1
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-5615
SELECT COUNT( * ) FROM tab0 WHERE NOT + 18 <> - col0
----
0

skipif mysql # not compatible
query I rowsort label-5615
SELECT COUNT ( * ) FROM tab0 WHERE NOT + 18 <> - col0
----
0

query I rowsort
SELECT - 67 + - + ( - 50 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5617
SELECT + + CAST( col0 AS SIGNED ) * - col2 - - col2 AS col2 FROM tab1 AS cor0
----
-4800
-4956
-6120

skipif mysql # not compatible
query I rowsort label-5617
SELECT + + CAST ( col0 AS INTEGER ) * - col2 - - col2 AS col2 FROM tab1 AS cor0
----
-4800
-4956
-6120

query I rowsort
SELECT ALL 47 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
47
47
47

query I rowsort
SELECT ALL + 43 AS col0 FROM tab1 cor0
----
43
43
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5620
SELECT DISTINCT - + col1 * 74 + + - ( ( + CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5620
SELECT DISTINCT - + col1 * 74 + + - ( ( + CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab0 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5621
SELECT 83 * 84 + - + col1 col0, ( + col1 ) DIV - - 45 FROM tab1 AS cor0
----
6925
1
6958
0
6967
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5621
SELECT 83 * 84 + - + col1 col0, ( + col1 ) / - - 45 FROM tab1 AS cor0
----
6925
1
6958
0
6967
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5622
SELECT 65 + + 42 * + + ( MIN( + 31 ) ) col1 FROM tab0
----
1367

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5622
SELECT 65 + + 42 * + + ( MIN ( + 31 ) ) col1 FROM tab0
----
1367

query I rowsort
SELECT ALL + 17 + - 5 AS col2 FROM tab0
----
12
12
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, col2 col2 FROM tab1
----
14
96
47
68
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT SUM( ALL - 25 ) FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-5625
SELECT SUM ( ALL - 25 ) FROM tab1
----
-75

query I rowsort
SELECT DISTINCT ( + col2 ) + + - col0 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT ALL - ( - - 68 ) * col1 - + 16 AS col2 FROM tab1
----
-3212
-356
-968

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5628
SELECT ALL - 90 + - col2 DIV + col2 + + + ( - - 71 ) + - CAST( - col0 AS SIGNED ) * + col2 + - col1 FROM tab2
----
2463
4263
987

skipif mysql # not compatible
query I rowsort label-5628
SELECT ALL - 90 + - col2 / + col2 + + + ( - - 71 ) + - CAST ( - col0 AS INTEGER ) * + col2 + - col1 FROM tab2
----
2463
4263
987

onlyif mysql # DIV for integer division: 
query I rowsort label-5629
SELECT + - col2 DIV col2 + - 6 * - 66 + + col2 AS col2 FROM tab2 WHERE + 53 + col1 NOT BETWEEN NULL AND col1
----
418
435
453

skipif mysql # not compatible
query I rowsort label-5629
SELECT + - col2 / col2 + - 6 * - 66 + + col2 AS col2 FROM tab2 WHERE + 53 + col1 NOT BETWEEN NULL AND col1
----
418
435
453

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5630
SELECT DISTINCT - col0 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5630
SELECT DISTINCT - col0 * - CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5631
SELE